text: !function(e){function t(r){if(n[r])return n[r].exports;var o=n[r]={exports:{},id:r,loaded:!1};return e[r].call(o.exports,o,o.exports,t),o.loaded=!0,o.exports}var n={};return t.m=e,t.c=n,t.p="",t(0)}([function(e,t,n){e.exports=n(382)},function(e,t,n){"use strict";e.exports=n(241)},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(e,t){if(e===t)return!0;if("object"!==("undefined"==typeof e?"undefined":y(e))||null===e||"object"!==("undefined"==typeof t?"undefined":y(t))||null===t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(var o=hasOwnProperty.bind(t),i=0;i<n.length;i++){var a=n[i];if(e[a]!==t[a])if((0,d["default"])(e[a])){if(!(0,d["default"])(t[a])||e[a].length!==t[a].length)return!1;if(!(0,f["default"])(e[a],t[a]))return!1}else if((0,c["default"])(e[a])){if(!(0,c["default"])(t[a])||!(0,f["default"])(e[a],t[a]))return!1}else if(!o(n[i])||e[n[i]]!==t[n[i]])return!1}return!0}function i(e,t,n){return!o(e.props,t)||!o(e.state,n)}function a(e,t){return i(this,e,t)}function s(e){e.prototype.shouldComponentUpdate=a}var u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol?"symbol":typeof e};Object.defineProperty(t,"__esModule",{value:!0}),t.shallowEqual=void 0;var l=n(315),c=r(l),p=n(314),f=r(p),h=n(16),d=r(h),y="function"==typeof Symbol&&"symbol"===u(Symbol.iterator)?function(e){return"undefined"==typeof e?"undefined":u(e)}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol?"symbol":"undefined"==typeof e?"undefined":u(e)};t.shallowEqual=o,t["default"]=s},function(e,t,n){"use strict";function r(e,t,n,r,o,i,a,s){if(!e){var u;if(void 0===t)u=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var l=[n,r,o,i,a,s],c=0;u=new Error(t.replace(/%s/g,function(){return l[c++]})),u.name="Invariant Violation"}throw u.framesToPop=1,u}}e.exports=r},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(t,"__esModule",{value:!0}),t.isSsr=t.validateWidthHeight=t.filterEventAttributes=t.getPresentationAttributes=t.withoutType=t.findChildByType=t.findAllByType=t.getDisplayName=t.PRESENTATION_ATTRIBUTES=void 0;var o=n(17),i=r(o),a=n(10),s=r(a),u=n(16),l=r(u),c=n(1),p=r(c),f=t.PRESENTATION_ATTRIBUTES={alignmentBaseline:c.PropTypes.string,baselineShift:c.PropTypes.string,clip:c.PropTypes.string,clipPath:c.PropTypes.string,clipRule:c.PropTypes.string,color:c.PropTypes.string,colorInterpolation:c.PropTypes.string,colorInterpolationFilters:c.PropTypes.string,colorProfile:c.PropTypes.string,colorRendering:c.PropTypes.string,cursor:c.PropTypes.string,direction:c.PropTypes.oneOf(["ltr","rtl","inherit"]),display:c.PropTypes.string,dominantBaseline:c.PropTypes.string,enableBackground:c.PropTypes.string,fill:c.PropTypes.string,fillOpacity:c.PropTypes.oneOfType([c.PropTypes.string,c.PropTypes.number]),fillRule:c.PropTypes.oneOf(["nonzero","evenodd","inherit"]),filter:c.PropTypes.string,floodColor:c.PropTypes.string,floodOpacity:c.PropTypes.oneOfType([c.PropTypes.string,c.PropTypes.number]),font:c.PropTypes.string,fontFamily:c.PropTypes.string,fontSize:c.PropTypes.number,fontSizeAdjust:c.PropTypes.oneOfType([c.PropTypes.number,c.PropTypes.string]),fontStretch:c.PropTypes.oneOf(["normal","wider","narrower","ultra-condensed","extra-condensed","condensed","semi-condensed","semi-expanded","expanded","extra-expanded","ultra-expanded","inherit"]),fontStyle:c.PropTypes.oneOf(["normal","italic","oblique","inherit"]),fontVariant:c.PropTypes.oneOf(["normal","small-caps","inherit"]),fontWeight:c.PropTypes.oneOf(["normal","bold","bolder","lighter",100,200,300,400,500,600,700,800,900,"inherit"]),glyphOrientationHorizontal:c.PropTypes.string,glyphOrientationVertical:c.PropTypes.string,imageRendering:c.PropTypes.oneOf(["auto","optimizeSpeed","optimizeQuality","inherit"]),kerning:c.PropTypes.oneOfType([c.PropTypes.number,c.PropTypes.string]),letterSpacing:c.PropTypes.oneOfType([c.PropTypes.number,c.PropTypes.string]),lightingColor:c.PropTypes.string,markerEnd:c.PropTypes.string,markerMid:c.PropTypes.string,markerStart:c.PropTypes.string,mask:c.PropTypes.string,opacity:c.PropTypes.oneOfType([c.PropTypes.number,c.PropTypes.string]),overflow:c.PropTypes.oneOf(["visible","hidden","scroll","auto","inherit"]),pointerEvents:c.PropTypes.oneOf(["visiblePainted","visibleFill","visibleStroke","visible","painted","fill","stroke","all","none","inherit"]),shapeRendering:c.PropTypes.oneOf(["auto","optimizeSpeed","crispEdges","geometricPrecision","inherit"]),stopColor:c.PropTypes.string,stopOpacity:c.PropTypes.oneOfType([c.PropTypes.number,c.PropTypes.string]),stroke:c.PropTypes.oneOfType([c.PropTypes.number,c.PropTypes.string]),strokeDasharray:c.PropTypes.string,strokeDashoffset:c.PropTypes.oneOfType([c.PropTypes.number,c.PropTypes.string]),strokeLinecap:c.PropTypes.oneOf(["butt","round","square","inherit"]),strokeLinejoin:c.PropTypes.oneOf(["miter","round","bevel","inherit"]),strokeMiterlimit:c.PropTypes.oneOfType([c.PropTypes.number,c.PropTypes.string]),strokeOpacity:c.PropTypes.oneOfType([c.PropTypes.number,c.PropTypes.string]),strokeWidth:c.PropTypes.oneOfType([c.PropTypes.number,c.PropTypes.string]),textAnchor:c.PropTypes.oneOf(["start","middle","end","inherit"]),textDecoration:c.PropTypes.oneOf(["none","underline","overline","line-through","blink","inherit"]),textRendering:c.PropTypes.oneOf(["auto","optimizeSpeed","optimizeLegibility","geometricPrecision","inherit"]),unicodeBidi:c.PropTypes.oneOf(["normal","embed","bidi-override","inherit"]),visibility:c.PropTypes.oneOf(["visible","hidden","collapse","inherit"]),wordSpacing:c.PropTypes.oneOfType([c.PropTypes.number,c.PropTypes.string]),writingMode:c.PropTypes.oneOf(["lr-tb","rl-tb","tb-rl","lr","rl","tb","inherit"]),transform:c.PropTypes.string,style:c.PropTypes.object,r:c.PropTypes.number},h={onClick:c.PropTypes.func,onMouseDown:c.PropTypes.func,onMouseUp:c.PropTypes.func,onMouseOver:c.PropTypes.func,onMouseMove:c.PropTypes.func,onMouseOut:c.PropTypes.func,onMouseEnter:c.PropTypes.func,onMouseLeave:c.PropTypes.func},d=t.getDisplayName=function(e){return e?"string"==typeof e?e:e.displayName||e.name||"Component":""},y=t.findAllByType=function(e,t){var n=[],r=[];return r=(0,l["default"])(t)?t.map(function(e){return d(e)}):[d(t)],p["default"].Children.forEach(e,function(e){var t=e&&e.type&&(e.type.displayName||e.type.name);-1!==r.indexOf(t)&&n.push(e)}),n};t.findChildByType=function(e,t){var n=y(e,t);return n&&n[0]},t.withoutType=function(e,t){var n=[],r=void 0;return r=(0,l["default"])(t)?t.map(function(e){return d(e)}):[d(t)],p["default"].Children.forEach(e,function(e){e&&e.type&&e.type.displayName&&-1!==r.indexOf(e.type.displayName)||n.push(e)}),n},t.getPresentationAttributes=function(e){if(!e||(0,s["default"])(e))return null;var t=p["default"].isValidElement(e)?e.props:e,n=null;for(var r in t)t.hasOwnProperty(r)&&f[r]&&(n||(n={}),n[r]=t[r]);return n},t.filterEventAttributes=function(e){if(!e||(0,s["default"])(e))return null;var t=p["default"].isValidElement(e)?e.props:e,n=null;for(var r in t)t.hasOwnProperty(r)&&h[r]&&(n||(n={}),n[r]=t[r]);return n},t.validateWidthHeight=function(e){if(!e||!e.props)return!1;var t=e.props,n=t.width,r=t.height;return!(!(0,i["default"])(n)||0>=n||!(0,i["default"])(r)||0>=r)},t.isSsr=function(){return"undefined"==typeof document}},function(e,t,n){var r,o;(function(e){"use strict";var i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol?"symbol":typeof e};!function(a,s,u){var l=a.L,c={};c.version="0.7.7","object"===i(e)&&"object"===i(e.exports)?e.exports=c:(r=c,o="function"==typeof r?r.call(t,n,t,e):r,!(o!==u&&(e.exports=o))),c.noConflict=function(){return a.L=l,this},a.L=c,c.Util={extend:function(e){var t,n,r,o,i=Array.prototype.slice.call(arguments,1);for(n=0,r=i.length;r>n;n++){o=i[n]||{};for(t in o)o.hasOwnProperty(t)&&(e[t]=o[t])}return e},bind:function(e,t){var n=arguments.length>2?Array.prototype.slice.call(arguments,2):null;return function(){return e.apply(t,n||arguments)}},stamp:function(){var e=0,t="_leaflet_id";return function(n){return n[t]=n[t]||++e,n[t]}}(),invokeEach:function(e,t,n){var r,o;if("object"===("undefined"==typeof e?"undefined":i(e))){o=Array.prototype.slice.call(arguments,3);for(r in e)t.apply(n,[r,e[r]].concat(o));return!0}return!1},limitExecByInterval:function(e,t,n){var r,o;return function i(){var a=arguments;return r?void(o=!0):(r=!0,setTimeout(function(){r=!1,o&&(i.apply(n,a),o=!1)},t),void e.apply(n,a))}},falseFn:function(){return!1},formatNum:function(e,t){var n=Math.pow(10,t||5);return Math.round(e*n)/n},trim:function(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")},splitWords:function(e){return c.Util.trim(e).split(/\s+/)},setOptions:function(e,t){return e.options=c.extend({},e.options,t),e.options},getParamString:function(e,t,n){var r=[];for(var o in e)r.push(encodeURIComponent(n?o.toUpperCase():o)+"="+encodeURIComponent(e[o]));return(t&&-1!==t.indexOf("?")?"&":"?")+r.join("&")},template:function(e,t){return e.replace(/\{ *([\w_]+) *\}/g,function(e,n){var r=t[n];if(r===u)throw new Error("No value provided for variable "+e);return"function"==typeof r&&(r=r(t)),r})},isArray:Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)},emptyImageUrl:"data:image/gif;base64,R0lGODlhAQABAAD/ACwAAAAAAQABAAACADs="},function(){function e(e){var t,n,r=["webkit","moz","o","ms"];for(t=0;t<r.length&&!n;t++)n=a[r[t]+e];return n}function t(e){var t=+new Date,r=Math.max(0,16-(t-n));return n=t+r,a.setTimeout(e,r)}var n=0,r=a.requestAnimationFrame||e("RequestAnimationFrame")||t,o=a.cancelAnimationFrame||e("CancelAnimationFrame")||e("CancelRequestAnimationFrame")||function(e){a.clearTimeout(e)};c.Util.requestAnimFrame=function(e,n,o,i){return e=c.bind(e,n),o&&r===t?void e():r.call(a,e,i)},c.Util.cancelAnimFrame=function(e){e&&o.call(a,e)}}(),c.extend=c.Util.extend,c.bind=c.Util.bind,c.stamp=c.Util.stamp,c.setOptions=c.Util.setOptions,c.Class=function(){},c.Class.extend=function(e){var t=function(){this.initialize&&this.initialize.apply(this,arguments),this._initHooks&&this.callInitHooks()},n=function(){};n.prototype=this.prototype;var r=new n;r.constructor=t,t.prototype=r;for(var o in this)this.hasOwnProperty(o)&&"prototype"!==o&&(t[o]=this[o]);e.statics&&(c.extend(t,e.statics),delete e.statics),e.includes&&(c.Util.extend.apply(null,[r].concat(e.includes)),delete e.includes),e.options&&r.options&&(e.options=c.extend({},r.options,e.options)),c.extend(r,e),r._initHooks=[];var i=this;return t.__super__=i.prototype,r.callInitHooks=function(){if(!this._initHooksCalled){i.prototype.callInitHooks&&i.prototype.callInitHooks.call(this),this._initHooksCalled=!0;for(var e=0,t=r._initHooks.length;t>e;e++)r._initHooks[e].call(this)}},t},c.Class.include=function(e){c.extend(this.prototype,e)},c.Class.mergeOptions=function(e){c.extend(this.prototype.options,e)},c.Class.addInitHook=function(e){var t=Array.prototype.slice.call(arguments,1),n="function"==typeof e?e:function(){this[e].apply(this,t)};this.prototype._initHooks=this.prototype._initHooks||[],this.prototype._initHooks.push(n)};var p="_leaflet_events";c.Mixin={},c.Mixin.Events={addEventListener:function(e,t,n){if(c.Util.invokeEach(e,this.addEventListener,this,t,n))return this;var r,o,i,a,s,u,l,f=this[p]=this[p]||{},h=n&&n!==this&&c.stamp(n);for(e=c.Util.splitWords(e),r=0,o=e.length;o>r;r++)i={action:t,context:n||this},a=e[r],h?(s=a+"_idx",u=s+"_len",l=f[s]=f[s]||{},l[h]||(l[h]=[],f[u]=(f[u]||0)+1),l[h].push(i)):(f[a]=f[a]||[],f[a].push(i));return this},hasEventListeners:function(e){var t=this[p];return!!t&&(e in t&&t[e].length>0||e+"_idx"in t&&t[e+"_idx_len"]>0)},removeEventListener:function(e,t,n){if(!this[p])return this;if(!e)return this.clearAllEventListeners();if(c.Util.invokeEach(e,this.removeEventListener,this,t,n))return this;var r,o,i,a,s,u,l,f,h,d=this[p],y=n&&n!==this&&c.stamp(n);for(e=c.Util.splitWords(e),r=0,o=e.length;o>r;r++)if(i=e[r],u=i+"_idx",l=u+"_len",f=d[u],t){if(a=y&&f?f[y]:d[i]){for(s=a.length-1;s>=0;s--)a[s].action!==t||n&&a[s].context!==n||(h=a.splice(s,1),h[0].action=c.Util.falseFn);n&&f&&0===a.length&&(delete f[y],d[l]--)}}else delete d[i],delete d[u],delete d[l];return this},clearAllEventListeners:function(){return delete this[p],this},fireEvent:function(e,t){if(!this.hasEventListeners(e))return this;var n,r,o,i,a,s=c.Util.extend({},t,{type:e,target:this}),u=this[p];if(u[e])for(n=u[e].slice(),r=0,o=n.length;o>r;r++)n[r].action.call(n[r].context,s);i=u[e+"_idx"];for(a in i)if(n=i[a].slice())for(r=0,o=n.length;o>r;r++)n[r].action.call(n[r].context,s);return this},addOneTimeEventListener:function(e,t,n){if(c.Util.invokeEach(e,this.addOneTimeEventListener,this,t,n))return this;var r=c.bind(function(){this.removeEventListener(e,t,n).removeEventListener(e,r,n)},this);return this.addEventListener(e,t,n).addEventListener(e,r,n)}},c.Mixin.Events.on=c.Mixin.Events.addEventListener,c.Mixin.Events.off=c.Mixin.Events.removeEventListener,c.Mixin.Events.once=c.Mixin.Events.addOneTimeEventListener,c.Mixin.Events.fire=c.Mixin.Events.fireEvent,function(){var e="ActiveXObject"in a,t=e&&!s.addEventListener,n=navigator.userAgent.toLowerCase(),r=-1!==n.indexOf("webkit"),o=-1!==n.indexOf("chrome"),l=-1!==n.indexOf("phantom"),p=-1!==n.indexOf("android"),f=-1!==n.search("android [23]"),h=-1!==n.indexOf("gecko"),d=("undefined"==typeof orientation?"undefined":i(orientation))!==u+"",y=!a.PointerEvent&&a.MSPointerEvent,m=a.PointerEvent&&a.navigator.pointerEnabled||y,v="devicePixelRatio"in a&&a.devicePixelRatio>1||"matchMedia"in a&&a.matchMedia("(min-resolution:144dpi)")&&a.matchMedia("(min-resolution:144dpi)").matches,g=s.documentElement,_=e&&"transition"in g.style,b="WebKitCSSMatrix"in a&&"m11"in new a.WebKitCSSMatrix&&!f,T="MozPerspective"in g.style,P="OTransition"in g.style,x=!a.L_DISABLE_3D&&(_||b||T||P)&&!l,E=!a.L_NO_TOUCH&&!l&&(m||"ontouchstart"in a||a.DocumentTouch&&s instanceof a.DocumentTouch);c.Browser={ie:e,ielt9:t,webkit:r,gecko:h&&!r&&!a.opera&&!e,android:p,android23:f,chrome:o,ie3d:_,webkit3d:b,gecko3d:T,opera3d:P,any3d:x,mobile:d,mobileWebkit:d&&r,mobileWebkit3d:d&&b,mobileOpera:d&&a.opera,touch:E,msPointer:y,pointer:m,retina:v}}(),c.Point=function(e,t,n){this.x=n?Math.round(e):e,this.y=n?Math.round(t):t},c.Point.prototype={clone:function(){return new c.Point(this.x,this.y)},add:function(e){return this.clone()._add(c.point(e))},_add:function(e){return this.x+=e.x,this.y+=e.y,this},subtract:function(e){return this.clone()._subtract(c.point(e))},_subtract:function(e){return this.x-=e.x,this.y-=e.y,this},divideBy:function(e){return this.clone()._divideBy(e)},_divideBy:function(e){return this.x/=e,this.y/=e,this},multiplyBy:function(e){return this.clone()._multiplyBy(e)},_multiplyBy:function(e){return this.x*=e,this.y*=e,this},round:function(){return this.clone()._round()},_round:function(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this},floor:function(){return this.clone()._floor()},_floor:function(){return this.x=Math.floor(this.x),this.y=Math.floor(this.y),this},distanceTo:function(e){e=c.point(e);var t=e.x-this.x,n=e.y-this.y;return Math.sqrt(t*t+n*n)},equals:function(e){return e=c.point(e),e.x===this.x&&e.y===this.y},contains:function(e){return e=c.point(e),Math.abs(e.x)<=Math.abs(this.x)&&Math.abs(e.y)<=Math.abs(this.y)},toString:function(){return"Point("+c.Util.formatNum(this.x)+", "+c.Util.formatNum(this.y)+")"}},c.point=function(e,t,n){return e instanceof c.Point?e:c.Util.isArray(e)?new c.Point(e[0],e[1]):e===u||null===e?e:new c.Point(e,t,n)},c.Bounds=function(e,t){if(e)for(var n=t?[e,t]:e,r=0,o=n.length;o>r;r++)this.extend(n[r])},c.Bounds.prototype={extend:function(e){return e=c.point(e),this.min||this.max?(this.min.x=Math.min(e.x,this.min.x),this.max.x=Math.max(e.x,this.max.x),this.min.y=Math.min(e.y,this.min.y),this.max.y=Math.max(e.y,this.max.y)):(this.min=e.clone(),this.max=e.clone()),this},getCenter:function(e){return new c.Point((this.min.x+this.max.x)/2,(this.min.y+this.max.y)/2,e)},getBottomLeft:function(){return new c.Point(this.min.x,this.max.y)},getTopRight:function(){return new c.Point(this.max.x,this.min.y)},getSize:function(){return this.max.subtract(this.min)},contains:function(e){var t,n;return e="number"==typeof e[0]||e instanceof c.Point?c.point(e):c.bounds(e),e instanceof c.Bounds?(t=e.min,n=e.max):t=n=e,t.x>=this.min.x&&n.x<=this.max.x&&t.y>=this.min.y&&n.y<=this.max.y},intersects:function(e){e=c.bounds(e);var t=this.min,n=this.max,r=e.min,o=e.max,i=o.x>=t.x&&r.x<=n.x,a=o.y>=t.y&&r.y<=n.y;return i&&a},isValid:function(){return!(!this.min||!this.max)}},c.bounds=function(e,t){return!e||e instanceof c.Bounds?e:new c.Bounds(e,t)},c.Transformation=function(e,t,n,r){this._a=e,this._b=t,this._c=n,this._d=r},c.Transformation.prototype={transform:function(e,t){return this._transform(e.clone(),t)},_transform:function(e,t){return t=t||1,e.x=t*(this._a*e.x+this._b),e.y=t*(this._c*e.y+this._d),e},untransform:function(e,t){return t=t||1,new c.Point((e.x/t-this._b)/this._a,(e.y/t-this._d)/this._c)}},c.DomUtil={get:function(e){return"string"==typeof e?s.getElementById(e):e},getStyle:function(e,t){var n=e.style[t];if(!n&&e.currentStyle&&(n=e.currentStyle[t]),(!n||"auto"===n)&&s.defaultView){var r=s.defaultView.getComputedStyle(e,null);n=r?r[t]:null}return"auto"===n?null:n},getViewportOffset:function(e){var t,n=0,r=0,o=e,i=s.body,a=s.documentElement;do{if(n+=o.offsetTop||0,r+=o.offsetLeft||0,n+=parseInt(c.DomUtil.getStyle(o,"borderTopWidth"),10)||0,r+=parseInt(c.DomUtil.getStyle(o,"borderLeftWidth"),10)||0,t=c.DomUtil.getStyle(o,"position"),o.offsetParent===i&&"absolute"===t)break;if("fixed"===t){n+=i.scrollTop||a.scrollTop||0,r+=i.scrollLeft||a.scrollLeft||0;break}if("relative"===t&&!o.offsetLeft){var u=c.DomUtil.getStyle(o,"width"),l=c.DomUtil.getStyle(o,"max-width"),p=o.getBoundingClientRect();"none"===u&&"none"===l||(r+=p.left+o.clientLeft),n+=p.top+(i.scrollTop||a.scrollTop||0);break}o=o.offsetParent}while(o);o=e;do{if(o===i)break;n-=o.scrollTop||0,r-=o.scrollLeft||0,o=o.parentNode}while(o);return new c.Point(r,n)},documentIsLtr:function(){return c.DomUtil._docIsLtrCached||(c.DomUtil._docIsLtrCached=!0,c.DomUtil._docIsLtr="ltr"===c.DomUtil.getStyle(s.body,"direction")),c.DomUtil._docIsLtr},create:function(e,t,n){var r=s.createElement(e);return r.className=t,n&&n.appendChild(r),r},hasClass:function(e,t){if(e.classList!==u)return e.classList.contains(t);var n=c.DomUtil._getClass(e);return n.length>0&&new RegExp("(^|\\s)"+t+"(\\s|$)").test(n)},addClass:function(e,t){if(e.classList!==u)for(var n=c.Util.splitWords(t),r=0,o=n.length;o>r;r++)e.classList.add(n[r]);else if(!c.DomUtil.hasClass(e,t)){var i=c.DomUtil._getClass(e);c.DomUtil._setClass(e,(i?i+" ":"")+t)}},removeClass:function(e,t){e.classList!==u?e.classList.remove(t):c.DomUtil._setClass(e,c.Util.trim((" "+c.DomUtil._getClass(e)+" ").replace(" "+t+" "," ")))},_setClass:function(e,t){e.className.baseVal===u?e.className=t:e.className.baseVal=t},_getClass:function(e){return e.className.baseVal===u?e.className:e.className.baseVal},setOpacity:function(e,t){if("opacity"in e.style)e.style.opacity=t;else if("filter"in e.style){var n=!1,r="DXImageTransform.Microsoft.Alpha";try{n=e.filters.item(r)}catch(o){if(1===t)return}t=Math.round(100*t),n?(n.Enabled=100!==t,n.Opacity=t):e.style.filter+=" progid:"+r+"(opacity="+t+")"}},testProp:function(e){for(var t=s.documentElement.style,n=0;n<e.length;n++)if(e[n]in t)return e[n];return!1},getTranslateString:function(e){var t=c.Browser.webkit3d,n="translate"+(t?"3d":"")+"(",r=(t?",0":"")+")";return n+e.x+"px,"+e.y+"px"+r},getScaleString:function(e,t){var n=c.DomUtil.getTranslateString(t.add(t.multiplyBy(-1*e))),r=" scale("+e+") ";return n+r},setPosition:function(e,t,n){e._leaflet_pos=t,!n&&c.Browser.any3d?e.style[c.DomUtil.TRANSFORM]=c.DomUtil.getTranslateString(t):(e.style.left=t.x+"px",e.style.top=t.y+"px")},getPosition:function(e){return e._leaflet_pos}},c.DomUtil.TRANSFORM=c.DomUtil.testProp(["transform","WebkitTransform","OTransform","MozTransform","msTransform"]),c.DomUtil.TRANSITION=c.DomUtil.testProp(["webkitTransition","transition","OTransition","MozTransition","msTransition"]),c.DomUtil.TRANSITION_END="webkitTransition"===c.DomUtil.TRANSITION||"OTransition"===c.DomUtil.TRANSITION?c.DomUtil.TRANSITION+"End":"transitionend",function(){if("onselectstart"in s)c.extend(c.DomUtil,{disableTextSelection:function(){c.DomEvent.on(a,"selectstart",c.DomEvent.preventDefault)},enableTextSelection:function(){c.DomEvent.off(a,"selectstart",c.DomEvent.preventDefault)}});else{var e=c.DomUtil.testProp(["userSelect","WebkitUserSelect","OUserSelect","MozUserSelect","msUserSelect"]);c.extend(c.DomUtil,{disableTextSelection:function(){if(e){var t=s.documentElement.style;this._userSelect=t[e],t[e]="none"}},enableTextSelection:function(){e&&(s.documentElement.style[e]=this._userSelect,delete this._userSelect)}})}c.extend(c.DomUtil,{disableImageDrag:function(){c.DomEvent.on(a,"dragstart",c.DomEvent.preventDefault)},enableImageDrag:function(){c.DomEvent.off(a,"dragstart",c.DomEvent.preventDefault)}})}(),c.LatLng=function(e,t,n){if(e=parseFloat(e),t=parseFloat(t),isNaN(e)||isNaN(t))throw new Error("Invalid LatLng object: ("+e+", "+t+")");this.lat=e,this.lng=t,n!==u&&(this.alt=parseFloat(n))},c.extend(c.LatLng,{DEG_TO_RAD:Math.PI/180,RAD_TO_DEG:180/Math.PI,MAX_MARGIN:1e-9}),c.LatLng.prototype={equals:function(e){if(!e)return!1;e=c.latLng(e);var t=Math.max(Math.abs(this.lat-e.lat),Math.abs(this.lng-e.lng));return t<=c.LatLng.MAX_MARGIN},toString:function(e){return"LatLng("+c.Util.formatNum(this.lat,e)+", "+c.Util.formatNum(this.lng,e)+")"},distanceTo:function(e){e=c.latLng(e);var t=6378137,n=c.LatLng.DEG_TO_RAD,r=(e.lat-this.lat)*n,o=(e.lng-this.lng)*n,i=this.lat*n,a=e.lat*n,s=Math.sin(r/2),u=Math.sin(o/2),l=s*s+u*u*Math.cos(i)*Math.cos(a);return 2*t*Math.atan2(Math.sqrt(l),Math.sqrt(1-l))},wrap:function(e,t){var n=this.lng;return e=e||-180,t=t||180,n=(n+t)%(t-e)+(e>n||n===t?t:e),new c.LatLng(this.lat,n)}},c.latLng=function(e,t){return e instanceof c.LatLng?e:c.Util.isArray(e)?"number"==typeof e[0]||"string"==typeof e[0]?new c.LatLng(e[0],e[1],e[2]):null:e===u||null===e?e:"object"===("undefined"==typeof e?"undefined":i(e))&&"lat"in e?new c.LatLng(e.lat,"lng"in e?e.lng:e.lon):t===u?null:new c.LatLng(e,t)},c.LatLngBounds=function(e,t){if(e)for(var n=t?[e,t]:e,r=0,o=n.length;o>r;r++)this.extend(n[r])},c.LatLngBounds.prototype={extend:function(e){if(!e)return this;var t=c.latLng(e);return e=null!==t?t:c.latLngBounds(e),e instanceof c.LatLng?this._southWest||this._northEast?(this._southWest.lat=Math.min(e.lat,this._southWest.lat),this._southWest.lng=Math.min(e.lng,this._southWest.lng),this._northEast.lat=Math.max(e.lat,this._northEast.lat),this._northEast.lng=Math.max(e.lng,this._northEast.lng)):(this._southWest=new c.LatLng(e.lat,e.lng),this._northEast=new c.LatLng(e.lat,e.lng)):e instanceof c.LatLngBounds&&(this.extend(e._southWest),this.extend(e._northEast)),this},pad:function(e){var t=this._southWest,n=this._northEast,r=Math.abs(t.lat-n.lat)*e,o=Math.abs(t.lng-n.lng)*e;return new c.LatLngBounds(new c.LatLng(t.lat-r,t.lng-o),new c.LatLng(n.lat+r,n.lng+o))},getCenter:function(){return new c.LatLng((this._southWest.lat+this._northEast.lat)/2,(this._southWest.lng+this._northEast.lng)/2)},getSouthWest:function(){return this._southWest},getNorthEast:function(){return this._northEast},getNorthWest:function(){return new c.LatLng(this.getNorth(),this.getWest())},getSouthEast:function(){return new c.LatLng(this.getSouth(),this.getEast())},getWest:function(){return this._southWest.lng},getSouth:function(){return this._southWest.lat},getEast:function(){return this._northEast.lng},getNorth:function(){return this._northEast.lat},contains:function(e){e="number"==typeof e[0]||e instanceof c.LatLng?c.latLng(e):c.latLngBounds(e);var t,n,r=this._southWest,o=this._northEast;return e instanceof c.LatLngBounds?(t=e.getSouthWest(),n=e.getNorthEast()):t=n=e,t.lat>=r.lat&&n.lat<=o.lat&&t.lng>=r.lng&&n.lng<=o.lng},intersects:function(e){e=c.latLngBounds(e);var t=this._southWest,n=this._northEast,r=e.getSouthWest(),o=e.getNorthEast(),i=o.lat>=t.lat&&r.lat<=n.lat,a=o.lng>=t.lng&&r.lng<=n.lng;return i&&a},toBBoxString:function(){return[this.getWest(),this.getSouth(),this.getEast(),this.getNorth()].join(",")},equals:function(e){return e?(e=c.latLngBounds(e),this._southWest.equals(e.getSouthWest())&&this._northEast.equals(e.getNorthEast())):!1},isValid:function(){return!(!this._southWest||!this._northEast)}},c.latLngBounds=function(e,t){return!e||e instanceof c.LatLngBounds?e:new c.LatLngBounds(e,t)},c.Projection={},c.Projection.SphericalMercator={MAX_LATITUDE:85.0511287798,project:function(e){var t=c.LatLng.DEG_TO_RAD,n=this.MAX_LATITUDE,r=Math.max(Math.min(n,e.lat),-n),o=e.lng*t,i=r*t;return i=Math.log(Math.tan(Math.PI/4+i/2)),new c.Point(o,i)},unproject:function(e){var t=c.LatLng.RAD_TO_DEG,n=e.x*t,r=(2*Math.atan(Math.exp(e.y))-Math.PI/2)*t;return new c.LatLng(r,n)}},c.Projection.LonLat={project:function(e){return new c.Point(e.lng,e.lat)},unproject:function(e){return new c.LatLng(e.y,e.x)}},c.CRS={latLngToPoint:function(e,t){var n=this.projection.project(e),r=this.scale(t);return this.transformation._transform(n,r)},pointToLatLng:function(e,t){var n=this.scale(t),r=this.transformation.untransform(e,n);return this.projection.unproject(r)},project:function(e){return this.projection.project(e)},scale:function(e){return 256*Math.pow(2,e)},getSize:function(e){var t=this.scale(e);return c.point(t,t)}},c.CRS.Simple=c.extend({},c.CRS,{projection:c.Projection.LonLat,transformation:new c.Transformation(1,0,-1,0),scale:function(e){return Math.pow(2,e)}}),c.CRS.EPSG3857=c.extend({},c.CRS,{code:"EPSG:3857",projection:c.Projection.SphericalMercator,transformation:new c.Transformation(.5/Math.PI,.5,-.5/Math.PI,.5),project:function(e){var t=this.projection.project(e),n=6378137;return t.multiplyBy(n)}}),c.CRS.EPSG900913=c.extend({},c.CRS.EPSG3857,{code:"EPSG:900913"}),c.CRS.EPSG4326=c.extend({},c.CRS,{code:"EPSG:4326",projection:c.Projection.LonLat,transformation:new c.Transformation(1/360,.5,-1/360,.5)}),c.Map=c.Class.extend({includes:c.Mixin.Events,options:{crs:c.CRS.EPSG3857,fadeAnimation:c.DomUtil.TRANSITION&&!c.Browser.android23,trackResize:!0,markerZoomAnimation:c.DomUtil.TRANSITION&&c.Browser.any3d},initialize:function(e,t){t=c.setOptions(this,t),this._initContainer(e),this._initLayout(),this._onResize=c.bind(this._onResize,this),this._initEvents(),t.maxBounds&&this.setMaxBounds(t.maxBounds),t.center&&t.zoom!==u&&this.setView(c.latLng(t.center),t.zoom,{reset:!0}),this._handlers=[],this._layers={},this._zoomBoundLayers={},this._tileLayersNum=0,this.callInitHooks(),this._addLayers(t.layers)},setView:function(e,t){return t=t===u?this.getZoom():t,this._resetView(c.latLng(e),this._limitZoom(t)),this},setZoom:function(e,t){return this._loaded?this.setView(this.getCenter(),e,{zoom:t}):(this._zoom=this._limitZoom(e),this)},zoomIn:function(e,t){return this.setZoom(this._zoom+(e||1),t)},zoomOut:function(e,t){return this.setZoom(this._zoom-(e||1),t)},setZoomAround:function(e,t,n){var r=this.getZoomScale(t),o=this.getSize().divideBy(2),i=e instanceof c.Point?e:this.latLngToContainerPoint(e),a=i.subtract(o).multiplyBy(1-1/r),s=this.containerPointToLatLng(o.add(a));return this.setView(s,t,{zoom:n})},fitBounds:function(e,t){t=t||{},e=e.getBounds?e.getBounds():c.latLngBounds(e);var n=c.point(t.paddingTopLeft||t.padding||[0,0]),r=c.point(t.paddingBottomRight||t.padding||[0,0]),o=this.getBoundsZoom(e,!1,n.add(r));o=t.maxZoom?Math.min(t.maxZoom,o):o;var i=r.subtract(n).divideBy(2),a=this.project(e.getSouthWest(),o),s=this.project(e.getNorthEast(),o),u=this.unproject(a.add(s).divideBy(2).add(i),o);return this.setView(u,o,t)},fitWorld:function(e){return this.fitBounds([[-90,-180],[90,180]],e)},panTo:function(e,t){return this.setView(e,this._zoom,{pan:t})},panBy:function(e){return this.fire("movestart"),this._rawPanBy(c.point(e)),this.fire("move"),this.fire("moveend")},setMaxBounds:function(e){return e=c.latLngBounds(e),this.options.maxBounds=e,e?(this._loaded&&this._panInsideMaxBounds(),this.on("moveend",this._panInsideMaxBounds,this)):this.off("moveend",this._panInsideMaxBounds,this)},panInsideBounds:function(e,t){var n=this.getCenter(),r=this._limitCenter(n,this._zoom,e);return n.equals(r)?this:this.panTo(r,t)},addLayer:function(e){var t=c.stamp(e);return this._layers[t]?this:(this._layers[t]=e,!e.options||isNaN(e.options.maxZoom)&&isNaN(e.options.minZoom)||(this._zoomBoundLayers[t]=e,this._updateZoomLevels()),this.options.zoomAnimation&&c.TileLayer&&e instanceof c.TileLayer&&(this._tileLayersNum++,this._tileLayersToLoad++,e.on("load",this._onTileLayerLoad,this)),this._loaded&&this._layerAdd(e),this)},removeLayer:function(e){var t=c.stamp(e);return this._layers[t]?(this._loaded&&e.onRemove(this),delete this._layers[t],this._loaded&&this.fire("layerremove",{layer:e}),this._zoomBoundLayers[t]&&(delete this._zoomBoundLayers[t],this._updateZoomLevels()),this.options.zoomAnimation&&c.TileLayer&&e instanceof c.TileLayer&&(this._tileLayersNum--,this._tileLayersToLoad--,e.off("load",this._onTileLayerLoad,this)),this):this},hasLayer:function(e){return e?c.stamp(e)in this._layers:!1},eachLayer:function(e,t){for(var n in this._layers)e.call(t,this._layers[n]);return this},invalidateSize:function(e){if(!this._loaded)return this;e=c.extend({animate:!1,pan:!0},e===!0?{animate:!0}:e);var t=this.getSize();this._sizeChanged=!0,this._initialCenter=null;var n=this.getSize(),r=t.divideBy(2).round(),o=n.divideBy(2).round(),i=r.subtract(o);return i.x||i.y?(e.animate&&e.pan?this.panBy(i):(e.pan&&this._rawPanBy(i),this.fire("move"),e.debounceMoveend?(clearTimeout(this._sizeTimer),this._sizeTimer=setTimeout(c.bind(this.fire,this,"moveend"),200)):this.fire("moveend")),this.fire("resize",{oldSize:t,newSize:n})):this},addHandler:function(e,t){if(!t)return this;var n=this[e]=new t(this);return this._handlers.push(n),this.options[e]&&n.enable(),this},remove:function(){this._loaded&&this.fire("unload"),this._initEvents("off");try{delete this._container._leaflet}catch(e){this._container._leaflet=u}return this._clearPanes(),this._clearControlPos&&this._clearControlPos(),this._clearHandlers(),this},getCenter:function(){return this._checkIfLoaded(),this._initialCenter&&!this._moved()?this._initialCenter:this.layerPointToLatLng(this._getCenterLayerPoint())},getZoom:function(){return this._zoom},getBounds:function(){var e=this.getPixelBounds(),t=this.unproject(e.getBottomLeft()),n=this.unproject(e.getTopRight());return new c.LatLngBounds(t,n)},getMinZoom:function(){return this.options.minZoom===u?this._layersMinZoom===u?0:this._layersMinZoom:this.options.minZoom},getMaxZoom:function(){return this.options.maxZoom===u?this._layersMaxZoom===u?1/0:this._layersMaxZoom:this.options.maxZoom},getBoundsZoom:function(e,t,n){e=c.latLngBounds(e);var r,o=this.getMinZoom()-(t?1:0),i=this.getMaxZoom(),a=this.getSize(),s=e.getNorthWest(),u=e.getSouthEast(),l=!0;n=c.point(n||[0,0]);do o++,r=this.project(u,o).subtract(this.project(s,o)).add(n),l=t?r.x<a.x||r.y<a.y:a.contains(r);while(l&&i>=o);return l&&t?null:t?o:o-1},getSize:function(){return this._size&&!this._sizeChanged||(this._size=new c.Point(this._container.clientWidth,this._container.clientHeight),this._sizeChanged=!1),this._size.clone()},getPixelBounds:function(){var e=this._getTopLeftPoint();return new c.Bounds(e,e.add(this.getSize()))},getPixelOrigin:function(){return this._checkIfLoaded(),this._initialTopLeftPoint},getPanes:function(){return this._panes},getContainer:function(){return this._container},getZoomScale:function(e){var t=this.options.crs;return t.scale(e)/t.scale(this._zoom);
  },getScaleZoom:function(e){return this._zoom+Math.log(e)/Math.LN2},project:function(e,t){return t=t===u?this._zoom:t,this.options.crs.latLngToPoint(c.latLng(e),t)},unproject:function(e,t){return t=t===u?this._zoom:t,this.options.crs.pointToLatLng(c.point(e),t)},layerPointToLatLng:function(e){var t=c.point(e).add(this.getPixelOrigin());return this.unproject(t)},latLngToLayerPoint:function(e){var t=this.project(c.latLng(e))._round();return t._subtract(this.getPixelOrigin())},containerPointToLayerPoint:function(e){return c.point(e).subtract(this._getMapPanePos())},layerPointToContainerPoint:function(e){return c.point(e).add(this._getMapPanePos())},containerPointToLatLng:function(e){var t=this.containerPointToLayerPoint(c.point(e));return this.layerPointToLatLng(t)},latLngToContainerPoint:function(e){return this.layerPointToContainerPoint(this.latLngToLayerPoint(c.latLng(e)))},mouseEventToContainerPoint:function(e){return c.DomEvent.getMousePosition(e,this._container)},mouseEventToLayerPoint:function(e){return this.containerPointToLayerPoint(this.mouseEventToContainerPoint(e))},mouseEventToLatLng:function(e){return this.layerPointToLatLng(this.mouseEventToLayerPoint(e))},_initContainer:function(e){var t=this._container=c.DomUtil.get(e);if(!t)throw new Error("Map container not found.");if(t._leaflet)throw new Error("Map container is already initialized.");t._leaflet=!0},_initLayout:function(){var e=this._container;c.DomUtil.addClass(e,"leaflet-container"+(c.Browser.touch?" leaflet-touch":"")+(c.Browser.retina?" leaflet-retina":"")+(c.Browser.ielt9?" leaflet-oldie":"")+(this.options.fadeAnimation?" leaflet-fade-anim":""));var t=c.DomUtil.getStyle(e,"position");"absolute"!==t&&"relative"!==t&&"fixed"!==t&&(e.style.position="relative"),this._initPanes(),this._initControlPos&&this._initControlPos()},_initPanes:function(){var e=this._panes={};this._mapPane=e.mapPane=this._createPane("leaflet-map-pane",this._container),this._tilePane=e.tilePane=this._createPane("leaflet-tile-pane",this._mapPane),e.objectsPane=this._createPane("leaflet-objects-pane",this._mapPane),e.shadowPane=this._createPane("leaflet-shadow-pane"),e.overlayPane=this._createPane("leaflet-overlay-pane"),e.markerPane=this._createPane("leaflet-marker-pane"),e.popupPane=this._createPane("leaflet-popup-pane");var t=" leaflet-zoom-hide";this.options.markerZoomAnimation||(c.DomUtil.addClass(e.markerPane,t),c.DomUtil.addClass(e.shadowPane,t),c.DomUtil.addClass(e.popupPane,t))},_createPane:function(e,t){return c.DomUtil.create("div",e,t||this._panes.objectsPane)},_clearPanes:function(){this._container.removeChild(this._mapPane)},_addLayers:function(e){e=e?c.Util.isArray(e)?e:[e]:[];for(var t=0,n=e.length;n>t;t++)this.addLayer(e[t])},_resetView:function(e,t,n,r){var o=this._zoom!==t;r||(this.fire("movestart"),o&&this.fire("zoomstart")),this._zoom=t,this._initialCenter=e,this._initialTopLeftPoint=this._getNewTopLeftPoint(e),n?this._initialTopLeftPoint._add(this._getMapPanePos()):c.DomUtil.setPosition(this._mapPane,new c.Point(0,0)),this._tileLayersToLoad=this._tileLayersNum;var i=!this._loaded;this._loaded=!0,this.fire("viewreset",{hard:!n}),i&&(this.fire("load"),this.eachLayer(this._layerAdd,this)),this.fire("move"),(o||r)&&this.fire("zoomend"),this.fire("moveend",{hard:!n})},_rawPanBy:function(e){c.DomUtil.setPosition(this._mapPane,this._getMapPanePos().subtract(e))},_getZoomSpan:function(){return this.getMaxZoom()-this.getMinZoom()},_updateZoomLevels:function(){var e,t=1/0,n=-(1/0),r=this._getZoomSpan();for(e in this._zoomBoundLayers){var o=this._zoomBoundLayers[e];isNaN(o.options.minZoom)||(t=Math.min(t,o.options.minZoom)),isNaN(o.options.maxZoom)||(n=Math.max(n,o.options.maxZoom))}e===u?this._layersMaxZoom=this._layersMinZoom=u:(this._layersMaxZoom=n,this._layersMinZoom=t),r!==this._getZoomSpan()&&this.fire("zoomlevelschange")},_panInsideMaxBounds:function(){this.panInsideBounds(this.options.maxBounds)},_checkIfLoaded:function(){if(!this._loaded)throw new Error("Set map center and zoom first.")},_initEvents:function(e){if(c.DomEvent){e=e||"on",c.DomEvent[e](this._container,"click",this._onMouseClick,this);var t,n,r=["dblclick","mousedown","mouseup","mouseenter","mouseleave","mousemove","contextmenu"];for(t=0,n=r.length;n>t;t++)c.DomEvent[e](this._container,r[t],this._fireMouseEvent,this);this.options.trackResize&&c.DomEvent[e](a,"resize",this._onResize,this)}},_onResize:function(){c.Util.cancelAnimFrame(this._resizeRequest),this._resizeRequest=c.Util.requestAnimFrame(function(){this.invalidateSize({debounceMoveend:!0})},this,!1,this._container)},_onMouseClick:function(e){!this._loaded||!e._simulated&&(this.dragging&&this.dragging.moved()||this.boxZoom&&this.boxZoom.moved())||c.DomEvent._skipped(e)||(this.fire("preclick"),this._fireMouseEvent(e))},_fireMouseEvent:function(e){if(this._loaded&&!c.DomEvent._skipped(e)){var t=e.type;if(t="mouseenter"===t?"mouseover":"mouseleave"===t?"mouseout":t,this.hasEventListeners(t)){"contextmenu"===t&&c.DomEvent.preventDefault(e);var n=this.mouseEventToContainerPoint(e),r=this.containerPointToLayerPoint(n),o=this.layerPointToLatLng(r);this.fire(t,{latlng:o,layerPoint:r,containerPoint:n,originalEvent:e})}}},_onTileLayerLoad:function(){this._tileLayersToLoad--,this._tileLayersNum&&!this._tileLayersToLoad&&this.fire("tilelayersload")},_clearHandlers:function(){for(var e=0,t=this._handlers.length;t>e;e++)this._handlers[e].disable()},whenReady:function(e,t){return this._loaded?e.call(t||this,this):this.on("load",e,t),this},_layerAdd:function(e){e.onAdd(this),this.fire("layeradd",{layer:e})},_getMapPanePos:function(){return c.DomUtil.getPosition(this._mapPane)},_moved:function(){var e=this._getMapPanePos();return e&&!e.equals([0,0])},_getTopLeftPoint:function(){return this.getPixelOrigin().subtract(this._getMapPanePos())},_getNewTopLeftPoint:function(e,t){var n=this.getSize()._divideBy(2);return this.project(e,t)._subtract(n)._round()},_latLngToNewLayerPoint:function(e,t,n){var r=this._getNewTopLeftPoint(n,t).add(this._getMapPanePos());return this.project(e,t)._subtract(r)},_getCenterLayerPoint:function(){return this.containerPointToLayerPoint(this.getSize()._divideBy(2))},_getCenterOffset:function(e){return this.latLngToLayerPoint(e).subtract(this._getCenterLayerPoint())},_limitCenter:function(e,t,n){if(!n)return e;var r=this.project(e,t),o=this.getSize().divideBy(2),i=new c.Bounds(r.subtract(o),r.add(o)),a=this._getBoundsOffset(i,n,t);return this.unproject(r.add(a),t)},_limitOffset:function(e,t){if(!t)return e;var n=this.getPixelBounds(),r=new c.Bounds(n.min.add(e),n.max.add(e));return e.add(this._getBoundsOffset(r,t))},_getBoundsOffset:function(e,t,n){var r=this.project(t.getNorthWest(),n).subtract(e.min),o=this.project(t.getSouthEast(),n).subtract(e.max),i=this._rebound(r.x,-o.x),a=this._rebound(r.y,-o.y);return new c.Point(i,a)},_rebound:function(e,t){return e+t>0?Math.round(e-t)/2:Math.max(0,Math.ceil(e))-Math.max(0,Math.floor(t))},_limitZoom:function(e){var t=this.getMinZoom(),n=this.getMaxZoom();return Math.max(t,Math.min(n,e))}}),c.map=function(e,t){return new c.Map(e,t)},c.Projection.Mercator={MAX_LATITUDE:85.0840591556,R_MINOR:6356752.314245179,R_MAJOR:6378137,project:function(e){var t=c.LatLng.DEG_TO_RAD,n=this.MAX_LATITUDE,r=Math.max(Math.min(n,e.lat),-n),o=this.R_MAJOR,i=this.R_MINOR,a=e.lng*t*o,s=r*t,u=i/o,l=Math.sqrt(1-u*u),p=l*Math.sin(s);p=Math.pow((1-p)/(1+p),.5*l);var f=Math.tan(.5*(.5*Math.PI-s))/p;return s=-o*Math.log(f),new c.Point(a,s)},unproject:function(e){for(var t,n=c.LatLng.RAD_TO_DEG,r=this.R_MAJOR,o=this.R_MINOR,i=e.x*n/r,a=o/r,s=Math.sqrt(1-a*a),u=Math.exp(-e.y/r),l=Math.PI/2-2*Math.atan(u),p=15,f=1e-7,h=p,d=.1;Math.abs(d)>f&&--h>0;)t=s*Math.sin(l),d=Math.PI/2-2*Math.atan(u*Math.pow((1-t)/(1+t),.5*s))-l,l+=d;return new c.LatLng(l*n,i)}},c.CRS.EPSG3395=c.extend({},c.CRS,{code:"EPSG:3395",projection:c.Projection.Mercator,transformation:function(){var e=c.Projection.Mercator,t=e.R_MAJOR,n=.5/(Math.PI*t);return new c.Transformation(n,.5,-n,.5)}()}),c.TileLayer=c.Class.extend({includes:c.Mixin.Events,options:{minZoom:0,maxZoom:18,tileSize:256,subdomains:"abc",errorTileUrl:"",attribution:"",zoomOffset:0,opacity:1,unloadInvisibleTiles:c.Browser.mobile,updateWhenIdle:c.Browser.mobile},initialize:function(e,t){t=c.setOptions(this,t),t.detectRetina&&c.Browser.retina&&t.maxZoom>0&&(t.tileSize=Math.floor(t.tileSize/2),t.zoomOffset++,t.minZoom>0&&t.minZoom--,this.options.maxZoom--),t.bounds&&(t.bounds=c.latLngBounds(t.bounds)),this._url=e;var n=this.options.subdomains;"string"==typeof n&&(this.options.subdomains=n.split(""))},onAdd:function(e){this._map=e,this._animated=e._zoomAnimated,this._initContainer(),e.on({viewreset:this._reset,moveend:this._update},this),this._animated&&e.on({zoomanim:this._animateZoom,zoomend:this._endZoomAnim},this),this.options.updateWhenIdle||(this._limitedUpdate=c.Util.limitExecByInterval(this._update,150,this),e.on("move",this._limitedUpdate,this)),this._reset(),this._update()},addTo:function(e){return e.addLayer(this),this},onRemove:function(e){this._container.parentNode.removeChild(this._container),e.off({viewreset:this._reset,moveend:this._update},this),this._animated&&e.off({zoomanim:this._animateZoom,zoomend:this._endZoomAnim},this),this.options.updateWhenIdle||e.off("move",this._limitedUpdate,this),this._container=null,this._map=null},bringToFront:function(){var e=this._map._panes.tilePane;return this._container&&(e.appendChild(this._container),this._setAutoZIndex(e,Math.max)),this},bringToBack:function(){var e=this._map._panes.tilePane;return this._container&&(e.insertBefore(this._container,e.firstChild),this._setAutoZIndex(e,Math.min)),this},getAttribution:function(){return this.options.attribution},getContainer:function(){return this._container},setOpacity:function(e){return this.options.opacity=e,this._map&&this._updateOpacity(),this},setZIndex:function(e){return this.options.zIndex=e,this._updateZIndex(),this},setUrl:function(e,t){return this._url=e,t||this.redraw(),this},redraw:function(){return this._map&&(this._reset({hard:!0}),this._update()),this},_updateZIndex:function(){this._container&&this.options.zIndex!==u&&(this._container.style.zIndex=this.options.zIndex)},_setAutoZIndex:function(e,t){var n,r,o,i=e.children,a=-t(1/0,-(1/0));for(r=0,o=i.length;o>r;r++)i[r]!==this._container&&(n=parseInt(i[r].style.zIndex,10),isNaN(n)||(a=t(a,n)));this.options.zIndex=this._container.style.zIndex=(isFinite(a)?a:0)+t(1,-1)},_updateOpacity:function(){var e,t=this._tiles;if(c.Browser.ielt9)for(e in t)c.DomUtil.setOpacity(t[e],this.options.opacity);else c.DomUtil.setOpacity(this._container,this.options.opacity)},_initContainer:function(){var e=this._map._panes.tilePane;if(!this._container){if(this._container=c.DomUtil.create("div","leaflet-layer"),this._updateZIndex(),this._animated){var t="leaflet-tile-container";this._bgBuffer=c.DomUtil.create("div",t,this._container),this._tileContainer=c.DomUtil.create("div",t,this._container)}else this._tileContainer=this._container;e.appendChild(this._container),this.options.opacity<1&&this._updateOpacity()}},_reset:function(e){for(var t in this._tiles)this.fire("tileunload",{tile:this._tiles[t]});this._tiles={},this._tilesToLoad=0,this.options.reuseTiles&&(this._unusedTiles=[]),this._tileContainer.innerHTML="",this._animated&&e&&e.hard&&this._clearBgBuffer(),this._initContainer()},_getTileSize:function(){var e=this._map,t=e.getZoom()+this.options.zoomOffset,n=this.options.maxNativeZoom,r=this.options.tileSize;return n&&t>n&&(r=Math.round(e.getZoomScale(t)/e.getZoomScale(n)*r)),r},_update:function(){if(this._map){var e=this._map,t=e.getPixelBounds(),n=e.getZoom(),r=this._getTileSize();if(!(n>this.options.maxZoom||n<this.options.minZoom)){var o=c.bounds(t.min.divideBy(r)._floor(),t.max.divideBy(r)._floor());this._addTilesFromCenterOut(o),(this.options.unloadInvisibleTiles||this.options.reuseTiles)&&this._removeOtherTiles(o)}}},_addTilesFromCenterOut:function(e){var t,n,r,o=[],i=e.getCenter();for(t=e.min.y;t<=e.max.y;t++)for(n=e.min.x;n<=e.max.x;n++)r=new c.Point(n,t),this._tileShouldBeLoaded(r)&&o.push(r);var a=o.length;if(0!==a){o.sort(function(e,t){return e.distanceTo(i)-t.distanceTo(i)});var u=s.createDocumentFragment();for(this._tilesToLoad||this.fire("loading"),this._tilesToLoad+=a,n=0;a>n;n++)this._addTile(o[n],u);this._tileContainer.appendChild(u)}},_tileShouldBeLoaded:function(e){if(e.x+":"+e.y in this._tiles)return!1;var t=this.options;if(!t.continuousWorld){var n=this._getWrapTileNum();if(t.noWrap&&(e.x<0||e.x>=n.x)||e.y<0||e.y>=n.y)return!1}if(t.bounds){var r=this._getTileSize(),o=e.multiplyBy(r),i=o.add([r,r]),a=this._map.unproject(o),s=this._map.unproject(i);if(t.continuousWorld||t.noWrap||(a=a.wrap(),s=s.wrap()),!t.bounds.intersects([a,s]))return!1}return!0},_removeOtherTiles:function(e){var t,n,r,o;for(o in this._tiles)t=o.split(":"),n=parseInt(t[0],10),r=parseInt(t[1],10),(n<e.min.x||n>e.max.x||r<e.min.y||r>e.max.y)&&this._removeTile(o)},_removeTile:function(e){var t=this._tiles[e];this.fire("tileunload",{tile:t,url:t.src}),this.options.reuseTiles?(c.DomUtil.removeClass(t,"leaflet-tile-loaded"),this._unusedTiles.push(t)):t.parentNode===this._tileContainer&&this._tileContainer.removeChild(t),c.Browser.android||(t.onload=null,t.src=c.Util.emptyImageUrl),delete this._tiles[e]},_addTile:function(e,t){var n=this._getTilePos(e),r=this._getTile();c.DomUtil.setPosition(r,n,c.Browser.chrome),this._tiles[e.x+":"+e.y]=r,this._loadTile(r,e),r.parentNode!==this._tileContainer&&t.appendChild(r)},_getZoomForUrl:function(){var e=this.options,t=this._map.getZoom();return e.zoomReverse&&(t=e.maxZoom-t),t+=e.zoomOffset,e.maxNativeZoom?Math.min(t,e.maxNativeZoom):t},_getTilePos:function(e){var t=this._map.getPixelOrigin(),n=this._getTileSize();return e.multiplyBy(n).subtract(t)},getTileUrl:function(e){return c.Util.template(this._url,c.extend({s:this._getSubdomain(e),z:e.z,x:e.x,y:e.y},this.options))},_getWrapTileNum:function(){var e=this._map.options.crs,t=e.getSize(this._map.getZoom());return t.divideBy(this._getTileSize())._floor()},_adjustTilePoint:function(e){var t=this._getWrapTileNum();this.options.continuousWorld||this.options.noWrap||(e.x=(e.x%t.x+t.x)%t.x),this.options.tms&&(e.y=t.y-e.y-1),e.z=this._getZoomForUrl()},_getSubdomain:function(e){var t=Math.abs(e.x+e.y)%this.options.subdomains.length;return this.options.subdomains[t]},_getTile:function(){if(this.options.reuseTiles&&this._unusedTiles.length>0){var e=this._unusedTiles.pop();return this._resetTile(e),e}return this._createTile()},_resetTile:function(){},_createTile:function(){var e=c.DomUtil.create("img","leaflet-tile");return e.style.width=e.style.height=this._getTileSize()+"px",e.galleryimg="no",e.onselectstart=e.onmousemove=c.Util.falseFn,c.Browser.ielt9&&this.options.opacity!==u&&c.DomUtil.setOpacity(e,this.options.opacity),c.Browser.mobileWebkit3d&&(e.style.WebkitBackfaceVisibility="hidden"),e},_loadTile:function(e,t){e._layer=this,e.onload=this._tileOnLoad,e.onerror=this._tileOnError,this._adjustTilePoint(t),e.src=this.getTileUrl(t),this.fire("tileloadstart",{tile:e,url:e.src})},_tileLoaded:function(){this._tilesToLoad--,this._animated&&c.DomUtil.addClass(this._tileContainer,"leaflet-zoom-animated"),this._tilesToLoad||(this.fire("load"),this._animated&&(clearTimeout(this._clearBgBufferTimer),this._clearBgBufferTimer=setTimeout(c.bind(this._clearBgBuffer,this),500)))},_tileOnLoad:function(){var e=this._layer;this.src!==c.Util.emptyImageUrl&&(c.DomUtil.addClass(this,"leaflet-tile-loaded"),e.fire("tileload",{tile:this,url:this.src})),e._tileLoaded()},_tileOnError:function(){var e=this._layer;e.fire("tileerror",{tile:this,url:this.src});var t=e.options.errorTileUrl;t&&(this.src=t),e._tileLoaded()}}),c.tileLayer=function(e,t){return new c.TileLayer(e,t)},c.TileLayer.WMS=c.TileLayer.extend({defaultWmsParams:{service:"WMS",request:"GetMap",version:"1.1.1",layers:"",styles:"",format:"image/jpeg",transparent:!1},initialize:function(e,t){this._url=e;var n=c.extend({},this.defaultWmsParams),r=t.tileSize||this.options.tileSize;t.detectRetina&&c.Browser.retina?n.width=n.height=2*r:n.width=n.height=r;for(var o in t)this.options.hasOwnProperty(o)||"crs"===o||(n[o]=t[o]);this.wmsParams=n,c.setOptions(this,t)},onAdd:function(e){this._crs=this.options.crs||e.options.crs,this._wmsVersion=parseFloat(this.wmsParams.version);var t=this._wmsVersion>=1.3?"crs":"srs";this.wmsParams[t]=this._crs.code,c.TileLayer.prototype.onAdd.call(this,e)},getTileUrl:function(e){var t=this._map,n=this.options.tileSize,r=e.multiplyBy(n),o=r.add([n,n]),i=this._crs.project(t.unproject(r,e.z)),a=this._crs.project(t.unproject(o,e.z)),s=this._wmsVersion>=1.3&&this._crs===c.CRS.EPSG4326?[a.y,i.x,i.y,a.x].join(","):[i.x,a.y,a.x,i.y].join(","),u=c.Util.template(this._url,{s:this._getSubdomain(e)});return u+c.Util.getParamString(this.wmsParams,u,!0)+"&BBOX="+s},setParams:function(e,t){return c.extend(this.wmsParams,e),t||this.redraw(),this}}),c.tileLayer.wms=function(e,t){return new c.TileLayer.WMS(e,t)},c.TileLayer.Canvas=c.TileLayer.extend({options:{async:!1},initialize:function(e){c.setOptions(this,e)},redraw:function(){this._map&&(this._reset({hard:!0}),this._update());for(var e in this._tiles)this._redrawTile(this._tiles[e]);return this},_redrawTile:function(e){this.drawTile(e,e._tilePoint,this._map._zoom)},_createTile:function(){var e=c.DomUtil.create("canvas","leaflet-tile");return e.width=e.height=this.options.tileSize,e.onselectstart=e.onmousemove=c.Util.falseFn,e},_loadTile:function(e,t){e._layer=this,e._tilePoint=t,this._redrawTile(e),this.options.async||this.tileDrawn(e)},drawTile:function(){},tileDrawn:function(e){this._tileOnLoad.call(e)}}),c.tileLayer.canvas=function(e){return new c.TileLayer.Canvas(e)},c.ImageOverlay=c.Class.extend({includes:c.Mixin.Events,options:{opacity:1},initialize:function(e,t,n){this._url=e,this._bounds=c.latLngBounds(t),c.setOptions(this,n)},onAdd:function(e){this._map=e,this._image||this._initImage(),e._panes.overlayPane.appendChild(this._image),e.on("viewreset",this._reset,this),e.options.zoomAnimation&&c.Browser.any3d&&e.on("zoomanim",this._animateZoom,this),this._reset()},onRemove:function(e){e.getPanes().overlayPane.removeChild(this._image),e.off("viewreset",this._reset,this),e.options.zoomAnimation&&e.off("zoomanim",this._animateZoom,this)},addTo:function(e){return e.addLayer(this),this},setOpacity:function(e){return this.options.opacity=e,this._updateOpacity(),this},bringToFront:function(){return this._image&&this._map._panes.overlayPane.appendChild(this._image),this},bringToBack:function(){var e=this._map._panes.overlayPane;return this._image&&e.insertBefore(this._image,e.firstChild),this},setUrl:function(e){this._url=e,this._image.src=this._url},getAttribution:function(){return this.options.attribution},_initImage:function(){this._image=c.DomUtil.create("img","leaflet-image-layer"),this._map.options.zoomAnimation&&c.Browser.any3d?c.DomUtil.addClass(this._image,"leaflet-zoom-animated"):c.DomUtil.addClass(this._image,"leaflet-zoom-hide"),this._updateOpacity(),c.extend(this._image,{galleryimg:"no",onselectstart:c.Util.falseFn,onmousemove:c.Util.falseFn,onload:c.bind(this._onImageLoad,this),src:this._url})},_animateZoom:function(e){var t=this._map,n=this._image,r=t.getZoomScale(e.zoom),o=this._bounds.getNorthWest(),i=this._bounds.getSouthEast(),a=t._latLngToNewLayerPoint(o,e.zoom,e.center),s=t._latLngToNewLayerPoint(i,e.zoom,e.center)._subtract(a),u=a._add(s._multiplyBy(.5*(1-1/r)));n.style[c.DomUtil.TRANSFORM]=c.DomUtil.getTranslateString(u)+" scale("+r+") "},_reset:function(){var e=this._image,t=this._map.latLngToLayerPoint(this._bounds.getNorthWest()),n=this._map.latLngToLayerPoint(this._bounds.getSouthEast())._subtract(t);c.DomUtil.setPosition(e,t),e.style.width=n.x+"px",e.style.height=n.y+"px"},_onImageLoad:function(){this.fire("load")},_updateOpacity:function(){c.DomUtil.setOpacity(this._image,this.options.opacity)}}),c.imageOverlay=function(e,t,n){return new c.ImageOverlay(e,t,n)},c.Icon=c.Class.extend({options:{className:""},initialize:function(e){c.setOptions(this,e)},createIcon:function(e){return this._createIcon("icon",e)},createShadow:function(e){return this._createIcon("shadow",e)},_createIcon:function(e,t){var n=this._getIconUrl(e);if(!n){if("icon"===e)throw new Error("iconUrl not set in Icon options (see the docs).");return null}var r;return r=t&&"IMG"===t.tagName?this._createImg(n,t):this._createImg(n),this._setIconStyles(r,e),r},_setIconStyles:function(e,t){var n,r=this.options,o=c.point(r[t+"Size"]);n="shadow"===t?c.point(r.shadowAnchor||r.iconAnchor):c.point(r.iconAnchor),!n&&o&&(n=o.divideBy(2,!0)),e.className="leaflet-marker-"+t+" "+r.className,n&&(e.style.marginLeft=-n.x+"px",e.style.marginTop=-n.y+"px"),o&&(e.style.width=o.x+"px",e.style.height=o.y+"px")},_createImg:function(e,t){return t=t||s.createElement("img"),t.src=e,t},_getIconUrl:function(e){return c.Browser.retina&&this.options[e+"RetinaUrl"]?this.options[e+"RetinaUrl"]:this.options[e+"Url"]}}),c.icon=function(e){return new c.Icon(e)},c.Icon.Default=c.Icon.extend({options:{iconSize:[25,41],iconAnchor:[12,41],popupAnchor:[1,-34],shadowSize:[41,41]},_getIconUrl:function(e){var t=e+"Url";if(this.options[t])return this.options[t];c.Browser.retina&&"icon"===e&&(e+="-2x");var n=c.Icon.Default.imagePath;if(!n)throw new Error("Couldn't autodetect L.Icon.Default.imagePath, set it manually.");return n+"/marker-"+e+".png"}}),c.Icon.Default.imagePath=function(){var e,t,n,r,o,i=s.getElementsByTagName("script"),a=/[\/^]leaflet[\-\._]?([\w\-\._]*)\.js\??/;for(e=0,t=i.length;t>e;e++)if(n=i[e].src,r=n.match(a))return o=n.split(a)[0],(o?o+"/":"")+"images"}(),c.Marker=c.Class.extend({includes:c.Mixin.Events,options:{icon:new c.Icon.Default,title:"",alt:"",clickable:!0,draggable:!1,keyboard:!0,zIndexOffset:0,opacity:1,riseOnHover:!1,riseOffset:250},initialize:function(e,t){c.setOptions(this,t),this._latlng=c.latLng(e)},onAdd:function(e){this._map=e,e.on("viewreset",this.update,this),this._initIcon(),this.update(),this.fire("add"),e.options.zoomAnimation&&e.options.markerZoomAnimation&&e.on("zoomanim",this._animateZoom,this)},addTo:function(e){return e.addLayer(this),this},onRemove:function(e){this.dragging&&this.dragging.disable(),this._removeIcon(),this._removeShadow(),this.fire("remove"),e.off({viewreset:this.update,zoomanim:this._animateZoom},this),this._map=null},getLatLng:function(){return this._latlng},setLatLng:function(e){return this._latlng=c.latLng(e),this.update(),this.fire("move",{latlng:this._latlng})},setZIndexOffset:function(e){return this.options.zIndexOffset=e,this.update(),this},setIcon:function(e){return this.options.icon=e,this._map&&(this._initIcon(),this.update()),this._popup&&this.bindPopup(this._popup),this},update:function(){return this._icon&&this._setPos(this._map.latLngToLayerPoint(this._latlng).round()),this},_initIcon:function(){var e=this.options,t=this._map,n=t.options.zoomAnimation&&t.options.markerZoomAnimation,r=n?"leaflet-zoom-animated":"leaflet-zoom-hide",o=e.icon.createIcon(this._icon),i=!1;o!==this._icon&&(this._icon&&this._removeIcon(),i=!0,e.title&&(o.title=e.title),e.alt&&(o.alt=e.alt)),c.DomUtil.addClass(o,r),e.keyboard&&(o.tabIndex="0"),this._icon=o,this._initInteraction(),e.riseOnHover&&c.DomEvent.on(o,"mouseover",this._bringToFront,this).on(o,"mouseout",this._resetZIndex,this);var a=e.icon.createShadow(this._shadow),s=!1;a!==this._shadow&&(this._removeShadow(),s=!0),a&&c.DomUtil.addClass(a,r),this._shadow=a,e.opacity<1&&this._updateOpacity();var u=this._map._panes;i&&u.markerPane.appendChild(this._icon),a&&s&&u.shadowPane.appendChild(this._shadow)},_removeIcon:function(){this.options.riseOnHover&&c.DomEvent.off(this._icon,"mouseover",this._bringToFront).off(this._icon,"mouseout",this._resetZIndex),this._map._panes.markerPane.removeChild(this._icon),this._icon=null},_removeShadow:function(){this._shadow&&this._map._panes.shadowPane.removeChild(this._shadow),this._shadow=null},_setPos:function(e){c.DomUtil.setPosition(this._icon,e),this._shadow&&c.DomUtil.setPosition(this._shadow,e),this._zIndex=e.y+this.options.zIndexOffset,this._resetZIndex()},_updateZIndex:function(e){this._icon.style.zIndex=this._zIndex+e},_animateZoom:function(e){var t=this._map._latLngToNewLayerPoint(this._latlng,e.zoom,e.center).round();this._setPos(t)},_initInteraction:function(){if(this.options.clickable){var e=this._icon,t=["dblclick","mousedown","mouseover","mouseout","contextmenu"];c.DomUtil.addClass(e,"leaflet-clickable"),c.DomEvent.on(e,"click",this._onMouseClick,this),c.DomEvent.on(e,"keypress",this._onKeyPress,this);for(var n=0;n<t.length;n++)c.DomEvent.on(e,t[n],this._fireMouseEvent,this);c.Handler.MarkerDrag&&(this.dragging=new c.Handler.MarkerDrag(this),this.options.draggable&&this.dragging.enable())}},_onMouseClick:function(e){var t=this.dragging&&this.dragging.moved();(this.hasEventListeners(e.type)||t)&&c.DomEvent.stopPropagation(e),t||(this.dragging&&this.dragging._enabled||!this._map.dragging||!this._map.dragging.moved())&&this.fire(e.type,{originalEvent:e,latlng:this._latlng})},_onKeyPress:function(e){13===e.keyCode&&this.fire("click",{originalEvent:e,latlng:this._latlng})},_fireMouseEvent:function(e){this.fire(e.type,{originalEvent:e,latlng:this._latlng}),"contextmenu"===e.type&&this.hasEventListeners(e.type)&&c.DomEvent.preventDefault(e),"mousedown"!==e.type?c.DomEvent.stopPropagation(e):c.DomEvent.preventDefault(e)},setOpacity:function(e){return this.options.opacity=e,this._map&&this._updateOpacity(),this},_updateOpacity:function(){c.DomUtil.setOpacity(this._icon,this.options.opacity),this._shadow&&c.DomUtil.setOpacity(this._shadow,this.options.opacity)},_bringToFront:function(){this._updateZIndex(this.options.riseOffset)},_resetZIndex:function(){this._updateZIndex(0)}}),c.marker=function(e,t){return new c.Marker(e,t)},c.DivIcon=c.Icon.extend({options:{iconSize:[12,12],className:"leaflet-div-icon",html:!1},createIcon:function(e){var t=e&&"DIV"===e.tagName?e:s.createElement("div"),n=this.options;return n.html!==!1?t.innerHTML=n.html:t.innerHTML="",n.bgPos&&(t.style.backgroundPosition=-n.bgPos.x+"px "+-n.bgPos.y+"px"),this._setIconStyles(t,"icon"),t},createShadow:function(){return null}}),c.divIcon=function(e){return new c.DivIcon(e)},c.Map.mergeOptions({closePopupOnClick:!0}),c.Popup=c.Class.extend({includes:c.Mixin.Events,options:{minWidth:50,maxWidth:300,autoPan:!0,closeButton:!0,offset:[0,7],autoPanPadding:[5,5],keepInView:!1,className:"",zoomAnimation:!0},initialize:function(e,t){c.setOptions(this,e),this._source=t,this._animated=c.Browser.any3d&&this.options.zoomAnimation,this._isOpen=!1},onAdd:function(e){this._map=e,this._container||this._initLayout();var t=e.options.fadeAnimation;t&&c.DomUtil.setOpacity(this._container,0),e._panes.popupPane.appendChild(this._container),e.on(this._getEvents(),this),this.update(),t&&c.DomUtil.setOpacity(this._container,1),this.fire("open"),e.fire("popupopen",{popup:this}),this._source&&this._source.fire("popupopen",{popup:this})},addTo:function(e){return e.addLayer(this),this},openOn:function(e){return e.openPopup(this),this},onRemove:function(e){e._panes.popupPane.removeChild(this._container),c.Util.falseFn(this._container.offsetWidth),e.off(this._getEvents(),this),e.options.fadeAnimation&&c.DomUtil.setOpacity(this._container,0),this._map=null,this.fire("close"),e.fire("popupclose",{popup:this}),this._source&&this._source.fire("popupclose",{popup:this})},getLatLng:function(){return this._latlng},setLatLng:function(e){return this._latlng=c.latLng(e),this._map&&(this._updatePosition(),this._adjustPan()),this},getContent:function(){return this._content},setContent:function(e){return this._content=e,this.update(),this},update:function(){this._map&&(this._container.style.visibility="hidden",this._updateContent(),this._updateLayout(),this._updatePosition(),this._container.style.visibility="",this._adjustPan())},_getEvents:function(){var e={viewreset:this._updatePosition};return this._animated&&(e.zoomanim=this._zoomAnimation),("closeOnClick"in this.options?this.options.closeOnClick:this._map.options.closePopupOnClick)&&(e.preclick=this._close),this.options.keepInView&&(e.moveend=this._adjustPan),e},_close:function(){this._map&&this._map.closePopup(this)},_initLayout:function(){var e,t="leaflet-popup",n=t+" "+this.options.className+" leaflet-zoom-"+(this._animated?"animated":"hide"),r=this._container=c.DomUtil.create("div",n);this.options.closeButton&&(e=this._closeButton=c.DomUtil.create("a",t+"-close-button",r),e.href="#close",e.innerHTML="&#215;",c.DomEvent.disableClickPropagation(e),c.DomEvent.on(e,"click",this._onCloseButtonClick,this));var o=this._wrapper=c.DomUtil.create("div",t+"-content-wrapper",r);c.DomEvent.disableClickPropagation(o),this._contentNode=c.DomUtil.create("div",t+"-content",o),c.DomEvent.disableScrollPropagation(this._contentNode),c.DomEvent.on(o,"contextmenu",c.DomEvent.stopPropagation),this._tipContainer=c.DomUtil.create("div",t+"-tip-container",r),this._tip=c.DomUtil.create("div",t+"-tip",this._tipContainer)},_updateContent:function(){if(this._content){if("string"==typeof this._content)this._contentNode.innerHTML=this._content;else{for(;this._contentNode.hasChildNodes();)this._contentNode.removeChild(this._contentNode.firstChild);this._contentNode.appendChild(this._content)}this.fire("contentupdate")}},_updateLayout:function(){var e=this._contentNode,t=e.style;t.width="",t.whiteSpace="nowrap";var n=e.offsetWidth;n=Math.min(n,this.options.maxWidth),n=Math.max(n,this.options.minWidth),t.width=n+1+"px",t.whiteSpace="",t.height="";var r=e.offsetHeight,o=this.options.maxHeight,i="leaflet-popup-scrolled";o&&r>o?(t.height=o+"px",c.DomUtil.addClass(e,i)):c.DomUtil.removeClass(e,i),this._containerWidth=this._container.offsetWidth},_updatePosition:function(){if(this._map){var e=this._map.latLngToLayerPoint(this._latlng),t=this._animated,n=c.point(this.options.offset);t&&c.DomUtil.setPosition(this._container,e),this._containerBottom=-n.y-(t?0:e.y),this._containerLeft=-Math.round(this._containerWidth/2)+n.x+(t?0:e.x),this._container.style.bottom=this._containerBottom+"px",this._container.style.left=this._containerLeft+"px"}},_zoomAnimation:function(e){var t=this._map._latLngToNewLayerPoint(this._latlng,e.zoom,e.center);c.DomUtil.setPosition(this._container,t)},_adjustPan:function(){if(this.options.autoPan){var e=this._map,t=this._container.offsetHeight,n=this._containerWidth,r=new c.Point(this._containerLeft,-t-this._containerBottom);this._animated&&r._add(c.DomUtil.getPosition(this._container));var o=e.layerPointToContainerPoint(r),i=c.point(this.options.autoPanPadding),a=c.point(this.options.autoPanPaddingTopLeft||i),s=c.point(this.options.autoPanPaddingBottomRight||i),u=e.getSize(),l=0,p=0;o.x+n+s.x>u.x&&(l=o.x+n-u.x+s.x),o.x-l-a.x<0&&(l=o.x-a.x),o.y+t+s.y>u.y&&(p=o.y+t-u.y+s.y),o.y-p-a.y<0&&(p=o.y-a.y),(l||p)&&e.fire("autopanstart").panBy([l,p])}},_onCloseButtonClick:function(e){this._close(),c.DomEvent.stop(e)}}),c.popup=function(e,t){return new c.Popup(e,t)},c.Map.include({openPopup:function(e,t,n){if(this.closePopup(),!(e instanceof c.Popup)){var r=e;e=new c.Popup(n).setLatLng(t).setContent(r)}return e._isOpen=!0,this._popup=e,this.addLayer(e)},closePopup:function(e){return e&&e!==this._popup||(e=this._popup,this._popup=null),e&&(this.removeLayer(e),e._isOpen=!1),this}}),c.Marker.include({openPopup:function(){return this._popup&&this._map&&!this._map.hasLayer(this._popup)&&(this._popup.setLatLng(this._latlng),this._map.openPopup(this._popup)),this},closePopup:function(){return this._popup&&this._popup._close(),this},togglePopup:function(){return this._popup&&(this._popup._isOpen?this.closePopup():this.openPopup()),this},bindPopup:function(e,t){var n=c.point(this.options.icon.options.popupAnchor||[0,0]);return n=n.add(c.Popup.prototype.options.offset),t&&t.offset&&(n=n.add(t.offset)),t=c.extend({offset:n},t),this._popupHandlersAdded||(this.on("click",this.togglePopup,this).on("remove",this.closePopup,this).on("move",this._movePopup,this),
  this._popupHandlersAdded=!0),e instanceof c.Popup?(c.setOptions(e,t),this._popup=e,e._source=this):this._popup=new c.Popup(t,this).setContent(e),this},setPopupContent:function(e){return this._popup&&this._popup.setContent(e),this},unbindPopup:function(){return this._popup&&(this._popup=null,this.off("click",this.togglePopup,this).off("remove",this.closePopup,this).off("move",this._movePopup,this),this._popupHandlersAdded=!1),this},getPopup:function(){return this._popup},_movePopup:function(e){this._popup.setLatLng(e.latlng)}}),c.LayerGroup=c.Class.extend({initialize:function(e){this._layers={};var t,n;if(e)for(t=0,n=e.length;n>t;t++)this.addLayer(e[t])},addLayer:function(e){var t=this.getLayerId(e);return this._layers[t]=e,this._map&&this._map.addLayer(e),this},removeLayer:function(e){var t=e in this._layers?e:this.getLayerId(e);return this._map&&this._layers[t]&&this._map.removeLayer(this._layers[t]),delete this._layers[t],this},hasLayer:function(e){return e?e in this._layers||this.getLayerId(e)in this._layers:!1},clearLayers:function(){return this.eachLayer(this.removeLayer,this),this},invoke:function(e){var t,n,r=Array.prototype.slice.call(arguments,1);for(t in this._layers)n=this._layers[t],n[e]&&n[e].apply(n,r);return this},onAdd:function(e){this._map=e,this.eachLayer(e.addLayer,e)},onRemove:function(e){this.eachLayer(e.removeLayer,e),this._map=null},addTo:function(e){return e.addLayer(this),this},eachLayer:function(e,t){for(var n in this._layers)e.call(t,this._layers[n]);return this},getLayer:function(e){return this._layers[e]},getLayers:function(){var e=[];for(var t in this._layers)e.push(this._layers[t]);return e},setZIndex:function(e){return this.invoke("setZIndex",e)},getLayerId:function(e){return c.stamp(e)}}),c.layerGroup=function(e){return new c.LayerGroup(e)},c.FeatureGroup=c.LayerGroup.extend({includes:c.Mixin.Events,statics:{EVENTS:"click dblclick mouseover mouseout mousemove contextmenu popupopen popupclose"},addLayer:function(e){return this.hasLayer(e)?this:("on"in e&&e.on(c.FeatureGroup.EVENTS,this._propagateEvent,this),c.LayerGroup.prototype.addLayer.call(this,e),this._popupContent&&e.bindPopup&&e.bindPopup(this._popupContent,this._popupOptions),this.fire("layeradd",{layer:e}))},removeLayer:function(e){return this.hasLayer(e)?(e in this._layers&&(e=this._layers[e]),"off"in e&&e.off(c.FeatureGroup.EVENTS,this._propagateEvent,this),c.LayerGroup.prototype.removeLayer.call(this,e),this._popupContent&&this.invoke("unbindPopup"),this.fire("layerremove",{layer:e})):this},bindPopup:function(e,t){return this._popupContent=e,this._popupOptions=t,this.invoke("bindPopup",e,t)},openPopup:function(e){for(var t in this._layers){this._layers[t].openPopup(e);break}return this},setStyle:function(e){return this.invoke("setStyle",e)},bringToFront:function(){return this.invoke("bringToFront")},bringToBack:function(){return this.invoke("bringToBack")},getBounds:function(){var e=new c.LatLngBounds;return this.eachLayer(function(t){e.extend(t instanceof c.Marker?t.getLatLng():t.getBounds())}),e},_propagateEvent:function(e){e=c.extend({layer:e.target,target:this},e),this.fire(e.type,e)}}),c.featureGroup=function(e){return new c.FeatureGroup(e)},c.Path=c.Class.extend({includes:[c.Mixin.Events],statics:{CLIP_PADDING:function(){var e=c.Browser.mobile?1280:2e3,t=(e/Math.max(a.outerWidth,a.outerHeight)-1)/2;return Math.max(0,Math.min(.5,t))}()},options:{stroke:!0,color:"#0033ff",dashArray:null,lineCap:null,lineJoin:null,weight:5,opacity:.5,fill:!1,fillColor:null,fillOpacity:.2,clickable:!0},initialize:function(e){c.setOptions(this,e)},onAdd:function(e){this._map=e,this._container||(this._initElements(),this._initEvents()),this.projectLatlngs(),this._updatePath(),this._container&&this._map._pathRoot.appendChild(this._container),this.fire("add"),e.on({viewreset:this.projectLatlngs,moveend:this._updatePath},this)},addTo:function(e){return e.addLayer(this),this},onRemove:function(e){e._pathRoot.removeChild(this._container),this.fire("remove"),this._map=null,c.Browser.vml&&(this._container=null,this._stroke=null,this._fill=null),e.off({viewreset:this.projectLatlngs,moveend:this._updatePath},this)},projectLatlngs:function(){},setStyle:function(e){return c.setOptions(this,e),this._container&&this._updateStyle(),this},redraw:function(){return this._map&&(this.projectLatlngs(),this._updatePath()),this}}),c.Map.include({_updatePathViewport:function(){var e=c.Path.CLIP_PADDING,t=this.getSize(),n=c.DomUtil.getPosition(this._mapPane),r=n.multiplyBy(-1)._subtract(t.multiplyBy(e)._round()),o=r.add(t.multiplyBy(1+2*e)._round());this._pathViewport=new c.Bounds(r,o)}}),c.Path.SVG_NS="http://www.w3.org/2000/svg",c.Browser.svg=!(!s.createElementNS||!s.createElementNS(c.Path.SVG_NS,"svg").createSVGRect),c.Path=c.Path.extend({statics:{SVG:c.Browser.svg},bringToFront:function(){var e=this._map._pathRoot,t=this._container;return t&&e.lastChild!==t&&e.appendChild(t),this},bringToBack:function(){var e=this._map._pathRoot,t=this._container,n=e.firstChild;return t&&n!==t&&e.insertBefore(t,n),this},getPathString:function(){},_createElement:function(e){return s.createElementNS(c.Path.SVG_NS,e)},_initElements:function(){this._map._initPathRoot(),this._initPath(),this._initStyle()},_initPath:function(){this._container=this._createElement("g"),this._path=this._createElement("path"),this.options.className&&c.DomUtil.addClass(this._path,this.options.className),this._container.appendChild(this._path)},_initStyle:function(){this.options.stroke&&(this._path.setAttribute("stroke-linejoin","round"),this._path.setAttribute("stroke-linecap","round")),this.options.fill&&this._path.setAttribute("fill-rule","evenodd"),this.options.pointerEvents&&this._path.setAttribute("pointer-events",this.options.pointerEvents),this.options.clickable||this.options.pointerEvents||this._path.setAttribute("pointer-events","none"),this._updateStyle()},_updateStyle:function(){this.options.stroke?(this._path.setAttribute("stroke",this.options.color),this._path.setAttribute("stroke-opacity",this.options.opacity),this._path.setAttribute("stroke-width",this.options.weight),this.options.dashArray?this._path.setAttribute("stroke-dasharray",this.options.dashArray):this._path.removeAttribute("stroke-dasharray"),this.options.lineCap&&this._path.setAttribute("stroke-linecap",this.options.lineCap),this.options.lineJoin&&this._path.setAttribute("stroke-linejoin",this.options.lineJoin)):this._path.setAttribute("stroke","none"),this.options.fill?(this._path.setAttribute("fill",this.options.fillColor||this.options.color),this._path.setAttribute("fill-opacity",this.options.fillOpacity)):this._path.setAttribute("fill","none")},_updatePath:function(){var e=this.getPathString();e||(e="M0 0"),this._path.setAttribute("d",e)},_initEvents:function(){if(this.options.clickable){!c.Browser.svg&&c.Browser.vml||c.DomUtil.addClass(this._path,"leaflet-clickable"),c.DomEvent.on(this._container,"click",this._onMouseClick,this);for(var e=["dblclick","mousedown","mouseover","mouseout","mousemove","contextmenu"],t=0;t<e.length;t++)c.DomEvent.on(this._container,e[t],this._fireMouseEvent,this)}},_onMouseClick:function(e){this._map.dragging&&this._map.dragging.moved()||this._fireMouseEvent(e)},_fireMouseEvent:function(e){if(this._map&&this.hasEventListeners(e.type)){var t=this._map,n=t.mouseEventToContainerPoint(e),r=t.containerPointToLayerPoint(n),o=t.layerPointToLatLng(r);this.fire(e.type,{latlng:o,layerPoint:r,containerPoint:n,originalEvent:e}),"contextmenu"===e.type&&c.DomEvent.preventDefault(e),"mousemove"!==e.type&&c.DomEvent.stopPropagation(e)}}}),c.Map.include({_initPathRoot:function(){this._pathRoot||(this._pathRoot=c.Path.prototype._createElement("svg"),this._panes.overlayPane.appendChild(this._pathRoot),this.options.zoomAnimation&&c.Browser.any3d?(c.DomUtil.addClass(this._pathRoot,"leaflet-zoom-animated"),this.on({zoomanim:this._animatePathZoom,zoomend:this._endPathZoom})):c.DomUtil.addClass(this._pathRoot,"leaflet-zoom-hide"),this.on("moveend",this._updateSvgViewport),this._updateSvgViewport())},_animatePathZoom:function(e){var t=this.getZoomScale(e.zoom),n=this._getCenterOffset(e.center)._multiplyBy(-t)._add(this._pathViewport.min);this._pathRoot.style[c.DomUtil.TRANSFORM]=c.DomUtil.getTranslateString(n)+" scale("+t+") ",this._pathZooming=!0},_endPathZoom:function(){this._pathZooming=!1},_updateSvgViewport:function(){if(!this._pathZooming){this._updatePathViewport();var e=this._pathViewport,t=e.min,n=e.max,r=n.x-t.x,o=n.y-t.y,i=this._pathRoot,a=this._panes.overlayPane;c.Browser.mobileWebkit&&a.removeChild(i),c.DomUtil.setPosition(i,t),i.setAttribute("width",r),i.setAttribute("height",o),i.setAttribute("viewBox",[t.x,t.y,r,o].join(" ")),c.Browser.mobileWebkit&&a.appendChild(i)}}}),c.Path.include({bindPopup:function(e,t){return e instanceof c.Popup?this._popup=e:(this._popup&&!t||(this._popup=new c.Popup(t,this)),this._popup.setContent(e)),this._popupHandlersAdded||(this.on("click",this._openPopup,this).on("remove",this.closePopup,this),this._popupHandlersAdded=!0),this},unbindPopup:function(){return this._popup&&(this._popup=null,this.off("click",this._openPopup).off("remove",this.closePopup),this._popupHandlersAdded=!1),this},openPopup:function(e){return this._popup&&(e=e||this._latlng||this._latlngs[Math.floor(this._latlngs.length/2)],this._openPopup({latlng:e})),this},closePopup:function(){return this._popup&&this._popup._close(),this},_openPopup:function(e){this._popup.setLatLng(e.latlng),this._map.openPopup(this._popup)}}),c.Browser.vml=!c.Browser.svg&&function(){try{var e=s.createElement("div");e.innerHTML='<v:shape adj="1"/>';var t=e.firstChild;return t.style.behavior="url(#default#VML)",t&&"object"===i(t.adj)}catch(n){return!1}}(),c.Path=c.Browser.svg||!c.Browser.vml?c.Path:c.Path.extend({statics:{VML:!0,CLIP_PADDING:.02},_createElement:function(){try{return s.namespaces.add("lvml","urn:schemas-microsoft-com:vml"),function(e){return s.createElement("<lvml:"+e+' class="lvml">')}}catch(e){return function(e){return s.createElement("<"+e+' xmlns="urn:schemas-microsoft.com:vml" class="lvml">')}}}(),_initPath:function(){var e=this._container=this._createElement("shape");c.DomUtil.addClass(e,"leaflet-vml-shape"+(this.options.className?" "+this.options.className:"")),this.options.clickable&&c.DomUtil.addClass(e,"leaflet-clickable"),e.coordsize="1 1",this._path=this._createElement("path"),e.appendChild(this._path),this._map._pathRoot.appendChild(e)},_initStyle:function(){this._updateStyle()},_updateStyle:function(){var e=this._stroke,t=this._fill,n=this.options,r=this._container;r.stroked=n.stroke,r.filled=n.fill,n.stroke?(e||(e=this._stroke=this._createElement("stroke"),e.endcap="round",r.appendChild(e)),e.weight=n.weight+"px",e.color=n.color,e.opacity=n.opacity,n.dashArray?e.dashStyle=c.Util.isArray(n.dashArray)?n.dashArray.join(" "):n.dashArray.replace(/( *, *)/g," "):e.dashStyle="",n.lineCap&&(e.endcap=n.lineCap.replace("butt","flat")),n.lineJoin&&(e.joinstyle=n.lineJoin)):e&&(r.removeChild(e),this._stroke=null),n.fill?(t||(t=this._fill=this._createElement("fill"),r.appendChild(t)),t.color=n.fillColor||n.color,t.opacity=n.fillOpacity):t&&(r.removeChild(t),this._fill=null)},_updatePath:function(){var e=this._container.style;e.display="none",this._path.v=this.getPathString()+" ",e.display=""}}),c.Map.include(c.Browser.svg||!c.Browser.vml?{}:{_initPathRoot:function(){if(!this._pathRoot){var e=this._pathRoot=s.createElement("div");e.className="leaflet-vml-container",this._panes.overlayPane.appendChild(e),this.on("moveend",this._updatePathViewport),this._updatePathViewport()}}}),c.Browser.canvas=function(){return!!s.createElement("canvas").getContext}(),c.Path=c.Path.SVG&&!a.L_PREFER_CANVAS||!c.Browser.canvas?c.Path:c.Path.extend({statics:{CANVAS:!0,SVG:!1},redraw:function(){return this._map&&(this.projectLatlngs(),this._requestUpdate()),this},setStyle:function(e){return c.setOptions(this,e),this._map&&(this._updateStyle(),this._requestUpdate()),this},onRemove:function(e){e.off("viewreset",this.projectLatlngs,this).off("moveend",this._updatePath,this),this.options.clickable&&(this._map.off("click",this._onClick,this),this._map.off("mousemove",this._onMouseMove,this)),this._requestUpdate(),this.fire("remove"),this._map=null},_requestUpdate:function(){this._map&&!c.Path._updateRequest&&(c.Path._updateRequest=c.Util.requestAnimFrame(this._fireMapMoveEnd,this._map))},_fireMapMoveEnd:function(){c.Path._updateRequest=null,this.fire("moveend")},_initElements:function(){this._map._initPathRoot(),this._ctx=this._map._canvasCtx},_updateStyle:function(){var e=this.options;e.stroke&&(this._ctx.lineWidth=e.weight,this._ctx.strokeStyle=e.color),e.fill&&(this._ctx.fillStyle=e.fillColor||e.color),e.lineCap&&(this._ctx.lineCap=e.lineCap),e.lineJoin&&(this._ctx.lineJoin=e.lineJoin)},_drawPath:function(){var e,t,n,r,o,i;for(this._ctx.beginPath(),e=0,n=this._parts.length;n>e;e++){for(t=0,r=this._parts[e].length;r>t;t++)o=this._parts[e][t],i=(0===t?"move":"line")+"To",this._ctx[i](o.x,o.y);this instanceof c.Polygon&&this._ctx.closePath()}},_checkIfEmpty:function(){return!this._parts.length},_updatePath:function(){if(!this._checkIfEmpty()){var e=this._ctx,t=this.options;this._drawPath(),e.save(),this._updateStyle(),t.fill&&(e.globalAlpha=t.fillOpacity,e.fill(t.fillRule||"evenodd")),t.stroke&&(e.globalAlpha=t.opacity,e.stroke()),e.restore()}},_initEvents:function(){this.options.clickable&&(this._map.on("mousemove",this._onMouseMove,this),this._map.on("click dblclick contextmenu",this._fireMouseEvent,this))},_fireMouseEvent:function(e){this._containsPoint(e.layerPoint)&&this.fire(e.type,e)},_onMouseMove:function(e){this._map&&!this._map._animatingZoom&&(this._containsPoint(e.layerPoint)?(this._ctx.canvas.style.cursor="pointer",this._mouseInside=!0,this.fire("mouseover",e)):this._mouseInside&&(this._ctx.canvas.style.cursor="",this._mouseInside=!1,this.fire("mouseout",e)))}}),c.Map.include(c.Path.SVG&&!a.L_PREFER_CANVAS||!c.Browser.canvas?{}:{_initPathRoot:function(){var e,t=this._pathRoot;t||(t=this._pathRoot=s.createElement("canvas"),t.style.position="absolute",e=this._canvasCtx=t.getContext("2d"),e.lineCap="round",e.lineJoin="round",this._panes.overlayPane.appendChild(t),this.options.zoomAnimation&&(this._pathRoot.className="leaflet-zoom-animated",this.on("zoomanim",this._animatePathZoom),this.on("zoomend",this._endPathZoom)),this.on("moveend",this._updateCanvasViewport),this._updateCanvasViewport())},_updateCanvasViewport:function(){if(!this._pathZooming){this._updatePathViewport();var e=this._pathViewport,t=e.min,n=e.max.subtract(t),r=this._pathRoot;c.DomUtil.setPosition(r,t),r.width=n.x,r.height=n.y,r.getContext("2d").translate(-t.x,-t.y)}}}),c.LineUtil={simplify:function(e,t){if(!t||!e.length)return e.slice();var n=t*t;return e=this._reducePoints(e,n),e=this._simplifyDP(e,n)},pointToSegmentDistance:function(e,t,n){return Math.sqrt(this._sqClosestPointOnSegment(e,t,n,!0))},closestPointOnSegment:function(e,t,n){return this._sqClosestPointOnSegment(e,t,n)},_simplifyDP:function(e,t){var n=e.length,r=("undefined"==typeof Uint8Array?"undefined":i(Uint8Array))!==u+""?Uint8Array:Array,o=new r(n);o[0]=o[n-1]=1,this._simplifyDPStep(e,o,t,0,n-1);var a,s=[];for(a=0;n>a;a++)o[a]&&s.push(e[a]);return s},_simplifyDPStep:function(e,t,n,r,o){var i,a,s,u=0;for(a=r+1;o-1>=a;a++)s=this._sqClosestPointOnSegment(e[a],e[r],e[o],!0),s>u&&(i=a,u=s);u>n&&(t[i]=1,this._simplifyDPStep(e,t,n,r,i),this._simplifyDPStep(e,t,n,i,o))},_reducePoints:function(e,t){for(var n=[e[0]],r=1,o=0,i=e.length;i>r;r++)this._sqDist(e[r],e[o])>t&&(n.push(e[r]),o=r);return i-1>o&&n.push(e[i-1]),n},clipSegment:function(e,t,n,r){var o,i,a,s=r?this._lastCode:this._getBitCode(e,n),u=this._getBitCode(t,n);for(this._lastCode=u;;){if(!(s|u))return[e,t];if(s&u)return!1;o=s||u,i=this._getEdgeIntersection(e,t,o,n),a=this._getBitCode(i,n),o===s?(e=i,s=a):(t=i,u=a)}},_getEdgeIntersection:function(e,t,n,r){var o=t.x-e.x,i=t.y-e.y,a=r.min,s=r.max;return 8&n?new c.Point(e.x+o*(s.y-e.y)/i,s.y):4&n?new c.Point(e.x+o*(a.y-e.y)/i,a.y):2&n?new c.Point(s.x,e.y+i*(s.x-e.x)/o):1&n?new c.Point(a.x,e.y+i*(a.x-e.x)/o):void 0},_getBitCode:function(e,t){var n=0;return e.x<t.min.x?n|=1:e.x>t.max.x&&(n|=2),e.y<t.min.y?n|=4:e.y>t.max.y&&(n|=8),n},_sqDist:function(e,t){var n=t.x-e.x,r=t.y-e.y;return n*n+r*r},_sqClosestPointOnSegment:function(e,t,n,r){var o,i=t.x,a=t.y,s=n.x-i,u=n.y-a,l=s*s+u*u;return l>0&&(o=((e.x-i)*s+(e.y-a)*u)/l,o>1?(i=n.x,a=n.y):o>0&&(i+=s*o,a+=u*o)),s=e.x-i,u=e.y-a,r?s*s+u*u:new c.Point(i,a)}},c.Polyline=c.Path.extend({initialize:function(e,t){c.Path.prototype.initialize.call(this,t),this._latlngs=this._convertLatLngs(e)},options:{smoothFactor:1,noClip:!1},projectLatlngs:function(){this._originalPoints=[];for(var e=0,t=this._latlngs.length;t>e;e++)this._originalPoints[e]=this._map.latLngToLayerPoint(this._latlngs[e])},getPathString:function(){for(var e=0,t=this._parts.length,n="";t>e;e++)n+=this._getPathPartStr(this._parts[e]);return n},getLatLngs:function(){return this._latlngs},setLatLngs:function(e){return this._latlngs=this._convertLatLngs(e),this.redraw()},addLatLng:function(e){return this._latlngs.push(c.latLng(e)),this.redraw()},spliceLatLngs:function(){var e=[].splice.apply(this._latlngs,arguments);return this._convertLatLngs(this._latlngs,!0),this.redraw(),e},closestLayerPoint:function(e){for(var t,n,r=1/0,o=this._parts,i=null,a=0,s=o.length;s>a;a++)for(var u=o[a],l=1,p=u.length;p>l;l++){t=u[l-1],n=u[l];var f=c.LineUtil._sqClosestPointOnSegment(e,t,n,!0);r>f&&(r=f,i=c.LineUtil._sqClosestPointOnSegment(e,t,n))}return i&&(i.distance=Math.sqrt(r)),i},getBounds:function(){return new c.LatLngBounds(this.getLatLngs())},_convertLatLngs:function(e,t){var n,r,o=t?e:[];for(n=0,r=e.length;r>n;n++){if(c.Util.isArray(e[n])&&"number"!=typeof e[n][0])return;o[n]=c.latLng(e[n])}return o},_initEvents:function(){c.Path.prototype._initEvents.call(this)},_getPathPartStr:function(e){for(var t,n=c.Path.VML,r=0,o=e.length,i="";o>r;r++)t=e[r],n&&t._round(),i+=(r?"L":"M")+t.x+" "+t.y;return i},_clipPoints:function(){var e,t,n,r=this._originalPoints,o=r.length;if(this.options.noClip)return void(this._parts=[r]);this._parts=[];var i=this._parts,a=this._map._pathViewport,s=c.LineUtil;for(e=0,t=0;o-1>e;e++)n=s.clipSegment(r[e],r[e+1],a,e),n&&(i[t]=i[t]||[],i[t].push(n[0]),n[1]===r[e+1]&&e!==o-2||(i[t].push(n[1]),t++))},_simplifyPoints:function(){for(var e=this._parts,t=c.LineUtil,n=0,r=e.length;r>n;n++)e[n]=t.simplify(e[n],this.options.smoothFactor)},_updatePath:function(){this._map&&(this._clipPoints(),this._simplifyPoints(),c.Path.prototype._updatePath.call(this))}}),c.polyline=function(e,t){return new c.Polyline(e,t)},c.PolyUtil={},c.PolyUtil.clipPolygon=function(e,t){var n,r,o,i,a,s,u,l,p,f=[1,4,2,8],h=c.LineUtil;for(r=0,u=e.length;u>r;r++)e[r]._code=h._getBitCode(e[r],t);for(i=0;4>i;i++){for(l=f[i],n=[],r=0,u=e.length,o=u-1;u>r;o=r++)a=e[r],s=e[o],a._code&l?s._code&l||(p=h._getEdgeIntersection(s,a,l,t),p._code=h._getBitCode(p,t),n.push(p)):(s._code&l&&(p=h._getEdgeIntersection(s,a,l,t),p._code=h._getBitCode(p,t),n.push(p)),n.push(a));e=n}return e},c.Polygon=c.Polyline.extend({options:{fill:!0},initialize:function(e,t){c.Polyline.prototype.initialize.call(this,e,t),this._initWithHoles(e)},_initWithHoles:function(e){var t,n,r;if(e&&c.Util.isArray(e[0])&&"number"!=typeof e[0][0])for(this._latlngs=this._convertLatLngs(e[0]),this._holes=e.slice(1),t=0,n=this._holes.length;n>t;t++)r=this._holes[t]=this._convertLatLngs(this._holes[t]),r[0].equals(r[r.length-1])&&r.pop();e=this._latlngs,e.length>=2&&e[0].equals(e[e.length-1])&&e.pop()},projectLatlngs:function(){if(c.Polyline.prototype.projectLatlngs.call(this),this._holePoints=[],this._holes){var e,t,n,r;for(e=0,n=this._holes.length;n>e;e++)for(this._holePoints[e]=[],t=0,r=this._holes[e].length;r>t;t++)this._holePoints[e][t]=this._map.latLngToLayerPoint(this._holes[e][t])}},setLatLngs:function(e){return e&&c.Util.isArray(e[0])&&"number"!=typeof e[0][0]?(this._initWithHoles(e),this.redraw()):c.Polyline.prototype.setLatLngs.call(this,e)},_clipPoints:function(){var e=this._originalPoints,t=[];if(this._parts=[e].concat(this._holePoints),!this.options.noClip){for(var n=0,r=this._parts.length;r>n;n++){var o=c.PolyUtil.clipPolygon(this._parts[n],this._map._pathViewport);o.length&&t.push(o)}this._parts=t}},_getPathPartStr:function(e){var t=c.Polyline.prototype._getPathPartStr.call(this,e);return t+(c.Browser.svg?"z":"x")}}),c.polygon=function(e,t){return new c.Polygon(e,t)},function(){function e(e){return c.FeatureGroup.extend({initialize:function(e,t){this._layers={},this._options=t,this.setLatLngs(e)},setLatLngs:function(t){var n=0,r=t.length;for(this.eachLayer(function(e){r>n?e.setLatLngs(t[n++]):this.removeLayer(e)},this);r>n;)this.addLayer(new e(t[n++],this._options));return this},getLatLngs:function(){var e=[];return this.eachLayer(function(t){e.push(t.getLatLngs())}),e}})}c.MultiPolyline=e(c.Polyline),c.MultiPolygon=e(c.Polygon),c.multiPolyline=function(e,t){return new c.MultiPolyline(e,t)},c.multiPolygon=function(e,t){return new c.MultiPolygon(e,t)}}(),c.Rectangle=c.Polygon.extend({initialize:function(e,t){c.Polygon.prototype.initialize.call(this,this._boundsToLatLngs(e),t)},setBounds:function(e){this.setLatLngs(this._boundsToLatLngs(e))},_boundsToLatLngs:function(e){return e=c.latLngBounds(e),[e.getSouthWest(),e.getNorthWest(),e.getNorthEast(),e.getSouthEast()]}}),c.rectangle=function(e,t){return new c.Rectangle(e,t)},c.Circle=c.Path.extend({initialize:function(e,t,n){c.Path.prototype.initialize.call(this,n),this._latlng=c.latLng(e),this._mRadius=t},options:{fill:!0},setLatLng:function(e){return this._latlng=c.latLng(e),this.redraw()},setRadius:function(e){return this._mRadius=e,this.redraw()},projectLatlngs:function(){var e=this._getLngRadius(),t=this._latlng,n=this._map.latLngToLayerPoint([t.lat,t.lng-e]);this._point=this._map.latLngToLayerPoint(t),this._radius=Math.max(this._point.x-n.x,1)},getBounds:function(){var e=this._getLngRadius(),t=this._mRadius/40075017*360,n=this._latlng;return new c.LatLngBounds([n.lat-t,n.lng-e],[n.lat+t,n.lng+e])},getLatLng:function(){return this._latlng},getPathString:function(){var e=this._point,t=this._radius;return this._checkIfEmpty()?"":c.Browser.svg?"M"+e.x+","+(e.y-t)+"A"+t+","+t+",0,1,1,"+(e.x-.1)+","+(e.y-t)+" z":(e._round(),t=Math.round(t),"AL "+e.x+","+e.y+" "+t+","+t+" 0,23592600")},getRadius:function(){return this._mRadius},_getLatRadius:function(){return this._mRadius/40075017*360},_getLngRadius:function(){return this._getLatRadius()/Math.cos(c.LatLng.DEG_TO_RAD*this._latlng.lat)},_checkIfEmpty:function(){if(!this._map)return!1;var e=this._map._pathViewport,t=this._radius,n=this._point;return n.x-t>e.max.x||n.y-t>e.max.y||n.x+t<e.min.x||n.y+t<e.min.y}}),c.circle=function(e,t,n){return new c.Circle(e,t,n)},c.CircleMarker=c.Circle.extend({options:{radius:10,weight:2},initialize:function(e,t){c.Circle.prototype.initialize.call(this,e,null,t),this._radius=this.options.radius},projectLatlngs:function(){this._point=this._map.latLngToLayerPoint(this._latlng)},_updateStyle:function(){c.Circle.prototype._updateStyle.call(this),this.setRadius(this.options.radius)},setLatLng:function(e){return c.Circle.prototype.setLatLng.call(this,e),this._popup&&this._popup._isOpen&&this._popup.setLatLng(e),this},setRadius:function(e){return this.options.radius=this._radius=e,this.redraw()},getRadius:function(){return this._radius}}),c.circleMarker=function(e,t){return new c.CircleMarker(e,t)},c.Polyline.include(c.Path.CANVAS?{_containsPoint:function(e,t){var n,r,o,i,a,s,u,l=this.options.weight/2;for(c.Browser.touch&&(l+=10),n=0,i=this._parts.length;i>n;n++)for(u=this._parts[n],r=0,a=u.length,o=a-1;a>r;o=r++)if((t||0!==r)&&(s=c.LineUtil.pointToSegmentDistance(e,u[o],u[r]),l>=s))return!0;return!1}}:{}),c.Polygon.include(c.Path.CANVAS?{_containsPoint:function(e){var t,n,r,o,i,a,s,u,l=!1;if(c.Polyline.prototype._containsPoint.call(this,e,!0))return!0;for(o=0,s=this._parts.length;s>o;o++)for(t=this._parts[o],i=0,u=t.length,a=u-1;u>i;a=i++)n=t[i],r=t[a],n.y>e.y!=r.y>e.y&&e.x<(r.x-n.x)*(e.y-n.y)/(r.y-n.y)+n.x&&(l=!l);return l}}:{}),c.Circle.include(c.Path.CANVAS?{_drawPath:function(){var e=this._point;this._ctx.beginPath(),this._ctx.arc(e.x,e.y,this._radius,0,2*Math.PI,!1)},_containsPoint:function(e){var t=this._point,n=this.options.stroke?this.options.weight/2:0;return e.distanceTo(t)<=this._radius+n}}:{}),c.CircleMarker.include(c.Path.CANVAS?{_updateStyle:function(){c.Path.prototype._updateStyle.call(this)}}:{}),c.GeoJSON=c.FeatureGroup.extend({initialize:function(e,t){c.setOptions(this,t),this._layers={},e&&this.addData(e)},addData:function(e){var t,n,r,o=c.Util.isArray(e)?e:e.features;if(o){for(t=0,n=o.length;n>t;t++)r=o[t],(r.geometries||r.geometry||r.features||r.coordinates)&&this.addData(o[t]);return this}var i=this.options;if(!i.filter||i.filter(e)){var a=c.GeoJSON.geometryToLayer(e,i.pointToLayer,i.coordsToLatLng,i);return a.feature=c.GeoJSON.asFeature(e),a.defaultOptions=a.options,this.resetStyle(a),i.onEachFeature&&i.onEachFeature(e,a),this.addLayer(a)}},resetStyle:function(e){var t=this.options.style;t&&(c.Util.extend(e.options,e.defaultOptions),this._setLayerStyle(e,t))},setStyle:function(e){this.eachLayer(function(t){this._setLayerStyle(t,e)},this)},_setLayerStyle:function(e,t){"function"==typeof t&&(t=t(e.feature)),e.setStyle&&e.setStyle(t)}}),c.extend(c.GeoJSON,{geometryToLayer:function(e,t,n,r){var o,i,a,s,u="Feature"===e.type?e.geometry:e,l=u.coordinates,p=[];switch(n=n||this.coordsToLatLng,u.type){case"Point":return o=n(l),t?t(e,o):new c.Marker(o);case"MultiPoint":for(a=0,s=l.length;s>a;a++)o=n(l[a]),p.push(t?t(e,o):new c.Marker(o));return new c.FeatureGroup(p);case"LineString":return i=this.coordsToLatLngs(l,0,n),new c.Polyline(i,r);case"Polygon":if(2===l.length&&!l[1].length)throw new Error("Invalid GeoJSON object.");return i=this.coordsToLatLngs(l,1,n),new c.Polygon(i,r);case"MultiLineString":return i=this.coordsToLatLngs(l,1,n),new c.MultiPolyline(i,r);case"MultiPolygon":return i=this.coordsToLatLngs(l,2,n),new c.MultiPolygon(i,r);case"GeometryCollection":for(a=0,s=u.geometries.length;s>a;a++)p.push(this.geometryToLayer({geometry:u.geometries[a],type:"Feature",properties:e.properties},t,n,r));return new c.FeatureGroup(p);default:throw new Error("Invalid GeoJSON object.")}},coordsToLatLng:function(e){return new c.LatLng(e[1],e[0],e[2])},coordsToLatLngs:function(e,t,n){var r,o,i,a=[];for(o=0,i=e.length;i>o;o++)r=t?this.coordsToLatLngs(e[o],t-1,n):(n||this.coordsToLatLng)(e[o]),a.push(r);return a},latLngToCoords:function(e){var t=[e.lng,e.lat];return e.alt!==u&&t.push(e.alt),t},latLngsToCoords:function(e){for(var t=[],n=0,r=e.length;r>n;n++)t.push(c.GeoJSON.latLngToCoords(e[n]));return t},getFeature:function(e,t){return e.feature?c.extend({},e.feature,{geometry:t}):c.GeoJSON.asFeature(t)},asFeature:function(e){return"Feature"===e.type?e:{type:"Feature",properties:{},geometry:e}}});var f={toGeoJSON:function(){return c.GeoJSON.getFeature(this,{type:"Point",coordinates:c.GeoJSON.latLngToCoords(this.getLatLng())})}};c.Marker.include(f),c.Circle.include(f),c.CircleMarker.include(f),c.Polyline.include({toGeoJSON:function(){return c.GeoJSON.getFeature(this,{type:"LineString",coordinates:c.GeoJSON.latLngsToCoords(this.getLatLngs())})}}),c.Polygon.include({toGeoJSON:function(){var e,t,n,r=[c.GeoJSON.latLngsToCoords(this.getLatLngs())];if(r[0].push(r[0][0]),this._holes)for(e=0,t=this._holes.length;t>e;e++)n=c.GeoJSON.latLngsToCoords(this._holes[e]),n.push(n[0]),r.push(n);return c.GeoJSON.getFeature(this,{type:"Polygon",coordinates:r})}}),function(){function e(e){return function(){var t=[];return this.eachLayer(function(e){t.push(e.toGeoJSON().geometry.coordinates)}),c.GeoJSON.getFeature(this,{type:e,coordinates:t})}}c.MultiPolyline.include({toGeoJSON:e("MultiLineString")}),c.MultiPolygon.include({toGeoJSON:e("MultiPolygon")}),c.LayerGroup.include({toGeoJSON:function(){var t,n=this.feature&&this.feature.geometry,r=[];if(n&&"MultiPoint"===n.type)return e("MultiPoint").call(this);var o=n&&"GeometryCollection"===n.type;return this.eachLayer(function(e){e.toGeoJSON&&(t=e.toGeoJSON(),r.push(o?t.geometry:c.GeoJSON.asFeature(t)))}),o?c.GeoJSON.getFeature(this,{geometries:r,type:"GeometryCollection"}):{type:"FeatureCollection",features:r}}})}(),c.geoJson=function(e,t){return new c.GeoJSON(e,t)},c.DomEvent={addListener:function(e,t,n,r){var o,i,a,s=c.stamp(n),u="_leaflet_"+t+s;return e[u]?this:(o=function(t){return n.call(r||e,t||c.DomEvent._getEvent())},c.Browser.pointer&&0===t.indexOf("touch")?this.addPointerListener(e,t,o,s):(c.Browser.touch&&"dblclick"===t&&this.addDoubleTapListener&&this.addDoubleTapListener(e,o,s),"addEventListener"in e?"mousewheel"===t?(e.addEventListener("DOMMouseScroll",o,!1),e.addEventListener(t,o,!1)):"mouseenter"===t||"mouseleave"===t?(i=o,a="mouseenter"===t?"mouseover":"mouseout",o=function(t){return c.DomEvent._checkMouse(e,t)?i(t):void 0},e.addEventListener(a,o,!1)):"click"===t&&c.Browser.android?(i=o,o=function(e){return c.DomEvent._filterClick(e,i)},e.addEventListener(t,o,!1)):e.addEventListener(t,o,!1):"attachEvent"in e&&e.attachEvent("on"+t,o),e[u]=o,this))},removeListener:function(e,t,n){var r=c.stamp(n),o="_leaflet_"+t+r,i=e[o];return i?(c.Browser.pointer&&0===t.indexOf("touch")?this.removePointerListener(e,t,r):c.Browser.touch&&"dblclick"===t&&this.removeDoubleTapListener?this.removeDoubleTapListener(e,r):"removeEventListener"in e?"mousewheel"===t?(e.removeEventListener("DOMMouseScroll",i,!1),e.removeEventListener(t,i,!1)):"mouseenter"===t||"mouseleave"===t?e.removeEventListener("mouseenter"===t?"mouseover":"mouseout",i,!1):e.removeEventListener(t,i,!1):"detachEvent"in e&&e.detachEvent("on"+t,i),e[o]=null,this):this},stopPropagation:function(e){return e.stopPropagation?e.stopPropagation():e.cancelBubble=!0,c.DomEvent._skipped(e),this},disableScrollPropagation:function(e){var t=c.DomEvent.stopPropagation;return c.DomEvent.on(e,"mousewheel",t).on(e,"MozMousePixelScroll",t)},disableClickPropagation:function(e){for(var t=c.DomEvent.stopPropagation,n=c.Draggable.START.length-1;n>=0;n--)c.DomEvent.on(e,c.Draggable.START[n],t);return c.DomEvent.on(e,"click",c.DomEvent._fakeStop).on(e,"dblclick",t)},preventDefault:function(e){return e.preventDefault?e.preventDefault():e.returnValue=!1,this},stop:function(e){return c.DomEvent.preventDefault(e).stopPropagation(e)},getMousePosition:function(e,t){if(!t)return new c.Point(e.clientX,e.clientY);var n=t.getBoundingClientRect();return new c.Point(e.clientX-n.left-t.clientLeft,e.clientY-n.top-t.clientTop)},getWheelDelta:function(e){var t=0;return e.wheelDelta&&(t=e.wheelDelta/120),e.detail&&(t=-e.detail/3),t},_skipEvents:{},_fakeStop:function(e){c.DomEvent._skipEvents[e.type]=!0},_skipped:function(e){var t=this._skipEvents[e.type];return this._skipEvents[e.type]=!1,t},_checkMouse:function(e,t){var n=t.relatedTarget;if(!n)return!0;try{for(;n&&n!==e;)n=n.parentNode}catch(r){return!1}return n!==e},_getEvent:function(){var e=a.event;if(!e)for(var t=arguments.callee.caller;t&&(e=t.arguments[0],!e||a.Event!==e.constructor);)t=t.caller;return e},_filterClick:function(e,t){var n=e.timeStamp||e.originalEvent.timeStamp,r=c.DomEvent._lastClick&&n-c.DomEvent._lastClick;return r&&r>100&&500>r||e.target._simulatedClick&&!e._simulated?void c.DomEvent.stop(e):(c.DomEvent._lastClick=n,t(e))}},c.DomEvent.on=c.DomEvent.addListener,c.DomEvent.off=c.DomEvent.removeListener,c.Draggable=c.Class.extend({includes:c.Mixin.Events,statics:{START:c.Browser.touch?["touchstart","mousedown"]:["mousedown"],END:{mousedown:"mouseup",touchstart:"touchend",pointerdown:"touchend",MSPointerDown:"touchend"},MOVE:{mousedown:"mousemove",touchstart:"touchmove",pointerdown:"touchmove",MSPointerDown:"touchmove"}},initialize:function(e,t){this._element=e,this._dragStartTarget=t||e},enable:function(){if(!this._enabled){for(var e=c.Draggable.START.length-1;e>=0;e--)c.DomEvent.on(this._dragStartTarget,c.Draggable.START[e],this._onDown,this);
  this._enabled=!0}},disable:function(){if(this._enabled){for(var e=c.Draggable.START.length-1;e>=0;e--)c.DomEvent.off(this._dragStartTarget,c.Draggable.START[e],this._onDown,this);this._enabled=!1,this._moved=!1}},_onDown:function(e){if(this._moved=!1,!e.shiftKey&&(1===e.which||1===e.button||e.touches)&&(c.DomEvent.stopPropagation(e),!c.Draggable._disabled&&(c.DomUtil.disableImageDrag(),c.DomUtil.disableTextSelection(),!this._moving))){var t=e.touches?e.touches[0]:e;this._startPoint=new c.Point(t.clientX,t.clientY),this._startPos=this._newPos=c.DomUtil.getPosition(this._element),c.DomEvent.on(s,c.Draggable.MOVE[e.type],this._onMove,this).on(s,c.Draggable.END[e.type],this._onUp,this)}},_onMove:function(e){if(e.touches&&e.touches.length>1)return void(this._moved=!0);var t=e.touches&&1===e.touches.length?e.touches[0]:e,n=new c.Point(t.clientX,t.clientY),r=n.subtract(this._startPoint);(r.x||r.y)&&(c.Browser.touch&&Math.abs(r.x)+Math.abs(r.y)<3||(c.DomEvent.preventDefault(e),this._moved||(this.fire("dragstart"),this._moved=!0,this._startPos=c.DomUtil.getPosition(this._element).subtract(r),c.DomUtil.addClass(s.body,"leaflet-dragging"),this._lastTarget=e.target||e.srcElement,c.DomUtil.addClass(this._lastTarget,"leaflet-drag-target")),this._newPos=this._startPos.add(r),this._moving=!0,c.Util.cancelAnimFrame(this._animRequest),this._animRequest=c.Util.requestAnimFrame(this._updatePosition,this,!0,this._dragStartTarget)))},_updatePosition:function(){this.fire("predrag"),c.DomUtil.setPosition(this._element,this._newPos),this.fire("drag")},_onUp:function(){c.DomUtil.removeClass(s.body,"leaflet-dragging"),this._lastTarget&&(c.DomUtil.removeClass(this._lastTarget,"leaflet-drag-target"),this._lastTarget=null);for(var e in c.Draggable.MOVE)c.DomEvent.off(s,c.Draggable.MOVE[e],this._onMove).off(s,c.Draggable.END[e],this._onUp);c.DomUtil.enableImageDrag(),c.DomUtil.enableTextSelection(),this._moved&&this._moving&&(c.Util.cancelAnimFrame(this._animRequest),this.fire("dragend",{distance:this._newPos.distanceTo(this._startPos)})),this._moving=!1}}),c.Handler=c.Class.extend({initialize:function(e){this._map=e},enable:function(){this._enabled||(this._enabled=!0,this.addHooks())},disable:function(){this._enabled&&(this._enabled=!1,this.removeHooks())},enabled:function(){return!!this._enabled}}),c.Map.mergeOptions({dragging:!0,inertia:!c.Browser.android23,inertiaDeceleration:3400,inertiaMaxSpeed:1/0,inertiaThreshold:c.Browser.touch?32:18,easeLinearity:.25,worldCopyJump:!1}),c.Map.Drag=c.Handler.extend({addHooks:function(){if(!this._draggable){var e=this._map;this._draggable=new c.Draggable(e._mapPane,e._container),this._draggable.on({dragstart:this._onDragStart,drag:this._onDrag,dragend:this._onDragEnd},this),e.options.worldCopyJump&&(this._draggable.on("predrag",this._onPreDrag,this),e.on("viewreset",this._onViewReset,this),e.whenReady(this._onViewReset,this))}this._draggable.enable()},removeHooks:function(){this._draggable.disable()},moved:function(){return this._draggable&&this._draggable._moved},_onDragStart:function(){var e=this._map;e._panAnim&&e._panAnim.stop(),e.fire("movestart").fire("dragstart"),e.options.inertia&&(this._positions=[],this._times=[])},_onDrag:function(){if(this._map.options.inertia){var e=this._lastTime=+new Date,t=this._lastPos=this._draggable._newPos;this._positions.push(t),this._times.push(e),e-this._times[0]>200&&(this._positions.shift(),this._times.shift())}this._map.fire("move").fire("drag")},_onViewReset:function(){var e=this._map.getSize()._divideBy(2),t=this._map.latLngToLayerPoint([0,0]);this._initialWorldOffset=t.subtract(e).x,this._worldWidth=this._map.project([0,180]).x},_onPreDrag:function(){var e=this._worldWidth,t=Math.round(e/2),n=this._initialWorldOffset,r=this._draggable._newPos.x,o=(r-t+n)%e+t-n,i=(r+t+n)%e-t-n,a=Math.abs(o+n)<Math.abs(i+n)?o:i;this._draggable._newPos.x=a},_onDragEnd:function(e){var t=this._map,n=t.options,r=+new Date-this._lastTime,o=!n.inertia||r>n.inertiaThreshold||!this._positions[0];if(t.fire("dragend",e),o)t.fire("moveend");else{var i=this._lastPos.subtract(this._positions[0]),a=(this._lastTime+r-this._times[0])/1e3,s=n.easeLinearity,u=i.multiplyBy(s/a),l=u.distanceTo([0,0]),p=Math.min(n.inertiaMaxSpeed,l),f=u.multiplyBy(p/l),h=p/(n.inertiaDeceleration*s),d=f.multiplyBy(-h/2).round();d.x&&d.y?(d=t._limitOffset(d,t.options.maxBounds),c.Util.requestAnimFrame(function(){t.panBy(d,{duration:h,easeLinearity:s,noMoveStart:!0})})):t.fire("moveend")}}}),c.Map.addInitHook("addHandler","dragging",c.Map.Drag),c.Map.mergeOptions({doubleClickZoom:!0}),c.Map.DoubleClickZoom=c.Handler.extend({addHooks:function(){this._map.on("dblclick",this._onDoubleClick,this)},removeHooks:function(){this._map.off("dblclick",this._onDoubleClick,this)},_onDoubleClick:function(e){var t=this._map,n=t.getZoom()+(e.originalEvent.shiftKey?-1:1);"center"===t.options.doubleClickZoom?t.setZoom(n):t.setZoomAround(e.containerPoint,n)}}),c.Map.addInitHook("addHandler","doubleClickZoom",c.Map.DoubleClickZoom),c.Map.mergeOptions({scrollWheelZoom:!0}),c.Map.ScrollWheelZoom=c.Handler.extend({addHooks:function(){c.DomEvent.on(this._map._container,"mousewheel",this._onWheelScroll,this),c.DomEvent.on(this._map._container,"MozMousePixelScroll",c.DomEvent.preventDefault),this._delta=0},removeHooks:function(){c.DomEvent.off(this._map._container,"mousewheel",this._onWheelScroll),c.DomEvent.off(this._map._container,"MozMousePixelScroll",c.DomEvent.preventDefault)},_onWheelScroll:function(e){var t=c.DomEvent.getWheelDelta(e);this._delta+=t,this._lastMousePos=this._map.mouseEventToContainerPoint(e),this._startTime||(this._startTime=+new Date);var n=Math.max(40-(+new Date-this._startTime),0);clearTimeout(this._timer),this._timer=setTimeout(c.bind(this._performZoom,this),n),c.DomEvent.preventDefault(e),c.DomEvent.stopPropagation(e)},_performZoom:function(){var e=this._map,t=this._delta,n=e.getZoom();t=t>0?Math.ceil(t):Math.floor(t),t=Math.max(Math.min(t,4),-4),t=e._limitZoom(n+t)-n,this._delta=0,this._startTime=null,t&&("center"===e.options.scrollWheelZoom?e.setZoom(n+t):e.setZoomAround(this._lastMousePos,n+t))}}),c.Map.addInitHook("addHandler","scrollWheelZoom",c.Map.ScrollWheelZoom),c.extend(c.DomEvent,{_touchstart:c.Browser.msPointer?"MSPointerDown":c.Browser.pointer?"pointerdown":"touchstart",_touchend:c.Browser.msPointer?"MSPointerUp":c.Browser.pointer?"pointerup":"touchend",addDoubleTapListener:function(e,t,n){function r(e){var t;if(c.Browser.pointer?(d.push(e.pointerId),t=d.length):t=e.touches.length,!(t>1)){var n=Date.now(),r=n-(i||n);a=e.touches?e.touches[0]:e,u=r>0&&l>=r,i=n}}function o(e){if(c.Browser.pointer){var n=d.indexOf(e.pointerId);if(-1===n)return;d.splice(n,1)}if(u){if(c.Browser.pointer){var r,o={};for(var s in a)r=a[s],"function"==typeof r?o[s]=r.bind(a):o[s]=r;a=o}a.type="dblclick",t(a),i=null}}var i,a,u=!1,l=250,p="_leaflet_",f=this._touchstart,h=this._touchend,d=[];e[p+f+n]=r,e[p+h+n]=o;var y=c.Browser.pointer?s.documentElement:e;return e.addEventListener(f,r,!1),y.addEventListener(h,o,!1),c.Browser.pointer&&y.addEventListener(c.DomEvent.POINTER_CANCEL,o,!1),this},removeDoubleTapListener:function(e,t){var n="_leaflet_";return e.removeEventListener(this._touchstart,e[n+this._touchstart+t],!1),(c.Browser.pointer?s.documentElement:e).removeEventListener(this._touchend,e[n+this._touchend+t],!1),c.Browser.pointer&&s.documentElement.removeEventListener(c.DomEvent.POINTER_CANCEL,e[n+this._touchend+t],!1),this}}),c.extend(c.DomEvent,{POINTER_DOWN:c.Browser.msPointer?"MSPointerDown":"pointerdown",POINTER_MOVE:c.Browser.msPointer?"MSPointerMove":"pointermove",POINTER_UP:c.Browser.msPointer?"MSPointerUp":"pointerup",POINTER_CANCEL:c.Browser.msPointer?"MSPointerCancel":"pointercancel",_pointers:[],_pointerDocumentListener:!1,addPointerListener:function(e,t,n,r){switch(t){case"touchstart":return this.addPointerListenerStart(e,t,n,r);case"touchend":return this.addPointerListenerEnd(e,t,n,r);case"touchmove":return this.addPointerListenerMove(e,t,n,r);default:throw"Unknown touch event type"}},addPointerListenerStart:function(e,t,n,r){var o="_leaflet_",i=this._pointers,a=function(e){"mouse"!==e.pointerType&&e.pointerType!==e.MSPOINTER_TYPE_MOUSE&&c.DomEvent.preventDefault(e);for(var t=!1,r=0;r<i.length;r++)if(i[r].pointerId===e.pointerId){t=!0;break}t||i.push(e),e.touches=i.slice(),e.changedTouches=[e],n(e)};if(e[o+"touchstart"+r]=a,e.addEventListener(this.POINTER_DOWN,a,!1),!this._pointerDocumentListener){var u=function(e){for(var t=0;t<i.length;t++)if(i[t].pointerId===e.pointerId){i.splice(t,1);break}};s.documentElement.addEventListener(this.POINTER_UP,u,!1),s.documentElement.addEventListener(this.POINTER_CANCEL,u,!1),this._pointerDocumentListener=!0}return this},addPointerListenerMove:function(e,t,n,r){function o(e){if(e.pointerType!==e.MSPOINTER_TYPE_MOUSE&&"mouse"!==e.pointerType||0!==e.buttons){for(var t=0;t<a.length;t++)if(a[t].pointerId===e.pointerId){a[t]=e;break}e.touches=a.slice(),e.changedTouches=[e],n(e)}}var i="_leaflet_",a=this._pointers;return e[i+"touchmove"+r]=o,e.addEventListener(this.POINTER_MOVE,o,!1),this},addPointerListenerEnd:function(e,t,n,r){var o="_leaflet_",i=this._pointers,a=function(e){for(var t=0;t<i.length;t++)if(i[t].pointerId===e.pointerId){i.splice(t,1);break}e.touches=i.slice(),e.changedTouches=[e],n(e)};return e[o+"touchend"+r]=a,e.addEventListener(this.POINTER_UP,a,!1),e.addEventListener(this.POINTER_CANCEL,a,!1),this},removePointerListener:function(e,t,n){var r="_leaflet_",o=e[r+t+n];switch(t){case"touchstart":e.removeEventListener(this.POINTER_DOWN,o,!1);break;case"touchmove":e.removeEventListener(this.POINTER_MOVE,o,!1);break;case"touchend":e.removeEventListener(this.POINTER_UP,o,!1),e.removeEventListener(this.POINTER_CANCEL,o,!1)}return this}}),c.Map.mergeOptions({touchZoom:c.Browser.touch&&!c.Browser.android23,bounceAtZoomLimits:!0}),c.Map.TouchZoom=c.Handler.extend({addHooks:function(){c.DomEvent.on(this._map._container,"touchstart",this._onTouchStart,this)},removeHooks:function(){c.DomEvent.off(this._map._container,"touchstart",this._onTouchStart,this)},_onTouchStart:function(e){var t=this._map;if(e.touches&&2===e.touches.length&&!t._animatingZoom&&!this._zooming){var n=t.mouseEventToLayerPoint(e.touches[0]),r=t.mouseEventToLayerPoint(e.touches[1]),o=t._getCenterLayerPoint();this._startCenter=n.add(r)._divideBy(2),this._startDist=n.distanceTo(r),this._moved=!1,this._zooming=!0,this._centerOffset=o.subtract(this._startCenter),t._panAnim&&t._panAnim.stop(),c.DomEvent.on(s,"touchmove",this._onTouchMove,this).on(s,"touchend",this._onTouchEnd,this),c.DomEvent.preventDefault(e)}},_onTouchMove:function(e){var t=this._map;if(e.touches&&2===e.touches.length&&this._zooming){var n=t.mouseEventToLayerPoint(e.touches[0]),r=t.mouseEventToLayerPoint(e.touches[1]);this._scale=n.distanceTo(r)/this._startDist,this._delta=n._add(r)._divideBy(2)._subtract(this._startCenter),1!==this._scale&&(!t.options.bounceAtZoomLimits&&(t.getZoom()===t.getMinZoom()&&this._scale<1||t.getZoom()===t.getMaxZoom()&&this._scale>1)||(this._moved||(c.DomUtil.addClass(t._mapPane,"leaflet-touching"),t.fire("movestart").fire("zoomstart"),this._moved=!0),c.Util.cancelAnimFrame(this._animRequest),this._animRequest=c.Util.requestAnimFrame(this._updateOnMove,this,!0,this._map._container),c.DomEvent.preventDefault(e)))}},_updateOnMove:function(){var e=this._map,t=this._getScaleOrigin(),n=e.layerPointToLatLng(t),r=e.getScaleZoom(this._scale);e._animateZoom(n,r,this._startCenter,this._scale,this._delta,!1,!0)},_onTouchEnd:function(){if(!this._moved||!this._zooming)return void(this._zooming=!1);var e=this._map;this._zooming=!1,c.DomUtil.removeClass(e._mapPane,"leaflet-touching"),c.Util.cancelAnimFrame(this._animRequest),c.DomEvent.off(s,"touchmove",this._onTouchMove).off(s,"touchend",this._onTouchEnd);var t=this._getScaleOrigin(),n=e.layerPointToLatLng(t),r=e.getZoom(),o=e.getScaleZoom(this._scale)-r,i=o>0?Math.ceil(o):Math.floor(o),a=e._limitZoom(r+i),u=e.getZoomScale(a)/this._scale;e._animateZoom(n,a,t,u)},_getScaleOrigin:function(){var e=this._centerOffset.subtract(this._delta).divideBy(this._scale);return this._startCenter.add(e)}}),c.Map.addInitHook("addHandler","touchZoom",c.Map.TouchZoom),c.Map.mergeOptions({tap:!0,tapTolerance:15}),c.Map.Tap=c.Handler.extend({addHooks:function(){c.DomEvent.on(this._map._container,"touchstart",this._onDown,this)},removeHooks:function(){c.DomEvent.off(this._map._container,"touchstart",this._onDown,this)},_onDown:function(e){if(e.touches){if(c.DomEvent.preventDefault(e),this._fireClick=!0,e.touches.length>1)return this._fireClick=!1,void clearTimeout(this._holdTimeout);var t=e.touches[0],n=t.target;this._startPos=this._newPos=new c.Point(t.clientX,t.clientY),n.tagName&&"a"===n.tagName.toLowerCase()&&c.DomUtil.addClass(n,"leaflet-active"),this._holdTimeout=setTimeout(c.bind(function(){this._isTapValid()&&(this._fireClick=!1,this._onUp(),this._simulateEvent("contextmenu",t))},this),1e3),c.DomEvent.on(s,"touchmove",this._onMove,this).on(s,"touchend",this._onUp,this)}},_onUp:function(e){if(clearTimeout(this._holdTimeout),c.DomEvent.off(s,"touchmove",this._onMove,this).off(s,"touchend",this._onUp,this),this._fireClick&&e&&e.changedTouches){var t=e.changedTouches[0],n=t.target;n&&n.tagName&&"a"===n.tagName.toLowerCase()&&c.DomUtil.removeClass(n,"leaflet-active"),this._isTapValid()&&this._simulateEvent("click",t)}},_isTapValid:function(){return this._newPos.distanceTo(this._startPos)<=this._map.options.tapTolerance},_onMove:function(e){var t=e.touches[0];this._newPos=new c.Point(t.clientX,t.clientY)},_simulateEvent:function(e,t){var n=s.createEvent("MouseEvents");n._simulated=!0,t.target._simulatedClick=!0,n.initMouseEvent(e,!0,!0,a,1,t.screenX,t.screenY,t.clientX,t.clientY,!1,!1,!1,!1,0,null),t.target.dispatchEvent(n)}}),c.Browser.touch&&!c.Browser.pointer&&c.Map.addInitHook("addHandler","tap",c.Map.Tap),c.Map.mergeOptions({boxZoom:!0}),c.Map.BoxZoom=c.Handler.extend({initialize:function(e){this._map=e,this._container=e._container,this._pane=e._panes.overlayPane,this._moved=!1},addHooks:function(){c.DomEvent.on(this._container,"mousedown",this._onMouseDown,this)},removeHooks:function(){c.DomEvent.off(this._container,"mousedown",this._onMouseDown),this._moved=!1},moved:function(){return this._moved},_onMouseDown:function(e){return this._moved=!1,!e.shiftKey||1!==e.which&&1!==e.button?!1:(c.DomUtil.disableTextSelection(),c.DomUtil.disableImageDrag(),this._startLayerPoint=this._map.mouseEventToLayerPoint(e),void c.DomEvent.on(s,"mousemove",this._onMouseMove,this).on(s,"mouseup",this._onMouseUp,this).on(s,"keydown",this._onKeyDown,this))},_onMouseMove:function(e){this._moved||(this._box=c.DomUtil.create("div","leaflet-zoom-box",this._pane),c.DomUtil.setPosition(this._box,this._startLayerPoint),this._container.style.cursor="crosshair",this._map.fire("boxzoomstart"));var t=this._startLayerPoint,n=this._box,r=this._map.mouseEventToLayerPoint(e),o=r.subtract(t),i=new c.Point(Math.min(r.x,t.x),Math.min(r.y,t.y));c.DomUtil.setPosition(n,i),this._moved=!0,n.style.width=Math.max(0,Math.abs(o.x)-4)+"px",n.style.height=Math.max(0,Math.abs(o.y)-4)+"px"},_finish:function(){this._moved&&(this._pane.removeChild(this._box),this._container.style.cursor=""),c.DomUtil.enableTextSelection(),c.DomUtil.enableImageDrag(),c.DomEvent.off(s,"mousemove",this._onMouseMove).off(s,"mouseup",this._onMouseUp).off(s,"keydown",this._onKeyDown)},_onMouseUp:function(e){this._finish();var t=this._map,n=t.mouseEventToLayerPoint(e);if(!this._startLayerPoint.equals(n)){var r=new c.LatLngBounds(t.layerPointToLatLng(this._startLayerPoint),t.layerPointToLatLng(n));t.fitBounds(r),t.fire("boxzoomend",{boxZoomBounds:r})}},_onKeyDown:function(e){27===e.keyCode&&this._finish()}}),c.Map.addInitHook("addHandler","boxZoom",c.Map.BoxZoom),c.Map.mergeOptions({keyboard:!0,keyboardPanOffset:80,keyboardZoomOffset:1}),c.Map.Keyboard=c.Handler.extend({keyCodes:{left:[37],right:[39],down:[40],up:[38],zoomIn:[187,107,61,171],zoomOut:[189,109,173]},initialize:function(e){this._map=e,this._setPanOffset(e.options.keyboardPanOffset),this._setZoomOffset(e.options.keyboardZoomOffset)},addHooks:function(){var e=this._map._container;-1===e.tabIndex&&(e.tabIndex="0"),c.DomEvent.on(e,"focus",this._onFocus,this).on(e,"blur",this._onBlur,this).on(e,"mousedown",this._onMouseDown,this),this._map.on("focus",this._addHooks,this).on("blur",this._removeHooks,this)},removeHooks:function(){this._removeHooks();var e=this._map._container;c.DomEvent.off(e,"focus",this._onFocus,this).off(e,"blur",this._onBlur,this).off(e,"mousedown",this._onMouseDown,this),this._map.off("focus",this._addHooks,this).off("blur",this._removeHooks,this)},_onMouseDown:function(){if(!this._focused){var e=s.body,t=s.documentElement,n=e.scrollTop||t.scrollTop,r=e.scrollLeft||t.scrollLeft;this._map._container.focus(),a.scrollTo(r,n)}},_onFocus:function(){this._focused=!0,this._map.fire("focus")},_onBlur:function(){this._focused=!1,this._map.fire("blur")},_setPanOffset:function(e){var t,n,r=this._panKeys={},o=this.keyCodes;for(t=0,n=o.left.length;n>t;t++)r[o.left[t]]=[-1*e,0];for(t=0,n=o.right.length;n>t;t++)r[o.right[t]]=[e,0];for(t=0,n=o.down.length;n>t;t++)r[o.down[t]]=[0,e];for(t=0,n=o.up.length;n>t;t++)r[o.up[t]]=[0,-1*e]},_setZoomOffset:function(e){var t,n,r=this._zoomKeys={},o=this.keyCodes;for(t=0,n=o.zoomIn.length;n>t;t++)r[o.zoomIn[t]]=e;for(t=0,n=o.zoomOut.length;n>t;t++)r[o.zoomOut[t]]=-e},_addHooks:function(){c.DomEvent.on(s,"keydown",this._onKeyDown,this)},_removeHooks:function(){c.DomEvent.off(s,"keydown",this._onKeyDown,this)},_onKeyDown:function(e){var t=e.keyCode,n=this._map;if(t in this._panKeys){if(n._panAnim&&n._panAnim._inProgress)return;n.panBy(this._panKeys[t]),n.options.maxBounds&&n.panInsideBounds(n.options.maxBounds)}else{if(!(t in this._zoomKeys))return;n.setZoom(n.getZoom()+this._zoomKeys[t])}c.DomEvent.stop(e)}}),c.Map.addInitHook("addHandler","keyboard",c.Map.Keyboard),c.Handler.MarkerDrag=c.Handler.extend({initialize:function(e){this._marker=e},addHooks:function(){var e=this._marker._icon;this._draggable||(this._draggable=new c.Draggable(e,e)),this._draggable.on("dragstart",this._onDragStart,this).on("drag",this._onDrag,this).on("dragend",this._onDragEnd,this),this._draggable.enable(),c.DomUtil.addClass(this._marker._icon,"leaflet-marker-draggable")},removeHooks:function(){this._draggable.off("dragstart",this._onDragStart,this).off("drag",this._onDrag,this).off("dragend",this._onDragEnd,this),this._draggable.disable(),c.DomUtil.removeClass(this._marker._icon,"leaflet-marker-draggable")},moved:function(){return this._draggable&&this._draggable._moved},_onDragStart:function(){this._marker.closePopup().fire("movestart").fire("dragstart")},_onDrag:function(){var e=this._marker,t=e._shadow,n=c.DomUtil.getPosition(e._icon),r=e._map.layerPointToLatLng(n);t&&c.DomUtil.setPosition(t,n),e._latlng=r,e.fire("move",{latlng:r}).fire("drag")},_onDragEnd:function(e){this._marker.fire("moveend").fire("dragend",e)}}),c.Control=c.Class.extend({options:{position:"topright"},initialize:function(e){c.setOptions(this,e)},getPosition:function(){return this.options.position},setPosition:function(e){var t=this._map;return t&&t.removeControl(this),this.options.position=e,t&&t.addControl(this),this},getContainer:function(){return this._container},addTo:function(e){this._map=e;var t=this._container=this.onAdd(e),n=this.getPosition(),r=e._controlCorners[n];return c.DomUtil.addClass(t,"leaflet-control"),-1!==n.indexOf("bottom")?r.insertBefore(t,r.firstChild):r.appendChild(t),this},removeFrom:function(e){var t=this.getPosition(),n=e._controlCorners[t];return n.removeChild(this._container),this._map=null,this.onRemove&&this.onRemove(e),this},_refocusOnMap:function(){this._map&&this._map.getContainer().focus()}}),c.control=function(e){return new c.Control(e)},c.Map.include({addControl:function(e){return e.addTo(this),this},removeControl:function(e){return e.removeFrom(this),this},_initControlPos:function(){function e(e,o){var i=n+e+" "+n+o;t[e+o]=c.DomUtil.create("div",i,r)}var t=this._controlCorners={},n="leaflet-",r=this._controlContainer=c.DomUtil.create("div",n+"control-container",this._container);e("top","left"),e("top","right"),e("bottom","left"),e("bottom","right")},_clearControlPos:function(){this._container.removeChild(this._controlContainer)}}),c.Control.Zoom=c.Control.extend({options:{position:"topleft",zoomInText:"+",zoomInTitle:"Zoom in",zoomOutText:"-",zoomOutTitle:"Zoom out"},onAdd:function(e){var t="leaflet-control-zoom",n=c.DomUtil.create("div",t+" leaflet-bar");return this._map=e,this._zoomInButton=this._createButton(this.options.zoomInText,this.options.zoomInTitle,t+"-in",n,this._zoomIn,this),this._zoomOutButton=this._createButton(this.options.zoomOutText,this.options.zoomOutTitle,t+"-out",n,this._zoomOut,this),this._updateDisabled(),e.on("zoomend zoomlevelschange",this._updateDisabled,this),n},onRemove:function(e){e.off("zoomend zoomlevelschange",this._updateDisabled,this)},_zoomIn:function(e){this._map.zoomIn(e.shiftKey?3:1)},_zoomOut:function(e){this._map.zoomOut(e.shiftKey?3:1)},_createButton:function(e,t,n,r,o,i){var a=c.DomUtil.create("a",n,r);a.innerHTML=e,a.href="#",a.title=t;var s=c.DomEvent.stopPropagation;return c.DomEvent.on(a,"click",s).on(a,"mousedown",s).on(a,"dblclick",s).on(a,"click",c.DomEvent.preventDefault).on(a,"click",o,i).on(a,"click",this._refocusOnMap,i),a},_updateDisabled:function(){var e=this._map,t="leaflet-disabled";c.DomUtil.removeClass(this._zoomInButton,t),c.DomUtil.removeClass(this._zoomOutButton,t),e._zoom===e.getMinZoom()&&c.DomUtil.addClass(this._zoomOutButton,t),e._zoom===e.getMaxZoom()&&c.DomUtil.addClass(this._zoomInButton,t)}}),c.Map.mergeOptions({zoomControl:!0}),c.Map.addInitHook(function(){this.options.zoomControl&&(this.zoomControl=new c.Control.Zoom,this.addControl(this.zoomControl))}),c.control.zoom=function(e){return new c.Control.Zoom(e)},c.Control.Attribution=c.Control.extend({options:{position:"bottomright",prefix:'<a href="http://leafletjs.com" title="A JS library for interactive maps">Leaflet</a>'},initialize:function(e){c.setOptions(this,e),this._attributions={}},onAdd:function(e){this._container=c.DomUtil.create("div","leaflet-control-attribution"),c.DomEvent.disableClickPropagation(this._container);for(var t in e._layers)e._layers[t].getAttribution&&this.addAttribution(e._layers[t].getAttribution());return e.on("layeradd",this._onLayerAdd,this).on("layerremove",this._onLayerRemove,this),this._update(),this._container},onRemove:function(e){e.off("layeradd",this._onLayerAdd).off("layerremove",this._onLayerRemove)},setPrefix:function(e){return this.options.prefix=e,this._update(),this},addAttribution:function(e){return e?(this._attributions[e]||(this._attributions[e]=0),this._attributions[e]++,this._update(),this):void 0},removeAttribution:function(e){return e?(this._attributions[e]&&(this._attributions[e]--,this._update()),this):void 0},_update:function(){if(this._map){var e=[];for(var t in this._attributions)this._attributions[t]&&e.push(t);var n=[];this.options.prefix&&n.push(this.options.prefix),e.length&&n.push(e.join(", ")),this._container.innerHTML=n.join(" | ")}},_onLayerAdd:function(e){e.layer.getAttribution&&this.addAttribution(e.layer.getAttribution())},_onLayerRemove:function(e){e.layer.getAttribution&&this.removeAttribution(e.layer.getAttribution())}}),c.Map.mergeOptions({attributionControl:!0}),c.Map.addInitHook(function(){this.options.attributionControl&&(this.attributionControl=(new c.Control.Attribution).addTo(this))}),c.control.attribution=function(e){return new c.Control.Attribution(e)},c.Control.Scale=c.Control.extend({options:{position:"bottomleft",maxWidth:100,metric:!0,imperial:!0,updateWhenIdle:!1},onAdd:function(e){this._map=e;var t="leaflet-control-scale",n=c.DomUtil.create("div",t),r=this.options;return this._addScales(r,t,n),e.on(r.updateWhenIdle?"moveend":"move",this._update,this),e.whenReady(this._update,this),n},onRemove:function(e){e.off(this.options.updateWhenIdle?"moveend":"move",this._update,this)},_addScales:function(e,t,n){e.metric&&(this._mScale=c.DomUtil.create("div",t+"-line",n)),e.imperial&&(this._iScale=c.DomUtil.create("div",t+"-line",n))},_update:function(){var e=this._map.getBounds(),t=e.getCenter().lat,n=6378137*Math.PI*Math.cos(t*Math.PI/180),r=n*(e.getNorthEast().lng-e.getSouthWest().lng)/180,o=this._map.getSize(),i=this.options,a=0;o.x>0&&(a=r*(i.maxWidth/o.x)),this._updateScales(i,a)},_updateScales:function(e,t){e.metric&&t&&this._updateMetric(t),e.imperial&&t&&this._updateImperial(t)},_updateMetric:function(e){var t=this._getRoundNum(e);this._mScale.style.width=this._getScaleWidth(t/e)+"px",this._mScale.innerHTML=1e3>t?t+" m":t/1e3+" km"},_updateImperial:function(e){var t,n,r,o=3.2808399*e,i=this._iScale;o>5280?(t=o/5280,n=this._getRoundNum(t),i.style.width=this._getScaleWidth(n/t)+"px",i.innerHTML=n+" mi"):(r=this._getRoundNum(o),i.style.width=this._getScaleWidth(r/o)+"px",i.innerHTML=r+" ft")},_getScaleWidth:function(e){return Math.round(this.options.maxWidth*e)-10},_getRoundNum:function(e){var t=Math.pow(10,(Math.floor(e)+"").length-1),n=e/t;return n=n>=10?10:n>=5?5:n>=3?3:n>=2?2:1,t*n}}),c.control.scale=function(e){return new c.Control.Scale(e)},c.Control.Layers=c.Control.extend({options:{collapsed:!0,position:"topright",autoZIndex:!0},initialize:function(e,t,n){c.setOptions(this,n),this._layers={},this._lastZIndex=0,this._handlingClick=!1;for(var r in e)this._addLayer(e[r],r);for(r in t)this._addLayer(t[r],r,!0)},onAdd:function(e){return this._initLayout(),this._update(),e.on("layeradd",this._onLayerChange,this).on("layerremove",this._onLayerChange,this),this._container},onRemove:function(e){e.off("layeradd",this._onLayerChange,this).off("layerremove",this._onLayerChange,this)},addBaseLayer:function(e,t){return this._addLayer(e,t),this._update(),this},addOverlay:function(e,t){return this._addLayer(e,t,!0),this._update(),this},removeLayer:function(e){var t=c.stamp(e);return delete this._layers[t],this._update(),this},_initLayout:function(){var e="leaflet-control-layers",t=this._container=c.DomUtil.create("div",e);t.setAttribute("aria-haspopup",!0),c.Browser.touch?c.DomEvent.on(t,"click",c.DomEvent.stopPropagation):c.DomEvent.disableClickPropagation(t).disableScrollPropagation(t);var n=this._form=c.DomUtil.create("form",e+"-list");if(this.options.collapsed){c.Browser.android||c.DomEvent.on(t,"mouseover",this._expand,this).on(t,"mouseout",this._collapse,this);var r=this._layersLink=c.DomUtil.create("a",e+"-toggle",t);r.href="#",r.title="Layers",c.Browser.touch?c.DomEvent.on(r,"click",c.DomEvent.stop).on(r,"click",this._expand,this):c.DomEvent.on(r,"focus",this._expand,this),c.DomEvent.on(n,"click",function(){setTimeout(c.bind(this._onInputClick,this),0)},this),this._map.on("click",this._collapse,this)}else this._expand();this._baseLayersList=c.DomUtil.create("div",e+"-base",n),this._separator=c.DomUtil.create("div",e+"-separator",n),this._overlaysList=c.DomUtil.create("div",e+"-overlays",n),t.appendChild(n)},_addLayer:function(e,t,n){var r=c.stamp(e);this._layers[r]={layer:e,name:t,overlay:n},this.options.autoZIndex&&e.setZIndex&&(this._lastZIndex++,e.setZIndex(this._lastZIndex))},_update:function(){if(this._container){this._baseLayersList.innerHTML="",this._overlaysList.innerHTML="";var e,t,n=!1,r=!1;for(e in this._layers)t=this._layers[e],this._addItem(t),r=r||t.overlay,n=n||!t.overlay;this._separator.style.display=r&&n?"":"none"}},_onLayerChange:function(e){var t=this._layers[c.stamp(e.layer)];if(t){this._handlingClick||this._update();var n=t.overlay?"layeradd"===e.type?"overlayadd":"overlayremove":"layeradd"===e.type?"baselayerchange":null;n&&this._map.fire(n,t)}},_createRadioElement:function(e,t){var n='<input type="radio" class="leaflet-control-layers-selector" name="'+e+'"';t&&(n+=' checked="checked"'),n+="/>";var r=s.createElement("div");return r.innerHTML=n,r.firstChild},_addItem:function(e){var t,n=s.createElement("label"),r=this._map.hasLayer(e.layer);e.overlay?(t=s.createElement("input"),t.type="checkbox",t.className="leaflet-control-layers-selector",t.defaultChecked=r):t=this._createRadioElement("leaflet-base-layers",r),t.layerId=c.stamp(e.layer),c.DomEvent.on(t,"click",this._onInputClick,this);var o=s.createElement("span");o.innerHTML=" "+e.name,n.appendChild(t),n.appendChild(o);var i=e.overlay?this._overlaysList:this._baseLayersList;return i.appendChild(n),n},_onInputClick:function(){var e,t,n,r=this._form.getElementsByTagName("input"),o=r.length;for(this._handlingClick=!0,e=0;o>e;e++)t=r[e],n=this._layers[t.layerId],t.checked&&!this._map.hasLayer(n.layer)?this._map.addLayer(n.layer):!t.checked&&this._map.hasLayer(n.layer)&&this._map.removeLayer(n.layer);this._handlingClick=!1,this._refocusOnMap()},_expand:function(){c.DomUtil.addClass(this._container,"leaflet-control-layers-expanded")},_collapse:function(){this._container.className=this._container.className.replace(" leaflet-control-layers-expanded","")}}),c.control.layers=function(e,t,n){return new c.Control.Layers(e,t,n)},c.PosAnimation=c.Class.extend({includes:c.Mixin.Events,run:function(e,t,n,r){this.stop(),this._el=e,this._inProgress=!0,this._newPos=t,this.fire("start"),e.style[c.DomUtil.TRANSITION]="all "+(n||.25)+"s cubic-bezier(0,0,"+(r||.5)+",1)",c.DomEvent.on(e,c.DomUtil.TRANSITION_END,this._onTransitionEnd,this),c.DomUtil.setPosition(e,t),c.Util.falseFn(e.offsetWidth),this._stepTimer=setInterval(c.bind(this._onStep,this),50)},stop:function(){this._inProgress&&(c.DomUtil.setPosition(this._el,this._getPos()),this._onTransitionEnd(),c.Util.falseFn(this._el.offsetWidth))},_onStep:function(){var e=this._getPos();return e?(this._el._leaflet_pos=e,void this.fire("step")):void this._onTransitionEnd()},_transformRe:/([-+]?(?:\d*\.)?\d+)\D*, ([-+]?(?:\d*\.)?\d+)\D*\)/,_getPos:function(){var e,t,n,r=this._el,o=a.getComputedStyle(r);if(c.Browser.any3d){if(n=o[c.DomUtil.TRANSFORM].match(this._transformRe),!n)return;e=parseFloat(n[1]),t=parseFloat(n[2])}else e=parseFloat(o.left),t=parseFloat(o.top);return new c.Point(e,t,!0)},_onTransitionEnd:function(){c.DomEvent.off(this._el,c.DomUtil.TRANSITION_END,this._onTransitionEnd,this),this._inProgress&&(this._inProgress=!1,this._el.style[c.DomUtil.TRANSITION]="",this._el._leaflet_pos=this._newPos,clearInterval(this._stepTimer),this.fire("step").fire("end"))}}),c.Map.include({setView:function(e,t,n){if(t=t===u?this._zoom:this._limitZoom(t),e=this._limitCenter(c.latLng(e),t,this.options.maxBounds),n=n||{},this._panAnim&&this._panAnim.stop(),this._loaded&&!n.reset&&n!==!0){n.animate!==u&&(n.zoom=c.extend({animate:n.animate},n.zoom),n.pan=c.extend({animate:n.animate},n.pan));var r=this._zoom!==t?this._tryAnimatedZoom&&this._tryAnimatedZoom(e,t,n.zoom):this._tryAnimatedPan(e,n.pan);if(r)return clearTimeout(this._sizeTimer),this}return this._resetView(e,t),this},panBy:function(e,t){if(e=c.point(e).round(),t=t||{},!e.x&&!e.y)return this;if(this._panAnim||(this._panAnim=new c.PosAnimation,this._panAnim.on({step:this._onPanTransitionStep,end:this._onPanTransitionEnd},this)),t.noMoveStart||this.fire("movestart"),t.animate!==!1){c.DomUtil.addClass(this._mapPane,"leaflet-pan-anim");var n=this._getMapPanePos().subtract(e);this._panAnim.run(this._mapPane,n,t.duration||.25,t.easeLinearity)}else this._rawPanBy(e),this.fire("move").fire("moveend");return this},_onPanTransitionStep:function(){this.fire("move")},_onPanTransitionEnd:function(){c.DomUtil.removeClass(this._mapPane,"leaflet-pan-anim"),this.fire("moveend")},_tryAnimatedPan:function(e,t){var n=this._getCenterOffset(e)._floor();return(t&&t.animate)===!0||this.getSize().contains(n)?(this.panBy(n,t),!0):!1}}),c.PosAnimation=c.DomUtil.TRANSITION?c.PosAnimation:c.PosAnimation.extend({run:function(e,t,n,r){this.stop(),this._el=e,this._inProgress=!0,this._duration=n||.25,this._easeOutPower=1/Math.max(r||.5,.2),this._startPos=c.DomUtil.getPosition(e),this._offset=t.subtract(this._startPos),this._startTime=+new Date,
  this.fire("start"),this._animate()},stop:function(){this._inProgress&&(this._step(),this._complete())},_animate:function(){this._animId=c.Util.requestAnimFrame(this._animate,this),this._step()},_step:function(){var e=+new Date-this._startTime,t=1e3*this._duration;t>e?this._runFrame(this._easeOut(e/t)):(this._runFrame(1),this._complete())},_runFrame:function(e){var t=this._startPos.add(this._offset.multiplyBy(e));c.DomUtil.setPosition(this._el,t),this.fire("step")},_complete:function(){c.Util.cancelAnimFrame(this._animId),this._inProgress=!1,this.fire("end")},_easeOut:function(e){return 1-Math.pow(1-e,this._easeOutPower)}}),c.Map.mergeOptions({zoomAnimation:!0,zoomAnimationThreshold:4}),c.DomUtil.TRANSITION&&c.Map.addInitHook(function(){this._zoomAnimated=this.options.zoomAnimation&&c.DomUtil.TRANSITION&&c.Browser.any3d&&!c.Browser.android23&&!c.Browser.mobileOpera,this._zoomAnimated&&c.DomEvent.on(this._mapPane,c.DomUtil.TRANSITION_END,this._catchTransitionEnd,this)}),c.Map.include(c.DomUtil.TRANSITION?{_catchTransitionEnd:function(e){this._animatingZoom&&e.propertyName.indexOf("transform")>=0&&this._onZoomTransitionEnd()},_nothingToAnimate:function(){return!this._container.getElementsByClassName("leaflet-zoom-animated").length},_tryAnimatedZoom:function(e,t,n){if(this._animatingZoom)return!0;if(n=n||{},!this._zoomAnimated||n.animate===!1||this._nothingToAnimate()||Math.abs(t-this._zoom)>this.options.zoomAnimationThreshold)return!1;var r=this.getZoomScale(t),o=this._getCenterOffset(e)._divideBy(1-1/r),i=this._getCenterLayerPoint()._add(o);return n.animate===!0||this.getSize().contains(o)?(this.fire("movestart").fire("zoomstart"),this._animateZoom(e,t,i,r,null,!0),!0):!1},_animateZoom:function(e,t,n,r,o,i,a){a||(this._animatingZoom=!0),c.DomUtil.addClass(this._mapPane,"leaflet-zoom-anim"),this._animateToCenter=e,this._animateToZoom=t,c.Draggable&&(c.Draggable._disabled=!0),c.Util.requestAnimFrame(function(){this.fire("zoomanim",{center:e,zoom:t,origin:n,scale:r,delta:o,backwards:i}),setTimeout(c.bind(this._onZoomTransitionEnd,this),250)},this)},_onZoomTransitionEnd:function(){this._animatingZoom&&(this._animatingZoom=!1,c.DomUtil.removeClass(this._mapPane,"leaflet-zoom-anim"),c.Util.requestAnimFrame(function(){this._resetView(this._animateToCenter,this._animateToZoom,!0,!0),c.Draggable&&(c.Draggable._disabled=!1)},this))}}:{}),c.TileLayer.include({_animateZoom:function(e){this._animating||(this._animating=!0,this._prepareBgBuffer());var t=this._bgBuffer,n=c.DomUtil.TRANSFORM,r=e.delta?c.DomUtil.getTranslateString(e.delta):t.style[n],o=c.DomUtil.getScaleString(e.scale,e.origin);t.style[n]=e.backwards?o+" "+r:r+" "+o},_endZoomAnim:function(){var e=this._tileContainer,t=this._bgBuffer;e.style.visibility="",e.parentNode.appendChild(e),c.Util.falseFn(t.offsetWidth);var n=this._map.getZoom();(n>this.options.maxZoom||n<this.options.minZoom)&&this._clearBgBuffer(),this._animating=!1},_clearBgBuffer:function(){var e=this._map;!e||e._animatingZoom||e.touchZoom._zooming||(this._bgBuffer.innerHTML="",this._bgBuffer.style[c.DomUtil.TRANSFORM]="")},_prepareBgBuffer:function(){var e=this._tileContainer,t=this._bgBuffer,n=this._getLoadedTilesPercentage(t),r=this._getLoadedTilesPercentage(e);return t&&n>.5&&.5>r?(e.style.visibility="hidden",void this._stopLoadingImages(e)):(t.style.visibility="hidden",t.style[c.DomUtil.TRANSFORM]="",this._tileContainer=t,t=this._bgBuffer=e,this._stopLoadingImages(t),void clearTimeout(this._clearBgBufferTimer))},_getLoadedTilesPercentage:function(e){var t,n,r=e.getElementsByTagName("img"),o=0;for(t=0,n=r.length;n>t;t++)r[t].complete&&o++;return o/n},_stopLoadingImages:function(e){var t,n,r,o=Array.prototype.slice.call(e.getElementsByTagName("img"));for(t=0,n=o.length;n>t;t++)r=o[t],r.complete||(r.onload=c.Util.falseFn,r.onerror=c.Util.falseFn,r.src=c.Util.emptyImageUrl,r.parentNode.removeChild(r))}}),c.Map.include({_defaultLocateOptions:{watch:!1,setView:!1,maxZoom:1/0,timeout:1e4,maximumAge:0,enableHighAccuracy:!1},locate:function(e){if(e=this._locateOptions=c.extend(this._defaultLocateOptions,e),!navigator.geolocation)return this._handleGeolocationError({code:0,message:"Geolocation not supported."}),this;var t=c.bind(this._handleGeolocationResponse,this),n=c.bind(this._handleGeolocationError,this);return e.watch?this._locationWatchId=navigator.geolocation.watchPosition(t,n,e):navigator.geolocation.getCurrentPosition(t,n,e),this},stopLocate:function(){return navigator.geolocation&&navigator.geolocation.clearWatch(this._locationWatchId),this._locateOptions&&(this._locateOptions.setView=!1),this},_handleGeolocationError:function(e){var t=e.code,n=e.message||(1===t?"permission denied":2===t?"position unavailable":"timeout");this._locateOptions.setView&&!this._loaded&&this.fitWorld(),this.fire("locationerror",{code:t,message:"Geolocation error: "+n+"."})},_handleGeolocationResponse:function(e){var t=e.coords.latitude,n=e.coords.longitude,r=new c.LatLng(t,n),o=180*e.coords.accuracy/40075017,i=o/Math.cos(c.LatLng.DEG_TO_RAD*t),a=c.latLngBounds([t-o,n-i],[t+o,n+i]),s=this._locateOptions;if(s.setView){var u=Math.min(this.getBoundsZoom(a),s.maxZoom);this.setView(r,u)}var l={latlng:r,bounds:a,timestamp:e.timestamp};for(var p in e.coords)"number"==typeof e.coords[p]&&(l[p]=e.coords[p]);this.fire("locationfound",l)}})}(window,document)}).call(t,n(122)(e))},function(e,t){"use strict";function n(e,t){if(null==e)throw new TypeError("Object.assign target cannot be null or undefined");for(var n=Object(e),r=Object.prototype.hasOwnProperty,o=1;o<arguments.length;o++){var i=arguments[o];if(null!=i){var a=Object(i);for(var s in a)r.call(a,s)&&(n[s]=a[s])}}return n}e.exports=n},function(e,t,n){"use strict";var r=n(27),o=r;e.exports=o},function(e,t,n){var r,o,i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol?"symbol":typeof e};/*!
  	  Copyright (c) 2016 Jed Watson.
  	  Licensed under the MIT License (MIT), see
  	  http://jedwatson.github.io/classnames
  	*/
  !function(){"use strict";function a(){for(var e=[],t=0;t<arguments.length;t++){var n=arguments[t];if(n){var r="undefined"==typeof n?"undefined":i(n);if("string"===r||"number"===r)e.push(n);else if(Array.isArray(n))e.push(a.apply(null,n));else if("object"===r)for(var o in n)s.call(n,o)&&n[o]&&e.push(o)}}return e.join(" ")}var s={}.hasOwnProperty;"undefined"!=typeof e&&e.exports?e.exports=a:"object"===i(n(328))&&n(328)?(r=[],o=function(){return a}.apply(t,r),!(void 0!==o&&(e.exports=o))):window.classNames=a}()},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}function i(e){var t=e.children,n=e.className,r=o(e,["children","className"]),i=(0,c["default"])("recharts-layer",n);return u["default"].createElement("g",a({className:i},r),t)}Object.defineProperty(t,"__esModule",{value:!0});var a=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},s=n(1),u=r(s),l=n(8),c=r(l),p={className:s.PropTypes.string,children:s.PropTypes.oneOfType([s.PropTypes.arrayOf(s.PropTypes.node),s.PropTypes.node])};i.propTypes=p,t["default"]=i},function(e,t,n){"use strict";function r(e){var t=o(e)?u.call(e):"";return t==i||t==a}var o=n(85),i="[object Function]",a="[object GeneratorFunction]",s=Object.prototype,u=s.toString;e.exports=r},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=14,r=$("#headerrow").outerHeight(),o=$("#breadCrumbsHeight").outerHeight();window.innerHeight-(r+o+n),window.innerHeight-(r+o+2*n),$("#chartColumn").innerWidth()-2*n,$("#chartSubColumn").innerWidth()-(n-2),$("#chartHeader").innerHeight(),$("#mapColumn").innerWidth()-2*n,t.START_POSITION=0,t.CATALOGING_UNIT_FROM_HUC12_END_POISTION=8,t.CHART_VISIBILITY=!0,t.IMAGERY_VISIBILITY=!1,t.HEADER_DESCRIPTION_VISIBILITY=!0,t.NORTH_EAST_LATITUDE=33.7528762817383,t.NORTH_EAST_LONGITUDE=-94.3218765258789,t.SOUTH_WEST_LATITUDE=36.5880393981934,t.SOUTH_WEST_LONGITUDE=-65.4001159667969,t.START_LATITUDE=35.393528,t.START_LONGITUDE=-79.755249,t.START_ZOOM=7,t.MIN_ZOOM=6,t.MAX_ZOOM=16,t.MAP_FULL_WIDTH="sixteen",t.MAP_CHART_WIDTH="eight",t.CHART_WIDTH="eight",t.MAP_FULL_WIDTH_INT=16,t.MAP_CHART_WIDTH_INT=8,t.CHART_WIDTH_INT=8,t.OVERIDE_WIDTH=1030,t.OVERIDE_WIDTH_NORMAL=768,t.BOX_BORDER="1px solid rgba(0,0,0,.09)",t.BOX_BORDER_RADUIS=".28571429rem",t.SPACING="14px",t.BACKGROUND_COLOR_BG="#fafafa",t.BACKGROUND_COLOR_FG="#ffffff"},function(e,t,n){"use strict";var r=n(177),o=n(175),i=n(287),a=n(646),s=n(640),u="prototype",l=function c(e,t,n){var l,p,f,h,d=e&c.F,y=e&c.G,m=e&c.S,v=e&c.P,g=e&c.B,_=y?r:m?r[t]||(r[t]={}):(r[t]||{})[u],b=y?o:o[t]||(o[t]={}),T=b[u]||(b[u]={});y&&(n=t);for(l in n)p=!d&&_&&void 0!==_[l],f=(p?_:n)[l],h=g&&p?s(f,r):v&&"function"==typeof f?s(Function.call,f):f,_&&a(_,l,f,e&c.U),b[l]!=f&&i(b,l,h),v&&T[l]!=f&&(T[l]=f)};r.core=o,l.F=1,l.G=2,l.S=4,l.P=8,l.B=16,l.W=32,l.U=64,l.R=128,e.exports=l},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(e,t){t="[react-router] "+t;for(var n=arguments.length,r=Array(n>2?n-2:0),o=2;n>o;o++)r[o-2]=arguments[o]}t.__esModule=!0,t["default"]=o;var i=n(31);r(i);e.exports=t["default"]},function(e,t){"use strict";var n=!("undefined"==typeof window||!window.document||!window.document.createElement),r={canUseDOM:n,canUseWorkers:"undefined"!=typeof Worker,canUseEventListeners:n&&!(!window.addEventListener&&!window.attachEvent),canUseViewport:n&&!!window.screen,isInWorker:!n};e.exports=r},function(e,t,n){"use strict";function r(e,t){for(var n=Math.min(e.length,t.length),r=0;n>r;r++)if(e.charAt(r)!==t.charAt(r))return r;return e.length===t.length?-1:n}function o(e){return e?e.nodeType===z?e.documentElement:e.firstChild:null}function i(e){var t=o(e);return t&&J.getID(t)}function a(e){var t=s(e);if(t)if(F.hasOwnProperty(t)){var n=F[t];n!==e&&(p(n,t)?N(!1):void 0,F[t]=e)}else F[t]=e;return t}function s(e){return e&&e.getAttribute&&e.getAttribute(B)||""}function u(e,t){var n=s(e);n!==t&&delete F[n],e.setAttribute(B,t),F[t]=e}function l(e){return F.hasOwnProperty(e)&&p(F[e],e)||(F[e]=J.findReactNodeByID(e)),F[e]}function c(e){var t=w.get(e)._rootNodeID;return E.isNullComponentID(t)?null:(F.hasOwnProperty(t)&&p(F[t],t)||(F[t]=J.findReactNodeByID(t)),F[t])}function p(e,t){if(e){s(e)!==t?N(!1):void 0;var n=J.findReactContainerForID(t);if(n&&R(n,e))return!0}return!1}function f(e){delete F[e]}function h(e){var t=F[e];return t&&p(t,e)?void(K=t):!1}function d(e){K=null,O.traverseAncestors(e,h);var t=K;return K=null,t}function y(e,t,n,r,o,i){P.useCreateElement&&(i=L({},i),n.nodeType===z?i[W]=n:i[W]=n.ownerDocument);var a=M.mountComponent(e,t,r,i);e._renderedComponent._topLevelWrapper=e,J._mountImageIntoNode(a,n,o,r)}function m(e,t,n,r,o){var i=k.ReactReconcileTransaction.getPooled(r);i.perform(y,null,e,t,n,i,r,o),k.ReactReconcileTransaction.release(i)}function v(e,t){for(M.unmountComponent(e),t.nodeType===z&&(t=t.documentElement);t.lastChild;)t.removeChild(t.lastChild)}function g(e){var t=i(e);return t?t!==O.getReactRootIDFromNodeID(t):!1}function _(e){for(;e&&e.parentNode!==e;e=e.parentNode)if(1===e.nodeType){var t=s(e);if(t){var n,r=O.getReactRootIDFromNodeID(t),o=e;do if(n=s(o),o=o.parentNode,null==o)return null;while(n!==r);if(o===q[r])return e}}return null}var b=n(66),T=n(100),P=(n(35),n(246)),x=n(19),E=n(254),O=n(67),w=n(79),C=n(257),S=n(25),M=n(55),A=n(151),k=n(26),L=n(6),I=n(81),R=n(270),D=n(158),N=n(3),j=n(107),U=n(161),B=(n(163),n(7),b.ID_ATTRIBUTE_NAME),F={},H=1,z=9,G=11,W="__ReactMount_ownerDocument$"+Math.random().toString(36).slice(2),V={},q={},Z=[],K=null,Y=function(){};Y.prototype.isReactComponent={},Y.prototype.render=function(){return this.props};var J={TopLevelWrapper:Y,_instancesByReactRootID:V,scrollMonitor:function(e,t){t()},_updateRootComponent:function(e,t,n,r){return J.scrollMonitor(n,function(){A.enqueueElementInternal(e,t),r&&A.enqueueCallbackInternal(e,r)}),e},_registerComponent:function(e,t){!t||t.nodeType!==H&&t.nodeType!==z&&t.nodeType!==G?N(!1):void 0,T.ensureScrollValueMonitoring();var n=J.registerContainer(t);return V[n]=e,n},_renderNewRootComponent:function(e,t,n,r){var o=D(e,null),i=J._registerComponent(o,t);return k.batchedUpdates(m,o,i,t,n,r),o},renderSubtreeIntoContainer:function(e,t,n,r){return null==e||null==e._reactInternalInstance?N(!1):void 0,J._renderSubtreeIntoContainer(e,t,n,r)},_renderSubtreeIntoContainer:function(e,t,n,r){x.isValidElement(t)?void 0:N(!1);var a=new x(Y,null,null,null,null,null,t),u=V[i(n)];if(u){var l=u._currentElement,c=l.props;if(U(c,t)){var p=u._renderedComponent.getPublicInstance(),f=r&&function(){r.call(p)};return J._updateRootComponent(u,a,n,f),p}J.unmountComponentAtNode(n)}var h=o(n),d=h&&!!s(h),y=g(n),m=d&&!u&&!y,v=J._renderNewRootComponent(a,n,m,null!=e?e._reactInternalInstance._processChildContext(e._reactInternalInstance._context):I)._renderedComponent.getPublicInstance();return r&&r.call(v),v},render:function(e,t,n){return J._renderSubtreeIntoContainer(null,e,t,n)},registerContainer:function(e){var t=i(e);return t&&(t=O.getReactRootIDFromNodeID(t)),t||(t=O.createReactRootID()),q[t]=e,t},unmountComponentAtNode:function(e){!e||e.nodeType!==H&&e.nodeType!==z&&e.nodeType!==G?N(!1):void 0;var t=i(e),n=V[t];if(!n){var r=(g(e),s(e));r&&r===O.getReactRootIDFromNodeID(r);return!1}return k.batchedUpdates(v,n,e),delete V[t],delete q[t],!0},findReactContainerForID:function(e){var t=O.getReactRootIDFromNodeID(e),n=q[t];return n},findReactNodeByID:function(e){var t=J.findReactContainerForID(e);return J.findComponentRoot(t,e)},getFirstReactDOM:function(e){return _(e)},findComponentRoot:function(e,t){var n=Z,r=0,o=d(t)||e;for(n[0]=o.firstChild,n.length=1;r<n.length;){for(var i,a=n[r++];a;){var s=J.getID(a);s?t===s?i=a:O.isAncestorIDOf(s,t)&&(n.length=r=0,n.push(a.firstChild)):n.push(a.firstChild),a=a.nextSibling}if(i)return n.length=0,i}n.length=0,N(!1)},_mountImageIntoNode:function(e,t,n,i){if(!t||t.nodeType!==H&&t.nodeType!==z&&t.nodeType!==G?N(!1):void 0,n){var a=o(t);if(C.canReuseMarkup(e,a))return;var s=a.getAttribute(C.CHECKSUM_ATTR_NAME);a.removeAttribute(C.CHECKSUM_ATTR_NAME);var u=a.outerHTML;a.setAttribute(C.CHECKSUM_ATTR_NAME,s);var l=e,c=r(l,u);" (client) "+l.substring(c-20,c+20)+"\n (server) "+u.substring(c-20,c+20);t.nodeType===z?N(!1):void 0}if(t.nodeType===z?N(!1):void 0,i.useCreateElement){for(;t.lastChild;)t.removeChild(t.lastChild);t.appendChild(e)}else j(t,e)},ownerDocumentContextKey:W,getReactRootID:i,getID:a,setID:u,getNode:l,getNodeFromInstance:c,isValid:p,purgeID:f};S.measureMethods(J,"ReactMount",{_renderNewRootComponent:"_renderNewRootComponent",_mountImageIntoNode:"_mountImageIntoNode"}),e.exports=J},function(e,t){"use strict";var n=Array.isArray;e.exports=n},function(e,t,n){"use strict";function r(e){return"number"==typeof e||o(e)&&s.call(e)==i}var o=n(49),i="[object Number]",a=Object.prototype,s=a.toString;e.exports=r},function(e,t){"use strict";var n=Array.isArray;e.exports=n},function(e,t,n){"use strict";var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol?"symbol":typeof e},o=n(35),i=n(6),a=(n(105),"function"==typeof Symbol&&Symbol["for"]&&Symbol["for"]("react.element")||60103),s={key:!0,ref:!0,__self:!0,__source:!0},u=function(e,t,n,r,o,i,s){var u={$$typeof:a,type:e,key:t,ref:n,props:s,_owner:i};return u};u.createElement=function(e,t,n){var r,i={},a=null,l=null,c=null,p=null;if(null!=t){l=void 0===t.ref?null:t.ref,a=void 0===t.key?null:""+t.key,c=void 0===t.__self?null:t.__self,p=void 0===t.__source?null:t.__source;for(r in t)t.hasOwnProperty(r)&&!s.hasOwnProperty(r)&&(i[r]=t[r])}var f=arguments.length-2;if(1===f)i.children=n;else if(f>1){for(var h=Array(f),d=0;f>d;d++)h[d]=arguments[d+2];i.children=h}if(e&&e.defaultProps){var y=e.defaultProps;for(r in y)"undefined"==typeof i[r]&&(i[r]=y[r])}return u(e,a,l,c,p,o.current,i)},u.createFactory=function(e){var t=u.createElement.bind(null,e);return t.type=e,t},u.cloneAndReplaceKey=function(e,t){var n=u(e.type,t,e.ref,e._self,e._source,e._owner,e.props);return n},u.cloneAndReplaceProps=function(e,t){var n=u(e.type,e.key,e.ref,e._self,e._source,e._owner,t);return n},u.cloneElement=function(e,t,n){var r,a=i({},e.props),l=e.key,c=e.ref,p=e._self,f=e._source,h=e._owner;if(null!=t){void 0!==t.ref&&(c=t.ref,h=o.current),void 0!==t.key&&(l=""+t.key);for(r in t)t.hasOwnProperty(r)&&!s.hasOwnProperty(r)&&(a[r]=t[r])}var d=arguments.length-2;if(1===d)a.children=n;else if(d>1){for(var y=Array(d),m=0;d>m;m++)y[m]=arguments[m+2];a.children=y}return u(e.type,l,c,p,f,h,a)},u.isValidElement=function(e){return"object"===("undefined"==typeof e?"undefined":r(e))&&null!==e&&e.$$typeof===a},e.exports=u},function(e,t,n){"use strict";function r(e){if("string"!=typeof e)return"";var t=JSON_HELPERS.filter(function(t){return t.name.toUpperCase()===e.toUpperCase()});return t[0]?t[0].value:null}function o(e){if("string"!=typeof e)return"";var t=JSON_CONSTANTS.filter(function(t){return t.name.toUpperCase()===e.toUpperCase()});return t[0]&&t[0].attribution?t[0].attribution:null}function i(e){var t=JSON_CONSTANTS.filter(function(t){return t.name.toUpperCase()===e.toUpperCase()});return t?t[0].value:""}function a(e){switch(e){case"River Basins":return 2;case"Cataloging Units":return 3;case"HUC12":return 3;default:return 9999}}function s(e){switch(e){case"River Basins":return 1;case"Cataloging Units":return 2;case"HUC12":return 3;default:return 9999}}function u(e){switch(e){case"River Basins":return"huc_8";case"Cataloging Units":return"huc_12";case"HUC12":return"huc_12";default:return"huc_12"}}function l(e){switch(e){case"River Basins":return"huc_6";case"Cataloging Units":return"huc_8";case"HUC12":return"huc_12";default:return"huc_12"}}function c(e){switch(e){case"River Basins":return"Cataloging Units";case"Cataloging Units":return"HUC12";case"HUC12":return"";case"TRA":return"TRA";default:return""}}function p(e){switch(e){case"River Basins":return"Cataloging Unit";case"Cataloging Units":return"HUC 12";case"HUC12":return"HUC 12";case"TRA":return"TRA";default:return""}}function f(e){switch(e){case"River Basins":return"River Basin";case"Cataloging Units":return"Cataloging Unit";case"HUC12":return"HUC 12";case"TRA":return"TRA";default:return""}}function h(e){switch(e){case"River Basins":return"";case"Cataloging Units":return"River Basins";case"HUC12":return"Cataloging Units";default:return""}}function d(e){switch(e){case"huc_6":return"River Basins";case"huc_8":return"Cataloging Units";case"huc_12":return"HUC12";default:return"River Basins"}}function y(e){switch(e){case"River Basins":return"6";case"Cataloging Units":return"5";case"HUC12":return"4";default:return"4"}}function m(e){switch(e){case"River Basins":return"6";case"Cataloging Units":return"8";case"HUC12":return"12";default:return"12"}}function v(e){switch(e){case"River Basins":return"HUC 6";case"Cataloging Units":return"HUC 8";case"HUC12":return"HUC 12";default:return"HUC 12"}}Object.defineProperty(t,"__esModule",{value:!0}),t.get_helper=r,t.get_attribution=o,t.get_constant=i,t.getNextLevel=a,t.getCurrentLevel=s,t.getAGOGeographyLabel_NextLevel=u,t.getAGOGeographyLabel=l,t.getNextLevelName=c,t.getFriendlyName_NextLevel=p,t.getFriendlyName=f,t.getPrevLevelName=h,t.getCategoryName=d,t.getAGOFeatureId=y,t.get_matchEnd=m,t.get_HUC=v;n(41)},function(e,t,n){"use strict";var r=function(e,t,n,r,o,i,a,s){if(!e){var u;if(void 0===t)u=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var l=[n,r,o,i,a,s],c=0;u=new Error(t.replace(/%s/g,function(){return l[c++]})),u.name="Invariant Violation"}throw u.framesToPop=1,u}};e.exports=r},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(t,"__esModule",{value:!0}),t.getAnyElementOfObject=t.getBandSizeOfScale=t.validateCoordinateInRange=t.parseSpecifiedDomain=t.getPercentValue=t.isPercent=void 0;var o=n(16),i=r(o),a=n(17),s=r(a),u=n(50),l=r(u),c=t.isPercent=function(e){return(0,l["default"])(e)&&e.indexOf("%")===e.length-1};t.getPercentValue=function(e,t){var n=arguments.length<=2||void 0===arguments[2]?0:arguments[2],r=arguments.length<=3||void 0===arguments[3]?!1:arguments[3];if(!(0,s["default"])(e)&&!(0,l["default"])(e))return n;var o=void 0;if(c(e)){var i=e.indexOf("%");o=t*parseFloat(e.slice(0,i))/100}else o=+e;return isNaN(o)&&(o=n),r&&o>t&&(o=t),o},t.parseSpecifiedDomain=function(e,t){if(!(0,i["default"])(e))return t;var n=[];return!(0,s["default"])(e[0])||e[0]>t[0]?n[0]=t[0]:n[0]=e[0],!(0,s["default"])(e[1])||e[1]<t[1]?n[1]=t[1]:n[1]=e[1],n},t.validateCoordinateInRange=function(e,t){if(!t)return!1;var n=t.range(),r=n[0],o=n[n.length-1],i=o>=r?e>=r&&o>=e:e>=o&&r>=e;return i},t.getBandSizeOfScale=function(e){return e&&e.bandwidth?e.bandwidth():0},t.getAnyElementOfObject=function(e){if(!e)return null;var t=Object.keys(e);return t&&t.length?e[t[0]]:null}},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}t.__esModule=!0,t.compose=t.applyMiddleware=t.bindActionCreators=t.combineReducers=t.createStore=void 0;var o=n(324),i=r(o),a=n(756),s=r(a),u=n(755),l=r(u),c=n(754),p=r(c),f=n(323),h=r(f),d=n(325);r(d);t.createStore=i["default"],t.combineReducers=s["default"],t.bindActionCreators=l["default"],t.applyMiddleware=p["default"],t.compose=h["default"]},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.AGO_HUCS=t.AGO_CATALOGING_UNITS=t.AGO_RIVER_BASINS=t.ENCODED_COMMAS=t.TRA_BASE_MAP=t.HUC6_BASE_MAP=t.HUC8_BASE_MAP=t.HUC12_BASE_MAP=t.CATCHMENTS_BASE_MAP=t.BASE_MAP=t.BASE_MAP_LABELS=t.IMAGERY_BASEMAP=t.TRA_XWALK=t.HUC_NAMES_FEATUREID=t.NCDEQ_NORMALIZED_FEATUREID=t.NLCD_CATCHMENT_FEATUREID=t.BASIN_MAP_FEATUREID=t.CATALOGING_MAP_FEATUREID=t.HUC12_MAP_FEATUREID=t.TRA_FEATUREID=t.TITLE=t.FEATURE_SERVICE_NAME=t.AGO_URL=void 0;var r=n(20),o=n(41),i=t.AGO_URL=(0,r.get_constant)("AGO_URL"),a=t.FEATURE_SERVICE_NAME=(0,r.get_constant)("FEATURE_SERVICE_NAME"),s=(t.TITLE=(0,r.get_constant)("TITLE"),t.TRA_FEATUREID=(0,r.get_constant)("TRA_FEATUREID"),t.HUC12_MAP_FEATUREID=(0,r.get_constant)("HUC12_MAP_FEATUREID")),u=t.CATALOGING_MAP_FEATUREID=(0,r.get_constant)("CATALOGING_MAP_FEATUREID"),l=t.BASIN_MAP_FEATUREID=(0,r.get_constant)("BASIN_MAP_FEATUREID");t.NLCD_CATCHMENT_FEATUREID=(0,r.get_constant)("NLCD_CATCHMENT_FEATUREID"),t.NCDEQ_NORMALIZED_FEATUREID=(0,r.get_constant)("NCDEQ_NORMALIZED_FEATUREID"),t.HUC_NAMES_FEATUREID=(0,r.get_constant)("HUC_NAMES_FEATUREID"),t.TRA_XWALK=(0,r.get_constant)("TRA_XWALK"),t.IMAGERY_BASEMAP=(0,r.get_constant)("imagery"),t.BASE_MAP_LABELS=(0,r.get_constant)("base map labels"),t.BASE_MAP=(0,r.get_constant)("base map"),t.CATCHMENTS_BASE_MAP=(0,r.get_constant)("Catchments Base Map"),t.HUC12_BASE_MAP=(0,r.get_constant)("HUC 12 Base Map"),t.HUC8_BASE_MAP=(0,r.get_constant)("Cataloging Units Base Map"),t.HUC6_BASE_MAP=(0,r.get_constant)("River Basins Base Map"),t.TRA_BASE_MAP=(0,r.get_constant)("Targeted Resource Areas (TRA) Base Map");o.defaults.baseURL=i;var c=(t.ENCODED_COMMAS="%2C","id,NAME,VALUE,MAIN,SUB");t.AGO_RIVER_BASINS="/"+a+"/FeatureServer/"+l+"/query?where=id%3C%3E%27%27&objectIds=&time=&geometry=&geometryType=esriGeometryEnvelope&inSR=&spatialRel=esriSpatialRelIntersects&resultType=none&distance=&units=esriSRUnit_Meter&outFields="+c+"&returnGeometry=false&returnCentroid=false&multipatchOption=xyFootprint&maxAllowableOffset=&geometryPrecision=&outSR=&returnIdsOnly=false&returnCountOnly=false&returnExtentOnly=false&returnDistinctValues=true&orderByFields=&groupByFieldsForStatistics=&outStatistics=&resultOffset=&resultRecordCount=&returnZ=false&returnM=false&quantizationParameters=&f=pgeojson&token=",t.AGO_CATALOGING_UNITS="/"+a+"/FeatureServer/"+u+"/query?where=id%3C%3E%27%27&objectIds=&time=&geometry=&geometryType=esriGeometryEnvelope&inSR=&spatialRel=esriSpatialRelIntersects&resultType=none&distance=&units=esriSRUnit_Meter&outFields="+c+"&returnGeometry=false&returnCentroid=false&multipatchOption=xyFootprint&maxAllowableOffset=&geometryPrecision=&outSR=&returnIdsOnly=false&returnCountOnly=false&returnExtentOnly=false&returnDistinctValues=true&orderByFields=&groupByFieldsForStatistics=&outStatistics=&resultOffset=&resultRecordCount=&returnZ=false&returnM=false&quantizationParameters=&f=pgeojson&token=",t.AGO_HUCS="/"+a+"/FeatureServer/"+s+"/query?where=id%3C%3E%27%27&objectIds=&time=&geometry=&geometryType=esriGeometryEnvelope&inSR=&spatialRel=esriSpatialRelIntersects&resultType=none&distance=&units=esriSRUnit_Meter&outFields="+c+"&returnGeometry=false&returnCentroid=false&multipatchOption=xyFootprint&maxAllowableOffset=&geometryPrecision=&outSR=&returnIdsOnly=false&returnCountOnly=false&returnExtentOnly=false&returnDistinctValues=true&orderByFields=&groupByFieldsForStatistics=&outStatistics=&resultOffset=&resultRecordCount=&returnZ=false&returnM=false&quantizationParameters=&f=pgeojson&token="},function(e,t,n){"use strict";function r(e,t,n){return n}var o={enableMeasure:!1,storedMeasure:r,measureMethods:function(e,t,n){},measure:function(e,t,n){return n},injection:{injectMeasure:function(e){o.storedMeasure=e}}};e.exports=o},function(e,t,n){"use strict";function r(){w.ReactReconcileTransaction&&b?void 0:m(!1)}function o(){this.reinitializeTransaction(),this.dirtyComponentsLength=null,this.callbackQueue=c.getPooled(),this.reconcileTransaction=w.ReactReconcileTransaction.getPooled(!1)}function i(e,t,n,o,i,a){r(),b.batchedUpdates(e,t,n,o,i,a)}function a(e,t){return e._mountOrder-t._mountOrder}function s(e){var t=e.dirtyComponentsLength;t!==v.length?m(!1):void 0,v.sort(a);for(var n=0;t>n;n++){var r=v[n],o=r._pendingCallbacks;if(r._pendingCallbacks=null,h.performUpdateIfNecessary(r,e.reconcileTransaction),o)for(var i=0;i<o.length;i++)e.callbackQueue.enqueue(o[i],r.getPublicInstance())}}function u(e){return r(),b.isBatchingUpdates?void v.push(e):void b.batchedUpdates(u,e)}function l(e,t){b.isBatchingUpdates?void 0:m(!1),g.enqueue(e,t),_=!0}var c=n(145),p=n(46),f=n(25),h=n(55),d=n(104),y=n(6),m=n(3),v=[],g=c.getPooled(),_=!1,b=null,T={initialize:function(){this.dirtyComponentsLength=v.length},close:function(){this.dirtyComponentsLength!==v.length?(v.splice(0,this.dirtyComponentsLength),E()):v.length=0}},P={initialize:function(){this.callbackQueue.reset()},close:function(){this.callbackQueue.notifyAll()}},x=[T,P];y(o.prototype,d.Mixin,{getTransactionWrappers:function(){return x},destructor:function(){this.dirtyComponentsLength=null,c.release(this.callbackQueue),this.callbackQueue=null,w.ReactReconcileTransaction.release(this.reconcileTransaction),this.reconcileTransaction=null},perform:function(e,t,n){return d.Mixin.perform.call(this,this.reconcileTransaction.perform,this.reconcileTransaction,e,t,n)}}),p.addPoolingTo(o);var E=function(){for(;v.length||_;){if(v.length){var e=o.getPooled();e.perform(s,null,e),o.release(e)}if(_){_=!1;var t=g;g=c.getPooled(),t.notifyAll(),c.release(t)}}};E=f.measure("ReactUpdates","flushBatchedUpdates",E);var O={injectReconcileTransaction:function(e){e?void 0:m(!1),w.ReactReconcileTransaction=e},injectBatchingStrategy:function(e){e?void 0:m(!1),"function"!=typeof e.batchedUpdates?m(!1):void 0,"boolean"!=typeof e.isBatchingUpdates?m(!1):void 0,b=e}},w={ReactReconcileTransaction:null,batchedUpdates:i,enqueueUpdate:u,flushBatchedUpdates:E,injection:O,asap:l};e.exports=w},function(e,t){"use strict";function n(e){return function(){return e}}function r(){}r.thatReturns=n,r.thatReturnsFalse=n(!1),r.thatReturnsTrue=n(!0),r.thatReturnsNull=n(null),r.thatReturnsThis=function(){return this},r.thatReturnsArgument=function(e){return e},e.exports=r},function(e,t,n){"use strict";function r(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t["default"]=e,t}Object.defineProperty(t,"__esModule",{value:!0}),t.set_constants=t.use_imagery=t.set_LeafletMap=t.update_HeaderVis=t.set_defaults=t.get_all_geometries=t.set_active_hover=t.get_LayerGeom_ByValue=t.get_tra_info=t.set_search_method=t.get_LayerInfo_ByValue=t.get_LayerInfo_ByPoint=t.handleSearchChange=t.set_mapToPoint=t.set_MapLayers=t.HandleMapEnd=t.get_defaultMapData=t.get_chart_buttons=t.set_active_function=t.get_catchment_data=t.get_nlcd_data_huc12=t.get_nlcd_data=t.update_ChartLevels=t.get_ChartLevels=t.get_TRAData=t.get_ChartData=t.update_ChartVisiblity=t.change_geographyLevelFilter=t.change_geographyLevelActive=t.get_GeographyLevels=t.get_MenuList=void 0;var o=(n(58),n(347)),i=r(o),a=n(342),s=r(a),u=n(344),l=r(u),c=n(346),p=r(c),f=n(343),h=r(f),d=n(345),y=r(d),m=n(191),v=r(m),g=n(348),_=r(g);n(41),t.get_MenuList=i.get_MenuList,t.get_GeographyLevels=l.get_GeographyLevels,t.change_geographyLevelActive=l.change_geographyLevelActive,t.change_geographyLevelFilter=l.change_geographyLevelFilter,t.update_ChartVisiblity=s.update_ChartVisiblity,t.get_ChartData=s.get_ChartData,t.get_TRAData=v.get_TRAData,t.get_ChartLevels=s.get_ChartLevels,t.update_ChartLevels=s.update_ChartLevels,t.get_nlcd_data=s.get_nlcd_data,t.get_nlcd_data_huc12=s.get_nlcd_data_huc12,t.get_catchment_data=s.get_catchment_data,t.set_active_function=s.get_active_function,t.get_chart_buttons=s.get_chart_buttons,t.get_defaultMapData=p.get_defaultMapData,t.HandleMapEnd=p.HandleMapEnd,t.set_MapLayers=p.set_MapLayers,t.set_mapToPoint=p.set_mapToPoint,t.handleSearchChange=p.handleSearchChange,t.get_LayerInfo_ByPoint=p.get_LayerInfo_ByPoint,t.get_LayerInfo_ByValue=p.get_LayerInfo_ByValue,t.set_search_method=p.set_search_method,t.get_tra_info=p.get_tra_info,t.get_LayerGeom_ByValue=p.get_LayerGeom_ByValue,t.set_active_hover=p.set_active_hover,t.get_all_geometries=p.get_all_geometries,t.set_defaults=h.set_defaults,t.update_HeaderVis=h.update_HeaderVis,t.set_LeafletMap=y.set_LeafletMap,t.use_imagery=y.use_imagery,t.set_constants=_.set_constants},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==("undefined"==typeof t?"undefined":s(t))&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+("undefined"==typeof t?"undefined":s(t)));e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol?"symbol":typeof e};Object.defineProperty(t,"__esModule",{value:!0});var u=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),l=n(506),c=r(l),p=n(511),f=r(p),h=n(61),d=r(h),y=["stroke","color","weight","opacity","fill","fillColor","fillOpacity","fillRule","dashArray","lineCap","lineJoin","clickable","pointerEvents","className"],m=function(e){function t(){return o(this,t),i(this,Object.getPrototypeOf(t).apply(this,arguments))}return a(t,e),u(t,[{key:"getPathOptions",value:function(e){return(0,f["default"])(e,y)}},{key:"setStyle",value:function(){var e=arguments.length<=0||void 0===arguments[0]?{}:arguments[0];this.leafletElement.setStyle(e)}},{key:"setStyleIfChanged",value:function(e,t){var n=this.getPathOptions(t);(0,c["default"])(n,this.getPathOptions(e))||this.setStyle(n)}},{key:"render",value:function(){return this.renderChildrenWithProps({popupContainer:this.leafletElement})}}]),t}(d["default"]);t["default"]=m},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}t.__esModule=!0,t.connect=t.Provider=void 0;var o=n(519),i=r(o),a=n(520),s=r(a);t.Provider=i["default"],t.connect=s["default"]},function(e,t,n){"use strict";var r=function(){};e.exports=r},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(e){var t=e.children,n=e.width,r=e.height,o=e.viewBox,i=e.className,s=e.style,l=o||{width:n,height:r,x:0,y:0},c=(0,u["default"])("recharts-surface",i);return a["default"].createElement("svg",{className:c,width:n,height:r,style:s,viewBox:l.x+" "+l.y+" "+l.width+" "+l.height,xmlns:"http://www.w3.org/2000/svg",version:"1.1"},t)}Object.defineProperty(t,"__esModule",{value:!0});var i=n(1),a=r(i),s=n(8),u=r(s),l={width:i.PropTypes.number.isRequired,height:i.PropTypes.number.isRequired,viewBox:i.PropTypes.shape({x:i.PropTypes.number,y:i.PropTypes.number,width:i.PropTypes.number,height:i.PropTypes.number}),className:i.PropTypes.string,style:i.PropTypes.object,children:i.PropTypes.oneOfType([i.PropTypes.arrayOf(i.PropTypes.node),i.PropTypes.node])};o.propTypes=l,t["default"]=o},function(e,t){"use strict";function n(e){return"[object Array]"===g.call(e)}function r(e){return"[object ArrayBuffer]"===g.call(e)}function o(e){return"[object FormData]"===g.call(e)}function i(e){var t;return t="undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&e.buffer instanceof ArrayBuffer}function a(e){return"string"==typeof e}function s(e){return"number"==typeof e}function u(e){return"undefined"==typeof e}function l(e){return null!==e&&"object"===("undefined"==typeof e?"undefined":v(e))}function c(e){return"[object Date]"===g.call(e)}function p(e){return"[object File]"===g.call(e)}function f(e){return"[object Blob]"===g.call(e)}function h(e){return e.replace(/^\s*/,"").replace(/\s*$/,"")}function d(){return"undefined"!=typeof window&&"undefined"!=typeof document&&"function"==typeof document.createElement}function y(e,t){if(null!==e&&"undefined"!=typeof e)if("object"===("undefined"==typeof e?"undefined":v(e))||n(e)||(e=[e]),n(e))for(var r=0,o=e.length;o>r;r++)t.call(null,e[r],r,e);else for(var i in e)e.hasOwnProperty(i)&&t.call(null,e[i],i,e)}function m(){function e(e,n){"object"===v(t[n])&&"object"===("undefined"==typeof e?"undefined":v(e))?t[n]=m(t[n],e):t[n]=e}for(var t={},n=0,r=arguments.length;r>n;n++)y(arguments[n],e);return t}var v="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol?"symbol":typeof e},g=Object.prototype.toString;e.exports={isArray:n,isArrayBuffer:r,isFormData:o,isArrayBufferView:i,isString:a,isNumber:s,isObject:l,isUndefined:u,isDate:c,isFile:p,isBlob:f,isStandardBrowserEnv:d,forEach:y,merge:m,trim:h}},function(e,t,n){"use strict";var r=n(108),o=r({bubbled:null,captured:null}),i=r({topAbort:null,topBlur:null,topCanPlay:null,topCanPlayThrough:null,topChange:null,topClick:null,topCompositionEnd:null,topCompositionStart:null,topCompositionUpdate:null,topContextMenu:null,topCopy:null,topCut:null,topDoubleClick:null,topDrag:null,topDragEnd:null,topDragEnter:null,topDragExit:null,topDragLeave:null,topDragOver:null,topDragStart:null,topDrop:null,topDurationChange:null,topEmptied:null,topEncrypted:null,topEnded:null,topError:null,topFocus:null,topInput:null,topKeyDown:null,topKeyPress:null,topKeyUp:null,topLoad:null,topLoadedData:null,topLoadedMetadata:null,topLoadStart:null,topMouseDown:null,topMouseMove:null,topMouseOut:null,topMouseOver:null,topMouseUp:null,topPaste:null,topPause:null,topPlay:null,topPlaying:null,topProgress:null,topRateChange:null,topReset:null,topScroll:null,topSeeked:null,topSeeking:null,topSelectionChange:null,topStalled:null,topSubmit:null,topSuspend:null,topTextInput:null,topTimeUpdate:null,topTouchCancel:null,topTouchEnd:null,topTouchMove:null,topTouchStart:null,topVolumeChange:null,topWaiting:null,topWheel:null}),a={topLevelTypes:i,PropagationPhases:o};e.exports=a},function(e,t){"use strict";var n={current:null};e.exports=n},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==("undefined"==typeof t?"undefined":s(t))&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+("undefined"==typeof t?"undefined":s(t)));e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol?"symbol":typeof e};Object.defineProperty(t,"__esModule",{value:!0});var u,l,c=n(10),p=r(c),f=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),h=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},d=n(1),y=r(d),m=n(2),v=(r(m),n(197)),g=r(v),_=n(633),b=r(_),T=n(69),P=n(4),x={content:d.PropTypes.oneOfType([d.PropTypes.element,d.PropTypes.func]),viewBox:d.PropTypes.shape({x:d.PropTypes.number,y:d.PropTypes.number,width:d.PropTypes.number,height:d.PropTypes.number}),active:d.PropTypes.bool,separator:d.PropTypes.string,formatter:d.PropTypes.func,offset:d.PropTypes.number,itemStyle:d.PropTypes.object,
  labelStyle:d.PropTypes.object,wrapperStyle:d.PropTypes.object,cursor:d.PropTypes.oneOfType([d.PropTypes.bool,d.PropTypes.element,d.PropTypes.object]),coordinate:d.PropTypes.shape({x:d.PropTypes.number,y:d.PropTypes.number}),label:d.PropTypes.any,payload:d.PropTypes.arrayOf(d.PropTypes.shape({name:d.PropTypes.any,value:d.PropTypes.oneOfType([d.PropTypes.number,d.PropTypes.string]),unit:d.PropTypes.any}))},E={active:!1,offset:10,viewBox:{x1:0,x2:0,y1:0,y2:0},coordinate:{x:0,y:0},cursorStyle:{},separator:" : ",wrapperStyle:{},itemStyle:{},labelStyle:{},cursor:!0},O=function(e,t){if(!(0,P.isSsr)()){var n=g["default"].renderToStaticMarkup(t),r=h({},e,{top:-2e4,left:0,display:"block"}),o=document.createElement("div");o.setAttribute("style",(0,T.getStyleString)(r)),o.innerHTML=n,document.body.appendChild(o);var i=o.getBoundingClientRect();return document.body.removeChild(o),i}return null},w=function(e,t){return y["default"].isValidElement(e)?y["default"].cloneElement(e,t):(0,p["default"])(e)?e(t):y["default"].createElement(b["default"],t)},C=(l=u=function(e){function t(){return o(this,t),i(this,Object.getPrototypeOf(t).apply(this,arguments))}return a(t,e),f(t,[{key:"render",value:function(){var e=this.props.payload;if(!e||!e.length)return null;var t=this.props,n=t.content,r=t.viewBox,o=t.coordinate,i=t.active,a=t.offset,s={pointerEvents:"none",display:i?"block":"none",position:"absolute"},u=w(n,this.props),l=O(s,u);return l?(s.left=Math.max(o.x+l.width+a>r.x+r.width?o.x-l.width-a:o.x+a,r.x),s.top=Math.max(o.y+l.height+a>r.y+r.height?o.y-l.height-a:o.y+a,r.y),y["default"].createElement("div",{className:"recharts-tooltip-wrapper",style:s},u)):null}}]),t}(d.Component),u.displayName="Tooltip",u.propTypes=x,u.defaultProps=E,l);t["default"]=C},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(t,"__esModule",{value:!0}),t.ComposedChart=t.RadialBarChart=t.AreaChart=t.ScatterChart=t.RadarChart=t.Treemap=t.PieChart=t.BarChart=t.LineChart=t.ZAxis=t.YAxis=t.XAxis=t.Scatter=t.Bar=t.Area=t.Line=t.CartesianGrid=t.CartesianAxis=t.ReferenceDot=t.ReferenceLine=t.Brush=t.RadialBar=t.Radar=t.Pie=t.PolarAngleAxis=t.PolarRadiusAxis=t.PolarGrid=t.Cross=t.Dot=t.Polygon=t.Triangle=t.Rectangle=t.Curve=t.Sector=t.Cell=t.ResponsiveContainer=t.Tooltip=t.Legend=t.Surface=void 0,n(635),n(637);var o=n(32),i=r(o),a=n(57),s=r(a),u=n(36),l=r(u),c=n(634),p=r(c),f=n(112),h=r(f),d=n(173),y=r(d),m=n(48),v=r(m),g=n(82),_=r(g),b=n(636),T=r(b),P=n(172),x=r(P),E=n(38),O=r(E),w=n(286),C=r(w),S=n(282),M=r(S),A=n(283),k=r(A),L=n(281),I=r(L),R=n(280),D=r(R),N=n(284),j=r(N),U=n(285),B=r(U),F=n(274),H=r(F),z=n(110),G=r(z),W=n(109),V=r(W),q=n(167),Z=r(q),K=n(168),Y=r(K),J=n(169),X=r(J),$=n(165),Q=r($),ee=n(166),te=r(ee),ne=n(275),re=r(ne),oe=n(170),ie=r(oe),ae=n(171),se=r(ae),ue=n(276),le=r(ue),ce=n(279),pe=r(ce),fe=n(278),he=r(fe),de=n(627),ye=r(de),me=n(631),ve=r(me),ge=n(628),_e=r(ge),be=n(630),Te=r(be),Pe=n(277),xe=r(Pe),Ee=n(629),Oe=r(Ee),we=n(626),Ce=r(we);t.Surface=i["default"],t.Legend=s["default"],t.Tooltip=l["default"],t.ResponsiveContainer=p["default"],t.Cell=h["default"],t.Sector=y["default"],t.Curve=v["default"],t.Rectangle=_["default"],t.Triangle=T["default"],t.Polygon=x["default"],t.Dot=O["default"],t.Cross=C["default"],t.PolarGrid=M["default"],t.PolarRadiusAxis=k["default"],t.PolarAngleAxis=I["default"],t.Pie=D["default"],t.Radar=j["default"],t.RadialBar=B["default"],t.Brush=H["default"],t.ReferenceLine=G["default"],t.ReferenceDot=V["default"],t.CartesianAxis=Z["default"],t.CartesianGrid=Y["default"],t.Line=X["default"],t.Area=Q["default"],t.Bar=te["default"],t.Scatter=re["default"],t.XAxis=ie["default"],t.YAxis=se["default"],t.ZAxis=le["default"],t.LineChart=pe["default"],t.BarChart=he["default"],t.PieChart=ye["default"],t.Treemap=ve["default"],t.RadarChart=_e["default"],t.ScatterChart=Te["default"],t.AreaChart=xe["default"],t.RadialBarChart=Oe["default"],t.ComposedChart=Ce["default"]},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==("undefined"==typeof t?"undefined":s(t))&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+("undefined"==typeof t?"undefined":s(t)));e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol?"symbol":typeof e};Object.defineProperty(t,"__esModule",{value:!0});var u,l,c,p=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},f=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),h=n(1),d=r(h),y=n(2),m=r(y),v=n(8),g=r(v),_=(0,m["default"])((c=l=function(e){function t(){return o(this,t),i(this,Object.getPrototypeOf(t).apply(this,arguments))}return a(t,e),f(t,[{key:"render",value:function(){var e=this.props,t=e.cx,n=e.cy,r=e.r,o=e.className,i=(0,g["default"])("recharts-dot",o);return t===+t&&n===+n&&r===+r?d["default"].createElement("circle",p({},this.props,{className:i})):null}}]),t}(h.Component),l.displayName="Dot",l.propTypes={className:h.PropTypes.string,cx:h.PropTypes.number,cy:h.PropTypes.number,r:h.PropTypes.number},u=c))||u;t["default"]=_},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=Math.PI/180;t.polarToCartesian=function(e,t,r,o){return{x:e+Math.cos(-n*o)*r,y:t+Math.sin(-n*o)*r}},t.getMaxRadius=function(e,t){var n=arguments.length<=2||void 0===arguments[2]?{top:0,right:0,bottom:0,left:0}:arguments[2];return Math.min(Math.abs(e-(n.left||0)-(n.right||0)),Math.abs(t-(n.left||0)-(n.right||0)))/2}},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(t,"__esModule",{value:!0}),t.translateStyle=t.AnimateGroup=t.configBezier=t.configSpring=void 0;var o=n(319),i=r(o),a=n(320),s=n(86),u=n(744),l=r(u);t.configSpring=a.configSpring,t.configBezier=a.configBezier,t.AnimateGroup=l["default"],t.translateStyle=s.translateStyle,t["default"]=i["default"]},function(e,t,n){"use strict";e.exports=n(329)},function(e,t,n){(function(e,r){"use strict";var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol?"symbol":typeof e},i=n(446),a={"function":!0,object:!0},s=a[o(t)]&&t&&!t.nodeType?t:void 0,u=a[o(e)]&&e&&!e.nodeType?e:void 0,l=i(s&&u&&"object"==("undefined"==typeof r?"undefined":o(r))&&r),c=i(a["undefined"==typeof self?"undefined":o(self)]&&self),p=i(a["undefined"==typeof window?"undefined":o(window)]&&window),f=i(a[o(void 0)]&&void 0),h=l||p!==(f&&f.window)&&p||c||f||Function("return this")();e.exports=h}).call(t,n(122)(e),function(){return this}())},function(e,t){"use strict";function n(e){var t="undefined"==typeof e?"undefined":r(e);return!!e&&("object"==t||"function"==t)}var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol?"symbol":typeof e};e.exports=n},function(e,t,n){"use strict";function r(e){var t=l(e);if(!t&&!s(e))return i(e);var n=a(e),r=!!n,c=n||[],p=c.length;for(var f in e)!o(e,f)||r&&("length"==f||u(f,p))||t&&"constructor"==f||c.push(f);return c}var o=n(206),i=n(437),a=n(471),s=n(75),u=n(133),l=n(134);e.exports=r},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(e){return null==e||h["default"].isValidElement(e)}function i(e){return o(e)||Array.isArray(e)&&e.every(o)}function a(e,t,n){e=e||"UnknownComponent";for(var r in t)if(t.hasOwnProperty(r)){var o=t[r](n,r,e);o instanceof Error}}function s(e,t){return p({},e,t)}function u(e){var t=e.type,n=s(t.defaultProps,e.props);if(t.propTypes&&a(t.displayName||t.name,t.propTypes,n),n.children){var r=l(n.children,n);r.length&&(n.childRoutes=r),delete n.children}return n}function l(e,t){var n=[];return h["default"].Children.forEach(e,function(e){if(h["default"].isValidElement(e))if(e.type.createRouteFromReactElement){var r=e.type.createRouteFromReactElement(e,t);r&&n.push(r)}else n.push(u(e))}),n}function c(e){return i(e)?e=l(e):e&&!Array.isArray(e)&&(e=[e]),e}t.__esModule=!0;var p=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};t.isReactChildren=i,t.createRouteFromReactElement=u,t.createRoutesFromReactChildren=l,t.createRoutes=c;var f=n(1),h=r(f),d=n(13);r(d)},function(e,t,n){"use strict";var r=n(3),o=function(e){var t=this;if(t.instancePool.length){var n=t.instancePool.pop();return t.call(n,e),n}return new t(e)},i=function(e,t){var n=this;if(n.instancePool.length){var r=n.instancePool.pop();return n.call(r,e,t),r}return new n(e,t)},a=function(e,t,n){var r=this;if(r.instancePool.length){var o=r.instancePool.pop();return r.call(o,e,t,n),o}return new r(e,t,n)},s=function(e,t,n,r){var o=this;if(o.instancePool.length){var i=o.instancePool.pop();return o.call(i,e,t,n,r),i}return new o(e,t,n,r)},u=function(e,t,n,r,o){var i=this;if(i.instancePool.length){var a=i.instancePool.pop();return i.call(a,e,t,n,r,o),a}return new i(e,t,n,r,o)},l=function(e){var t=this;e instanceof t?void 0:r(!1),e.destructor(),t.instancePool.length<t.poolSize&&t.instancePool.push(e)},c=10,p=o,f=function(e,t){var n=e;return n.instancePool=[],n.getPooled=t||p,n.poolSize||(n.poolSize=c),n.release=l,n},h={addPoolingTo:f,oneArgumentPooler:o,twoArgumentPooler:i,threeArgumentPooler:a,fourArgumentPooler:s,fiveArgumentPooler:u};e.exports=h},function(e,t){"use strict";var n=function(e){var t;for(t in e)if(e.hasOwnProperty(t))return t;return null};e.exports=n},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==("undefined"==typeof t?"undefined":u(t))&&"function"!=typeof t?e:t}function s(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+("undefined"==typeof t?"undefined":u(t)));e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol?"symbol":typeof e};Object.defineProperty(t,"__esModule",{value:!0});var l,c,p,f=n(16),h=r(f),d=n(17),y=r(d),m=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},v=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),g=n(1),_=r(g),b=n(294),T=n(2),P=r(T),x=n(8),E=r(x),O=n(4),w={curveLinear:b.curveLinear,curveMonotoneX:b.curveMonotoneX,curveMonotoneY:b.curveMonotoneY,curveStep:b.curveStep,curveStepAfter:b.curveStepAfter,curveStepBefore:b.curveStepBefore},C=(0,P["default"])((p=c=function(e){function t(){return i(this,t),a(this,Object.getPrototypeOf(t).apply(this,arguments))}return s(t,e),v(t,[{key:"getCurveFactory",value:function(e,t){var n="curve"+e.slice(0,1).toUpperCase()+e.slice(1);return"curveMonotone"===n&&t?w[""+n+("vertical"===t?"Y":"X")]:w[n]||b.curveLinear}},{key:"getPath",value:function(){var e=this.props,t=e.type,n=e.points,r=e.baseLine,i=e.layout,a=(0,b.line)().x(function(e){return e.x}).y(function(e){return e.y}).defined(function(e){return e.x===+e.x&&e.y===+e.y}).curve(this.getCurveFactory(t,i)),s=n.length,u=a(n);if(!u)return"";if("horizontal"===i&&(0,y["default"])(r))u+="L"+n[s-1].x+" "+r+"L"+n[0].x+" "+r+"Z";else if("vertical"===i&&(0,y["default"])(r))u+="L"+r+" "+n[s-1].y+"L"+r+" "+n[0].y+"Z";else if((0,h["default"])(r)&&r.length){var l=r.reduce(function(e,t){return[t].concat(o(e))},[]),c=this.fliterMouseToSeg(a(l)||"");u+="L"+l[0].x+" "+l[0].y+c+"Z"}return u}},{key:"fliterMouseToSeg",value:function(e){var t=/[CSLHVcslhv]/,n=t.exec(e);if(n&&n.length){var r=e.indexOf(n[0]);return e.slice(r)}return e}},{key:"render",value:function(){var e=this.props,t=e.className,n=e.points;e.type;return n&&n.length?_["default"].createElement("path",m({},(0,O.getPresentationAttributes)(this.props),(0,O.filterEventAttributes)(this.props),{className:(0,E["default"])("recharts-curve",t),d:this.getPath()})):null}}]),t}(g.Component),c.displayName="Curve",c.propTypes=m({},O.PRESENTATION_ATTRIBUTES,{className:g.PropTypes.string,type:g.PropTypes.oneOf(["linear","monotone","step","stepBefore","stepAfter"]),layout:g.PropTypes.oneOf(["horizontal","vertical"]),baseLine:g.PropTypes.oneOfType([g.PropTypes.number,g.PropTypes.array]),points:g.PropTypes.arrayOf(g.PropTypes.object)}),c.defaultProps={type:"linear",stroke:"#000",fill:"none",strokeWidth:1,strokeDasharray:"none",points:[]},l=p))||l;t["default"]=C},function(e,t){"use strict";function n(e){return!!e&&"object"==("undefined"==typeof e?"undefined":r(e))}var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol?"symbol":typeof e};e.exports=n},function(e,t,n){"use strict";function r(e){return"string"==typeof e||!o(e)&&i(e)&&u.call(e)==a}var o=n(16),i=n(49),a="[object String]",s=Object.prototype,u=s.toString;e.exports=r},function(e,t,n){"use strict";var r=n(20),o=n(1),i=(o.PropTypes,o.createClass({displayName:"HelperComponent",componentDidMount:function(){var e=this.props.class_name_text?this.props.class_name_text.replace(/ +?/g,""):this.props.helper_name.replace(/ +?/g,"");$(".help.circle.icon."+e).popup()},shouldComponentUpdate:function(e,t){var n=e.helper_name,o=(0,r.get_helper)(n);return!o},render:function(){var e=this.props.class_name_text?this.props.class_name_text.replace(/ +?/g,""):this.props.helper_name.replace(/ +?/g,""),t=this.props.color?this.props.color:"black",n=this.props.helper_name?this.props.helper_name:"",i=(0,r.get_helper)(n),a=n.toUpperCase();return o.createElement("span",null,i&&o.createElement("i",{className:"inverted "+t+" help circle icon "+e,"data-title":a,"data-content":i,style:{paddingLeft:"7px"}}),!i&&o.createElement("span",null))}}));e.exports=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(1);t["default"]=r.PropTypes.oneOfType([r.PropTypes.arrayOf(r.PropTypes.number),r.PropTypes.shape({lat:r.PropTypes.number,lng:r.PropTypes.number}),r.PropTypes.shape({lat:r.PropTypes.number,lon:r.PropTypes.number})])},function(e,t,n){"use strict";function r(e,t,n){return e[t]?new Error("<"+n+'> should not have a "'+t+'" prop'):void 0}t.__esModule=!0,t.falsy=r;var o=n(1),i=o.PropTypes.func,a=o.PropTypes.object,s=o.PropTypes.arrayOf,u=o.PropTypes.oneOfType,l=o.PropTypes.element,c=o.PropTypes.shape,p=o.PropTypes.string,f=c({listen:i.isRequired,pushState:i.isRequired,replaceState:i.isRequired,go:i.isRequired});t.history=f;var h=c({pathname:p.isRequired,search:p.isRequired,state:a,action:p.isRequired,key:p});t.location=h;var d=u([i,p]);t.component=d;var y=u([d,a]);t.components=y;var m=u([a,l]);t.route=m;var v=u([m,s(m)]);t.routes=v,t["default"]={falsy:r,history:f,location:h,component:d,components:y,route:m}},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(e){var t=e.match(/^https?:\/\/[^\/]*/);return null==t?e:e.substring(t[0].length)}function i(e){var t=o(e),n="",r="",i=t.indexOf("#");-1!==i&&(r=t.substring(i),t=t.substring(0,i));var a=t.indexOf("?");return-1!==a&&(n=t.substring(a),t=t.substring(0,a)),""===t&&(t="/"),{pathname:t,search:n,hash:r}}t.__esModule=!0,t.extractPath=o,t.parsePath=i;var a=n(31);r(a)},function(e,t,n){"use strict";function r(){o.attachRefs(this,this._currentElement)}var o=n(587),i={mountComponent:function(e,t,n,o){var i=e.mountComponent(t,n,o);return e._currentElement&&null!=e._currentElement.ref&&n.getReactMountReady().enqueue(r,e),i},unmountComponent:function(e){o.detachRefs(e,e._currentElement),e.unmountComponent()},receiveComponent:function(e,t,n,i){var a=e._currentElement;if(t!==a||i!==e._context){var s=o.shouldUpdateRefs(a,t);s&&o.detachRefs(e,a),e.receiveComponent(t,n,i),s&&e._currentElement&&null!=e._currentElement.ref&&n.getReactMountReady().enqueue(r,e)}},performUpdateIfNecessary:function(e,t){e.performUpdateIfNecessary(t)}};e.exports=i},function(e,t,n){"use strict";function r(e,t,n,r){this.dispatchConfig=e,this.dispatchMarker=t,this.nativeEvent=n;var o=this.constructor.Interface;for(var i in o)if(o.hasOwnProperty(i)){var s=o[i];s?this[i]=s(n):"target"===i?this.target=r:this[i]=n[i]}var u=null!=n.defaultPrevented?n.defaultPrevented:n.returnValue===!1;u?this.isDefaultPrevented=a.thatReturnsTrue:this.isDefaultPrevented=a.thatReturnsFalse,this.isPropagationStopped=a.thatReturnsFalse}var o=n(46),i=n(6),a=n(27),s=(n(7),{type:null,target:null,currentTarget:a.thatReturnsNull,eventPhase:null,bubbles:null,cancelable:null,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:null,isTrusted:null});i(r.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():e.returnValue=!1,this.isDefaultPrevented=a.thatReturnsTrue)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():e.cancelBubble=!0,this.isPropagationStopped=a.thatReturnsTrue)},persist:function(){this.isPersistent=a.thatReturnsTrue},isPersistent:a.thatReturnsFalse,destructor:function(){var e=this.constructor.Interface;for(var t in e)this[t]=null;this.dispatchConfig=null,this.dispatchMarker=null,this.nativeEvent=null}}),r.Interface=s,r.augmentClass=function(e,t){var n=this,r=Object.create(n.prototype);i(r,e.prototype),e.prototype=r,e.prototype.constructor=e,e.Interface=i({},n.Interface,t),e.augmentClass=n.augmentClass,o.addPoolingTo(e,o.fourArgumentPooler)},o.addPoolingTo(r,o.fourArgumentPooler),e.exports=r},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==("undefined"==typeof t?"undefined":s(t))&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+("undefined"==typeof t?"undefined":s(t)));e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol?"symbol":typeof e};Object.defineProperty(t,"__esModule",{value:!0});var u,l,c,p=n(17),f=r(p),h=n(10),d=r(h),y=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},m=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),v=n(1),g=r(v),_=n(2),b=r(_),T=n(197),P=r(T),x=n(32),E=(r(x),n(632)),O=r(E),w=n(69),C=n(4),S=function(e,t){return g["default"].isValidElement(e)?g["default"].cloneElement(e,t):(0,d["default"])(e)?e(t):g["default"].createElement(O["default"],t)},M=(0,b["default"])((c=l=function(e){function t(){return o(this,t),i(this,Object.getPrototypeOf(t).apply(this,arguments))}return a(t,e),m(t,[{key:"getDefaultPosition",value:function(e){var n=this.props,r=n.layout,o=n.align,i=n.verticalAlign,a=n.margin,s=n.chartWidth,u=n.chartHeight,l=void 0,c=void 0;if(!e||(void 0===e.left||null===e.left)&&(void 0===e.right||null===e.right))if("center"===o&&"vertical"===r){var p=t.getLegendBBox(this.props)||{width:0};l={left:((s||0)-p.width)/2}}else l="right"===o?{right:a&&a.right||0}:{left:a&&a.left||0};if(!e||(void 0===e.top||null===e.top)&&(void 0===e.bottom||null===e.bottom))if("middle"===i){var f=t.getLegendBBox(this.props)||{height:0};c={top:((u||0)-f.height)/2}}else c="bottom"===i?{bottom:a&&a.bottom||0}:{top:a&&a.top||0};return y({},l,c)}},{key:"render",value:function(){var e=this.props,t=e.content,n=e.width,r=e.height,o=(e.layout,e.wrapperStyle),i=y({position:"absolute",width:n||"auto",height:r||"auto"},this.getDefaultPosition(o),o);return g["default"].createElement("div",{className:"recharts-legend-wrapper",style:i},S(t,this.props))}}],[{key:"getWithHeight",value:function(e,t,n){var r=e.props.layout;return"vertical"===r&&(0,f["default"])(e.props.height)?{height:e.props.height}:"horizontal"===r?{width:e.props.width||t}:null}},{key:"getLegendBBox",value:function(e){if(!(0,C.isSsr)()){var t=e.content,n=e.width,r=e.height,o=e.wrapperStyle,i=P["default"].renderToStaticMarkup(S(t,e)),a=y({position:"absolute",width:n||"auto",height:r||"auto"},o,{top:-2e4,left:0,display:"block"}),s=document.createElement("div");s.setAttribute("style",(0,w.getStyleString)(a)),s.innerHTML=i,document.body.appendChild(s);var u=s.getBoundingClientRect();return document.body.removeChild(s),u}return null}}]),t}(v.Component),l.displayName="Legend",l.propTypes={content:v.PropTypes.oneOfType([v.PropTypes.element,v.PropTypes.func]),wrapperStyle:v.PropTypes.object,chartWidth:v.PropTypes.number,chartHeight:v.PropTypes.number,width:v.PropTypes.number,height:v.PropTypes.number,iconSize:v.PropTypes.number,layout:v.PropTypes.oneOf(["horizontal","vertical"]),align:v.PropTypes.oneOf(["center","left","right"]),verticalAlign:v.PropTypes.oneOf(["top","bottom","middle"]),margin:v.PropTypes.shape({top:v.PropTypes.number,left:v.PropTypes.number,bottom:v.PropTypes.number,right:v.PropTypes.number}),payload:v.PropTypes.arrayOf(v.PropTypes.shape({value:v.PropTypes.any,id:v.PropTypes.any,type:v.PropTypes.oneOf(["line","scatter","square","rect"])}))},l.defaultProps={iconSize:14,layout:"horizontal",align:"center",verticalAlign:"bottom"},u=c))||u;t["default"]=M},function(e,t){"use strict";function n(e,t){return{error:e,type:t}}function r(e,t){if(e.status>=200&&e.status<300)return e.data;var r=new Error(e.statusText);throw r.response=e,dispatch(n(r,t)),r}Object.defineProperty(t,"__esModule",{value:!0}),t.CheckReponse=r},function(e,t,n){var r,o,i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol?"symbol":typeof e};/*! esri-leaflet - v1.0.3 - 2016-02-22
  	*   Copyright (c) 2016 Environmental Systems Research Institute, Inc.
  	*   Apache License*/
  !function(i){r=[n(5)],o=function(e){return i(e)}.apply(t,r),!(void 0!==o&&(e.exports=o)),"undefined"!=typeof window&&window.L&&i(window.L)}(function(e){var t={VERSION:"1.0.3",Layers:{},Services:{},Controls:{},Tasks:{},Util:{},Support:{CORS:!!(window.XMLHttpRequest&&"withCredentials"in new XMLHttpRequest),pointerEvents:""===document.documentElement.style.pointerEvents}};return"undefined"!=typeof window&&window.L&&(window.L.esri=t),function(t){function n(e){var t={};for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);return t}function r(e,t){for(var n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}function o(e){return r(e[0],e[e.length-1])||e.push(e[0]),e}function i(e){var t,n=0,r=0,o=e.length,i=e[r];for(r;o-1>r;r++)t=e[r+1],n+=(t[0]-i[0])*(t[1]+i[1]),i=t;return n>=0}function a(e,t,n,r){var o=(r[0]-n[0])*(e[1]-n[1])-(r[1]-n[1])*(e[0]-n[0]),i=(t[0]-e[0])*(e[1]-n[1])-(t[1]-e[1])*(e[0]-n[0]),a=(r[1]-n[1])*(t[0]-e[0])-(r[0]-n[0])*(t[1]-e[1]);if(0!==a){var s=o/a,u=i/a;if(s>=0&&1>=s&&u>=0&&1>=u)return!0}return!1}function s(e,t){for(var n=0;n<e.length-1;n++)for(var r=0;r<t.length-1;r++)if(a(e[n],e[n+1],t[r],t[r+1]))return!0;return!1}function u(e,t){for(var n=!1,r=-1,o=e.length,i=o-1;++r<o;i=r)(e[r][1]<=t[1]&&t[1]<e[i][1]||e[i][1]<=t[1]&&t[1]<e[r][1])&&t[0]<(e[i][0]-e[r][0])*(t[1]-e[r][1])/(e[i][1]-e[r][1])+e[r][0]&&(n=!n);return n}function l(e,t){var n=s(e,t),r=u(e,t[0]);return!(n||!r)}function c(e){for(var t,n,r,a=[],u=[],c=0;c<e.length;c++){var p=o(e[c].slice(0));if(!(p.length<4))if(i(p)){var f=[p];a.push(f)}else u.push(p)}for(var h=[];u.length;){r=u.pop();var d=!1;for(t=a.length-1;t>=0;t--)if(n=a[t][0],l(n,r)){a[t].push(r),d=!0;break}d||h.push(r)}for(;h.length;){r=h.pop();var y=!1;for(t=a.length-1;t>=0;t--)if(n=a[t][0],s(n,r)){a[t].push(r),y=!0;break}y||a.push([r.reverse()])}return 1===a.length?{type:"Polygon",coordinates:a[0]}:{type:"MultiPolygon",coordinates:a}}function p(e){var t=[],n=e.slice(0),r=o(n.shift().slice(0));if(r.length>=4){i(r)||r.reverse(),t.push(r);for(var a=0;a<n.length;a++){var s=o(n[a].slice(0));s.length>=4&&(i(s)&&s.reverse(),t.push(s))}}return t}function f(e){for(var t=[],n=0;n<e.length;n++)for(var r=p(e[n]),o=r.length-1;o>=0;o--){var i=r[o].slice(0);t.push(i)}return t}var h=window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.msRequestAnimationFrame||function(e){return window.setTimeout(e,1e3/60)};t.Util.extentToBounds=function(t){var n=new e.LatLng(t.ymin,t.xmin),r=new e.LatLng(t.ymax,t.xmax);return new e.LatLngBounds(n,r)},t.Util.boundsToExtent=function(t){return t=e.latLngBounds(t),{xmin:t.getSouthWest().lng,ymin:t.getSouthWest().lat,xmax:t.getNorthEast().lng,ymax:t.getNorthEast().lat,spatialReference:{wkid:4326}}},t.Util.arcgisToGeojson=function(e,r){var o={};return"number"==typeof e.x&&"number"==typeof e.y&&(o.type="Point",o.coordinates=[e.x,e.y]),e.points&&(o.type="MultiPoint",o.coordinates=e.points.slice(0)),e.paths&&(1===e.paths.length?(o.type="LineString",o.coordinates=e.paths[0].slice(0)):(o.type="MultiLineString",o.coordinates=e.paths.slice(0))),e.rings&&(o=c(e.rings.slice(0))),(e.geometry||e.attributes)&&(o.type="Feature",o.geometry=e.geometry?t.Util.arcgisToGeojson(e.geometry):null,o.properties=e.attributes?n(e.attributes):null,e.attributes&&(o.id=e.attributes[r]||e.attributes.OBJECTID||e.attributes.FID)),o},t.Util.geojsonToArcGIS=function(e,r){r=r||"OBJECTID";var o,i={wkid:4326},a={};switch(e.type){case"Point":a.x=e.coordinates[0],a.y=e.coordinates[1],a.spatialReference=i;break;case"MultiPoint":a.points=e.coordinates.slice(0),a.spatialReference=i;break;case"LineString":a.paths=[e.coordinates.slice(0)],a.spatialReference=i;break;case"MultiLineString":a.paths=e.coordinates.slice(0),a.spatialReference=i;break;case"Polygon":a.rings=p(e.coordinates.slice(0)),a.spatialReference=i;break;case"MultiPolygon":a.rings=f(e.coordinates.slice(0)),a.spatialReference=i;break;case"Feature":e.geometry&&(a.geometry=t.Util.geojsonToArcGIS(e.geometry,r)),a.attributes=e.properties?n(e.properties):{},e.id&&(a.attributes[r]=e.id);break;case"FeatureCollection":for(a=[],o=0;o<e.features.length;o++)a.push(t.Util.geojsonToArcGIS(e.features[o],r));break;case"GeometryCollection":for(a=[],o=0;o<e.geometries.length;o++)a.push(t.Util.geojsonToArcGIS(e.geometries[o],r))}return a},t.Util.responseToFeatureCollection=function(e,n){var r;if(n)r=n;else if(e.objectIdFieldName)r=e.objectIdFieldName;else if(e.fields){for(var o=0;o<=e.fields.length-1;o++)if("esriFieldTypeOID"===e.fields[o].type){r=e.fields[o].name;break}}else r="OBJECTID";var i={type:"FeatureCollection",features:[]},a=e.features||e.results;if(a.length)for(var s=a.length-1;s>=0;s--)i.features.push(t.Util.arcgisToGeojson(a[s],r));return i},t.Util.cleanUrl=function(e){return e=e.replace(/^\s+|\s+$|\A\s+|\s+\z/g,""),"/"!==e[e.length-1]&&(e+="/"),e},t.Util.isArcgisOnline=function(e){return/\.arcgis\.com.*?FeatureServer/g.test(e)},t.Util.geojsonTypeToArcGIS=function(e){var t;switch(e){case"Point":t="esriGeometryPoint";break;case"MultiPoint":t="esriGeometryMultipoint";break;case"LineString":t="esriGeometryPolyline";break;case"MultiLineString":t="esriGeometryPolyline";break;case"Polygon":t="esriGeometryPolygon";break;case"MultiPolygon":t="esriGeometryPolygon"}return t},t.Util.requestAnimationFrame=e.Util.bind(h,window),t.Util.warn=function(e){console&&console.warn&&console.warn(e)}}(t),function(t){function n(e){var t="";e.f=e.f||"json";for(var n in e)if(e.hasOwnProperty(n)){var r,o=e[n],i=Object.prototype.toString.call(o);t.length&&(t+="&"),r="[object Array]"===i?"[object Object]"===Object.prototype.toString.call(o[0])?JSON.stringify(o):o.join(","):"[object Object]"===i?JSON.stringify(o):"[object Date]"===i?o.valueOf():o,t+=encodeURIComponent(n)+"="+encodeURIComponent(r)}return t}function r(t,n){var r=new XMLHttpRequest;return r.onerror=function(o){r.onreadystatechange=e.Util.falseFn,t.call(n,{error:{code:500,message:"XMLHttpRequest error"}},null)},r.onreadystatechange=function(){var o,i;if(4===r.readyState){try{o=JSON.parse(r.responseText)}catch(a){o=null,i={code:500,message:"Could not parse response as JSON. This could also be caused by a CORS or XMLHttpRequest error."}}!i&&o.error&&(i=o.error,o=null),r.onerror=e.Util.falseFn,t.call(n,i,o)}},r}var o=0;window._EsriLeafletCallbacks={},t.Request={request:function(o,i,a,s){var u=n(i),l=r(a,s),c=(o+"?"+u).length;if(2e3>=c&&e.esri.Support.CORS)l.open("GET",o+"?"+u),l.send(null);else{if(!(c>2e3&&e.esri.Support.CORS))return 2e3>=c&&!e.esri.Support.CORS?e.esri.Request.get.JSONP(o,i,a,s):void t.Util.warn("a request to "+o+" was longer then 2000 characters and this browser cannot make a cross-domain post request. Please use a proxy http://esri.github.io/esri-leaflet/api-reference/request.html");l.open("POST",o),l.setRequestHeader("Content-Type","application/x-www-form-urlencoded"),l.send(u)}return l},post:{XMLHTTP:function(e,t,o,i){var a=r(o,i);return a.open("POST",e),a.setRequestHeader("Content-Type","application/x-www-form-urlencoded"),a.send(n(t)),a}},get:{CORS:function(e,t,o,i){var a=r(o,i);return a.open("GET",e+"?"+n(t),!0),a.send(null),a},JSONP:function(t,r,i,a){var s="c"+o;r.callback="window._EsriLeafletCallbacks."+s;var u=e.DomUtil.create("script",null,document.body);return u.type="text/javascript",u.src=t+"?"+n(r),u.id=s,window._EsriLeafletCallbacks[s]=function(e){if(window._EsriLeafletCallbacks[s]!==!0){var t,n=Object.prototype.toString.call(e);"[object Object]"!==n&&"[object Array]"!==n&&(t={error:{code:500,message:"Expected array or object as JSONP response"}},e=null),!t&&e.error&&(t=e,e=null),i.call(a,t,e),window._EsriLeafletCallbacks[s]=!0}},o++,{id:s,url:u.src,abort:function(){window._EsriLeafletCallbacks._callback[s]({code:0,message:"Request aborted."})}}}}},t.get=t.Support.CORS?t.Request.get.CORS:t.Request.get.JSONP,t.post=t.Request.post.XMLHTTP,t.request=t.Request.request}(t),t.Services.Service=e.Class.extend({includes:e.Mixin.Events,options:{proxy:!1,useCors:t.Support.CORS},initialize:function(n){n=n||{},this._requestQueue=[],this._authenticating=!1,e.Util.setOptions(this,n),this.options.url=t.Util.cleanUrl(this.options.url)},get:function(e,t,n,r){return this._request("get",e,t,n,r)},post:function(e,t,n,r){return this._request("post",e,t,n,r)},request:function(e,t,n,r){return this._request("request",e,t,n,r)},metadata:function(e,t){return this._request("get","",{},e,t)},authenticate:function(e){return this._authenticating=!1,this.options.token=e,this._runQueue(),this},_request:function(e,n,r,o,i){this.fire("requeststart",{url:this.options.url+n,params:r,method:e});var a=this._createServiceCallback(e,n,r,o,i);if(this.options.token&&(r.token=this.options.token),this._authenticating)return void this._requestQueue.push([e,n,r,o,i]);var s=this.options.proxy?this.options.proxy+"?"+this.options.url+n:this.options.url+n;return"get"!==e&&"request"!==e||this.options.useCors?t[e](s,r,a):t.Request.get.JSONP(s,r,a)},_createServiceCallback:function(t,n,r,o,i){return e.Util.bind(function(a,s){!a||499!==a.code&&498!==a.code||(this._authenticating=!0,this._requestQueue.push([t,n,r,o,i]),this.fire("authenticationrequired",{authenticate:e.Util.bind(this.authenticate,this)}),a.authenticate=e.Util.bind(this.authenticate,this)),o.call(i,a,s),a?this.fire("requesterror",{url:this.options.url+n,params:r,message:a.message,code:a.code,method:t}):this.fire("requestsuccess",{url:this.options.url+n,params:r,response:s,method:t}),this.fire("requestend",{url:this.options.url+n,params:r,method:t})},this)},_runQueue:function(){for(var e=this._requestQueue.length-1;e>=0;e--){var t=this._requestQueue[e],n=t.shift();this[n].apply(this,t)}this._requestQueue=[]}}),t.Services.service=function(e){return new t.Services.Service(e)},t.Services.FeatureLayerService=t.Services.Service.extend({options:{idAttribute:"OBJECTID"},query:function(){return new t.Tasks.Query(this)},addFeature:function(e,n,r){return delete e.id,e=t.Util.geojsonToArcGIS(e),this.post("addFeatures",{features:[e]},function(e,t){var o=t&&t.addResults?t.addResults[0]:void 0;n&&n.call(r,e||t.addResults[0].error,o)},r)},updateFeature:function(e,n,r){return e=t.Util.geojsonToArcGIS(e,this.options.idAttribute),this.post("updateFeatures",{features:[e]},function(e,t){var o=t&&t.updateResults?t.updateResults[0]:void 0;n&&n.call(r,e||t.updateResults[0].error,o)},r)},deleteFeature:function(e,t,n){return this.post("deleteFeatures",{objectIds:e},function(e,r){var o=r&&r.deleteResults?r.deleteResults[0]:void 0;t&&t.call(n,e||r.deleteResults[0].error,o)},n)},deleteFeatures:function(e,t,n){return this.post("deleteFeatures",{objectIds:e},function(e,r){var o=r&&r.deleteResults?r.deleteResults:void 0;t&&t.call(n,e||r.deleteResults[0].error,o)},n)}}),t.Services.featureLayerService=function(e){return new t.Services.FeatureLayerService(e)},t.Services.MapService=t.Services.Service.extend({identify:function(){return new t.Tasks.identifyFeatures(this)},find:function(){return new t.Tasks.Find(this)},query:function(){return new t.Tasks.Query(this)}}),t.Services.mapService=function(e){return new t.Services.MapService(e)},t.Services.ImageService=t.Services.Service.extend({query:function(){return new t.Tasks.Query(this)},identify:function(){return new t.Tasks.IdentifyImage(this)}}),t.Services.imageService=function(e){return new t.Services.ImageService(e)},t.Tasks.Task=e.Class.extend({options:{proxy:!1,useCors:t.Support.CORS},generateSetter:function(t,n){return e.Util.bind(function(e){return this.params[t]=e,this},n)},initialize:function(t){if(t.request&&t.options?(this._service=t,e.Util.setOptions(this,t.options)):(e.Util.setOptions(this,t),this.options.url=e.esri.Util.cleanUrl(t.url)),this.params=e.Util.extend({},this.params||{}),this.setters)for(var n in this.setters){var r=this.setters[n];this[n]=this.generateSetter(r,this)}},token:function(e){return this._service?this._service.authenticate(e):this.params.token=e,this},request:function(e,t){return this._service?this._service.request(this.path,this.params,e,t):this._request("request",this.path,this.params,e,t)},_request:function(e,n,r,o,i){var a=this.options.proxy?this.options.proxy+"?"+this.options.url+n:this.options.url+n;return"get"!==e&&"request"!==e||this.options.useCors?t[e](a,r,o,i):t.Request.get.JSONP(a,r,o,i)}}),t.Tasks.Query=t.Tasks.Task.extend({setters:{offset:"offset",limit:"limit",fields:"outFields",precision:"geometryPrecision",featureIds:"objectIds",returnGeometry:"returnGeometry",token:"token"},path:"query",params:{returnGeometry:!0,where:"1=1",outSr:4326,outFields:"*"},within:function(e){return this._setGeometry(e),this.params.spatialRel="esriSpatialRelContains",this},intersects:function(e){return this._setGeometry(e),this.params.spatialRel="esriSpatialRelIntersects",this},contains:function(e){return this._setGeometry(e),this.params.spatialRel="esriSpatialRelWithin",this},overlaps:function(e){return this._setGeometry(e),this.params.spatialRel="esriSpatialRelOverlaps",this},nearby:function(t,n){return t=e.latLng(t),this.params.geometry=[t.lng,t.lat],this.params.geometryType="esriGeometryPoint",this.params.spatialRel="esriSpatialRelIntersects",this.params.units="esriSRUnit_Meter",this.params.distance=n,this.params.inSr=4326,this},where:function(e){return this.params.where=e,this},between:function(e,t){return this.params.time=[e.valueOf(),t.valueOf()],this},simplify:function(e,t){var n=Math.abs(e.getBounds().getWest()-e.getBounds().getEast());return this.params.maxAllowableOffset=n/e.getSize().y*t,this},orderBy:function(e,t){return t=t||"ASC",this.params.orderByFields=this.params.orderByFields?this.params.orderByFields+",":"",this.params.orderByFields+=[e,t].join(" "),this},run:function(e,n){return this._cleanParams(),t.Util.isArcgisOnline(this.options.url)?(this.params.f="geojson",this.request(function(t,r){this._trapSQLerrors(t),e.call(n,t,r,r)},this)):this.request(function(r,o){this._trapSQLerrors(r),e.call(n,r,o&&t.Util.responseToFeatureCollection(o),o)},this)},count:function(e,t){return this._cleanParams(),this.params.returnCountOnly=!0,this.request(function(t,n){e.call(this,t,n&&n.count,n)},t)},ids:function(e,t){return this._cleanParams(),this.params.returnIdsOnly=!0,this.request(function(t,n){e.call(this,t,n&&n.objectIds,n)},t)},bounds:function(e,n){return this._cleanParams(),this.params.returnExtentOnly=!0,this.request(function(r,o){e.call(n,r,o&&o.extent&&t.Util.extentToBounds(o.extent),o)},n)},pixelSize:function(t){return t=e.point(t),this.params.pixelSize=[t.x,t.y],this},layer:function(e){return this.path=e+"/query",this},_trapSQLerrors:function(e){e&&"400"===e.code&&t.Util.warn("one common syntax error in query requests is encasing string values in double quotes instead of single quotes")},_cleanParams:function(){delete this.params.returnIdsOnly,delete this.params.returnExtentOnly,delete this.params.returnCountOnly},_setGeometry:function(n){return this.params.inSr=4326,n instanceof e.LatLngBounds?(this.params.geometry=t.Util.boundsToExtent(n),void(this.params.geometryType="esriGeometryEnvelope")):(n.getLatLng&&(n=n.getLatLng()),n instanceof e.LatLng&&(n={type:"Point",coordinates:[n.lng,n.lat]}),n instanceof e.GeoJSON&&(n=n.getLayers()[0].feature.geometry,this.params.geometry=t.Util.geojsonToArcGIS(n),this.params.geometryType=t.Util.geojsonTypeToArcGIS(n.type)),n.toGeoJSON&&(n=n.toGeoJSON()),"Feature"===n.type&&(n=n.geometry),"Point"===n.type||"LineString"===n.type||"Polygon"===n.type?(this.params.geometry=t.Util.geojsonToArcGIS(n),void(this.params.geometryType=t.Util.geojsonTypeToArcGIS(n.type))):void t.Util.warn("invalid geometry passed to spatial query. Should be an L.LatLng, L.LatLngBounds or L.Marker or a GeoJSON Point Line or Polygon object"))}}),t.Tasks.query=function(e){return new t.Tasks.Query(e)},t.Tasks.Find=t.Tasks.Task.extend({setters:{contains:"contains",text:"searchText",fields:"searchFields",spatialReference:"sr",sr:"sr",layers:"layers",returnGeometry:"returnGeometry",maxAllowableOffset:"maxAllowableOffset",precision:"geometryPrecision",dynamicLayers:"dynamicLayers",returnZ:"returnZ",returnM:"returnM",gdbVersion:"gdbVersion",token:"token"},path:"find",params:{sr:4326,contains:!0,returnGeometry:!0,returnZ:!0,returnM:!1},layerDefs:function(e,t){return this.params.layerDefs=this.params.layerDefs?this.params.layerDefs+";":"",this.params.layerDefs+=[e,t].join(":"),this},simplify:function(e,t){var n=Math.abs(e.getBounds().getWest()-e.getBounds().getEast());return this.params.maxAllowableOffset=n/e.getSize().y*t,this},run:function(e,n){return this.request(function(r,o){e.call(n,r,o&&t.Util.responseToFeatureCollection(o),o)},n)}}),t.Tasks.find=function(e){return new t.Tasks.Find(e)},t.Tasks.Identify=t.Tasks.Task.extend({path:"identify",between:function(e,t){return this.params.time=[e.valueOf(),t.valueOf()],this}}),t.Tasks.IdentifyImage=t.Tasks.Identify.extend({setters:{setMosaicRule:"mosaicRule",setRenderingRule:"renderingRule",setPixelSize:"pixelSize",returnCatalogItems:"returnCatalogItems",returnGeometry:"returnGeometry"},params:{returnGeometry:!1},at:function(t){return t=e.latLng(t),this.params.geometry=JSON.stringify({x:t.lng,y:t.lat,spatialReference:{wkid:4326}}),this.params.geometryType="esriGeometryPoint",this},getMosaicRule:function(){return this.params.mosaicRule},getRenderingRule:function(){return this.params.renderingRule},getPixelSize:function(){return this.params.pixelSize},run:function(e,t){return this.request(function(n,r){e.call(t,n,r&&this._responseToGeoJSON(r),r)},this)},_responseToGeoJSON:function(e){var n=e.location,r=e.catalogItems,o=e.catalogItemVisibilities,i={pixel:{type:"Feature",geometry:{type:"Point",coordinates:[n.x,n.y]},crs:{type:"EPSG",properties:{code:n.spatialReference.wkid}},properties:{OBJECTID:e.objectId,name:e.name,value:e.value},id:e.objectId}};if(e.properties&&e.properties.Values&&(i.pixel.properties.values=e.properties.Values),r&&r.features&&(i.catalogItems=t.Util.responseToFeatureCollection(r),o&&o.length===i.catalogItems.features.length))for(var a=o.length-1;a>=0;a--)i.catalogItems.features[a].properties.catalogItemVisibility=o[a];return i}}),t.Tasks.identifyImage=function(e){return new t.Tasks.IdentifyImage(e)},t.Tasks.IdentifyFeatures=t.Tasks.Identify.extend({setters:{layers:"layers",precision:"geometryPrecision",tolerance:"tolerance",returnGeometry:"returnGeometry"},params:{sr:4326,layers:"all",tolerance:3,returnGeometry:!0},on:function(e){var n=t.Util.boundsToExtent(e.getBounds()),r=e.getSize();return this.params.imageDisplay=[r.x,r.y,96],this.params.mapExtent=[n.xmin,n.ymin,n.xmax,n.ymax],this},at:function(t){return t=e.latLng(t),this.params.geometry=[t.lng,t.lat],this.params.geometryType="esriGeometryPoint",this},layerDef:function(e,t){return this.params.layerDefs=this.params.layerDefs?this.params.layerDefs+";":"",this.params.layerDefs+=[e,t].join(":"),this},simplify:function(e,t){var n=Math.abs(e.getBounds().getWest()-e.getBounds().getEast());return this.params.maxAllowableOffset=n/e.getSize().y*(1-t),this},run:function(e,n){return this.request(function(r,o){if(r)return void e.call(n,r,void 0,o);var i=t.Util.responseToFeatureCollection(o);o.results=o.results.reverse();for(var a=0;a<i.features.length;a++){var s=i.features[a];s.layerId=o.results[a].layerId}e.call(n,void 0,i,o)})}}),t.Tasks.identifyFeatures=function(e){return new t.Tasks.IdentifyFeatures(e)},function(t){var n="https:"!==window.location.protocol?"http:":"https:";t.Layers.BasemapLayer=e.TileLayer.extend({statics:{TILES:{Streets:{urlTemplate:n+"//{s}.arcgisonline.com/ArcGIS/rest/services/World_Street_Map/MapServer/tile/{z}/{y}/{x}",attributionUrl:"https://static.arcgis.com/attribution/World_Street_Map",options:{hideLogo:!1,logoPosition:"bottomright",minZoom:1,maxZoom:19,subdomains:["server","services"],attribution:"Esri"}},Topographic:{urlTemplate:n+"//{s}.arcgisonline.com/ArcGIS/rest/services/World_Topo_Map/MapServer/tile/{z}/{y}/{x}",attributionUrl:"https://static.arcgis.com/attribution/World_Topo_Map",options:{hideLogo:!1,logoPosition:"bottomright",minZoom:1,maxZoom:19,subdomains:["server","services"],attribution:"Esri"}},Oceans:{urlTemplate:n+"//{s}.arcgisonline.com/arcgis/rest/services/Ocean/World_Ocean_Base/MapServer/tile/{z}/{y}/{x}",attributionUrl:"https://static.arcgis.com/attribution/Ocean_Basemap",options:{hideLogo:!1,logoPosition:"bottomright",minZoom:1,maxZoom:16,subdomains:["server","services"],attribution:"Esri"}},OceansLabels:{urlTemplate:n+"//{s}.arcgisonline.com/arcgis/rest/services/Ocean/World_Ocean_Reference/MapServer/tile/{z}/{y}/{x}",options:{hideLogo:!0,logoPosition:"bottomright",minZoom:1,maxZoom:16,subdomains:["server","services"]}},NationalGeographic:{urlTemplate:n+"//{s}.arcgisonline.com/ArcGIS/rest/services/NatGeo_World_Map/MapServer/tile/{z}/{y}/{x}",options:{hideLogo:!1,logoPosition:"bottomright",minZoom:1,maxZoom:16,subdomains:["server","services"],attribution:"Esri"}},DarkGray:{urlTemplate:n+"//{s}.arcgisonline.com/ArcGIS/rest/services/Canvas/World_Dark_Gray_Base/MapServer/tile/{z}/{y}/{x}",options:{hideLogo:!1,logoPosition:"bottomright",minZoom:1,maxZoom:16,subdomains:["server","services"],attribution:"Esri, DeLorme, HERE"}},DarkGrayLabels:{urlTemplate:n+"//{s}.arcgisonline.com/ArcGIS/rest/services/Canvas/World_Dark_Gray_Reference/MapServer/tile/{z}/{y}/{x}",options:{hideLogo:!0,logoPosition:"bottomright",minZoom:1,maxZoom:16,subdomains:["server","services"]}},Gray:{urlTemplate:n+"//{s}.arcgisonline.com/ArcGIS/rest/services/Canvas/World_Light_Gray_Base/MapServer/tile/{z}/{y}/{x}",options:{hideLogo:!1,logoPosition:"bottomright",minZoom:1,maxZoom:16,subdomains:["server","services"],attribution:"Esri, NAVTEQ, DeLorme"}},GrayLabels:{urlTemplate:n+"//{s}.arcgisonline.com/ArcGIS/rest/services/Canvas/World_Light_Gray_Reference/MapServer/tile/{z}/{y}/{x}",options:{hideLogo:!0,logoPosition:"bottomright",minZoom:1,maxZoom:16,subdomains:["server","services"]}},Imagery:{urlTemplate:n+"//{s}.arcgisonline.com/ArcGIS/rest/services/World_Imagery/MapServer/tile/{z}/{y}/{x}",options:{hideLogo:!1,logoPosition:"bottomright",minZoom:1,maxZoom:19,subdomains:["server","services"],attribution:"Esri, DigitalGlobe, GeoEye, i-cubed, USDA, USGS, AEX, Getmapping, Aerogrid, IGN, IGP, swisstopo, and the GIS User Community"}},ImageryLabels:{urlTemplate:n+"//{s}.arcgisonline.com/ArcGIS/rest/services/Reference/World_Boundaries_and_Places/MapServer/tile/{z}/{y}/{x}",options:{hideLogo:!0,logoPosition:"bottomright",minZoom:1,maxZoom:19,subdomains:["server","services"]}},ImageryTransportation:{urlTemplate:n+"//{s}.arcgisonline.com/ArcGIS/rest/services/Reference/World_Transportation/MapServer/tile/{z}/{y}/{x}",options:{hideLogo:!0,logoPosition:"bottomright",minZoom:1,maxZoom:19,subdomains:["server","services"]}},ShadedRelief:{urlTemplate:n+"//{s}.arcgisonline.com/ArcGIS/rest/services/World_Shaded_Relief/MapServer/tile/{z}/{y}/{x}",options:{hideLogo:!1,logoPosition:"bottomright",minZoom:1,maxZoom:13,subdomains:["server","services"],attribution:"Esri, NAVTEQ, DeLorme"}},ShadedReliefLabels:{urlTemplate:n+"//{s}.arcgisonline.com/ArcGIS/rest/services/Reference/World_Boundaries_and_Places_Alternate/MapServer/tile/{z}/{y}/{x}",options:{hideLogo:!0,logoPosition:"bottomright",minZoom:1,maxZoom:12,subdomains:["server","services"]}},Terrain:{urlTemplate:n+"//{s}.arcgisonline.com/ArcGIS/rest/services/World_Terrain_Base/MapServer/tile/{z}/{y}/{x}",options:{hideLogo:!1,logoPosition:"bottomright",minZoom:1,maxZoom:13,subdomains:["server","services"],attribution:"Esri, USGS, NOAA"}},TerrainLabels:{urlTemplate:n+"//{s}.arcgisonline.com/ArcGIS/rest/services/Reference/World_Reference_Overlay/MapServer/tile/{z}/{y}/{x}",options:{hideLogo:!0,logoPosition:"bottomright",minZoom:1,maxZoom:13,subdomains:["server","services"]}}}},initialize:function(n,r){var o;if("object"==("undefined"==typeof n?"undefined":i(n))&&n.urlTemplate&&n.options)o=n;else{if("string"!=typeof n||!t.BasemapLayer.TILES[n])throw new Error('L.esri.BasemapLayer: Invalid parameter. Use one of "Streets", "Topographic", "Oceans", "OceansLabels", "NationalGeographic", "Gray", "GrayLabels", "DarkGray", "DarkGrayLabels", "Imagery", "ImageryLabels", "ImageryTransportation", "ShadedRelief", "ShadedReliefLabels", "Terrain" or "TerrainLabels"');o=t.BasemapLayer.TILES[n]}var a=e.Util.extend(o.options,r);e.TileLayer.prototype.initialize.call(this,o.urlTemplate,e.Util.setOptions(this,a)),o.attributionUrl&&this._getAttributionData(o.attributionUrl),this._logo=new t.Controls.Logo({position:this.options.logoPosition})},onAdd:function(t){this.options.hideLogo||t._hasEsriLogo||(this._logo.addTo(t),t._hasEsriLogo=!0),e.TileLayer.prototype.onAdd.call(this,t),t.on("moveend",this._updateMapAttribution,this)},onRemove:function(t){!t._hasEsriLogo&&this._logo&&this._logo._container&&(t.removeControl(this._logo),t._hasEsriLogo=!1),e.TileLayer.prototype.onRemove.call(this,t),t.off("moveend",this._updateMapAttribution,this)},getAttribution:function(){var e='<span class="esri-attributions" style="line-height:14px; vertical-align: -3px; text-overflow:ellipsis; white-space:nowrap; overflow:hidden; display:inline-block;">'+this.options.attribution+"</span>";return e},_getAttributionData:function(t){e.esri.Request.get.JSONP(t,{},e.Util.bind(function(t,n){this._attributions=[];for(var r=0;r<n.contributors.length;r++)for(var o=n.contributors[r],i=0;i<o.coverageAreas.length;i++){var a=o.coverageAreas[i],s=new e.LatLng(a.bbox[0],a.bbox[1]),u=new e.LatLng(a.bbox[2],a.bbox[3]);this._attributions.push({attribution:o.attribution,score:a.score,bounds:new e.LatLngBounds(s,u),minZoom:a.zoomMin,maxZoom:a.zoomMax})}this._attributions.sort(function(e,t){return t.score-e.score}),this._updateMapAttribution()},this))},_updateMapAttribution:function(){if(this._map&&this._map.attributionControl&&this._attributions){for(var e="",t=this._map.getBounds(),n=this._map.getZoom(),r=0;r<this._attributions.length;r++){var o=this._attributions[r],i=o.attribution;!e.match(i)&&t.intersects(o.bounds)&&n>=o.minZoom&&n<=o.maxZoom&&(e+=", "+i)}e=e.substr(2);var a=this._map.attributionControl._container.querySelector(".esri-attributions");a.innerHTML=e,a.style.maxWidth=.65*this._map.getSize().x+"px",this.fire("attributionupdated",{attribution:e})}}}),t.BasemapLayer=t.Layers.BasemapLayer,t.Layers.basemapLayer=function(e,n){return new t.Layers.BasemapLayer(e,n)},t.basemapLayer=function(e,n){return new t.Layers.BasemapLayer(e,n)}}(t),t.Layers.RasterLayer=e.Class.extend({includes:e.Mixin.Events,options:{opacity:1,position:"front",f:"image"},onAdd:function(t){if(this._map=t,this._update=e.Util.limitExecByInterval(this._update,this.options.updateInterval,this),t.options.crs&&t.options.crs.code){var n=t.options.crs.code.split(":")[1];this.options.bboxSR=n,this.options.imageSR=n}t.on("moveend",this._update,this),this._currentImage&&this._currentImage._bounds.equals(this._map.getBounds())?t.addLayer(this._currentImage):this._currentImage&&(this._map.removeLayer(this._currentImage),this._currentImage=null),this._update(),this._popup&&(this._map.on("click",this._getPopupData,this),this._map.on("dblclick",this._resetPopupState,this))},bindPopup:function(t,n){return this._shouldRenderPopup=!1,this._lastClick=!1,this._popup=e.popup(n),this._popupFunction=t,this._map&&(this._map.on("click",this._getPopupData,this),this._map.on("dblclick",this._resetPopupState,this)),this},unbindPopup:function(){return this._map&&(this._map.closePopup(this._popup),this._map.off("click",this._getPopupData,this),this._map.off("dblclick",this._resetPopupState,this)),this._popup=!1,this},onRemove:function(e){this._currentImage&&this._map.removeLayer(this._currentImage),this._popup&&(this._map.off("click",this._getPopupData,this),this._map.off("dblclick",this._resetPopupState,this)),this._map.off("moveend",this._update,this),this._map=null},addTo:function(e){return e.addLayer(this),this},removeFrom:function(e){return e.removeLayer(this),this},bringToFront:function(){return this.options.position="front",this._currentImage&&this._currentImage.bringToFront(),this},bringToBack:function(){return this.options.position="back",this._currentImage&&this._currentImage.bringToBack(),this},getAttribution:function(){return this.options.attribution},getOpacity:function(){return this.options.opacity},setOpacity:function(e){return this.options.opacity=e,this._currentImage.setOpacity(e),this},getTimeRange:function(){return[this.options.from,this.options.to]},setTimeRange:function(e,t){return this.options.from=e,this.options.to=t,this._update(),this},metadata:function(e,t){return this._service.metadata(e,t),this},authenticate:function(e){return this._service.authenticate(e),this},_renderImage:function(t,n){if(this._map){var r=new e.ImageOverlay(t,n,{opacity:0}).addTo(this._map);r.once("load",function(e){var t=e.target,r=this._currentImage;t._bounds.equals(n)&&t._bounds.equals(this._map.getBounds())?(this._currentImage=t,"front"===this.options.position?this.bringToFront():this.bringToBack(),this._map&&this._currentImage._map?this._currentImage.setOpacity(this.options.opacity):this._currentImage._map.removeLayer(this._currentImage),r&&this._map&&this._map.removeLayer(r),r&&r._map&&r._map.removeLayer(r)):this._map.removeLayer(t),this.fire("load",{bounds:n})},this),this.fire("loading",{bounds:n})}},_update:function(){if(this._map){var e=this._map.getZoom(),t=this._map.getBounds();if(!(this._animatingZoom||this._map._panTransition&&this._map._panTransition._inProgress)){if(e>this.options.maxZoom||e<this.options.minZoom)return void(this._currentImage&&this._currentImage._map.removeLayer(this._currentImage));var n=this._buildExportParams();this._requestExport(n,t)}}},_renderPopup:function(t,n,r,o){if(t=e.latLng(t),this._shouldRenderPopup&&this._lastClick.equals(t)){var i=this._popupFunction(n,r,o);i&&this._popup.setLatLng(t).setContent(i).openOn(this._map)}},_resetPopupState:function(e){this._shouldRenderPopup=!1,this._lastClick=e.latlng},_propagateEvent:function(t){t=e.extend({layer:t.target,target:this},t),this.fire(t.type,t)}}),t.Layers.DynamicMapLayer=t.Layers.RasterLayer.extend({options:{updateInterval:150,layers:!1,layerDefs:!1,timeOptions:!1,format:"png24",transparent:!0,f:"json"},initialize:function(n){n.url=t.Util.cleanUrl(n.url),this._service=new t.Services.MapService(n),this._service.on("authenticationrequired requeststart requestend requesterror requestsuccess",this._propagateEvent,this),(n.proxy||n.token)&&"json"!==n.f&&(n.f="json"),e.Util.setOptions(this,n)},getDynamicLayers:function(){return this.options.dynamicLayers},setDynamicLayers:function(e){return this.options.dynamicLayers=e,this._update(),this},getLayers:function(){return this.options.layers},setLayers:function(e){return this.options.layers=e,this._update(),this},getLayerDefs:function(){return this.options.layerDefs},setLayerDefs:function(e){return this.options.layerDefs=e,this._update(),this},getTimeOptions:function(){return this.options.timeOptions},setTimeOptions:function(e){return this.options.timeOptions=e,this._update(),this},query:function(){return this._service.query()},identify:function(){return this._service.identify()},find:function(){return this._service.find()},_getPopupData:function(t){var n=e.Util.bind(function(n,r,o){n||setTimeout(e.Util.bind(function(){this._renderPopup(t.latlng,n,r,o)},this),300)},this),r=this.identify().on(this._map).at(t.latlng);this.options.layers?r.layers("visible:"+this.options.layers.join(",")):r.layers("visible"),r.run(n),this._shouldRenderPopup=!0,this._lastClick=t.latlng},_buildExportParams:function(){var e=this._map.getBounds(),t=this._map.getSize(),n=this._map.options.crs.project(e._northEast),r=this._map.options.crs.project(e._southWest),o=this._map.latLngToLayerPoint(e._northEast),i=this._map.latLngToLayerPoint(e._southWest);(o.y>0||i.y<t.y)&&(t.y=i.y-o.y);var a={bbox:[r.x,r.y,n.x,n.y].join(","),size:t.x+","+t.y,dpi:96,format:this.options.format,transparent:this.options.transparent,bboxSR:this.options.bboxSR,imageSR:this.options.imageSR};return this.options.dynamicLayers&&(a.dynamicLayers=this.options.dynamicLayers),
  this.options.layers&&(a.layers="show:"+this.options.layers.join(",")),this.options.layerDefs&&(a.layerDefs=JSON.stringify(this.options.layerDefs)),this.options.timeOptions&&(a.timeOptions=JSON.stringify(this.options.timeOptions)),this.options.from&&this.options.to&&(a.time=this.options.from.valueOf()+","+this.options.to.valueOf()),this._service.options.token&&(a.token=this._service.options.token),a},_requestExport:function(t,n){"json"===this.options.f?this._service.request("export",t,function(e,t){e||this._renderImage(t.href,n)},this):(t.f="image",this._renderImage(this.options.url+"export"+e.Util.getParamString(t),n))}}),t.DynamicMapLayer=t.Layers.DynamicMapLayer,t.Layers.dynamicMapLayer=function(e){return new t.Layers.DynamicMapLayer(e)},t.dynamicMapLayer=function(e){return new t.Layers.DynamicMapLayer(e)},t.Layers.ImageMapLayer=t.Layers.RasterLayer.extend({options:{updateInterval:150,format:"jpgpng",transparent:!0,f:"json"},query:function(){return this._service.query()},identify:function(){return this._service.identify()},initialize:function(n){n.url=t.Util.cleanUrl(n.url),this._service=new t.Services.ImageService(n),this._service.on("authenticationrequired requeststart requestend requesterror requestsuccess",this._propagateEvent,this),e.Util.setOptions(this,n)},setPixelType:function(e){return this.options.pixelType=e,this._update(),this},getPixelType:function(){return this.options.pixelType},setBandIds:function(t){return e.Util.isArray(t)?this.options.bandIds=t.join(","):this.options.bandIds=t.toString(),this._update(),this},getBandIds:function(){return this.options.bandIds},setNoData:function(t,n){return e.Util.isArray(t)?this.options.noData=t.join(","):this.options.noData=t.toString(),n&&(this.options.noDataInterpretation=n),this._update(),this},getNoData:function(){return this.options.noData},getNoDataInterpretation:function(){return this.options.noDataInterpretation},setRenderingRule:function(e){this.options.renderingRule=e,this._update()},getRenderingRule:function(){return this.options.renderingRule},setMosaicRule:function(e){this.options.mosaicRule=e,this._update()},getMosaicRule:function(){return this.options.mosaicRule},_getPopupData:function(t){var n=e.Util.bind(function(n,r,o){n||setTimeout(e.Util.bind(function(){this._renderPopup(t.latlng,n,r,o)},this),300)},this),r=this.identify().at(t.latlng);this.options.mosaicRule&&r.setMosaicRule(this.options.mosaicRule),r.run(n),this._shouldRenderPopup=!0,this._lastClick=t.latlng},_buildExportParams:function(){var e=this._map.getBounds(),t=this._map.getSize(),n=this._map.options.crs.project(e._northEast),r=this._map.options.crs.project(e._southWest),o={bbox:[r.x,r.y,n.x,n.y].join(","),size:t.x+","+t.y,format:this.options.format,transparent:this.options.transparent,bboxSR:this.options.bboxSR,imageSR:this.options.imageSR};return this.options.from&&this.options.to&&(o.time=this.options.from.valueOf()+","+this.options.to.valueOf()),this.options.pixelType&&(o.pixelType=this.options.pixelType),this.options.interpolation&&(o.interpolation=this.options.interpolation),this.options.compressionQuality&&(o.compressionQuality=this.options.compressionQuality),this.options.bandIds&&(o.bandIds=this.options.bandIds),this.options.noData&&(o.noData=this.options.noData),this.options.noDataInterpretation&&(o.noDataInterpretation=this.options.noDataInterpretation),this._service.options.token&&(o.token=this._service.options.token),this.options.renderingRule&&(o.renderingRule=JSON.stringify(this.options.renderingRule)),this.options.mosaicRule&&(o.mosaicRule=JSON.stringify(this.options.mosaicRule)),o},_requestExport:function(t,n){"json"===this.options.f?this._service.request("exportImage",t,function(e,t){e||this._renderImage(t.href,n)},this):(t.f="image",this._renderImage(this.options.url+"exportImage"+e.Util.getParamString(t),n))}}),t.ImageMapLayer=t.Layers.ImageMapLayer,t.Layers.imageMapLayer=function(e){return new t.Layers.ImageMapLayer(e)},t.imageMapLayer=function(e){return new t.Layers.ImageMapLayer(e)},t.Layers.TiledMapLayer=e.TileLayer.extend({options:{zoomOffsetAllowance:.1,correctZoomLevels:!0},statics:{MercatorZoomLevels:{0:156543.033928,1:78271.5169639999,2:39135.7584820001,3:19567.8792409999,4:9783.93962049996,5:4891.96981024998,6:2445.98490512499,7:1222.99245256249,8:611.49622628138,9:305.748113140558,10:152.874056570411,11:76.4370282850732,12:38.2185141425366,13:19.1092570712683,14:9.55462853563415,15:4.77731426794937,16:2.38865713397468,17:1.19432856685505,18:.597164283559817,19:.298582141647617,20:.14929107082381,21:.07464553541191,22:.0373227677059525,23:.0186613838529763}},initialize:function(n){n.url=t.Util.cleanUrl(n.url),n=e.Util.setOptions(this,n),this.tileUrl=e.esri.Util.cleanUrl(n.url)+"tile/{z}/{y}/{x}",this._service=new e.esri.Services.MapService(n),this._service.on("authenticationrequired requeststart requestend requesterror requestsuccess",this._propagateEvent,this),this.tileUrl.match("://tiles.arcgisonline.com")&&(this.tileUrl=this.tileUrl.replace("://tiles.arcgisonline.com","://tiles{s}.arcgisonline.com"),n.subdomains=["1","2","3","4"]),this.options.token&&(this.tileUrl+="?token="+this.options.token),e.TileLayer.prototype.initialize.call(this,this.tileUrl,n)},getTileUrl:function(t){return e.Util.template(this.tileUrl,e.extend({s:this._getSubdomain(t),z:this._lodMap[t.z]||t.z,x:t.x,y:t.y},this.options))},onAdd:function(n){!this._lodMap&&this.options.correctZoomLevels?(this._lodMap={},this.metadata(function(r,o){if(!r){var i=o.spatialReference.latestWkid||o.spatialReference.wkid;if(102100===i||3857===i)for(var a=o.tileInfo.lods,s=t.Layers.TiledMapLayer.MercatorZoomLevels,u=0;u<a.length;u++){var l=a[u];for(var c in s){var p=s[c];if(this._withinPercentage(l.resolution,p,this.options.zoomOffsetAllowance)){this._lodMap[c]=l.level;break}}}else t.Util.warn("L.esri.TiledMapLayer is using a non-mercator spatial reference. Support may be available through Proj4Leaflet http://esri.github.io/esri-leaflet/examples/non-mercator-projection.html")}e.TileLayer.prototype.onAdd.call(this,n)},this)):e.TileLayer.prototype.onAdd.call(this,n)},metadata:function(e,t){return this._service.metadata(e,t),this},identify:function(){return this._service.identify()},authenticate:function(e){var t="?token="+e;return this.tileUrl=this.options.token?this.tileUrl.replace(/\?token=(.+)/g,t):this.tileUrl+t,this.options.token=e,this._service.authenticate(e),this},_propagateEvent:function(t){t=e.extend({layer:t.target,target:this},t),this.fire(t.type,t)},_withinPercentage:function(e,t,n){var r=Math.abs(e/t-1);return n>r}}),e.esri.TiledMapLayer=e.esri.Layers.tiledMapLayer,e.esri.Layers.tiledMapLayer=function(t){return new e.esri.Layers.TiledMapLayer(t)},e.esri.tiledMapLayer=function(t){return new e.esri.Layers.TiledMapLayer(t)},t.Layers.FeatureGrid=e.Class.extend({includes:e.Mixin.Events,options:{cellSize:512,updateInterval:150},initialize:function(t){t=e.setOptions(this,t)},onAdd:function(t){this._map=t,this._update=e.Util.limitExecByInterval(this._update,this.options.updateInterval,this),this._map.addEventListener(this.getEvents(),this),this._reset(),this._update()},onRemove:function(){this._map.removeEventListener(this.getEvents(),this),this._removeCells()},getEvents:function(){var e={viewreset:this._reset,moveend:this._update,zoomend:this._onZoom};return e},addTo:function(e){return e.addLayer(this),this},removeFrom:function(e){return e.removeLayer(this),this},_onZoom:function(){var e=this._map.getZoom();e>this.options.maxZoom||e<this.options.minZoom?(this.removeFrom(this._map),this._map.addEventListener("zoomend",this.getEvents().zoomend,this)):this._map.hasLayer(this)||(this._map.removeEventListener("zoomend",this.getEvents().zoomend,this),this.addTo(this._map))},_reset:function(){this._removeCells(),this._cells={},this._activeCells={},this._cellsToLoad=0,this._cellsTotal=0,this._resetWrap()},_resetWrap:function(){var e=this._map,t=e.options.crs;if(!t.infinite){var n=this._getCellSize();t.wrapLng&&(this._wrapLng=[Math.floor(e.project([0,t.wrapLng[0]]).x/n),Math.ceil(e.project([0,t.wrapLng[1]]).x/n)]),t.wrapLat&&(this._wrapLat=[Math.floor(e.project([t.wrapLat[0],0]).y/n),Math.ceil(e.project([t.wrapLat[1],0]).y/n)])}},_getCellSize:function(){return this.options.cellSize},_update:function(){if(this._map){var t=this._map.getPixelBounds(),n=this._map.getZoom(),r=this._getCellSize(),o=[r/2,r/2];if(!(n>this.options.maxZoom||n<this.options.minZoom)){var i=t.min.subtract(o).divideBy(r).floor();i.x=Math.max(i.x,0),i.y=Math.max(i.y,0);var a=e.bounds(i,t.max.add(o).divideBy(r).floor());this._removeOtherCells(a),this._addCells(a)}}},_addCells:function(t){var n,r,o,i=[],a=t.getCenter(),s=this._map.getZoom();for(n=t.min.y;n<=t.max.y;n++)for(r=t.min.x;r<=t.max.x;r++)o=new e.Point(r,n),o.z=s,i.push(o);var u=i.length;if(0!==u)for(this._cellsToLoad+=u,this._cellsTotal+=u,i.sort(function(e,t){return e.distanceTo(a)-t.distanceTo(a)}),r=0;u>r;r++)this._addCell(i[r])},_cellCoordsToBounds:function(t){var n=this._map,r=this.options.cellSize,o=t.multiplyBy(r),i=o.add([r,r]),a=n.unproject(o,t.z).wrap(),s=n.unproject(i,t.z).wrap();return new e.LatLngBounds(a,s)},_cellCoordsToKey:function(e){return e.x+":"+e.y},_keyToCellCoords:function(t){var n=t.split(":"),r=parseInt(n[0],10),o=parseInt(n[1],10);return new e.Point(r,o)},_removeOtherCells:function(e){for(var t in this._cells)e.contains(this._keyToCellCoords(t))||this._removeCell(t)},_removeCell:function(e){var t=this._activeCells[e];t&&(delete this._activeCells[e],this.cellLeave&&this.cellLeave(t.bounds,t.coords),this.fire("cellleave",{bounds:t.bounds,coords:t.coords}))},_removeCells:function(){for(var e in this._cells){var t=this._cells[e].bounds,n=this._cells[e].coords;this.cellLeave&&this.cellLeave(t,n),this.fire("cellleave",{bounds:t,coords:n})}},_addCell:function(e){this._wrapCoords(e);var t=this._cellCoordsToKey(e),n=this._cells[t];n&&!this._activeCells[t]&&(this.cellEnter&&this.cellEnter(n.bounds,e),this.fire("cellenter",{bounds:n.bounds,coords:e}),this._activeCells[t]=n),n||(n={coords:e,bounds:this._cellCoordsToBounds(e)},this._cells[t]=n,this._activeCells[t]=n,this.createCell&&this.createCell(n.bounds,e),this.fire("cellcreate",{bounds:n.bounds,coords:e}))},_wrapCoords:function(t){t.x=this._wrapLng?e.Util.wrapNum(t.x,this._wrapLng):t.x,t.y=this._wrapLat?e.Util.wrapNum(t.y,this._wrapLat):t.y}}),function(t){function n(e){this.values=e||[]}t.Layers.FeatureManager=t.Layers.FeatureGrid.extend({options:{where:"1=1",fields:["*"],from:!1,to:!1,timeField:!1,timeFilterMode:"server",simplifyFactor:0,precision:6},initialize:function(r){if(t.Layers.FeatureGrid.prototype.initialize.call(this,r),r.url=t.Util.cleanUrl(r.url),r=e.setOptions(this,r),this._service=new t.Services.FeatureLayerService(r),"*"!==this.options.fields[0]){for(var o=!1,i=0;i<this.options.fields.length;i++)this.options.fields[i].match(/^(OBJECTID|FID|OID|ID)$/i)&&(o=!0);o===!1&&t.Util.warn("no known esriFieldTypeOID field detected in fields Array.  Please add an attribute field containing unique IDs to ensure the layer can be drawn correctly.")}this._service.on("authenticationrequired requeststart requestend requesterror requestsuccess",function(t){t=e.extend({target:this},t),this.fire(t.type,t)},this),this.options.timeField.start&&this.options.timeField.end?(this._startTimeIndex=new n,this._endTimeIndex=new n):this.options.timeField&&(this._timeIndex=new n),this._cache={},this._currentSnapshot=[],this._activeRequests=0,this._pendingRequests=[]},onAdd:function(e){return t.Layers.FeatureGrid.prototype.onAdd.call(this,e)},onRemove:function(e){return t.Layers.FeatureGrid.prototype.onRemove.call(this,e)},getAttribution:function(){return this.options.attribution},createCell:function(e,t){this._requestFeatures(e,t)},_requestFeatures:function(n,r,o){this._activeRequests++,1===this._activeRequests&&this.fire("loading",{bounds:n}),this._buildQuery(n).run(function(i,a,s){s&&s.exceededTransferLimit&&this.fire("drawlimitexceeded"),!i&&a&&a.features.length&&!this._removed&&t.Util.requestAnimationFrame(e.Util.bind(function(){this._addFeatures(a.features,r),this._postProcessFeatures(n)},this)),i||!a||a.features.length||this._postProcessFeatures(n),o&&o.call(this,i,a)},this)},_postProcessFeatures:function(e){this._activeRequests--,this._activeRequests<=0&&this.fire("load",{bounds:e})},_cacheKey:function(e){return e.z+":"+e.x+":"+e.y},_addFeatures:function(e,t){var n=this._cacheKey(t);this._cache[n]=this._cache[n]||[];for(var r=e.length-1;r>=0;r--){var o=e[r].id;this._currentSnapshot.push(o),this._cache[n].push(o)}this.options.timeField&&this._buildTimeIndexes(e);var i=this._map.getZoom();i>this.options.maxZoom||i<this.options.minZoom||this.createLayers(e)},_buildQuery:function(e){var t=this._service.query().intersects(e).where(this.options.where).fields(this.options.fields).precision(this.options.precision);return this.options.simplifyFactor&&t.simplify(this._map,this.options.simplifyFactor),"server"===this.options.timeFilterMode&&this.options.from&&this.options.to&&t.between(this.options.from,this.options.to),t},setWhere:function(n,r,o){this.options.where=n&&n.length?n:"1=1";for(var i=[],a=[],s=0,u=null,l=e.Util.bind(function(n,l){if(s--,n&&(u=n),l)for(var c=l.features.length-1;c>=0;c--)a.push(l.features[c].id);0>=s&&(this._currentSnapshot=a,t.Util.requestAnimationFrame(e.Util.bind(function(){this.removeLayers(i),this.addLayers(a),r&&r.call(o,u)},this)))},this),c=this._currentSnapshot.length-1;c>=0;c--)i.push(this._currentSnapshot[c]);for(var p in this._activeCells){s++;var f=this._keyToCellCoords(p),h=this._cellCoordsToBounds(f);this._requestFeatures(h,p,l)}return this},getWhere:function(){return this.options.where},getTimeRange:function(){return[this.options.from,this.options.to]},setTimeRange:function(t,n,r,o){var i=this.options.from,a=this.options.to,s=0,u=null,l=e.Util.bind(function(e){e&&(u=e),this._filterExistingFeatures(i,a,t,n),s--,r&&0>=s&&r.call(o,u)},this);if(this.options.from=t,this.options.to=n,this._filterExistingFeatures(i,a,t,n),"server"===this.options.timeFilterMode)for(var c in this._activeCells){s++;var p=this._keyToCellCoords(c),f=this._cellCoordsToBounds(p);this._requestFeatures(f,c,l)}},refresh:function(){for(var e in this._activeCells){var t=this._keyToCellCoords(e),n=this._cellCoordsToBounds(t);this._requestFeatures(n,e)}this.redraw&&this.once("load",function(){this.eachFeature(function(e){this._redraw(e.feature.id)},this)},this)},_filterExistingFeatures:function(n,r,o,i){var a=n&&r?this._getFeaturesInTimeRange(n,r):this._currentSnapshot,s=this._getFeaturesInTimeRange(o,i);if(s.indexOf)for(var u=0;u<s.length;u++){var l=a.indexOf(s[u]);l>=0&&a.splice(l,1)}t.Util.requestAnimationFrame(e.Util.bind(function(){this.removeLayers(a),this.addLayers(s)},this))},_getFeaturesInTimeRange:function(e,t){var n,r=[];if(this.options.timeField.start&&this.options.timeField.end){var o=this._startTimeIndex.between(e,t),i=this._endTimeIndex.between(e,t);n=o.concat(i)}else n=this._timeIndex.between(e,t);for(var a=n.length-1;a>=0;a--)r.push(n[a].id);return r},_buildTimeIndexes:function(e){var t,n;if(this.options.timeField.start&&this.options.timeField.end){var r=[],o=[];for(t=e.length-1;t>=0;t--)n=e[t],r.push({id:n.id,value:new Date(n.properties[this.options.timeField.start])}),o.push({id:n.id,value:new Date(n.properties[this.options.timeField.end])});this._startTimeIndex.bulkAdd(r),this._endTimeIndex.bulkAdd(o)}else{var i=[];for(t=e.length-1;t>=0;t--)n=e[t],i.push({id:n.id,value:new Date(n.properties[this.options.timeField])});this._timeIndex.bulkAdd(i)}},_featureWithinTimeRange:function(e){if(!this.options.from||!this.options.to)return!0;var t=+this.options.from.valueOf(),n=+this.options.to.valueOf();if("string"==typeof this.options.timeField){var r=+e.properties[this.options.timeField];return r>=t&&n>=r}if(this.options.timeField.start&&this.options.timeField.end){var o=+e.properties[this.options.timeField.start],i=+e.properties[this.options.timeField.end];return o>=t&&n>=o||i>=t&&n>=i}},authenticate:function(e){return this._service.authenticate(e),this},metadata:function(e,t){return this._service.metadata(e,t),this},query:function(){return this._service.query()},_getMetadata:function(t){if(this._metadata){var n;t(n,this._metadata)}else this.metadata(e.Util.bind(function(e,n){this._metadata=n,t(e,this._metadata)},this))},addFeature:function(t,n,r){this._getMetadata(e.Util.bind(function(o,i){this._service.addFeature(t,e.Util.bind(function(e,o){e||(t.properties[i.objectIdField]=o.objectId,t.id=o.objectId,this.createLayers([t])),n&&n.call(r,e,o)},this))},this))},updateFeature:function(e,t,n){this._service.updateFeature(e,function(r,o){r||(this.removeLayers([e.id],!0),this.createLayers([e])),t&&t.call(n,r,o)},this)},deleteFeature:function(e,t,n){this._service.deleteFeature(e,function(e,r){!e&&r.objectId&&this.removeLayers([r.objectId],!0),t&&t.call(n,e,r)},this)},deleteFeatures:function(e,t,n){return this._service.deleteFeatures(e,function(e,r){if(!e&&r.length>0)for(var o=0;o<r.length;o++)this.removeLayers([r[o].objectId],!0);t&&t.call(n,e,r)},this)}}),n.prototype._query=function(e){for(var t,n,r,o=0,i=this.values.length-1;i>=o;)if(r=t=(o+i)/2|0,n=this.values[Math.round(t)],+n.value<+e)o=t+1;else{if(!(+n.value>+e))return t;i=t-1}return~i},n.prototype.sort=function(){this.values.sort(function(e,t){return+t.value-+e.value}).reverse(),this.dirty=!1},n.prototype.between=function(e,t){this.dirty&&this.sort();var n=this._query(e),r=this._query(t);return 0===n&&0===r?[]:(n=Math.abs(n),r=0>r?Math.abs(r):r+1,this.values.slice(n,r))},n.prototype.bulkAdd=function(e){this.dirty=!0,this.values=this.values.concat(e)}}(t),t.Layers.FeatureLayer=t.Layers.FeatureManager.extend({statics:{EVENTS:"click dblclick mouseover mouseout mousemove contextmenu popupopen popupclose"},options:{cacheLayers:!0},initialize:function(n){t.Layers.FeatureManager.prototype.initialize.call(this,n),n=e.setOptions(this,n),this._layers={},this._leafletIds={},this._key="c"+(1e9*Math.random()).toString(36).replace(".","_")},onAdd:function(e){return e.on("zoomstart zoomend",function(e){this._zooming="zoomstart"===e.type},this),this._removed=!1,t.Layers.FeatureManager.prototype.onAdd.call(this,e)},onRemove:function(e){this._removed=!0;for(var n in this._layers)e.removeLayer(this._layers[n]);return t.Layers.FeatureManager.prototype.onRemove.call(this,e)},createNewLayer:function(t){return e.GeoJSON.geometryToLayer(t,this.options.pointToLayer,e.GeoJSON.coordsToLatLng,this.options)},_updateLayer:function(t,n){var r=[],o=this.options.coordsToLatLng||e.GeoJSON.coordsToLatLng;switch(n.properties&&(t.feature.properties=n.properties),n.geometry.type){case"Point":r=e.GeoJSON.coordsToLatLng(n.geometry.coordinates),t.setLatLng(r);break;case"LineString":r=e.GeoJSON.coordsToLatLngs(n.geometry.coordinates,0,o),t.setLatLngs(r);break;case"MultiLineString":r=e.GeoJSON.coordsToLatLngs(n.geometry.coordinates,1,o),t.setLatLngs(r);break;case"Polygon":r=e.GeoJSON.coordsToLatLngs(n.geometry.coordinates,1,o),t.setLatLngs(r);break;case"MultiPolygon":r=e.GeoJSON.coordsToLatLngs(n.geometry.coordinates,2,o),t.setLatLngs(r)}},createLayers:function(e){for(var n=e.length-1;n>=0;n--){var r,o=e[n],i=this._layers[o.id];i&&!this._map.hasLayer(i)&&this._map.addLayer(i),i&&(i.setLatLngs||i.setLatLng)&&this._updateLayer(i,o),i||(r=this.createNewLayer(o),r.feature=o,this.options.style?r._originalStyle=this.options.style:r.setStyle&&(r._originalStyle=r.options),r._leaflet_id=this._key+"_"+o.id,this._leafletIds[r._leaflet_id]=o.id,r.on(t.Layers.FeatureLayer.EVENTS,this._propagateEvent,this),this._popup&&r.bindPopup&&r.bindPopup(this._popup(r.feature,r),this._popupOptions),this.options.onEachFeature&&this.options.onEachFeature(r.feature,r),this._layers[r.feature.id]=r,this.resetStyle(r.feature.id),this.fire("createfeature",{feature:r.feature}),(!this.options.timeField||this.options.timeField&&this._featureWithinTimeRange(o))&&this._map.addLayer(r))}},addLayers:function(e){for(var t=e.length-1;t>=0;t--){var n=this._layers[e[t]];n&&(this.fire("addfeature",{feature:n.feature}),this._map.addLayer(n))}},removeLayers:function(e,t){for(var n=e.length-1;n>=0;n--){var r=e[n],o=this._layers[r];o&&(this.fire("removefeature",{feature:o.feature,permanent:t}),this._map.removeLayer(o)),o&&t&&delete this._layers[r]}},cellEnter:function(n,r){this._zooming||t.Util.requestAnimationFrame(e.Util.bind(function(){var e=this._cacheKey(r),t=this._cellCoordsToKey(r),n=this._cache[e];this._activeCells[t]&&n&&this.addLayers(n)},this))},cellLeave:function(n,r){this._zooming||t.Util.requestAnimationFrame(e.Util.bind(function(){var e=this._cacheKey(r),t=this._cellCoordsToKey(r),n=this._cache[e],o=this._map.getBounds();if(!this._activeCells[t]&&n){for(var i=!0,a=0;a<n.length;a++){var s=this._layers[n[a]];s&&s.getBounds&&o.intersects(s.getBounds())&&(i=!1)}i&&this.removeLayers(n,!this.options.cacheLayers),!this.options.cacheLayers&&i&&(delete this._cache[e],delete this._cells[t],delete this._activeCells[t])}},this))},resetStyle:function(e){var t=this._layers[e];return t&&this.setFeatureStyle(t.feature.id,t._originalStyle),this},setStyle:function(e){return this.options.style=e,this.eachFeature(function(t){this.setFeatureStyle(t.feature.id,e)},this),this},setFeatureStyle:function(t,n){var r=this._layers[t];return"function"==typeof n&&(n=n(r.feature)),n||r.defaultOptions||(n=e.Path.prototype.options,n.fill=!0),r&&r.setStyle&&r.setStyle(n),this},bindPopup:function(e,t){this._popup=e,this._popupOptions=t;for(var n in this._layers){var r=this._layers[n],o=this._popup(r.feature,r);r.bindPopup(o,t)}return this},unbindPopup:function(){this._popup=!1;for(var e in this._layers){var t=this._layers[e];if(t.unbindPopup)t.unbindPopup();else if(t.getLayers){var n=t.getLayers();for(var r in n){var o=n[r];o.unbindPopup()}}}return this},eachFeature:function(e,t){for(var n in this._layers)e.call(t,this._layers[n]);return this},getFeature:function(e){return this._layers[e]},bringToBack:function(){this.eachFeature(function(e){e.bringToBack&&e.bringToBack()})},bringToFront:function(){this.eachFeature(function(e){e.bringToFront&&e.bringToFront()})},redraw:function(e){return e&&this._redraw(e),this},_redraw:function(t){var n=this._layers[t],r=n.feature;if(n&&n.setIcon&&this.options.pointToLayer&&this.options.pointToLayer){var o=this.options.pointToLayer(r,e.latLng(r.geometry.coordinates[1],r.geometry.coordinates[0])),i=o.options.icon;n.setIcon(i)}if(n&&n.setStyle&&this.options.pointToLayer){var a=this.options.pointToLayer(r,e.latLng(r.geometry.coordinates[1],r.geometry.coordinates[0])),s=a.options;this.setFeatureStyle(r.id,s)}n&&n.setStyle&&this.options.style&&this.resetStyle(r.id)},_propagateEvent:function(e){e.layer=this._layers[this._leafletIds[e.target._leaflet_id]],e.target=this,this.fire(e.type,e)}}),t.FeatureLayer=t.Layers.FeatureLayer,t.Layers.featureLayer=function(e){return new t.Layers.FeatureLayer(e)},t.featureLayer=function(e){return new t.Layers.FeatureLayer(e)},t.Controls.Logo=e.Control.extend({options:{position:"bottomright",marginTop:0,marginLeft:0,marginBottom:0,marginRight:0},onAdd:function(){var t=e.DomUtil.create("div","esri-leaflet-logo");return t.style.marginTop=this.options.marginTop,t.style.marginLeft=this.options.marginLeft,t.style.marginBottom=this.options.marginBottom,t.style.marginRight=this.options.marginRight,t.innerHTML=this._adjustLogo(this._map._size),this._map.on("resize",function(e){t.innerHTML=this._adjustLogo(e.newSize)},this),t},_adjustLogo:function(e){return e.x<=600||e.y<=600?'<a href="https://developers.arcgis.com" style="border: none;"><img src="https://js.arcgis.com/3.13/esri/images/map/logo-sm.png" alt="Powered by Esri" style="border: none;"></a>':'<a href="https://developers.arcgis.com" style="border: none;"><img src="https://js.arcgis.com/3.13/esri/images/map/logo-med.png" alt="Powered by Esri" style="border: none;"></a>'}}),t.Controls.logo=function(t){return new e.esri.Controls.Logo(t)},t})},function(e,t,n){"use strict";e.exports=n(245)},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==("undefined"==typeof t?"undefined":s(t))&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+("undefined"==typeof t?"undefined":s(t)));e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol?"symbol":typeof e};Object.defineProperty(t,"__esModule",{value:!0});var u=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),l=function g(e,t,n){null===e&&(e=Function.prototype);var r=Object.getOwnPropertyDescriptor(e,t);if(void 0===r){var o=Object.getPrototypeOf(e);return null===o?void 0:g(o,t,n)}if("value"in r)return r.value;var i=r.get;if(void 0!==i)return i.call(n)},c=n(497),p=r(c),f=n(1),h=r(f),d=n(5),y=n(88),m=r(y),v=function(e){function t(){return o(this,t),i(this,Object.getPrototypeOf(t).apply(this,arguments))}return a(t,e),u(t,[{key:"componentDidMount",value:function(){l(Object.getPrototypeOf(t.prototype),"componentDidMount",this).call(this),(this.props.layerGroup||this.props.map).addLayer(this.leafletElement)}},{key:"componentWillUnmount",value:function(){l(Object.getPrototypeOf(t.prototype),"componentWillUnmount",this).call(this),(this.props.layerGroup||this.props.map).removeLayer(this.leafletElement)}},{key:"getClonedChildrenWithMap",value:function(e){var t=this.props,n=t.children,r=t.map,o=(0,p["default"])({map:r},e);return h["default"].Children.map(n,function(e){return e?h["default"].cloneElement(e,o):null})}},{key:"renderChildrenWithProps",value:function(e){var t=this.getClonedChildrenWithMap(e);return h["default"].createElement("div",{style:{display:"none"}},t)}}]),t}(m["default"]);v.propTypes={children:f.PropTypes.oneOfType([f.PropTypes.arrayOf(f.PropTypes.node),f.PropTypes.node]),map:f.PropTypes.instanceOf(d.Map)},t["default"]=v},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(t,"__esModule",{value:!0});var o=n(1),i=n(52),a=r(i);t["default"]=o.PropTypes.arrayOf(a["default"])},function(e,t,n){"use strict";function r(e,t){var n=e[t];return o(n)?n:void 0}var o=n(507);e.exports=r},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function i(e){return o(e).replace(/\/+/g,"/+")}function a(e){for(var t="",n=[],r=[],o=void 0,a=0,s=/:([a-zA-Z_$][a-zA-Z0-9_$]*)|\*\*|\*|\(|\)/g;o=s.exec(e);)o.index!==a&&(r.push(e.slice(a,o.index)),t+=i(e.slice(a,o.index))),o[1]?(t+="([^/?#]+)",n.push(o[1])):"**"===o[0]?(t+="([\\s\\S]*)",n.push("splat")):"*"===o[0]?(t+="([\\s\\S]*?)",n.push("splat")):"("===o[0]?t+="(?:":")"===o[0]&&(t+=")?"),r.push(o[0]),a=s.lastIndex;return a!==e.length&&(r.push(e.slice(a,e.length)),t+=i(e.slice(a,e.length))),{pattern:e,regexpSource:t,paramNames:n,tokens:r}}function s(e){return e in d||(d[e]=a(e)),d[e]}function u(e,t){"/"!==e.charAt(0)&&(e="/"+e),"/"!==t.charAt(0)&&(t="/"+t);var n=s(e),r=n.regexpSource,o=n.paramNames,i=n.tokens;r+="/*";var a="*"!==i[i.length-1];a&&(r+="([\\s\\S]*?)");var u=t.match(new RegExp("^"+r+"$","i")),l=void 0,c=void 0;if(null!=u){if(a){l=u.pop();var p=u[0].substr(0,u[0].length-l.length);if(l&&"/"!==p.charAt(p.length-1))return{remainingPathname:null,paramNames:o,paramValues:null}}else l="";c=u.slice(1).map(function(e){return null!=e?decodeURIComponent(e):e})}else l=c=null;return{remainingPathname:l,paramNames:o,paramValues:c}}function l(e){return s(e).paramNames}function c(e,t){var n=u(e,t),r=n.paramNames,o=n.paramValues;return null!=o?r.reduce(function(e,t,n){return e[t]=o[n],e},{}):null}function p(e,t){t=t||{};for(var n=s(e),r=n.tokens,o=0,i="",a=0,u=void 0,l=void 0,c=void 0,p=0,f=r.length;f>p;++p)u=r[p],"*"===u||"**"===u?(c=Array.isArray(t.splat)?t.splat[a++]:t.splat,null!=c||o>0?void 0:h["default"](!1),null!=c&&(i+=encodeURI(c))):"("===u?o+=1:")"===u?o-=1:":"===u.charAt(0)?(l=u.substring(1),c=t[l],null!=c||o>0?void 0:h["default"](!1),null!=c&&(i+=encodeURIComponent(c))):i+=u;return i.replace(/\/+/g,"/")}t.__esModule=!0,t.compilePattern=s,t.matchPattern=u,t.getParamNames=l,t.getParams=c,t.formatPattern=p;var f=n(21),h=r(f),d={}},function(e,t){"use strict";t.__esModule=!0;var n="PUSH";t.PUSH=n;var r="REPLACE";t.REPLACE=r;var o="POP";t.POP=o,t["default"]={PUSH:n,REPLACE:r,POP:o}},function(e,t,n){"use strict";function r(e,t){return(e&t)===t}var o=n(3),i={MUST_USE_ATTRIBUTE:1,MUST_USE_PROPERTY:2,HAS_SIDE_EFFECTS:4,HAS_BOOLEAN_VALUE:8,HAS_NUMERIC_VALUE:16,HAS_POSITIVE_NUMERIC_VALUE:48,HAS_OVERLOADED_BOOLEAN_VALUE:64,injectDOMPropertyConfig:function(e){var t=i,n=e.Properties||{},a=e.DOMAttributeNamespaces||{},u=e.DOMAttributeNames||{},l=e.DOMPropertyNames||{},c=e.DOMMutationMethods||{};e.isCustomAttribute&&s._isCustomAttributeFunctions.push(e.isCustomAttribute);for(var p in n){s.properties.hasOwnProperty(p)?o(!1):void 0;var f=p.toLowerCase(),h=n[p],d={attributeName:f,attributeNamespace:null,propertyName:p,mutationMethod:null,mustUseAttribute:r(h,t.MUST_USE_ATTRIBUTE),mustUseProperty:r(h,t.MUST_USE_PROPERTY),hasSideEffects:r(h,t.HAS_SIDE_EFFECTS),hasBooleanValue:r(h,t.HAS_BOOLEAN_VALUE),hasNumericValue:r(h,t.HAS_NUMERIC_VALUE),hasPositiveNumericValue:r(h,t.HAS_POSITIVE_NUMERIC_VALUE),hasOverloadedBooleanValue:r(h,t.HAS_OVERLOADED_BOOLEAN_VALUE)};if(d.mustUseAttribute&&d.mustUseProperty?o(!1):void 0,!d.mustUseProperty&&d.hasSideEffects?o(!1):void 0,d.hasBooleanValue+d.hasNumericValue+d.hasOverloadedBooleanValue<=1?void 0:o(!1),u.hasOwnProperty(p)){var y=u[p];d.attributeName=y}a.hasOwnProperty(p)&&(d.attributeNamespace=a[p]),l.hasOwnProperty(p)&&(d.propertyName=l[p]),c.hasOwnProperty(p)&&(d.mutationMethod=c[p]),s.properties[p]=d}}},a={},s={ID_ATTRIBUTE_NAME:"data-reactid",properties:{},getPossibleStandardName:null,_isCustomAttributeFunctions:[],isCustomAttribute:function(e){for(var t=0;t<s._isCustomAttributeFunctions.length;t++){var n=s._isCustomAttributeFunctions[t];if(n(e))return!0}return!1},getDefaultValueForProperty:function(e,t){var n,r=a[e];return r||(a[e]=r={}),t in r||(n=document.createElement(e),r[t]=n[t]),r[t]},injection:i};e.exports=s},function(e,t,n){"use strict";function r(e){return h+e.toString(36)}function o(e,t){return e.charAt(t)===h||t===e.length}function i(e){return""===e||e.charAt(0)===h&&e.charAt(e.length-1)!==h}function a(e,t){return 0===t.indexOf(e)&&o(t,e.length)}function s(e){return e?e.substr(0,e.lastIndexOf(h)):""}function u(e,t){if(i(e)&&i(t)?void 0:f(!1),a(e,t)?void 0:f(!1),e===t)return e;var n,r=e.length+d;for(n=r;n<t.length&&!o(t,n);n++);return t.substr(0,n)}function l(e,t){var n=Math.min(e.length,t.length);if(0===n)return"";for(var r=0,a=0;n>=a;a++)if(o(e,a)&&o(t,a))r=a;else if(e.charAt(a)!==t.charAt(a))break;var s=e.substr(0,r);return i(s)?void 0:f(!1),s}function c(e,t,n,r,o,i){e=e||"",t=t||"",e===t?f(!1):void 0;var l=a(t,e);l||a(e,t)?void 0:f(!1);for(var c=0,p=l?s:u,h=e;;h=p(h,t)){var d;if(o&&h===e||i&&h===t||(d=n(h,l,r)),d===!1||h===t)break;c++<y?void 0:f(!1)}}var p=n(262),f=n(3),h=".",d=h.length,y=1e4,m={createReactRootID:function(){return r(p.createReactRootIndex())},createReactID:function(e,t){return e+t},getReactRootIDFromNodeID:function(e){if(e&&e.charAt(0)===h&&e.length>1){var t=e.indexOf(h,1);return t>-1?e.substr(0,t):e}return null},traverseEnterLeave:function(e,t,n,r,o){
  var i=l(e,t);i!==e&&c(e,i,n,r,!1,!0),i!==t&&c(i,t,n,o,!0,!1)},traverseTwoPhase:function(e,t,n){e&&(c("",e,t,n,!0,!1),c(e,"",t,n,!1,!0))},traverseTwoPhaseSkipTarget:function(e,t,n){e&&(c("",e,t,n,!0,!0),c(e,"",t,n,!0,!0))},traverseAncestors:function(e,t,n){c("",e,t,n,!0,!1)},getFirstCommonAncestorID:l,_getNextDescendantID:u,isAncestorIDOf:a,SEPARATOR:h};e.exports=m},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}Object.defineProperty(t,"__esModule",{value:!0}),t.getLegendProps=t.getMainColorOfGraphicItem=t.calculateActiveTickIndex=t.getTicksOfAxis=t.getTicksOfGrid=t.isCategorialAxis=t.getDomainOfItemsWithSameAxis=t.getDomainOfStackGroups=t.getDomainOfDataByKey=t.calculateDomainOfTicks=t.calculateChartCoordinate=t.getStackedDataOfItem=t.getStackGroupsByAxisId=t.getStackedData=t.detectReferenceElementsDomain=void 0;var i=n(318),a=r(i),s=n(50),u=r(s),l=n(17),c=r(l),p=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},f=n(4),h=n(109),d=r(h),y=n(110),m=r(y),v=n(57),g=r(v),_=n(294),b=(t.detectReferenceElementsDomain=function(e,t,n,r){var o=(0,f.findAllByType)(e,m["default"]),i=(0,f.findAllByType)(e,d["default"]),a=o.concat(i),s=r+"Id",u=r[0];return a.reduce(function(e,t){if(t.props[s]===n&&t.props.alwaysShow&&(0,c["default"])(t.props[u])){var r=t.props[u];return[Math.min(e[0],r),Math.max(e[1],r)]}return e},t)},t.getStackedData=function(e,t){var n=t.map(function(e){return e.props.dataKey}),r=(0,_.stack)().keys(n).value(function(e,t){return+e[t]||0}).order(_.stackOrderNone).offset(_.stackOffsetNone);return r(e)}),T=(t.getStackGroupsByAxisId=function(e,t,n){var r=t.reduce(function(e,t){var r=t.props,o=r.stackId,i=(r.dataKey,t.props[n]);return e[i]||(e[i]={hasStack:!1,stackGroups:{}}),(0,c["default"])(o)||(0,u["default"])(o)?(e[i].stackGroups[o]||(e[i].stackGroups[o]={items:[]}),e[i].stackGroups[o].items.push(t),e[i].stackGroups[o].items.length>=2&&(e[i].hasStack=!0)):e[i].stackGroups[(0,a["default"])("_stackId_")]={items:[t]},e},{});return Object.keys(r).reduce(function(t,n){var i=r[n];return i.hasStack&&(i.stackGroups=Object.keys(i.stackGroups).reduce(function(t,n){var r=i.stackGroups[n];return p({},t,o({},n,{items:r.items,stackedData:b(e,r.items)}))},{})),p({},t,o({},n,i))},{})},t.getStackedDataOfItem=function(e,t){var n=e.props.stackId;if((0,c["default"])(n)||(0,u["default"])(n)){var r=t[n];if(r&&r.items.length){for(var o=-1,i=0,a=r.items.length;a>i;i++)if(r.items[i]===e){o=i;break}return o>=0?r.stackedData[o]:null}}return null},t.calculateChartCoordinate=function(e,t){return{chartX:Math.round(e.pageX-t.left),chartY:Math.round(e.pageY-t.top)}},t.calculateDomainOfTicks=function(e,t){return"number"===t?[Math.min.apply(null,e),Math.max.apply(null,e)]:e},t.getDomainOfDataByKey=function(e,t,n){var r="number"===n?0:"",o=e.map(function(e){return e[t]||r});return"number"===n?[Math.min.apply(null,o),Math.max.apply(null,o)]:o}),P=function(e){return e.reduce(function(e,t){return[Math.min(e[0],t[0],t[1]),Math.max(e[1],t[0],t[1])]},[1/0,-(1/0)])},x=(t.getDomainOfStackGroups=function(e,t,n){return Object.keys(e).reduce(function(r,o){var i=e[o],a=i.stackedData,s=a.reduce(function(e,r){var o=P(r.slice(t,n+1));return[Math.min(e[0],o[0]),Math.max(e[1],o[1])]},[1/0,-(1/0)]);return[Math.min(s[0],r[0]),Math.max(s[1],r[1])]},[1/0,-(1/0)])},t.getDomainOfItemsWithSameAxis=function(e,t,n){var r=t.map(function(t){return T(e,t.props.dataKey,n)});if("number"===n)return r.reduce(function(e,t){return[Math.min(e[0],t[0]),Math.max(e[1],t[1])]},[1/0,-(1/0)]);var o={};return r.reduce(function(e,t){for(var n=0,r=t.length;r>n;n++)o[t[n]]||(o[t[n]]=!0,e.push(t[n]));return e},[])},t.isCategorialAxis=function(e,t){return"horizontal"===e&&"xAxis"===t||"vertical"===e&&"yAxis"===t},t.getTicksOfGrid=function(e,t,n){var r=void 0,o=void 0,i=e.map(function(e){return e.coordinate===t&&(r=!0),e.coordinate===n&&(o=!0),e.coordinate});return r||i.push(t),o||i.push(n),i},t.getTicksOfAxis=function(e,t){var n=e.scale,r=t&&"category"===e.type?n.bandwidth()/2:0;return e.ticks?e.ticks.map(function(e){return{coordinate:n(e)+r,value:e}}):n.ticks?n.ticks(e.tickCount).map(function(e){return{coordinate:n(e)+r,value:e}}):n.domain().map(function(e){return{coordinate:n(e)+r,value:e}})},t.calculateActiveTickIndex=function(e,t){var n=-1,r=t.length;if(r>1)for(var o=0;r>o;o++)if(0===o&&e<=(t[o].coordinate+t[o+1].coordinate)/2||o>0&&r-1>o&&e>(t[o].coordinate+t[o-1].coordinate)/2&&e<=(t[o].coordinate+t[o+1].coordinate)/2||o===r-1&&e>(t[o].coordinate+t[o-1].coordinate)/2){n=o;break}return n},t.getMainColorOfGraphicItem=function(e){var t=e.type.displayName,n=void 0;switch(t){case"Line":n=e.props.stroke;break;default:n=e.props.fill}return n});t.getLegendProps=function(e,t,n,r){var o=(0,f.findChildByType)(e,g["default"]);if(!o)return null;var i=o.props&&o.props.payload||t.map(function(e){var t=e.props,n=t.dataKey,r=t.name,o=t.legendType;return{type:o||"square",color:x(e),value:r||n}},void 0);return p({},o.props,g["default"].getWithHeight(o,n,r),{payload:i})}},function(e,t,n){"use strict";function r(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}function o(e,t){return f.indexOf(e)>=0&&t===+t?t+"px":t}function i(e){var t=e.split(""),n=t.reduce(function(e,t){return t===t.toUpperCase()?[].concat(r(e),["-",t.toLowerCase()]):[].concat(r(e),[t])},[]);return n.join("")}function a(e){return e.ownerDocument.defaultView.getComputedStyle(e,null)}Object.defineProperty(t,"__esModule",{value:!0}),t.getOffset=t.getHeight=t.getWidth=t.getStringSize=t.getStyleString=void 0;var s=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},u=n(4),l={widthCache:{},cacheCount:0},c=2e3,p={position:"absolute",top:"-20000px",left:0,padding:0,margin:0,border:"none",whiteSpace:"pre"},f=["minWidth","maxWidth","width","minHeight","maxHeight","height","top","left","fontSize","lineHeight","padding","margin","paddingLeft","paddingRight","paddingTop","paddingBottom","marginLeft","marginRight","marginTop","marginBottom"],h=t.getStyleString=function(e){var t="";for(var n in e)e.hasOwnProperty(n)&&(t+=i(n)+":"+o(n,e[n])+";");return t};t.getStringSize=function(e){var t=arguments.length<=1||void 0===arguments[1]?{}:arguments[1];if(void 0===e||null===e||(0,u.isSsr)())return 0;var n=""+e,r=h(t),o=n+"-"+r;if(l.widthCache[o])return l.widthCache[o];if(!l.span){var i=document.createElement("span");i.setAttribute("style",h(p)),document.body.appendChild(i),l.span=i}l.span.setAttribute("style",h(s({},p,t))),l.span.textContent=n;var a=l.span.getBoundingClientRect(),f={width:a.width,height:a.height};return l.widthCache[o]=f,++l.cacheCount>c&&(l.cacheCount=0,l.widthCache={}),f},t.getWidth=function(e){var t=a(e),n=parseFloat(-1!==t.width.indexOf("px")?t.width:0),r=t.boxSizing||"content-box";if("border-box"===r)return n;var o=parseFloat(t.borderLeftWidth),i=parseFloat(t.borderRightWidth),s=parseFloat(t.paddingLeft),u=parseFloat(t.paddingRight);return n-i-o-s-u},t.getHeight=function(e){var t=a(e),n=parseFloat(-1!==t.height.indexOf("px")?t.height:0),r=t.boxSizing||"content-box";if("border-box"===r)return n;var o=parseFloat(t.borderTopWidth),i=parseFloat(t.borderBottomWidth),s=parseFloat(t.paddingTop),u=parseFloat(t.paddingBottom);return n-i-o-s-u},t.getOffset=function(e){var t=e.ownerDocument.documentElement,n={top:0,left:0};return"undefined"!=typeof e.getBoundingClientRect&&(n=e.getBoundingClientRect()),{top:n.top+window.pageYOffset-t.clientTop,left:n.left+window.pageXOffset-t.clientLeft}}},function(e,t,n){"use strict";var r=n(117),o=n(84),i=r(o,"Map");e.exports=i},function(e,t){"use strict";function n(e){var t="undefined"==typeof e?"undefined":r(e);return"number"==t||"boolean"==t||"string"==t&&"__proto__"!=e||null==e}var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol?"symbol":typeof e};e.exports=n},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==("undefined"==typeof t?"undefined":s(t))&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+("undefined"==typeof t?"undefined":s(t)));e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol?"symbol":typeof e};Object.defineProperty(t,"__esModule",{value:!0});var u=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),l=n(1),c=n(198),p=r(c),f=function(e){function t(){return o(this,t),i(this,Object.getPrototypeOf(t).apply(this,arguments))}return a(t,e),u(t,[{key:"componentDidMount",value:function(){this.leafletElement.addTo(this.props.map)}},{key:"componentDidUpdate",value:function(e){this.props.position!==e.position&&this.leafletElement.setPosition(this.props.position)}},{key:"componentWillUnmount",value:function(){this.leafletElement.removeFrom(this.props.map)}},{key:"getLeafletElement",value:function(){return this.leafletElement}},{key:"render",value:function(){return null}}]),t}(l.Component);f.propTypes={map:l.PropTypes.object,position:p["default"]},t["default"]=f},function(e,t,n){"use strict";function r(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t["default"]=e,t}function o(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(t,"__esModule",{value:!0}),t.setIconDefaultImagePath=t.ZoomControl=t.WMSTileLayer=t.TileLayer=t.ScaleControl=t.Rectangle=t.Popup=t.Polyline=t.Polygon=t.Path=t.MultiPolyline=t.MultiPolygon=t.Marker=t.MapLayer=t.MapControl=t.MapComponent=t.Map=t.LayersControl=t.LayerGroup=t.ImageOverlay=t.GeoJson=t.FeatureGroup=t.CircleMarker=t.Circle=t.CanvasTileLayer=t.BaseTileLayer=t.AttributionControl=t.PropTypes=void 0;var i=n(5),a=o(i),s=n(416),u=r(s),l=n(395),c=o(l),p=n(87),f=o(p),h=n(396),d=o(h),y=n(397),m=o(y),v=n(398),g=o(v),_=n(399),b=o(_),T=n(400),P=o(T),x=n(401),E=o(x),O=n(402),w=o(O),C=n(403),S=o(C),M=n(404),A=o(M),k=n(88),L=o(k),I=n(72),R=o(I),D=n(61),N=o(D),j=n(405),U=o(j),B=n(406),F=o(B),H=n(407),z=o(H),G=n(29),W=o(G),V=n(408),q=o(V),Z=n(409),K=o(Z),Y=n(410),J=o(Y),X=n(411),$=o(X),Q=n(412),ee=o(Q),te=n(413),ne=o(te),re=n(414),oe=o(re),ie=n(415),ae=o(ie);t.PropTypes=u,t.AttributionControl=c["default"],t.BaseTileLayer=f["default"],t.CanvasTileLayer=d["default"],t.Circle=m["default"],t.CircleMarker=g["default"],t.FeatureGroup=b["default"],t.GeoJson=P["default"],t.ImageOverlay=E["default"],t.LayerGroup=w["default"],t.LayersControl=S["default"],t.Map=A["default"],t.MapComponent=L["default"],t.MapControl=R["default"],t.MapLayer=N["default"],t.Marker=U["default"],t.MultiPolygon=F["default"],t.MultiPolyline=z["default"],t.Path=W["default"],t.Polygon=q["default"],t.Polyline=K["default"],t.Popup=J["default"],t.Rectangle=$["default"],t.ScaleControl=ee["default"],t.TileLayer=ne["default"],t.WMSTileLayer=oe["default"],t.ZoomControl=ae["default"];var se=t.setIconDefaultImagePath=function(e){a["default"].Icon.Default.imagePath=e};se("//cdnjs.cloudflare.com/ajax/libs/leaflet/0.7.7/images")},function(e,t,n){"use strict";function r(e){if("string"==typeof e||o(e))return e;var t=e+"";return"0"==t&&1/e==-i?"-0":t}var o=n(97),i=1/0;e.exports=r},function(e,t,n){"use strict";function r(e){return null!=e&&a(o(e))&&!i(e)}var o=n(463),i=n(138),a=n(96);e.exports=r},function(e,t){"use strict";function n(e){return!!e&&"object"==("undefined"==typeof e?"undefined":r(e))}var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol?"symbol":typeof e};e.exports=n},function(e,t,n){"use strict";var r=("function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol?"symbol":typeof e},n(240)),o=n(567),i=n(255),a=n(264),s=n(266),u=n(3),l=(n(7),{}),c=null,p=function(e,t){e&&(o.executeDispatchesInOrder(e,t),e.isPersistent()||e.constructor.release(e))},f=function(e){return p(e,!0)},h=function(e){return p(e,!1)},d=null,y={injection:{injectMount:o.injection.injectMount,injectInstanceHandle:function(e){d=e},getInstanceHandle:function(){return d},injectEventPluginOrder:r.injectEventPluginOrder,injectEventPluginsByName:r.injectEventPluginsByName},eventNameDispatchConfigs:r.eventNameDispatchConfigs,registrationNameModules:r.registrationNameModules,putListener:function(e,t,n){"function"!=typeof n?u(!1):void 0;var o=l[t]||(l[t]={});o[e]=n;var i=r.registrationNameModules[t];i&&i.didPutListener&&i.didPutListener(e,t,n)},getListener:function(e,t){var n=l[t];return n&&n[e]},deleteListener:function(e,t){var n=r.registrationNameModules[t];n&&n.willDeleteListener&&n.willDeleteListener(e,t);var o=l[t];o&&delete o[e]},deleteAllListeners:function(e){for(var t in l)if(l[t][e]){var n=r.registrationNameModules[t];n&&n.willDeleteListener&&n.willDeleteListener(e,t),delete l[t][e]}},extractEvents:function(e,t,n,o,i){for(var s,u=r.plugins,l=0;l<u.length;l++){var c=u[l];if(c){var p=c.extractEvents(e,t,n,o,i);p&&(s=a(s,p))}}return s},enqueueEvents:function(e){e&&(c=a(c,e))},processEventQueue:function(e){var t=c;c=null,e?s(t,f):s(t,h),c?u(!1):void 0,i.rethrowCaughtError()},__purge:function(){l={}},__getListenerBank:function(){return l}};e.exports=y},function(e,t,n){"use strict";function r(e,t,n){var r=t.dispatchConfig.phasedRegistrationNames[n];return g(e,r)}function o(e,t,n){var o=t?v.bubbled:v.captured,i=r(e,n,o);i&&(n._dispatchListeners=y(n._dispatchListeners,i),n._dispatchIDs=y(n._dispatchIDs,e))}function i(e){e&&e.dispatchConfig.phasedRegistrationNames&&d.injection.getInstanceHandle().traverseTwoPhase(e.dispatchMarker,o,e)}function a(e){e&&e.dispatchConfig.phasedRegistrationNames&&d.injection.getInstanceHandle().traverseTwoPhaseSkipTarget(e.dispatchMarker,o,e)}function s(e,t,n){if(n&&n.dispatchConfig.registrationName){var r=n.dispatchConfig.registrationName,o=g(e,r);o&&(n._dispatchListeners=y(n._dispatchListeners,o),n._dispatchIDs=y(n._dispatchIDs,e))}}function u(e){e&&e.dispatchConfig.registrationName&&s(e.dispatchMarker,null,e)}function l(e){m(e,i)}function c(e){m(e,a)}function p(e,t,n,r){d.injection.getInstanceHandle().traverseEnterLeave(n,r,s,e,t)}function f(e){m(e,u)}var h=n(34),d=n(77),y=(n(7),n(264)),m=n(266),v=h.PropagationPhases,g=d.getListener,_={accumulateTwoPhaseDispatches:l,accumulateTwoPhaseDispatchesSkipTarget:c,accumulateDirectDispatches:f,accumulateEnterLeaveDispatches:p};e.exports=_},function(e,t){"use strict";var n={remove:function(e){e._reactInternalInstance=void 0},get:function(e){return e._reactInternalInstance},has:function(e){return void 0!==e._reactInternalInstance},set:function(e,t){e._reactInternalInstance=t}};e.exports=n},function(e,t,n){"use strict";function r(e,t,n,r){o.call(this,e,t,n,r)}var o=n(56),i=n(156),a={view:function(e){if(e.view)return e.view;var t=i(e);if(null!=t&&t.window===t)return t;var n=t.ownerDocument;return n?n.defaultView||n.parentWindow:window},detail:function(e){return e.detail||0}};o.augmentClass(r,a),e.exports=r},function(e,t,n){"use strict";var r={};e.exports=r},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==("undefined"==typeof t?"undefined":s(t))&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+("undefined"==typeof t?"undefined":s(t)));e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol?"symbol":typeof e};Object.defineProperty(t,"__esModule",{value:!0});var u,l,c,p=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},f=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),h=n(1),d=r(h),y=n(2),m=r(y),v=n(8),g=r(v),_=n(60),b=n(40),T=r(b),P=n(4),x=(0,m["default"])((c=l=function(e){function t(){var e,n,r,a;o(this,t);for(var s=arguments.length,u=Array(s),l=0;s>l;l++)u[l]=arguments[l];return n=r=i(this,(e=Object.getPrototypeOf(t)).call.apply(e,[this].concat(u))),r.state={totalLength:-1},a=n,i(r,a)}return a(t,e),f(t,[{key:"componentDidMount",value:function(){var e=(0,_.findDOMNode)(this),t=e&&e.getTotalLength&&e.getTotalLength();t&&this.setState({totalLength:t})}},{key:"getPath",value:function(e,t,n,r,o){var i=Math.min(n/2,r/2),a=[],s=void 0;if(i>0&&o instanceof Array){for(var u=0,l=4;l>u;u++)a[u]=o[u]>i?i:o[u];s="M"+e+","+(t+a[0]),a[0]>0&&(s+="A "+a[0]+","+a[0]+",0,0,1,"+(e+a[0])+","+t),s+="L "+(e+n-a[1])+","+t,a[1]>0&&(s+="A "+a[1]+","+a[1]+",0,0,1,"+(e+n)+","+(t+a[1])),s+="L "+(e+n)+","+(t+r-a[2]),a[2]>0&&(s+="A "+a[2]+","+a[2]+",0,0,1,"+(e+n-a[2])+","+(t+r)),s+="L "+(e+a[3])+","+(t+r),a[3]>0&&(s+="A "+a[3]+","+a[3]+",0,0,1,"+e+","+(t+r-a[3])),s+="Z"}else i>0&&o===+o&&o>0?(a=o>i?i:o,s="M "+e+","+(t+a)+" A "+a+","+a+",0,0,1,"+(e+a)+","+t+"\n              L "+(e+n-a)+","+t+"\n              A "+a+","+a+",0,0,1,"+(e+n)+","+(t+a)+"\n              L "+(e+n)+","+(t+r-a)+"\n              A "+a+","+a+",0,0,1,"+(e+n-a)+","+(t+r)+"\n              L "+(e+a)+","+(t+r)+"\n              A "+a+","+a+",0,0,1,"+e+","+(t+r-a)+" Z"):s="M "+e+","+t+" h "+n+" v "+r+" h "+-n+" Z";return s}},{key:"render",value:function(){var e=this.props,t=e.x,n=e.y,r=e.width,o=e.height,i=e.radius,a=e.className,s=this.state.totalLength,u=this.props,l=u.animationEasing,c=u.animationDuration,f=u.animationBegin,h=u.isAnimationActive;if(t!==+t||n!==+n||r!==+r||o!==+o)return null;var y=(0,g["default"])("recharts-rectangle",a);return d["default"].createElement(T["default"],{canBegin:s>0,from:"0px "+(-1===s?1:s)+"px",to:s+"px 0px",attributeName:"strokeDasharray",begin:f,duration:c,isActive:h,easing:l},d["default"].createElement("path",p({},(0,P.getPresentationAttributes)(this.props),(0,P.filterEventAttributes)(this.props),{className:y,d:this.getPath(t,n,r,o,i)})))}}]),t}(h.Component),l.displayName="Rectangle",l.propTypes=p({},P.PRESENTATION_ATTRIBUTES,{className:h.PropTypes.string,x:h.PropTypes.number,y:h.PropTypes.number,width:h.PropTypes.number,height:h.PropTypes.number,radius:h.PropTypes.oneOfType([h.PropTypes.number,h.PropTypes.array]),isAnimationActive:h.PropTypes.bool,animationBegin:h.PropTypes.number,animationDuration:h.PropTypes.number,animationEasing:h.PropTypes.oneOf(["ease","ease-in","ease-out","ease-in-out","linear"])}),l.defaultProps={x:0,y:0,width:0,height:0,radius:0,stroke:"none",strokeWidth:1,strokeDasharray:"none",fill:"#000",isAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},u=c))||u;t["default"]=x},function(e,t,n){var r,o,i,a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol?"symbol":typeof e};!function(s,u){"object"===a(t)&&"undefined"!=typeof e?u(t,n(289),n(290),n(292),n(291),n(115),n(293),n(114)):(o=[t,n(289),n(290),n(292),n(291),n(115),n(293),n(114)],r=u,i="function"==typeof r?r.apply(t,o):r,!(void 0!==i&&(e.exports=i)))}(void 0,function(e,t,n,r,o,i,a,s){"use strict";function u(){function e(e){var n=e+"",a=t.get(n);if(!a){if(i!==se)return i;t.set(n,a=r.push(e))}return o[(a-1)%o.length]}var t=n.map(),r=[],o=[],i=se;return e.domain=function(o){if(!arguments.length)return r.slice();r=[],t=n.map();for(var i,a,s=-1,u=o.length;++s<u;)t.has(a=(i=o[s])+"")||t.set(a,r.push(i));return e},e.range=function(t){return arguments.length?(o=ae.call(t),e):o.slice()},e.unknown=function(t){return arguments.length?(i=t,e):i},e.copy=function(){return u().domain(r).range(o).unknown(i)},e}function l(){function e(){var e=i().length,o=s[1]<s[0],u=s[o-0],l=s[1-o];n=(l-u)/Math.max(1,e-p+2*f),c&&(n=Math.floor(n)),u+=(l-u-n*(e-p))*h,r=n*(1-p),c&&(u=Math.round(u),r=Math.round(r));var d=t.range(e).map(function(e){return u+n*e});return a(o?d.reverse():d)}var n,r,o=u().unknown(void 0),i=o.domain,a=o.range,s=[0,1],c=!1,p=0,f=0,h=.5;return delete o.unknown,o.domain=function(t){return arguments.length?(i(t),e()):i()},o.range=function(t){return arguments.length?(s=[+t[0],+t[1]],e()):s.slice()},o.rangeRound=function(t){return s=[+t[0],+t[1]],c=!0,e()},o.bandwidth=function(){return r},o.step=function(){return n},o.round=function(t){return arguments.length?(c=!!t,e()):c},o.padding=function(t){return arguments.length?(p=f=Math.max(0,Math.min(1,t)),e()):p},o.paddingInner=function(t){return arguments.length?(p=Math.max(0,Math.min(1,t)),e()):p},o.paddingOuter=function(t){return arguments.length?(f=Math.max(0,Math.min(1,t)),e()):f},o.align=function(t){return arguments.length?(h=Math.max(0,Math.min(1,t)),e()):h},o.copy=function(){return l().domain(i()).range(s).round(c).paddingInner(p).paddingOuter(f).align(h)},e()}function c(e){var t=e.copy;return e.padding=e.paddingOuter,delete e.paddingInner,delete e.paddingOuter,e.copy=function(){return c(t())},e}function p(){return c(l().paddingInner(1))}function f(e){return function(){return e}}function h(e){return+e}function d(e,t){return(t-=e=+e)?function(n){return(n-e)/t}:f(t)}function y(e){return function(t,n){var r=e(t=+t,n=+n);return function(e){return t>=e?0:e>=n?1:r(e)}}}function m(e){return function(t,n){var r=e(t=+t,n=+n);return function(e){return 0>=e?t:e>=1?n:r(e)}}}function v(e,t,n,r){var o=e[0],i=e[1],a=t[0],s=t[1];return o>i?(o=n(i,o),a=r(s,a)):(o=n(o,i),a=r(a,s)),function(e){return a(o(e))}}function g(e,n,r,o){var i=Math.min(e.length,n.length)-1,a=new Array(i),s=new Array(i),u=-1;for(e[i]<e[0]&&(e=e.slice().reverse(),n=n.slice().reverse());++u<i;)a[u]=r(e[u],e[u+1]),s[u]=o(n[u],n[u+1]);return function(n){var r=t.bisect(e,n,1,i)-1;return s[r](a[r](n))}}function _(e,t){return t.domain(e.domain()).range(e.range()).interpolate(e.interpolate()).clamp(e.clamp())}function b(e,t){function n(){var n=Math.min(s.length,u.length)>2?g:v;return i=n(s,u,c?y(e):e,l),a=n(u,s,d,c?m(t):t),o}function o(e){return i(+e)}var i,a,s=ue,u=ue,l=r.interpolate,c=!1;return o.invert=function(e){return a(+e)},o.domain=function(e){return arguments.length?(s=ie.call(e,h),n()):s.slice()},o.range=function(e){return arguments.length?(u=ae.call(e),n()):u.slice()},o.rangeRound=function(e){return u=ae.call(e),l=r.interpolateRound,n()},o.clamp=function(e){return arguments.length?(c=!!e,n()):c},o.interpolate=function(e){return arguments.length?(l=e,n()):l},n()}function T(e,n,r){var i,a=e[0],s=e[e.length-1],u=t.tickStep(a,s,null==n?10:n);switch(r=o.formatSpecifier(null==r?",f":r),r.type){case"s":var l=Math.max(Math.abs(a),Math.abs(s));return null!=r.precision||isNaN(i=o.precisionPrefix(u,l))||(r.precision=i),o.formatPrefix(r,l);case"":case"e":case"g":case"p":case"r":null!=r.precision||isNaN(i=o.precisionRound(u,Math.max(Math.abs(a),Math.abs(s))))||(r.precision=i-("e"===r.type));break;case"f":case"%":null!=r.precision||isNaN(i=o.precisionFixed(u))||(r.precision=i-2*("%"===r.type))}return o.format(r)}function P(e){var n=e.domain;return e.ticks=function(e){var r=n();return t.ticks(r[0],r[r.length-1],null==e?10:e)},e.tickFormat=function(e,t){return T(n(),e,t)},e.nice=function(r){var o=n(),i=o.length-1,a=null==r?10:r,s=o[0],u=o[i],l=t.tickStep(s,u,a);return l&&(l=t.tickStep(Math.floor(s/l)*l,Math.ceil(u/l)*l,a),o[0]=Math.floor(s/l)*l,o[i]=Math.ceil(u/l)*l,n(o)),e},e}function x(){var e=b(d,r.interpolateNumber);return e.copy=function(){return _(e,x())},P(e)}function E(){function e(e){return+e}var t=[0,1];return e.invert=e,e.domain=e.range=function(n){return arguments.length?(t=ie.call(n,h),e):t.slice()},e.copy=function(){return E().domain(t)},P(e)}function O(e,t){e=e.slice();var n,r=0,o=e.length-1,i=e[r],a=e[o];return i>a&&(n=r,r=o,o=n,n=i,i=a,a=n),e[r]=t.floor(i),e[o]=t.ceil(a),e}function w(e,t){return(t=Math.log(t/e))?function(n){return Math.log(n/e)/t}:f(t)}function C(e,t){return 0>e?function(n){return-Math.pow(-t,n)*Math.pow(-e,1-n)}:function(n){return Math.pow(t,n)*Math.pow(e,1-n)}}function S(e){return isFinite(e)?+("1e"+e):0>e?0:e}function M(e){return 10===e?S:e===Math.E?Math.exp:function(t){return Math.pow(e,t)}}function A(e){return e===Math.E?Math.log:10===e&&Math.log10||2===e&&Math.log2||(e=Math.log(e),function(t){return Math.log(t)/e})}function k(e){return function(t){return-e(-t)}}function L(){function e(){return a=A(i),s=M(i),r()[0]<0&&(a=k(a),s=k(s)),n}var n=b(w,C).domain([1,10]),r=n.domain,i=10,a=A(10),s=M(10);return n.base=function(t){return arguments.length?(i=+t,e()):i},n.domain=function(t){return arguments.length?(r(t),e()):r()},n.ticks=function(e){var n,o=r(),u=o[0],l=o[o.length-1];(n=u>l)&&(h=u,u=l,l=h);var c,p,f,h=a(u),d=a(l),y=null==e?10:+e,m=[];if(!(i%1)&&y>d-h){if(h=Math.round(h)-1,d=Math.round(d)+1,u>0){for(;d>h;++h)for(p=1,c=s(h);i>p;++p)if(f=c*p,!(u>f)){if(f>l)break;m.push(f)}}else for(;d>h;++h)for(p=i-1,c=s(h);p>=1;--p)if(f=c*p,!(u>f)){if(f>l)break;m.push(f)}n&&m.reverse()}else m=t.ticks(h,d,Math.min(d-h,y)).map(s);return m},n.tickFormat=function(e,t){if(null==t&&(t=10===i?".0e":","),"function"!=typeof t&&(t=o.format(t)),e===1/0)return t;null==e&&(e=10);var r=Math.max(1,i*e/n.ticks().length);return function(e){var n=e/s(Math.round(a(e)));return i-.5>n*i&&(n*=i),r>=n?t(e):""}},n.nice=function(){return r(O(r(),{floor:function(e){return s(Math.floor(a(e)))},ceil:function(e){return s(Math.ceil(a(e)))}}))},n.copy=function(){return _(n,L().base(i))},n}function I(e,t){return 0>e?-Math.pow(-e,t):Math.pow(e,t)}function R(){function e(e,t){return(t=I(t,n)-(e=I(e,n)))?function(r){return(I(r,n)-e)/t}:f(t)}function t(e,t){return t=I(t,n)-(e=I(e,n)),function(r){return I(e+t*r,1/n)}}var n=1,r=b(e,t),o=r.domain;return r.exponent=function(e){return arguments.length?(n=+e,o(o())):n},r.copy=function(){return _(r,R().exponent(n))},P(r)}function D(){return R().exponent(.5)}function N(){function e(){var e=0,a=Math.max(1,o.length);for(i=new Array(a-1);++e<a;)i[e-1]=t.quantile(r,e/a);return n}function n(e){return isNaN(e=+e)?void 0:o[t.bisect(i,e)]}var r=[],o=[],i=[];return n.invertExtent=function(e){var t=o.indexOf(e);return 0>t?[NaN,NaN]:[t>0?i[t-1]:r[0],t<i.length?i[t]:r[r.length-1]]},n.domain=function(n){if(!arguments.length)return r.slice();r=[];for(var o,i=0,a=n.length;a>i;++i)o=n[i],null==o||isNaN(o=+o)||r.push(o);return r.sort(t.ascending),e()},n.range=function(t){return arguments.length?(o=ae.call(t),e()):o.slice()},n.quantiles=function(){return i.slice()},n.copy=function(){return N().domain(r).range(o)},n}function j(){function e(e){return e>=e?s[t.bisect(a,e,0,i)]:void 0}function n(){var t=-1;for(a=new Array(i);++t<i;)a[t]=((t+1)*o-(t-i)*r)/(i+1);return e}var r=0,o=1,i=1,a=[.5],s=[0,1];return e.domain=function(e){return arguments.length?(r=+e[0],o=+e[1],n()):[r,o]},e.range=function(e){return arguments.length?(i=(s=ae.call(e)).length-1,n()):s.slice()},e.invertExtent=function(e){var t=s.indexOf(e);return 0>t?[NaN,NaN]:1>t?[r,a[0]]:t>=i?[a[i-1],o]:[a[t-1],a[t]]},e.copy=function(){return j().domain([r,o]).range(s)},P(e)}function U(){function e(e){return e>=e?r[t.bisect(n,e,0,o)]:void 0}var n=[.5],r=[0,1],o=1;return e.domain=function(t){return arguments.length?(n=ae.call(t),o=Math.min(n.length,r.length-1),e):n.slice()},e.range=function(t){return arguments.length?(r=ae.call(t),o=Math.min(n.length,r.length-1),e):r.slice()},e.invertExtent=function(e){var t=r.indexOf(e);return[n[t-1],n[t]]},e.copy=function(){return U().domain(n).range(r)},e}function B(e){return new Date(e)}function F(e,n,o,i,a,s,u,l,c){function p(t){return(u(t)<t?v:s(t)<t?g:a(t)<t?T:i(t)<t?P:n(t)<t?o(t)<t?x:E:e(t)<t?w:C)(t)}function f(n,r,o,i){if(null==n&&(n=10),"number"==typeof n){var a=Math.abs(o-r)/n,s=t.bisector(function(e){return e[2]}).right(S,a);s===S.length?(i=t.tickStep(r/ye,o/ye,n),n=e):s?(s=S[a/S[s-1][2]<S[s][2]/a?s-1:s],i=s[1],n=s[0]):(i=t.tickStep(r,o,n),n=l)}return null==i?n:n.every(i)}var h=b(d,r.interpolateNumber),y=h.invert,m=h.domain,v=c(".%L"),g=c(":%S"),T=c("%I:%M"),P=c("%I %p"),x=c("%a %d"),E=c("%b %d"),w=c("%B"),C=c("%Y"),S=[[u,1,le],[u,5,5*le],[u,15,15*le],[u,30,30*le],[s,1,ce],[s,5,5*ce],[s,15,15*ce],[s,30,30*ce],[a,1,pe],[a,3,3*pe],[a,6,6*pe],[a,12,12*pe],[i,1,fe],[i,2,2*fe],[o,1,he],[n,1,de],[n,3,3*de],[e,1,ye]];return h.invert=function(e){return new Date(y(e))},h.domain=function(e){return arguments.length?m(e):m().map(B)},h.ticks=function(e,t){var n,r=m(),o=r[0],i=r[r.length-1],a=o>i;return a&&(n=o,o=i,i=n),n=f(e,o,i,t),n=n?n.range(o,i+1):[],a?n.reverse():n},h.tickFormat=function(e){return null==e?p:c(e)},h.nice=function(e,t){var n=m();return(e=f(e,n[0],n[n.length-1],t))?m(O(n,e)):h},h.copy=function(){return _(h,F(e,n,o,i,a,s,u,l,c))},h}function H(){return F(i.timeYear,i.timeMonth,i.timeWeek,i.timeDay,i.timeHour,i.timeMinute,i.timeSecond,i.timeMillisecond,a.timeFormat).domain([new Date(2e3,0,1),new Date(2e3,0,2)])}function z(){return F(i.utcYear,i.utcMonth,i.utcWeek,i.utcDay,i.utcHour,i.utcMinute,i.utcSecond,i.utcMillisecond,a.utcFormat).domain([Date.UTC(2e3,0,1),Date.UTC(2e3,0,2)])}function G(e){return e.match(/.{6}/g).map(function(e){return"#"+e})}function W(){return u().range(me)}function V(){return u().range(ve)}function q(){return u().range(ge)}function Z(){return u().range(_e)}function K(){return x().interpolate(r.interpolateCubehelixLong).range([s.cubehelix(300,.5,0),s.cubehelix(-240,.5,1)])}function Y(e){function t(t){var i=(t-n)/(r-n);return e(o?Math.max(0,Math.min(1,i)):i)}var n=0,r=1,o=!1;return t.domain=function(e){return arguments.length?(n=+e[0],r=+e[1],t):[n,r]},t.clamp=function(e){return arguments.length?(o=!!e,t):o},t.copy=function(){return Y(e).domain([n,r]).clamp(o)},P(t)}function J(){return Y(r.interpolateCubehelixLong(s.cubehelix(-100,.75,.35),s.cubehelix(80,1.5,.8)))}function X(){return Y(r.interpolateCubehelixLong(s.cubehelix(260,.75,.35),s.cubehelix(80,1.5,.8)))}function $(){var e=s.cubehelix();return Y(function(t){(0>t||t>1)&&(t-=Math.floor(t));var n=Math.abs(t-.5);return e.h=360*t-100,e.s=1.5-1.5*n,e.l=.8-.9*n,e+""})}function Q(e){var t=Y(function(t){return e[Math.round(t*e.length-t)]}).clamp(!0);return delete t.clamp,t}function ee(){return Q(be)}function te(){return Q(Te)}function ne(){return Q(Pe)}function re(){return Q(xe)}var oe=Array.prototype,ie=oe.map,ae=oe.slice,se={name:"implicit"},ue=[0,1],le=1e3,ce=60*le,pe=60*ce,fe=24*pe,he=7*fe,de=30*fe,ye=365*fe,me=G("1f77b4ff7f0e2ca02cd627289467bd8c564be377c27f7f7fbcbd2217becf"),ve=G("393b795254a36b6ecf9c9ede6379398ca252b5cf6bcedb9c8c6d31bd9e39e7ba52e7cb94843c39ad494ad6616be7969c7b4173a55194ce6dbdde9ed6"),ge=G("3182bd6baed69ecae1c6dbefe6550dfd8d3cfdae6bfdd0a231a35474c476a1d99bc7e9c0756bb19e9ac8bcbddcdadaeb636363969696bdbdbdd9d9d9"),_e=G("1f77b4aec7e8ff7f0effbb782ca02c98df8ad62728ff98969467bdc5b0d58c564bc49c94e377c2f7b6d27f7f7fc7c7c7bcbd22dbdb8d17becf9edae5"),be=G("44015444025645045745055946075a46085c460a5d460b5e470d60470e6147106347116447136548146748166848176948186a481a6c481b6d481c6e481d6f481f70482071482173482374482475482576482677482878482979472a7a472c7a472d7b472e7c472f7d46307e46327e46337f463480453581453781453882443983443a83443b84433d84433e85423f854240864241864142874144874045884046883f47883f48893e49893e4a893e4c8a3d4d8a3d4e8a3c4f8a3c508b3b518b3b528b3a538b3a548c39558c39568c38588c38598c375a8c375b8d365c8d365d8d355e8d355f8d34608d34618d33628d33638d32648e32658e31668e31678e31688e30698e306a8e2f6b8e2f6c8e2e6d8e2e6e8e2e6f8e2d708e2d718e2c718e2c728e2c738e2b748e2b758e2a768e2a778e2a788e29798e297a8e297b8e287c8e287d8e277e8e277f8e27808e26818e26828e26828e25838e25848e25858e24868e24878e23888e23898e238a8d228b8d228c8d228d8d218e8d218f8d21908d21918c20928c20928c20938c1f948c1f958b1f968b1f978b1f988b1f998a1f9a8a1e9b8a1e9c891e9d891f9e891f9f881fa0881fa1881fa1871fa28720a38620a48621a58521a68522a78522a88423a98324aa8325ab8225ac8226ad8127ad8128ae8029af7f2ab07f2cb17e2db27d2eb37c2fb47c31b57b32b67a34b67935b77937b87838b9773aba763bbb753dbc743fbc7340bd7242be7144bf7046c06f48c16e4ac16d4cc26c4ec36b50c46a52c56954c56856c66758c7655ac8645cc8635ec96260ca6063cb5f65cb5e67cc5c69cd5b6ccd5a6ece5870cf5773d05675d05477d1537ad1517cd2507fd34e81d34d84d44b86d54989d5488bd6468ed64590d74393d74195d84098d83e9bd93c9dd93ba0da39a2da37a5db36a8db34aadc32addc30b0dd2fb2dd2db5de2bb8de29bade28bddf26c0df25c2df23c5e021c8e020cae11fcde11dd0e11cd2e21bd5e21ad8e219dae319dde318dfe318e2e418e5e419e7e419eae51aece51befe51cf1e51df4e61ef6e620f8e621fbe723fde725"),Te=G("00000401000501010601010802010902020b02020d03030f03031204041405041606051806051a07061c08071e0907200a08220b09240c09260d0a290e0b2b100b2d110c2f120d31130d34140e36150e38160f3b180f3d19103f1a10421c10441d11471e114920114b21114e22115024125325125527125829115a2a115c2c115f2d11612f116331116533106734106936106b38106c390f6e3b0f703d0f713f0f72400f74420f75440f764510774710784910784a10794c117a4e117b4f127b51127c52137c54137d56147d57157e59157e5a167e5c167f5d177f5f187f601880621980641a80651a80671b80681c816a1c816b1d816d1d816e1e81701f81721f817320817521817621817822817922827b23827c23827e24828025828125818326818426818627818827818928818b29818c29818e2a81902a81912b81932b80942c80962c80982d80992d809b2e7f9c2e7f9e2f7fa02f7fa1307ea3307ea5317ea6317da8327daa337dab337cad347cae347bb0357bb2357bb3367ab5367ab73779b83779ba3878bc3978bd3977bf3a77c03a76c23b75c43c75c53c74c73d73c83e73ca3e72cc3f71cd4071cf4070d0416fd2426fd3436ed5446dd6456cd8456cd9466bdb476adc4869de4968df4a68e04c67e24d66e34e65e44f64e55064e75263e85362e95462ea5661eb5760ec5860ed5a5fee5b5eef5d5ef05f5ef1605df2625df2645cf3655cf4675cf4695cf56b5cf66c5cf66e5cf7705cf7725cf8745cf8765cf9785df9795df97b5dfa7d5efa7f5efa815ffb835ffb8560fb8761fc8961fc8a62fc8c63fc8e64fc9065fd9266fd9467fd9668fd9869fd9a6afd9b6bfe9d6cfe9f6dfea16efea36ffea571fea772fea973feaa74feac76feae77feb078feb27afeb47bfeb67cfeb77efeb97ffebb81febd82febf84fec185fec287fec488fec68afec88cfeca8dfecc8ffecd90fecf92fed194fed395fed597fed799fed89afdda9cfddc9efddea0fde0a1fde2a3fde3a5fde5a7fde7a9fde9aafdebacfcecaefceeb0fcf0b2fcf2b4fcf4b6fcf6b8fcf7b9fcf9bbfcfbbdfcfdbf"),Pe=G("00000401000501010601010802010a02020c02020e03021004031204031405041706041907051b08051d09061f0a07220b07240c08260d08290e092b10092d110a30120a32140b34150b37160b39180c3c190c3e1b0c411c0c431e0c451f0c48210c4a230c4c240c4f260c51280b53290b552b0b572d0b592f0a5b310a5c320a5e340a5f3609613809623909633b09643d09653e0966400a67420a68440a68450a69470b6a490b6a4a0c6b4c0c6b4d0d6c4f0d6c510e6c520e6d540f6d550f6d57106e59106e5a116e5c126e5d126e5f136e61136e62146e64156e65156e67166e69166e6a176e6c186e6d186e6f196e71196e721a6e741a6e751b6e771c6d781c6d7a1d6d7c1d6d7d1e6d7f1e6c801f6c82206c84206b85216b87216b88226a8a226a8c23698d23698f24699025689225689326679526679727669827669a28659b29649d29649f2a63a02a63a22b62a32c61a52c60a62d60a82e5fa92e5eab2f5ead305dae305cb0315bb1325ab3325ab43359b63458b73557b93556ba3655bc3754bd3853bf3952c03a51c13a50c33b4fc43c4ec63d4dc73e4cc83f4bca404acb4149cc4248ce4347cf4446d04545d24644d34743d44842d54a41d74b3fd84c3ed94d3dda4e3cdb503bdd513ade5238df5337e05536e15635e25734e35933e45a31e55c30e65d2fe75e2ee8602de9612bea632aeb6429eb6628ec6726ed6925ee6a24ef6c23ef6e21f06f20f1711ff1731df2741cf3761bf37819f47918f57b17f57d15f67e14f68013f78212f78410f8850ff8870ef8890cf98b0bf98c0af98e09fa9008fa9207fa9407fb9606fb9706fb9906fb9b06fb9d07fc9f07fca108fca309fca50afca60cfca80dfcaa0ffcac11fcae12fcb014fcb216fcb418fbb61afbb81dfbba1ffbbc21fbbe23fac026fac228fac42afac62df9c72ff9c932f9cb35f8cd37f8cf3af7d13df7d340f6d543f6d746f5d949f5db4cf4dd4ff4df53f4e156f3e35af3e55df2e661f2e865f2ea69f1ec6df1ed71f1ef75f1f179f2f27df2f482f3f586f3f68af4f88ef5f992f6fa96f8fb9af9fc9dfafda1fcffa4"),xe=G("0d088710078813078916078a19068c1b068d1d068e20068f2206902406912605912805922a05932c05942e05952f059631059733059735049837049938049a3a049a3c049b3e049c3f049c41049d43039e44039e46039f48039f4903a04b03a14c02a14e02a25002a25102a35302a35502a45601a45801a45901a55b01a55c01a65e01a66001a66100a76300a76400a76600a76700a86900a86a00a86c00a86e00a86f00a87100a87201a87401a87501a87701a87801a87a02a87b02a87d03a87e03a88004a88104a78305a78405a78606a68707a68808a68a09a58b0aa58d0ba58e0ca48f0da4910ea3920fa39410a29511a19613a19814a099159f9a169f9c179e9d189d9e199da01a9ca11b9ba21d9aa31e9aa51f99a62098a72197a82296aa2395ab2494ac2694ad2793ae2892b02991b12a90b22b8fb32c8eb42e8db52f8cb6308bb7318ab83289ba3388bb3488bc3587bd3786be3885bf3984c03a83c13b82c23c81c33d80c43e7fc5407ec6417dc7427cc8437bc9447aca457acb4679cc4778cc4977cd4a76ce4b75cf4c74d04d73d14e72d24f71d35171d45270d5536fd5546ed6556dd7566cd8576bd9586ada5a6ada5b69db5c68dc5d67dd5e66de5f65de6164df6263e06363e16462e26561e26660e3685fe4695ee56a5de56b5de66c5ce76e5be76f5ae87059e97158e97257ea7457eb7556eb7655ec7754ed7953ed7a52ee7b51ef7c51ef7e50f07f4ff0804ef1814df1834cf2844bf3854bf3874af48849f48948f58b47f58c46f68d45f68f44f79044f79143f79342f89441f89540f9973ff9983ef99a3efa9b3dfa9c3cfa9e3bfb9f3afba139fba238fca338fca537fca636fca835fca934fdab33fdac33fdae32fdaf31fdb130fdb22ffdb42ffdb52efeb72dfeb82cfeba2cfebb2bfebd2afebe2afec029fdc229fdc328fdc527fdc627fdc827fdca26fdcb26fccd25fcce25fcd025fcd225fbd324fbd524fbd724fad824fada24f9dc24f9dd25f8df25f8e125f7e225f7e425f6e626f6e826f5e926f5eb27f4ed27f3ee27f3f027f2f227f1f426f1f525f0f724f0f921"),Ee="0.6.4";
  e.version=Ee,e.scaleBand=l,e.scalePoint=p,e.scaleIdentity=E,e.scaleLinear=x,e.scaleLog=L,e.scaleOrdinal=u,e.scaleImplicit=se,e.scalePow=R,e.scaleSqrt=D,e.scaleQuantile=N,e.scaleQuantize=j,e.scaleThreshold=U,e.scaleTime=H,e.scaleUtc=z,e.scaleCategory10=W,e.scaleCategory20b=V,e.scaleCategory20c=q,e.scaleCategory20=Z,e.scaleCubehelix=K,e.scaleRainbow=$,e.scaleWarm=J,e.scaleCool=X,e.scaleViridis=ee,e.scaleMagma=te,e.scaleInferno=ne,e.scalePlasma=re})},function(e,t,n){(function(e,r){"use strict";var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol?"symbol":typeof e},i=n(698),a={"function":!0,object:!0},s=a[o(t)]&&t&&!t.nodeType?t:void 0,u=a[o(e)]&&e&&!e.nodeType?e:void 0,l=i(s&&u&&"object"==("undefined"==typeof r?"undefined":o(r))&&r),c=i(a["undefined"==typeof self?"undefined":o(self)]&&self),p=i(a["undefined"==typeof window?"undefined":o(window)]&&window),f=i(a[o(void 0)]&&void 0),h=l||p!==(f&&f.window)&&p||c||f||Function("return this")();e.exports=h}).call(t,n(122)(e),function(){return this}())},function(e,t){"use strict";function n(e){var t="undefined"==typeof e?"undefined":r(e);return!!e&&("object"==t||"function"==t)}var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol?"symbol":typeof e};e.exports=n},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}Object.defineProperty(t,"__esModule",{value:!0}),t.warn=t.getTransitionVal=t.compose=t.translateStyle=t.mapObject=t.debugf=t.debug=t.log=t.generatePrefixStyle=t.getDashCase=t.identity=t.getIntersectionKeys=void 0;var i=n(734),a=r(i),s=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},u=["Webkit","Moz","O","ms"],l=["transform","transformOrigin","transition"],c=(t.getIntersectionKeys=function(e,t){return(0,a["default"])(Object.keys(e),Object.keys(t))},t.identity=function(e){return e}),p=t.getDashCase=function(e){return e.replace(/([A-Z])/g,function(e){return"-"+e.toLowerCase()})},f=t.generatePrefixStyle=function(e,t){if(-1===l.indexOf(e))return o({},e,t);var n="transition"===e,r=e.replace(/(\w)/,function(e){return e.toUpperCase()}),i=t;return u.reduce(function(e,a,u){return n&&(i=t.replace(/(transform|transform-origin)/gim,"-webkit-$1")),s({},e,o({},a+r,i))},{})},h=t.log=console.log.bind(console),d=(t.debug=function(e){return function(t){return h(e,t),t}},t.debugf=function(e,t){return function(){for(var n=arguments.length,r=Array(n),o=0;n>o;o++)r[o]=arguments[o];var i=t.apply(void 0,r),a=e||t.name||"anonymous function",s="("+r.map(JSON.stringify).join(", ")+")";return h(a+": "+s+" => "+JSON.stringify(i)),i}},t.mapObject=function(e,t){return Object.keys(t).reduce(function(n,r){return s({},n,o({},r,e(r,t[r])))},{})},t.translateStyle=function(e){return Object.keys(e).reduce(function(e,t){return s({},e,f(t,e[t]))},e)},t.compose=function(){for(var e=arguments.length,t=Array(e),n=0;e>n;n++)t[n]=arguments[n];if(!t.length)return c;var r=t.reverse(),o=r[0],i=r.slice(1);return function(){return i.reduce(function(e,t){return t(e)},o.apply(void 0,arguments))}},t.getTransitionVal=function(e,t,n){return e.map(function(e){return p(e)+" "+t+"ms "+n}).join(",")},!1);t.warn=function(e,t,n,r,o,i,a,s){d&&"undefined"!=typeof console&&console.warn&&(void 0===t&&console.warn("LogUtils requires an error message argument"),e||(void 0===t?console.warn("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings."):!function(){var e=[n,r,o,i,a,s],u=0;console.warn(t.replace(/%s/g,function(){return e[u++]}))}()))}},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==("undefined"==typeof t?"undefined":s(t))&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+("undefined"==typeof t?"undefined":s(t)));e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol?"symbol":typeof e};Object.defineProperty(t,"__esModule",{value:!0});var u=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),l=n(1),c=n(61),p=r(c),f=function(e){function t(){return o(this,t),i(this,Object.getPrototypeOf(t).apply(this,arguments))}return a(t,e),u(t,[{key:"componentDidUpdate",value:function(e){var t=this.props,n=t.opacity,r=t.zIndex;n&&n!==e.opacity&&this.leafletElement.setOpacity(n),r&&r!==e.zIndex&&this.leafletElement.setZIndex(r)}},{key:"render",value:function(){return null}}]),t}(p["default"]);f.propTypes={opacity:l.PropTypes.number,zIndex:l.PropTypes.number},t["default"]=f},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==("undefined"==typeof t?"undefined":s(t))&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+("undefined"==typeof t?"undefined":s(t)));e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol?"symbol":typeof e};Object.defineProperty(t,"__esModule",{value:!0});var u=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),l=n(498),c=r(l),p=n(500),f=r(p),h=n(44),d=r(h),y=n(513),m=r(y),v=n(1),g=/on(?:Leaflet)?(.+)/i,_=function(e){function t(){return o(this,t),i(this,Object.getPrototypeOf(t).apply(this,arguments))}return a(t,e),u(t,[{key:"componentWillMount",value:function(){this._leafletEvents=this.extractLeafletEvents(this.props)}},{key:"componentDidMount",value:function(){this.bindLeafletEvents(this._leafletEvents)}},{key:"componentWillReceiveProps",value:function(e){var t=this.extractLeafletEvents(e);this._leafletEvents=this.bindLeafletEvents(t,this._leafletEvents)}},{key:"componentWillUnmount",value:function(){var e=this.leafletElement;e&&(0,f["default"])(this._leafletEvents,function(t,n){e.off(n,t)})}},{key:"getLeafletElement",value:function(){return this.leafletElement}},{key:"extractLeafletEvents",value:function(e){return(0,m["default"])((0,d["default"])(e),function(t,n){if(g.test(n)){var r=n.replace(g,function(e,t){return t.toLowerCase()});t[r]=e[n]}return t},{})}},{key:"bindLeafletEvents",value:function(){var e=arguments.length<=0||void 0===arguments[0]?{}:arguments[0],t=arguments.length<=1||void 0===arguments[1]?{}:arguments[1],n=this.leafletElement;if(n){var r=(0,c["default"])(t);return(0,f["default"])(t,function(t,o){e[o]&&t===e[o]||(delete r[o],n.off(o,t))}),(0,f["default"])(e,function(e,o){t[o]&&e===t[o]||(r[o]=e,n.on(o,e))}),r}}},{key:"fireLeafletEvent",value:function(e,t){var n=this.leafletElement;n&&n.fire(e,t)}}]),t}(v.Component);t["default"]=_},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(t,"__esModule",{value:!0});var o=n(1),i=n(5),a=n(62),s=r(a);t["default"]=o.PropTypes.oneOfType([o.PropTypes.instanceOf(i.LatLngBounds),s["default"]])},function(e,t,n){"use strict";function r(e){var t=-1,n=e?e.length:0;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}var o=n(478),i=n(479),a=n(480),s=n(481),u=n(482);r.prototype.clear=o,r.prototype["delete"]=i,r.prototype.get=a,r.prototype.has=s,r.prototype.set=u,e.exports=r},function(e,t){"use strict";function n(e,t,n,r){var o=-1,i=e.length;for(r&&i&&(n=e[++o]);++o<i;)n=t(n,e[o],o,e);return n}e.exports=n},function(e,t,n){"use strict";function r(e,t){for(var n=e.length;n--;)if(o(e[n][0],t))return n;return-1}var o=n(136);e.exports=r},function(e,t,n){"use strict";function r(e,t){var n=e.__data__;return o(t)?n["string"==typeof t?"string":"hash"]:n.map}var o=n(477);e.exports=r},function(e,t,n){"use strict";function r(e,t){if(i(e))return!1;var n="undefined"==typeof e?"undefined":o(e);return"number"==n||"symbol"==n||"boolean"==n||null==e||a(e)?!0:u.test(e)||!s.test(e)||null!=t&&e in Object(t)}var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol?"symbol":typeof e},i=n(18),a=n(97),s=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,u=/^\w*$/;e.exports=r},function(e,t,n){"use strict";var r=n(63),o=r(Object,"create");e.exports=o},function(e,t){"use strict";function n(e){return"number"==typeof e&&e>-1&&e%1==0&&r>=e}var r=9007199254740991;e.exports=n},function(e,t,n){"use strict";function r(e){return"symbol"==("undefined"==typeof e?"undefined":o(e))||i(e)&&u.call(e)==a}var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol?"symbol":typeof e},i=n(76),a="[object Symbol]",s=Object.prototype,u=s.toString;e.exports=r},function(e,t){"use strict";t.__esModule=!0;var n=!("undefined"==typeof window||!window.document||!window.document.createElement);t.canUseDOM=n},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(e){return u.stringify(e).replace(/%20/g,"+")}function i(e){return function(){function t(e){if(null==e.query){var t=e.search;e.query=P(t.substring(1)),e[d]={search:t,searchBase:""}}return e}function n(e,t){var n,r=e[d],o=t?T(t):"";if(!r&&!o)return e;"string"==typeof e&&(e=p.parsePath(e));var i=void 0;i=r&&e.search===r.search?r.searchBase:e.search||"";var s=i;return o&&(s+=(s?"&":"?")+o),a({},e,(n={search:s},n[d]={search:s,searchBase:i},n))}function r(e){return b.listenBefore(function(n,r){c["default"](e,t(n),r)})}function i(e){return b.listen(function(n){e(t(n))})}function s(e){b.push(n(e,e.query))}function u(e){b.replace(n(e,e.query))}function l(e,t){return b.createPath(n(e,t||e.query))}function f(e,t){return b.createHref(n(e,t||e.query))}function m(e){for(var r=arguments.length,o=Array(r>1?r-1:0),i=1;r>i;i++)o[i-1]=arguments[i];var a=b.createLocation.apply(b,[n(e,e.query)].concat(o));return e.query&&(a.query=e.query),t(a)}function v(e,t,n){"string"==typeof t&&(t=p.parsePath(t)),s(a({state:e},t,{query:n}))}function g(e,t,n){"string"==typeof t&&(t=p.parsePath(t)),u(a({state:e},t,{query:n}))}var _=arguments.length<=0||void 0===arguments[0]?{}:arguments[0],b=e(_),T=_.stringifyQuery,P=_.parseQueryString;return"function"!=typeof T&&(T=o),"function"!=typeof P&&(P=y),a({},b,{listenBefore:r,listen:i,push:s,replace:u,createPath:l,createHref:f,createLocation:m,pushState:h["default"](v,"pushState is deprecated; use push instead"),replaceState:h["default"](g,"replaceState is deprecated; use replace instead")})}}"function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol?"symbol":typeof e};t.__esModule=!0;var a=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},s=n(31),u=(r(s),n(557)),l=n(144),c=r(l),p=n(54),f=n(143),h=r(f),d="$searchBase",y=u.parse;t["default"]=i,e.exports=t["default"]},function(e,t,n){"use strict";function r(e){return Object.prototype.hasOwnProperty.call(e,m)||(e[m]=d++,f[e[m]]={}),f[e[m]]}var o=n(34),i=n(77),a=n(240),s=n(580),u=n(25),l=n(263),c=n(6),p=n(159),f={},h=!1,d=0,y={topAbort:"abort",topBlur:"blur",topCanPlay:"canplay",topCanPlayThrough:"canplaythrough",topChange:"change",topClick:"click",topCompositionEnd:"compositionend",topCompositionStart:"compositionstart",topCompositionUpdate:"compositionupdate",topContextMenu:"contextmenu",topCopy:"copy",topCut:"cut",topDoubleClick:"dblclick",topDrag:"drag",topDragEnd:"dragend",topDragEnter:"dragenter",topDragExit:"dragexit",topDragLeave:"dragleave",topDragOver:"dragover",topDragStart:"dragstart",topDrop:"drop",topDurationChange:"durationchange",topEmptied:"emptied",topEncrypted:"encrypted",topEnded:"ended",topError:"error",topFocus:"focus",topInput:"input",topKeyDown:"keydown",topKeyPress:"keypress",topKeyUp:"keyup",topLoadedData:"loadeddata",topLoadedMetadata:"loadedmetadata",topLoadStart:"loadstart",topMouseDown:"mousedown",topMouseMove:"mousemove",topMouseOut:"mouseout",topMouseOver:"mouseover",topMouseUp:"mouseup",topPaste:"paste",topPause:"pause",topPlay:"play",topPlaying:"playing",topProgress:"progress",topRateChange:"ratechange",topScroll:"scroll",topSeeked:"seeked",topSeeking:"seeking",topSelectionChange:"selectionchange",topStalled:"stalled",topSuspend:"suspend",topTextInput:"textInput",topTimeUpdate:"timeupdate",topTouchCancel:"touchcancel",topTouchEnd:"touchend",topTouchMove:"touchmove",topTouchStart:"touchstart",topVolumeChange:"volumechange",topWaiting:"waiting",topWheel:"wheel"},m="_reactListenersID"+String(Math.random()).slice(2),v=c({},s,{ReactEventListener:null,injection:{injectReactEventListener:function(e){e.setHandleTopLevel(v.handleTopLevel),v.ReactEventListener=e}},setEnabled:function(e){v.ReactEventListener&&v.ReactEventListener.setEnabled(e)},isEnabled:function(){return!(!v.ReactEventListener||!v.ReactEventListener.isEnabled())},listenTo:function(e,t){for(var n=t,i=r(n),s=a.registrationNameDependencies[e],u=o.topLevelTypes,l=0;l<s.length;l++){var c=s[l];i.hasOwnProperty(c)&&i[c]||(c===u.topWheel?p("wheel")?v.ReactEventListener.trapBubbledEvent(u.topWheel,"wheel",n):p("mousewheel")?v.ReactEventListener.trapBubbledEvent(u.topWheel,"mousewheel",n):v.ReactEventListener.trapBubbledEvent(u.topWheel,"DOMMouseScroll",n):c===u.topScroll?p("scroll",!0)?v.ReactEventListener.trapCapturedEvent(u.topScroll,"scroll",n):v.ReactEventListener.trapBubbledEvent(u.topScroll,"scroll",v.ReactEventListener.WINDOW_HANDLE):c===u.topFocus||c===u.topBlur?(p("focus",!0)?(v.ReactEventListener.trapCapturedEvent(u.topFocus,"focus",n),v.ReactEventListener.trapCapturedEvent(u.topBlur,"blur",n)):p("focusin")&&(v.ReactEventListener.trapBubbledEvent(u.topFocus,"focusin",n),v.ReactEventListener.trapBubbledEvent(u.topBlur,"focusout",n)),i[u.topBlur]=!0,i[u.topFocus]=!0):y.hasOwnProperty(c)&&v.ReactEventListener.trapBubbledEvent(c,y[c],n),i[c]=!0)}},trapBubbledEvent:function(e,t,n){return v.ReactEventListener.trapBubbledEvent(e,t,n)},trapCapturedEvent:function(e,t,n){return v.ReactEventListener.trapCapturedEvent(e,t,n)},ensureScrollValueMonitoring:function(){if(!h){var e=l.refreshScrollValues;v.ReactEventListener.monitorScrollValue(e),h=!0}},eventNameDispatchConfigs:i.eventNameDispatchConfigs,registrationNameModules:i.registrationNameModules,putListener:i.putListener,getListener:i.getListener,deleteListener:i.deleteListener,deleteAllListeners:i.deleteAllListeners});u.measureMethods(v,"ReactBrowserEventEmitter",{putListener:"putListener",deleteListener:"deleteListener"}),e.exports=v},function(e,t,n){"use strict";var r={};e.exports=r},function(e,t,n){"use strict";var r=n(108),o=r({prop:null,context:null,childContext:null});e.exports=o},function(e,t,n){"use strict";function r(e,t,n,r){o.call(this,e,t,n,r)}var o=n(80),i=n(263),a=n(155),s={screenX:null,screenY:null,clientX:null,clientY:null,ctrlKey:null,shiftKey:null,altKey:null,metaKey:null,getModifierState:a,button:function u(e){var u=e.button;return"which"in e?u:2===u?2:4===u?1:0},buttons:null,relatedTarget:function(e){return e.relatedTarget||(e.fromElement===e.srcElement?e.toElement:e.fromElement)},pageX:function(e){return"pageX"in e?e.pageX:e.clientX+i.currentScrollLeft},pageY:function(e){return"pageY"in e?e.pageY:e.clientY+i.currentScrollTop}};o.augmentClass(r,s),e.exports=r},function(e,t,n){"use strict";var r=n(3),o={reinitializeTransaction:function(){this.transactionWrappers=this.getTransactionWrappers(),this.wrapperInitData?this.wrapperInitData.length=0:this.wrapperInitData=[],this._isInTransaction=!1},_isInTransaction:!1,getTransactionWrappers:null,isInTransaction:function(){return!!this._isInTransaction},perform:function(e,t,n,o,i,a,s,u){this.isInTransaction()?r(!1):void 0;var l,c;try{this._isInTransaction=!0,l=!0,this.initializeAll(0),c=e.call(t,n,o,i,a,s,u),l=!1}finally{try{if(l)try{this.closeAll(0)}catch(p){}else this.closeAll(0)}finally{this._isInTransaction=!1}}return c},initializeAll:function(e){for(var t=this.transactionWrappers,n=e;n<t.length;n++){var r=t[n];try{this.wrapperInitData[n]=i.OBSERVED_ERROR,this.wrapperInitData[n]=r.initialize?r.initialize.call(this):null}finally{if(this.wrapperInitData[n]===i.OBSERVED_ERROR)try{this.initializeAll(n+1)}catch(o){}}}},closeAll:function(e){this.isInTransaction()?void 0:r(!1);for(var t=this.transactionWrappers,n=e;n<t.length;n++){var o,a=t[n],s=this.wrapperInitData[n];try{o=!0,s!==i.OBSERVED_ERROR&&a.close&&a.close.call(this,s),o=!1}finally{if(o)try{this.closeAll(n+1)}catch(u){}}}this.wrapperInitData.length=0}},i={Mixin:o,OBSERVED_ERROR:{}};e.exports=i},function(e,t,n){"use strict";var r=!1;e.exports=r},function(e,t){"use strict";function n(e){return o[e]}function r(e){return(""+e).replace(i,n)}var o={"&":"&amp;",">":"&gt;","<":"&lt;",'"':"&quot;","'":"&#x27;"},i=/[&><"']/g;e.exports=r},function(e,t,n){"use strict";var r=n(14),o=/^[ \r\n\t\f]/,i=/<(!--|link|noscript|meta|script|style)[ \r\n\t\f\/>]/,a=function(e,t){e.innerHTML=t};if("undefined"!=typeof MSApp&&MSApp.execUnsafeLocalFunction&&(a=function(e,t){MSApp.execUnsafeLocalFunction(function(){e.innerHTML=t})}),r.canUseDOM){var s=document.createElement("div");s.innerHTML=" ",""===s.innerHTML&&(a=function(e,t){if(e.parentNode&&e.parentNode.replaceChild(e,e),o.test(t)||"<"===t[0]&&i.test(t)){e.innerHTML=String.fromCharCode(65279)+t;var n=e.firstChild;1===n.data.length?e.removeChild(n):n.deleteData(0,1)}else e.innerHTML=t})}e.exports=a},function(e,t,n){"use strict";var r=n(3),o=function(e){var t,n={};e instanceof Object&&!Array.isArray(e)?void 0:r(!1);for(t in e)e.hasOwnProperty(t)&&(n[t]=t);return n};e.exports=o},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==("undefined"==typeof t?"undefined":s(t))&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+("undefined"==typeof t?"undefined":s(t)));e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol?"symbol":typeof e};Object.defineProperty(t,"__esModule",{value:!0});var u,l,c,p=n(17),f=r(p),h=n(50),d=r(h),y=n(10),m=r(y),v=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},g=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),_=n(1),b=r(_),T=n(2),P=r(T),x=n(9),E=r(x),O=n(38),w=r(O),C=n(4),S=n(22),M=(0,P["default"])((c=l=function(e){function t(){return o(this,t),i(this,Object.getPrototypeOf(t).apply(this,arguments))}return a(t,e),g(t,[{key:"getCoordinate",value:function(){var e=this.props,t=e.x,n=e.y,r=e.xAxisMap,o=e.yAxisMap,i=e.xAxisId,a=e.yAxisId,s=r[i].scale,u=o[a].scale,l={cx:s(t),cy:u(n)};return(0,S.validateCoordinateInRange)(l.cx,s)&&(0,S.validateCoordinateInRange)(l.cy,u)?l:null}},{key:"renderLabel",value:function(e){var t=this.props,n=t.label,r=t.stroke,o=v({},(0,C.getPresentationAttributes)(n),{stroke:"none",fill:r,x:e.cx,y:e.cy,textAnchor:"middle"});return b["default"].isValidElement(n)?b["default"].cloneElement(n,o):(0,m["default"])(n)?n(o):(0,d["default"])(n)||(0,f["default"])(n)?b["default"].createElement("g",{className:"recharts-reference-dot-label"},b["default"].createElement("text",o,n)):null}},{key:"render",value:function(){var e=this.props,t=e.x,n=e.y,r=(0,f["default"])(t)||(0,d["default"])(t),o=(0,f["default"])(n)||(0,d["default"])(n);if(!r||!o)return null;var i=this.getCoordinate();if(!i)return null;var a=(0,C.getPresentationAttributes)(this.props);return b["default"].createElement(E["default"],{className:"recharts-reference-dot"},b["default"].createElement(w["default"],v({},a,{r:this.props.r,className:"recharts-reference-dot-dot"},i)),this.renderLabel(i))}}]),t}(_.Component),l.displayName="ReferenceDot",l.propTypes=v({},C.PRESENTATION_ATTRIBUTES,{r:_.PropTypes.number,label:_.PropTypes.oneOfType([_.PropTypes.number,_.PropTypes.string,_.PropTypes.func,_.PropTypes.element]),xAxisMap:_.PropTypes.object,yAxisMap:_.PropTypes.object,alwaysShow:_.PropTypes.bool,x:_.PropTypes.oneOfType([_.PropTypes.number,_.PropTypes.string]),y:_.PropTypes.oneOfType([_.PropTypes.number,_.PropTypes.string]),yAxisId:_.PropTypes.oneOfType([_.PropTypes.string,_.PropTypes.number]),xAxisId:_.PropTypes.oneOfType([_.PropTypes.string,_.PropTypes.number])}),l.defaultProps={alwaysShow:!1,xAxisId:0,yAxisId:0,r:20,fill:"#fff",stroke:"#ccc",fillOpacity:1,strokeWidth:1},u=c))||u;t["default"]=M},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==("undefined"==typeof t?"undefined":s(t))&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+("undefined"==typeof t?"undefined":s(t)));e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol?"symbol":typeof e};Object.defineProperty(t,"__esModule",{value:!0});var u,l,c,p=n(17),f=r(p),h=n(50),d=r(h),y=n(10),m=r(y),v=function(){function e(e,t){var n=[],r=!0,o=!1,i=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(u){o=!0,i=u}finally{try{!r&&s["return"]&&s["return"]()}finally{if(o)throw i}}return n}return function(t,n){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),g=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},_=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),b=n(1),T=r(b),P=n(2),x=r(P),E=n(9),O=r(E),w=n(4),C=n(22),S=(0,x["default"])((c=l=function(e){function t(){return o(this,t),i(this,Object.getPrototypeOf(t).apply(this,arguments))}return a(t,e),_(t,[{key:"getEndPoints",value:function(e,t){var n=this.props,r=n.xAxisMap,o=n.yAxisMap,i=n.xAxisId,a=n.yAxisId,s=n.viewBox,u=s.x,l=s.y,c=s.width,p=s.height;if(t){var f=this.props.y,h=o[a].scale,d=h(f);if((0,C.validateCoordinateInRange)(d,h))return"left"===o[a].orientation?[{x:u,y:d},{x:u+c,y:d}]:[{x:u+c,y:d},{x:u,y:d}]}else if(e){var y=this.props.x,m=r[i].scale,v=m(y);if((0,C.validateCoordinateInRange)(v,m))return"top"===o[a].orientation?[{x:v,y:l},{x:v,y:l+p}]:[{x:v,y:l+p},{x:v,y:l}]}return null}},{key:"getLabelProps",value:function(e,t){var n=this.props,r=n.xAxisMap,o=n.yAxisMap,i=n.xAxisId,a=n.yAxisId,s=n.labelPosition;if(t){var u=o[a];return"left"===u.orientation&&"end"===s?{dx:6,dy:6,textAnchor:"start"}:"right"===u.orientation&&"start"===s?{dx:6,dy:6,textAnchor:"start"}:{dx:-6,dy:6,textAnchor:"end"}}if(e){var l=r[i];return"top"===l.orientation?{dy:6,textAnchor:"middle"}:{dy:-6,textAnchor:"middle"}}return null}},{key:"renderLabel",value:function(e,t,n){var r=this.props,o=r.label,i=r.stroke,a=g({},(0,w.getPresentationAttributes)(o),{stroke:"none",fill:i},n,this.getLabelProps(e,t));return T["default"].isValidElement(o)?T["default"].cloneElement(o,a):(0,m["default"])(o)?o(a):(0,d["default"])(o)||(0,f["default"])(o)?T["default"].createElement("g",{className:"recharts-reference-line-label"},T["default"].createElement("text",a,o)):null}},{key:"render",value:function(){var e=this.props,t=e.x,n=e.y,r=e.labelPosition,o=(0,f["default"])(t)||(0,d["default"])(t),i=(0,f["default"])(n)||(0,d["default"])(n);if(!o&&!i)return null;var a=this.getEndPoints(o,i);if(!a)return null;var s=v(a,2),u=s[0],l=s[1],c=(0,w.getPresentationAttributes)(this.props);return T["default"].createElement(O["default"],{className:"recharts-reference-line"},T["default"].createElement("line",g({},c,{className:"recharts-reference-line-line",x1:u.x,y1:u.y,x2:l.x,y2:l.y})),this.renderLabel(o,i,"start"===r?u:l))}}]),t}(b.Component),l.displayName="ReferenceLine",l.propTypes=g({},w.PRESENTATION_ATTRIBUTES,{viewBox:b.PropTypes.shape({x:b.PropTypes.number,y:b.PropTypes.number,width:b.PropTypes.number,height:b.PropTypes.number}),label:b.PropTypes.oneOfType([b.PropTypes.number,b.PropTypes.string,b.PropTypes.element,b.PropTypes.func]),xAxisMap:b.PropTypes.object,yAxisMap:b.PropTypes.object,alwaysShow:b.PropTypes.bool,x:b.PropTypes.oneOfType([b.PropTypes.number,b.PropTypes.string]),y:b.PropTypes.oneOfType([b.PropTypes.number,b.PropTypes.string]),yAxisId:b.PropTypes.oneOfType([b.PropTypes.string,b.PropTypes.number]),xAxisId:b.PropTypes.oneOfType([b.PropTypes.string,b.PropTypes.number]),labelPosition:b.PropTypes.oneOf(["start","end"])}),l.defaultProps={alwaysShow:!1,xAxisId:0,yAxisId:0,fill:"none",stroke:"#ccc",fillOpacity:1,strokeWidth:1,labelPosition:"end"},u=c))||u;t["default"]=S},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==("undefined"==typeof t?"undefined":u(t))&&"function"!=typeof t?e:t}function s(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+("undefined"==typeof t?"undefined":u(t)));e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol?"symbol":typeof e};Object.defineProperty(t,"__esModule",{value:!0});var l=n(17),c=r(l),p=n(121),f=r(p),h=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},d=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),y=n(1),m=r(y),v=n(60),g=r(v),_=n(187),b=n(83),T=n(8),P=r(T),x=n(32),E=r(x),O=n(9),w=r(O),C=n(36),S=r(C),M=n(57),A=r(M),k=n(174),L=n(4),I=n(167),R=r(I),D=n(168),N=r(D),j=n(110),U=r(j),B=n(109),F=r(B),H=n(170),z=r(H),G=n(171),W=r(G),V=n(274),q=r(V),Z=n(2),K=(r(Z),n(69)),Y=n(22),J=n(68),X={xAxis:["bottom","top"],yAxis:["left","right"]},$=function(e,t){var n,r,u=(r=n=function(n){function r(e){i(this,r);var t=a(this,Object.getPrototypeOf(r).call(this,e));return t.state={dataStartIndex:0,dataEndIndex:t.props.data&&t.props.data.length-1||0,activeTooltipIndex:-1,activeTooltipLabel:"",activeTooltipCoord:{x:0,y:0},isTooltipActive:!1},t.handleBrushChange=function(e){var n=e.startIndex,r=e.endIndex;t.setState({dataStartIndex:n,dataEndIndex:r})},t.handleMouseLeave=function(){t.setState({isTooltipActive:!1})},t.validateAxes(),t}return s(r,n),d(r,[{key:"componentWillReceiveProps",value:function(e){e.data!==this.props.data&&this.setState({dataStartIndex:0,dataEndIndex:e.data&&e.data.length-1||0})}},{key:"getAxisMap",value:function(){var e=arguments.length<=0||void 0===arguments[0]?"xAxis":arguments[0],t=arguments[1],n=arguments[2],r=this.props.children,o="xAxis"===e?z["default"]:W["default"],i="xAxis"===e?"xAxisId":"yAxisId",a=(0,L.findAllByType)(r,o),s={};return a&&a.length?s=this.getAxisMapByAxes(a,t,e,i,n):t&&t.length&&(s=this.getAxisMapByItems(t,o,e,i,n)),s}},{key:"getAxisMapByAxes",value:function(e,t,n,r,i){var a=this.props,s=a.layout,u=a.children,l=a.data,c=this.state,p=c.dataEndIndex,d=c.dataStartIndex,y=l.slice(d,p+1),m=y.length,v=(0,J.isCategorialAxis)(s,n),g=e.reduce(function(e,a){var s=a.props,l=s.type,c=s.dataKey,g=a.props[r];if(!e[g]){var _=void 0;return _=c?(0,J.getDomainOfDataByKey)(y,c,l):i&&i[g]&&i[g].hasStack&&"number"===l?(0,J.getDomainOfStackGroups)(i[g].stackGroups,d,p):v?(0,f["default"])(0,m):(0,J.getDomainOfItemsWithSameAxis)(y,t.filter(function(e){return e.props[r]===g}),l),"number"===l&&(_=(0,J.detectReferenceElementsDomain)(u,_,g,n),a.props.domain&&(_=(0,Y.parseSpecifiedDomain)(a.props.domain,_))),h({},e,o({},g,h({},a.props,{axisType:n,domain:_,originalDomain:a.props.domain})))}return e},{});return g}},{key:"getAxisMapByItems",value:function(e,t,n,r,i){var a=this.props,s=a.layout,u=a.children,l=a.data,c=this.state,p=c.dataEndIndex,d=c.dataStartIndex,y=l.slice(d,p+1),m=y.length,v=(0,J.isCategorialAxis)(s,n),g=-1,_=e.reduce(function(a,s){var l=s.props[r];if(!a[l]){g++;var c=void 0;return v?c=(0,f["default"])(0,m):i&&i[l]&&i[l].hasStack?(c=(0,J.getDomainOfStackGroups)(i[l].stackGroups,d,p),c=(0,J.detectReferenceElementsDomain)(u,c,l,n)):(c=(0,Y.parseSpecifiedDomain)(t.defaultProps.domain,(0,J.getDomainOfItemsWithSameAxis)(y,e.filter(function(e){return e.props[r]===l}),"number")),c=(0,J.detectReferenceElementsDomain)(u,c,l,n)),h({},a,o({},l,h({axisType:n},t.defaultProps,{hide:!0,orientation:X[n][g%2],isAutoGenerated:!0,domain:c})))}return a},{});return _}},{key:"setTicksOfScale",
  value:function(e,t){if(t.ticks&&t.ticks)return void e.domain((0,J.calculateDomainOfTicks)(t.ticks,t.type));if(t.tickCount&&"number"===t.type&&t.originalDomain&&("auto"===t.originalDomain[0]||"auto"===t.originalDomain[1])){var n=e.domain(),r=(0,_.getNiceTickValues)(n,t.tickCount);t.ticks=r,e.domain((0,J.calculateDomainOfTicks)(r,t.type))}}},{key:"getFormatAxisMap",value:function(e,t,n){var r=this,o=this.props,i=o.width,a=o.height,s=o.layout,u=this.constructor.displayName,l=Object.keys(e),c={left:t.left,right:i-t.right,top:t.top,bottom:a-t.bottom};return l.reduce(function(o,i){var a=e[i],l=a.orientation,p=a.type,f=a.domain,d=void 0;d="xAxis"===n?[t.left,t.left+t.width]:"horizontal"===s?[t.top+t.height,t.top]:[t.top,t.top+t.height];var y=void 0;y="number"===p?(0,b.scaleLinear)().domain(f).range(d):"LineChart"===u||"AreaChart"===u?(0,b.scalePoint)().domain(f).range(d):(0,b.scaleBand)().domain(f).range(d),r.setTicksOfScale(y,a);var m=void 0,v=void 0;return"xAxis"===n?(m=t.left,v="top"===l?c[l]-a.height:c[l]):(m="left"===l?c[l]-a.width:c[l],v=t.top),o[i]=h({},a,{x:m,y:v,scale:y,width:"xAxis"===n?t.width:a.width,height:"yAxis"===n?t.height:a.height}),a.hide||"xAxis"!==n?a.hide||(c[l]+=("left"===l?-1:1)*o[i].width):c[l]+=("top"===l?-1:1)*o[i].height,o},{})}},{key:"getMouseInfo",value:function(e,t,n,r){var o=r.chartX>=n.left&&r.chartX<=n.left+n.width&&r.chartY>=n.top&&r.chartY<=n.top+n.height;if(!o)return null;var i=this.props.layout,a="horizontal"===i?e:t,s="horizontal"===i?r.chartX:r.chartY,u=(0,Y.getAnyElementOfObject)(a),l=(0,J.getTicksOfAxis)(u,!0),c=(0,J.calculateActiveTickIndex)(s,l);return c>=0?{activeTooltipIndex:c,activeTooltipLabel:l[c].value,activeTooltipCoord:{x:"horizontal"===i?l[c].coordinate:r.chartX,y:"horizontal"===i?r.chartY:l[c].coordinate}}:null}},{key:"getTooltipContent",value:function(e){var t=this.state,n=t.activeTooltipIndex,r=t.dataStartIndex,o=t.dataEndIndex,i=this.props.data.slice(r,o+1);return 0>n||!e||!e.length?null:e.map(function(e){var t=e.props,r=t.dataKey,o=t.name,a=t.unit,s=t.formatter;return{name:o||r,unit:a||"",color:(0,J.getMainColorOfGraphicItem)(e),value:i[n][r],payload:i[n],formatter:s}})}},{key:"calculateOffset",value:function(e,t,n){var r=this.props,o=r.width,i=r.height,a=r.margin,s=r.children,u=(0,L.findChildByType)(s,q["default"]),l=Object.keys(n).reduce(function(e,t){var r=n[t],o=r.orientation;return e[o]+=r.hide?0:r.width,e},{left:a.left||0,right:a.right||0}),p=Object.keys(t).reduce(function(e,n){var r=t[n],o=r.orientation;return e[o]+=r.hide?0:r.height,e},{top:a.top||0,bottom:a.bottom||0}),f=p.bottom;u&&(p.bottom+=u.props.height||q["default"].defaultProps.height);var d=(0,J.getLegendProps)(s,e,o,i);if(d){var y=A["default"].getLegendBBox(d,o,i)||{};"horizontal"===d.layout&&(0,c["default"])(p[d.verticalAlign])?p[d.verticalAlign]+=y.height||0:"vertical"===d.layout&&(0,c["default"])(l[d.align])&&(l[d.align]+=y.width||0)}return h({brushBottom:f},l,p,{width:o-l.left-l.right,height:i-p.top-p.bottom})}},{key:"handleMouseEnter",value:function(e,t,n,r){var o=g["default"].findDOMNode(this),i=(0,K.getOffset)(o),a=(0,J.calculateChartCoordinate)(r,i),s=this.getMouseInfo(t,n,e,a);s&&this.setState(h({},s,{isTooltipActive:!0}))}},{key:"handleMouseMove",value:function(e,t,n,r){var o=g["default"].findDOMNode(this),i=(0,K.getOffset)(o),a=(0,J.calculateChartCoordinate)(r,i),s=this.getMouseInfo(t,n,e,a);s?this.setState(h({},s,{isTooltipActive:!0})):this.setState({isTooltipActive:!1})}},{key:"validateAxes",value:function(){var e=this.props,t=e.layout,n=e.children,r=(0,L.findAllByType)(n,z["default"]),o=(0,L.findAllByType)(n,W["default"]);if("horizontal"===t&&r&&r.length)r.forEach(function(e){(0,k.warn)("category"===e.props.type,"x-axis should be category axis when the layout is horizontal")});else if("vertical"===t){var i=this.constructor.displayName;(0,k.warn)(o&&o.length,'You should add <YAxis type="number" /> in '+i+".\n           The layout is vertical now, y-axis should be category axis,\n           but y-axis is number axis when no YAxis is added."),(0,k.warn)(r&&r.length,"You should add <XAxis /> in "+i+".\n          The layout is vertical now, x-axis is category when no XAxis is added."),o&&o.length&&o.forEach(function(e){(0,k.warn)("category"===e.props.type,"y-axis should be category axis when the layout is vertical")})}return null}},{key:"renderAxes",value:function(e,t){var n=this.props,r=n.width,o=n.height,i=e&&Object.keys(e);if(i&&i.length){for(var a=[],s=0,u=i.length;u>s;s++){var l=e[i[s]];l.hide||a.push(m["default"].createElement(R["default"],h({},l,{key:t+"-"+i[s],viewBox:{x:0,y:0,width:r,height:o},ticks:(0,J.getTicksOfAxis)(l,!0)})))}return a.length?m["default"].createElement(w["default"],{key:t+"-layer",className:"recharts-"+t},a):null}return null}},{key:"renderGrid",value:function(e,t,n){var r=this.props,o=r.children,i=r.width,a=r.height,s=(0,L.findChildByType)(o,N["default"]);if(!s)return null;var u=(0,Y.getAnyElementOfObject)(e),l=(0,Y.getAnyElementOfObject)(t),c=(0,J.getTicksOfGrid)(R["default"].getTicks(h({},R["default"].defaultProps,u,{ticks:(0,J.getTicksOfAxis)(u,!0),viewBox:{x:0,y:0,width:i,height:a}})),n.left,n.left+n.width),p=(0,J.getTicksOfGrid)(R["default"].getTicks(h({},R["default"].defaultProps,l,{ticks:(0,J.getTicksOfAxis)(l,!0),viewBox:{x:0,y:0,width:i,height:a}})),n.top,n.top+n.height);return m["default"].cloneElement(s,{key:"grid",x:n.left,y:n.top,width:n.width,height:n.height,verticalPoints:c,horizontalPoints:p})}},{key:"renderLegend",value:function(e){var t=this.props,n=t.children,r=t.width,o=t.height,i=(0,J.getLegendProps)(n,e,r,o);if(!i)return null;var a=this.props.margin;return m["default"].createElement(A["default"],h({},i,{chartWidth:r,chartHeight:o,margin:a}))}},{key:"renderTooltip",value:function(e,t){var n=this.props.children,r=(0,L.findChildByType)(n,S["default"]);if(!r)return null;var o=this.state,i=o.isTooltipActive,a=o.activeTooltipLabel,s=o.activeTooltipCoord,u={x:t.left,y:t.top,width:t.width,height:t.height};return m["default"].cloneElement(r,{viewBox:u,active:i,label:a,payload:i?this.getTooltipContent(e):[],coordinate:s})}},{key:"renderBrush",value:function(e,t,n){var r=this.props,o=r.children,i=r.data,a=r.margin,s=(0,L.findChildByType)(o,q["default"]);if(!s)return null;var u=s.props.dataKey;return m["default"].cloneElement(s,{onChange:this.handleBrushChange,data:i.map(function(e){return e[u]}),x:n.left,y:n.top+n.height+n.brushBottom-(a.bottom||0),width:n.width})}},{key:"renderReferenceLines",value:function(e,t,n){var r=this.props.children,o=(0,L.findAllByType)(r,U["default"]);return o&&o.length?o.map(function(r,o){return m["default"].cloneElement(r,{key:"reference-line-"+o,xAxisMap:e,yAxisMap:t,viewBox:{x:n.left,y:n.top,width:n.width,height:n.height}})}):null}},{key:"renderReferenceDots",value:function(e,t,n){var r=this.props.children,o=(0,L.findAllByType)(r,F["default"]);return o&&o.length?o.map(function(n,r){return m["default"].cloneElement(n,{key:"reference-dot-"+r,xAxisMap:e,yAxisMap:t})}):null}},{key:"render",value:function(){var n=this.props.data;if(!(0,L.validateWidthHeight)(this)||!n||!n.length)return null;var r=this.props,o=r.style,i=r.children,a=r.layout,s=r.className,u=r.width,l=r.height,c="horizontal"===a?"yAxis":"xAxis",p=(0,L.findAllByType)(i,t),f=(0,J.getStackGroupsByAxisId)(n,p,c+"Id"),d=this.getAxisMap("xAxis",p,"xAxis"===c&&f),y=this.getAxisMap("yAxis",p,"yAxis"===c&&f),v=this.calculateOffset(p,d,y);return d=this.getFormatAxisMap(d,v,"xAxis"),y=this.getFormatAxisMap(y,v,"yAxis"),m["default"].createElement("div",{className:(0,P["default"])("recharts-wrapper",s),style:h({position:"relative",cursor:"default"},o),onMouseEnter:this.handleMouseEnter.bind(this,v,d,y),onMouseMove:this.handleMouseMove.bind(this,v,d,y),onMouseLeave:this.handleMouseLeave},m["default"].createElement(E["default"],{width:u,height:l},this.renderGrid(d,y,v),this.renderReferenceLines(d,y,v),this.renderReferenceDots(d,y,v),this.renderAxes(d,"x-axis"),this.renderAxes(y,"y-axis"),m["default"].createElement(e,h({},this.props,this.state,{graphicalItems:p,xAxisMap:d,yAxisMap:y,offset:v,stackGroups:f})),this.renderBrush(d,y,v)),this.renderLegend(p),this.renderTooltip(p,v))}}]),r}(y.Component),n.displayName=(0,L.getDisplayName)(e),n.propTypes={width:y.PropTypes.number,height:y.PropTypes.number,data:y.PropTypes.arrayOf(y.PropTypes.object),layout:y.PropTypes.oneOf(["horizontal","vertical"]),margin:y.PropTypes.shape({top:y.PropTypes.number,right:y.PropTypes.number,bottom:y.PropTypes.number,left:y.PropTypes.number}),style:y.PropTypes.object,className:y.PropTypes.string,children:y.PropTypes.oneOfType([y.PropTypes.arrayOf(y.PropTypes.node),y.PropTypes.node])},n.defaultProps={layout:"horizontal",margin:{top:5,right:5,bottom:5,left:5}},r);return u};t["default"]=$},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==("undefined"==typeof t?"undefined":s(t))&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+("undefined"==typeof t?"undefined":s(t)));e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol?"symbol":typeof e};Object.defineProperty(t,"__esModule",{value:!0});var u,l,c,p=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),f=n(1),h=(r(f),n(2)),d=r(h),y=(0,d["default"])((c=l=function(e){function t(){return o(this,t),i(this,Object.getPrototypeOf(t).apply(this,arguments))}return a(t,e),p(t,[{key:"render",value:function(){return null}}]),t}(f.Component),l.displayName="Cell",u=c))||u;t["default"]=y},function(e,t){"use strict";e.exports=function(e){try{return!!e()}catch(t){return!0}}},function(e,t,n){var r,o,i,a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol?"symbol":typeof e};!function(n,s){"object"===a(t)&&"undefined"!=typeof e?s(t):(o=[t],r=s,i="function"==typeof r?r.apply(t,o):r,!(void 0!==i&&(e.exports=i)))}(void 0,function(e){"use strict";function t(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function n(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function r(){}function o(e){var t;return e=(e+"").trim().toLowerCase(),(t=A.exec(e))?(t=parseInt(t[1],16),new l(t>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1)):(t=k.exec(e))?i(parseInt(t[1],16)):(t=L.exec(e))?new l(t[1],t[2],t[3],1):(t=I.exec(e))?new l(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=R.exec(e))?a(t[1],t[2],t[3],t[4]):(t=D.exec(e))?a(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=N.exec(e))?c(t[1],t[2]/100,t[3]/100,1):(t=j.exec(e))?c(t[1],t[2]/100,t[3]/100,t[4]):U.hasOwnProperty(e)?i(U[e]):"transparent"===e?new l(NaN,NaN,NaN,0):null}function i(e){return new l(e>>16&255,e>>8&255,255&e,1)}function a(e,t,n,r){return 0>=r&&(e=t=n=NaN),new l(e,t,n,r)}function s(e){return e instanceof r||(e=o(e)),e?(e=e.rgb(),new l(e.r,e.g,e.b,e.opacity)):new l}function u(e,t,n,r){return 1===arguments.length?s(e):new l(e,t,n,null==r?1:r)}function l(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}function c(e,t,n,r){return 0>=r?e=t=n=NaN:0>=n||n>=1?e=t=NaN:0>=t&&(e=NaN),new h(e,t,n,r)}function p(e){if(e instanceof h)return new h(e.h,e.s,e.l,e.opacity);if(e instanceof r||(e=o(e)),!e)return new h;if(e instanceof h)return e;e=e.rgb();var t=e.r/255,n=e.g/255,i=e.b/255,a=Math.min(t,n,i),s=Math.max(t,n,i),u=NaN,l=s-a,c=(s+a)/2;return l?(u=t===s?(n-i)/l+6*(i>n):n===s?(i-t)/l+2:(t-n)/l+4,l/=.5>c?s+a:2-s-a,u*=60):l=c>0&&1>c?0:u,new h(u,l,c,e.opacity)}function f(e,t,n,r){return 1===arguments.length?p(e):new h(e,t,n,null==r?1:r)}function h(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}function d(e,t,n){return 255*(60>e?t+(n-t)*e/60:180>e?n:240>e?t+(n-t)*(240-e)/60:t)}function y(e){if(e instanceof v)return new v(e.l,e.a,e.b,e.opacity);if(e instanceof E){var t=e.h*B;return new v(e.l,Math.cos(t)*e.c,Math.sin(t)*e.c,e.opacity)}e instanceof l||(e=s(e));var n=T(e.r),r=T(e.g),o=T(e.b),i=g((.4124564*n+.3575761*r+.1804375*o)/z),a=g((.2126729*n+.7151522*r+.072175*o)/G),u=g((.0193339*n+.119192*r+.9503041*o)/W);return new v(116*a-16,500*(i-a),200*(a-u),e.opacity)}function m(e,t,n,r){return 1===arguments.length?y(e):new v(e,t,n,null==r?1:r)}function v(e,t,n,r){this.l=+e,this.a=+t,this.b=+n,this.opacity=+r}function g(e){return e>K?Math.pow(e,1/3):e/Z+V}function _(e){return e>q?e*e*e:Z*(e-V)}function b(e){return 255*(.0031308>=e?12.92*e:1.055*Math.pow(e,1/2.4)-.055)}function T(e){return(e/=255)<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4)}function P(e){if(e instanceof E)return new E(e.h,e.c,e.l,e.opacity);e instanceof v||(e=y(e));var t=Math.atan2(e.b,e.a)*F;return new E(0>t?t+360:t,Math.sqrt(e.a*e.a+e.b*e.b),e.l,e.opacity)}function x(e,t,n,r){return 1===arguments.length?P(e):new E(e,t,n,null==r?1:r)}function E(e,t,n,r){this.h=+e,this.c=+t,this.l=+n,this.opacity=+r}function O(e){if(e instanceof C)return new C(e.h,e.s,e.l,e.opacity);e instanceof l||(e=s(e));var t=e.r/255,n=e.g/255,r=e.b/255,o=(ne*r+ee*t-te*n)/(ne+ee-te),i=r-o,a=(Q*(n-o)-X*i)/$,u=Math.sqrt(a*a+i*i)/(Q*o*(1-o)),c=u?Math.atan2(a,i)*F-120:NaN;return new C(0>c?c+360:c,u,o,e.opacity)}function w(e,t,n,r){return 1===arguments.length?O(e):new C(e,t,n,null==r?1:r)}function C(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}var S=.7,M=1/S,A=/^#([0-9a-f]{3})$/,k=/^#([0-9a-f]{6})$/,L=/^rgb\(\s*([-+]?\d+)\s*,\s*([-+]?\d+)\s*,\s*([-+]?\d+)\s*\)$/,I=/^rgb\(\s*([-+]?\d+(?:\.\d+)?)%\s*,\s*([-+]?\d+(?:\.\d+)?)%\s*,\s*([-+]?\d+(?:\.\d+)?)%\s*\)$/,R=/^rgba\(\s*([-+]?\d+)\s*,\s*([-+]?\d+)\s*,\s*([-+]?\d+)\s*,\s*([-+]?\d+(?:\.\d+)?)\s*\)$/,D=/^rgba\(\s*([-+]?\d+(?:\.\d+)?)%\s*,\s*([-+]?\d+(?:\.\d+)?)%\s*,\s*([-+]?\d+(?:\.\d+)?)%\s*,\s*([-+]?\d+(?:\.\d+)?)\s*\)$/,N=/^hsl\(\s*([-+]?\d+(?:\.\d+)?)\s*,\s*([-+]?\d+(?:\.\d+)?)%\s*,\s*([-+]?\d+(?:\.\d+)?)%\s*\)$/,j=/^hsla\(\s*([-+]?\d+(?:\.\d+)?)\s*,\s*([-+]?\d+(?:\.\d+)?)%\s*,\s*([-+]?\d+(?:\.\d+)?)%\s*,\s*([-+]?\d+(?:\.\d+)?)\s*\)$/,U={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};t(r,o,{displayable:function(){return this.rgb().displayable()},toString:function(){return this.rgb()+""}}),t(l,u,n(r,{brighter:function(e){return e=null==e?M:Math.pow(M,e),new l(this.r*e,this.g*e,this.b*e,this.opacity)},darker:function(e){return e=null==e?S:Math.pow(S,e),new l(this.r*e,this.g*e,this.b*e,this.opacity)},rgb:function(){return this},displayable:function(){return 0<=this.r&&this.r<=255&&0<=this.g&&this.g<=255&&0<=this.b&&this.b<=255&&0<=this.opacity&&this.opacity<=1},toString:function(){var e=this.opacity;return e=isNaN(e)?1:Math.max(0,Math.min(1,e)),(1===e?"rgb(":"rgba(")+Math.max(0,Math.min(255,Math.round(this.r)||0))+", "+Math.max(0,Math.min(255,Math.round(this.g)||0))+", "+Math.max(0,Math.min(255,Math.round(this.b)||0))+(1===e?")":", "+e+")")}})),t(h,f,n(r,{brighter:function(e){return e=null==e?M:Math.pow(M,e),new h(this.h,this.s,this.l*e,this.opacity)},darker:function(e){return e=null==e?S:Math.pow(S,e),new h(this.h,this.s,this.l*e,this.opacity)},rgb:function(){var e=this.h%360+360*(this.h<0),t=isNaN(e)||isNaN(this.s)?0:this.s,n=this.l,r=n+(.5>n?n:1-n)*t,o=2*n-r;return new l(d(e>=240?e-240:e+120,o,r),d(e,o,r),d(120>e?e+240:e-120,o,r),this.opacity)},displayable:function(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1}}));var B=Math.PI/180,F=180/Math.PI,H=18,z=.95047,G=1,W=1.08883,V=4/29,q=6/29,Z=3*q*q,K=q*q*q;t(v,m,n(r,{brighter:function(e){return new v(this.l+H*(null==e?1:e),this.a,this.b,this.opacity)},darker:function(e){return new v(this.l-H*(null==e?1:e),this.a,this.b,this.opacity)},rgb:function(){var e=(this.l+16)/116,t=isNaN(this.a)?e:e+this.a/500,n=isNaN(this.b)?e:e-this.b/200;return e=G*_(e),t=z*_(t),n=W*_(n),new l(b(3.2404542*t-1.5371385*e-.4985314*n),b(-.969266*t+1.8760108*e+.041556*n),b(.0556434*t-.2040259*e+1.0572252*n),this.opacity)}})),t(E,x,n(r,{brighter:function(e){return new E(this.h,this.c,this.l+H*(null==e?1:e),this.opacity)},darker:function(e){return new E(this.h,this.c,this.l-H*(null==e?1:e),this.opacity)},rgb:function(){return y(this).rgb()}}));var Y=-.14861,J=1.78277,X=-.29227,$=-.90649,Q=1.97294,ee=Q*$,te=Q*J,ne=J*X-$*Y;t(C,w,n(r,{brighter:function(e){return e=null==e?M:Math.pow(M,e),new C(this.h,this.s,this.l*e,this.opacity)},darker:function(e){return e=null==e?S:Math.pow(S,e),new C(this.h,this.s,this.l*e,this.opacity)},rgb:function(){var e=isNaN(this.h)?0:(this.h+120)*B,t=+this.l,n=isNaN(this.s)?0:this.s*t*(1-t),r=Math.cos(e),o=Math.sin(e);return new l(255*(t+n*(Y*r+J*o)),255*(t+n*(X*r+$*o)),255*(t+n*(Q*r)),this.opacity)}}));var re="0.4.2";e.version=re,e.color=o,e.rgb=u,e.hsl=f,e.lab=m,e.hcl=x,e.cubehelix=w})},function(e,t,n){var r,o,i,a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol?"symbol":typeof e};!function(n,s){"object"===a(t)&&"undefined"!=typeof e?s(t):(o=[t],r=s,i="function"==typeof r?r.apply(t,o):r,!(void 0!==i&&(e.exports=i)))}(void 0,function(e){"use strict";function t(e,n,r,o){function s(t){return e(t=new Date(+t)),t}return s.floor=s,s.ceil=function(t){return e(t=new Date(t-1)),n(t,1),e(t),t},s.round=function(e){var t=s(e),n=s.ceil(e);return n-e>e-t?t:n},s.offset=function(e,t){return n(e=new Date(+e),null==t?1:Math.floor(t)),e},s.range=function(t,r,o){var i=[];if(t=s.ceil(t),o=null==o?1:Math.floor(o),!(r>t&&o>0))return i;do i.push(new Date(+t));while(n(t,o),e(t),r>t);return i},s.filter=function(r){return t(function(t){for(;e(t),!r(t);)t.setTime(t-1)},function(e,t){for(;--t>=0;)for(;n(e,1),!r(e););})},r&&(s.count=function(t,n){return i.setTime(+t),a.setTime(+n),e(i),e(a),Math.floor(r(i,a))},s.every=function(e){return e=Math.floor(e),isFinite(e)&&e>0?e>1?s.filter(o?function(t){return o(t)%e===0}:function(t){return s.count(0,t)%e===0}):s:null}),s}function n(e){return t(function(t){t.setHours(0,0,0,0),t.setDate(t.getDate()-(t.getDay()+7-e)%7)},function(e,t){e.setDate(e.getDate()+7*t)},function(e,t){return(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*l)/f})}function r(e){return t(function(t){t.setUTCHours(0,0,0,0),t.setUTCDate(t.getUTCDate()-(t.getUTCDay()+7-e)%7)},function(e,t){e.setUTCDate(e.getUTCDate()+7*t)},function(e,t){return(t-e)/f})}var o="0.2.6",i=new Date,a=new Date,s=t(function(){},function(e,t){e.setTime(+e+t)},function(e,t){return t-e});s.every=function(e){return e=Math.floor(e),isFinite(e)&&e>0?e>1?t(function(t){t.setTime(Math.floor(t/e)*e)},function(t,n){t.setTime(+t+n*e)},function(t,n){return(n-t)/e}):s:null};var u=1e3,l=6e4,c=36e5,p=864e5,f=6048e5,h=t(function(e){e.setTime(Math.floor(e/u)*u)},function(e,t){e.setTime(+e+t*u)},function(e,t){return(t-e)/u},function(e){return e.getUTCSeconds()}),d=t(function(e){e.setTime(Math.floor(e/l)*l)},function(e,t){e.setTime(+e+t*l)},function(e,t){return(t-e)/l},function(e){return e.getMinutes()}),y=t(function(e){var t=e.getTimezoneOffset()*l%c;0>t&&(t+=c),e.setTime(Math.floor((+e-t)/c)*c+t)},function(e,t){e.setTime(+e+t*c)},function(e,t){return(t-e)/c},function(e){return e.getHours()}),m=t(function(e){e.setHours(0,0,0,0)},function(e,t){e.setDate(e.getDate()+t)},function(e,t){return(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*l)/p},function(e){return e.getDate()-1}),v=n(0),g=n(1),_=n(2),b=n(3),T=n(4),P=n(5),x=n(6),E=t(function(e){e.setHours(0,0,0,0),e.setDate(1)},function(e,t){e.setMonth(e.getMonth()+t)},function(e,t){return t.getMonth()-e.getMonth()+12*(t.getFullYear()-e.getFullYear())},function(e){return e.getMonth()}),O=t(function(e){e.setHours(0,0,0,0),e.setMonth(0,1)},function(e,t){e.setFullYear(e.getFullYear()+t)},function(e,t){return t.getFullYear()-e.getFullYear()},function(e){return e.getFullYear()}),w=t(function(e){e.setUTCSeconds(0,0)},function(e,t){e.setTime(+e+t*l)},function(e,t){return(t-e)/l},function(e){return e.getUTCMinutes()}),C=t(function(e){e.setUTCMinutes(0,0,0)},function(e,t){e.setTime(+e+t*c)},function(e,t){return(t-e)/c},function(e){return e.getUTCHours()}),S=t(function(e){e.setUTCHours(0,0,0,0)},function(e,t){e.setUTCDate(e.getUTCDate()+t)},function(e,t){return(t-e)/p},function(e){return e.getUTCDate()-1}),M=r(0),A=r(1),k=r(2),L=r(3),I=r(4),R=r(5),D=r(6),N=t(function(e){e.setUTCHours(0,0,0,0),e.setUTCDate(1)},function(e,t){e.setUTCMonth(e.getUTCMonth()+t)},function(e,t){return t.getUTCMonth()-e.getUTCMonth()+12*(t.getUTCFullYear()-e.getUTCFullYear())},function(e){return e.getUTCMonth()}),j=t(function(e){e.setUTCHours(0,0,0,0),e.setUTCMonth(0,1)},function(e,t){e.setUTCFullYear(e.getUTCFullYear()+t)},function(e,t){return t.getUTCFullYear()-e.getUTCFullYear()},function(e){return e.getUTCFullYear()}),U=s.range,B=h.range,F=d.range,H=y.range,z=m.range,G=v.range,W=g.range,V=_.range,q=b.range,Z=T.range,K=P.range,Y=x.range,J=v.range,X=E.range,$=O.range,Q=U,ee=B,te=w.range,ne=C.range,re=S.range,oe=M.range,ie=A.range,ae=k.range,se=L.range,ue=I.range,le=R.range,ce=D.range,pe=M.range,fe=N.range,he=j.range;e.timeMilliseconds=U,e.timeSeconds=B,e.timeMinutes=F,e.timeHours=H,e.timeDays=z,e.timeSundays=G,e.timeMondays=W,e.timeTuesdays=V,e.timeWednesdays=q,e.timeThursdays=Z,e.timeFridays=K,e.timeSaturdays=Y,e.timeWeeks=J,e.timeMonths=X,e.timeYears=$,e.utcMilliseconds=Q,e.utcSeconds=ee,e.utcMinutes=te,e.utcHours=ne,e.utcDays=re,e.utcSundays=oe,e.utcMondays=ie,e.utcTuesdays=ae,e.utcWednesdays=se,e.utcThursdays=ue,e.utcFridays=le,e.utcSaturdays=ce,e.utcWeeks=pe,e.utcMonths=fe,e.utcYears=he,e.timeMillisecond=s,e.timeSecond=h,e.timeMinute=d,e.timeHour=y,e.timeDay=m,e.timeSunday=v,e.timeMonday=g,e.timeTuesday=_,e.timeWednesday=b,e.timeThursday=T,e.timeFriday=P,e.timeSaturday=x,e.timeWeek=v,e.timeMonth=E,e.timeYear=O,e.utcMillisecond=s,e.utcSecond=h,e.utcMinute=w,e.utcHour=C,e.utcDay=S,e.utcSunday=M,e.utcMonday=A,e.utcTuesday=k,e.utcWednesday=L,e.utcThursday=I,e.utcFriday=R,e.utcSaturday=D,e.utcWeek=M,e.utcMonth=N,e.utcYear=j,e.version=o,e.timeInterval=t,Object.defineProperty(e,"__esModule",{value:!0})})},function(e,t,n){"use strict";function r(e,t){for(var n=e.length;n--;)if(o(e[n][0],t))return n;return-1}var o=n(310);e.exports=r},function(e,t,n){"use strict";function r(e,t){var n=e[t];return o(n)?n:void 0}var o=n(735);e.exports=r},function(e,t,n){"use strict";var r=n(117),o=r(Object,"create");e.exports=o},function(e,t,n){"use strict";function r(e){return null!=e&&a(o(e))&&!i(e)}var o=n(704),i=n(10),a=n(120);e.exports=r},function(e,t){"use strict";function n(e){return"number"==typeof e&&e>-1&&e%1==0&&r>=e}var r=9007199254740991;e.exports=n},function(e,t,n){"use strict";var r=n(701),o=r();e.exports=o},function(e,t){"use strict";e.exports=function(e){return e.webpackPolyfill||(e.deprecate=function(){},e.paths=[],e.children=[],e.webpackPolyfill=1),e}},function(e,t,n){"use strict";var r=n(1),o=r.PropTypes,i=r.createClass({displayName:"Divider",propTypes:{columns:o.string},getDefaultProps:function(){return{columns:"sixteen wide column"}},getInitialState:function(){return{columns:this.props.columns+" wide column"}},render:function(){return r.createElement("div",{className:this.state.columns},r.createElement("div",{className:"ui divider"}))}});e.exports=i},function(e,t,n){"use strict";function r(e){var t=-1,n=e?e.length:0;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}var o=n(483),i=n(484),a=n(485),s=n(486),u=n(487);r.prototype.clear=o,r.prototype["delete"]=i,r.prototype.get=a,r.prototype.has=s,r.prototype.set=u,e.exports=r},function(e,t,n){"use strict";function r(e){this.__data__=new o(e)}var o=n(90),i=n(491),a=n(492),s=n(493),u=n(494),l=n(495);r.prototype.clear=i,r.prototype["delete"]=a,r.prototype.get=s,r.prototype.has=u,r.prototype.set=l,e.exports=r},function(e,t,n){"use strict";var r=n(42),o=r.Symbol;e.exports=o},function(e,t,n){"use strict";function r(e,t,n){var r=e[t];a.call(e,t)&&o(r,n)&&(void 0!==n||t in e)||(e[t]=n)}var o=n(136),i=Object.prototype,a=i.hasOwnProperty;e.exports=r},function(e,t,n){"use strict";function r(e,t,n,s,u){return e===t?!0:null==e||null==t||!i(e)&&!a(t)?e!==e&&t!==t:o(e,t,r,n,s,u)}var o=n(435),i=n(43),a=n(76);e.exports=r},function(e,t,n){"use strict";function r(e){var t=new e.constructor(e.byteLength);return new o(t).set(new o(e)),t}var o=n(200);e.exports=r},function(e,t,n){"use strict";function r(e,t,n,r){n||(n={});for(var i=-1,a=t.length;++i<a;){var s=t[i],u=r?r(n[s],e[s],s,n,e):e[s];o(n,s,u)}return n}var o=n(127);e.exports=r},function(e,t,n){"use strict";function r(e){return v.call(e)}var o=n(417),i=n(199),a=n(419),s=n(420),u=n(422),l=n(216),c="[object Map]",p="[object Object]",f="[object Promise]",h="[object Set]",d="[object WeakMap]",y="[object DataView]",m=Object.prototype,v=m.toString,g=l(o),_=l(i),b=l(a),T=l(s),P=l(u);(o&&r(new o(new ArrayBuffer(1)))!=y||i&&r(new i)!=c||a&&r(a.resolve())!=f||s&&r(new s)!=h||u&&r(new u)!=d)&&(r=function(e){var t=v.call(e),n=t==p?e.constructor:void 0,r=n?l(n):void 0;if(r)switch(r){case g:return y;case _:return c;case b:return f;case T:return h;case P:return d}return t}),e.exports=r},function(e,t){"use strict";function n(e){var t=!1;if(null!=e&&"function"!=typeof e.toString)try{t=!!(e+"")}catch(n){}return t}e.exports=n},function(e,t){"use strict";function n(e,t){return t=null==t?r:t,!!t&&("number"==typeof e||o.test(e))&&e>-1&&e%1==0&&t>e}var r=9007199254740991,o=/^(?:0|[1-9]\d*)$/;e.exports=n},function(e,t){"use strict";function n(e){var t=e&&e.constructor,n="function"==typeof t&&t.prototype||r;return e===n}var r=Object.prototype;e.exports=n},function(e,t){"use strict";function n(e){var t=-1,n=Array(e.size);return e.forEach(function(e,r){n[++t]=[r,e]}),n}e.exports=n},function(e,t){"use strict";function n(e,t){return e===t||e!==e&&t!==t}e.exports=n},function(e,t,n){"use strict";function r(e){return o(e)&&s.call(e,"callee")&&(!l.call(e,"callee")||u.call(e)==i)}var o=n(504),i="[object Arguments]",a=Object.prototype,s=a.hasOwnProperty,u=a.toString,l=a.propertyIsEnumerable;e.exports=r},function(e,t,n){"use strict";function r(e){var t=o(e)?u.call(e):"";return t==i||t==a}var o=n(43),i="[object Function]",a="[object GeneratorFunction]",s=Object.prototype,u=s.toString;e.exports=r},function(e,t){"use strict";function n(e,t,n){function r(){return s=!0,u?void(c=[].concat(o.call(arguments))):void n.apply(this,arguments)}function i(){if(!s&&(l=!0,!u)){for(u=!0;!s&&e>a&&l;)l=!1,t.call(this,a++,i,r);return u=!1,s?void n.apply(this,c):void(a>=e&&l&&(s=!0,n()))}}var a=0,s=!1,u=!1,l=!1,c=void 0;i()}function r(e,t,n){function r(e,t,r){a||(t?(a=!0,n(t)):(i[e]=r,a=++s===o,a&&n(null,i)))}var o=e.length,i=[];if(0===o)return n(null,i);var a=!1,s=0;e.forEach(function(e,n){t(e,n,function(e,t){r(n,e,t)})})}t.__esModule=!0;var o=Array.prototype.slice;t.loopAsync=n,t.mapAsync=r},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol?"symbol":typeof e};t.__esModule=!0;var i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},a=n(21),s=r(a),u=n(1),l=r(u),c=n(230),p=(r(c),n(544)),f=r(p),h=n(45),d=n(13),y=(r(d),l["default"].PropTypes),m=y.array,v=y.func,g=y.object,_=l["default"].createClass({displayName:"RouterContext",propTypes:{history:g,router:g.isRequired,location:g.isRequired,routes:m.isRequired,params:g.isRequired,components:m.isRequired,createElement:v.isRequired},getDefaultProps:function(){return{createElement:l["default"].createElement}},childContextTypes:{history:g,location:g.isRequired,router:g.isRequired},getChildContext:function(){var e=this.props,t=e.router,n=e.history,r=e.location;return t||(t=i({},n,{setRouteLeaveHook:n.listenBeforeLeavingRoute}),delete t.listenBeforeLeavingRoute),{history:n,location:r,router:t}},createElement:function(e,t){return null==e?null:this.props.createElement(e,t)},render:function(){var e=this,t=this.props,n=t.history,r=t.location,a=t.routes,u=t.params,c=t.components,p=null;return c&&(p=c.reduceRight(function(t,s,l){if(null==s)return t;var c=a[l],p=f["default"](c,u),d={history:n,location:r,params:u,route:c,routeParams:p,routes:a};if(h.isReactChildren(t))d.children=t;else if(t)for(var y in t)t.hasOwnProperty(y)&&(d[y]=t[y]);if("object"===("undefined"==typeof s?"undefined":o(s))){var m={};for(var v in s)s.hasOwnProperty(v)&&(m[v]=e.createElement(s[v],i({key:v},d)));return m}return e.createElement(s,d)},p)),null===p||p===!1||l["default"].isValidElement(p)?void 0:s["default"](!1),p}});t["default"]=_,e.exports=t["default"]},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(e){for(var t in e)if(e.hasOwnProperty(t))return!0;
  return!1}function i(e,t){function n(t){var n=arguments.length<=1||void 0===arguments[1]?!1:arguments[1],r=arguments.length<=2||void 0===arguments[2]?null:arguments[2],o=void 0;return n&&n!==!0||null!==r?(t={pathname:t,query:n},o=r||!1):(t=e.createLocation(t),o=n),h["default"](t,o,T.location,T.routes,T.params)}function r(t){return e.createLocation(t,u.REPLACE)}function i(e,n){P&&P.location===e?s(P,n):v["default"](t,e,function(t,r){t?n(t):r?s(a({},r,{location:e}),n):n()})}function s(e,t){var n=c["default"](T,e),o=n.leaveRoutes,i=n.enterRoutes;p.runLeaveHooks(o),o.filter(function(e){return-1===i.indexOf(e)}).forEach(g),p.runEnterHooks(i,e,function(n,o){n?t(n):o?t(null,r(o)):y["default"](e,function(n,r){n?t(n):t(null,null,T=a({},e,{components:r}))})})}function l(e){var t=arguments.length<=1||void 0===arguments[1]?!0:arguments[1];return e.__id__||t&&(e.__id__=x++)}function f(e){return e.reduce(function(e,t){return e.push.apply(e,E[l(t)]),e},[])}function d(e,n){v["default"](t,e,function(t,r){if(null==r)return void n();P=a({},r,{location:e});for(var o=f(c["default"](T,P).leaveRoutes),i=void 0,s=0,u=o.length;null==i&&u>s;++s)i=o[s](e);n(i)})}function m(){if(T.routes){for(var e=f(T.routes),t=void 0,n=0,r=e.length;"string"!=typeof t&&r>n;++n)t=e[n]();return t}}function g(e){var t=l(e,!1);t&&(delete E[t],o(E)||(O&&(O(),O=null),w&&(w(),w=null)))}function _(t,n){var r=l(t),i=E[r];if(i)-1===i.indexOf(n)&&i.push(n);else{var a=!o(E);E[r]=[n],a&&(O=e.listenBefore(d),e.listenBeforeUnload&&(w=e.listenBeforeUnload(m)))}return function(){var e=E[r];if(e){var o=e.filter(function(e){return e!==n});0===o.length?g(t):E[r]=o}}}function b(t){return e.listen(function(n){T.location===n?t(null,T):i(n,function(n,r,o){n?t(n):r?e.transitionTo(r):o&&t(null,o)})})}var T={},P=void 0,x=1,E={},O=void 0,w=void 0;return{isActive:n,match:i,listenBeforeLeavingRoute:_,listen:b}}t.__esModule=!0;var a=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};t["default"]=i;var s=n(13),u=(r(s),n(65)),l=n(542),c=r(l),p=n(540),f=n(546),h=r(f),d=n(543),y=r(d),m=n(548),v=r(m);e.exports=t["default"]},function(e,t){"use strict";function n(e,t,n){e.addEventListener?e.addEventListener(t,n,!1):e.attachEvent("on"+t,n)}function r(e,t,n){e.removeEventListener?e.removeEventListener(t,n,!1):e.detachEvent("on"+t,n)}function o(){return window.location.href.split("#")[1]||""}function i(e){window.location.replace(window.location.pathname+window.location.search+"#"+e)}function a(){return window.location.pathname+window.location.search+window.location.hash}function s(e){e&&window.history.go(e)}function u(e,t){t(window.confirm(e))}function l(){var e=navigator.userAgent;return-1===e.indexOf("Android 2.")&&-1===e.indexOf("Android 4.0")||-1===e.indexOf("Mobile Safari")||-1!==e.indexOf("Chrome")||-1!==e.indexOf("Windows Phone")?window.history&&"pushState"in window.history:!1}function c(){var e=navigator.userAgent;return-1===e.indexOf("Firefox")}t.__esModule=!0,t.addEventListener=n,t.removeEventListener=r,t.getHashPath=o,t.replaceHashPath=i,t.getWindowPath=a,t.go=s,t.getUserConfirmation=u,t.supportsHistory=l,t.supportsGoWithoutReloadUsingHash=c},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(e,t){return function(){return e.apply(this,arguments)}}t.__esModule=!0;var i=n(31);r(i);t["default"]=o,e.exports=t["default"]},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(e,t,n){var r=e(t,n);e.length<2&&n(r)}t.__esModule=!0;var i=n(31);r(i);t["default"]=o,e.exports=t["default"]},function(e,t,n){"use strict";function r(){this._callbacks=null,this._contexts=null}var o=n(46),i=n(6),a=n(3);i(r.prototype,{enqueue:function(e,t){this._callbacks=this._callbacks||[],this._contexts=this._contexts||[],this._callbacks.push(e),this._contexts.push(t)},notifyAll:function(){var e=this._callbacks,t=this._contexts;if(e){e.length!==t.length?a(!1):void 0,this._callbacks=null,this._contexts=null;for(var n=0;n<e.length;n++)e[n].call(t[n]);e.length=0,t.length=0}},reset:function(){this._callbacks=null,this._contexts=null},destructor:function(){this.reset()}}),o.addPoolingTo(r),e.exports=r},function(e,t,n){"use strict";function r(e){return c.hasOwnProperty(e)?!0:l.hasOwnProperty(e)?!1:u.test(e)?(c[e]=!0,!0):(l[e]=!0,!1)}function o(e,t){return null==t||e.hasBooleanValue&&!t||e.hasNumericValue&&isNaN(t)||e.hasPositiveNumericValue&&1>t||e.hasOverloadedBooleanValue&&t===!1}var i=n(66),a=n(25),s=n(611),u=(n(7),/^[a-zA-Z_][\w\.\-]*$/),l={},c={},p={createMarkupForID:function(e){return i.ID_ATTRIBUTE_NAME+"="+s(e)},setAttributeForID:function(e,t){e.setAttribute(i.ID_ATTRIBUTE_NAME,t)},createMarkupForProperty:function(e,t){var n=i.properties.hasOwnProperty(e)?i.properties[e]:null;if(n){if(o(n,t))return"";var r=n.attributeName;return n.hasBooleanValue||n.hasOverloadedBooleanValue&&t===!0?r+'=""':r+"="+s(t)}return i.isCustomAttribute(e)?null==t?"":e+"="+s(t):null},createMarkupForCustomAttribute:function(e,t){return r(e)&&null!=t?e+"="+s(t):""},setValueForProperty:function(e,t,n){var r=i.properties.hasOwnProperty(t)?i.properties[t]:null;if(r){var a=r.mutationMethod;if(a)a(e,n);else if(o(r,n))this.deleteValueForProperty(e,t);else if(r.mustUseAttribute){var s=r.attributeName,u=r.attributeNamespace;u?e.setAttributeNS(u,s,""+n):r.hasBooleanValue||r.hasOverloadedBooleanValue&&n===!0?e.setAttribute(s,""):e.setAttribute(s,""+n)}else{var l=r.propertyName;r.hasSideEffects&&""+e[l]==""+n||(e[l]=n)}}else i.isCustomAttribute(t)&&p.setValueForAttribute(e,t,n)},setValueForAttribute:function(e,t,n){r(t)&&(null==n?e.removeAttribute(t):e.setAttribute(t,""+n))},deleteValueForProperty:function(e,t){var n=i.properties.hasOwnProperty(t)?i.properties[t]:null;if(n){var r=n.mutationMethod;if(r)r(e,void 0);else if(n.mustUseAttribute)e.removeAttribute(n.attributeName);else{var o=n.propertyName,a=i.getDefaultValueForProperty(e.nodeName,o);n.hasSideEffects&&""+e[o]===a||(e[o]=a)}}else i.isCustomAttribute(t)&&e.removeAttribute(t)}};a.measureMethods(p,"DOMPropertyOperations",{setValueForProperty:"setValueForProperty",setValueForAttribute:"setValueForAttribute",deleteValueForProperty:"deleteValueForProperty"}),e.exports=p},function(e,t,n){"use strict";function r(e){null!=e.checkedLink&&null!=e.valueLink?l(!1):void 0}function o(e){r(e),null!=e.value||null!=e.onChange?l(!1):void 0}function i(e){r(e),null!=e.checked||null!=e.onChange?l(!1):void 0}function a(e){if(e){var t=e.getName();if(t)return" Check the render method of `"+t+"`."}return""}var s=n(261),u=n(102),l=n(3),c=(n(7),{button:!0,checkbox:!0,image:!0,hidden:!0,radio:!0,reset:!0,submit:!0}),p={value:function(e,t,n){return!e[t]||c[e.type]||e.onChange||e.readOnly||e.disabled?null:new Error("You provided a `value` prop to a form field without an `onChange` handler. This will render a read-only field. If the field should be mutable use `defaultValue`. Otherwise, set either `onChange` or `readOnly`.")},checked:function(e,t,n){return!e[t]||e.onChange||e.readOnly||e.disabled?null:new Error("You provided a `checked` prop to a form field without an `onChange` handler. This will render a read-only field. If the field should be mutable use `defaultChecked`. Otherwise, set either `onChange` or `readOnly`.")},onChange:s.func},f={},h={checkPropTypes:function(e,t,n){for(var r in p){if(p.hasOwnProperty(r))var o=p[r](t,r,e,u.prop);if(o instanceof Error&&!(o.message in f)){f[o.message]=!0;a(n)}}},getValue:function(e){return e.valueLink?(o(e),e.valueLink.value):e.value},getChecked:function(e){return e.checkedLink?(i(e),e.checkedLink.value):e.checked},executeOnChange:function(e,t){return e.valueLink?(o(e),e.valueLink.requestChange(t.target.value)):e.checkedLink?(i(e),e.checkedLink.requestChange(t.target.checked)):e.onChange?e.onChange.call(void 0,t):void 0}};e.exports=h},function(e,t,n){"use strict";var r=n(150),o=n(15),i={processChildrenUpdates:r.dangerouslyProcessChildrenUpdates,replaceNodeWithMarkupByID:r.dangerouslyReplaceNodeWithMarkupByID,unmountIDFromEnvironment:function(e){o.purgeID(e)}};e.exports=i},function(e,t,n){"use strict";var r=n(3),o=!1,i={unmountIDFromEnvironment:null,replaceNodeWithMarkupByID:null,processChildrenUpdates:null,injection:{injectEnvironment:function(e){o?r(!1):void 0,i.unmountIDFromEnvironment=e.unmountIDFromEnvironment,i.replaceNodeWithMarkupByID=e.replaceNodeWithMarkupByID,i.processChildrenUpdates=e.processChildrenUpdates,o=!0}}};e.exports=i},function(e,t,n){"use strict";var r=n(239),o=n(146),i=n(15),a=n(25),s=n(3),u={dangerouslySetInnerHTML:"`dangerouslySetInnerHTML` must be set using `updateInnerHTMLByID()`.",style:"`style` must be set using `updateStylesByID()`."},l={updatePropertyByID:function(e,t,n){var r=i.getNode(e);u.hasOwnProperty(t)?s(!1):void 0,null!=n?o.setValueForProperty(r,t,n):o.deleteValueForProperty(r,t)},dangerouslyReplaceNodeWithMarkupByID:function(e,t){var n=i.getNode(e);r.dangerouslyReplaceNodeWithMarkup(n,t)},dangerouslyProcessChildrenUpdates:function(e,t){for(var n=0;n<e.length;n++)e[n].parentNode=i.getNode(e[n].parentID);r.processUpdates(e,t)}};a.measureMethods(l,"ReactDOMIDOperations",{dangerouslyReplaceNodeWithMarkupByID:"dangerouslyReplaceNodeWithMarkupByID",dangerouslyProcessChildrenUpdates:"dangerouslyProcessChildrenUpdates"}),e.exports=l},function(e,t,n){"use strict";function r(e){s.enqueueUpdate(e)}function o(e,t){var n=a.get(e);return n?n:null}var i=(n(35),n(19)),a=n(79),s=n(26),u=n(6),l=n(3),c=(n(7),{isMounted:function(e){var t=a.get(e);return t?!!t._renderedComponent:!1},enqueueCallback:function(e,t){"function"!=typeof t?l(!1):void 0;var n=o(e);return n?(n._pendingCallbacks?n._pendingCallbacks.push(t):n._pendingCallbacks=[t],void r(n)):null},enqueueCallbackInternal:function(e,t){"function"!=typeof t?l(!1):void 0,e._pendingCallbacks?e._pendingCallbacks.push(t):e._pendingCallbacks=[t],r(e)},enqueueForceUpdate:function(e){var t=o(e,"forceUpdate");t&&(t._pendingForceUpdate=!0,r(t))},enqueueReplaceState:function(e,t){var n=o(e,"replaceState");n&&(n._pendingStateQueue=[t],n._pendingReplaceState=!0,r(n))},enqueueSetState:function(e,t){var n=o(e,"setState");if(n){var i=n._pendingStateQueue||(n._pendingStateQueue=[]);i.push(t),r(n)}},enqueueSetProps:function(e,t){var n=o(e,"setProps");n&&c.enqueueSetPropsInternal(n,t)},enqueueSetPropsInternal:function(e,t){var n=e._topLevelWrapper;n?void 0:l(!1);var o=n._pendingElement||n._currentElement,a=o.props,s=u({},a.props,t);n._pendingElement=i.cloneAndReplaceProps(o,i.cloneAndReplaceProps(a,s)),r(n)},enqueueReplaceProps:function(e,t){var n=o(e,"replaceProps");n&&c.enqueueReplacePropsInternal(n,t)},enqueueReplacePropsInternal:function(e,t){var n=e._topLevelWrapper;n?void 0:l(!1);var o=n._pendingElement||n._currentElement,a=o.props;n._pendingElement=i.cloneAndReplaceProps(o,i.cloneAndReplaceProps(a,t)),r(n)},enqueueElementInternal:function(e,t){e._pendingElement=t,r(e)}});e.exports=c},function(e,t){"use strict";e.exports="0.14.8"},function(e,t,n){"use strict";function r(e){return null==e?null:1===e.nodeType?e:o.has(e)?i.getNodeFromInstance(e):(null!=e.render&&"function"==typeof e.render?a(!1):void 0,void a(!1))}var o=(n(35),n(79)),i=n(15),a=n(3);n(7);e.exports=r},function(e,t){"use strict";function n(e){var t,n=e.keyCode;return"charCode"in e?(t=e.charCode,0===t&&13===n&&(t=13)):t=n,t>=32||13===t?t:0}e.exports=n},function(e,t){"use strict";function n(e){var t=this,n=t.nativeEvent;if(n.getModifierState)return n.getModifierState(e);var r=o[e];return r?!!n[r]:!1}function r(e){return n}var o={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};e.exports=r},function(e,t){"use strict";function n(e){var t=e.target||e.srcElement||window;return 3===t.nodeType?t.parentNode:t}e.exports=n},function(e,t){"use strict";function n(e){var t=e&&(r&&e[r]||e[o]);return"function"==typeof t?t:void 0}var r="function"==typeof Symbol&&Symbol.iterator,o="@@iterator";e.exports=n},function(e,t,n){"use strict";function r(e){return"function"==typeof e&&"undefined"!=typeof e.prototype&&"function"==typeof e.prototype.mountComponent&&"function"==typeof e.prototype.receiveComponent}function o(e){var t;if(null===e||e===!1)t=new s(o);else if("object"===("undefined"==typeof e?"undefined":i(e))){var n=e;!n||"function"!=typeof n.type&&"string"!=typeof n.type?c(!1):void 0,t="string"==typeof n.type?u.createInternalComponent(n):r(n.type)?new n.type(n):new p}else"string"==typeof e||"number"==typeof e?t=u.createInstanceForText(e):c(!1);return t.construct(e),t._mountIndex=0,t._mountImage=null,t}var i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol?"symbol":typeof e},a=n(572),s=n(253),u=n(259),l=n(6),c=n(3),p=(n(7),function(){});l(p.prototype,a.Mixin,{_instantiateReactComponent:o}),e.exports=o},function(e,t,n){"use strict";/**
  	 * Checks if an event is supported in the current execution environment.
  	 *
  	 * NOTE: This will not work correctly for non-generic events such as `change`,
  	 * `reset`, `load`, `error`, and `select`.
  	 *
  	 * Borrows from Modernizr.
  	 *
  	 * @param {string} eventNameSuffix Event name, e.g. "click".
  	 * @param {?boolean} capture Check if the capture phase is supported.
  	 * @return {boolean} True if the event is supported.
  	 * @internal
  	 * @license Modernizr 3.0.0pre (Custom Build) | MIT
  	 */
  function r(e,t){if(!i.canUseDOM||t&&!("addEventListener"in document))return!1;var n="on"+e,r=n in document;if(!r){var a=document.createElement("div");a.setAttribute(n,"return;"),r="function"==typeof a[n]}return!r&&o&&"wheel"===e&&(r=document.implementation.hasFeature("Events.wheel","3.0")),r}var o,i=n(14);i.canUseDOM&&(o=document.implementation&&document.implementation.hasFeature&&document.implementation.hasFeature("","")!==!0),e.exports=r},function(e,t,n){"use strict";var r=n(14),o=n(106),i=n(107),a=function(e,t){e.textContent=t};r.canUseDOM&&("textContent"in document.documentElement||(a=function(e,t){i(e,o(t))})),e.exports=a},function(e,t){"use strict";function n(e,t){var n=null===e||e===!1,o=null===t||t===!1;if(n||o)return n===o;var i="undefined"==typeof e?"undefined":r(e),a="undefined"==typeof t?"undefined":r(t);return"string"===i||"number"===i?"string"===a||"number"===a:"object"===a&&e.type===t.type&&e.key===t.key}var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol?"symbol":typeof e};e.exports=n},function(e,t,n){"use strict";function r(e){return m[e]}function o(e,t){return e&&null!=e.key?a(e.key):t.toString(36)}function i(e){return(""+e).replace(v,r)}function a(e){return"$"+i(e)}function s(e,t,n,r){var i="undefined"==typeof e?"undefined":l(e);if("undefined"!==i&&"boolean"!==i||(e=null),null===e||"string"===i||"number"===i||c.isValidElement(e))return n(r,e,""===t?d+o(e,0):t),1;var u,p,m=0,v=""===t?d:t+y;if(Array.isArray(e))for(var g=0;g<e.length;g++)u=e[g],p=v+o(u,g),m+=s(u,p,n,r);else{var _=f(e);if(_){var b,T=_.call(e);if(_!==e.entries)for(var P=0;!(b=T.next()).done;)u=b.value,p=v+o(u,P++),m+=s(u,p,n,r);else for(;!(b=T.next()).done;){var x=b.value;x&&(u=x[1],p=v+a(x[0])+y+o(u,0),m+=s(u,p,n,r))}}else if("object"===i){String(e);h(!1)}}return m}function u(e,t,n){return null==e?0:s(e,"",t,n)}var l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol?"symbol":typeof e},c=(n(35),n(19)),p=n(67),f=n(157),h=n(3),d=(n(7),p.SEPARATOR),y=":",m={"=":"=0",".":"=1",":":"=2"},v=/[=.:]/g;e.exports=u},function(e,t,n){"use strict";var r=(n(6),n(27)),o=(n(7),r);e.exports=o},function(e,t){"use strict";function n(e,t){if(e===t)return!0;if("object"!==("undefined"==typeof e?"undefined":r(e))||null===e||"object"!==("undefined"==typeof t?"undefined":r(t))||null===t)return!1;var n=Object.keys(e),i=Object.keys(t);if(n.length!==i.length)return!1;for(var a=o.bind(t),s=0;s<n.length;s++)if(!a(n[s])||e[n[s]]!==t[n[s]])return!1;return!0}var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol?"symbol":typeof e},o=Object.prototype.hasOwnProperty;e.exports=n},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==("undefined"==typeof t?"undefined":s(t))&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+("undefined"==typeof t?"undefined":s(t)));e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol?"symbol":typeof e};Object.defineProperty(t,"__esModule",{value:!0});var u,l,c,p=n(16),f=r(p),h=n(10),d=r(h),y=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},m=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),v=n(1),g=r(v),_=n(8),b=r(_),T=n(48),P=r(T),x=n(38),E=r(x),O=n(9),w=r(O),C=n(40),S=r(C),M=n(2),A=r(M),k=n(4),L=(0,A["default"])((c=l=function(e){function t(e,n){o(this,t);var r=i(this,Object.getPrototypeOf(t).call(this,e,n));r.handleAnimationEnd=function(){r.setState({isAnimationFinished:!0})};var a=e.points;return r.state={isAnimationFinished:!a||a.length<=1},r}return a(t,e),m(t,[{key:"renderCurve",value:function(e,t){var n=this.props,r=n.layout,o=n.type,i=n.curve,a={points:this.props.points};return e&&(a={points:e,opacity:t}),g["default"].createElement("g",null,i&&g["default"].createElement(P["default"],y({},(0,k.getPresentationAttributes)(this.props),{className:"recharts-area-curve",layout:r,type:o,fill:"none"},a)),g["default"].createElement(P["default"],y({},this.props,{stroke:"none",className:"recharts-area-area"},a)))}},{key:"renderAreaCurve",value:function(){var e=this,t=this.props,n=t.points,r=(t.type,t.layout),o=t.baseLine,i=(t.curve,t.isAnimationActive),a=t.animationBegin,s=t.animationDuration,u=t.animationEasing,l={isActive:i,begin:a,easing:u,duration:s,onAnimationEnd:this.handleAnimationEnd};if(!o||!o.length){var c="vertical"===r?"left center":"center bottom",p="vertical"===r?"scaleX":"scaleY";return g["default"].createElement(S["default"],y({attributeName:"transform",from:p+"(0)",to:p+"(1)"},l),g["default"].createElement("g",{style:{transformOrigin:c}},this.renderCurve()))}return g["default"].createElement(S["default"],y({from:{alpha:0},to:{alpha:1}},l),function(t){var r=t.alpha;return e.renderCurve(n.map(function(e,t){var n=e.x,i=e.y;return{x:n,y:(i-o[t].y)*r+o[t].y}}),+(r>0))})}},{key:"renderDotItem",value:function(e,t){var n=void 0;return n=g["default"].isValidElement(e)?g["default"].cloneElement(e,t):(0,d["default"])(e)?e(t):g["default"].createElement(E["default"],y({},t,{className:"recharts-area-dot"}))}},{key:"renderDots",value:function(){var e=this,t=this.props.isAnimationActive;if(t&&!this.state.isAnimationFinished)return null;var n=this.props,r=n.dot,o=n.points,i=(0,k.getPresentationAttributes)(this.props),a=(0,k.getPresentationAttributes)(r),s=o.map(function(t,n){var o=y({key:"dot-"+n,r:3},i,a,{cx:t.x,cy:t.y,index:n,playload:t});return e.renderDotItem(r,o)});return g["default"].createElement(w["default"],{className:"recharts-area-dots"},s)}},{key:"renderLabelItem",value:function(e,t,n){var r=void 0;return r=g["default"].isValidElement(e)?g["default"].cloneElement(e,t):(0,d["default"])(e)?e(t):g["default"].createElement("text",y({},t,{className:"recharts-area-label"}),(0,f["default"])(n)?n[1]:n)}},{key:"renderLabels",value:function(){var e=this,t=this.props.isAnimationActive;if(t&&!this.state.isAnimationFinished)return null;var n=this.props,r=n.points,o=n.label,i=(0,k.getPresentationAttributes)(this.props),a=(0,k.getPresentationAttributes)(o),s=r.map(function(t,n){var r=y({textAnchor:"middle"},t,i,a,{index:n,key:"label-"+n,payload:t});return e.renderLabelItem(o,r,t.value)});return g["default"].createElement(w["default"],{className:"recharts-area-labels"},s)}},{key:"render",value:function(){var e=this.props,t=e.dot,n=e.label,r=e.points,o=e.className;if(!r||!r.length)return null;var i=1===r.length,a=(0,b["default"])("recharts-area",o);return g["default"].createElement(w["default"],{className:a},!i&&this.renderAreaCurve(),(t||i)&&this.renderDots(),n&&this.renderLabels())}}]),t}(v.Component),l.displayName="Area",l.propTypes=y({},k.PRESENTATION_ATTRIBUTES,{className:v.PropTypes.string,type:v.PropTypes.oneOf(["linear","monotone","step","stepBefore","stepAfter"]),unit:v.PropTypes.oneOfType([v.PropTypes.string,v.PropTypes.number]),name:v.PropTypes.oneOfType([v.PropTypes.string,v.PropTypes.number]),dataKey:v.PropTypes.oneOfType([v.PropTypes.string,v.PropTypes.number]).isRequired,yAxisId:v.PropTypes.oneOfType([v.PropTypes.string,v.PropTypes.number]),xAxisId:v.PropTypes.oneOfType([v.PropTypes.string,v.PropTypes.number]),stackId:v.PropTypes.oneOfType([v.PropTypes.number,v.PropTypes.string]),legendType:v.PropTypes.string,formatter:v.PropTypes.func,activeDot:v.PropTypes.oneOfType([v.PropTypes.object,v.PropTypes.element,v.PropTypes.func,v.PropTypes.bool]),dot:v.PropTypes.oneOfType([v.PropTypes.func,v.PropTypes.element,v.PropTypes.object,v.PropTypes.bool]),label:v.PropTypes.oneOfType([v.PropTypes.func,v.PropTypes.element,v.PropTypes.object,v.PropTypes.bool]),curve:v.PropTypes.bool,layout:v.PropTypes.oneOf(["horizontal","vertical"]),baseLine:v.PropTypes.oneOfType([v.PropTypes.number,v.PropTypes.array]),points:v.PropTypes.arrayOf(v.PropTypes.shape({x:v.PropTypes.number,y:v.PropTypes.number,value:v.PropTypes.oneOfType([v.PropTypes.number,v.PropTypes.array])})),onMouseEnter:v.PropTypes.func,onMouseLeave:v.PropTypes.func,onClick:v.PropTypes.func,isAnimationActive:v.PropTypes.bool,animationBegin:v.PropTypes.number,animationDuration:v.PropTypes.number,animationEasing:v.PropTypes.oneOf(["ease","ease-in","ease-out","ease-in-out","linear"])}),l.defaultProps={strokeWidth:1,stroke:"#3182bd",fill:"#3182bd",fillOpacity:.6,xAxisId:0,yAxisId:0,legendType:"line",points:[],dot:!1,label:!1,curve:!0,activeDot:!0,isAnimationActive:!0,animationBegin:0,animationDuration:1500,animationEasing:"ease"},u=c))||u;t["default"]=L},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==("undefined"==typeof t?"undefined":s(t))&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+("undefined"==typeof t?"undefined":s(t)));e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol?"symbol":typeof e};Object.defineProperty(t,"__esModule",{value:!0});var u,l,c,p=n(16),f=r(p),h=n(10),d=r(h),y=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},m=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),v=n(1),g=r(v),_=n(8),b=r(_),T=n(40),P=r(T),x=n(82),E=r(x),O=n(9),w=r(O),C=n(2),S=r(C),M=n(4),A=(0,S["default"])((c=l=function(e){function t(){var e,n,r,a;o(this,t);for(var s=arguments.length,u=Array(s),l=0;s>l;l++)u[l]=arguments[l];return n=r=i(this,(e=Object.getPrototypeOf(t)).call.apply(e,[this].concat(u))),r.state={isAnimationFinished:!1},r.handleAnimationEnd=function(){r.setState({isAnimationFinished:!0})},a=n,i(r,a)}return a(t,e),m(t,[{key:"renderRectangle",value:function(e,t){var n=void 0;return n=g["default"].isValidElement(e)?g["default"].cloneElement(e,t):(0,d["default"])(e)?e(t):g["default"].createElement(E["default"],y({},t,{className:"recharts-bar-rectangle"}))}},{key:"renderRectangles",value:function(){var e=this,t=this.props,n=t.data,r=t.shape,o=t.layout,i=t.isAnimationActive,a=t.animationBegin,s=t.animationDuration,u=t.animationEasing,l=(0,M.getPresentationAttributes)(this.props),c=function(e){return{transform:"scale"+("vertical"===o?"X":"Y")+"("+(e?0:1)+")"}};return n.map(function(t,n){var p=t.width,f=t.height,h=y({},l,t,{index:n}),d="";return d="vertical"===o?p>0?"left center":"right center":f>0?"center bottom":"center top",g["default"].createElement(P["default"],{begin:a,duration:s,isActive:i,easing:u,from:c(!0),to:c(!1),key:"rectangle-"+n,onAnimationEnd:e.handleAnimationEnd},g["default"].createElement("g",{style:{transformOrigin:d}},e.renderRectangle(r,h)))})}},{key:"renderLabelItem",value:function(e,t,n){var r=void 0;return r=g["default"].isValidElement(e)?g["default"].cloneElement(e,t):(0,d["default"])(e)?e(t):g["default"].createElement("text",y({},t,{className:"recharts-bar-label"}),(0,f["default"])(n)?n[1]:n)}},{key:"renderLabels",value:function(){var e=this,t=this.props.isAnimationActive;if(t&&!this.state.isAnimationFinished)return null;var n=this.props,r=n.data,o=n.label,i=n.layout,a=(0,M.getPresentationAttributes)(this.props),s=(0,M.getPresentationAttributes)(o),u="vertical"===i?"start":"middle",l=r.map(function(t,n){var r=void 0,l=void 0;"vertical"===i?(r=5+t.x+t.width,l=5+t.y+t.height/2):r=t.x+t.width/2;var c=y({textAnchor:u},a,t,s,{x:r||0,y:l||0,index:n,key:"label-"+n,payload:t}),p=t.value;return o===!0&&t.value&&c.label&&(p=c.label),e.renderLabelItem(o,c,p)});return g["default"].createElement(w["default"],{className:"recharts-bar-labels"},l)}},{key:"render",value:function(){var e=this.props,t=e.data,n=e.className,r=e.label;if(!t||!t.length)return null;var o=(0,b["default"])("recharts-bar",n);return g["default"].createElement(w["default"],{className:o},g["default"].createElement(w["default"],{className:"recharts-bar-rectangles"},this.renderRectangles()),r&&g["default"].createElement(w["default"],{className:"recharts-bar-rectangle-labels"},this.renderLabels()))}}]),t}(v.Component),l.displayName="Bar",l.propTypes=y({},M.PRESENTATION_ATTRIBUTES,{className:v.PropTypes.string,layout:v.PropTypes.string,xAxisId:v.PropTypes.oneOfType([v.PropTypes.number,v.PropTypes.string]),yAxisId:v.PropTypes.oneOfType([v.PropTypes.number,v.PropTypes.string]),stackId:v.PropTypes.oneOfType([v.PropTypes.number,v.PropTypes.string]),barSize:v.PropTypes.number,unit:v.PropTypes.oneOfType([v.PropTypes.string,v.PropTypes.number]),name:v.PropTypes.oneOfType([v.PropTypes.string,v.PropTypes.number]),dataKey:v.PropTypes.oneOfType([v.PropTypes.string,v.PropTypes.number]).isRequired,formatter:v.PropTypes.func,shape:v.PropTypes.oneOfType([v.PropTypes.func,v.PropTypes.element]),label:v.PropTypes.oneOfType([v.PropTypes.bool,v.PropTypes.func,v.PropTypes.object,v.PropTypes.element]),data:v.PropTypes.arrayOf(v.PropTypes.shape({x:v.PropTypes.number,y:v.PropTypes.number,width:v.PropTypes.number,height:v.PropTypes.number,radius:v.PropTypes.oneOfType([v.PropTypes.number,v.PropTypes.array]),value:v.PropTypes.oneOfType([v.PropTypes.number,v.PropTypes.array])})),onMouseEnter:v.PropTypes.func,onMouseLeave:v.PropTypes.func,onClick:v.PropTypes.func,isAnimationActive:v.PropTypes.bool,animationBegin:v.PropTypes.number,animationDuration:v.PropTypes.number,animationEasing:v.PropTypes.oneOf(["ease","ease-in","ease-out","ease-in-out","linear"])}),l.defaultProps={fill:"#000",xAxisId:0,yAxisId:0,legendType:"rect",data:[],onClick:function(){},onMouseEnter:function(){},onMouseLeave:function(){},layout:"vertical",isAnimationActive:!0,animationBegin:0,animationDuration:1500,animationEasing:"ease"},u=c))||u;t["default"]=A},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==("undefined"==typeof t?"undefined":s(t))&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+("undefined"==typeof t?"undefined":s(t)));e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol?"symbol":typeof e};Object.defineProperty(t,"__esModule",{value:!0});var u,l,c,p=n(17),f=r(p),h=n(50),d=r(h),y=n(10),m=r(y),v=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},g=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),_=n(1),b=r(_),T=n(2),P=r(T),x=n(69),E=n(9),O=r(E),w=n(4),C=(0,P["default"])((c=l=function(e){function t(){return o(this,t),i(this,Object.getPrototypeOf(t).apply(this,arguments))}return a(t,e),g(t,[{key:"getTickLineCoord",value:function(e){var t=this.props,n=t.x,r=t.y,o=t.width,i=t.height,a=t.orientation,s=t.tickSize,u=void 0,l=void 0,c=void 0,p=void 0,f=e.tickSize||s;switch(a){case"top":u=l=e.coordinate,c=r+i-f,p=r+i;break;case"left":c=p=e.coordinate,u=n+o-f,l=n+o;break;case"right":c=p=e.coordinate,u=n+f,l=n;break;default:u=l=e.coordinate,c=r+f,p=r}return{x1:u,y1:c,x2:l,y2:p}}},{key:"getBaseline",value:function(){var e=this.props.orientation,t=void 0;switch(e){case"top":t="auto";break;case"bottom":t="text-before-edge";break;default:t="central"}return t}},{key:"getTickTextAnchor",value:function(){var e=this.props.orientation,t=void 0;switch(e){case"left":t="end";break;case"right":t="start";break;default:t="middle"}return t}},{key:"getDy",value:function(){var e=this.props.orientation,t=0;switch(e){case"left":case"right":t=8;break;case"top":t=-2;break;default:t=15}return t}},{key:"getLabelProps",value:function(){var e=this.props,t=e.x,n=e.y,r=e.width,o=e.height,i=e.orientation;switch(i){case"left":return{x:t+r,y:n-6,textAnchor:"middle"};case"right":return{x:t,y:n-6,textAnchor:"middle"};case"top":return{x:t+r+6,y:n+o+6,textAnchor:"start"};default:return{x:t+r+6,y:n+6,textAnchor:"start"}}}},{key:"renderAxisLine",value:function(){var e=this.props,t=e.x,n=e.y,r=e.width,o=e.height,i=e.orientation,a=e.axisLine,s=v({},(0,w.getPresentationAttributes)(this.props),{fill:"none"},(0,w.getPresentationAttributes)(a));switch(i){case"top":s=v({},s,{x1:t,y1:n+o,x2:t+r,y2:n+o});break;case"left":s=v({},s,{x1:t+r,y1:n,x2:t+r,y2:n+o});break;case"right":s=v({},s,{x1:t,y1:n,x2:t,y2:n+o});break;default:s=v({},s,{x1:t,y1:n,x2:t+r,y2:n})}return b["default"].createElement("line",v({className:"recharts-cartesian-axis-line"},s))}},{key:"renderTickItem",value:function(e,t,n){var r=void 0;return r=b["default"].isValidElement(e)?b["default"].cloneElement(e,t):(0,m["default"])(e)?e(t):b["default"].createElement("text",v({},t,{className:"recharts-cartesian-axis-tick-value"}),n)}},{key:"renderTicks",value:function(){var e=this,n=this.props,r=(n.ticks,n.tickLine),o=n.stroke,i=n.tick,a=n.tickFormatter,s=t.getTicks(this.props),u=this.getTickTextAnchor(),l=(0,w.getPresentationAttributes)(this.props),c=(0,w.getPresentationAttributes)(i),p=v({},l,{fill:"none"},(0,w.getPresentationAttributes)(r)),f=s.map(function(t,n){var s=e.getTickLineCoord(t),f=v({dy:e.getDy(t),textAnchor:u},l,{stroke:"none",fill:o},c,{index:n,x:s.x1,y:s.y1,payload:t});return b["default"].createElement("g",{className:"recharts-cartesian-axis-tick",key:"tick-"+n},r&&b["default"].createElement("line",v({className:"recharts-cartesian-axis-tick-line"},p,s)),i&&e.renderTickItem(i,f,a?a(t.value):t.value))});return b["default"].createElement("g",{className:"recharts-cartesian-axis-ticks"},f)}},{key:"renderLabel",value:function(){var e=this.props,t=e.label,n=(e.x,e.y,e.width,e.height,e.orientation,e.stroke);if(b["default"].isValidElement(t))return b["default"].cloneElement(t,this.props);if((0,m["default"])(t))return t(this.props);if((0,d["default"])(t)||(0,f["default"])(t)){var r=v({},(0,w.getPresentationAttributes)(this.props),{stroke:"none",fill:n},this.getLabelProps());return b["default"].createElement("g",{className:"recharts-cartesian-axis-label"},b["default"].createElement("text",r,t))}return null}},{key:"render",value:function(){var e=this.props,t=e.axisLine,n=e.width,r=e.height,o=e.ticks;e.label;return 0>=n||0>=r||!o||!o.length?null:b["default"].createElement(O["default"],{className:"recharts-cartesian-axis"},t&&this.renderAxisLine(),this.renderTicks(),this.renderLabel())}}],[{key:"getTicks",value:function(e){var n=e.ticks,r=e.viewBox,o=e.minTickGap,i=e.orientation,a=e.interval;return n&&n.length?a===+a||(0,w.isSsr)()?t.getNumberIntervalTicks(n,a===+a?+a:0):t.getAutoIntervalTicks(n,r,i,o):[]}},{key:"getNumberIntervalTicks",value:function(e,t){return e.filter(function(e,n){return n%(t+1)===0})}},{key:"getAutoIntervalTicks",value:function(e,t,n,r){var o=t.x,i=t.y,a=t.width,s=t.height,u="top"===n||"bottom"===n?"width":"height",l=e.length>=2?Math.sign(e[1].coordinate-e[0].coordinate):1,c=void 0;return c=1===l?"width"===u?o:i:"width"===u?o+a:i+s,e.filter(function(e){var t=(0,x.getStringSize)(e.value)[u],n=1===l?e.coordinate-t/2>=c:e.coordinate+t/2<=c;return n&&(c=e.coordinate+l*t/2+r),n})}}]),t}(_.Component),l.displayName="CartesianAxis",l.propTypes=v({},w.PRESENTATION_ATTRIBUTES,{x:_.PropTypes.number,y:_.PropTypes.number,width:_.PropTypes.number,height:_.PropTypes.number,orientation:_.PropTypes.oneOf(["top","bottom","left","right"]),viewBox:_.PropTypes.shape({x:_.PropTypes.number,y:_.PropTypes.number,width:_.PropTypes.number,height:_.PropTypes.number}),label:_.PropTypes.oneOfType([_.PropTypes.number,_.PropTypes.string,_.PropTypes.func,_.PropTypes.element]),tick:_.PropTypes.oneOfType([_.PropTypes.bool,_.PropTypes.func,_.PropTypes.object,_.PropTypes.element]),axisLine:_.PropTypes.oneOfType([_.PropTypes.bool,_.PropTypes.object]),tickLine:_.PropTypes.oneOfType([_.PropTypes.bool,_.PropTypes.object]),minLabelGap:_.PropTypes.number,ticks:_.PropTypes.arrayOf(_.PropTypes.shape({value:_.PropTypes.any,coordinate:_.PropTypes.value})),tickSize:_.PropTypes.number,stroke:_.PropTypes.string,tickFormatter:_.PropTypes.func,interval:_.PropTypes.oneOfType([_.PropTypes.number,_.PropTypes.string])}),l.defaultProps={x:0,y:0,width:0,height:0,viewBox:{x:0,y:0,width:0,height:0},orientation:"bottom",ticks:[],stroke:"#666",tickLine:!0,axisLine:!0,tick:!0,minTickGap:5,tickSize:6,interval:"auto"},u=c))||u;t["default"]=C},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==("undefined"==typeof t?"undefined":s(t))&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+("undefined"==typeof t?"undefined":s(t)));e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol?"symbol":typeof e};Object.defineProperty(t,"__esModule",{value:!0});var u,l,c,p=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},f=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),h=n(1),d=r(h),y=n(2),m=r(y),v=n(4),g=(0,m["default"])((c=l=function(e){function t(){return o(this,t),i(this,Object.getPrototypeOf(t).apply(this,arguments))}return a(t,e),f(t,[{key:"renderHorizontal",value:function(){var e=this.props,t=e.x,n=e.width,r=e.horizontalPoints;if(!r||!r.length)return null;var o=(0,v.getPresentationAttributes)(this.props),i=r.map(function(e,r){return d["default"].createElement("line",p({},o,{key:"line-"+r,x1:t,y1:e,x2:t+n,y2:e}))});return d["default"].createElement("g",{className:"recharts-cartesian-grid-horizontal"},i)}},{key:"renderVertical",value:function(){var e=this.props,t=e.y,n=e.height,r=e.verticalPoints;if(!r||!r.length)return null;var o=(0,v.getPresentationAttributes)(this.props),i=r.map(function(e,r){return d["default"].createElement("line",p({},o,{key:"line-"+r,x1:e,y1:t,x2:e,y2:t+n}))});return d["default"].createElement("g",{className:"recharts-cartesian-grid-vertical"},i)}},{key:"render",value:function(){var e=this.props,t=e.width,n=e.height,r=e.horizontal,o=e.vertical;return 0>=t||0>=n?null:d["default"].createElement("g",{className:"recharts-cartesian-grid"},r&&this.renderHorizontal(),o&&this.renderVertical())}}]),t}(h.Component),l.displayName="CartesianGrid",l.propTypes=p({},v.PRESENTATION_ATTRIBUTES,{x:h.PropTypes.number,y:h.PropTypes.number,width:h.PropTypes.number,height:h.PropTypes.number,horizontal:h.PropTypes.bool,vertical:h.PropTypes.bool,horizontalPoints:h.PropTypes.arrayOf(h.PropTypes.number),verticalPoints:h.PropTypes.arrayOf(h.PropTypes.number)}),l.defaultProps={x:0,y:0,width:0,height:0,horizontal:!0,vertical:!0,horizontalPoints:[],verticalPoints:[],stroke:"#ccc",fill:"none"},u=c))||u;t["default"]=g},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}function i(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function s(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==("undefined"==typeof t?"undefined":l(t))&&"function"!=typeof t?e:t}function u(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+("undefined"==typeof t?"undefined":l(t)));e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol?"symbol":typeof e};Object.defineProperty(t,"__esModule",{value:!0});var c,p,f,h=n(10),d=r(h),y="function"==typeof Symbol&&"symbol"===l(Symbol.iterator)?function(e){return"undefined"==typeof e?"undefined":l(e)}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol?"symbol":"undefined"==typeof e?"undefined":l(e)},m=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},v=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),g=n(1),_=r(g),b=n(60),T=n(40),P=r(T),x=n(8),E=r(x),O=n(2),w=r(O),C=n(48),S=r(C),M=n(38),A=r(M),k=n(9),L=r(k),I=n(4),R=(0,w["default"])((f=p=function(e){function t(e,n){a(this,t);var r=s(this,Object.getPrototypeOf(t).call(this,e,n));r.handleAnimationEnd=function(){r.setState({isAnimationFinished:!0})};var o=e.points;return r.state={isAnimationFinished:!o||o.length<=1,steps:[],totalLength:0},r}return u(t,e),v(t,[{key:"componentDidMount",value:function(){var e=this.props.isAnimationActive;if(e){var t=this.getTotalLength();this.setState({totalLength:t})}}},{key:"componentDidUpdate",value:function(e,t){var n=this.props.points;n!==e.points&&this.setState({totalLength:this.getTotalLength(),isAnimationFinished:!n||n.length<=1})}},{key:"getTotalLength",value:function(){var e=(0,b.findDOMNode)(this.refs.animate),t=e&&e.getTotalLength&&e.getTotalLength()||0;return t}},{key:"getStrokeDasharray",value:function(e,t,n){for(var r=n.reduce(function(e,t){return e+t}),o=parseInt(e/r,10),a=e%r,s=t-e,u=[],l=0,c=0;;c+=n[l],++l)if(c+n[l]>a){u=[].concat(i(n.slice(0,l)),[a-c]);break}var p=u.length%2===0?[0,s]:[s];return[].concat(i(this.repeat(n,o)),i(u),p).map(function(e){return e+"px"}).join(", ")}},{key:"repeat",value:function(e,t){for(var n=e.length%2!==0?[].concat(i(e),[0]):e,r=[],o=0;t>o;++o)r=[].concat(i(r),i(n));return r}},{key:"renderLabelItem",value:function(e,t,n){var r=void 0;return r=_["default"].isValidElement(e)?_["default"].cloneElement(e,t):(0,d["default"])(e)?e(t):_["default"].createElement("text",m({},t,{className:"recharts-line-label"}),n)}},{key:"renderLabels",value:function(){var e=this,t=this.props.isAnimationActive;if(t&&!this.state.isAnimationFinished)return null;var n=this.props,r=n.points,o=n.label,i=(0,I.getPresentationAttributes)(this.props),a=(0,I.getPresentationAttributes)(o),s=r.map(function(t,n){var r=(t.x+t.width/2,t.y,m({textAnchor:"middle"},t,i,a,{index:n,key:"label-"+n,payload:t}));return e.renderLabelItem(o,r,t.value)});return _["default"].createElement(L["default"],{className:"recharts-line-labels"},s)}},{key:"renderDotItem",value:function(e,t){var n=void 0;return n=_["default"].isValidElement(e)?_["default"].cloneElement(e,t):(0,d["default"])(e)?e(t):_["default"].createElement(A["default"],m({},t,{className:"recharts-line-dot"}))}},{key:"renderDots",value:function(){var e=this,t=this.props.isAnimationActive;if(t&&!this.state.isAnimationFinished)return null;var n=this.props,r=n.dot,o=n.points,i=(0,I.getPresentationAttributes)(this.props),a=(0,I.getPresentationAttributes)(r),s=o.map(function(t,n){var o=m({key:"dot-"+n,r:3},i,a,{cx:t.x,cy:t.y,index:n,payload:t});return e.renderDotItem(r,o)});return _["default"].createElement(L["default"],{className:"recharts-line-dots",key:"dots"},s)}},{key:"renderCurve",value:function(){var e=this,t=this.props,n=t.points,r=(t.className,t.isAnimationActive),i=t.animationBegin,a=t.animationDuration,s=t.animationEasing,u=t.onClick,l=t.onMouseEnter,c=t.onMouseLeave,p=t.strokeDasharray,f=o(t,["points","className","isAnimationActive","animationBegin","animationDuration","animationEasing","onClick","onMouseEnter","onMouseLeave","strokeDasharray"]),h=this.state.totalLength,d={isActive:r,begin:i,canBegin:h>0,easing:s,duration:a,onAnimationEnd:this.handleAnimationEnd,ref:"animate",shouldReAnimate:!0},v=m({},f,{className:"recharts-line-curve",fill:"none",onClick:u,onMouseEnter:l,onMouseLeave:c,points:n});if(p){var g=function(){var t=p.split(/[,\s]+/gim).map(function(e){return parseFloat(e)});return{v:_["default"].createElement(P["default"],m({},d,{from:{length:0},to:{length:h}}),function(n){var r=n.length;return _["default"].createElement(S["default"],m({},v,{strokeDasharray:e.getStrokeDasharray(r,h,t)}))})}}();if("object"===("undefined"==typeof g?"undefined":y(g)))return g.v}return _["default"].createElement(P["default"],m({},d,{from:"0px "+(0===h?1:h)+"px",to:h+"px 0px",attributeName:"strokeDasharray"}),_["default"].createElement(S["default"],v))}},{key:"render",value:function(){var e=this.props,t=e.dot,n=e.points,r=e.label,o=e.className;if(!n||!n.length)return null;var i=1===n.length,a=(0,E["default"])("recharts-line",o);return _["default"].createElement(L["default"],{className:a},!i&&this.renderCurve(),(i||t)&&this.renderDots(),r&&this.renderLabels())}}]),t}(g.Component),p.displayName="Line",p.propTypes=m({},I.PRESENTATION_ATTRIBUTES,{className:g.PropTypes.string,type:g.PropTypes.oneOf(["linear","monotone","step","stepBefore","stepAfter"]),unit:g.PropTypes.oneOfType([g.PropTypes.string,g.PropTypes.number]),name:g.PropTypes.oneOfType([g.PropTypes.string,g.PropTypes.number]),dataKey:g.PropTypes.oneOfType([g.PropTypes.string,g.PropTypes.number]).isRequired,
  yAxisId:g.PropTypes.oneOfType([g.PropTypes.string,g.PropTypes.number]),xAxisId:g.PropTypes.oneOfType([g.PropTypes.string,g.PropTypes.number]),legendType:g.PropTypes.string,layout:g.PropTypes.oneOf(["horizontal","vertical"]),activeDot:g.PropTypes.oneOfType([g.PropTypes.object,g.PropTypes.element,g.PropTypes.func,g.PropTypes.bool]),dot:g.PropTypes.oneOfType([g.PropTypes.object,g.PropTypes.element,g.PropTypes.func,g.PropTypes.bool]),label:g.PropTypes.oneOfType([g.PropTypes.object,g.PropTypes.element,g.PropTypes.func,g.PropTypes.bool]),points:g.PropTypes.arrayOf(g.PropTypes.shape({x:g.PropTypes.number,y:g.PropTypes.number,value:g.PropTypes.value})),onMouseEnter:g.PropTypes.func,onMouseLeave:g.PropTypes.func,onClick:g.PropTypes.func,isAnimationActive:g.PropTypes.bool,animationBegin:g.PropTypes.number,animationDuration:g.PropTypes.number,animationEasing:g.PropTypes.oneOf(["ease","ease-in","ease-out","ease-in-out","linear"])}),p.defaultProps={xAxisId:0,yAxisId:0,activeDot:!0,dot:!0,legendType:"line",stroke:"#3182bd",strokeWidth:1,fill:"#fff",points:[],onClick:function(){},onMouseEnter:function(){},onMouseLeave:function(){},isAnimationActive:!0,animationBegin:0,animationDuration:1500,animationEasing:"ease"},c=f))||c;t["default"]=R},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==("undefined"==typeof t?"undefined":s(t))&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+("undefined"==typeof t?"undefined":s(t)));e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol?"symbol":typeof e};Object.defineProperty(t,"__esModule",{value:!0});var u,l,c,p=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),f=n(1),h=(r(f),n(2)),d=r(h),y=(0,d["default"])((c=l=function(e){function t(){return o(this,t),i(this,Object.getPrototypeOf(t).apply(this,arguments))}return a(t,e),p(t,[{key:"render",value:function(){return null}}]),t}(f.Component),l.displayName="XAxis",l.propTypes={hide:f.PropTypes.bool,name:f.PropTypes.oneOfType([f.PropTypes.string,f.PropTypes.number]),unit:f.PropTypes.oneOfType([f.PropTypes.string,f.PropTypes.number]),xAxisId:f.PropTypes.oneOfType([f.PropTypes.string,f.PropTypes.number]),domain:f.PropTypes.arrayOf(f.PropTypes.oneOfType([f.PropTypes.number,f.PropTypes.oneOf(["auto","dataMin","dataMax"])])),dataKey:f.PropTypes.oneOfType([f.PropTypes.string,f.PropTypes.number]),width:f.PropTypes.number,height:f.PropTypes.number,orientation:f.PropTypes.oneOf(["top","bottom"]),type:f.PropTypes.oneOf(["number","category"]),ticks:f.PropTypes.array,tickCount:f.PropTypes.number,tickFormatter:f.PropTypes.func},l.defaultProps={hide:!1,orientation:"bottom",width:0,height:30,xAxisId:0,tickCount:5,type:"category",domain:[0,"auto"]},u=c))||u;t["default"]=y},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==("undefined"==typeof t?"undefined":s(t))&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+("undefined"==typeof t?"undefined":s(t)));e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol?"symbol":typeof e};Object.defineProperty(t,"__esModule",{value:!0});var u,l,c,p=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),f=n(1),h=(r(f),n(2)),d=r(h),y=(0,d["default"])((c=l=function(e){function t(){return o(this,t),i(this,Object.getPrototypeOf(t).apply(this,arguments))}return a(t,e),p(t,[{key:"render",value:function(){return null}}]),t}(f.Component),l.displayName="YAxis",l.propTypes={hide:f.PropTypes.bool,name:f.PropTypes.oneOfType([f.PropTypes.string,f.PropTypes.number]),unit:f.PropTypes.oneOfType([f.PropTypes.string,f.PropTypes.number]),yAxisId:f.PropTypes.oneOfType([f.PropTypes.string,f.PropTypes.number]),domain:f.PropTypes.arrayOf(f.PropTypes.oneOfType([f.PropTypes.number,f.PropTypes.oneOf(["auto","dataMin","dataMax"])])),dataKey:f.PropTypes.oneOfType([f.PropTypes.string,f.PropTypes.number]),ticks:f.PropTypes.array,tickCount:f.PropTypes.number,tickFormatter:f.PropTypes.func,width:f.PropTypes.number,height:f.PropTypes.number,orientation:f.PropTypes.oneOf(["left","right"]),type:f.PropTypes.oneOf(["number","category"])},l.defaultProps={hide:!1,orientation:"left",width:60,height:0,yAxisId:0,tickCount:5,type:"number",domain:[0,"auto"]},u=c))||u;t["default"]=y},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==("undefined"==typeof t?"undefined":s(t))&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+("undefined"==typeof t?"undefined":s(t)));e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol?"symbol":typeof e};Object.defineProperty(t,"__esModule",{value:!0});var u,l,c,p=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},f=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),h=n(1),d=r(h),y=n(2),m=r(y),v=n(8),g=r(v),_=n(4),b=(0,m["default"])((c=l=function(e){function t(){return o(this,t),i(this,Object.getPrototypeOf(t).apply(this,arguments))}return a(t,e),f(t,[{key:"getPolygonPoints",value:function(e){return e.reduce(function(e,t){return t.x===+t.x&&t.y===+t.y&&e.push([t.x,t.y]),e},[]).join(" ")}},{key:"render",value:function(){var e=this.props,t=e.points,n=e.className;if(!t||!t.length)return null;var r=(0,g["default"])("recharts-polygon",n);return d["default"].createElement("polygon",p({},(0,_.getPresentationAttributes)(this.props),{className:r,points:this.getPolygonPoints(t)}))}}]),t}(h.Component),l.displayName="Polygon",l.propTypes=p({},_.PRESENTATION_ATTRIBUTES,{className:h.PropTypes.string,points:h.PropTypes.arrayOf(h.PropTypes.shape({x:h.PropTypes.number,y:h.PropTypes.number}))}),l.defaultProps={fill:"none",stroke:"#333",strokeWidth:1},u=c))||u;t["default"]=b},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==("undefined"==typeof t?"undefined":s(t))&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+("undefined"==typeof t?"undefined":s(t)));e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol?"symbol":typeof e};Object.defineProperty(t,"__esModule",{value:!0});var u,l,c,p=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},f=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),h=n(1),d=r(h),y=n(2),m=r(y),v=n(8),g=r(v),_=n(4),b=n(39),T=(0,m["default"])((c=l=function(e){function t(){return o(this,t),i(this,Object.getPrototypeOf(t).apply(this,arguments))}return a(t,e),f(t,[{key:"getDeltaAngle",value:function(e,t){var n=Math.sign(t-e),r=Math.min(Math.abs(t-e),359.9999);return n*r}},{key:"getPath",value:function(e,t,n,r,o,i){var a=this.getDeltaAngle(o,i),s=o+a,u=(0,b.polarToCartesian)(e,t,r,o),l=(0,b.polarToCartesian)(e,t,r,s),c=void 0;if(n>0){var p=(0,b.polarToCartesian)(e,t,n,o),f=(0,b.polarToCartesian)(e,t,n,s);c="M "+u.x+","+u.y+"\n              A "+r+","+r+",0,\n              "+ +(Math.abs(a)>180)+","+ +(o>s)+",\n              "+l.x+","+l.y+"\n              L "+f.x+","+f.y+"\n              A "+n+","+n+",0,\n              "+ +(Math.abs(a)>180)+","+ +(s>=o)+",\n              "+p.x+","+p.y+" Z"}else c="M "+u.x+","+u.y+"\n              A "+r+","+r+",0,\n              "+ +(Math.abs(a)>180)+","+ +(o>s)+",\n              "+l.x+","+l.y+"\n              L "+e+","+t+" Z";return c}},{key:"render",value:function(){var e=this.props,t=e.cx,n=e.cy,r=e.innerRadius,o=e.outerRadius,i=e.startAngle,a=e.endAngle,s=e.className;if(r>o||i===a)return null;var u=(0,g["default"])("recharts-sector",s);return d["default"].createElement("path",p({},(0,_.getPresentationAttributes)(this.props),(0,_.filterEventAttributes)(this.props),{className:u,d:this.getPath(t,n,r,o,i,a)}))}}]),t}(h.Component),l.displayName="Sector",l.propTypes=p({},_.PRESENTATION_ATTRIBUTES,{className:h.PropTypes.string,cx:h.PropTypes.number,cy:h.PropTypes.number,innerRadius:h.PropTypes.number,outerRadius:h.PropTypes.number,startAngle:h.PropTypes.number,endAngle:h.PropTypes.number}),l.defaultProps={cx:0,cy:0,innerRadius:0,outerRadius:0,startAngle:0,endAngle:0},u=c))||u;t["default"]=T},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=!1;t.warn=function(e,t,n,o,i,a,s,u){r&&"undefined"!=typeof console&&console.warn&&(void 0===t&&console.warn("LogUtils requires an error message argument"),e||(void 0===t?console.warn("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings."):!function(){var e=[n,o,i,a,s,u],r=0;console.warn(t.replace(/%s/g,function(){return e[r++]}))}()))}},function(e,t){"use strict";var n=e.exports={version:"2.1.5"};"number"==typeof __e&&(__e=n)},function(e,t,n){"use strict";e.exports=!n(113)(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},function(e,t){"use strict";var n=e.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=n)},function(e,t){"use strict";var n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol?"symbol":typeof e};e.exports=function(e){return"object"===("undefined"==typeof e?"undefined":n(e))?null!==e:"function"==typeof e}},function(e,t){"use strict";e.exports=Math.expm1||function(e){return 0==(e=+e)?e:e>-1e-6&&1e-6>e?e+e*e/2:Math.exp(e)-1}},function(e,t){"use strict";e.exports=Math.sign||function(e){return 0==(e=+e)||e!=e?e:0>e?-1:1}},function(e,t){"use strict";function n(e,t){for(var n=-1,r=e.length,o=Array(r);++n<r;)o[n]=t(e[n],n,e);return o}e.exports=n},function(e,t,n){"use strict";function r(e,t,n,s,u){return e===t?!0:null==e||null==t||!i(e)&&!a(t)?e!==e&&t!==t:o(e,t,r,n,s,u)}var o=n(685),i=n(85),a=n(49);e.exports=r},function(e,t){"use strict";function n(e){var t=!1;if(null!=e&&"function"!=typeof e.toString)try{t=!!(e+"")}catch(n){}return t}e.exports=n},function(e,t){"use strict";function n(e,t){return e="number"==typeof e||o.test(e)?+e:-1,t=null==t?r:t,e>-1&&e%1==0&&t>e}var r=9007199254740991,o=/^(?:0|[1-9]\d*)$/;e.exports=n},function(e,t,n){"use strict";function r(e,t){return"number"==typeof e?!0:!o(e)&&(a.test(e)||!i.test(e)||null!=t&&e in Object(t))}var o=n(16),i=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,a=/^\w*$/;e.exports=r},function(e,t,n){"use strict";function r(e){var t=l(e);if(!t&&!s(e))return i(e);var n=a(e),r=!!n,c=n||[],p=c.length;for(var f in e)!o(e,f)||r&&("length"==f||u(f,p))||t&&"constructor"==f||c.push(f);return c}var o=n(305),i=n(687),a=n(711),s=n(119),u=n(184),l=n(714);e.exports=r},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(t,"__esModule",{value:!0}),t.getNiceTickValues=t.getTickValues=void 0;var o=n(751),i=r(o),a=n(322),s=r(a);t["default"]={getTickValues:i["default"],getNiceTickValues:s["default"]},t.getTickValues=i["default"],t.getNiceTickValues=s["default"]},function(e,t){"use strict";function n(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}Object.defineProperty(t,"__esModule",{value:!0});var r=function(e){return e},o=t.__={"@@functional/placeholder":!0},i=function(e){return e===o},a=function(e){return function t(){return 0===arguments.length||1===arguments.length&&i(arguments.length<=0?void 0:arguments[0])?t:e.apply(void 0,arguments)}},s=function l(e,t){return 1===e?t:a(function(){for(var r=arguments.length,s=Array(r),u=0;r>u;u++)s[u]=arguments[u];var c=s.filter(function(e){return e!==o}).length;return c>=e?t.apply(void 0,s):l(e-c,a(function(){for(var e=arguments.length,r=Array(e),o=0;e>o;o++)r[o]=arguments[o];var a=s.map(function(e){return i(e)?r.shift():e});return t.apply(void 0,n(a).concat(r))}))})},u=t.curry=function(e){return s(e.length,e)};t.range=function(e,t){for(var n=[],r=e;t>r;++r)n[r-e]=r;return n},t.map=u(function(e,t){return Array.isArray(t)?t.map(e):Object.keys(t).map(function(e){return t[e]}).map(e)}),t.compose=function(){for(var e=arguments.length,t=Array(e),n=0;e>n;n++)t[n]=arguments[n];if(!t.length)return r;var o=t.reverse(),i=o[0],a=o.slice(1);return function(){return a.reduce(function(e,t){return t(e)},i.apply(void 0,arguments))}},t.reverse=function(e){return Array.isArray(e)?e.reverse():e.split("").reverse.join("")},t.memoize=function(e){var t=null,n=null;return function(){for(var r=arguments.length,o=Array(r),i=0;r>i;i++)o[i]=arguments[i];return t&&o.every(function(e,n){return e===t[n]})?n:(t=o,n=e.apply(void 0,o))}}},function(e,t,n){"use strict";var r=n(33),o=n(335),i=n(340),a=n(190),s=n(339),u=window.btoa||n(334);e.exports=function(e,t,l){var c=l.data,p=l.headers;r.isFormData(c)&&delete p["Content-Type"];var f=new XMLHttpRequest;if(!window.XDomainRequest||"withCredentials"in f||s(l.url)||(f=new window.XDomainRequest),l.auth){var h=l.auth.username||"",d=l.auth.password||"";p.Authorization="Basic "+u(h+":"+d)}if(f.open(l.method.toUpperCase(),o(l.url,l.params,l.paramsSerializer),!0),f.timeout=l.timeout,f.onload=function(){if(f){var n="getAllResponseHeaders"in f?i(f.getAllResponseHeaders()):null,r=-1!==["text",""].indexOf(l.responseType||"")?f.responseText:f.response,o={data:a(r,n,l.transformResponse),status:1223===f.status?204:f.status,statusText:1223===f.status?"No Content":f.statusText,headers:n,config:l};(o.status>=200&&o.status<300||!("status"in f)&&o.responseText?e:t)(o),f=null}},f.onerror=function(){t(new Error("Network Error")),f=null},r.isStandardBrowserEnv()){var y=n(337),m=l.withCredentials||s(l.url)?y.read(l.xsrfCookieName):void 0;m&&(p[l.xsrfHeaderName]=m)}if("setRequestHeader"in f&&r.forEach(p,function(e,t){"undefined"==typeof c&&"content-type"===t.toLowerCase()?delete p[t]:f.setRequestHeader(t,e)}),l.withCredentials&&(f.withCredentials=!0),l.responseType)try{f.responseType=l.responseType}catch(v){if("json"!==f.responseType)throw v}r.isArrayBuffer(c)&&(c=new DataView(c)),f.send(c)}},function(e,t,n){"use strict";var r=n(33);e.exports=function(e,t,n){return r.forEach(n,function(n){e=n(e,t)}),e}},function(e,t,n){"use strict";function r(e,t){var n=e,r=(0,h.getAGOGeographyLabel)(t).toUpperCase(),o="/"+f.FEATURE_SERVICE_NAME+"/FeatureServer/"+f.TRA_XWALK+"/query?where=ID%3D%27"+n+"%27+and+type+%3D+%27"+r.toUpperCase()+"%27&objectIds=&time=&resultType=none&outFields=*&returnIdsOnly=false&returnCountOnly=false&returnDistinctValues=true&orderByFields=&groupByFieldsForStatistics=&outStatistics=&resultOffset=&resultRecordCount=&sqlFormat=none&f=pgeojson&token=";return d.get(o)}function o(e){var t="("+e+")",n="/"+f.FEATURE_SERVICE_NAME+"/FeatureServer/"+f.NCDEQ_NORMALIZED_FEATUREID+"/query?where=ID+in+"+t+"&objectIds=&time=&resultType=none&outFields=*&returnIdsOnly=false&returnCountOnly=false&returnDistinctValues=true&orderByFields=&groupByFieldsForStatistics=&outStatistics=&resultOffset=&resultRecordCount=&sqlFormat=none&f=pgeojson&token=";return d.get(n)}function i(e){var t="("+e+")",n="/"+f.FEATURE_SERVICE_NAME+"/FeatureServer/"+f.TRA_FEATUREID+"/query?where=id+in+"+t+"&objectIds=&time=&resultType=standard&distance=&units=esriSRUnit_Meter&outFields=ID&returnGeometry=true&returnCentroid=true&multipatchOption=xyFootprint&maxAllowableOffset=&geometryPrecision=&outSR=4326&returnIdsOnly=false&returnCountOnly=false&returnExtentOnly=false&returnDistinctValues=true&orderByFields=&groupByFieldsForStatistics=&outStatistics=&resultOffset=&resultRecordCount=&returnZ=false&returnM=false&quantizationParameters=&sqlFormat=none&f=pgeojson&token=";return d.get(n)}function a(e){var t="/"+f.FEATURE_SERVICE_NAME+"/FeatureServer/"+f.TRA_FEATUREID+"/query?where=id+%3D+%27"+e+"%27&objectIds=&time=&resultType=none&outFields=*&returnIdsOnly=false&returnCountOnly=false&returnDistinctValues=true&orderByFields=&groupByFieldsForStatistics=&outStatistics=&resultOffset=&resultRecordCount=&sqlFormat=none&f=pgeojson&token=";return d.get(t)}function s(e,t){return function(n,o){n(l());o();r(e,t).then(function(e){var t=(o(),{}),r={},i={};t=(0,p.CheckReponse)(e,"AGO_API_ERROR"),t.features&&!function(){var e=[],o=0;t.features.map(function(s){var l=s.properties.ID,f=s.properties.TRA_Name;i={},a(f).then(function(a){o+=1,r=(0,p.CheckReponse)(a,"AGO_API_ERROR"),r.features&&(i=r.features[0].geometry),e.push({id:l,tra_name:f,tra_geom:i}),o===t.features.length&&(n(u("GET_TRA_DATA",e)),n(c()))})})}()});var i=[];n(u("GET_TRA_DATA",i)),n(c())}}function u(e,t){return{type:e,tra_data:{data:t},receivedAt:Date.now()}}function l(){return{type:"FETCHING_TRA",fetching:!0}}function c(){return{type:"FETCHING_TRA",fetching:!1}}Object.defineProperty(t,"__esModule",{value:!0}),t.ago_get_traxwalk_by_id=r,t.ago_get_tra_by_ids=o,t.ago_get_tra_geom_by_ids=i,t.get_TRAData=s;var p=n(58),f=n(24),h=(n(11),n(20)),d=n(41);d.defaults.baseURL=f.AGO_URL},function(e,t,n){"use strict";var r=(n(37),n(1)),o=r.PropTypes,i={width:"100%",margin:0,lineHeight:24,border:"1px solid #f5f5f5",backgroundColor:"rgba(255, 255, 255, 0.95)",padding:10},a=r.createClass({displayName:"CustomToolTipPieChart",propTypes:{type:o.string,payload:o.array,label:o.string},render:function(){var e=this,t=this.props.active;if(t){var n=this.props,o=n.payload,a=n.label,s=this.props.data.map(function(e){return e.value}),u=s.reduce(function(e,t){return e+t},0),l=o.map(function(t){var n=(e.props.get_keyColors(t.name),{margin:"0",color:"#000"}),o={fontWeight:"800"},i=t.value?(t.value/u*100).toFixed(1).toString()+"%":"",a=t.name+": ";return r.createElement("p",{key:t.name,style:n},a,r.createElement("span",{style:o},i))});r.createElement("div",null);if("1"===a||"2"===a)return r.createElement("div",{key:a+"blanktip"});var c=a.toString();return r.createElement("div",{key:c+"tooltip",style:i},l)}return null}});e.exports=a},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}var o=n(24),i=n(51),a=(r(i),n(11),n(1)),s=(a.PropTypes,a.createClass({displayName:"HeaderComponent",getDefaultProps:function(){return{content:"Do Something on the map"}},get_title:function(){return o.TITLE?o.TITLE:"web app"},getInitialState:function(){return{title:"web app"}},componentWillMount:function(){this.setState({title:this.get_title()})},componentWillReceiveProps:function(e){this.setState({title:this.get_title()})},componentDidMount:function(){$("#about").click(function(){$("#modal-about").modal("show")})},render:function(){return a.createElement("div",{id:"headerrow",className:"row"},a.createElement("div",{className:"column"},a.createElement("div",{className:"ui equal width center aligned stackable fluid grid",style:{backgroundColor:"#092940",color:"#fff"}},a.createElement("div",{className:"three wide middle center aligned column",style:{padding:"0px"}},a.createElement("div",{className:"ui basic segment"},a.createElement("a",{href:"http://deq.nc.gov/",className:"ui medium image"},a.createElement("img",{src:"config/l_agency-ncdenr.svg",className:"ui fluid centered image",style:{minWidth:"150px",maxWidth:"225px"}})))),a.createElement("div",{className:"seven wide column",style:{padding:"0px"}},a.createElement("div",{className:"ui basic segment"},a.createElement("h2",null,this.state.title))),a.createElement("div",{className:"middle aligned column",style:{marginRight:"14px"}},a.createElement("div",{className:"ui three column center aligned grid",style:{paddingLeft:"0px,paddingRight: 14px"}},a.createElement("div",{className:"sixteen wide column",style:{paddingLeft:"0px,paddingRight: 14px"}},a.createElement("div",{className:"ui center aligned buttons"},a.createElement("a",{className:"ui inverted button",href:"#/Resources/"},"Resources"),a.createElement("button",{id:"about",className:"ui inverted button"},"About"),a.createElement("a",{className:"ui inverted button",href:"#/"},"Map and Charts"))))),this.props.header_description_visibility&&a.createElement("div",{className:"ui left aligned stackable padded grid"},a.createElement("div",{className:"sixteen wide left aligned column"},a.createElement("p",null,"The purpose of this tool is to display the Division of Mitigation Services Targeted Resource Areas (TRAs) and identify watersheds where ecological and hydrological function can be improved. TRAs identify clusters of areas where habitat, hydrology and/or water quality variables can be managed to improve watershed function. To get started click a River Basin on the map, or search for a location to zoom to."),a.createElement("p",null,"From North Carolina Department of Environmental Quality (NCDEQ) -Division of Mitigation Services"))))))}}));e.exports=s},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}var o=n(1),i=r(o),a=n(379),s=r(a),u=n(375),l=r(u),c=n(380),p=r(c),f=n(377),h=r(f),d=n(11),y=n(371),m=i["default"].createClass({displayName:"MainComponent",handleResize:function(e){var t=this;this.props.set_defaults(),this.props.leafletMap&&!function(){var e=t.props.leafletMap.leafletMap;e&&(e.invalidateSize(!0),t.props.set_defaults(),setTimeout(function(){e.invalidateSize(!0)},0))}()},shouldComponentUpdate:function(e,t){return!!e.constants},componentWillMount:function(){var e=this;this.props.set_constants(),this.props.get_GeographyLevels(),this.props.get_ChartLevels(),this.props.get_ChartData(),this.props.get_defaultMapData(),this.props.leafletMap&&!function(){var t=e.props.leafletMap.leafletMap;t&&(t.invalidateSize(!0),setTimeout(function(){t.invalidateSize(!0)},0))}()},componentDidMount:function(){window.addEventListener("resize",this.handleResize),$(".ui.dropdown").dropdown(),$("#search-select").dropdown(),$(".ui.sticky").sticky()},render:function(){var e=!0;e=void 0===this.props.charts.chart_visibility?!0:this.props.charts.chart_visibility;var t=e?d.MAP_CHART_WIDTH:d.MAP_FULL_WIDTH,n=e?d.CHART_WIDTH:d.MAP_FULL_WIDTH,r=this.props.default_settings?this.props.default_settings.HEADER_DESCRIPTION_VISIBILITY:d.HEADER_DESCRIPTION_VISIBILITY,o=window.innerWidth<d.OVERIDE_WIDTH?"sixteen":t,a=window.innerWidth<d.OVERIDE_WIDTH?"sixteen":n,u=(this.props.default_settings?this.props.default_settings.PADDING:0,this.props.default_settings?this.props.default_settings.MAPHEIGHT:0);return i["default"].createElement("div",{className:"ui stackable one column padded grid",style:{backgroundColor:d.BACKGROUND_COLOR_BG}},i["default"].createElement(h["default"],{header_description_visibility:r}),i["default"].createElement("div",{id:"breadCrumbsHeight",className:"row"},i["default"].createElement("div",{className:"column"},i["default"].createElement(p["default"],null))),i["default"].createElement("div",{id:"mapandcharts",className:"row",style:{height:u,padding:"0px"}},i["default"].createElement("div",{className:"column",style:{padding:"0px"}},i["default"].createElement("div",{className:"ui stackable two column padded grid",style:{height:u,backgroundColor:d.BACKGROUND_COLOR_BG}},i["default"].createElement("div",{className:"row",style:{padding:"0px"}},e&&i["default"].createElement("div",{id:"chartColumn",className:"ui "+a+" wide column",style:{height:u,paddingTop:"0px !important"}},i["default"].createElement(l["default"],null)),i["default"].createElement("div",{id:"mapColumn",className:"ui "+o+" wide column",style:{height:u,paddingTop:"0px !important"}},i["default"].createElement(s["default"],{columnWidth:t})))))),i["default"].createElement(y,null))}});e.exports=m},function(e,t,n){"use strict";var r=n(1),o=(r.PropTypes,r.createClass({displayName:"NoDataMessage",render:function(){return r.createElement("div",{className:"ui icon negative message"},r.createElement("i",{className:"remove circle icon"}),r.createElement("div",{className:"content"},r.createElement("div",{className:"header"},this.props.note),this.props.sub_header))}}));e.exports=o},function(e,t,n){"use strict";var r=n(11),o=n(1),i=n(193),a=(o.PropTypes,o.createClass({displayName:"ResourcesComponent",getInitialState:function(){return{links:[]}},read_file:function(){$.ajax({isLocal:!0,url:"config/links.csv",dataType:"text",contentType:"application/CSV"}).done(this.parse_data)},parse_data:function(e){for(var t=e.split(/\r?\n|\r/),n=[],r=0;r<t.length;r++)if(r>0){var o=t[r].split(",");o.length>1&&n.push({link:o})}this.setState({links:n})},componentDidMount:function(){this.read_file()},get_links:function(){var e=this.state.links,t=0;return e?e.map(function(e){return o.createElement("div",{key:t++,className:"item"},o.createElement("div",{className:"content"},o.createElement("a",{className:"header",href:e.link[1],target:"_blank"},e.link[0]),o.createElement("div",{className:"description"},e.link[2])))}):null},render:function(){var e=!0;e=void 0===this.props.charts.chart_visibility?!0:this.props.charts.chart_visibility;var t=this.props.default_settings?this.props.default_settings.header_description_visibility:r.HEADER_DESCRIPTION_VISIBILITY,n="The purpose of this tool is to display the Division of Mitigation Services Targeted Resource Areas (TRAs) and identify watersheds where ecological and hydrological function can be improved.  TRAs identify clusters of areas where habitat, hydrology and/or water quality variables can be managed to improve watershed function.   To get started click a River Basin on the map, or search for a location to zoom to.";e?r.MAP_CHART_WIDTH:r.MAP_FULL_WIDTH;return o.createElement("div",{className:"ui stackable one column padded grid"},o.createElement(i,{content:n,header_description_visibility:t}),o.createElement("div",{className:"ui stackable internally celled sixteen wide column grid"},o.createElement("div",{className:"stretched row"},o.createElement("div",{className:"row",style:{borderWidth:"1px",padding:r.PADDING+"px"}},o.createElement("div",{className:"ui sixteen column padded grid",style:{padding:r.PADDING+"px"}},o.createElement("div",{className:"ui relaxed divided list"},this.get_links()))))))}}));e.exports=a},function(e,t,n){"use strict";e.exports=n(248)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(1);t["default"]=r.PropTypes.oneOf(["topleft","topright","bottomleft","bottomright"])},function(e,t,n){"use strict";var r=n(63),o=n(42),i=r(o,"Map");e.exports=i},function(e,t,n){"use strict";var r=n(42),o=r.Uint8Array;e.exports=o},function(e,t){"use strict";function n(e,t){for(var n=-1,r=e.length;++n<r&&t(e[n],n,e)!==!1;);return e}e.exports=n},function(e,t){"use strict";function n(e,t){for(var n=-1,r=e.length,o=Array(r);++n<r;)o[n]=t(e[n],n,e);return o}e.exports=n},function(e,t){"use strict";function n(e,t){for(var n=-1,r=t.length,o=e.length;++n<r;)e[o+n]=t[n];return e}e.exports=n},function(e,t,n){"use strict";var r=n(432),o=n(457),i=o(r);e.exports=i},function(e,t,n){"use strict";function r(e,t){t=i(t,e)?[t]:o(t);for(var n=0,r=t.length;null!=e&&r>n;)e=e[a(t[n++])];return n&&n==r?e:void 0}var o=n(209),i=n(94),a=n(74);e.exports=r},function(e,t,n){"use strict";function r(e,t){return s.call(e,t)||"object"==("undefined"==typeof e?"undefined":o(e))&&t in e&&null===i(e)}var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol?"symbol":typeof e},i=n(211),a=Object.prototype,s=a.hasOwnProperty;e.exports=r},function(e,t,n){"use strict";function r(e){return"function"==typeof e?e:null==e?s:"object"==("undefined"==typeof e?"undefined":o(e))?u(e)?a(e[0],e[1]):i(e):l(e)}var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol?"symbol":typeof e},i=n(438),a=n(439),s=n(503),u=n(18),l=n(512);e.exports=r},function(e,t){"use strict";function n(e){return function(t){return null==t?void 0:t[e]}}e.exports=n},function(e,t,n){"use strict";function r(e){return o(e)?e:i(e)}var o=n(18),i=n(496);e.exports=r},function(e,t,n){"use strict";function r(e,t,n,r,u,l){var c=u&s,p=e.length,f=t.length;if(p!=f&&!(c&&f>p))return!1;var h=l.get(e);if(h)return h==t;var d=-1,y=!0,m=u&a?new o:void 0;for(l.set(e,t);++d<p;){var v=e[d],g=t[d];if(r)var _=c?r(g,v,d,t,e,l):r(v,g,d,e,t,l);if(void 0!==_){if(_)continue;y=!1;break}if(m){if(!i(t,function(e,t){return m.has(t)||v!==e&&!n(v,e,r,u,l)?void 0:m.add(t)})){y=!1;break}}else if(v!==g&&!n(v,g,r,u,l)){y=!1;break}}return l["delete"](e),y}var o=n(421),i=n(426),a=1,s=2;e.exports=r},function(e,t){"use strict";function n(e){return r(Object(e))}var r=Object.getPrototypeOf;e.exports=n},function(e,t){"use strict";function n(e){return r(Object(e))}var r=Object.getOwnPropertySymbols;r||(n=function(){return[]}),e.exports=n},function(e,t,n){"use strict";function r(e){return e===e&&!o(e)}var o=n(43);e.exports=r},function(e,t){"use strict";function n(e,t){return function(n){return null==n?!1:n[e]===t&&(void 0!==t||e in Object(n))}}e.exports=n},function(e,t){"use strict";function n(e){var t=-1,n=Array(e.size);return e.forEach(function(e){n[++t]=e}),n}e.exports=n},function(e,t){"use strict";function n(e){
  if(null!=e){try{return r.call(e)}catch(t){}try{return e+""}catch(t){}}return""}var r=Function.prototype.toString;e.exports=n},function(e,t,n){"use strict";function r(e){return"string"==typeof e||!o(e)&&i(e)&&u.call(e)==a}var o=n(18),i=n(76),a="[object String]",s=Object.prototype,u=s.toString;e.exports=r},function(e,t,n){"use strict";function r(e,t){if("function"!=typeof e)throw new TypeError(a);return t=s(void 0===t?e.length-1:i(t),0),function(){for(var n=arguments,r=-1,i=s(n.length-t,0),a=Array(i);++r<i;)a[r]=n[t+r];switch(t){case 0:return e.call(this,a);case 1:return e.call(this,n[0],a);case 2:return e.call(this,n[0],n[1],a)}var u=Array(t+1);for(r=-1;++r<t;)u[r]=n[r];return u[t]=a,o(e,this,u)}}var o=n(425),i=n(515),a="Expected a function",s=Math.max;e.exports=r},function(e,t,n){"use strict";function r(e){return null==e?"":o(e)}var o=n(445);e.exports=r},function(e,t,n){"use strict";t.__esModule=!0;var r=n(1);t["default"]=r.PropTypes.shape({subscribe:r.PropTypes.func.isRequired,dispatch:r.PropTypes.func.isRequired,getState:r.PropTypes.func.isRequired})},function(e,t){"use strict";function n(e){"undefined"!=typeof console&&"function"==typeof console.error&&console.error(e);try{throw new Error(e)}catch(t){}}t.__esModule=!0,t["default"]=n},function(e,t){"use strict";function n(e){return function(){for(var t=arguments.length,n=Array(t),o=0;t>o;o++)n[o]=arguments[o];return{type:r,payload:{method:e,args:n}}}}Object.defineProperty(t,"__esModule",{value:!0});var r=t.CALL_HISTORY_METHOD="@@router/CALL_HISTORY_METHOD",o=t.push=n("push"),i=t.replace=n("replace"),a=t.go=n("go"),s=t.goBack=n("goBack"),u=t.goForward=n("goForward");t.routerActions={push:o,replace:i,go:a,goBack:s,goForward:u}},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(t,"__esModule",{value:!0}),t.routerMiddleware=t.routerActions=t.goForward=t.goBack=t.go=t.replace=t.push=t.CALL_HISTORY_METHOD=t.routerReducer=t.LOCATION_CHANGE=t.syncHistoryWithStore=void 0;var o=n(224);Object.defineProperty(t,"LOCATION_CHANGE",{enumerable:!0,get:function(){return o.LOCATION_CHANGE}}),Object.defineProperty(t,"routerReducer",{enumerable:!0,get:function(){return o.routerReducer}});var i=n(222);Object.defineProperty(t,"CALL_HISTORY_METHOD",{enumerable:!0,get:function(){return i.CALL_HISTORY_METHOD}}),Object.defineProperty(t,"push",{enumerable:!0,get:function(){return i.push}}),Object.defineProperty(t,"replace",{enumerable:!0,get:function(){return i.replace}}),Object.defineProperty(t,"go",{enumerable:!0,get:function(){return i.go}}),Object.defineProperty(t,"goBack",{enumerable:!0,get:function(){return i.goBack}}),Object.defineProperty(t,"goForward",{enumerable:!0,get:function(){return i.goForward}}),Object.defineProperty(t,"routerActions",{enumerable:!0,get:function(){return i.routerActions}});var a=n(530),s=r(a),u=n(529),l=r(u);t.syncHistoryWithStore=s["default"],t.routerMiddleware=l["default"]},function(e,t){"use strict";function n(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:i,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.type,a=t.payload;return n===o?r({},e,{locationBeforeTransitions:a}):e}Object.defineProperty(t,"__esModule",{value:!0});var r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};t.routerReducer=n;var o=t.LOCATION_CHANGE="@@router/LOCATION_CHANGE",i={locationBeforeTransitions:null}},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}function i(e){return 0===e.button}function a(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function s(e){for(var t in e)if(e.hasOwnProperty(t))return!1;return!0}function u(e,t){var n=t.query,r=t.hash,o=t.state;return n||r||o?{pathname:e,query:n,hash:r,state:o}:e}t.__esModule=!0;var l=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},c=n(1),p=r(c),f=n(13),h=(r(f),p["default"].PropTypes),d=h.bool,y=h.object,m=h.string,v=h.func,g=h.oneOfType,_=p["default"].createClass({displayName:"Link",contextTypes:{router:y},propTypes:{to:g([m,y]).isRequired,query:y,hash:m,state:y,activeStyle:y,activeClassName:m,onlyActiveOnIndex:d.isRequired,onClick:v},getDefaultProps:function(){return{onlyActiveOnIndex:!1,className:"",style:{}}},handleClick:function(e){var t=!0;if(this.props.onClick&&this.props.onClick(e),!a(e)&&i(e)){if(e.defaultPrevented===!0&&(t=!1),this.props.target)return void(t||e.preventDefault());if(e.preventDefault(),t){var n=this.props,r=n.to,o=n.query,s=n.hash,l=n.state,c=u(r,{query:o,hash:s,state:l});this.context.router.push(c)}}},render:function(){var e=this.props,t=e.to,n=e.query,r=e.hash,i=e.state,a=e.activeClassName,c=e.activeStyle,f=e.onlyActiveOnIndex,h=o(e,["to","query","hash","state","activeClassName","activeStyle","onlyActiveOnIndex"]),d=this.context.router;if(d){var y=u(t,{query:n,hash:r,state:i});h.href=d.createHref(y),(a||null!=c&&!s(c))&&d.isActive(y,f)&&(a&&(h.className+=""===h.className?a:" "+a),c&&(h.style=l({},h.style,c)))}return p["default"].createElement("a",l({},h,{onClick:this.handleClick}))}});t["default"]=_,e.exports=t["default"]},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}t.__esModule=!0;var o=n(1),i=r(o),a=n(21),s=r(a),u=n(45),l=n(64),c=n(53),p=i["default"].PropTypes,f=p.string,h=p.object,d=i["default"].createClass({displayName:"Redirect",statics:{createRouteFromReactElement:function(e){var t=u.createRouteFromReactElement(e);return t.from&&(t.path=t.from),t.onEnter=function(e,n){var r=e.location,o=e.params,i=void 0;if("/"===t.to.charAt(0))i=l.formatPattern(t.to,o);else if(t.to){var a=e.routes.indexOf(t),s=d.getRoutePattern(e.routes,a-1),u=s.replace(/\/*$/,"/")+t.to;i=l.formatPattern(u,o)}else i=r.pathname;n({pathname:i,query:t.query||r.query,state:t.state||r.state})},t},getRoutePattern:function(e,t){for(var n="",r=t;r>=0;r--){var o=e[r],i=o.path||"";if(n=i.replace(/\/*$/,"/")+n,0===i.indexOf("/"))break}return"/"+n}},propTypes:{path:f,from:f,to:f.isRequired,query:h,state:h,onEnter:c.falsy,children:c.falsy},render:function(){s["default"](!1)}});t["default"]=d,e.exports=t["default"]},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(e,t){return a({},e,{setRouteLeaveHook:t.listenBeforeLeavingRoute,isActive:t.isActive})}function i(e,t){return e=a({},e,t)}t.__esModule=!0;var a=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};t.createRouterObject=o,t.createRoutingHistory=i;var s=n(230);r(s)},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(e){var t=c["default"](e),n=function(){return t},r=a["default"](u["default"](n))(e);return r.__v2_compatible__=!0,r}t.__esModule=!0,t["default"]=o;var i=n(99),a=r(i),s=n(237),u=r(s),l=n(553),c=r(l);e.exports=t["default"]},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}t.__esModule=!0;var o=n(232),i=r(o),a=!("undefined"==typeof window||!window.document||!window.document.createElement);t["default"]=function(e){var t=void 0;return a&&(t=i["default"](e)()),t},e.exports=t["default"]},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(e,t){if(!a)return e;var n={},r=function(t){"function"==typeof e[t]?n[t]=function(){return e[t].apply(e,arguments)}:Object.defineProperty(n,t,{configurable:!1,enumerable:!1,get:function(){return e[t]}})};for(var o in e)r(o);return n}t.__esModule=!0,t["default"]=o;var i=n(13),a=(r(i),!1);e.exports=t["default"]},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}t.__esModule=!0;var o=n(538),i=r(o);t.Router=i["default"];var a=n(225),s=r(a);t.Link=s["default"];var u=n(532),l=r(u);t.IndexLink=l["default"];var c=n(533),p=r(c);t.IndexRedirect=p["default"];var f=n(534),h=r(f);t.IndexRoute=h["default"];var d=n(226),y=r(d);t.Redirect=y["default"];var m=n(536),v=r(m);t.Route=v["default"];var g=n(531),_=r(g);t.History=_["default"];var b=n(535),T=r(b);t.Lifecycle=T["default"];var P=n(537),x=r(P);t.RouteContext=x["default"];var E=n(549),O=r(E);t.useRoutes=O["default"];var w=n(45);t.createRoutes=w.createRoutes;var C=n(140),S=r(C);t.RouterContext=S["default"];var M=n(539),A=r(M);t.RoutingContext=A["default"];var k=n(53),L=r(k);t.PropTypes=L["default"];var I=n(547),R=r(I);t.match=R["default"];var D=n(232),N=r(D);t.useRouterHistory=N["default"];var j=n(64);t.formatPattern=j.formatPattern;var U=n(541),B=r(U);t.browserHistory=B["default"];var F=n(545),H=r(F);t.hashHistory=H["default"];var z=n(228),G=r(z);t.createMemoryHistory=G["default"]},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(e){return function(t){var n=a["default"](u["default"](e))(t);return n.__v2_compatible__=!0,n}}t.__esModule=!0,t["default"]=o;var i=n(99),a=r(i),s=n(237),u=r(s);e.exports=t["default"]},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(e){return u+e}function i(e,t){try{null==t?window.sessionStorage.removeItem(o(e)):window.sessionStorage.setItem(o(e),JSON.stringify(t))}catch(n){if(n.name===c)return;if(l.indexOf(n.name)>=0&&0===window.sessionStorage.length)return;throw n}}function a(e){var t=void 0;try{t=window.sessionStorage.getItem(o(e))}catch(n){if(n.name===c)return null}if(t)try{return JSON.parse(t)}catch(n){}return null}t.__esModule=!0,t.saveState=i,t.readState=a;var s=n(31),u=(r(s),"@@History/"),l=["QuotaExceededError","QUOTA_EXCEEDED_ERR"],c="SecurityError"},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(e){function t(e){return u.canUseDOM?void 0:s["default"](!1),n.listen(e)}var n=p["default"](i({getUserConfirmation:l.getUserConfirmation},e,{go:l.go}));return i({},n,{listen:t})}t.__esModule=!0;var i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},a=n(21),s=r(a),u=n(98),l=n(142),c=n(236),p=r(c);t["default"]=o,e.exports=t["default"]},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(e){return"string"==typeof e&&"/"===e.charAt(0)}function i(){var e=v.getHashPath();return o(e)?!0:(v.replaceHashPath("/"+e),!1)}function a(e,t,n){return e+(-1===e.indexOf("?")?"?":"&")+(t+"="+n)}function s(e,t){return e.replace(new RegExp("[?&]?"+t+"=[a-zA-Z0-9]+"),"")}function u(e,t){var n=e.match(new RegExp("\\?.*?\\b"+t+"=(.+?)\\b"));return n&&n[1]}function l(){function e(){var e=v.getHashPath(),t=void 0,n=void 0;C?(t=u(e,C),e=s(e,C),t?n=g.readState(t):(n=null,t=S.createKey(),v.replaceHashPath(a(e,C,t)))):t=n=null;var r=y.parsePath(e);return S.createLocation(c({},r,{state:n}),void 0,t)}function t(t){function n(){i()&&r(e())}var r=t.transitionTo;return i(),v.addEventListener(window,"hashchange",n),function(){v.removeEventListener(window,"hashchange",n)}}function n(e){var t=e.basename,n=e.pathname,r=e.search,o=e.state,i=e.action,s=e.key;if(i!==d.POP){var u=(t||"")+n+r;C?(u=a(u,C,s),g.saveState(s,o)):e.key=e.state=null;var l=v.getHashPath();i===d.PUSH?l!==u&&(window.location.hash=u):l!==u&&v.replaceHashPath(u)}}function r(e){1===++M&&(A=t(S));var n=S.listenBefore(e);return function(){n(),0===--M&&A()}}function o(e){1===++M&&(A=t(S));var n=S.listen(e);return function(){n(),0===--M&&A()}}function l(e){S.push(e)}function p(e){S.replace(e)}function f(e){S.go(e)}function _(e){return"#"+S.createHref(e)}function P(e){1===++M&&(A=t(S)),S.registerTransitionHook(e)}function x(e){S.unregisterTransitionHook(e),0===--M&&A()}function E(e,t){S.pushState(e,t)}function O(e,t){S.replaceState(e,t)}var w=arguments.length<=0||void 0===arguments[0]?{}:arguments[0];m.canUseDOM?void 0:h["default"](!1);var C=w.queryKey;(void 0===C||C)&&(C="string"==typeof C?C:T);var S=b["default"](c({},w,{getCurrentLocation:e,finishTransition:n,saveState:g.saveState})),M=0,A=void 0;v.supportsGoWithoutReloadUsingHash();return c({},S,{listenBefore:r,listen:o,push:l,replace:p,go:f,createHref:_,registerTransitionHook:P,unregisterTransitionHook:x,pushState:E,replaceState:O})}t.__esModule=!0;var c=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},p=n(31),f=(r(p),n(21)),h=r(f),d=n(65),y=n(54),m=n(98),v=n(142),g=n(233),_=n(234),b=r(_),T="_k";t["default"]=l,e.exports=t["default"]},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(e){return Math.random().toString(36).substr(2,e)}function i(e,t){return e.pathname===t.pathname&&e.search===t.search&&e.key===t.key&&p["default"](e.state,t.state)}function a(){function e(e){return B.push(e),function(){B=B.filter(function(t){return t!==e})}}function t(){return G&&G.action===d.POP?F.indexOf(G.key):z?F.indexOf(z.key):-1}function n(e){var n=t();z=e,z.action===d.PUSH?F=[].concat(F.slice(0,n+1),[z.key]):z.action===d.REPLACE&&(F[n]=z.key),H.forEach(function(e){e(z)})}function r(e){if(H.push(e),z)e(z);else{var t=I();F=[t.key],n(t)}return function(){H=H.filter(function(t){return t!==e})}}function a(e,t){h.loopAsync(B.length,function(t,n,r){g["default"](B[t],e,function(e){null!=e?r(e):n()})},function(e){j&&"string"==typeof e?j(e,function(e){t(e!==!1)}):t(e!==!1)})}function l(e){z&&i(z,e)||(G=e,a(e,function(t){if(G===e)if(t){if(e.action===d.PUSH){var r=x(z),o=x(e);o===r&&p["default"](z.state,e.state)&&(e.action=d.REPLACE)}R(e)!==!1&&n(e)}else if(z&&e.action===d.POP){var i=F.indexOf(z.key),a=F.indexOf(e.key);-1!==i&&-1!==a&&N(i-a)}}))}function c(e){l(O(e,d.PUSH,P()))}function y(e){l(O(e,d.REPLACE,P()))}function v(){N(-1)}function _(){N(1)}function P(){return o(U)}function x(e){if(null==e||"string"==typeof e)return e;var t=e.pathname,n=e.search,r=e.hash,o=t;return n&&(o+=n),r&&(o+=r),o}function E(e){return x(e)}function O(e,t){var n=arguments.length<=2||void 0===arguments[2]?P():arguments[2];return"object"===("undefined"==typeof t?"undefined":s(t))&&("string"==typeof e&&(e=f.parsePath(e)),e=u({},e,{state:t}),t=n,n=arguments[3]||P()),m["default"](e,t,n)}function w(e){z?(C(z,e),n(z)):C(I(),e)}function C(e,t){e.state=u({},e.state,t),D(e.key,e.state)}function S(e){-1===B.indexOf(e)&&B.push(e)}function M(e){B=B.filter(function(t){return t!==e})}function A(e,t){"string"==typeof t&&(t=f.parsePath(t)),c(u({state:e},t))}function k(e,t){"string"==typeof t&&(t=f.parsePath(t)),y(u({state:e},t))}var L=arguments.length<=0||void 0===arguments[0]?{}:arguments[0],I=L.getCurrentLocation,R=L.finishTransition,D=L.saveState,N=L.go,j=L.getUserConfirmation,U=L.keyLength;"number"!=typeof U&&(U=T);var B=[],F=[],H=[],z=void 0,G=void 0;return{listenBefore:e,listen:r,transitionTo:l,push:c,replace:y,go:N,goBack:v,goForward:_,createKey:P,createPath:x,createHref:E,createLocation:O,setState:b["default"](w,"setState is deprecated; use location.key to save state instead"),registerTransitionHook:b["default"](S,"registerTransitionHook is deprecated; use listenBefore instead"),unregisterTransitionHook:b["default"](M,"unregisterTransitionHook is deprecated; use the callback returned from listenBefore instead"),pushState:b["default"](A,"pushState is deprecated; use push instead"),replaceState:b["default"](k,"replaceState is deprecated; use replace instead")}}var s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol?"symbol":typeof e};t.__esModule=!0;var u=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},l=n(31),c=(r(l),n(554)),p=r(c),f=n(54),h=n(550),d=n(65),y=n(552),m=r(y),v=n(144),g=r(v),_=n(143),b=r(_),T=6;t["default"]=a,e.exports=t["default"]},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(e){return function(){function t(e){return _&&null==e.basename&&(0===e.pathname.indexOf(_)?(e.pathname=e.pathname.substring(_.length),e.basename=_,""===e.pathname&&(e.pathname="/")):e.basename=""),e}function n(e){if(!_)return e;"string"==typeof e&&(e=s.parsePath(e));var t=e.pathname,n="/"===_.slice(-1)?_:_+"/",r="/"===t.charAt(0)?t.slice(1):t,o=n+r;return i({},e,{pathname:o})}function r(e){return g.listenBefore(function(n,r){l["default"](e,t(n),r)})}function o(e){return g.listen(function(n){e(t(n))})}function u(e){g.push(n(e))}function c(e){g.replace(n(e))}function f(e){return g.createPath(n(e))}function h(e){return g.createHref(n(e))}function d(e){for(var r=arguments.length,o=Array(r>1?r-1:0),i=1;r>i;i++)o[i-1]=arguments[i];return t(g.createLocation.apply(g,[n(e)].concat(o)))}function y(e,t){"string"==typeof t&&(t=s.parsePath(t)),u(i({state:e},t))}function m(e,t){"string"==typeof t&&(t=s.parsePath(t)),c(i({state:e},t))}var v=arguments.length<=0||void 0===arguments[0]?{}:arguments[0],g=e(v),_=v.basename;if(null==_&&a.canUseDOM){var b=document.getElementsByTagName("base")[0];b&&(_=s.extractPath(b.href))}return i({},g,{listenBefore:r,listen:o,push:u,replace:c,createPath:f,createHref:h,createLocation:d,pushState:p["default"](y,"pushState is deprecated; use push instead"),replaceState:p["default"](m,"replaceState is deprecated; use replace instead")})}}t.__esModule=!0;var i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},a=n(98),s=n(54),u=n(144),l=r(u),c=n(143),p=r(c);t["default"]=o,e.exports=t["default"]},function(e,t){"use strict";function n(e,t){return e+t.charAt(0).toUpperCase()+t.substring(1)}var r={animationIterationCount:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,stopOpacity:!0,strokeDashoffset:!0,strokeOpacity:!0,strokeWidth:!0},o=["Webkit","ms","Moz","O"];Object.keys(r).forEach(function(e){o.forEach(function(t){r[n(t,e)]=r[e]})});var i={background:{backgroundAttachment:!0,backgroundColor:!0,backgroundImage:!0,backgroundPositionX:!0,backgroundPositionY:!0,backgroundRepeat:!0},backgroundPosition:{backgroundPositionX:!0,backgroundPositionY:!0},border:{borderWidth:!0,borderStyle:!0,borderColor:!0},borderBottom:{borderBottomWidth:!0,borderBottomStyle:!0,borderBottomColor:!0},borderLeft:{borderLeftWidth:!0,borderLeftStyle:!0,borderLeftColor:!0},borderRight:{borderRightWidth:!0,borderRightStyle:!0,borderRightColor:!0},borderTop:{borderTopWidth:!0,borderTopStyle:!0,borderTopColor:!0},font:{fontStyle:!0,fontVariant:!0,fontWeight:!0,fontSize:!0,lineHeight:!0,fontFamily:!0},outline:{outlineWidth:!0,outlineStyle:!0,outlineColor:!0}},a={isUnitlessNumber:r,shorthandPropertyExpansions:i};e.exports=a},function(e,t,n){"use strict";function r(e,t,n){var r=n>=e.childNodes.length?null:e.childNodes.item(n);e.insertBefore(t,r)}var o=n(564),i=n(258),a=n(25),s=n(107),u=n(160),l=n(3),c={dangerouslyReplaceNodeWithMarkup:o.dangerouslyReplaceNodeWithMarkup,updateTextContent:u,processUpdates:function(e,t){for(var n,a=null,c=null,p=0;p<e.length;p++)if(n=e[p],n.type===i.MOVE_EXISTING||n.type===i.REMOVE_NODE){var f=n.fromIndex,h=n.parentNode.childNodes[f],d=n.parentID;h?void 0:l(!1),a=a||{},a[d]=a[d]||[],a[d][f]=h,c=c||[],c.push(h)}var y;if(y=t.length&&"string"==typeof t[0]?o.dangerouslyRenderMarkup(t):t,c)for(var m=0;m<c.length;m++)c[m].parentNode.removeChild(c[m]);for(var v=0;v<e.length;v++)switch(n=e[v],n.type){case i.INSERT_MARKUP:r(n.parentNode,y[n.markupIndex],n.toIndex);break;case i.MOVE_EXISTING:r(n.parentNode,a[n.parentID][n.fromIndex],n.toIndex);break;case i.SET_MARKUP:s(n.parentNode,n.content);break;case i.TEXT_CONTENT:u(n.parentNode,n.content);break;case i.REMOVE_NODE:}}};a.measureMethods(c,"DOMChildrenOperations",{updateTextContent:"updateTextContent"}),e.exports=c},function(e,t,n){"use strict";function r(){if(s)for(var e in u){var t=u[e],n=s.indexOf(e);if(n>-1?void 0:a(!1),!l.plugins[n]){t.extractEvents?void 0:a(!1),l.plugins[n]=t;var r=t.eventTypes;for(var i in r)o(r[i],t,i)?void 0:a(!1)}}}function o(e,t,n){l.eventNameDispatchConfigs.hasOwnProperty(n)?a(!1):void 0,l.eventNameDispatchConfigs[n]=e;var r=e.phasedRegistrationNames;if(r){for(var o in r)if(r.hasOwnProperty(o)){var s=r[o];i(s,t,n)}return!0}return e.registrationName?(i(e.registrationName,t,n),!0):!1}function i(e,t,n){l.registrationNameModules[e]?a(!1):void 0,l.registrationNameModules[e]=t,l.registrationNameDependencies[e]=t.eventTypes[n].dependencies}var a=n(3),s=null,u={},l={plugins:[],eventNameDispatchConfigs:{},registrationNameModules:{},registrationNameDependencies:{},injectEventPluginOrder:function(e){s?a(!1):void 0,s=Array.prototype.slice.call(e),r()},injectEventPluginsByName:function(e){var t=!1;for(var n in e)if(e.hasOwnProperty(n)){var o=e[n];u.hasOwnProperty(n)&&u[n]===o||(u[n]?a(!1):void 0,u[n]=o,t=!0)}t&&r()},getPluginModuleForEvent:function(e){var t=e.dispatchConfig;if(t.registrationName)return l.registrationNameModules[t.registrationName]||null;for(var n in t.phasedRegistrationNames)if(t.phasedRegistrationNames.hasOwnProperty(n)){var r=l.registrationNameModules[t.phasedRegistrationNames[n]];if(r)return r}return null},_resetEventPlugins:function(){s=null;for(var e in u)u.hasOwnProperty(e)&&delete u[e];l.plugins.length=0;var t=l.eventNameDispatchConfigs;for(var n in t)t.hasOwnProperty(n)&&delete t[n];var r=l.registrationNameModules;for(var o in r)r.hasOwnProperty(o)&&delete r[o]}};e.exports=l},function(e,t,n){"use strict";var r=n(245),o=n(248),i=n(583),a=n(6),s=n(607),u={};a(u,i),a(u,{findDOMNode:s("findDOMNode","ReactDOM","react-dom",r,r.findDOMNode),render:s("render","ReactDOM","react-dom",r,r.render),unmountComponentAtNode:s("unmountComponentAtNode","ReactDOM","react-dom",r,r.unmountComponentAtNode),renderToString:s("renderToString","ReactDOMServer","react-dom/server",o,o.renderToString),renderToStaticMarkup:s("renderToStaticMarkup","ReactDOMServer","react-dom/server",o,o.renderToStaticMarkup)}),u.__SECRET_DOM_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=r,u.__SECRET_DOM_SERVER_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=o,e.exports=u},function(e,t,n){"use strict";function r(e){return(""+e).replace(b,"//")}function o(e,t){this.func=e,this.context=t,this.count=0}function i(e,t,n){var r=e.func,o=e.context;r.call(o,t,e.count++)}function a(e,t,n){if(null==e)return e;var r=o.getPooled(t,n);v(e,i,r),o.release(r)}function s(e,t,n,r){this.result=e,this.keyPrefix=t,this.func=n,this.context=r,this.count=0}function u(e,t,n){var o=e.result,i=e.keyPrefix,a=e.func,s=e.context,u=a.call(s,t,e.count++);Array.isArray(u)?l(u,o,n,m.thatReturnsArgument):null!=u&&(y.isValidElement(u)&&(u=y.cloneAndReplaceKey(u,i+(u!==t?r(u.key||"")+"/":"")+n)),o.push(u))}function l(e,t,n,o,i){var a="";null!=n&&(a=r(n)+"/");var l=s.getPooled(t,a,o,i);v(e,u,l),s.release(l)}function c(e,t,n){if(null==e)return e;var r=[];return l(e,r,null,t,n),r}function p(e,t,n){return null}function f(e,t){return v(e,p,null)}function h(e){var t=[];return l(e,t,null,m.thatReturnsArgument),t}var d=n(46),y=n(19),m=n(27),v=n(162),g=d.twoArgumentPooler,_=d.fourArgumentPooler,b=/\/(?!\/)/g;o.prototype.destructor=function(){this.func=null,this.context=null,this.count=0},d.addPoolingTo(o,g),s.prototype.destructor=function(){this.result=null,this.keyPrefix=null,this.func=null,this.context=null,this.count=0},d.addPoolingTo(s,_);var T={forEach:a,map:c,mapIntoWithKeyPrefixInternal:l,count:f,toArray:h};e.exports=T},function(e,t,n){"use strict";function r(e,t){var n=x.hasOwnProperty(t)?x[t]:null;O.hasOwnProperty(t)&&(n!==T.OVERRIDE_BASE?v(!1):void 0),e.hasOwnProperty(t)&&(n!==T.DEFINE_MANY&&n!==T.DEFINE_MANY_MERGED?v(!1):void 0)}function o(e,t){if(t){"function"==typeof t?v(!1):void 0,h.isValidElement(t)?v(!1):void 0;var n=e.prototype;t.hasOwnProperty(b)&&E.mixins(e,t.mixins);for(var o in t)if(t.hasOwnProperty(o)&&o!==b){var i=t[o];if(r(n,o),E.hasOwnProperty(o))E[o](e,i);else{var a=x.hasOwnProperty(o),l=n.hasOwnProperty(o),c="function"==typeof i,p=c&&!a&&!l&&t.autobind!==!1;if(p)n.__reactAutoBindMap||(n.__reactAutoBindMap={}),n.__reactAutoBindMap[o]=i,n[o]=i;else if(l){var f=x[o];!a||f!==T.DEFINE_MANY_MERGED&&f!==T.DEFINE_MANY?v(!1):void 0,f===T.DEFINE_MANY_MERGED?n[o]=s(n[o],i):f===T.DEFINE_MANY&&(n[o]=u(n[o],i))}else n[o]=i}}}}function i(e,t){if(t)for(var n in t){var r=t[n];if(t.hasOwnProperty(n)){var o=n in E;o?v(!1):void 0;var i=n in e;i?v(!1):void 0,e[n]=r}}}function a(e,t){e&&t&&"object"===("undefined"==typeof e?"undefined":p(e))&&"object"===("undefined"==typeof t?"undefined":p(t))?void 0:v(!1);for(var n in t)t.hasOwnProperty(n)&&(void 0!==e[n]?v(!1):void 0,e[n]=t[n]);return e}function s(e,t){return function(){var n=e.apply(this,arguments),r=t.apply(this,arguments);if(null==n)return r;if(null==r)return n;var o={};return a(o,n),a(o,r),o}}function u(e,t){return function(){e.apply(this,arguments),t.apply(this,arguments)}}function l(e,t){var n=t.bind(e);return n}function c(e){for(var t in e.__reactAutoBindMap)if(e.__reactAutoBindMap.hasOwnProperty(t)){var n=e.__reactAutoBindMap[t];e[t]=l(e,n)}}var p="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol?"symbol":typeof e},f=n(244),h=n(19),d=(n(102),n(101),n(260)),y=n(6),m=n(81),v=n(3),g=n(108),_=n(47),b=(n(7),_({mixins:null})),T=g({DEFINE_ONCE:null,DEFINE_MANY:null,OVERRIDE_BASE:null,DEFINE_MANY_MERGED:null}),P=[],x={mixins:T.DEFINE_MANY,statics:T.DEFINE_MANY,propTypes:T.DEFINE_MANY,contextTypes:T.DEFINE_MANY,childContextTypes:T.DEFINE_MANY,getDefaultProps:T.DEFINE_MANY_MERGED,getInitialState:T.DEFINE_MANY_MERGED,getChildContext:T.DEFINE_MANY_MERGED,render:T.DEFINE_ONCE,componentWillMount:T.DEFINE_MANY,componentDidMount:T.DEFINE_MANY,componentWillReceiveProps:T.DEFINE_MANY,shouldComponentUpdate:T.DEFINE_ONCE,componentWillUpdate:T.DEFINE_MANY,componentDidUpdate:T.DEFINE_MANY,componentWillUnmount:T.DEFINE_MANY,updateComponent:T.OVERRIDE_BASE},E={displayName:function(e,t){e.displayName=t},mixins:function(e,t){if(t)for(var n=0;n<t.length;n++)o(e,t[n])},childContextTypes:function(e,t){e.childContextTypes=y({},e.childContextTypes,t)},contextTypes:function(e,t){e.contextTypes=y({},e.contextTypes,t)},getDefaultProps:function(e,t){e.getDefaultProps?e.getDefaultProps=s(e.getDefaultProps,t):e.getDefaultProps=t},propTypes:function(e,t){e.propTypes=y({},e.propTypes,t)},statics:function(e,t){i(e,t)},autobind:function(){}},O={replaceState:function(e,t){this.updater.enqueueReplaceState(this,e),t&&this.updater.enqueueCallback(this,t)},isMounted:function(){return this.updater.isMounted(this)},setProps:function(e,t){this.updater.enqueueSetProps(this,e),t&&this.updater.enqueueCallback(this,t)},replaceProps:function(e,t){this.updater.enqueueReplaceProps(this,e),t&&this.updater.enqueueCallback(this,t)}},w=function(){};y(w.prototype,f.prototype,O);var C={createClass:function(e){var t=function r(e,t,n){this.__reactAutoBindMap&&c(this),this.props=e,this.context=t,this.refs=m,this.updater=n||d,this.state=null;var r=this.getInitialState?this.getInitialState():null;"object"!==("undefined"==typeof r?"undefined":p(r))||Array.isArray(r)?v(!1):void 0,this.state=r};t.prototype=new w,t.prototype.constructor=t,P.forEach(o.bind(null,t)),o(t,e),t.getDefaultProps&&(t.defaultProps=t.getDefaultProps()),t.prototype.render?void 0:v(!1);for(var n in x)t.prototype[n]||(t.prototype[n]=null);return t},injection:{injectMixin:function(e){P.push(e)}}};e.exports=C},function(e,t,n){"use strict";function r(e,t,n){this.props=e,this.context=t,this.refs=a,this.updater=n||i}var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol?"symbol":typeof e},i=n(260),a=(n(105),n(81)),s=n(3);n(7);r.prototype.isReactComponent={},r.prototype.setState=function(e,t){"object"!==("undefined"==typeof e?"undefined":o(e))&&"function"!=typeof e&&null!=e?s(!1):void 0,this.updater.enqueueSetState(this,e),t&&this.updater.enqueueCallback(this,t)},r.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this),e&&this.updater.enqueueCallback(this,e)};e.exports=r},function(e,t,n){"use strict";var r=n(35),o=n(249),i=n(251),a=n(67),s=n(15),u=n(25),l=n(55),c=n(26),p=n(152),f=n(153),h=n(612);n(7);i.inject();var d=u.measure("React","render",s.render),y={findDOMNode:f,render:d,unmountComponentAtNode:s.unmountComponentAtNode,version:p,unstable_batchedUpdates:c.batchedUpdates,unstable_renderSubtreeIntoContainer:h};"undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.inject&&__REACT_DEVTOOLS_GLOBAL_HOOK__.inject({CurrentOwner:r,InstanceHandles:a,Mount:s,Reconciler:l,TextComponent:o});e.exports=y},function(e,t){"use strict";var n={useCreateElement:!1};e.exports=n},function(e,t,n){"use strict";function r(){if(this._rootNodeID&&this._wrapperState.pendingUpdate){this._wrapperState.pendingUpdate=!1;var e=this._currentElement.props,t=a.getValue(e);null!=t&&o(this,Boolean(e.multiple),t)}}function o(e,t,n){var r,o,i=s.getNode(e._rootNodeID).options;if(t){for(r={},o=0;o<n.length;o++)r[""+n[o]]=!0;for(o=0;o<i.length;o++){var a=r.hasOwnProperty(i[o].value);i[o].selected!==a&&(i[o].selected=a)}}else{for(r=""+n,o=0;o<i.length;o++)if(i[o].value===r)return void(i[o].selected=!0);i.length&&(i[0].selected=!0)}}function i(e){var t=this._currentElement.props,n=a.executeOnChange(t,e);return this._wrapperState.pendingUpdate=!0,u.asap(r,this),n}var a=n(147),s=n(15),u=n(26),l=n(6),c=(n(7),"__ReactDOMSelect_value$"+Math.random().toString(36).slice(2)),p={valueContextKey:c,getNativeProps:function(e,t,n){return l({},t,{onChange:e._wrapperState.onChange,value:void 0})},mountWrapper:function(e,t){var n=a.getValue(t);e._wrapperState={pendingUpdate:!1,initialValue:null!=n?n:t.defaultValue,onChange:i.bind(e),wasMultiple:Boolean(t.multiple)}},processChildContext:function(e,t,n){var r=l({},n);return r[c]=e._wrapperState.initialValue,r},postUpdateWrapper:function(e){var t=e._currentElement.props;e._wrapperState.initialValue=void 0;var n=e._wrapperState.wasMultiple;e._wrapperState.wasMultiple=Boolean(t.multiple);var r=a.getValue(t);null!=r?(e._wrapperState.pendingUpdate=!1,o(e,Boolean(t.multiple),r)):n!==Boolean(t.multiple)&&(null!=t.defaultValue?o(e,Boolean(t.multiple),t.defaultValue):o(e,Boolean(t.multiple),t.multiple?[]:""))}};e.exports=p},function(e,t,n){"use strict";var r=n(251),o=n(589),i=n(152);r.inject();var a={renderToString:o.renderToString,renderToStaticMarkup:o.renderToStaticMarkup,version:i};e.exports=a},function(e,t,n){"use strict";var r=n(239),o=n(146),i=n(148),a=n(15),s=n(6),u=n(106),l=n(160),c=(n(163),function(e){});s(c.prototype,{construct:function(e){this._currentElement=e,this._stringText=""+e,this._rootNodeID=null,this._mountIndex=0},mountComponent:function(e,t,n){if(this._rootNodeID=e,t.useCreateElement){var r=n[a.ownerDocumentContextKey],i=r.createElement("span");return o.setAttributeForID(i,e),a.getID(i),l(i,this._stringText),i}var s=u(this._stringText);return t.renderToStaticMarkup?s:"<span "+o.createMarkupForID(e)+">"+s+"</span>"},receiveComponent:function(e,t){if(e!==this._currentElement){this._currentElement=e;var n=""+e;if(n!==this._stringText){this._stringText=n;var o=a.getNode(this._rootNodeID);r.updateTextContent(o,n)}}},unmountComponent:function(){i.unmountIDFromEnvironment(this._rootNodeID)}}),e.exports=c},function(e,t,n){"use strict";function r(){this.reinitializeTransaction()}var o=n(26),i=n(104),a=n(6),s=n(27),u={initialize:s,
  close:function(){f.isBatchingUpdates=!1}},l={initialize:s,close:o.flushBatchedUpdates.bind(o)},c=[l,u];a(r.prototype,i.Mixin,{getTransactionWrappers:function(){return c}});var p=new r,f={isBatchingUpdates:!1,batchedUpdates:function(e,t,n,r,o,i){var a=f.isBatchingUpdates;f.isBatchingUpdates=!0,a?e(t,n,r,o,i):p.perform(e,null,t,n,r,o,i)}};e.exports=f},function(e,t,n){"use strict";function r(){if(!O){O=!0,v.EventEmitter.injectReactEventListener(m),v.EventPluginHub.injectEventPluginOrder(s),v.EventPluginHub.injectInstanceHandle(g),v.EventPluginHub.injectMount(_),v.EventPluginHub.injectEventPluginsByName({SimpleEventPlugin:x,EnterLeaveEventPlugin:u,ChangeEventPlugin:i,SelectEventPlugin:T,BeforeInputEventPlugin:o}),v.NativeComponent.injectGenericComponentClass(d),v.NativeComponent.injectTextComponentClass(y),v.Class.injectMixin(p),v.DOMProperty.injectDOMPropertyConfig(c),v.DOMProperty.injectDOMPropertyConfig(E),v.EmptyComponent.injectEmptyComponent("noscript"),v.Updates.injectReconcileTransaction(b),v.Updates.injectBatchingStrategy(h),v.RootIndex.injectCreateReactRootIndex(l.canUseDOM?a.createReactRootIndex:P.createReactRootIndex),v.Component.injectEnvironment(f)}}var o=n(560),i=n(562),a=n(563),s=n(565),u=n(566),l=n(14),c=n(569),p=n(570),f=n(148),h=n(250),d=n(574),y=n(249),m=n(581),v=n(582),g=n(67),_=n(15),b=n(586),T=n(594),P=n(595),x=n(596),E=n(593),O=!1;e.exports={inject:r}},function(e,t,n){"use strict";function r(){if(f.current){var e=f.current.getName();if(e)return" Check the render method of `"+e+"`."}return""}function o(e,t){if(e._store&&!e._store.validated&&null==e.key){e._store.validated=!0;i("uniqueKey",e,t)}}function i(e,t,n){var o=r();if(!o){var i="string"==typeof n?n:n.displayName||n.name;i&&(o=" Check the top-level render call using <"+i+">.")}var a=y[e]||(y[e]={});if(a[o])return null;a[o]=!0;var s={parentOrOwner:o,url:" See https://fb.me/react-warning-keys for more information.",childOwner:null};return t&&t._owner&&t._owner!==f.current&&(s.childOwner=" It was passed a child from "+t._owner.getName()+"."),s}function a(e,t){if("object"===("undefined"==typeof e?"undefined":l(e)))if(Array.isArray(e))for(var n=0;n<e.length;n++){var r=e[n];c.isValidElement(r)&&o(r,t)}else if(c.isValidElement(e))e._store&&(e._store.validated=!0);else if(e){var i=h(e);if(i&&i!==e.entries)for(var a,s=i.call(e);!(a=s.next()).done;)c.isValidElement(a.value)&&o(a.value,t)}}function s(e,t,n,o){for(var i in t)if(t.hasOwnProperty(i)){var a;try{"function"!=typeof t[i]?d(!1):void 0,a=t[i](n,i,e,o)}catch(s){a=s}if(a instanceof Error&&!(a.message in m)){m[a.message]=!0;r()}}}function u(e){var t=e.type;if("function"==typeof t){var n=t.displayName||t.name;t.propTypes&&s(n,t.propTypes,e.props,p.prop),"function"==typeof t.getDefaultProps}}var l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol?"symbol":typeof e},c=n(19),p=n(102),f=(n(101),n(35)),h=(n(105),n(157)),d=n(3),y=(n(7),{}),m={},v={createElement:function(e,t,n){var r="string"==typeof e||"function"==typeof e,o=c.createElement.apply(this,arguments);if(null==o)return o;if(r)for(var i=2;i<arguments.length;i++)a(arguments[i],e);return u(o),o},createFactory:function(e){var t=v.createElement.bind(null,e);return t.type=e,t},cloneElement:function(e,t,n){for(var r=c.cloneElement.apply(this,arguments),o=2;o<arguments.length;o++)a(arguments[o],r.type);return u(r),r}};e.exports=v},function(e,t,n){"use strict";function r(){a.registerNullComponentID(this._rootNodeID)}var o,i=n(19),a=n(254),s=n(55),u=n(6),l={injectEmptyComponent:function(e){o=i.createElement(e)}},c=function(e){this._currentElement=null,this._rootNodeID=null,this._renderedComponent=e(o)};u(c.prototype,{construct:function(e){},mountComponent:function(e,t,n){return t.getReactMountReady().enqueue(r,this),this._rootNodeID=e,s.mountComponent(this._renderedComponent,e,t,n)},receiveComponent:function(){},unmountComponent:function(e,t,n){s.unmountComponent(this._renderedComponent),a.deregisterNullComponentID(this._rootNodeID),this._rootNodeID=null,this._renderedComponent=null}}),c.injection=l,e.exports=c},function(e,t){"use strict";function n(e){return!!i[e]}function r(e){i[e]=!0}function o(e){delete i[e]}var i={},a={isNullComponentID:n,registerNullComponentID:r,deregisterNullComponentID:o};e.exports=a},function(e,t,n){"use strict";function r(e,t,n,r){try{return t(n,r)}catch(i){return void(null===o&&(o=i))}}var o=null,i={invokeGuardedCallback:r,invokeGuardedCallbackWithCatch:r,rethrowCaughtError:function(){if(o){var e=o;throw o=null,e}}};e.exports=i},function(e,t,n){"use strict";function r(e){return i(document.documentElement,e)}var o=n(578),i=n(270),a=n(271),s=n(272),u={hasSelectionCapabilities:function(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&("input"===t&&"text"===e.type||"textarea"===t||"true"===e.contentEditable)},getSelectionInformation:function(){var e=s();return{focusedElem:e,selectionRange:u.hasSelectionCapabilities(e)?u.getSelection(e):null}},restoreSelection:function(e){var t=s(),n=e.focusedElem,o=e.selectionRange;t!==n&&r(n)&&(u.hasSelectionCapabilities(n)&&u.setSelection(n,o),a(n))},getSelection:function(e){var t;if("selectionStart"in e)t={start:e.selectionStart,end:e.selectionEnd};else if(document.selection&&e.nodeName&&"input"===e.nodeName.toLowerCase()){var n=document.selection.createRange();n.parentElement()===e&&(t={start:-n.moveStart("character",-e.value.length),end:-n.moveEnd("character",-e.value.length)})}else t=o.getOffsets(e);return t||{start:0,end:0}},setSelection:function(e,t){var n=t.start,r=t.end;if("undefined"==typeof r&&(r=n),"selectionStart"in e)e.selectionStart=n,e.selectionEnd=Math.min(r,e.value.length);else if(document.selection&&e.nodeName&&"input"===e.nodeName.toLowerCase()){var i=e.createTextRange();i.collapse(!0),i.moveStart("character",n),i.moveEnd("character",r-n),i.select()}else o.setOffsets(e,t)}};e.exports=u},function(e,t,n){"use strict";var r=n(605),o=/\/?>/,i={CHECKSUM_ATTR_NAME:"data-react-checksum",addChecksumToMarkup:function(e){var t=r(e);return e.replace(o," "+i.CHECKSUM_ATTR_NAME+'="'+t+'"$&')},canReuseMarkup:function(e,t){var n=t.getAttribute(i.CHECKSUM_ATTR_NAME);n=n&&parseInt(n,10);var o=r(e);return o===n}};e.exports=i},function(e,t,n){"use strict";var r=n(108),o=r({INSERT_MARKUP:null,MOVE_EXISTING:null,REMOVE_NODE:null,SET_MARKUP:null,TEXT_CONTENT:null});e.exports=o},function(e,t,n){"use strict";function r(e){if("function"==typeof e.type)return e.type;var t=e.type,n=p[t];return null==n&&(p[t]=n=l(t)),n}function o(e){return c?void 0:u(!1),new c(e.type,e.props)}function i(e){return new f(e)}function a(e){return e instanceof f}var s=n(6),u=n(3),l=null,c=null,p={},f=null,h={injectGenericComponentClass:function(e){c=e},injectTextComponentClass:function(e){f=e},injectComponentClasses:function(e){s(p,e)}},d={getComponentClassForElement:r,createInternalComponent:o,createInstanceForText:i,isTextComponent:a,injection:h};e.exports=d},function(e,t,n){"use strict";function r(e,t){}var o=(n(7),{isMounted:function(e){return!1},enqueueCallback:function(e,t){},enqueueForceUpdate:function(e){r(e,"forceUpdate")},enqueueReplaceState:function(e,t){r(e,"replaceState")},enqueueSetState:function(e,t){r(e,"setState")},enqueueSetProps:function(e,t){r(e,"setProps")},enqueueReplaceProps:function(e,t){r(e,"replaceProps")}});e.exports=o},function(e,t,n){"use strict";function r(e){function t(t,n,r,o,i,a){if(o=o||x,a=a||r,null==n[r]){var s=b[i];return t?new Error("Required "+s+" `"+a+"` was not specified in "+("`"+o+"`.")):null}return e(n,r,o,i,a)}var n=t.bind(null,!1);return n.isRequired=t.bind(null,!0),n}function o(e){function t(t,n,r,o,i){var a=t[n],s=y(a);if(s!==e){var u=b[o],l=m(a);return new Error("Invalid "+u+" `"+i+"` of type "+("`"+l+"` supplied to `"+r+"`, expected ")+("`"+e+"`."))}return null}return r(t)}function i(){return r(T.thatReturns(null))}function a(e){function t(t,n,r,o,i){var a=t[n];if(!Array.isArray(a)){var s=b[o],u=y(a);return new Error("Invalid "+s+" `"+i+"` of type "+("`"+u+"` supplied to `"+r+"`, expected an array."))}for(var l=0;l<a.length;l++){var c=e(a,l,r,o,i+"["+l+"]");if(c instanceof Error)return c}return null}return r(t)}function s(){function e(e,t,n,r,o){if(!_.isValidElement(e[t])){var i=b[r];return new Error("Invalid "+i+" `"+o+"` supplied to "+("`"+n+"`, expected a single ReactElement."))}return null}return r(e)}function u(e){function t(t,n,r,o,i){if(!(t[n]instanceof e)){var a=b[o],s=e.name||x,u=v(t[n]);return new Error("Invalid "+a+" `"+i+"` of type "+("`"+u+"` supplied to `"+r+"`, expected ")+("instance of `"+s+"`."))}return null}return r(t)}function l(e){function t(t,n,r,o,i){for(var a=t[n],s=0;s<e.length;s++)if(a===e[s])return null;var u=b[o],l=JSON.stringify(e);return new Error("Invalid "+u+" `"+i+"` of value `"+a+"` "+("supplied to `"+r+"`, expected one of "+l+"."))}return r(Array.isArray(e)?t:function(){return new Error("Invalid argument supplied to oneOf, expected an instance of array.")})}function c(e){function t(t,n,r,o,i){var a=t[n],s=y(a);if("object"!==s){var u=b[o];return new Error("Invalid "+u+" `"+i+"` of type "+("`"+s+"` supplied to `"+r+"`, expected an object."))}for(var l in a)if(a.hasOwnProperty(l)){var c=e(a,l,r,o,i+"."+l);if(c instanceof Error)return c}return null}return r(t)}function p(e){function t(t,n,r,o,i){for(var a=0;a<e.length;a++){var s=e[a];if(null==s(t,n,r,o,i))return null}var u=b[o];return new Error("Invalid "+u+" `"+i+"` supplied to "+("`"+r+"`."))}return r(Array.isArray(e)?t:function(){return new Error("Invalid argument supplied to oneOfType, expected an instance of array.")})}function f(){function e(e,t,n,r,o){if(!d(e[t])){var i=b[r];return new Error("Invalid "+i+" `"+o+"` supplied to "+("`"+n+"`, expected a ReactNode."))}return null}return r(e)}function h(e){function t(t,n,r,o,i){var a=t[n],s=y(a);if("object"!==s){var u=b[o];return new Error("Invalid "+u+" `"+i+"` of type `"+s+"` "+("supplied to `"+r+"`, expected `object`."))}for(var l in e){var c=e[l];if(c){var p=c(a,l,r,o,i+"."+l);if(p)return p}}return null}return r(t)}function d(e){switch("undefined"==typeof e?"undefined":g(e)){case"number":case"string":case"undefined":return!0;case"boolean":return!e;case"object":if(Array.isArray(e))return e.every(d);if(null===e||_.isValidElement(e))return!0;var t=P(e);if(!t)return!1;var n,r=t.call(e);if(t!==e.entries){for(;!(n=r.next()).done;)if(!d(n.value))return!1}else for(;!(n=r.next()).done;){var o=n.value;if(o&&!d(o[1]))return!1}return!0;default:return!1}}function y(e){var t="undefined"==typeof e?"undefined":g(e);return Array.isArray(e)?"array":e instanceof RegExp?"object":t}function m(e){var t=y(e);if("object"===t){if(e instanceof Date)return"date";if(e instanceof RegExp)return"regexp"}return t}function v(e){return e.constructor&&e.constructor.name?e.constructor.name:"<<anonymous>>"}var g="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol?"symbol":typeof e},_=n(19),b=n(101),T=n(27),P=n(157),x="<<anonymous>>",E={array:o("array"),bool:o("boolean"),func:o("function"),number:o("number"),object:o("object"),string:o("string"),any:i(),arrayOf:a,element:s(),instanceOf:u,node:f(),objectOf:c,oneOf:l,oneOfType:p,shape:h};e.exports=E},function(e,t){"use strict";var n={injectCreateReactRootIndex:function(e){r.createReactRootIndex=e}},r={createReactRootIndex:null,injection:n};e.exports=r},function(e,t){"use strict";var n={currentScrollLeft:0,currentScrollTop:0,refreshScrollValues:function(e){n.currentScrollLeft=e.x,n.currentScrollTop=e.y}};e.exports=n},function(e,t,n){"use strict";function r(e,t){if(null==t?o(!1):void 0,null==e)return t;var n=Array.isArray(e),r=Array.isArray(t);return n&&r?(e.push.apply(e,t),e):n?(e.push(t),e):r?[e].concat(t):[e,t]}var o=n(3);e.exports=r},function(e,t,n){"use strict";function r(e,t,n){var r=e,o=void 0===r[n];o&&null!=t&&(r[n]=t)}function o(e){if(null==e)return e;var t={};return i(e,r,t),t}var i=n(162);n(7);e.exports=o},function(e,t){"use strict";var n=function(e,t,n){Array.isArray(e)?e.forEach(t,n):e&&t.call(n,e)};e.exports=n},function(e,t,n){"use strict";function r(){return!i&&o.canUseDOM&&(i="textContent"in document.documentElement?"textContent":"innerText"),i}var o=n(14),i=null;e.exports=r},function(e,t){"use strict";function n(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&("input"===t&&r[e.type]||"textarea"===t)}var r={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};e.exports=n},function(e,t,n){"use strict";var r=n(27),o={listen:function(e,t,n){return e.addEventListener?(e.addEventListener(t,n,!1),{remove:function(){e.removeEventListener(t,n,!1)}}):e.attachEvent?(e.attachEvent("on"+t,n),{remove:function(){e.detachEvent("on"+t,n)}}):void 0},capture:function(e,t,n){return e.addEventListener?(e.addEventListener(t,n,!0),{remove:function(){e.removeEventListener(t,n,!0)}}):{remove:r}},registerDefault:function(){}};e.exports=o},function(e,t,n){"use strict";function r(e,t){var n=!0;e:for(;n;){var r=e,i=t;if(n=!1,r&&i){if(r===i)return!0;if(o(r))return!1;if(o(i)){e=r,t=i.parentNode,n=!0;continue e}return r.contains?r.contains(i):r.compareDocumentPosition?!!(16&r.compareDocumentPosition(i)):!1}return!1}}var o=n(622);e.exports=r},function(e,t){"use strict";function n(e){try{e.focus()}catch(t){}}e.exports=n},function(e,t){"use strict";function n(){if("undefined"==typeof document)return null;try{return document.activeElement||document.body}catch(e){return document.body}}e.exports=n},function(e,t,n){"use strict";function r(e){return a?void 0:i(!1),f.hasOwnProperty(e)||(e="*"),s.hasOwnProperty(e)||("*"===e?a.innerHTML="<link />":a.innerHTML="<"+e+"></"+e+">",s[e]=!a.firstChild),s[e]?f[e]:null}var o=n(14),i=n(3),a=o.canUseDOM?document.createElement("div"):null,s={},u=[1,'<select multiple="true">',"</select>"],l=[1,"<table>","</table>"],c=[3,"<table><tbody><tr>","</tr></tbody></table>"],p=[1,'<svg xmlns="http://www.w3.org/2000/svg">',"</svg>"],f={"*":[1,"?<div>","</div>"],area:[1,"<map>","</map>"],col:[2,"<table><tbody></tbody><colgroup>","</colgroup></table>"],legend:[1,"<fieldset>","</fieldset>"],param:[1,"<object>","</object>"],tr:[2,"<table><tbody>","</tbody></table>"],optgroup:u,option:u,caption:l,colgroup:l,tbody:l,tfoot:l,thead:l,td:c,th:c},h=["circle","clipPath","defs","ellipse","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","text","tspan"];h.forEach(function(e){f[e]=p,s[e]=!0}),e.exports=r},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==("undefined"==typeof t?"undefined":u(t))&&"function"!=typeof t?e:t}function s(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+("undefined"==typeof t?"undefined":u(t)));e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol?"symbol":typeof e};Object.defineProperty(t,"__esModule",{value:!0});var l,c,p,f=n(121),h=r(f),d=n(17),y=r(d),m=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},v=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),g=n(1),_=r(g),b=n(8),T=r(b),P=n(83),x=n(2),E=r(x),O=n(9),w=r(O),C=(0,E["default"])((p=c=function(e){function t(e){i(this,t);var n=a(this,Object.getPrototypeOf(t).call(this,e));if(n.handleMove=function(e){n._leaveTimer&&(clearTimeout(n._leaveTimer),n._leaveTimer=null),n.state.isTravellerMoving?n.handleTravellerMove(e):n.state.isSlideMoving&&n.handleSlideMove(e)},n.handleUp=function(){n.setState({isTravellerMoving:!1,isSlideMoving:!1})},n.handleLeaveWrapper=function(){(n.state.isTravellerMoving||n.state.isSlideMoving)&&(n._leaveTimer=setTimeout(n.handleUp,1e3))},n.handleEnterSlideOrTraveller=function(){n.setState({isTextActive:!0})},n.handleLeaveSlideOrTraveller=function(){n.setState({isTextActive:!1})},n.handleSlideDown=function(e){n.setState({isTravellerMoving:!1,isSlideMoving:!0,slideMoveStartX:e.pageX})},n.travellerDownHandlers={startX:n.handleTravellerDown.bind(n,"startX"),endX:n.handleTravellerDown.bind(n,"endX")},e.data&&e.data.length){var r=e.data.length,o=(0,y["default"])(e.defaultStartIndex)?e.defaultStartIndex:0,s=(0,y["default"])(e.defaultEndIndex)?e.defaultEndIndex:r-1;n.scale=(0,P.scalePoint)().domain((0,h["default"])(0,r)).range([e.x,e.x+e.width-e.travellerWidth]),n.scaleValues=n.scale.domain().map(function(e){return n.scale(e)}),n.state={isTextActive:!1,isSlideMoving:!1,isTravellerMoving:!1,startIndex:o,endIndex:s,startX:n.scale(o),endX:n.scale(s)}}else n.state={};return n}return s(t,e),v(t,[{key:"componentWillUnmount",value:function(){this._leaveTimer&&(clearTimeout(this._leaveTimer),this._leaveTimer=null)}},{key:"getIndexInRange",value:function(e,t){for(var n=e.length,r=0,o=n-1;o-r>1;){var i=Math.floor((r+o)/2);e[i]>t?o=i:r=i}return t>=e[o]?o:r}},{key:"getIndex",value:function(e){var t=e.startX,n=e.endX,r=Math.min(t,n),o=Math.max(t,n),i=this.getIndexInRange(this.scaleValues,r),a=this.getIndexInRange(this.scaleValues,o);return{startIndex:i,endIndex:a}}},{key:"handleSlideMove",value:function(e){var t=this.state,n=t.slideMoveStartX,r=t.startX,o=t.endX,i=this.props,a=i.x,s=i.width,u=i.travellerWidth,l=i.onChange,c=e.pageX-n;c>0?c=Math.min(c,a+s-u-o,a+s-u-r):0>c&&(c=Math.max(c,a-r,a-o));var p=this.getIndex({startX:r+c,endX:o+c});this.setState(m({startX:r+c,endX:o+c,slideMoveStartX:e.pageX},p),function(){l&&l(p)})}},{key:"handleTravellerDown",value:function(e,t){this.setState({isSlideMoving:!1,isTravellerMoving:!0,movingTravellerId:e,brushMoveStartX:t.pageX})}},{key:"handleTravellerMove",value:function(e){var t,n=this.state,r=n.brushMoveStartX,i=n.movingTravellerId,a=this.state[i],s=this.props,u=s.x,l=s.width,c=s.travellerWidth,p=s.onChange,f={startX:this.state.startX,endX:this.state.endX},h=e.pageX-r;h>0?h=Math.min(h,u+l-c-a):0>h&&(h=Math.max(h,u-a)),f[i]=a+h;var d=this.getIndex(f);this.setState(m((t={},o(t,i,a+h),o(t,"brushMoveStartX",e.pageX),t),d),function(){p&&p(d)})}},{key:"renderBackground",value:function(){var e=this.props,t=e.x,n=e.y,r=e.width,o=e.height,i=e.fill,a=e.stroke;return _["default"].createElement("rect",{stroke:a,fill:i,x:t,y:n,width:r,height:o})}},{key:"renderTraveller",value:function(e,t){var n=this.props,r=n.y,o=n.travellerWidth,i=n.height,a=n.stroke,s=Math.floor(r+i/2)-1,u=Math.max(e,this.props.x);return _["default"].createElement(w["default"],{className:"recharts-brush-traveller",onMouseEnter:this.handleEnterSlideOrTraveller,onMouseLeave:this.handleLeaveSlideOrTraveller,onMouseDown:this.travellerDownHandlers[t],style:{cursor:"col-resize"}},_["default"].createElement("rect",{x:u,y:r,width:o,height:i,fill:a,stroke:"none"}),_["default"].createElement("line",{x1:u+1,y1:s,x2:u+o-1,y2:s,fill:"none",stroke:"#fff"}),_["default"].createElement("line",{x1:u+1,y1:s+2,x2:u+o-1,y2:s+2,fill:"none",stroke:"#fff"}))}},{key:"renderSlide",value:function(e,t){var n=this.props,r=n.y,o=n.height,i=n.stroke;return _["default"].createElement("rect",{className:"recharts-brush-slide",onMouseEnter:this.handleEnterSlideOrTraveller,onMouseLeave:this.handleLeaveSlideOrTraveller,onMouseDown:this.handleSlideDown,style:{cursor:"move"},stroke:"none",fill:i,fillOpacity:.2,x:Math.min(e,t),y:r,width:Math.abs(t-e),height:o})}},{key:"renderText",value:function(){var e=this.props,t=e.data,n=e.y,r=e.height,o=e.travellerWidth,i=e.stroke,a=this.state,s=a.startIndex,u=a.endIndex,l=a.startX,c=a.endX,p=5,f={pointerEvents:"none",fill:i};return _["default"].createElement(w["default"],{className:"recharts-brush-texts"},_["default"].createElement("text",{textAnchor:"end",style:f,dy:p,x:Math.min(l,c)-p,y:n+r/2},t[s]),_["default"].createElement("text",{textAnchor:"start",style:f,dy:p,x:Math.max(l,c)+o+p,y:n+r/2},t[u]))}},{key:"render",value:function(){var e=this.props,t=(e.x,e.width,e.travellerWidth,e.data),n=e.className,r=this.state,o=r.startX,i=r.endX,a=r.isTextActive,s=r.isSlideMoving,u=r.isTravellerMoving;if(!t||!t.length)return null;var l=(0,T["default"])("recharts-bursh",n);return _["default"].createElement(w["default"],{className:l,onMouseUp:this.handleUp,onMouseMove:this.handleMove,onMouseLeave:this.handleLeaveWrapper},this.renderBackground(),this.renderSlide(o,i),this.renderTraveller(o,"startX"),this.renderTraveller(i,"endX"),(a||s||u)&&this.renderText())}}]),t}(g.Component),c.displayName="Brush",c.propTypes={className:g.PropTypes.string,fill:g.PropTypes.string,stroke:g.PropTypes.string,x:g.PropTypes.number.isRequired,y:g.PropTypes.number.isRequired,width:g.PropTypes.number.isRequired,height:g.PropTypes.number.isRequired,data:g.PropTypes.array,travellerWidth:g.PropTypes.number,defaultStartIndex:g.PropTypes.number,defaultEndIndex:g.PropTypes.number,onChange:g.PropTypes.func},c.defaultProps={x:0,y:0,width:0,height:40,travellerWidth:5,fill:"#fff",stroke:"#666"},l=p))||l;t["default"]=C},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==("undefined"==typeof t?"undefined":u(t))&&"function"!=typeof t?e:t}function s(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+("undefined"==typeof t?"undefined":u(t)));e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol?"symbol":typeof e};Object.defineProperty(t,"__esModule",{value:!0});var l,c,p,f=n(10),h=r(f),d=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},y=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),m=n(1),v=r(m),g=n(8),_=r(g),b=n(2),T=r(b),P=n(9),x=r(P),E=n(4),O=n(48),w=r(O),C=n(40),S=r(C),M=(0,T["default"])((p=c=function(e){function t(){var e,n,r,o;i(this,t);for(var s=arguments.length,u=Array(s),l=0;s>l;l++)u[l]=arguments[l];return n=r=a(this,(e=Object.getPrototypeOf(t)).call.apply(e,[this].concat(u))),r.state={activeIndex:-1},r.handleCircleMouseLeave=function(){var e=r.props.onMouseLeave;r.setState({activeIndex:-1},e)},o=n,a(r,o)}return s(t,e),y(t,[{key:"handleCircleMouseEnter",value:function(e,t,n){var r=this.props.onMouseEnter;this.setState({activeIndex:t},function(){r(e,n)})}},{key:"renderCircles",value:function(){var e=this,t=this.props,n=t.points,r=(t.isAnimationActive,t.animationBegin,t.animationDuration,t.animationEasing,this.state.activeIndex),i=(0,E.getPresentationAttributes)(this.props);return n.map(function(t,n){var a=t.r,s=o(t,["r"]);return v["default"].createElement(S["default"],{from:"scale(0)",to:"scale(1)",attributeName:"transform",easing:"ease",key:"circle-"+n},v["default"].createElement("circle",d({style:{transformOrigin:"center center"}},i,s,{r:n===r?1.1*a:a,onMouseEnter:e.handleCircleMouseEnter.bind(e,t,n),onMouseLeave:e.handleCircleMouseLeave})))})}},{key:"renderLine",value:function(){var e=this.props,t=e.points,n=e.line,r=e.lineType,o=(0,E.getPresentationAttributes)(this.props),i=(0,E.getPresentationAttributes)(n),a=void 0;"joint"===r&&(a=t.map(function(e){return{x:e.cx,y:e.cy}}));var s=d({},o,{fill:"none",stroke:o.fill},i,{points:a}),u=void 0;return u=v["default"].isValidElement(n)?v["default"].cloneElement(n,s):(0,h["default"])(n)?n(s):v["default"].createElement(w["default"],s),v["default"].createElement(x["default"],{className:"recharts-scatter-line"},u)}},{key:"render",value:function(){var e=this.props,t=e.points,n=e.line,r=e.className;if(!t||!t.length)return null;var o=(0,_["default"])("recharts-scatter",r);return v["default"].createElement(x["default"],{className:o},n&&this.renderLine(),this.renderCircles())}}]),t}(m.Component),c.displayName="Scatter",c.propTypes=d({},E.PRESENTATION_ATTRIBUTES,{legendType:m.PropTypes.string,xAxisId:m.PropTypes.number,yAxisId:m.PropTypes.number,zAxisId:m.PropTypes.number,line:m.PropTypes.oneOfType([m.PropTypes.bool,m.PropTypes.object,m.PropTypes.func,m.PropTypes.element]),lineType:m.PropTypes.oneOf(["fitting","joint"]),className:m.PropTypes.string,shape:m.PropTypes.oneOfType([m.PropTypes.oneOf(["circle","cross","dimand","square","triangle-down","triangle-up"]),m.PropTypes.element,m.PropTypes.func]),points:m.PropTypes.arrayOf(m.PropTypes.shape({cx:m.PropTypes.number,cy:m.PropTypes.number,r:m.PropTypes.number,payload:m.PropTypes.shape({x:m.PropTypes.number,y:m.PropTypes.number,z:m.PropTypes.oneOfType([m.PropTypes.number,m.PropTypes.string])})})),onMouseEnter:m.PropTypes.func,onMouseLeave:m.PropTypes.func,onClick:m.PropTypes.func,isAnimationActive:m.PropTypes.bool,animationBegin:m.PropTypes.number,animationDuration:m.PropTypes.number,animationEasing:m.PropTypes.oneOf(["ease","ease-in","ease-out","ease-in-out","linear"])}),c.defaultProps={fill:"#fff",xAxisId:0,yAxisId:0,zAxisId:0,legendType:"scatter",lineType:"joint",data:[],onClick:function(){},onMouseEnter:function(){},onMouseLeave:function(){},shape:"circle",isAnimationActive:!0,animationBegin:0,animationDuration:1500,animationEasing:"ease"},l=p))||l;t["default"]=M},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==("undefined"==typeof t?"undefined":s(t))&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+("undefined"==typeof t?"undefined":s(t)));e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol?"symbol":typeof e};Object.defineProperty(t,"__esModule",{value:!0});var u,l,c,p=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),f=n(1),h=(r(f),n(2)),d=r(h),y=(0,d["default"])((c=l=function(e){function t(){return o(this,t),i(this,Object.getPrototypeOf(t).apply(this,arguments))}return a(t,e),p(t,[{key:"render",value:function(){return null}}]),t}(f.Component),l.displayName="ZAxis",l.propTypes={name:f.PropTypes.oneOfType([f.PropTypes.string,f.PropTypes.number]),unit:f.PropTypes.oneOfType([f.PropTypes.string,f.PropTypes.number]),zAxisId:f.PropTypes.oneOfType([f.PropTypes.string,f.PropTypes.number]),dataKey:f.PropTypes.oneOfType([f.PropTypes.string,f.PropTypes.number]),range:f.PropTypes.arrayOf(f.PropTypes.number)},l.defaultProps={zAxisId:0,range:[10,10]},u=c))||u;t["default"]=y},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==("undefined"==typeof t?"undefined":u(t))&&"function"!=typeof t?e:t}function s(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+("undefined"==typeof t?"undefined":u(t)));e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol?"symbol":typeof e};Object.defineProperty(t,"__esModule",{value:!0}),t.AreaChart=void 0;var l,c,p,f=n(10),h=r(f),d=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},y=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),m=n(1),v=r(m),g=n(9),_=r(g),b=n(36),T=r(b),P=n(38),x=r(P),E=n(48),O=r(E),w=n(4),C=n(68),S=n(111),M=r(S),A=n(165),k=r(A),L=n(2),I=r(L),R=n(22),D=(0,I["default"])((p=c=function(e){function t(){return i(this,t),a(this,Object.getPrototypeOf(t).apply(this,arguments))}return s(t,e),y(t,[{key:"getComposedData",value:function(e,t,n,r){var o=this.props,i=o.layout,a=o.dataStartIndex,s=o.dataEndIndex,u=this.props.data.slice(a,s+1),l=(0,C.getTicksOfAxis)(e),c=(0,C.getTicksOfAxis)(t),p=(0,R.getBandSizeOfScale)("horizontal"===i?e.scale:t.scale),f=r&&r.length,h=this.getBaseValue(e,t),d=u.map(function(o,s){var u=f?r[a+s]:[h,o[n]];return{x:"horizontal"===i?l[s].coordinate+p/2:e.scale(u[1]),y:"horizontal"===i?t.scale(u[1]):c[s].coordinate+p/2,value:u}}),y=void 0;return y=f?r.slice(a,s+1).map(function(n,r){return{x:"horizontal"===i?l[r].coordinate+p/2:e.scale(n[0]),y:"horizontal"===i?t.scale(n[0]):c[r].coordinate+p/2}}):"horizontal"===i?t.scale(h):e.scale(h),{points:d,baseLine:y,layout:i}}},{key:"getBaseValue",value:function(e,t){var n=this.props.layout,r="horizontal"===n?t:e,o=r.scale.domain();return"number"===r.type?Math.max(Math.min(o[0],o[1]),0):o[0]}},{key:"renderCursor",value:function(e,t,n){var r=this.props,o=r.children,i=r.isTooltipActive,a=(0,w.findChildByType)(o,T["default"]);if(!a||!a.props.cursor||!i)return null;var s=this.props,u=s.layout,l=s.activeTooltipIndex,c="horizontal"===u?e:t,p=(0,R.getAnyElementOfObject)(c),f=(0,C.getTicksOfAxis)(p),h=f[l].coordinate,y="horizontal"===u?h:n.left,m="horizontal"===u?n.top:h,g="horizontal"===u?h:n.left+n.width,_="horizontal"===u?n.top+n.height:h,b=d({stroke:"#ccc"},(0,w.getPresentationAttributes)(a.props.cursor),{points:[{x:y,y:m},{x:g,y:_}]});return v["default"].isValidElement(a.props.cursor)?v["default"].cloneElement(a.props.cursor,b):v["default"].createElement(O["default"],d({},b,{type:"linear",className:"recharts-tooltip-cursor"}));
  }},{key:"renderActiveDot",value:function(e,t){var n=void 0;return n=v["default"].isValidElement(e)?v["default"].cloneElement(e,t):(0,h["default"])(e)?e(t):v["default"].createElement(x["default"],d({},t,{key:"dot-"+t.index}))}},{key:"renderItems",value:function(e,t,n,r,i){var a=this,s=this.props,u=s.children,l=s.layout,c=s.isTooltipActive,p=s.activeTooltipIndex,f=(0,w.findChildByType)(u,T["default"]),h=f&&c,y=[],m=e.reduce(function(e,s,u){var c=s.props,f=c.xAxisId,m=c.yAxisId,g=c.dataKey,_=(c.fillOpacity,c.fill),b=c.activeDot,T="horizontal"===l?f:m,P=i&&i[T]&&i[T].hasStack&&(0,C.getStackedDataOfItem)(s,i[T].stackGroups),x=a.getComposedData(t[f],n[m],g,P),E=x.points&&x.points[p];if(h&&b&&E){var O=d({index:u,cx:E.x,cy:E.y,r:4,fill:_,strokeWidth:2,stroke:"#fff"},(0,w.getPresentationAttributes)(b));y.push(a.renderActiveDot(b,O))}var S=v["default"].cloneElement(s,d({key:"area-"+u},r,x,{layout:l}));return[].concat(o(e),[S])},[]);return v["default"].createElement("g",{key:"recharts-area-wrapper"},v["default"].createElement("g",{key:"recharts-area"},m),v["default"].createElement("g",{key:"recharts-area-dot"},y))}},{key:"render",value:function(){var e=this.props,t=e.isComposed,n=e.graphicalItems,r=e.xAxisMap,o=e.yAxisMap,i=e.offset,a=e.stackGroups;return v["default"].createElement(_["default"],{className:"recharts-area-graphical"},!t&&this.renderCursor(r,o,i),this.renderItems(n,r,o,i,a))}}]),t}(m.Component),c.displayName="AreaChart",c.propTypes={layout:m.PropTypes.oneOf(["horizontal","vertical"]),dataStartIndex:m.PropTypes.number,dataEndIndex:m.PropTypes.number,data:m.PropTypes.array,isTooltipActive:m.PropTypes.bool,activeTooltipIndex:m.PropTypes.number,xAxisMap:m.PropTypes.object,yAxisMap:m.PropTypes.object,offset:m.PropTypes.object,graphicalItems:m.PropTypes.array,children:m.PropTypes.oneOfType([m.PropTypes.arrayOf(m.PropTypes.node),m.PropTypes.node]),stackGroups:m.PropTypes.object,isComposed:m.PropTypes.bool},l=p))||l;t["default"]=(0,M["default"])(D,k["default"]),t.AreaChart=D},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}function i(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function s(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==("undefined"==typeof t?"undefined":l(t))&&"function"!=typeof t?e:t}function u(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+("undefined"==typeof t?"undefined":l(t)));e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol?"symbol":typeof e};Object.defineProperty(t,"__esModule",{value:!0}),t.BarChart=void 0;var c,p,f,h=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},d=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),y=n(1),m=r(y),v=n(9),g=r(v),_=n(36),b=r(_),T=n(82),P=r(T),x=n(22),E=n(4),O=n(111),w=r(O),C=n(112),S=r(C),M=n(166),A=r(M),k=n(2),L=r(k),I=n(68),R=(0,L["default"])((f=p=function(e){function t(){return a(this,t),s(this,Object.getPrototypeOf(t).apply(this,arguments))}return u(t,e),d(t,[{key:"getComposedData",value:function(e,t,n,r,o,i){var a=this.props,s=a.layout,u=a.dataStartIndex,l=a.dataEndIndex,c=e.props,p=c.dataKey,f=c.children,d=t[p],y=this.props.data.slice(u,l+1),m=(0,I.getTicksOfAxis)(n),v=(0,I.getTicksOfAxis)(r),g=this.getBaseValue(n,r),_=(i&&i.length,(0,E.findAllByType)(f,S["default"]));return y.map(function(e,t){var o=i?i[u+t]:[g,e[p]],a=void 0,l=void 0,c=void 0,f=void 0;return"horizontal"===s?(a=m[t].coordinate+d.offset,l=r.scale("top"===n.orientation?o[0]:o[1]),c=d.size,f="top"===n.orientation?r.scale(o[1])-r.scale(o[0]):r.scale(o[0])-r.scale(o[1])):(a=n.scale("left"===r.orientation?o[0]:o[1]),l=v[t].coordinate+d.offset,c="left"===r.orientation?n.scale(o[1])-n.scale(o[0]):n.scale(o[0])-n.scale(o[1]),f=d.size),h({},e,{x:a,y:l,width:c,height:f,value:i?o:o[1]},_&&_[t]&&_[t].props)})}},{key:"getBaseValue",value:function(e,t){var n=this.props.layout,r="horizontal"===n?t:e,o=r.scale.domain();return"number"===r.type?Math.max(Math.min(o[0],o[1]),0):o[0]}},{key:"getBarPosition",value:function(e,t){var n=this.props,r=n.barGap,o=n.barCategoryGap,a=t.length,s=void 0;return t[0].barSize===+t[0].barSize?!function(){var n=t.reduce(function(e,t){return e+t.barSize||0},0);n+=(a-1)*r;var o=(e-n)/2>>0,u={offset:o-r,size:0};s=t.reduce(function(e,t){var n=h({},e,i({},t.dataKey,{offset:u.offset+u.size+r,size:t.barSize}));return u=n[t.dataKey],t.stackList&&t.stackList.length&&t.stackList.forEach(function(e){n[e]=n[t.dataKey]}),n},{})}():!function(){var n=(0,x.getPercentValue)(o,e,0,!0),u=(e-2*n-(a-1)*r)/a>>0;s=t.reduce(function(e,t,o){var a=h({},e,i({},t.dataKey,{offset:n+(u+r)*o,size:u}));return t.stackList&&t.stackList.length&&t.stackList.forEach(function(e){a[e]=a[t.dataKey]}),a},{})}(),s}},{key:"getSizeList",value:function(e){var t=this.props,n=(t.layout,t.barSize);return Object.keys(e).reduce(function(t,r){var a=e[r].stackGroups;return h({},t,i({},r,Object.keys(a).reduce(function(e,t){var r=a[t].items,i=r.filter(function(e){return"Bar"===e.type.displayName});if(i&&i.length){var s=i[0].props.dataKey;return[].concat(o(e),[{dataKey:s,stackList:i.slice(1).map(function(e){return e.props.dataKey}),barSize:i[0].props.barSize||n}])}return e},[])))},{})}},{key:"renderCursor",value:function(e,t,n){var r=this.props,o=r.children,i=r.isTooltipActive,a=(0,E.findChildByType)(o,b["default"]);if(!a||!a.props.cursor||!i)return null;var s=this.props,u=s.layout,l=s.activeTooltipIndex,c="horizontal"===u?e:t,p=(0,x.getAnyElementOfObject)(c),f=p.scale.bandwidth(),d=(0,I.getTicksOfAxis)(p),y=d[l].coordinate,v=h({fill:"#f1f1f1"},(0,E.getPresentationAttributes)(a.props.cursor),{x:"horizontal"===u?y:n.left+.5,y:"horizontal"===u?n.top+.5:y,width:"horizontal"===u?f:n.width-1,height:"horizontal"===u?n.height-1:f});return m["default"].isValidElement(a.props.cursor)?m["default"].cloneElement(a.props.cursor,v):m["default"].createElement(P["default"],h({},v,{className:"recharts-bar-cursor"}))}},{key:"renderItems",value:function(e,t,n,r,o){var i=this;if(!e||!e.length)return null;var a=this.props.layout,s=this.getSizeList(o),u={};return e.map(function(e,l){var c=e.props,p=c.xAxisId,f=c.yAxisId,h="horizontal"===a?p:f,d=(0,x.getBandSizeOfScale)("horizontal"===a?t[p].scale:n[f].scale),y=u[h]||i.getBarPosition(d,s[h]),v=o&&o[h]&&o[h].hasStack&&(0,I.getStackedDataOfItem)(e,o[h].stackGroups);return m["default"].cloneElement(e,{key:"bar-"+l,layout:a,data:i.getComposedData(e,y,t[p],n[f],r,v)})},this)}},{key:"render",value:function(){var e=this.props,t=e.isComposed,n=e.graphicalItems,r=e.xAxisMap,o=e.yAxisMap,i=e.offset,a=e.stackGroups;return m["default"].createElement(g["default"],{className:"recharts-bar-graphical"},!t&&this.renderCursor(r,o,i),this.renderItems(n,r,o,i,a))}}]),t}(y.Component),p.displayName="BarChart",p.propTypes={layout:y.PropTypes.oneOf(["horizontal","vertical"]),dataStartIndex:y.PropTypes.number,dataEndIndex:y.PropTypes.number,data:y.PropTypes.array,isTooltipActive:y.PropTypes.bool,activeTooltipIndex:y.PropTypes.number,xAxisMap:y.PropTypes.object,yAxisMap:y.PropTypes.object,offset:y.PropTypes.object,graphicalItems:y.PropTypes.array,children:y.PropTypes.oneOfType([y.PropTypes.arrayOf(y.PropTypes.node),y.PropTypes.node]),stackGroups:y.PropTypes.object,barCategoryGap:y.PropTypes.oneOfType([y.PropTypes.number,y.PropTypes.string]),barGap:y.PropTypes.number,barSize:y.PropTypes.oneOfType([y.PropTypes.number,y.PropTypes.string]),isComposed:y.PropTypes.bool},p.defaultProps={barCategoryGap:"10%",barGap:4},c=f))||c;t["default"]=(0,w["default"])(R,A["default"]),t.BarChart=R},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==("undefined"==typeof t?"undefined":s(t))&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+("undefined"==typeof t?"undefined":s(t)));e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol?"symbol":typeof e};Object.defineProperty(t,"__esModule",{value:!0}),t.LineChart=void 0;var u,l,c,p=n(10),f=r(p),h=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},d=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),y=n(1),m=r(y),v=n(9),g=r(v),_=n(36),b=r(_),T=n(48),P=r(T),x=n(38),E=r(x),O=n(111),w=r(O),C=n(169),S=r(C),M=n(4),A=n(2),k=r(A),L=n(68),I=n(22),R=(0,k["default"])((c=l=function(e){function t(){return o(this,t),i(this,Object.getPrototypeOf(t).apply(this,arguments))}return a(t,e),d(t,[{key:"getComposedData",value:function(e,t,n){var r=this.props,o=r.layout,i=r.dataStartIndex,a=r.dataEndIndex,s=(r.isComposed,this.props.data.slice(i,a+1)),u=(0,I.getBandSizeOfScale)("horizontal"===o?e.scale:t.scale),l=(0,L.getTicksOfAxis)(e),c=(0,L.getTicksOfAxis)(t);return s.map(function(r,i){return{x:"horizontal"===o?l[i].coordinate+u/2:e.scale(r[n]),y:"horizontal"===o?t.scale(r[n]):c[i].coordinate+u/2,value:r[n]}})}},{key:"renderCursor",value:function(e,t,n){var r=this.props,o=r.children,i=r.isTooltipActive,a=(0,M.findChildByType)(o,b["default"]);if(!a||!a.props.cursor||!i)return null;var s=this.props,u=s.layout,l=s.activeTooltipIndex,c="horizontal"===u?e:t,p=(0,I.getAnyElementOfObject)(c),f=(0,L.getTicksOfAxis)(p),d=f[l].coordinate,y="horizontal"===u?d:n.left,v="horizontal"===u?n.top:d,g="horizontal"===u?d:n.left+n.width,_="horizontal"===u?n.top+n.height:d,T=h({stroke:"#ccc"},(0,M.getPresentationAttributes)(a.props.cursor),{points:[{x:y,y:v},{x:g,y:_}]});return m["default"].isValidElement(a.props.cursor)?m["default"].cloneElement(a.props.cursor,T):m["default"].createElement(P["default"],h({},T,{type:"linear",className:"recharts-tooltip-cursor"}))}},{key:"renderActiveDot",value:function(e,t){var n=void 0;return n=m["default"].isValidElement(e)?m["default"].cloneElement(e,t):(0,f["default"])(e)?e(t):m["default"].createElement(E["default"],h({},t,{className:"recharts-line-active-dot",key:"dot-"+t.index}))}},{key:"renderItems",value:function(e,t,n,r){var o=this,i=this.props,a=i.children,s=i.layout,u=i.isTooltipActive,l=i.activeTooltipIndex,c=(0,M.findChildByType)(a,b["default"]),p=c&&u,f=[],d=e.map(function(e,i){var a=e.props,u=a.xAxisId,c=a.yAxisId,d=a.dataKey,y=a.stroke,v=a.activeDot,g=o.getComposedData(t[u],n[c],d),_=g[l];if(p&&v&&_){var b=h({index:i,cx:_.x,cy:_.y,r:4,fill:y,strokeWidth:2,stroke:"#fff"},(0,M.getPresentationAttributes)(v));f.push(o.renderActiveDot(v,b))}return m["default"].cloneElement(e,h({key:"line-"+i},r,{layout:s,points:g}))},this);return m["default"].createElement("g",{key:"recharts-line-wrapper"},m["default"].createElement("g",{key:"recharts-line"},d),m["default"].createElement("g",{key:"recharts-line-dot"},f))}},{key:"render",value:function(){var e=this.props,t=e.isComposed,n=e.xAxisMap,r=e.yAxisMap,o=e.offset,i=e.graphicalItems;return m["default"].createElement(g["default"],{className:"recharts-line-graphical"},!t&&this.renderCursor(n,r,o),this.renderItems(i,n,r,o))}}]),t}(y.Component),l.displayName="LineChart",l.propTypes={layout:y.PropTypes.oneOf(["horizontal","vertical"]),dataStartIndex:y.PropTypes.number,dataEndIndex:y.PropTypes.number,data:y.PropTypes.array,isTooltipActive:y.PropTypes.bool,activeTooltipIndex:y.PropTypes.number,xAxisMap:y.PropTypes.object,yAxisMap:y.PropTypes.object,offset:y.PropTypes.object,graphicalItems:y.PropTypes.array,children:y.PropTypes.oneOfType([y.PropTypes.arrayOf(y.PropTypes.node),y.PropTypes.node]),isComposed:y.PropTypes.bool},u=c))||u;t["default"]=(0,w["default"])(R,S["default"]),t.LineChart=R},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==("undefined"==typeof t?"undefined":s(t))&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+("undefined"==typeof t?"undefined":s(t)));e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol?"symbol":typeof e};Object.defineProperty(t,"__esModule",{value:!0});var u,l,c,p=n(17),f=r(p),h=n(315),d=r(h),y=n(10),m=r(y),v=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},g=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),_=n(1),b=r(_),T=n(2),P=r(T),x=n(8),E=r(x),O=n(9),w=r(O),C=n(173),S=r(C),M=n(48),A=r(M),k=n(40),L=r(k),I=n(4),R=n(39),D=(0,P["default"])((c=l=function(e){function t(e,n){o(this,t);var r=i(this,Object.getPrototypeOf(t).call(this,e,n));return r.handleAnimationEnd=function(){r.setState({isAnimationFinished:!0})},r.handleSectorLeave=function(){var e=r.props.onMouseLeave;e&&e()},r.state={isAnimationFinished:!1},r.id||(r.id="clipPath"+Date.now()),r}return a(t,e),g(t,[{key:"getDeltaAngle",value:function(){var e=this.props,t=e.startAngle,n=e.endAngle,r=Math.sign(n-t),o=Math.min(Math.abs(n-t),360);return r*o}},{key:"getSectors",value:function(){var e=this.props,t=e.cx,n=e.cy,r=e.innerRadius,o=e.outerRadius,i=e.startAngle,a=e.data,s=e.minAngle,u=(e.endAngle,e.valueKey),l=a.length,c=this.getDeltaAngle(),p=Math.abs(c),f=a.reduce(function(e,t){return e+t[u]},0),h=[],d=void 0;return f>0&&(h=a.map(function(e,a){var h=e[u]/f,y=void 0;y=a?0>c?d.endAngle:d.startAngle:i;var m=y+Math.sign(c)*(s+h*(p-l*s));return d=v({percent:h},e,{cx:t,cy:n,innerRadius:r,outerRadius:o,startAngle:0>c?y:m,endAngle:0>c?m:y,payload:e,midAngle:(y+m)/2})})),h}},{key:"getTextAnchor",value:function(e,t){return e>t?"start":t>e?"end":"middle"}},{key:"handleSectorEnter",value:function(e,t,n){var r=this.props.onMouseEnter;r&&r(e,t,n)}},{key:"handleSectorClick",value:function(e,t,n){var r=this.props.onClick;r&&r(e,t,n)}},{key:"renderClipPath",value:function(){var e=this.props,t=e.cx,n=e.cy,r=e.maxRadius,o=e.startAngle,i=e.isAnimationActive,a=e.animationDuration,s=e.animationEasing,u=e.animationBegin;return b["default"].createElement("defs",null,b["default"].createElement("clipPath",{id:this.id},b["default"].createElement(L["default"],{easing:s,isActive:i,duration:a,animationBegin:u,onAnimationEnd:this.handleAnimationEnd,from:{endAngle:o},to:{outerRadius:Math.max(this.props.outerRadius,r||0),innerRadius:0,endAngle:this.props.endAngle}},function(e){var r=e.outerRadius,i=e.innerRadius,a=e.endAngle;return b["default"].createElement(S["default"],{cx:t,cy:n,outerRadius:r,innerRadius:i,startAngle:o,endAngle:a})})))}},{key:"renderLabelLineItem",value:function(e,t){return b["default"].isValidElement(e)?b["default"].cloneElement(e,t):(0,m["default"])(e)?e(t):b["default"].createElement(A["default"],v({},t,{type:"linear",className:"recharts-pie-label-line"}))}},{key:"renderLabelItem",value:function(e,t,n){return b["default"].isValidElement(e)?b["default"].cloneElement(e,t):(0,m["default"])(e)?e(t):b["default"].createElement("text",v({},t,{className:"recharts-pie-label-text"}),n)}},{key:"renderLabels",value:function(e){var t=this,n=this.props.isAnimationActive;if(n&&!this.state.isAnimationFinished)return null;var r=this.props,o=r.label,i=r.labelLine,a=r.valueKey,s=(0,I.getPresentationAttributes)(this.props),u=(0,I.getPresentationAttributes)(o),l=(0,I.getPresentationAttributes)(i),c=o&&o.offsetRadius||20,p=e.map(function(e,n){var r=(e.startAngle+e.endAngle)/2,p=(0,R.polarToCartesian)(e.cx,e.cy,e.outerRadius+c,r),f=v({},s,e,{stroke:"none"},u,{index:n,textAnchor:t.getTextAnchor(p.x,e.cx)},p),h=v({},s,e,{fill:"none",stroke:e.fill},l,{points:[(0,R.polarToCartesian)(e.cx,e.cy,e.outerRadius,r),p]});return b["default"].createElement(w["default"],{key:"label-"+n},i&&t.renderLabelLineItem(i,h),t.renderLabelItem(o,f,e[a]))});return b["default"].createElement(w["default"],{className:"recharts-pie-labels"},p)}},{key:"renderSectorItem",value:function(e,t){return b["default"].isValidElement(e)?b["default"].cloneElement(e,t):(0,m["default"])(e)?e(t):(0,d["default"])(e)?b["default"].createElement(S["default"],v({},t,e)):b["default"].createElement(S["default"],t)}},{key:"renderSectors",value:function(e){var t=this,n=this.props,r=n.activeShape,o=n.activeIndex;return e.map(function(e,n){return b["default"].createElement(w["default"],{className:"recharts-pie-sector",onMouseEnter:t.handleSectorEnter.bind(t,e,n),onMouseLeave:t.handleSectorLeave,onClick:t.handleSectorClick.bind(t,e,n),key:"sector-"+n},t.renderSectorItem(o===n?r:null,e))})}},{key:"render",value:function(){var e=this.props,t=e.data,n=e.className,r=e.label,o=e.cx,i=e.cy,a=e.innerRadius,s=e.outerRadius;if(!(t&&t.length&&(0,f["default"])(o)&&(0,f["default"])(i)&&(0,f["default"])(a)&&(0,f["default"])(s)))return null;var u=this.getSectors(),l=(0,E["default"])("recharts-pie",n);return b["default"].createElement(w["default"],{className:l},this.renderClipPath(),b["default"].createElement("g",{clipPath:"url(#"+this.id+")"},this.renderSectors(u)),r&&this.renderLabels(u))}}]),t}(_.Component),l.displayName="Pie",l.propTypes=v({},I.PRESENTATION_ATTRIBUTES,{className:_.PropTypes.string,cx:_.PropTypes.oneOfType([_.PropTypes.number,_.PropTypes.string]),cy:_.PropTypes.oneOfType([_.PropTypes.number,_.PropTypes.string]),startAngle:_.PropTypes.number,endAngle:_.PropTypes.number,innerRadius:_.PropTypes.oneOfType([_.PropTypes.number,_.PropTypes.string]),outerRadius:_.PropTypes.oneOfType([_.PropTypes.number,_.PropTypes.string]),nameKey:_.PropTypes.oneOfType([_.PropTypes.number,_.PropTypes.string]),valueKey:_.PropTypes.oneOfType([_.PropTypes.number,_.PropTypes.string]),data:_.PropTypes.arrayOf(_.PropTypes.object),minAngle:_.PropTypes.number,legendType:_.PropTypes.string,maxRadius:_.PropTypes.number,labelLine:_.PropTypes.oneOfType([_.PropTypes.object,_.PropTypes.func,_.PropTypes.element,_.PropTypes.bool]),label:_.PropTypes.oneOfType([_.PropTypes.object,_.PropTypes.func,_.PropTypes.element,_.PropTypes.bool]),activeShape:_.PropTypes.oneOfType([_.PropTypes.object,_.PropTypes.func,_.PropTypes.element]),activeIndex:_.PropTypes.number,onMouseEnter:_.PropTypes.func,onMouseLeave:_.PropTypes.func,onClick:_.PropTypes.func,isAnimationActive:_.PropTypes.bool,animationBegin:_.PropTypes.number,animationDuration:_.PropTypes.number,animationEasing:_.PropTypes.oneOf(["ease","ease-in","ease-out","ease-in-out","spring","linear"])}),l.defaultProps={stroke:"#fff",fill:"#808080",legendType:"rect",cx:"50%",cy:"50%",startAngle:0,endAngle:360,innerRadius:0,outerRadius:"80%",nameKey:"name",valueKey:"value",labelLine:!0,data:[],minAngle:0,isAnimationActive:!0,animationBegin:400,animationDuration:1500,animationEasing:"ease"},u=c))||u;t["default"]=D},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==("undefined"==typeof t?"undefined":s(t))&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+("undefined"==typeof t?"undefined":s(t)));e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol?"symbol":typeof e};Object.defineProperty(t,"__esModule",{value:!0});var u,l,c,p=n(10),f=r(p),h=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},d=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),y=n(1),m=r(y),v=n(2),g=r(v),_=n(9),b=r(_),T=n(4),P=n(38),x=r(P),E=n(172),O=r(E),w=n(39),C=Math.PI/180,S=1e-5,M=(0,g["default"])((c=l=function(e){function t(){return o(this,t),i(this,Object.getPrototypeOf(t).apply(this,arguments))}return a(t,e),d(t,[{key:"getTickLineCoord",value:function(e){var t=this.props,n=t.cx,r=t.cy,o=t.radius,i=t.orientation,a=t.tickLine,s=a&&a.size||8,u=(0,w.polarToCartesian)(n,r,o,e.angle),l=(0,w.polarToCartesian)(n,r,o+("inner"===i?-1:1)*s,e.angle);return{x1:u.x,y1:u.y,x2:l.x,y2:l.y}}},{key:"getTickTextAnchor",value:function(e){var t=this.props.orientation,n=Math.cos(-e.angle*C),r=void 0;return r=n>S?"outer"===t?"start":"end":-S>n?"outer"===t?"end":"start":"middle"}},{key:"renderAxisLine",value:function(){var e=this.props,t=e.cx,n=e.cy,r=e.radius,o=e.axisLine,i=e.axisLineType,a=h({},(0,T.getPresentationAttributes)(this.props),{fill:"none"},(0,T.getPresentationAttributes)(o));if("circle"===i)return m["default"].createElement(x["default"],h({className:"recharts-polar-angle-axis-line"},a,{cx:t,cy:n,r:r}));var s=this.props.ticks,u=s.map(function(e){return(0,w.polarToCartesian)(t,n,r,e.angle)});return m["default"].createElement(O["default"],h({className:"recharts-polar-angle-axis-line"},a,{points:u}))}},{key:"renderTickItem",value:function(e,t,n){var r=void 0;return r=m["default"].isValidElement(e)?m["default"].cloneElement(e,t):(0,f["default"])(e)?e(t):m["default"].createElement("text",h({},t,{className:"recharts-polar-angle-axis-tick-value"}),n)}},{key:"renderTicks",value:function(){var e=this,t=this.props,n=t.ticks,r=t.tick,o=t.tickLine,i=t.tickFormatter,a=t.stroke,s=(0,T.getPresentationAttributes)(this.props),u=(0,T.getPresentationAttributes)(r),l=h({},s,{fill:"none"},(0,T.getPresentationAttributes)(o)),c=n.map(function(t,n){var c=e.getTickLineCoord(t),p=e.getTickTextAnchor(t),f=h({textAnchor:p},s,{stroke:"none",fill:a},u,{index:n,payload:t,x:c.x2,y:c.y2});return m["default"].createElement("g",{className:"recharts-polar-angle-axis-tick",key:"tick-"+n},o&&m["default"].createElement("line",h({className:"recharts-polar-angle-axis-tick-line"},l,c)),r&&e.renderTickItem(r,f,i?i(t.value):t.value))});return m["default"].createElement("g",{className:"recharts-polar-angle-axis-ticks"},c)}},{key:"render",value:function(){var e=this.props,t=e.ticks,n=e.radius,r=e.axisLine;e.tickLine;return 0>=n||!t||!t.length?null:m["default"].createElement(b["default"],{className:"recharts-polar-angle-axis"},r&&this.renderAxisLine(),this.renderTicks())}}]),t}(y.Component),l.displayName="PolarAngleAxis",l.propTypes=h({},T.PRESENTATION_ATTRIBUTES,{dataKey:y.PropTypes.oneOfType([y.PropTypes.number,y.PropTypes.string]),cx:y.PropTypes.number,cy:y.PropTypes.number,radius:y.PropTypes.oneOfType([y.PropTypes.number,y.PropTypes.string]),hide:y.PropTypes.bool,axisLine:y.PropTypes.oneOfType([y.PropTypes.bool,y.PropTypes.object]),axisLineType:y.PropTypes.oneOf(["polygon","circle"]),tickLine:y.PropTypes.oneOfType([y.PropTypes.bool,y.PropTypes.object]),tick:y.PropTypes.oneOfType([y.PropTypes.bool,y.PropTypes.func,y.PropTypes.object,y.PropTypes.element]),ticks:y.PropTypes.arrayOf(y.PropTypes.shape({value:y.PropTypes.any,angle:y.PropTypes.number})),stroke:y.PropTypes.string,orientation:y.PropTypes.oneOf(["inner","outer"]),tickFormatter:y.PropTypes.func}),l.defaultProps={cx:0,cy:0,orientation:"outer",fill:"#666",stroke:"#ccc",axisLine:!0,tickLine:!0,tick:!0,hide:!1},u=c))||u;t["default"]=M},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==("undefined"==typeof t?"undefined":s(t))&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+("undefined"==typeof t?"undefined":s(t)));e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol?"symbol":typeof e};Object.defineProperty(t,"__esModule",{value:!0});var u,l,c,p=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},f=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),h=n(1),d=r(h),y=n(2),m=r(y),v=n(39),g=n(4),_=(0,m["default"])((c=l=function(e){function t(){return o(this,t),i(this,Object.getPrototypeOf(t).apply(this,arguments))}return a(t,e),f(t,[{key:"renderPolarAngles",value:function(){var e=this.props,t=e.cx,n=e.cy,r=e.innerRadius,o=e.outerRadius,i=e.polarAngles;if(!i||!i.length)return null;var a=p({stroke:"#ccc"},(0,g.getPresentationAttributes)(this.props));return d["default"].createElement("g",{className:"recharts-polar-grid-angle"},i.map(function(e,i){var s=(0,v.polarToCartesian)(t,n,r,e),u=(0,v.polarToCartesian)(t,n,o,e);return d["default"].createElement("line",p({},a,{key:"line-"+i,x1:s.x,y1:s.y,x2:u.x,y2:u.y}))}))}},{key:"renderConcentricCircle",value:function(e,t){var n=this.props,r=n.cx,o=n.cy,i=p({stroke:"#ccc",fill:"none"},(0,g.getPresentationAttributes)(this.props));return d["default"].createElement("circle",p({},i,{className:"recharts-polar-grid-concentric-circle",key:"circle-"+t,cx:r,cy:o,r:e}))}},{key:"renderConcentricPolygon",value:function(e,t){var n=this.props,r=n.cx,o=n.cy,i=n.polarAngles,a=p({stroke:"#ccc",fill:"none"},(0,g.getPresentationAttributes)(this.props)),s="";return i.forEach(function(t,n){var i=(0,v.polarToCartesian)(r,o,e,t);s+=n?"L "+i.x+","+i.y:"M "+i.x+","+i.y}),s+="Z",d["default"].createElement("path",p({},a,{className:"recharts-polar-grid-concentric-polygon",key:"path-"+t,d:s}))}},{key:"renderConcentricPath",value:function(){var e=this,t=this.props,n=t.polarRadius,r=t.gridType;return n&&n.length?d["default"].createElement("g",{className:"recharts-polar-grid-concentric"},n.map(function(t,n){return"circle"===r?e.renderConcentricCircle(t,n):e.renderConcentricPolygon(t,n)})):null}},{key:"render",value:function(){var e=this.props.outerRadius;return 0>=e?null:d["default"].createElement("g",{className:"recharts-polar-grid"},this.renderPolarAngles(),this.renderConcentricPath())}}]),t}(h.Component),l.displayName="PolarGrid",l.propTypes=p({},g.PRESENTATION_ATTRIBUTES,{cx:h.PropTypes.number,cy:h.PropTypes.number,innerRadius:h.PropTypes.number,outerRadius:h.PropTypes.number,polarAngles:h.PropTypes.arrayOf(h.PropTypes.number),polarRadius:h.PropTypes.arrayOf(h.PropTypes.number),gridType:h.PropTypes.oneOf(["polygon","circle"])}),l.defaultProps={cx:0,cy:0,innerRadius:0,outerRadius:0,gridType:"polygon"},u=c))||u;t["default"]=_},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==("undefined"==typeof t?"undefined":s(t))&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+("undefined"==typeof t?"undefined":s(t)));e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol?"symbol":typeof e};Object.defineProperty(t,"__esModule",{value:!0});var u,l,c,p=n(17),f=r(p),h=n(50),d=r(h),y=n(739),m=r(y),v=n(10),g=r(v),_=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},b=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),T=n(1),P=r(T),x=n(2),E=r(x),O=n(9),w=(r(O),n(4)),C=n(39),S=(0,E["default"])((c=l=function(e){function t(){return o(this,t),i(this,Object.getPrototypeOf(t).apply(this,arguments))}return a(t,e),b(t,[{key:"getTickValueCoord",value:function(e){var t=e.radius,n=this.props,r=n.angle,o=n.cx,i=n.cy;return(0,C.polarToCartesian)(o,i,t,r)}},{key:"getTickTextAnchor",value:function(){var e=this.props.orientation,t=void 0;switch(e){case"left":t="end";break;case"right":t="start";break;default:t="middle"}return t}},{key:"renderAxisLine",value:function(){var e=this.props,t=e.cx,n=e.cy,r=e.angle,o=e.ticks,i=e.axisLine,a=o.reduce(function(e,t){return[Math.min(e[0],t.radius),Math.max(e[1],t.radius)]},[1/0,-(1/0)]),s=(0,C.polarToCartesian)(t,n,a[0],r),u=(0,C.polarToCartesian)(t,n,a[1],r),l=_({},(0,w.getPresentationAttributes)(this.props),{fill:"none"},(0,w.getPresentationAttributes)(i),{x1:s.x,y1:s.y,x2:u.x,y2:u.y});return P["default"].createElement("line",_({className:"recharts-polar-radius-axis-line"},l))}},{key:"renderTickItem",value:function(e,t,n){var r=void 0;return r=P["default"].isValidElement(e)?P["default"].cloneElement(e,t):(0,g["default"])(e)?e(t):P["default"].createElement("text",_({},t,{className:"recharts-polar-radius-axis-tick-value"}),n)}},{key:"renderTicks",value:function(){
  var e=this,t=this.props,n=t.ticks,r=t.tick,o=t.angle,i=t.tickFormatter,a=t.stroke,s=this.getTickTextAnchor(),u=(0,w.getPresentationAttributes)(this.props),l=(0,w.getPresentationAttributes)(r),c=n.map(function(t,n){var c=e.getTickValueCoord(t),p=_({textAnchor:s,transform:"rotate("+(90-o)+", "+c.x+", "+c.y+")"},u,{stroke:"none",fill:a},l,{index:n},c,{payload:t});return P["default"].createElement("g",{className:"recharts-polar-radius-axis-tick",key:"tick-"+n},e.renderTickItem(r,p,i?i(t.value):t.value))});return P["default"].createElement("g",{className:"recharts-polar-radius-axis-ticks"},c)}},{key:"renderLabel",value:function(){var e=this.props.label,t=this.props,n=t.ticks,r=t.angle,o=t.stroke,i=(0,m["default"])(n,function(e){return e.radius||0}),a=i.radius||0,s=this.getTickValueCoord({radius:a+10}),u=_({},this.props,{stroke:"none",fill:o},s,{textAnchor:"middle",transform:"rotate("+(90-r)+", "+s.x+", "+s.y+")"});return P["default"].isValidElement(e)?P["default"].cloneElement(e,u):(0,g["default"])(e)?e(u):(0,d["default"])(e)||(0,f["default"])(e)?P["default"].createElement("g",{className:"recharts-polar-radius-axis-label"},P["default"].createElement("text",u,e)):null}},{key:"render",value:function(){var e=this.props,t=e.ticks,n=e.axisLine,r=e.tick;return t&&t.length?P["default"].createElement("g",{className:"recharts-polar-radius-axis"},n&&this.renderAxisLine(),r&&this.renderTicks(),this.renderLabel()):null}}]),t}(T.Component),l.displayName="PolarRadiusAxis",l.propTypes=_({},w.PRESENTATION_ATTRIBUTES,{cx:T.PropTypes.number,cy:T.PropTypes.number,hide:T.PropTypes.bool,angle:T.PropTypes.number,tickCount:T.PropTypes.number,ticks:T.PropTypes.arrayOf(T.PropTypes.shape({value:T.PropTypes.any,radius:T.PropTypes.value})),orientation:T.PropTypes.oneOf(["left","right","middle"]),axisLine:T.PropTypes.oneOfType([T.PropTypes.bool,T.PropTypes.object]),label:T.PropTypes.oneOfType([T.PropTypes.number,T.PropTypes.string,T.PropTypes.element,T.PropTypes.func]),tick:T.PropTypes.oneOfType([T.PropTypes.bool,T.PropTypes.object,T.PropTypes.element,T.PropTypes.func]),stroke:T.PropTypes.string,tickFormatter:T.PropTypes.func,domain:T.PropTypes.arrayOf(T.PropTypes.oneOfType([T.PropTypes.number,T.PropTypes.oneOf(["auto","dataMin","dataMax"])]))}),l.defaultProps={cx:0,cy:0,angle:0,orientation:"right",stroke:"#ccc",axisLine:!0,tick:!0,tickCount:5,domain:[0,"auto"]},u=c))||u;t["default"]=S},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==("undefined"==typeof t?"undefined":s(t))&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+("undefined"==typeof t?"undefined":s(t)));e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol?"symbol":typeof e};Object.defineProperty(t,"__esModule",{value:!0});var u,l,c,p=n(10),f=r(p),h=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},d=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),y=n(1),m=r(y),v=n(2),g=r(v),_=n(8),b=r(_),T=n(4),P=n(172),x=r(P),E=n(38),O=r(E),w=n(9),C=r(w),S=n(40),M=r(S),A=(0,g["default"])((c=l=function(e){function t(){return o(this,t),i(this,Object.getPrototypeOf(t).apply(this,arguments))}return a(t,e),d(t,[{key:"renderPolygon",value:function(){var e=this.props,t=e.shape,n=e.points,r=e.animationDuration,o=e.animationEasing,i=e.animationBegin,a=e.isAnimationActive;if(m["default"].isValidElement(t))return m["default"].cloneElement(t,this.props);if((0,f["default"])(t))return t(this.props);var s=n[0],u=n.map(function(e){return{x:e.x-s.cx,y:e.y-s.cy}});return m["default"].createElement(C["default"],{className:"recharts-radar-polygon",transform:"translate("+s.cx+", "+s.cy+")"},m["default"].createElement(M["default"],{from:"scale(0)",to:"scale(1)",attributeName:"transform",isActive:a,begin:i,easing:o,duration:r},m["default"].createElement(x["default"],h({},(0,T.getPresentationAttributes)(this.props),{points:u}))))}},{key:"renderLabelItem",value:function(e,t,n){var r=void 0;return r=m["default"].isValidElement(e)?m["default"].cloneElement(e,t):(0,f["default"])(e)?e(t):m["default"].createElement("text",h({},t,{className:"recharts-radar-label"}),n)}},{key:"renderLabels",value:function(){var e=this,t=this.props,n=t.points,r=t.label,o=(0,T.getPresentationAttributes)(this.props),i=(0,T.getPresentationAttributes)(r),a=n.map(function(t,n){var a=h({textAnchor:"middle"},o,{stroke:"none",fill:o&&o.stroke||"#666"},i,t,{index:n,key:"label-"+n,payload:t});return e.renderLabelItem(r,a,t.value)});return m["default"].createElement(C["default"],{className:"recharts-radar-labels"},a)}},{key:"renderDotItem",value:function(e,t){var n=void 0;return n=m["default"].isValidElement(e)?m["default"].cloneElement(e,t):(0,f["default"])(e)?e(t):m["default"].createElement(O["default"],h({},t,{className:"recharts-radar-dot"}))}},{key:"renderDots",value:function(){var e=this,t=this.props,n=t.dot,r=t.points,o=(0,T.getPresentationAttributes)(this.props),i=(0,T.getPresentationAttributes)(n),a=r.map(function(t,r){var a=h({key:"dot-"+r,r:3},o,i,{cx:t.x,cy:t.y,index:r,playload:t});return e.renderDotItem(n,a)});return m["default"].createElement(C["default"],{className:"recharts-radar-dots"},a)}},{key:"render",value:function(){var e=this.props,t=e.className,n=e.points,r=e.label,o=e.dot;if(!n||!n.length)return null;var i=(0,b["default"])("recharts-radar",t);return m["default"].createElement(C["default"],{className:i},this.renderPolygon(),r&&this.renderLabels(),o&&this.renderDots())}}]),t}(y.Component),l.displayName="Radar",l.propTypes=h({},T.PRESENTATION_ATTRIBUTES,{className:y.PropTypes.string,dataKey:y.PropTypes.string.isRequired,points:y.PropTypes.arrayOf(y.PropTypes.shape({x:y.PropTypes.number,y:y.PropTypes.number,cx:y.PropTypes.number,cy:y.PropTypes.number,angle:y.PropTypes.number,radius:y.PropTypes.number,value:y.PropTypes.number,payload:y.PropTypes.object})),shape:y.PropTypes.oneOfType([y.PropTypes.element,y.PropTypes.func]),dot:y.PropTypes.oneOfType([y.PropTypes.element,y.PropTypes.func,y.PropTypes.object,y.PropTypes.bool]),label:y.PropTypes.oneOfType([y.PropTypes.element,y.PropTypes.func,y.PropTypes.object,y.PropTypes.bool]),isAnimationActive:y.PropTypes.bool,animationBegin:y.PropTypes.number,animationDuration:y.PropTypes.number,animationEasing:y.PropTypes.oneOf(["ease","ease-in","ease-out","ease-in-out","linear"])}),l.defaultProps={dot:!1,label:!1,isAnimationActive:!0,animationBegin:0,animationDuration:1500,animationEasing:"ease"},u=c))||u;t["default"]=A},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==("undefined"==typeof t?"undefined":u(t))&&"function"!=typeof t?e:t}function s(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+("undefined"==typeof t?"undefined":u(t)));e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol?"symbol":typeof e};Object.defineProperty(t,"__esModule",{value:!0});var l,c,p,f=n(318),h=r(f),d=n(10),y=r(d),m=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},v=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),g=n(1),_=r(g),b=n(8),T=r(b),P=n(173),x=r(P),E=n(9),O=r(E),w=n(69),C=n(4),S=n(2),M=r(S),A=n(39),k=n(40),L=r(k),I=Math.PI/180,R=(0,M["default"])((p=c=function(e){function t(){var e,n,r,o;i(this,t);for(var s=arguments.length,u=Array(s),l=0;s>l;l++)u[l]=arguments[l];return n=r=a(this,(e=Object.getPrototypeOf(t)).call.apply(e,[this].concat(u))),r.state={activeIndex:-1,selectedIndex:-1,isAnimationFinished:!1},r.handleAnimationEnd=function(){r.setState({isAnimationFinished:!0})},o=n,a(r,o)}return s(t,e),v(t,[{key:"getDeltaAngle",value:function(){var e=this.props,t=e.startAngle,n=e.endAngle,r=Math.sign(n-t),o=Math.min(Math.abs(n-t),360);return r*o}},{key:"getSectors",value:function(){var e=this.props,t=e.cx,n=e.cy,r=e.startAngle,o=(e.endAngle,e.data),i=e.minAngle,a=e.maxAngle,s=Math.max.apply(null,o.map(function(e){return Math.abs(e.value)})),u=Math.abs(i),l=Math.abs(a),c=this.getDeltaAngle(),p=Math.min(Math.abs(l-u),360),f=o.map(function(e){var o=e.value,i=0===s?r:r+Math.sign(o*c)*(u+p*Math.abs(e.value)/s);return m({},e,{cx:t,cy:n,startAngle:r,endAngle:i,payload:e})});return f}},{key:"getLabelPathArc",value:function(e,t,n){var r=this.props.label,o=_["default"].isValidElement(r)?r.props:r,i=o.offsetRadius||2,a=o.orientation||"inner",s=e.cx,u=e.cy,l=e.innerRadius,c=e.outerRadius,p=e.startAngle,f=e.endAngle,h=this.getDeltaAngle()<0&&e.value>0,d=h?l+i:Math.max(c-i,0);if(0>=d)return"";var y=(0,w.getStringSize)(t,n),m=y.width/(d*I),v=void 0,g=void 0;h?(v="inner"===a?Math.min(f+m,p):f,g=v-m):(v="inner"===a?Math.max(f-m,p):f,g=v+m);var b=(0,A.polarToCartesian)(s,u,d,v),T=(0,A.polarToCartesian)(s,u,d,g);return"M"+b.x+","+b.y+"\n            A"+d+","+d+",0,\n            "+(m>=180?1:0)+",\n            "+(h?1:0)+",\n            "+T.x+","+T.y}},{key:"handleSectorClick",value:function(e,t,n){var r=this.props.onClick;this.setState({selectedIndex:t},r)}},{key:"handleSectorEnter",value:function(e,t,n){var r=this.props.onMouseEnter;this.setState({activeIndex:t},function(){r&&r(e,t,n)})}},{key:"handleSectorLeave",value:function(e,t,n){var r=this.props.onMouseLeave;this.setState({activeIndex:-1},r)}},{key:"renderSectorShape",value:function(e,t){var n=void 0;return n=_["default"].isValidElement(e)?_["default"].cloneElement(e,t):(0,y["default"])(e)?e(t):_["default"].createElement(x["default"],t)}},{key:"renderSectors",value:function(e){var t=this,n=this.props,r=(n.className,n.shape),o=(n.data,this.props),i=o.animationEasing,a=o.animationDuration,s=o.animationBegin,u=o.isAnimationActive,l=(0,C.getPresentationAttributes)(this.props);return _["default"].createElement(L["default"],{from:{alpha:0},to:{alpha:1},begin:s,isActive:u,duration:a,easing:i,onAnimationEnd:this.handleAnimationEnd},function(n){var o=n.alpha;return _["default"].createElement(O["default"],null,e.map(function(e,n){var i=e.startAngle,a=e.endAngle,s=a;u&&(s=(a-i)*o+i);var c=m({},l,e,{endAngle:s,onMouseEnter:t.handleSectorEnter.bind(t,e,n),onMouseLeave:t.handleSectorLeave.bind(t,e,n),onClick:t.handleSectorClick.bind(t,e,n),key:"sector-"+n,className:"recharts-radial-bar-sector"});return t.renderSectorShape(r,c)}))})}},{key:"renderBackground",value:function(e){var t=this,n=this.props,r=n.startAngle,i=n.endAngle,a=n.background,s=(0,C.getPresentationAttributes)(a);return e.map(function(e,n){var u=(e.value,o(e,["value"])),l=m({},u,{fill:"#eee"},s,{startAngle:r,endAngle:i,index:n,key:"sector-"+n,className:"recharts-radial-bar-background-sector"});return t.renderSectorShape(a,l)})}},{key:"renderLabels",value:function(e){var t=this,n=this.props.isAnimationActive;if(n&&!this.state.isAnimationFinished)return null;var r=this.props.label,o=_["default"].isValidElement(r),i=o?r.props.formatter:r.formatter,a=(0,y["default"])(i);return e.map(function(e,n){var o=a?i(e.value):e.value,s=(0,h["default"])("recharts-defs-"),u=(0,C.getPresentationAttributes)(r)||{fontSize:10,fill:"#000"},l=t.getLabelPathArc(e,o,u);return _["default"].createElement("text",m({},u,{key:"label-"+n,className:"recharts-radial-bar-label"}),_["default"].createElement("defs",null,_["default"].createElement("path",{id:s,d:l})),_["default"].createElement("textPath",{xlinkHref:"#"+s},o))})}},{key:"render",value:function(){var e=this.props,t=e.data,n=e.className,r=e.background,o=e.label;if(!t||!t.length)return null;var i=this.getSectors(),a=(0,T["default"])("recharts-area",n);return _["default"].createElement(O["default"],{className:a},r&&_["default"].createElement(O["default"],{className:"recharts-radial-bar-background"},this.renderBackground(i)),_["default"].createElement(O["default"],{className:"recharts-radial-bar-sectors"},this.renderSectors(i)),o&&_["default"].createElement(O["default"],{className:"recharts-radial-bar-labels"},this.renderLabels(i)))}}]),t}(g.Component),c.displayName="RadialBar",c.propTypes=m({},C.PRESENTATION_ATTRIBUTES,{className:g.PropTypes.string,shape:g.PropTypes.oneOfType([g.PropTypes.func,g.PropTypes.element]),cx:g.PropTypes.number,cy:g.PropTypes.number,startAngle:g.PropTypes.number,endAngle:g.PropTypes.number,maxAngle:g.PropTypes.number,minAngle:g.PropTypes.number,data:g.PropTypes.arrayOf(g.PropTypes.shape({cx:g.PropTypes.number,cy:g.PropTypes.number,innerRadius:g.PropTypes.number,outerRadius:g.PropTypes.number,value:g.PropTypes.value})),legendType:g.PropTypes.string,label:g.PropTypes.oneOfType([g.PropTypes.bool,g.PropTypes.func,g.PropTypes.element,g.PropTypes.object]),background:g.PropTypes.oneOfType([g.PropTypes.bool,g.PropTypes.func,g.PropTypes.object,g.PropTypes.element]),onMouseEnter:g.PropTypes.func,onMouseLeave:g.PropTypes.func,onClick:g.PropTypes.func,isAnimationActive:g.PropTypes.bool,animationBegin:g.PropTypes.number,animationDuration:g.PropTypes.number,animationEasing:g.PropTypes.oneOf(["ease","ease-in","ease-out","ease-in-out","linear","spring"])}),c.defaultProps={startAngle:180,endAngle:0,maxAngle:135,minAngle:0,stroke:"#fff",fill:"#808080",legendType:"rect",data:[],onClick:function(){},onMouseEnter:function(){},onMouseLeave:function(){},isAnimationActive:!0,animationBegin:0,animationDuration:1500,animationEasing:"ease"},l=p))||l;t["default"]=R},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==("undefined"==typeof t?"undefined":s(t))&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+("undefined"==typeof t?"undefined":s(t)));e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol?"symbol":typeof e};Object.defineProperty(t,"__esModule",{value:!0});var u,l,c,p=n(17),f=r(p),h=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},d=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),y=n(1),m=r(y),v=n(2),g=r(v),_=n(8),b=r(_),T=n(4),P=(0,g["default"])((c=l=function(e){function t(){return o(this,t),i(this,Object.getPrototypeOf(t).apply(this,arguments))}return a(t,e),d(t,[{key:"getPath",value:function(e,t,n,r,o,i){return"M"+e+","+o+"v"+r+"M"+i+","+t+"h"+n}},{key:"render",value:function(){var e=this.props,t=e.x,n=e.y,r=e.width,o=e.height,i=e.top,a=e.left,s=e.className;return(0,f["default"])(t)&&(0,f["default"])(n)&&(0,f["default"])(r)&&(0,f["default"])(o)&&(0,f["default"])(i)&&(0,f["default"])(a)?m["default"].createElement("path",h({},(0,T.getPresentationAttributes)(this.props),{className:(0,b["default"])("recharts-cross",s),d:this.getPath(t,n,r,o,i,a)})):null}}]),t}(y.Component),l.displayName="Cross",l.propTypes=h({},T.PRESENTATION_ATTRIBUTES,{x:y.PropTypes.number,y:y.PropTypes.number,top:y.PropTypes.number,left:y.PropTypes.number,width:y.PropTypes.number,height:y.PropTypes.number,className:y.PropTypes.string}),l.defaultProps={x:0,y:0,top:0,left:0,width:0,height:0,stroke:"#000",fill:"none"},u=c))||u;t["default"]=P},function(e,t,n){"use strict";var r=n(644),o=n(645);e.exports=n(176)?function(e,t,n){return r.f(e,t,o(1,n))}:function(e,t,n){return e[t]=n,e}},function(e,t){"use strict";e.exports=Math.log1p||function(e){return(e=+e)>-1e-8&&1e-8>e?e-e*e/2:Math.log(1+e)}},function(e,t,n){var r,o,i,a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol?"symbol":typeof e};!function(n,s){"object"===a(t)&&"undefined"!=typeof e?s(t):(o=[t],r=s,i="function"==typeof r?r.apply(t,o):r,!(void 0!==i&&(e.exports=i)))}(void 0,function(e){"use strict";function t(e,t){return t>e?-1:e>t?1:e>=t?0:NaN}function n(e){return 1===e.length&&(e=r(e)),{left:function(t,n,r,o){for(null==r&&(r=0),null==o&&(o=t.length);o>r;){var i=r+o>>>1;e(t[i],n)<0?r=i+1:o=i}return r},right:function(t,n,r,o){for(null==r&&(r=0),null==o&&(o=t.length);o>r;){var i=r+o>>>1;e(t[i],n)>0?o=i:r=i+1}return r}}}function r(e){return function(n,r){return t(e(n),r)}}function o(e,t){return e>t?-1:t>e?1:t>=e?0:NaN}function i(e){return null===e?NaN:+e}function a(e,t){var n,r,o=e.length,a=0,s=0,u=-1,l=0;if(null==t)for(;++u<o;)isNaN(n=i(e[u]))||(r=n-a,a+=r/++l,s+=r*(n-a));else for(;++u<o;)isNaN(n=i(t(e[u],u,e)))||(r=n-a,a+=r/++l,s+=r*(n-a));return l>1?s/(l-1):void 0}function s(e,t){var n=a(e,t);return n?Math.sqrt(n):n}function u(e,t){var n,r,o,i=-1,a=e.length;if(null==t){for(;++i<a;)if(null!=(r=e[i])&&r>=r){n=o=r;break}for(;++i<a;)null!=(r=e[i])&&(n>r&&(n=r),r>o&&(o=r))}else{for(;++i<a;)if(null!=(r=t(e[i],i,e))&&r>=r){n=o=r;break}for(;++i<a;)null!=(r=t(e[i],i,e))&&(n>r&&(n=r),r>o&&(o=r))}return[n,o]}function l(e){return function(){return e}}function c(e){return e}function p(e,t,n){e=+e,t=+t,n=(o=arguments.length)<2?(t=e,e=0,1):3>o?1:+n;for(var r=-1,o=0|Math.max(0,Math.ceil((t-e)/n)),i=new Array(o);++r<o;)i[r]=e+r*n;return i}function f(e,t,n){var r=h(e,t,n);return p(Math.ceil(e/r)*r,Math.floor(t/r)*r+r/2,r)}function h(e,t,n){var r=Math.abs(t-e)/Math.max(0,n),o=Math.pow(10,Math.floor(Math.log(r)/Math.LN10)),i=r/o;return i>=N?o*=10:i>=j?o*=5:i>=U&&(o*=2),e>t?-o:o}function d(e){return Math.ceil(Math.log(e.length)/Math.LN2)+1}function y(e){return+e}function m(){function e(e){var o,i,a=e.length,s=new Array(a);for(o=0;a>o;++o)s[o]=+t(e[o],o,e);var u=n(s),l=+u[0],c=+u[1],p=r(s,l,c);Array.isArray(p)||(p=f(l,c,+p));var h=p.length;for(o=0;h>o;++o)p[o]=+p[o];for(;p[0]<=l;)p.shift(),--h;for(;p[h-1]>=c;)p.pop(),--h;var d,y=new Array(h+1);for(o=0;h>=o;++o)d=y[o]=[],d.x0=o>0?p[o-1]:l,d.x1=h>o?p[o]:c;for(o=0;a>o;++o)i=s[o],i>=l&&c>=i&&y[R(p,i,0,h)].push(e[o]);return y}var t=c,n=u,r=d;return e.value=function(n){return arguments.length?(t="function"==typeof n?n:l(+n),e):t},e.domain=function(t){return arguments.length?(n="function"==typeof t?t:l([+t[0],+t[1]]),e):n},e.thresholds=function(t){return arguments.length?(r="function"==typeof t?t:l(Array.isArray(t)?Array.prototype.map.call(t,y):+t),e):r},e}function v(e,t,n){if(null==n&&(n=i),r=e.length){if((t=+t)<=0||2>r)return+n(e[0],0,e);if(t>=1)return+n(e[r-1],r-1,e);var r,o=(r-1)*t,a=Math.floor(o),s=+n(e[a],a,e),u=+n(e[a+1],a+1,e);return s+(u-s)*(o-a)}}function g(e,n,r){return e.sort(t),Math.ceil((r-n)/(2*(v(e,.75)-v(e,.25))*Math.pow(e.length,-1/3)))}function _(e,t,n){return Math.ceil((n-t)/(3.5*s(e)*Math.pow(e.length,-1/3)))}function b(e,t){var n,r,o=-1,i=e.length;if(null==t){for(;++o<i;)if(null!=(r=e[o])&&r>=r){n=r;break}for(;++o<i;)null!=(r=e[o])&&r>n&&(n=r)}else{for(;++o<i;)if(null!=(r=t(e[o],o,e))&&r>=r){n=r;break}for(;++o<i;)null!=(r=t(e[o],o,e))&&r>n&&(n=r)}return n}function T(e,t){var n,r=0,o=e.length,a=-1,s=o;if(null==t)for(;++a<o;)isNaN(n=i(e[a]))?--s:r+=n;else for(;++a<o;)isNaN(n=i(t(e[a],a,e)))?--s:r+=n;return s?r/s:void 0}function P(e,n){var r,o=[],a=e.length,s=-1;if(null==n)for(;++s<a;)isNaN(r=i(e[s]))||o.push(r);else for(;++s<a;)isNaN(r=i(n(e[s],s,e)))||o.push(r);return v(o.sort(t),.5)}function x(e){for(var t,n,r,o=e.length,i=-1,a=0;++i<o;)a+=e[i].length;for(n=new Array(a);--o>=0;)for(r=e[o],t=r.length;--t>=0;)n[--a]=r[t];return n}function E(e,t){var n,r,o=-1,i=e.length;if(null==t){for(;++o<i;)if(null!=(r=e[o])&&r>=r){n=r;break}for(;++o<i;)null!=(r=e[o])&&n>r&&(n=r)}else{for(;++o<i;)if(null!=(r=t(e[o],o,e))&&r>=r){n=r;break}for(;++o<i;)null!=(r=t(e[o],o,e))&&n>r&&(n=r)}return n}function O(e){for(var t=0,n=e.length-1,r=e[0],o=new Array(0>n?0:n);n>t;)o[t]=[r,r=e[++t]];return o}function w(e,t){for(var n=t.length,r=new Array(n);n--;)r[n]=e[t[n]];return r}function C(e,n){if(r=e.length){var r,o,i=0,a=0,s=e[a];for(n||(n=t);++i<r;)(n(o=e[i],s)<0||0!==n(s,s))&&(s=o,a=i);return 0===n(s,s)?a:void 0}}function S(e,t,n){for(var r,o,i=(null==n?e.length:n)-(t=null==t?0:+t);i;)o=Math.random()*i--|0,r=e[i+t],e[i+t]=e[o+t],e[o+t]=r;return e}function M(e,t){var n,r=0,o=e.length,i=-1;if(null==t)for(;++i<o;)(n=+e[i])&&(r+=n);else for(;++i<o;)(n=+t(e[i],i,e))&&(r+=n);return r}function A(e){if(!(o=e.length))return[];for(var t=-1,n=E(e,k),r=new Array(n);++t<n;)for(var o,i=-1,a=r[t]=new Array(o);++i<o;)a[i]=e[i][t];return r}function k(e){return e.length}function L(){return A(arguments)}var I=n(t),R=I.right,D=I.left,N=Math.sqrt(50),j=Math.sqrt(10),U=Math.sqrt(2),B="0.7.1";e.version=B,e.bisect=R,e.bisectRight=R,e.bisectLeft=D,e.ascending=t,e.bisector=n,e.descending=o,e.deviation=s,e.extent=u,e.histogram=m,e.thresholdFreedmanDiaconis=g,e.thresholdScott=_,e.thresholdSturges=d,e.max=b,e.mean=T,e.median=P,e.merge=x,e.min=E,e.pairs=O,e.permute=w,e.quantile=v,e.range=p,e.scan=C,e.shuffle=S,e.sum=M,e.ticks=f,e.tickStep=h,e.transpose=A,e.variance=a,e.zip=L})},function(e,t,n){var r,o,i,a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol?"symbol":typeof e};!function(n,s){"object"===a(t)&&"undefined"!=typeof e?s(t):(o=[t],r=s,i="function"==typeof r?r.apply(t,o):r,!(void 0!==i&&(e.exports=i)))}(void 0,function(e){"use strict";function t(){}function n(e,n){var r=new t;if(e instanceof t)e.each(function(e,t){r.set(t,e)});else if(Array.isArray(e)){var o,i=-1,a=e.length;if(null==n)for(;++i<a;)r.set(i,e[i]);else for(;++i<a;)r.set(n(o=e[i],i,e),o)}else if(e)for(var s in e)r.set(s,e[s]);return r}function r(){function e(t,o,i,a){if(o>=c.length)return u?u(t):r?t.sort(r):t;for(var s,l,p,f=-1,h=t.length,d=c[o++],y=n(),m=i();++f<h;)(p=y.get(s=d(l=t[f])+""))?p.push(l):y.set(s,[l]);return y.each(function(t,n){a(m,n,e(t,o,i,a))}),m}function t(e,n){if(n>=c.length)return e;var r=[],o=p[n++];return e.each(function(e,o){r.push({key:o,values:t(e,n)})}),o?r.sort(function(e,t){return o(e.key,t.key)}):r}var r,u,l,c=[],p=[];return l={object:function(t){return e(t,0,o,i)},map:function(t){return e(t,0,a,s)},entries:function(n){return t(e(n,0,a,s),0)},key:function(e){return c.push(e),l},sortKeys:function(e){return p[c.length-1]=e,l},sortValues:function(e){return r=e,l},rollup:function(e){return u=e,l}}}function o(){return{}}function i(e,t,n){e[t]=n}function a(){return n()}function s(e,t,n){e.set(t,n)}function u(){}function l(e,t){var n=new u;if(e instanceof u)e.each(function(e){n.add(e)});else if(e){var r=-1,o=e.length;if(null==t)for(;++r<o;)n.add(e[r]);else for(;++r<o;)n.add(t(e[r],r,e))}return n}function c(e){var t=[];for(var n in e)t.push(n);return t}function p(e){var t=[];for(var n in e)t.push(e[n]);return t}function f(e){var t=[];for(var n in e)t.push({key:n,value:e[n]});return t}var h="$";t.prototype=n.prototype={constructor:t,has:function(e){return h+e in this},get:function(e){return this[h+e]},set:function(e,t){return this[h+e]=t,this},remove:function(e){var t=h+e;return t in this&&delete this[t]},clear:function(){for(var e in this)e[0]===h&&delete this[e]},keys:function m(){var m=[];for(var e in this)e[0]===h&&m.push(e.slice(1));return m},values:function v(){var v=[];for(var e in this)e[0]===h&&v.push(this[e]);return v},entries:function g(){var g=[];for(var e in this)e[0]===h&&g.push({key:e.slice(1),value:this[e]});return g},size:function _(){var _=0;for(var e in this)e[0]===h&&++_;return _},empty:function(){for(var e in this)if(e[0]===h)return!1;return!0},each:function(e){for(var t in this)t[0]===h&&e(this[t],t.slice(1),this)}};var d=n.prototype;u.prototype=l.prototype={constructor:u,has:d.has,add:function(e){return e+="",this[h+e]=e,this},remove:d.remove,clear:d.clear,values:d.keys,size:d.size,empty:d.empty,each:d.each};var y="0.1.2";e.version=y,e.nest=r,e.set=l,e.map=n,e.keys=c,e.values=p,e.entries=f})},function(e,t,n){var r,o,i,a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol?"symbol":typeof e};!function(n,s){"object"===a(t)&&"undefined"!=typeof e?s(t):(o=[t],r=s,i="function"==typeof r?r.apply(t,o):r,!(void 0!==i&&(e.exports=i)))}(void 0,function(e){"use strict";function t(e,t){if((n=(e=t?e.toExponential(t-1):e.toExponential()).indexOf("e"))<0)return null;var n,r=e.slice(0,n);return[r.length>1?r[0]+r.slice(2):r,+e.slice(n+1)]}function n(e){return e=t(Math.abs(e)),e?e[1]:NaN}function r(e,t){return function(n,r){for(var o=n.length,i=[],a=0,s=e[0],u=0;o>0&&s>0&&(u+s+1>r&&(s=Math.max(1,r-u)),i.push(n.substring(o-=s,o+s)),!((u+=s+1)>r));)s=e[a=(a+1)%e.length];return i.reverse().join(t)}}function o(e,t){e=e.toPrecision(t);e:for(var n,r=e.length,o=1,i=-1;r>o;++o)switch(e[o]){case".":i=n=o;break;case"0":0===i&&(i=o),n=o;break;case"e":break e;default:i>0&&(i=0)}return i>0?e.slice(0,i)+e.slice(n+1):e}function i(e,n){var r=t(e,n);if(!r)return e+"";var o=r[0],i=r[1],a=i-(d=3*Math.max(-8,Math.min(8,Math.floor(i/3))))+1,s=o.length;return a===s?o:a>s?o+new Array(a-s+1).join("0"):a>0?o.slice(0,a)+"."+o.slice(a):"0."+new Array(1-a).join("0")+t(e,Math.max(0,n+a-1))[0]}function a(e,n){var r=t(e,n);if(!r)return e+"";var o=r[0],i=r[1];return 0>i?"0."+new Array(-i).join("0")+o:o.length>i+1?o.slice(0,i+1)+"."+o.slice(i+1):o+new Array(i-o.length+2).join("0")}function s(e){return new u(e)}function u(e){if(!(t=m.exec(e)))throw new Error("invalid format: "+e);var t,n=t[1]||" ",r=t[2]||">",o=t[3]||"-",i=t[4]||"",a=!!t[5],s=t[6]&&+t[6],u=!!t[7],l=t[8]&&+t[8].slice(1),c=t[9]||"";"n"===c?(u=!0,c="g"):y[c]||(c=""),(a||"0"===n&&"="===r)&&(a=!0,n="0",r="="),this.fill=n,this.align=r,this.sign=o,this.symbol=i,this.zero=a,this.width=s,this.comma=u,this.precision=l,this.type=c}function l(e){return e}function c(e){function t(e){function t(e){var t,a,s,l=g,y=_;if("c"===m)y=b(e)+y,e="";else{e=+e;var P=(0>e||0>1/e)&&(e*=-1,!0);if(e=b(e,h),P)for(t=-1,a=e.length,P=!1;++t<a;)if(s=e.charCodeAt(t),s>48&&58>s||"x"===m&&s>96&&103>s||"X"===m&&s>64&&71>s){P=!0;break}if(l=(P?"("===o?o:"-":"-"===o||"("===o?"":o)+l,y=y+("s"===m?v[8+d/3]:"")+(P&&"("===o?")":""),T)for(t=-1,a=e.length;++t<a;)if(s=e.charCodeAt(t),48>s||s>57){y=(46===s?u+e.slice(t+1):e.slice(t))+y,e=e.slice(0,t);break}}f&&!c&&(e=i(e,1/0));var x=l.length+e.length+y.length,E=p>x?new Array(p-x+1).join(n):"";switch(f&&c&&(e=i(E+e,E.length?p-y.length:1/0),E=""),r){case"<":return l+e+y+E;case"=":return l+E+e+y;case"^":return E.slice(0,x=E.length>>1)+l+e+y+E.slice(x)}return E+l+e+y}e=s(e);var n=e.fill,r=e.align,o=e.sign,l=e.symbol,c=e.zero,p=e.width,f=e.comma,h=e.precision,m=e.type,g="$"===l?a[0]:"#"===l&&/[boxX]/.test(m)?"0"+m.toLowerCase():"",_="$"===l?a[1]:/[%p]/.test(m)?"%":"",b=y[m],T=!m||/[defgprs%]/.test(m);return h=null==h?m?6:12:/[gprs]/.test(m)?Math.max(1,Math.min(21,h)):Math.max(0,Math.min(20,h)),t.toString=function(){return e+""},t}function o(e,r){var o=t((e=s(e),e.type="f",e)),i=3*Math.max(-8,Math.min(8,Math.floor(n(r)/3))),a=Math.pow(10,-i),u=v[8+i/3];return function(e){return o(a*e)+u}}var i=e.grouping&&e.thousands?r(e.grouping,e.thousands):l,a=e.currency,u=e.decimal;return{format:t,formatPrefix:o}}function p(e){return Math.max(0,-n(Math.abs(e)))}function f(e,t){return Math.max(0,3*Math.max(-8,Math.min(8,Math.floor(n(t)/3)))-n(Math.abs(e)))}function h(e,t){return e=Math.abs(e),t=Math.abs(t)-e,Math.max(0,n(t)-n(e))+1}var d,y={"":o,"%":function(e,t){return(100*e).toFixed(t)},b:function(e){return Math.round(e).toString(2)},c:function(e){return e+""},d:function(e){return Math.round(e).toString(10)},e:function(e,t){return e.toExponential(t)},f:function(e,t){return e.toFixed(t)},g:function(e,t){return e.toPrecision(t)},o:function(e){return Math.round(e).toString(8)},p:function(e,t){return a(100*e,t)},r:a,s:i,X:function(e){return Math.round(e).toString(16).toUpperCase()},x:function(e){return Math.round(e).toString(16)}},m=/^(?:(.)?([<>=^]))?([+\-\( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?([a-z%])?$/i;u.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(null==this.width?"":Math.max(1,0|this.width))+(this.comma?",":"")+(null==this.precision?"":"."+Math.max(0,0|this.precision))+this.type};var v=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"],g=c({decimal:".",thousands:",",grouping:[3],currency:["$",""]}),_=c({decimal:",",thousands:".",grouping:[3],currency:[""," €"]}),b=c({decimal:",",thousands:" ",grouping:[3],currency:[""," Kč"]}),T=c({decimal:",",thousands:"'",grouping:[3],currency:[""," CHF"]}),P=c({decimal:",",thousands:".",grouping:[3],currency:[""," €"]}),x=c({decimal:".",thousands:",",grouping:[3],currency:["$",""]}),E=c({decimal:".",thousands:",",grouping:[3],currency:["£",""]}),O=c({decimal:",",thousands:".",grouping:[3],currency:[""," €"]}),w=c({decimal:",",thousands:" ",grouping:[3],currency:[""," €"]}),C=c({decimal:",",thousands:" ",grouping:[3],currency:["","$"]}),S=c({decimal:",",thousands:".",grouping:[3],currency:[""," €"]}),M=c({decimal:".",thousands:",",grouping:[3],currency:["₪",""]}),A=c({decimal:",",thousands:" ",grouping:[3],currency:[""," Ft"]}),k=c({decimal:",",thousands:".",grouping:[3],currency:["€",""]}),L=c({decimal:".",thousands:",",grouping:[3],currency:["","円"]}),I=c({decimal:".",thousands:",",grouping:[3],currency:["₩",""]}),R=c({decimal:",",thousands:".",grouping:[3],currency:[""," ден."]}),D=c({decimal:",",thousands:".",grouping:[3],currency:["€ ",""]}),N=c({decimal:",",thousands:".",grouping:[3],currency:["","zł"]}),j=c({decimal:",",thousands:".",grouping:[3],currency:["R$",""]}),U=c({decimal:",",thousands:" ",grouping:[3],currency:[""," руб."]}),B=c({decimal:",",thousands:" ",grouping:[3],currency:["","SEK"]}),F=c({decimal:".",thousands:",",grouping:[3],currency:["¥",""]}),H=g.format,z=g.formatPrefix,G="0.5.1";e.version=G,e.format=H,e.formatPrefix=z,e.formatLocale=c,e.formatCaEs=_,e.formatCsCz=b,e.formatDeCh=T,e.formatDeDe=P,e.formatEnCa=x,e.formatEnGb=E,e.formatEnUs=g,e.formatEsEs=O,e.formatFiFi=w,e.formatFrCa=C,e.formatFrFr=S,e.formatHeIl=M,
  e.formatHuHu=A,e.formatItIt=k,e.formatJaJp=L,e.formatKoKr=I,e.formatMkMk=R,e.formatNlNl=D,e.formatPlPl=N,e.formatPtBr=j,e.formatRuRu=U,e.formatSvSe=B,e.formatZhCn=F,e.formatSpecifier=s,e.precisionFixed=p,e.precisionPrefix=f,e.precisionRound=h})},function(e,t,n){var r,o,i,a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol?"symbol":typeof e};!function(s,u){"object"===a(t)&&"undefined"!=typeof e?u(t,n(114)):(o=[t,n(114)],r=u,i="function"==typeof r?r.apply(t,o):r,!(void 0!==i&&(e.exports=i)))}(void 0,function(e,t){"use strict";function n(e){return function(){return e}}function r(e,t){return function(n){return e+n*t}}function o(e,t,n){return e=Math.pow(e,n),t=Math.pow(t,n)-e,n=1/n,function(r){return Math.pow(e+r*t,n)}}function i(e,t){var o=t-e;return o?r(e,o>180||-180>o?o-360*Math.round(o/360):o):n(isNaN(e)?t:e)}function s(e){return 1===(e=+e)?u:function(t,r){return r-t?o(t,r,e):n(isNaN(t)?r:t)}}function u(e,t){var o=t-e;return o?r(e,o):n(isNaN(e)?t:e)}function l(e,t){var n,r=[],o=[],i=e?e.length:0,a=t?t.length:0,s=Math.min(i,a);for(n=0;s>n;++n)r.push(y(e[n],t[n]));for(;i>n;++n)o[n]=e[n];for(;a>n;++n)o[n]=t[n];return function(e){for(n=0;s>n;++n)o[n]=r[n](e);return o}}function c(e,t){return e=+e,t-=e,function(n){return e+t*n}}function p(e,t){var n,r={},o={};null!==e&&"object"===("undefined"==typeof e?"undefined":a(e))||(e={}),null!==t&&"object"===("undefined"==typeof t?"undefined":a(t))||(t={});for(n in e)n in t?r[n]=y(e[n],t[n]):o[n]=e[n];for(n in t)n in e||(o[n]=t[n]);return function(e){for(n in r)o[n]=r[n](e);return o}}function f(e){return function(){return e}}function h(e){return function(t){return e(t)+""}}function d(e,t){var n,r,o,i=D.lastIndex=N.lastIndex=0,a=-1,s=[],u=[];for(e+="",t+="";(n=D.exec(e))&&(r=N.exec(t));)(o=r.index)>i&&(o=t.slice(i,o),s[a]?s[a]+=o:s[++a]=o),(n=n[0])===(r=r[0])?s[a]?s[a]+=r:s[++a]=r:(s[++a]=null,u.push({i:a,x:c(n,r)})),i=N.lastIndex;return i<t.length&&(o=t.slice(i),s[a]?s[a]+=o:s[++a]=o),s.length<2?u[0]?h(u[0].x):f(t):(t=u.length,function(e){for(var n,r=0;t>r;++r)s[(n=u[r]).i]=n.x(e);return s.join("")})}function y(e,r){var o,i="undefined"==typeof r?"undefined":a(r);return null==r||"boolean"===i?n(r):("number"===i?c:"string"===i?(o=t.color(r))?(r=o,R):d:r instanceof t.color?R:Array.isArray(r)?l:p)(e,r)}function m(e,t){return e=+e,t-=e,function(n){return Math.round(e+t*n)}}function v(e,t,n,r,o,i){if(e*r===t*n)return null;var a=Math.sqrt(e*e+t*t);e/=a,t/=a;var s=e*n+t*r;n-=e*s,r-=t*s;var u=Math.sqrt(n*n+r*r);return n/=u,r/=u,s/=u,t*n>e*r&&(e=-e,t=-t,s=-s,a=-a),{translateX:o,translateY:i,rotate:Math.atan2(t,e)*j,skewX:Math.atan(s)*j,scaleX:a,scaleY:u}}function g(e){if("none"===e)return U;A||(A=document.createElement("DIV"),k=document.documentElement,L=document.defaultView),A.style.transform=e,e=L.getComputedStyle(k.appendChild(A),null).getPropertyValue("transform"),k.removeChild(A);var t=e.slice(7,-1).split(",");return v(+t[0],+t[1],+t[2],+t[3],+t[4],+t[5])}function _(e){I||(I=document.createElementNS("http://www.w3.org/2000/svg","g")),I.setAttribute("transform",null==e?"":e);var t=I.transform.baseVal.consolidate().matrix;return v(t.a,t.b,t.c,t.d,t.e,t.f)}function b(e,t,n,r){function o(e){return e.length?e.pop()+" ":""}function i(e,r,o,i,a,s){if(e!==o||r!==i){var u=a.push("translate(",null,t,null,n);s.push({i:u-4,x:c(e,o)},{i:u-2,x:c(r,i)})}else(o||i)&&a.push("translate("+o+t+i+n)}function a(e,t,n,i){e!==t?(e-t>180?t+=360:t-e>180&&(e+=360),i.push({i:n.push(o(n)+"rotate(",null,r)-2,x:c(e,t)})):t&&n.push(o(n)+"rotate("+t+r)}function s(e,t,n,i){e!==t?i.push({i:n.push(o(n)+"skewX(",null,r)-2,x:c(e,t)}):t&&n.push(o(n)+"skewX("+t+r)}function u(e,t,n,r,i,a){if(e!==n||t!==r){var s=i.push(o(i)+"scale(",null,",",null,")");a.push({i:s-4,x:c(e,n)},{i:s-2,x:c(t,r)})}else 1===n&&1===r||i.push(o(i)+"scale("+n+","+r+")")}return function(t,n){var r=[],o=[];return t=e(t),n=e(n),i(t.translateX,t.translateY,n.translateX,n.translateY,r,o),a(t.rotate,n.rotate,r,o),s(t.skewX,n.skewX,r,o),u(t.scaleX,t.scaleY,n.scaleX,n.scaleY,r,o),t=n=null,function(e){for(var t,n=-1,i=o.length;++n<i;)r[(t=o[n]).i]=t.x(e);return r.join("")}}}function T(e){return((e=Math.exp(e))+1/e)/2}function P(e){return((e=Math.exp(e))-1/e)/2}function x(e){return((e=Math.exp(2*e))-1)/(e+1)}function E(e,t){var n,r,o=e[0],i=e[1],a=e[2],s=t[0],u=t[1],l=t[2],c=s-o,p=u-i,f=c*c+p*p;if(W>f)r=Math.log(l/a)/H,n=function(e){return[o+e*c,i+e*p,a*Math.exp(H*e*r)]};else{var h=Math.sqrt(f),d=(l*l-a*a+G*f)/(2*a*z*h),y=(l*l-a*a-G*f)/(2*l*z*h),m=Math.log(Math.sqrt(d*d+1)-d),v=Math.log(Math.sqrt(y*y+1)-y);r=(v-m)/H,n=function(e){var t=e*r,n=T(m),s=a/(z*h)*(n*x(H*t+m)-P(m));return[o+s*c,i+s*p,a*n/T(H*t+m)]}}return n.duration=1e3*r,n}function O(e,n){var r=i((e=t.hsl(e)).h,(n=t.hsl(n)).h),o=u(e.s,n.s),a=u(e.l,n.l),s=u(e.opacity,n.opacity);return function(t){return e.h=r(t),e.s=o(t),e.l=a(t),e.opacity=s(t),e+""}}function w(e,n){var r=u((e=t.hsl(e)).h,(n=t.hsl(n)).h),o=u(e.s,n.s),i=u(e.l,n.l),a=u(e.opacity,n.opacity);return function(t){return e.h=r(t),e.s=o(t),e.l=i(t),e.opacity=a(t),e+""}}function C(e,n){var r=u((e=t.lab(e)).l,(n=t.lab(n)).l),o=u(e.a,n.a),i=u(e.b,n.b),a=u(e.opacity,n.opacity);return function(t){return e.l=r(t),e.a=o(t),e.b=i(t),e.opacity=a(t),e+""}}function S(e,n){var r=i((e=t.hcl(e)).h,(n=t.hcl(n)).h),o=u(e.c,n.c),a=u(e.l,n.l),s=u(e.opacity,n.opacity);return function(t){return e.h=r(t),e.c=o(t),e.l=a(t),e.opacity=s(t),e+""}}function M(e,n){var r=u((e=t.hcl(e)).h,(n=t.hcl(n)).h),o=u(e.c,n.c),i=u(e.l,n.l),a=u(e.opacity,n.opacity);return function(t){return e.h=r(t),e.c=o(t),e.l=i(t),e.opacity=a(t),e+""}}var A,k,L,I,R=function K(e){function n(e,n){var o=r((e=t.rgb(e)).r,(n=t.rgb(n)).r),i=r(e.g,n.g),a=r(e.b,n.b),s=r(e.opacity,n.opacity);return function(t){return e.r=o(t),e.g=i(t),e.b=a(t),e.opacity=s(t),e+""}}var r=s(e);return n.gamma=K,n}(1),D=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,N=new RegExp(D.source,"g"),j=180/Math.PI,U={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1},B=b(g,"px, ","px)","deg)"),F=b(_,", ",")",")"),H=Math.SQRT2,z=2,G=4,W=1e-12,V=function Y(e){function n(n,r){var o=i((n=t.cubehelix(n)).h,(r=t.cubehelix(r)).h),a=u(n.s,r.s),s=u(n.l,r.l),l=u(n.opacity,r.opacity);return function(t){return n.h=o(t),n.s=a(t),n.l=s(Math.pow(t,e)),n.opacity=l(t),n+""}}return e=+e,n.gamma=Y,n}(1),q=function J(e){function n(n,r){var o=u((n=t.cubehelix(n)).h,(r=t.cubehelix(r)).h),i=u(n.s,r.s),a=u(n.l,r.l),s=u(n.opacity,r.opacity);return function(t){return n.h=o(t),n.s=i(t),n.l=a(Math.pow(t,e)),n.opacity=s(t),n+""}}return e=+e,n.gamma=J,n}(1),Z="0.7.0";e.version=Z,e.interpolate=y,e.interpolateArray=l,e.interpolateNumber=c,e.interpolateObject=p,e.interpolateRound=m,e.interpolateString=d,e.interpolateTransformCss=B,e.interpolateTransformSvg=F,e.interpolateZoom=E,e.interpolateRgb=R,e.interpolateHsl=O,e.interpolateHslLong=w,e.interpolateLab=C,e.interpolateHcl=S,e.interpolateHclLong=M,e.interpolateCubehelix=V,e.interpolateCubehelixLong=q})},function(e,t,n){var r,o,i,a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol?"symbol":typeof e};!function(s,u){"object"===a(t)&&"undefined"!=typeof e?u(t,n(115)):(o=[t,n(115)],r=u,i="function"==typeof r?r.apply(t,o):r,!(void 0!==i&&(e.exports=i)))}(void 0,function(e,t){"use strict";function n(e){if(0<=e.y&&e.y<100){var t=new Date(-1,e.m,e.d,e.H,e.M,e.S,e.L);return t.setFullYear(e.y),t}return new Date(e.y,e.m,e.d,e.H,e.M,e.S,e.L)}function r(e){if(0<=e.y&&e.y<100){var t=new Date(Date.UTC(-1,e.m,e.d,e.H,e.M,e.S,e.L));return t.setUTCFullYear(e.y),t}return new Date(Date.UTC(e.y,e.m,e.d,e.H,e.M,e.S,e.L))}function o(e){return{y:e,m:0,d:1,H:0,M:0,S:0,L:0}}function i(e){function t(e,t){return function(n){var r,o,i,a=[],s=-1,u=0,l=e.length;for(n instanceof Date||(n=new Date(+n));++s<l;)37===e.charCodeAt(s)&&(a.push(e.slice(u,s)),null!=(o=ne[r=e.charAt(++s)])?r=e.charAt(++s):o="e"===r?" ":"0",(i=t[r])&&(r=i(n,o)),a.push(r),u=s+1);return a.push(e.slice(u,s)),a.join("")}}function i(e,t){return function(n){var i=o(1900),s=a(i,e,n+="",0);if(s!=n.length)return null;if("p"in i&&(i.H=i.H%12+12*i.p),"W"in i||"U"in i){"w"in i||(i.w="W"in i?1:0);var u="Z"in i?r(o(i.y)).getUTCDay():t(o(i.y)).getDay();i.m=0,i.d="W"in i?(i.w+6)%7+7*i.W-(u+5)%7:i.w+7*i.U-(u+6)%7}return"Z"in i?(i.H+=i.Z/100|0,i.M+=i.Z%100,r(i)):t(i)}}function a(e,t,n,r){for(var o,i,a=0,s=t.length,u=n.length;s>a;){if(r>=u)return-1;if(o=t.charCodeAt(a++),37===o){if(o=t.charAt(a++),i=je[o in ne?t.charAt(a++):o],!i||(r=i(e,n,r))<0)return-1}else if(o!=n.charCodeAt(r++))return-1}return r}function s(e,t,n){var r=Oe.exec(t.slice(n));return r?(e.p=we[r[0].toLowerCase()],n+r[0].length):-1}function Q(e,t,n){var r=Me.exec(t.slice(n));return r?(e.w=Ae[r[0].toLowerCase()],n+r[0].length):-1}function ee(e,t,n){var r=Ce.exec(t.slice(n));return r?(e.w=Se[r[0].toLowerCase()],n+r[0].length):-1}function te(e,t,n){var r=Ie.exec(t.slice(n));return r?(e.m=Re[r[0].toLowerCase()],n+r[0].length):-1}function re(e,t,n){var r=ke.exec(t.slice(n));return r?(e.m=Le[r[0].toLowerCase()],n+r[0].length):-1}function oe(e,t,n){return a(e,ve,t,n)}function ie(e,t,n){return a(e,ge,t,n)}function ae(e,t,n){return a(e,_e,t,n)}function se(e){return Pe[e.getDay()]}function ue(e){return Te[e.getDay()]}function le(e){return Ee[e.getMonth()]}function ce(e){return xe[e.getMonth()]}function pe(e){return be[+(e.getHours()>=12)]}function fe(e){return Pe[e.getUTCDay()]}function he(e){return Te[e.getUTCDay()]}function de(e){return Ee[e.getUTCMonth()]}function ye(e){return xe[e.getUTCMonth()]}function me(e){return be[+(e.getUTCHours()>=12)]}var ve=e.dateTime,ge=e.date,_e=e.time,be=e.periods,Te=e.days,Pe=e.shortDays,xe=e.months,Ee=e.shortMonths,Oe=u(be),we=l(be),Ce=u(Te),Se=l(Te),Me=u(Pe),Ae=l(Pe),ke=u(xe),Le=l(xe),Ie=u(Ee),Re=l(Ee),De={a:se,A:ue,b:le,B:ce,c:null,d:E,e:E,H:O,I:w,j:C,L:S,m:M,M:A,p:pe,S:k,U:L,w:I,W:R,x:null,X:null,y:D,Y:N,Z:j,"%":$},Ne={a:fe,A:he,b:de,B:ye,c:null,d:U,e:U,H:B,I:F,j:H,L:z,m:G,M:W,p:me,S:V,U:q,w:Z,W:K,x:null,X:null,y:Y,Y:J,Z:X,"%":$},je={a:Q,A:ee,b:te,B:re,c:oe,d:v,e:v,H:_,I:_,j:g,L:P,m:m,M:b,p:s,S:T,U:p,w:c,W:f,x:ie,X:ae,y:d,Y:h,Z:y,"%":x};return De.x=t(ge,De),De.X=t(_e,De),De.c=t(ve,De),Ne.x=t(ge,Ne),Ne.X=t(_e,Ne),Ne.c=t(ve,Ne),{format:function(e){var n=t(e+="",De);return n.toString=function(){return e},n},parse:function(e){var t=i(e+="",n);return t.toString=function(){return e},t},utcFormat:function(e){var n=t(e+="",Ne);return n.toString=function(){return e},n},utcParse:function(e){var t=i(e,r);return t.toString=function(){return e},t}}}function a(e,t,n){var r=0>e?"-":"",o=(r?-e:e)+"",i=o.length;return r+(n>i?new Array(n-i+1).join(t)+o:o)}function s(e){return e.replace(ie,"\\$&")}function u(e){return new RegExp("^(?:"+e.map(s).join("|")+")","i")}function l(e){for(var t={},n=-1,r=e.length;++n<r;)t[e[n].toLowerCase()]=n;return t}function c(e,t,n){var r=re.exec(t.slice(n,n+1));return r?(e.w=+r[0],n+r[0].length):-1}function p(e,t,n){var r=re.exec(t.slice(n));return r?(e.U=+r[0],n+r[0].length):-1}function f(e,t,n){var r=re.exec(t.slice(n));return r?(e.W=+r[0],n+r[0].length):-1}function h(e,t,n){var r=re.exec(t.slice(n,n+4));return r?(e.y=+r[0],n+r[0].length):-1}function d(e,t,n){var r=re.exec(t.slice(n,n+2));return r?(e.y=+r[0]+(+r[0]>68?1900:2e3),n+r[0].length):-1}function y(e,t,n){var r=/^(Z)|([+-]\d\d)(?:\:?(\d\d))?/.exec(t.slice(n,n+6));return r?(e.Z=r[1]?0:-(r[2]+(r[3]||"00")),n+r[0].length):-1}function m(e,t,n){var r=re.exec(t.slice(n,n+2));return r?(e.m=r[0]-1,n+r[0].length):-1}function v(e,t,n){var r=re.exec(t.slice(n,n+2));return r?(e.d=+r[0],n+r[0].length):-1}function g(e,t,n){var r=re.exec(t.slice(n,n+3));return r?(e.m=0,e.d=+r[0],n+r[0].length):-1}function _(e,t,n){var r=re.exec(t.slice(n,n+2));return r?(e.H=+r[0],n+r[0].length):-1}function b(e,t,n){var r=re.exec(t.slice(n,n+2));return r?(e.M=+r[0],n+r[0].length):-1}function T(e,t,n){var r=re.exec(t.slice(n,n+2));return r?(e.S=+r[0],n+r[0].length):-1}function P(e,t,n){var r=re.exec(t.slice(n,n+3));return r?(e.L=+r[0],n+r[0].length):-1}function x(e,t,n){var r=oe.exec(t.slice(n,n+1));return r?n+r[0].length:-1}function E(e,t){return a(e.getDate(),t,2)}function O(e,t){return a(e.getHours(),t,2)}function w(e,t){return a(e.getHours()%12||12,t,2)}function C(e,n){return a(1+t.timeDay.count(t.timeYear(e),e),n,3)}function S(e,t){return a(e.getMilliseconds(),t,3)}function M(e,t){return a(e.getMonth()+1,t,2)}function A(e,t){return a(e.getMinutes(),t,2)}function k(e,t){return a(e.getSeconds(),t,2)}function L(e,n){return a(t.timeSunday.count(t.timeYear(e),e),n,2)}function I(e){return e.getDay()}function R(e,n){return a(t.timeMonday.count(t.timeYear(e),e),n,2)}function D(e,t){return a(e.getFullYear()%100,t,2)}function N(e,t){return a(e.getFullYear()%1e4,t,4)}function j(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+a(t/60|0,"0",2)+a(t%60,"0",2)}function U(e,t){return a(e.getUTCDate(),t,2)}function B(e,t){return a(e.getUTCHours(),t,2)}function F(e,t){return a(e.getUTCHours()%12||12,t,2)}function H(e,n){return a(1+t.utcDay.count(t.utcYear(e),e),n,3)}function z(e,t){return a(e.getUTCMilliseconds(),t,3)}function G(e,t){return a(e.getUTCMonth()+1,t,2)}function W(e,t){return a(e.getUTCMinutes(),t,2)}function V(e,t){return a(e.getUTCSeconds(),t,2)}function q(e,n){return a(t.utcSunday.count(t.utcYear(e),e),n,2)}function Z(e){return e.getUTCDay()}function K(e,n){return a(t.utcMonday.count(t.utcYear(e),e),n,2)}function Y(e,t){return a(e.getUTCFullYear()%100,t,2)}function J(e,t){return a(e.getUTCFullYear()%1e4,t,4)}function X(){return"+0000"}function $(){return"%"}function Q(e){return e.toISOString()}function ee(e){var t=new Date(e);return isNaN(t)?null:t}var te="0.3.2",ne={"-":"",_:" ",0:"0"},re=/^\s*\d+/,oe=/^%/,ie=/[\\\^\$\*\+\?\|\[\]\(\)\.\{\}]/g,ae=i({dateTime:"%a %b %e %X %Y",date:"%m/%d/%Y",time:"%H:%M:%S",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]}),se=i({dateTime:"%A, %e de %B de %Y, %X",date:"%d/%m/%Y",time:"%H:%M:%S",periods:["AM","PM"],days:["diumenge","dilluns","dimarts","dimecres","dijous","divendres","dissabte"],shortDays:["dg.","dl.","dt.","dc.","dj.","dv.","ds."],months:["gener","febrer","març","abril","maig","juny","juliol","agost","setembre","octubre","novembre","desembre"],shortMonths:["gen.","febr.","març","abr.","maig","juny","jul.","ag.","set.","oct.","nov.","des."]}),ue=i({dateTime:"%A, der %e. %B %Y, %X",date:"%d.%m.%Y",time:"%H:%M:%S",periods:["AM","PM"],days:["Sonntag","Montag","Dienstag","Mittwoch","Donnerstag","Freitag","Samstag"],shortDays:["So","Mo","Di","Mi","Do","Fr","Sa"],months:["Januar","Februar","März","April","Mai","Juni","Juli","August","September","Oktober","November","Dezember"],shortMonths:["Jan","Feb","Mrz","Apr","Mai","Jun","Jul","Aug","Sep","Okt","Nov","Dez"]}),le=i({dateTime:"%A, der %e. %B %Y, %X",date:"%d.%m.%Y",time:"%H:%M:%S",periods:["AM","PM"],days:["Sonntag","Montag","Dienstag","Mittwoch","Donnerstag","Freitag","Samstag"],shortDays:["So","Mo","Di","Mi","Do","Fr","Sa"],months:["Januar","Februar","März","April","Mai","Juni","Juli","August","September","Oktober","November","Dezember"],shortMonths:["Jan","Feb","Mrz","Apr","Mai","Jun","Jul","Aug","Sep","Okt","Nov","Dez"]}),ce=i({dateTime:"%a %b %e %X %Y",date:"%Y-%m-%d",time:"%H:%M:%S",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]}),pe=i({dateTime:"%a %e %b %X %Y",date:"%d/%m/%Y",time:"%H:%M:%S",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]}),fe=i({dateTime:"%A, %e de %B de %Y, %X",date:"%d/%m/%Y",time:"%H:%M:%S",periods:["AM","PM"],days:["domingo","lunes","martes","miércoles","jueves","viernes","sábado"],shortDays:["dom","lun","mar","mié","jue","vie","sáb"],months:["enero","febrero","marzo","abril","mayo","junio","julio","agosto","septiembre","octubre","noviembre","diciembre"],shortMonths:["ene","feb","mar","abr","may","jun","jul","ago","sep","oct","nov","dic"]}),he=i({dateTime:"%A, %-d. %Bta %Y klo %X",date:"%-d.%-m.%Y",time:"%H:%M:%S",periods:["a.m.","p.m."],days:["sunnuntai","maanantai","tiistai","keskiviikko","torstai","perjantai","lauantai"],shortDays:["Su","Ma","Ti","Ke","To","Pe","La"],months:["tammikuu","helmikuu","maaliskuu","huhtikuu","toukokuu","kesäkuu","heinäkuu","elokuu","syyskuu","lokakuu","marraskuu","joulukuu"],shortMonths:["Tammi","Helmi","Maalis","Huhti","Touko","Kesä","Heinä","Elo","Syys","Loka","Marras","Joulu"]}),de=i({dateTime:"%a %e %b %Y %X",date:"%Y-%m-%d",time:"%H:%M:%S",periods:["",""],days:["dimanche","lundi","mardi","mercredi","jeudi","vendredi","samedi"],shortDays:["dim","lun","mar","mer","jeu","ven","sam"],months:["janvier","février","mars","avril","mai","juin","juillet","août","septembre","octobre","novembre","décembre"],shortMonths:["jan","fév","mar","avr","mai","jui","jul","aoû","sep","oct","nov","déc"]}),ye=i({dateTime:"%A, le %e %B %Y, %X",date:"%d/%m/%Y",time:"%H:%M:%S",periods:["AM","PM"],days:["dimanche","lundi","mardi","mercredi","jeudi","vendredi","samedi"],shortDays:["dim.","lun.","mar.","mer.","jeu.","ven.","sam."],months:["janvier","février","mars","avril","mai","juin","juillet","août","septembre","octobre","novembre","décembre"],shortMonths:["janv.","févr.","mars","avr.","mai","juin","juil.","août","sept.","oct.","nov.","déc."]}),me=i({dateTime:"%A, %e ב%B %Y %X",date:"%d.%m.%Y",time:"%H:%M:%S",periods:["AM","PM"],days:["ראשון","שני","שלישי","רביעי","חמישי","שישי","שבת"],shortDays:["א׳","ב׳","ג׳","ד׳","ה׳","ו׳","ש׳"],months:["ינואר","פברואר","מרץ","אפריל","מאי","יוני","יולי","אוגוסט","ספטמבר","אוקטובר","נובמבר","דצמבר"],shortMonths:["ינו׳","פבר׳","מרץ","אפר׳","מאי","יוני","יולי","אוג׳","ספט׳","אוק׳","נוב׳","דצמ׳"]}),ve=i({dateTime:"%Y. %B %-e., %A %X",date:"%Y. %m. %d.",time:"%H:%M:%S",periods:["de.","du."],days:["vasárnap","hétfő","kedd","szerda","csütörtök","péntek","szombat"],shortDays:["V","H","K","Sze","Cs","P","Szo"],months:["január","február","március","április","május","június","július","augusztus","szeptember","október","november","december"],shortMonths:["jan.","feb.","már.","ápr.","máj.","jún.","júl.","aug.","szept.","okt.","nov.","dec."]}),ge=i({dateTime:"%A %e %B %Y, %X",date:"%d/%m/%Y",time:"%H:%M:%S",periods:["AM","PM"],days:["Domenica","Lunedì","Martedì","Mercoledì","Giovedì","Venerdì","Sabato"],shortDays:["Dom","Lun","Mar","Mer","Gio","Ven","Sab"],months:["Gennaio","Febbraio","Marzo","Aprile","Maggio","Giugno","Luglio","Agosto","Settembre","Ottobre","Novembre","Dicembre"],shortMonths:["Gen","Feb","Mar","Apr","Mag","Giu","Lug","Ago","Set","Ott","Nov","Dic"]}),_e=i({dateTime:"%Y %b %e %a %X",date:"%Y/%m/%d",time:"%H:%M:%S",periods:["AM","PM"],days:["日曜日","月曜日","火曜日","水曜日","木曜日","金曜日","土曜日"],shortDays:["日","月","火","水","木","金","土"],months:["睦月","如月","弥生","卯月","皐月","水無月","文月","葉月","長月","神無月","霜月","師走"],shortMonths:["1月","2月","3月","4月","5月","6月","7月","8月","9月","10月","11月","12月"]}),be=i({dateTime:"%Y/%m/%d %a %X",date:"%Y/%m/%d",time:"%H:%M:%S",periods:["오전","오후"],days:["일요일","월요일","화요일","수요일","목요일","금요일","토요일"],shortDays:["일","월","화","수","목","금","토"],months:["1월","2월","3월","4월","5월","6월","7월","8월","9월","10월","11월","12월"],shortMonths:["1월","2월","3월","4월","5월","6월","7월","8월","9월","10월","11월","12월"]}),Te=i({dateTime:"%A, %e %B %Y г. %X",date:"%d.%m.%Y",time:"%H:%M:%S",periods:["AM","PM"],days:["недела","понеделник","вторник","среда","четврток","петок","сабота"],shortDays:["нед","пон","вто","сре","чет","пет","саб"],months:["јануари","февруари","март","април","мај","јуни","јули","август","септември","октомври","ноември","декември"],shortMonths:["јан","фев","мар","апр","мај","јун","јул","авг","сеп","окт","ное","дек"]}),Pe=i({dateTime:"%a %e %B %Y %T",date:"%d-%m-%Y",time:"%H:%M:%S",periods:["AM","PM"],days:["zondag","maandag","dinsdag","woensdag","donderdag","vrijdag","zaterdag"],shortDays:["zo","ma","di","wo","do","vr","za"],months:["januari","februari","maart","april","mei","juni","juli","augustus","september","oktober","november","december"],shortMonths:["jan","feb","mrt","apr","mei","jun","jul","aug","sep","okt","nov","dec"]}),xe=i({dateTime:"%A, %e %B %Y, %X",date:"%d/%m/%Y",time:"%H:%M:%S",periods:["AM","PM"],days:["Niedziela","Poniedziałek","Wtorek","Środa","Czwartek","Piątek","Sobota"],shortDays:["Niedz.","Pon.","Wt.","Śr.","Czw.","Pt.","Sob."],months:["Styczeń","Luty","Marzec","Kwiecień","Maj","Czerwiec","Lipiec","Sierpień","Wrzesień","Październik","Listopad","Grudzień"],shortMonths:["Stycz.","Luty","Marz.","Kwie.","Maj","Czerw.","Lipc.","Sierp.","Wrz.","Paźdz.","Listop.","Grudz."]}),Ee=i({dateTime:"%A, %e de %B de %Y. %X",date:"%d/%m/%Y",time:"%H:%M:%S",periods:["AM","PM"],days:["Domingo","Segunda","Terça","Quarta","Quinta","Sexta","Sábado"],shortDays:["Dom","Seg","Ter","Qua","Qui","Sex","Sáb"],months:["Janeiro","Fevereiro","Março","Abril","Maio","Junho","Julho","Agosto","Setembro","Outubro","Novembro","Dezembro"],shortMonths:["Jan","Fev","Mar","Abr","Mai","Jun","Jul","Ago","Set","Out","Nov","Dez"]}),Oe=i({dateTime:"%A, %e %B %Y г. %X",date:"%d.%m.%Y",time:"%H:%M:%S",periods:["AM","PM"],days:["воскресенье","понедельник","вторник","среда","четверг","пятница","суббота"],shortDays:["вс","пн","вт","ср","чт","пт","сб"],months:["января","февраля","марта","апреля","мая","июня","июля","августа","сентября","октября","ноября","декабря"],shortMonths:["янв","фев","мар","апр","май","июн","июл","авг","сен","окт","ноя","дек"]}),we=i({dateTime:"%A den %d %B %Y %X",date:"%Y-%m-%d",time:"%H:%M:%S",periods:["fm","em"],days:["Söndag","Måndag","Tisdag","Onsdag","Torsdag","Fredag","Lördag"],shortDays:["Sön","Mån","Tis","Ons","Tor","Fre","Lör"],months:["Januari","Februari","Mars","April","Maj","Juni","Juli","Augusti","September","Oktober","November","December"],shortMonths:["Jan","Feb","Mar","Apr","Maj","Jun","Jul","Aug","Sep","Okt","Nov","Dec"]}),Ce=i({dateTime:"%x %A %X",date:"%Y年%-m月%-d日",time:"%H:%M:%S",periods:["上午","下午"],days:["星期日","星期一","星期二","星期三","星期四","星期五","星期六"],shortDays:["周日","周一","周二","周三","周四","周五","周六"],months:["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月"],shortMonths:["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月"]}),Se="%Y-%m-%dT%H:%M:%S.%LZ",Me=Date.prototype.toISOString?Q:ae.utcFormat(Se),Ae=+new Date("2000-01-01T00:00:00.000Z")?ee:ae.utcParse(Se),ke=ae.format,Le=ae.parse,Ie=ae.utcFormat,Re=ae.utcParse;e.timeFormat=ke,e.timeParse=Le,e.utcFormat=Ie,e.utcParse=Re,e.version=te,e.timeFormatLocale=i,e.timeFormatCaEs=se,e.timeFormatDeCh=ue,e.timeFormatDeDe=le,e.timeFormatEnCa=ce,e.timeFormatEnGb=pe,e.timeFormatEnUs=ae,e.timeFormatEsEs=fe,e.timeFormatFiFi=he,e.timeFormatFrCa=de,e.timeFormatFrFr=ye,e.timeFormatHeIl=me,e.timeFormatHuHu=ve,e.timeFormatItIt=ge,e.timeFormatJaJp=_e,e.timeFormatKoKr=be,e.timeFormatMkMk=Te,e.timeFormatNlNl=Pe,e.timeFormatPlPl=xe,e.timeFormatPtBr=Ee,e.timeFormatRuRu=Oe,e.timeFormatSvSe=we,e.timeFormatZhCn=Ce,e.isoFormat=Me,e.isoParse=Ae})},function(e,t,n){var r,o,i,a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol?"symbol":typeof e};!function(s,u){"object"===a(t)&&"undefined"!=typeof e?u(t,n(295)):(o=[t,n(295)],r=u,i="function"==typeof r?r.apply(t,o):r,!(void 0!==i&&(e.exports=i)))}(void 0,function(e,t){"use strict";function n(e){return function(){return e}}function r(e){return e.innerRadius}function o(e){return e.outerRadius}function i(e){return e.startAngle}function a(e){return e.endAngle}function s(e){return e&&e.padAngle}function u(e){return e>=1?Pe:-1>=e?-Pe:Math.asin(e)}function l(e,t,n,r,o,i,a,s){var u=n-e,l=r-t,c=a-o,p=s-i,f=(c*(t-i)-p*(e-o))/(p*u-c*l);return[e+f*u,t+f*l]}function c(e,t,n,r,o,i,a){var s=e-n,u=t-r,l=(a?i:-i)/Math.sqrt(s*s+u*u),c=l*u,p=-l*s,f=e+c,h=t+p,d=n+c,y=r+p,m=(f+d)/2,v=(h+y)/2,g=d-f,_=y-h,b=g*g+_*_,T=o-i,P=f*y-d*h,x=(0>_?-1:1)*Math.sqrt(Math.max(0,T*T*b-P*P)),E=(P*_-g*x)/b,O=(-P*g-_*x)/b,w=(P*_+g*x)/b,C=(-P*g+_*x)/b,S=E-m,M=O-v,A=w-m,k=C-v;return S*S+M*M>A*A+k*k&&(E=w,O=C),{cx:E,cy:O,x01:-c,y01:-p,x11:E*(o/T-1),y11:O*(o/T-1)}}function p(){function e(){var e,n,r=+p.apply(this,arguments),o=+f.apply(this,arguments),i=y.apply(this,arguments)-Pe,a=m.apply(this,arguments)-Pe,s=Math.abs(a-i),_=a>i;if(g||(g=e=t.path()),r>o&&(n=o,o=r,r=n),o>be)if(s>xe-be)g.moveTo(o*Math.cos(i),o*Math.sin(i)),g.arc(0,0,o,i,a,!_),r>be&&(g.moveTo(r*Math.cos(a),r*Math.sin(a)),g.arc(0,0,r,a,i,_));else{var b,T,P=i,x=a,E=i,O=a,w=s,C=s,S=v.apply(this,arguments)/2,M=S>be&&(d?+d.apply(this,arguments):Math.sqrt(r*r+o*o)),A=Math.min(Math.abs(o-r)/2,+h.apply(this,arguments)),k=A,L=A;if(M>be){var I=u(M/r*Math.sin(S)),R=u(M/o*Math.sin(S));(w-=2*I)>be?(I*=_?1:-1,E+=I,O-=I):(w=0,E=O=(i+a)/2),(C-=2*R)>be?(R*=_?1:-1,P+=R,x-=R):(C=0,P=x=(i+a)/2)}var D=o*Math.cos(P),N=o*Math.sin(P),j=r*Math.cos(O),U=r*Math.sin(O);if(A>be){var B=o*Math.cos(x),F=o*Math.sin(x),H=r*Math.cos(E),z=r*Math.sin(E);if(Te>s){var G=w>be?l(D,N,H,z,B,F,j,U):[j,U],W=D-G[0],V=N-G[1],q=B-G[0],Z=F-G[1],K=1/Math.sin(Math.acos((W*q+V*Z)/(Math.sqrt(W*W+V*V)*Math.sqrt(q*q+Z*Z)))/2),Y=Math.sqrt(G[0]*G[0]+G[1]*G[1]);k=Math.min(A,(r-Y)/(K-1)),L=Math.min(A,(o-Y)/(K+1))}}C>be?L>be?(b=c(H,z,D,N,o,L,_),T=c(B,F,j,U,o,L,_),g.moveTo(b.cx+b.x01,b.cy+b.y01),A>L?g.arc(b.cx,b.cy,L,Math.atan2(b.y01,b.x01),Math.atan2(T.y01,T.x01),!_):(g.arc(b.cx,b.cy,L,Math.atan2(b.y01,b.x01),Math.atan2(b.y11,b.x11),!_),g.arc(0,0,o,Math.atan2(b.cy+b.y11,b.cx+b.x11),Math.atan2(T.cy+T.y11,T.cx+T.x11),!_),g.arc(T.cx,T.cy,L,Math.atan2(T.y11,T.x11),Math.atan2(T.y01,T.x01),!_))):(g.moveTo(D,N),g.arc(0,0,o,P,x,!_)):g.moveTo(D,N),r>be&&w>be?k>be?(b=c(j,U,B,F,r,-k,_),T=c(D,N,H,z,r,-k,_),g.lineTo(b.cx+b.x01,b.cy+b.y01),A>k?g.arc(b.cx,b.cy,k,Math.atan2(b.y01,b.x01),Math.atan2(T.y01,T.x01),!_):(g.arc(b.cx,b.cy,k,Math.atan2(b.y01,b.x01),Math.atan2(b.y11,b.x11),!_),g.arc(0,0,r,Math.atan2(b.cy+b.y11,b.cx+b.x11),Math.atan2(T.cy+T.y11,T.cx+T.x11),_),g.arc(T.cx,T.cy,k,Math.atan2(T.y11,T.x11),Math.atan2(T.y01,T.x01),!_))):g.arc(0,0,r,O,E,_):g.lineTo(j,U)}else g.moveTo(0,0);return g.closePath(),e?(g=null,e+""||null):void 0}var p=r,f=o,h=n(0),d=null,y=i,m=a,v=s,g=null;return e.centroid=function(){var e=(+p.apply(this,arguments)+ +f.apply(this,arguments))/2,t=(+y.apply(this,arguments)+ +m.apply(this,arguments))/2-Te/2;return[Math.cos(t)*e,Math.sin(t)*e]},e.innerRadius=function(t){return arguments.length?(p="function"==typeof t?t:n(+t),e):p},e.outerRadius=function(t){return arguments.length?(f="function"==typeof t?t:n(+t),e):f},e.cornerRadius=function(t){return arguments.length?(h="function"==typeof t?t:n(+t),e):h},e.padRadius=function(t){return arguments.length?(d=null==t?null:"function"==typeof t?t:n(+t),e):d},e.startAngle=function(t){return arguments.length?(y="function"==typeof t?t:n(+t),e):y},e.endAngle=function(t){return arguments.length?(m="function"==typeof t?t:n(+t),e):m},e.padAngle=function(t){return arguments.length?(v="function"==typeof t?t:n(+t),e):v},e.context=function(t){return arguments.length?(g=null==t?null:t,e):g},e}function f(e){this._context=e}function h(e){return new f(e)}function d(e){return e[0]}function y(e){return e[1]}function m(){function e(e){var n,p,f,h,d,y=e.length,m=!1,v=new Array(y),g=new Array(y);for(null==u&&(c=l(d=t.path())),n=0;y>=n;++n){if(!(y>n&&s(h=e[n],n,e))===m)if(m=!m)p=n,c.areaStart(),c.lineStart();else{for(c.lineEnd(),c.lineStart(),f=n-1;f>=p;--f)c.point(v[f],g[f]);c.lineEnd(),c.areaEnd()}m&&(v[n]=+r(h,n,e),g[n]=+i(h,n,e),c.point(o?+o(h,n,e):v[n],a?+a(h,n,e):g[n]))}return d?(c=null,d+""||null):void 0}var r=d,o=null,i=n(0),a=y,s=n(!0),u=null,l=h,c=null;return e.x=function(t){return arguments.length?(r="function"==typeof t?t:n(+t),o=null,e):r},e.x0=function(t){return arguments.length?(r="function"==typeof t?t:n(+t),e):r},e.x1=function(t){return arguments.length?(o=null==t?null:"function"==typeof t?t:n(+t),e):o},e.y=function(t){return arguments.length?(i="function"==typeof t?t:n(+t),a=null,e):i},e.y0=function(t){return arguments.length?(i="function"==typeof t?t:n(+t),e):i},e.y1=function(t){return arguments.length?(a=null==t?null:"function"==typeof t?t:n(+t),e):a},e.defined=function(t){return arguments.length?(s="function"==typeof t?t:n(!!t),e):s},e.curve=function(t){return arguments.length?(l=t,null!=u&&(c=l(u)),e):l},e.context=function(t){return arguments.length?(null==t?u=c=null:c=l(u=t),e):u},e}function v(){function e(e){var n,l,c,p=e.length,f=!1;for(null==a&&(u=s(c=t.path())),n=0;p>=n;++n)!(p>n&&i(l=e[n],n,e))===f&&((f=!f)?u.lineStart():u.lineEnd()),f&&u.point(+r(l,n,e),+o(l,n,e));return c?(u=null,c+""||null):void 0}var r=d,o=y,i=n(!0),a=null,s=h,u=null;return e.x=function(t){return arguments.length?(r="function"==typeof t?t:n(+t),e):r},e.y=function(t){return arguments.length?(o="function"==typeof t?t:n(+t),e):o},e.defined=function(t){return arguments.length?(i="function"==typeof t?t:n(!!t),e):i},e.curve=function(t){return arguments.length?(s=t,null!=a&&(u=s(a)),e):s},e.context=function(t){return arguments.length?(null==t?a=u=null:u=s(a=t),e):a},e}function g(e,t){return e>t?-1:t>e?1:t>=e?0:NaN}function _(e){return e}function b(){function e(e){var n,u,l,c,p,f=e.length,h=0,d=new Array(f),y=new Array(f),m=+i.apply(this,arguments),v=Math.min(xe,Math.max(-xe,a.apply(this,arguments)-m)),g=Math.min(Math.abs(v)/f,s.apply(this,arguments)),_=g*(0>v?-1:1);for(n=0;f>n;++n)(p=y[d[n]=n]=+t(e[n],n,e))>0&&(h+=p);for(null!=r?d.sort(function(e,t){return r(y[e],y[t])}):null!==o&&d.sort(function(t,n){return o(e[t],e[n])}),n=0,l=h?(v-f*_)/h:0;f>n;++n,m=c)u=d[n],p=y[u],c=m+(p>0?p*l:0)+_,y[u]={data:e[u],index:n,value:p,startAngle:m,endAngle:c,padAngle:g};return y}var t=_,r=g,o=null,i=n(0),a=n(xe),s=n(0);return e.value=function(r){return arguments.length?(t="function"==typeof r?r:n(+r),e):t},e.sortValues=function(t){return arguments.length?(r=t,o=null,e):r},e.sort=function(t){return arguments.length?(o=t,r=null,e):o},e.startAngle=function(t){return arguments.length?(i="function"==typeof t?t:n(+t),e):i},e.endAngle=function(t){return arguments.length?(a="function"==typeof t?t:n(+t),e):a},e.padAngle=function(t){return arguments.length?(s="function"==typeof t?t:n(+t),e):s},e}function T(e){this._curve=e}function P(e){function t(t){return new T(e(t))}return t._curve=e,t}function x(){var e=m(),t=e.curve;return e.angle=e.x,delete e.x,e.startAngle=e.x0,delete e.x0,e.endAngle=e.x1,delete e.x1,e.radius=e.y,delete e.y,e.innerRadius=e.y0,delete e.y0,e.outerRadius=e.y1,delete e.y1,e.curve=function(e){return arguments.length?t(P(e)):t()._curve},e.curve(h)}function E(){var e=v(),t=e.curve;return e.angle=e.x,delete e.x,e.radius=e.y,delete e.y,e.curve=function(e){return arguments.length?t(P(e)):t()._curve},e.curve(h)}function O(){function e(){var e;return i||(i=e=t.path()),r.apply(this,arguments).draw(i,+o.apply(this,arguments)),e?(i=null,e+""||null):void 0}var r=n(Ee),o=n(64),i=null;return e.type=function(t){return arguments.length?(r="function"==typeof t?t:n(t),e):r},e.size=function(t){return arguments.length?(o="function"==typeof t?t:n(+t),e):o},e.context=function(t){return arguments.length?(i=null==t?null:t,e):i},e}function w(){}function C(e,t,n){e._context.bezierCurveTo((2*e._x0+e._x1)/3,(2*e._y0+e._y1)/3,(e._x0+2*e._x1)/3,(e._y0+2*e._y1)/3,(e._x0+4*e._x1+t)/6,(e._y0+4*e._y1+n)/6);
  }function S(e){this._context=e}function M(e){return new S(e)}function A(e){this._context=e}function k(e){return new A(e)}function L(e){this._context=e}function I(e){return new L(e)}function R(e,t){this._basis=new S(e),this._beta=t}function D(e,t,n){e._context.bezierCurveTo(e._x1+e._k*(e._x2-e._x0),e._y1+e._k*(e._y2-e._y0),e._x2+e._k*(e._x1-t),e._y2+e._k*(e._y1-n),e._x2,e._y2)}function N(e,t){this._context=e,this._k=(1-t)/6}function j(e,t){this._context=e,this._k=(1-t)/6}function U(e,t){this._context=e,this._k=(1-t)/6}function B(e,t,n){var r=e._x1,o=e._y1,i=e._x2,a=e._y2;if(e._l01_a>be){var s=2*e._l01_2a+3*e._l01_a*e._l12_a+e._l12_2a,u=3*e._l01_a*(e._l01_a+e._l12_a);r=(r*s-e._x0*e._l12_2a+e._x2*e._l01_2a)/u,o=(o*s-e._y0*e._l12_2a+e._y2*e._l01_2a)/u}if(e._l23_a>be){var l=2*e._l23_2a+3*e._l23_a*e._l12_a+e._l12_2a,c=3*e._l23_a*(e._l23_a+e._l12_a);i=(i*l+e._x1*e._l23_2a-t*e._l12_2a)/c,a=(a*l+e._y1*e._l23_2a-n*e._l12_2a)/c}e._context.bezierCurveTo(r,o,i,a,e._x2,e._y2)}function F(e,t){this._context=e,this._alpha=t}function H(e,t){this._context=e,this._alpha=t}function z(e,t){this._context=e,this._alpha=t}function G(e){this._context=e}function W(e){return new G(e)}function V(e){return 0>e?-1:1}function q(e,t,n){var r=e._x1-e._x0,o=t-e._x1,i=(e._y1-e._y0)/(r||0>o&&-0),a=(n-e._y1)/(o||0>r&&-0),s=(i*o+a*r)/(r+o);return(V(i)+V(a))*Math.min(Math.abs(i),Math.abs(a),.5*Math.abs(s))||0}function Z(e,t){var n=e._x1-e._x0;return n?(3*(e._y1-e._y0)/n-t)/2:t}function K(e,t,n){var r=e._x0,o=e._y0,i=e._x1,a=e._y1,s=(i-r)/3;e._context.bezierCurveTo(r+s,o+s*t,i-s,a-s*n,i,a)}function Y(e){this._context=e}function J(e){this._context=new X(e)}function X(e){this._context=e}function $(e){return new Y(e)}function Q(e){return new J(e)}function ee(e){this._context=e}function te(e){var t,n,r=e.length-1,o=new Array(r),i=new Array(r),a=new Array(r);for(o[0]=0,i[0]=2,a[0]=e[0]+2*e[1],t=1;r-1>t;++t)o[t]=1,i[t]=4,a[t]=4*e[t]+2*e[t+1];for(o[r-1]=2,i[r-1]=7,a[r-1]=8*e[r-1]+e[r],t=1;r>t;++t)n=o[t]/i[t-1],i[t]-=n,a[t]-=n*a[t-1];for(o[r-1]=a[r-1]/i[r-1],t=r-2;t>=0;--t)o[t]=(a[t]-o[t+1])/i[t];for(i[r-1]=(e[r]+o[r-1])/2,t=0;r-1>t;++t)i[t]=2*e[t+1]-o[t+1];return[o,i]}function ne(e){return new ee(e)}function re(e,t){this._context=e,this._t=t}function oe(e){return new re(e,.5)}function ie(e){return new re(e,0)}function ae(e){return new re(e,1)}function se(e,t){if((r=e.length)>1)for(var n,r,o=1,i=e[t[0]],a=i.length;r>o;++o){n=i,i=e[t[o]];for(var s=0;a>s;++s)i[s][1]+=i[s][0]=isNaN(n[s][1])?n[s][0]:n[s][1]}}function ue(e){for(var t=e.length,n=new Array(t);--t>=0;)n[t]=t;return n}function le(e,t){return e[t]}function ce(){function e(e){var n,a,s=t.apply(this,arguments),u=e.length,l=s.length,c=new Array(l);for(n=0;l>n;++n){for(var p,f=s[n],h=c[n]=new Array(u),d=0;u>d;++d)h[d]=p=[0,+i(e[d],f,d,e)],p.data=e[d];h.key=f}for(n=0,a=r(c);l>n;++n)c[a[n]].index=n;return o(c,a),c}var t=n([]),r=ue,o=se,i=le;return e.keys=function(r){return arguments.length?(t="function"==typeof r?r:n(Je.call(r)),e):t},e.value=function(t){return arguments.length?(i="function"==typeof t?t:n(+t),e):i},e.order=function(t){return arguments.length?(r=null==t?ue:"function"==typeof t?t:n(Je.call(t)),e):r},e.offset=function(t){return arguments.length?(o=null==t?se:t,e):o},e}function pe(e,t){if((r=e.length)>0){for(var n,r,o,i=0,a=e[0].length;a>i;++i){for(o=n=0;r>n;++n)o+=e[n][i][1]||0;if(o)for(n=0;r>n;++n)e[n][i][1]/=o}se(e,t)}}function fe(e,t){if((n=e.length)>0){for(var n,r=0,o=e[t[0]],i=o.length;i>r;++r){for(var a=0,s=0;n>a;++a)s+=e[a][r][1]||0;o[r][1]+=o[r][0]=-s/2}se(e,t)}}function he(e,t){if((o=e.length)>0&&(r=(n=e[t[0]]).length)>0){for(var n,r,o,i=0,a=1;r>a;++a){for(var s=0,u=0,l=0;o>s;++s){for(var c=e[t[s]],p=c[a][1]||0,f=c[a-1][1]||0,h=(p-f)/2,d=0;s>d;++d){var y=e[t[d]],m=y[a][1]||0,v=y[a-1][1]||0;h+=m-v}u+=p,l+=h*p}n[a-1][1]+=n[a-1][0]=i,u&&(i-=l/u)}n[a-1][1]+=n[a-1][0]=i,se(e,t)}}function de(e){var t=e.map(ye);return ue(e).sort(function(e,n){return t[e]-t[n]})}function ye(e){for(var t,n=0,r=-1,o=e.length;++r<o;)(t=+e[r][1])&&(n+=t);return n}function me(e){return de(e).reverse()}function ve(e){var t,n,r=e.length,o=e.map(ye),i=ue(e).sort(function(e,t){return o[t]-o[e]}),a=0,s=0,u=[],l=[];for(t=0;r>t;++t)n=i[t],s>a?(a+=o[n],u.push(n)):(s+=o[n],l.push(n));return l.reverse().concat(u)}function ge(e){return ue(e).reverse()}var _e="0.6.0",be=1e-12,Te=Math.PI,Pe=Te/2,xe=2*Te;f.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:this._context.lineTo(e,t)}}},T.prototype={areaStart:function(){this._curve.areaStart()},areaEnd:function(){this._curve.areaEnd()},lineStart:function(){this._curve.lineStart()},lineEnd:function(){this._curve.lineEnd()},point:function(e,t){this._curve.point(t*Math.sin(e),t*-Math.cos(e))}};var Ee={draw:function(e,t){var n=Math.sqrt(t/Te);e.moveTo(n,0),e.arc(0,0,n,0,xe)}},Oe={draw:function(e,t){var n=Math.sqrt(t/5)/2;e.moveTo(-3*n,-n),e.lineTo(-n,-n),e.lineTo(-n,-3*n),e.lineTo(n,-3*n),e.lineTo(n,-n),e.lineTo(3*n,-n),e.lineTo(3*n,n),e.lineTo(n,n),e.lineTo(n,3*n),e.lineTo(-n,3*n),e.lineTo(-n,n),e.lineTo(-3*n,n),e.closePath()}},we=Math.sqrt(1/3),Ce=2*we,Se={draw:function(e,t){var n=Math.sqrt(t/Ce),r=n*we;e.moveTo(0,-n),e.lineTo(r,0),e.lineTo(0,n),e.lineTo(-r,0),e.closePath()}},Me=.8908130915292852,Ae=Math.sin(Te/10)/Math.sin(7*Te/10),ke=Math.sin(xe/10)*Ae,Le=-Math.cos(xe/10)*Ae,Ie={draw:function(e,t){var n=Math.sqrt(t*Me),r=ke*n,o=Le*n;e.moveTo(0,-n),e.lineTo(r,o);for(var i=1;5>i;++i){var a=xe*i/5,s=Math.cos(a),u=Math.sin(a);e.lineTo(u*n,-s*n),e.lineTo(s*r-u*o,u*r+s*o)}e.closePath()}},Re={draw:function(e,t){var n=Math.sqrt(t),r=-n/2;e.rect(r,r,n,n)}},De=Math.sqrt(3),Ne={draw:function(e,t){var n=-Math.sqrt(t/(3*De));e.moveTo(0,2*n),e.lineTo(-De*n,-n),e.lineTo(De*n,-n),e.closePath()}},je=-.5,Ue=Math.sqrt(3)/2,Be=1/Math.sqrt(12),Fe=3*(Be/2+1),He={draw:function(e,t){var n=Math.sqrt(t/Fe),r=n/2,o=n*Be,i=r,a=n*Be+n,s=-i,u=a;e.moveTo(r,o),e.lineTo(i,a),e.lineTo(s,u),e.lineTo(je*r-Ue*o,Ue*r+je*o),e.lineTo(je*i-Ue*a,Ue*i+je*a),e.lineTo(je*s-Ue*u,Ue*s+je*u),e.lineTo(je*r+Ue*o,je*o-Ue*r),e.lineTo(je*i+Ue*a,je*a-Ue*i),e.lineTo(je*s+Ue*u,je*u-Ue*s),e.closePath()}},ze=[Ee,Oe,Se,Re,Ie,Ne,He];S.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){switch(this._point){case 3:C(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,this._context.lineTo((5*this._x0+this._x1)/6,(5*this._y0+this._y1)/6);default:C(this,e,t)}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}},A.prototype={areaStart:w,areaEnd:w,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._y0=this._y1=this._y2=this._y3=this._y4=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x2,this._y2),this._context.closePath();break;case 2:this._context.moveTo((this._x2+2*this._x3)/3,(this._y2+2*this._y3)/3),this._context.lineTo((this._x3+2*this._x2)/3,(this._y3+2*this._y2)/3),this._context.closePath();break;case 3:this.point(this._x2,this._y2),this.point(this._x3,this._y3),this.point(this._x4,this._y4)}},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._x2=e,this._y2=t;break;case 1:this._point=2,this._x3=e,this._y3=t;break;case 2:this._point=3,this._x4=e,this._y4=t,this._context.moveTo((this._x0+4*this._x1+e)/6,(this._y0+4*this._y1+t)/6);break;default:C(this,e,t)}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}},L.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){(this._line||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var n=(this._x0+4*this._x1+e)/6,r=(this._y0+4*this._y1+t)/6;this._line?this._context.lineTo(n,r):this._context.moveTo(n,r);break;case 3:this._point=4;default:C(this,e,t)}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}},R.prototype={lineStart:function(){this._x=[],this._y=[],this._basis.lineStart()},lineEnd:function(){var e=this._x,t=this._y,n=e.length-1;if(n>0)for(var r,o=e[0],i=t[0],a=e[n]-o,s=t[n]-i,u=-1;++u<=n;)r=u/n,this._basis.point(this._beta*e[u]+(1-this._beta)*(o+r*a),this._beta*t[u]+(1-this._beta)*(i+r*s));this._x=this._y=null,this._basis.lineEnd()},point:function(e,t){this._x.push(+e),this._y.push(+t)}};var Ge=function Xe(e){function t(t){return 1===e?new S(t):new R(t,e)}return t.beta=function(e){return Xe(+e)},t}(.85);N.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:D(this,this._x1,this._y1)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2,this._x1=e,this._y1=t;break;case 2:this._point=3;default:D(this,e,t)}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};var We=function $e(e){function t(t){return new N(t,e)}return t.tension=function(e){return $e(+e)},t}(0);j.prototype={areaStart:w,areaEnd:w,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x3,this._y3),this._context.closePath();break;case 2:this._context.lineTo(this._x3,this._y3),this._context.closePath();break;case 3:this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5)}},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._x3=e,this._y3=t;break;case 1:this._point=2,this._context.moveTo(this._x4=e,this._y4=t);break;case 2:this._point=3,this._x5=e,this._y5=t;break;default:D(this,e,t)}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};var Ve=function Qe(e){function t(t){return new j(t,e)}return t.tension=function(e){return Qe(+e)},t}(0);U.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){(this._line||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:D(this,e,t)}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};var qe=function et(e){function t(t){return new U(t,e)}return t.tension=function(e){return et(+e)},t}(0);F.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:this.point(this,this._x2,this._y2)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){if(e=+e,t=+t,this._point){var n=this._x2-e,r=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+r*r,this._alpha))}switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3;default:B(this,e,t)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};var Ze=function tt(e){function t(t){return e?new F(t,e):new N(t,0)}return t.alpha=function(e){return tt(+e)},t}(.5);H.prototype={areaStart:w,areaEnd:w,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x3,this._y3),this._context.closePath();break;case 2:this._context.lineTo(this._x3,this._y3),this._context.closePath();break;case 3:this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5)}},point:function(e,t){if(e=+e,t=+t,this._point){var n=this._x2-e,r=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+r*r,this._alpha))}switch(this._point){case 0:this._point=1,this._x3=e,this._y3=t;break;case 1:this._point=2,this._context.moveTo(this._x4=e,this._y4=t);break;case 2:this._point=3,this._x5=e,this._y5=t;break;default:B(this,e,t)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};var Ke=function nt(e){function t(t){return e?new H(t,e):new j(t,0)}return t.alpha=function(e){return nt(+e)},t}(.5);z.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){(this._line||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){if(e=+e,t=+t,this._point){var n=this._x2-e,r=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+r*r,this._alpha))}switch(this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:B(this,e,t)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};var Ye=function rt(e){function t(t){return e?new z(t,e):new U(t,0)}return t.alpha=function(e){return rt(+e)},t}(.5);G.prototype={areaStart:w,areaEnd:w,lineStart:function(){this._point=0},lineEnd:function(){this._point&&this._context.closePath()},point:function(e,t){e=+e,t=+t,this._point?this._context.lineTo(e,t):(this._point=1,this._context.moveTo(e,t))}},Y.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=this._t0=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x1,this._y1);break;case 3:K(this,this._t0,Z(this,this._t0))}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){var n=NaN;if(e=+e,t=+t,e!==this._x1||t!==this._y1){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,K(this,Z(this,n=q(this,e,t)),n);break;default:K(this,this._t0,n=q(this,e,t))}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t,this._t0=n}}},(J.prototype=Object.create(Y.prototype)).point=function(e,t){Y.prototype.point.call(this,t,e)},X.prototype={moveTo:function(e,t){this._context.moveTo(t,e)},closePath:function(){this._context.closePath()},lineTo:function(e,t){this._context.lineTo(t,e)},bezierCurveTo:function(e,t,n,r,o,i){this._context.bezierCurveTo(t,e,r,n,i,o)}},ee.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=[],this._y=[]},lineEnd:function(){var e=this._x,t=this._y,n=e.length;if(n)if(this._line?this._context.lineTo(e[0],t[0]):this._context.moveTo(e[0],t[0]),2===n)this._context.lineTo(e[1],t[1]);else for(var r=te(e),o=te(t),i=0,a=1;n>a;++i,++a)this._context.bezierCurveTo(r[0][i],o[0][i],r[1][i],o[1][i],e[a],t[a]);(this._line||0!==this._line&&1===n)&&this._context.closePath(),this._line=1-this._line,this._x=this._y=null},point:function(e,t){this._x.push(+e),this._y.push(+t)}},re.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=this._y=NaN,this._point=0},lineEnd:function(){0<this._t&&this._t<1&&2===this._point&&this._context.lineTo(this._x,this._y),(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:var n=e>this._x?this._t:1-this._t;if(0>=n)this._context.lineTo(this._x,t),this._context.lineTo(e,t);else if(n>=1)this._context.lineTo(e,this._y),this._context.lineTo(e,t);else{var r=(this._x+e)*n;this._context.lineTo(r,this._y),this._context.lineTo(r,t)}}this._x=e,this._y=t}};var Je=Array.prototype.slice;e.version=_e,e.arc=p,e.area=m,e.line=v,e.pie=b,e.radialArea=x,e.radialLine=E,e.symbol=O,e.symbols=ze,e.symbolCircle=Ee,e.symbolCross=Oe,e.symbolDiamond=Se,e.symbolSquare=Re,e.symbolStar=Ie,e.symbolTriangle=Ne,e.symbolWye=He,e.curveBasisClosed=k,e.curveBasisOpen=I,e.curveBasis=M,e.curveBundle=Ge,e.curveCardinalClosed=Ve,e.curveCardinalOpen=qe,e.curveCardinal=We,e.curveCatmullRomClosed=Ke,e.curveCatmullRomOpen=Ye,e.curveCatmullRom=Ze,e.curveLinearClosed=W,e.curveLinear=h,e.curveMonotoneX=$,e.curveMonotoneY=Q,e.curveNatural=ne,e.curveStep=oe,e.curveStepAfter=ae,e.curveStepBefore=ie,e.stack=ce,e.stackOffsetExpand=pe,e.stackOffsetNone=se,e.stackOffsetSilhouette=fe,e.stackOffsetWiggle=he,e.stackOrderAscending=de,e.stackOrderDescending=me,e.stackOrderInsideOut=ve,e.stackOrderNone=ue,e.stackOrderReverse=ge})},function(e,t,n){var r,o,i,a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol?"symbol":typeof e};!function(n,s){"object"===a(t)&&"undefined"!=typeof e?s(t):(o=[t],r=s,i="function"==typeof r?r.apply(t,o):r,!(void 0!==i&&(e.exports=i)))}(void 0,function(e){"use strict";function t(){this._x0=this._y0=this._x1=this._y1=null,this._=[]}function n(){return new t}var r=Math.PI,o=2*r,i=1e-6,a=o-i;t.prototype=n.prototype={constructor:t,moveTo:function(e,t){this._.push("M",this._x0=this._x1=+e,",",this._y0=this._y1=+t)},closePath:function(){null!==this._x1&&(this._x1=this._x0,this._y1=this._y0,this._.push("Z"))},lineTo:function(e,t){this._.push("L",this._x1=+e,",",this._y1=+t)},quadraticCurveTo:function(e,t,n,r){this._.push("Q",+e,",",+t,",",this._x1=+n,",",this._y1=+r)},bezierCurveTo:function(e,t,n,r,o,i){this._.push("C",+e,",",+t,",",+n,",",+r,",",this._x1=+o,",",this._y1=+i)},arcTo:function(e,t,n,o,a){e=+e,t=+t,n=+n,o=+o,a=+a;var s=this._x1,u=this._y1,l=n-e,c=o-t,p=s-e,f=u-t,h=p*p+f*f;if(0>a)throw new Error("negative radius: "+a);if(null===this._x1)this._.push("M",this._x1=e,",",this._y1=t);else if(h>i)if(Math.abs(f*l-c*p)>i&&a){var d=n-s,y=o-u,m=l*l+c*c,v=d*d+y*y,g=Math.sqrt(m),_=Math.sqrt(h),b=a*Math.tan((r-Math.acos((m+h-v)/(2*g*_)))/2),T=b/_,P=b/g;Math.abs(T-1)>i&&this._.push("L",e+T*p,",",t+T*f),this._.push("A",a,",",a,",0,0,",+(f*d>p*y),",",this._x1=e+P*l,",",this._y1=t+P*c)}else this._.push("L",this._x1=e,",",this._y1=t);else;},arc:function(e,t,n,s,u,l){e=+e,t=+t,n=+n;var c=n*Math.cos(s),p=n*Math.sin(s),f=e+c,h=t+p,d=1^l,y=l?s-u:u-s;if(0>n)throw new Error("negative radius: "+n);null===this._x1?this._.push("M",f,",",h):(Math.abs(this._x1-f)>i||Math.abs(this._y1-h)>i)&&this._.push("L",f,",",h),n&&(y>a?this._.push("A",n,",",n,",0,1,",d,",",e-c,",",t-p,"A",n,",",n,",0,1,",d,",",this._x1=f,",",this._y1=h):(0>y&&(y=y%o+o),this._.push("A",n,",",n,",0,",+(y>=r),",",d,",",this._x1=e+n*Math.cos(u),",",this._y1=t+n*Math.sin(u))))},rect:function(e,t,n,r){this._.push("M",this._x0=this._x1=+e,",",this._y0=this._y1=+t,"h",+n,"v",+r,"h",-n,"Z")},toString:function(){return this._.join("")}};var s="0.1.5";e.version=s,e.path=n})},function(e,t,n){"use strict";function r(e){var t=-1,n=e?e.length:0;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}var o=n(716),i=n(717),a=n(718),s=n(719),u=n(720);r.prototype.clear=o,r.prototype["delete"]=i,r.prototype.get=a,r.prototype.has=s,r.prototype.set=u,e.exports=r},function(e,t,n){"use strict";function r(e){var t=-1,n=e?e.length:0;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}var o=n(724),i=n(725),a=n(726),s=n(727),u=n(728);r.prototype.clear=o,r.prototype["delete"]=i,r.prototype.get=a,r.prototype.has=s,r.prototype.set=u,e.exports=r},function(e,t,n){"use strict";var r=n(84),o=r.Symbol;e.exports=o},function(e,t,n){"use strict";function r(e,t){var n=o(e,t);if(0>n)return!1;var r=e.length-1;return n==r?e.pop():a.call(e,n,1),!0}var o=n(116),i=Array.prototype,a=i.splice;e.exports=r},function(e,t,n){"use strict";function r(e,t){var n=o(e,t);return 0>n?void 0:e[n][1]}var o=n(116);e.exports=r},function(e,t,n){"use strict";function r(e,t){return o(e,t)>-1}var o=n(116);e.exports=r},function(e,t,n){"use strict";function r(e,t,n){var r=o(e,t);0>r?e.push([t,n]):e[r][1]=n}var o=n(116);e.exports=r},function(e,t,n){"use strict";function r(e){return o(e)?e:i(e)}var o=n(16),i=n(729);e.exports=r},function(e,t,n){"use strict";function r(e,t){t=i(t,e)?[t+""]:o(t);for(var n=0,r=t.length;null!=e&&r>n;)e=e[t[n++]];return n&&n==r?e:void 0}var o=n(303),i=n(185);e.exports=r},function(e,t){"use strict";function n(e,t){return i.call(e,t)||"object"==("undefined"==typeof e?"undefined":r(e))&&t in e&&null===a(e)}var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol?"symbol":typeof e},o=Object.prototype,i=o.hasOwnProperty,a=Object.getPrototypeOf;e.exports=n},function(e,t,n){"use strict";function r(e){var t="undefined"==typeof e?"undefined":o(e);return"function"==t?e:null==e?s:"object"==t?u(e)?a(e[0],e[1]):i(e):l(e)}var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol?"symbol":typeof e},i=n(688),a=n(689),s=n(733),u=n(16),l=n(740);e.exports=r},function(e,t){"use strict";function n(e){return function(t){return null==t?void 0:t[e]}}e.exports=n},function(e,t,n){"use strict";function r(e,t,n,r,s,u){var l=-1,c=s&a,p=s&i,f=e.length,h=t.length;if(f!=h&&!(c&&h>f))return!1;var d=u.get(e);if(d)return d==t;var y=!0;for(u.set(e,t);++l<f;){var m=e[l],v=t[l];if(r)var g=c?r(v,m,l,t,e,u):r(m,v,l,e,t,u);if(void 0!==g){if(g)continue;y=!1;break}if(p){if(!o(t,function(e){return m===e||n(m,e,r,s,u)})){y=!1;break}}else if(m!==v&&!n(m,v,r,s,u)){y=!1;break}}return u["delete"](e),y}var o=n(675),i=1,a=2;e.exports=r},function(e,t,n){"use strict";function r(e,t){return o?void 0!==e[t]:a.call(e,t)}var o=n(118),i=Object.prototype,a=i.hasOwnProperty;e.exports=r},function(e,t){"use strict";function n(e,t){return e===t||e!==e&&t!==t}e.exports=n},function(e,t,n){"use strict";function r(e,t,n){var r=null==e?void 0:o(e,t);return void 0===r?n:r}var o=n(304);e.exports=r},function(e,t,n){"use strict";function r(e){return o(e)&&s.call(e,"callee")&&(!l.call(e,"callee")||u.call(e)==i)}var o=n(313),i="[object Arguments]",a=Object.prototype,s=a.hasOwnProperty,u=a.toString,l=a.propertyIsEnumerable;e.exports=r},function(e,t,n){"use strict";function r(e){return i(e)&&o(e)}var o=n(119),i=n(49);e.exports=r},function(e,t,n){"use strict";function r(e,t){return o(e,t)}var o=n(182);e.exports=r},function(e,t,n){"use strict";function r(e){if(!i(e)||c.call(e)!=a||o(e))return!1;var t=p(e);if(null===t)return!0;var n=t.constructor;return"function"==typeof n&&n instanceof n&&u.call(n)==l}var o=n(183),i=n(49),a="[object Object]",s=Object.prototype,u=Function.prototype.toString,l=u.call(Object),c=s.toString,p=Object.getPrototypeOf;e.exports=r},function(e,t,n){"use strict";function r(e){if(i(e)){var t=o(e.valueOf)?e.valueOf():e;e=i(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(s,"");var n=l.test(e);return n||c.test(e)?p(e.slice(2),n?2:8):u.test(e)?a:+e}var o=n(10),i=n(85),a=NaN,s=/^\s+|\s+$/g,u=/^[-+]0x[0-9a-f]+$/i,l=/^0b[01]+$/i,c=/^0o[0-7]+$/i,p=parseInt;e.exports=r},function(e,t,n){"use strict";function r(e){if("string"==typeof e)return e;if(null==e)return"";if(i(e))return u?u.call(e):"";var t=e+"";return"0"==t&&1/e==-a?"-0":t}var o=n(298),i=n(736),a=1/0,s=o?o.prototype:void 0,u=s?s.toString:void 0;e.exports=r},function(e,t,n){"use strict";function r(e){var t=++i;return o(e)+t}var o=n(317),i=0;e.exports=r},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}function i(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}function a(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function s(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function u(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==("undefined"==typeof t?"undefined":c(t))&&"function"!=typeof t?e:t}function l(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+("undefined"==typeof t?"undefined":c(t)));e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol?"symbol":typeof e};Object.defineProperty(t,"__esModule",{value:!0});var p,f,h,d=n(314),y=r(d),m=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},v=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),g=n(1),_=r(g),b=n(746),T=r(b),P=n(748),x=r(P),E=n(320),O=n(747),w=r(O),C=n(86),S=(0,x["default"])((h=f=function(e){function t(e,n){s(this,t);var r=u(this,Object.getPrototypeOf(t).call(this,e,n)),o=r.props,i=o.isActive,l=o.attributeName,c=o.from,p=o.to,f=o.steps,h=o.children;if(r.handleStyleChange=r.handleStyleChange.bind(r),r.changeStyle=r.changeStyle.bind(r),!i)return r.state={style:{}},"function"==typeof h&&(r.state={style:p}),u(r);if(f&&f.length)r.state={style:f[0].style};else if(c){if("function"==typeof h)return r.state={style:c},u(r);r.state={style:l?a({},l,c):c}}else r.state={style:{}};return r}return l(t,e),v(t,[{key:"componentDidMount",value:function(){var e=this.props,t=e.isActive,n=e.canBegin;t&&n&&this.runAnimation(this.props)}},{key:"componentWillReceiveProps",value:function(e){var t=e.isActive,n=e.canBegin,r=e.attributeName,o=e.shouldReAnimate;if(t&&n){if(!((0,y["default"])(this.props.to,e.to)&&this.props.canBegin&&this.props.isActive)){var i=!this.props.canBegin||!this.props.isActive;this.manager&&this.manager.stop(),this.stopJSAnimation&&this.stopJSAnimation();var s=i||o?e.from:this.props.to;this.setState({style:r?a({},r,s):s}),this.runAnimation(m({},e,{from:s}))}}}},{key:"componentWillUnmount",value:function(){this.unSubscribe&&this.unSubscribe(),this.manager&&(this.manager.stop(),this.manager=null),this.stopJSAnimation&&this.stopJSAnimation()}},{key:"runJSAnimation",value:function(e){var t=this,n=e.from,r=e.to,o=e.duration,i=e.easing,a=e.begin,s=e.onAnimationEnd,u=(0,w["default"])(n,r,(0,E.configEasing)(i),o,this.changeStyle),l=function(){t.stopJSAnimation=u()};this.manager.start([a,l,o,s])}},{key:"runStepAnimation",value:function(e){var t=this,n=e.steps,r=e.begin,o=n[0],a=o.style,s=o.duration,u=void 0===s?0:s,l=function(e,r,o){if(0===o)return e;var a=r.duration,s=r.easing,u=void 0===s?"ease":s,l=r.style,c=r.properties,p=r.onAnimationEnd,f=o>0?n[o-1]:r,h=c||Object.keys(l);if("function"==typeof u||"spring"===u)return[].concat(i(e),[t.runJSAnimation.bind(t,{from:f.style,to:l,duration:a,easing:u}),a]);var d=(0,C.getTransitionVal)(h,a,u),y=m({},f.style,l,{transition:d});return[].concat(i(e),[y,a,p]).filter(C.identity)};return this.manager.start([].concat(i(n.reduce(l,[a,Math.max(u,r)])),[e.onAnimationEnd]))}},{key:"runAnimation",value:function(e){this.manager||(this.manager=(0,T["default"])());var t=e.begin,n=e.duration,r=e.attributeName,o=(e.from,e.to),i=e.easing,s=e.onAnimationEnd,u=e.steps,l=e.children,c=this.manager;if(this.unSubscribe=c.subscribe(this.handleStyleChange),"function"==typeof i||"function"==typeof l||"spring"===i)return void this.runJSAnimation(e);if(u.length>1)return void this.runStepAnimation(e);var p=r?a({},r,o):o,f=(0,C.getTransitionVal)(Object.keys(p),n,i);c.start([t,m({},p,{transition:f}),n,s])}},{key:"handleStyleChange",value:function(){var e=this.manager.getStyle();this.changeStyle(e)}},{key:"changeStyle",value:function(e){this.setState({style:e})}},{key:"render",value:function(){var e=this.props,t=e.children,n=(e.begin,e.duration,e.attributeName,e.easing,e.isActive),r=(e.steps,e.from,e.to,o(e,["children","begin","duration","attributeName","easing","isActive","steps","from","to"])),i=g.Children.count(t),a=(0,C.translateStyle)(this.state.style);if("function"==typeof t)return t(a);if(!n||0===i)return t;var s=function(e){var t=e.props,n=t.style,o=void 0===n?{}:n,i=t.className,s=(0,g.cloneElement)(e,m({},r,{style:m({},o,a),className:i}));return s};if(1===i){g.Children.only(t);return s(g.Children.only(t))}return _["default"].createElement("div",null,g.Children.map(t,function(e){return s(e)}))}}]),t}(g.Component),f.displayName="Animate",f.propTypes={from:g.PropTypes.oneOfType([g.PropTypes.object,g.PropTypes.string]),to:g.PropTypes.oneOfType([g.PropTypes.object,g.PropTypes.string]),attributeName:g.PropTypes.string,duration:g.PropTypes.number,begin:g.PropTypes.number,easing:g.PropTypes.oneOfType([g.PropTypes.string,g.PropTypes.func]),steps:g.PropTypes.arrayOf(g.PropTypes.shape({duration:g.PropTypes.number.isRequired,style:g.PropTypes.object.isRequired,easing:g.PropTypes.oneOfType([g.PropTypes.oneOf(["ease","ease-in","ease-out","ease-in-out","linear"]),g.PropTypes.func]),properties:g.PropTypes.arrayOf("string"),onAnimationEnd:g.PropTypes.func})),children:g.PropTypes.oneOfType([g.PropTypes.node,g.PropTypes.func]),isActive:g.PropTypes.bool,canBegin:g.PropTypes.bool,onAnimationEnd:g.PropTypes.func,shouldReAnimate:g.PropTypes.bool},f.defaultProps={begin:0,duration:1e3,from:"",to:"",attributeName:"",easing:"ease",isActive:!0,canBegin:!0,steps:[],onAnimationEnd:function(){}},p=h))||p;t["default"]=S},function(e,t,n){"use strict";function r(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];
  return n}return Array.from(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.configEasing=t.configSpring=t.configBezier=void 0;var o=n(86),i=1e-4,a=function(e,t){return[0,3*e,3*t-6*e,3*e-3*t+1]},s=function(e,t){return e.map(function(e,n){return e*Math.pow(t,n)}).reduce(function(e,t){return e+t})},u=function(e,t){return function(n){var r=a(e,t);return s(r,n)}},l=function(e,t){return function(n){var o=a(e,t),i=[].concat(r(o.map(function(e,t){return e*t}).slice(1)),[0]);return s(i,n)}},c=t.configBezier=function(){for(var e=arguments.length,t=Array(e),n=0;e>n;n++)t[n]=arguments[n];var r=t[0],a=t[1],s=t[2],c=t[3];if(1===t.length)switch(t[0]){case"linear":r=0,a=0,s=1,c=1;break;case"ease":r=.25,a=.1,s=.25,c=1;break;case"ease-in":r=.42,a=0,s=1,c=1;break;case"ease-out":r=.42,a=0,s=.58,c=1;break;case"ease-in-out":r=0,a=0,s=.58,c=1;break;default:(0,o.warn)(!1,"[configBezier]: arguments should be one of oneOf 'linear', 'ease', 'ease-in', 'ease-out', 'ease-in-out', instead received %s",t)}(0,o.warn)([r,s,a,c].every(function(e){return"number"==typeof e&&e>=0&&1>=e}),"[configBezier]: arguments should be x1, y1, x2, y2 of [0, 1] instead received %s",t);var p=u(r,s),f=u(a,c),h=l(r,s),d=function(e){return e>1?1:0>e?0:e},y=function(e){for(var t=e>1?1:e,n=t,r=0;8>r;++r){var o=p(n)-t,a=h(n);if(Math.abs(o-t)<i||i>a)return f(n);n=d(n-o/a)}return f(n)};return y.isStepper=!1,y},p=t.configSpring=function(){var e=arguments.length<=0||void 0===arguments[0]?{}:arguments[0],t=e.stiff,n=void 0===t?100:t,r=e.damping,o=void 0===r?8:r,a=e.dt,s=void 0===a?17:a,u=function(e,t,r){var a=-(e-t)*n,u=r*o,l=r+(a-u)*s/1e3,c=r*s/1e3+e;return Math.abs(c-t)<i&&Math.abs(l)<i?[t,0]:[c,l]};return u.isStepper=!0,u.dt=s,u};t.configEasing=function(){for(var e=arguments.length,t=Array(e),n=0;e>n;n++)t[n]=arguments[n];var r=t[0];if("string"==typeof r)switch(r){case"ease":case"ease-int-out":case"ease-out":case"ease-in":case"linear":return c(r);case"spring":return p();default:invariant(!1,"[configEasing]: first argument should be one of 'ease', 'ease-in', 'ease-out', 'ease-in-out', 'linear' and 'spring', instead  received %s",t)}return"function"==typeof r?r:void invariant(!1,"[configEasing]: first argument type should be function or string, instead received %s",t)}},function(e,t,n){(function(t){"use strict";for(var r=n(750),o="undefined"==typeof window?t:window,i=["moz","webkit"],a="AnimationFrame",s=o["request"+a],u=o["cancel"+a]||o["cancelRequest"+a],l=0;!s&&l<i.length;l++)s=o[i[l]+"Request"+a],u=o[i[l]+"Cancel"+a]||o[i[l]+"CancelRequest"+a];if(!s||!u){var c=0,p=0,f=[],h=1e3/60;s=function(e){if(0===f.length){var t=r(),n=Math.max(0,h-(t-c));c=n+t,setTimeout(function(){var e=f.slice(0);f.length=0;for(var t=0;t<e.length;t++)if(!e[t].cancelled)try{e[t].callback(c)}catch(n){setTimeout(function(){throw n},0)}},Math.round(n))}return f.push({handle:++p,callback:e,cancelled:!1}),p},u=function(e){for(var t=0;t<f.length;t++)f[t].handle===e&&(f[t].cancelled=!0)}}e.exports=function(e){return s.call(o,e)},e.exports.cancel=function(){u.apply(o,arguments)},e.exports.polyfill=function(){o.requestAnimationFrame=s,o.cancelAnimationFrame=u}}).call(t,function(){return this}())},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(e){var t=l(e,2),n=t[0],r=t[1],o=n,i=r;return n>r&&(o=r,i=n),[o,i]}function i(e,t){if(0>=e)return 0;var n=f["default"].getDigitCount(e),r=e/Math.pow(10,n),o=f["default"].multiply(Math.ceil(r/.05)+t,.05),i=f["default"].multiply(o,Math.pow(10,n));return i}function a(e,t){var n=f["default"].isFloat(e),r=1,o=e;if(n){var i=Math.abs(e);1>i?(r=Math.pow(10,f["default"].getDigitCount(e)-1),o=f["default"].multiply(Math.floor(e/r),r)):i>1&&(o=Math.floor(e))}else 0===e&&(o=Math.floor((t-1)/2));var a=Math.floor((t-1)/2),s=(0,c.compose)((0,c.map)(function(e){return f["default"].sum(o,f["default"].multiply(e-a,r))}),c.range);return s(0,t)}function s(e,t,n){var r=arguments.length<=3||void 0===arguments[3]?0:arguments[3],o=i((t-e)/(n-1),r),a=void 0;0>=e&&t>=0?a=0:(a=(e+t)/2,a-=a%o);var u=Math.ceil((a-e)/o),l=Math.ceil((t-a)/o),c=u+l+1;return c>n?s(e,t,n,r+1):(n>c&&(l=t>0?l+(n-c):l,u=t>0?u:u+(n-c)),{step:o,tickMin:f["default"].minus(a,f["default"].multiply(u,o)),tickMax:f["default"].sum(a,f["default"].multiply(l,o))})}function u(e){var t=l(e,2),n=t[0],r=t[1],i=arguments.length<=1||void 0===arguments[1]?6:arguments[1],u=Math.max(i,2),p=o([n,r]),h=l(p,2),d=h[0],y=h[1];if(d===y)return a(d,i);var m=s(d,y,u),v=m.step,g=m.tickMin,_=m.tickMax,b=f["default"].rangeStep(g,_+.1*v,v);return n>r?(0,c.reverse)(b):b}var l=function(){function e(e,t){var n=[],r=!0,o=!1,i=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(u){o=!0,i=u}finally{try{!r&&s["return"]&&s["return"]()}finally{if(o)throw i}}return n}return function(t,n){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}();Object.defineProperty(t,"__esModule",{value:!0});var c=n(188),p=n(752),f=r(p);t["default"]=(0,c.memoize)(u)},function(e,t){"use strict";function n(){for(var e=arguments.length,t=Array(e),n=0;e>n;n++)t[n]=arguments[n];if(0===t.length)return function(e){return e};var o=function(){var e=t[t.length-1],n=t.slice(0,-1);return{v:function(){return n.reduceRight(function(e,t){return t(e)},e.apply(void 0,arguments))}}}();return"object"===("undefined"==typeof o?"undefined":r(o))?o.v:void 0}var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol?"symbol":typeof e};t.__esModule=!0,t["default"]=n},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(e,t,n){function r(){g===v&&(g=v.slice())}function a(){return m}function u(e){if("function"!=typeof e)throw new Error("Expected listener to be a function.");var t=!0;return r(),g.push(e),function(){if(t){t=!1,r();var n=g.indexOf(e);g.splice(n,1)}}}function p(e){if(!(0,s["default"])(e))throw new Error("Actions must be plain objects. Use custom middleware for async actions.");if("undefined"==typeof e.type)throw new Error('Actions may not have an undefined "type" property. Have you misspelled a constant?');if(_)throw new Error("Reducers may not dispatch actions.");try{_=!0,m=y(m,e)}finally{_=!1}for(var t=v=g,n=0;n<t.length;n++)t[n]();return e}function f(e){if("function"!=typeof e)throw new Error("Expected the nextReducer to be a function.");y=e,p({type:c.INIT})}function h(){var e,t=u;return e={subscribe:function(e){function n(){e.next&&e.next(a())}if("object"!==("undefined"==typeof e?"undefined":i(e)))throw new TypeError("Expected the observer to be an object.");n();var r=t(n);return{unsubscribe:r}}},e[l["default"]]=function(){return this},e}var d;if("function"==typeof t&&"undefined"==typeof n&&(n=t,t=void 0),"undefined"!=typeof n){if("function"!=typeof n)throw new Error("Expected the enhancer to be a function.");return n(o)(e,t)}if("function"!=typeof e)throw new Error("Expected the reducer to be a function.");var y=e,m=t,v=[],g=v,_=!1;return p({type:c.INIT}),d={dispatch:p,subscribe:u,getState:a,replaceReducer:f},d[l["default"]]=h,d}var i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol?"symbol":typeof e};t.__esModule=!0,t.ActionTypes=void 0,t["default"]=o;var a=n(326),s=r(a),u=n(760),l=r(u),c=t.ActionTypes={INIT:"@@redux/INIT"}},function(e,t){"use strict";function n(e){"undefined"!=typeof console&&"function"==typeof console.error&&console.error(e);try{throw new Error(e)}catch(t){}}t.__esModule=!0,t["default"]=n},function(e,t,n){"use strict";function r(e){if(!a(e)||f.call(e)!=s||i(e))return!1;var t=o(e);if(null===t)return!0;var n=c.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&l.call(n)==p}var o=n(757),i=n(758),a=n(759),s="[object Object]",u=Object.prototype,l=Function.prototype.toString,c=u.hasOwnProperty,p=l.call(Object),f=u.toString;e.exports=r},function(e,t){"use strict";e.exports=function(e){return{type:"FeatureCollection",features:e}}},function(e,t){(function(t){e.exports=t}).call(t,{})},function(e,t,n){"use strict";function r(e){this.defaults=i.merge({},e),this.interceptors={request:new s,response:new s}}var o=n(332),i=n(33),a=n(331),s=n(330),u=n(338),l=n(336),c=n(333),p=n(190);r.prototype.request=function(e){"string"==typeof e&&(e=i.merge({url:arguments[0]},arguments[1])),e=i.merge(o,this.defaults,{method:"get"},e),e.baseURL&&!u(e.url)&&(e.url=l(e.baseURL,e.url)),e.withCredentials=e.withCredentials||this.defaults.withCredentials,e.data=p(e.data,e.headers,e.transformRequest),e.headers=i.merge(e.headers.common||{},e.headers[e.method]||{},e.headers||{}),i.forEach(["delete","get","head","post","put","patch","common"],function(t){delete e.headers[t]});var t=[a,void 0],n=Promise.resolve(e);for(this.interceptors.request.forEach(function(e){t.unshift(e.fulfilled,e.rejected)}),this.interceptors.response.forEach(function(e){t.push(e.fulfilled,e.rejected)});t.length;)n=n.then(t.shift(),t.shift());return n};var f=new r(o),h=e.exports=c(r.prototype.request,f);h.create=function(e){return new r(e)},h.defaults=f.defaults,h.all=function(e){return Promise.all(e)},h.spread=n(341),h.interceptors=f.interceptors,i.forEach(["delete","get","head"],function(e){r.prototype[e]=function(t,n){return this.request(i.merge(n||{},{method:e,url:t}))},h[e]=c(r.prototype[e],f)}),i.forEach(["post","put","patch"],function(e){r.prototype[e]=function(t,n,r){return this.request(i.merge(r||{},{method:e,url:t,data:n}))},h[e]=c(r.prototype[e],f)})},function(e,t,n){"use strict";function r(){this.handlers=[]}var o=n(33);r.prototype.use=function(e,t){return this.handlers.push({fulfilled:e,rejected:t}),this.handlers.length-1},r.prototype.eject=function(e){this.handlers[e]&&(this.handlers[e]=null)},r.prototype.forEach=function(e){o.forEach(this.handlers,function(t){null!==t&&e(t)})},e.exports=r},function(e,t,n){"use strict";e.exports=function(e){return new Promise(function(t,r){try{var o;o="function"==typeof e.adapter?e.adapter:n("undefined"!=typeof XMLHttpRequest?189:189),"function"==typeof o&&o(t,r,e)}catch(i){r(i)}})}},function(e,t,n){"use strict";var r=n(33),o=/^\)\]\}',?\n/,i={"Content-Type":"application/x-www-form-urlencoded"};e.exports={transformRequest:[function(e,t){return r.isFormData(e)?e:r.isArrayBuffer(e)?e:r.isArrayBufferView(e)?e.buffer:!r.isObject(e)||r.isFile(e)||r.isBlob(e)?e:(r.isUndefined(t)||(r.forEach(t,function(e,n){"content-type"===n.toLowerCase()&&(t["Content-Type"]=e)}),r.isUndefined(t["Content-Type"])&&(t["Content-Type"]="application/json;charset=utf-8")),JSON.stringify(e))}],transformResponse:[function(e){if("string"==typeof e){e=e.replace(o,"");try{e=JSON.parse(e)}catch(t){}}return e}],headers:{common:{Accept:"application/json, text/plain, */*"},patch:r.merge(i),post:r.merge(i),put:r.merge(i)},timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN"}},function(e,t){"use strict";e.exports=function(e,t){return function(){for(var n=new Array(arguments.length),r=0;r<n.length;r++)n[r]=arguments[r];return e.apply(t,n)}}},function(e,t){"use strict";function n(e){this.message=e}function r(e){for(var t,r,i=String(e),a="",s=0,u=o;i.charAt(0|s)||(u="=",s%1);a+=u.charAt(63&t>>8-s%1*8)){if(r=i.charCodeAt(s+=.75),r>255)throw new n("INVALID_CHARACTER_ERR: DOM Exception 5");t=t<<8|r}return a}var o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";n.prototype=new Error,n.prototype.code=5,n.prototype.name="InvalidCharacterError",e.exports=r},function(e,t,n){"use strict";function r(e){return encodeURIComponent(e).replace(/%40/gi,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}var o=n(33);e.exports=function(e,t,n){if(!t)return e;var i;if(n)i=n(t);else{var a=[];o.forEach(t,function(e,t){null!==e&&"undefined"!=typeof e&&(o.isArray(e)&&(t+="[]"),o.isArray(e)||(e=[e]),o.forEach(e,function(e){o.isDate(e)?e=e.toISOString():o.isObject(e)&&(e=JSON.stringify(e)),a.push(r(t)+"="+r(e))}))}),i=a.join("&")}return i&&(e+=(-1===e.indexOf("?")?"?":"&")+i),e}},function(e,t){"use strict";e.exports=function(e,t){return e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,"")}},function(e,t,n){"use strict";var r=n(33);e.exports=r.isStandardBrowserEnv()?function(){return{write:function(e,t,n,o,i,a){var s=[];s.push(e+"="+encodeURIComponent(t)),r.isNumber(n)&&s.push("expires="+new Date(n).toGMTString()),r.isString(o)&&s.push("path="+o),r.isString(i)&&s.push("domain="+i),a===!0&&s.push("secure"),document.cookie=s.join("; ")},read:function(e){var t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove:function(e){this.write(e,"",Date.now()-864e5)}}}():function(){return{write:function(){},read:function(){return null},remove:function(){}}}()},function(e,t){"use strict";e.exports=function(e){return/^([a-z][a-z\d\+\-\.]*:)?\/\//i.test(e)}},function(e,t,n){"use strict";var r=n(33);e.exports=r.isStandardBrowserEnv()?function(){function e(e){var t=e;return n&&(o.setAttribute("href",t),t=o.href),o.setAttribute("href",t),{href:o.href,protocol:o.protocol?o.protocol.replace(/:$/,""):"",host:o.host,search:o.search?o.search.replace(/^\?/,""):"",hash:o.hash?o.hash.replace(/^#/,""):"",hostname:o.hostname,port:o.port,pathname:"/"===o.pathname.charAt(0)?o.pathname:"/"+o.pathname}}var t,n=/(msie|trident)/i.test(navigator.userAgent),o=document.createElement("a");return t=e(window.location.href),function(n){var o=r.isString(n)?e(n):n;return o.protocol===t.protocol&&o.host===t.host}}():function(){return function(){return!0}}()},function(e,t,n){"use strict";var r=n(33);e.exports=function(e){var t,n,o,i={};return e?(r.forEach(e.split("\n"),function(e){o=e.indexOf(":"),t=r.trim(e.substr(0,o)).toLowerCase(),n=r.trim(e.substr(o+1)),t&&(i[t]=i[t]?i[t]+", "+n:n)}),i):i}},function(e,t){"use strict";e.exports=function(e){return function(t){return e.apply(null,t)}}},function(e,t,n){"use strict";function r(e,t){var n=e,r=(0,k.getNextLevel)(t);"HUC12"===t&&(n=e.substring(I.START_POSITION,I.CATALOGING_UNIT_FROM_HUC12_END_POISTION));var o="/"+L.FEATURE_SERVICE_NAME+"/FeatureServer/"+L.NCDEQ_NORMALIZED_FEATUREID+"/query?where=chart_value+is+not+null+and+ID+like+%27"+n+"%25%27+and+geography_level%3D"+r+"&objectIds=&time=&resultType=none&outFields="+N+"&returnIdsOnly=false&returnCountOnly=false&returnDistinctValues=true&orderByFields="+j+"&groupByFieldsForStatistics=&outStatistics=&resultOffset=&resultRecordCount=&f=pgeojson&token=";return R.get(o)}function o(e,t){var n="/"+L.FEATURE_SERVICE_NAME+"/FeatureServer/"+L.NCDEQ_NORMALIZED_FEATUREID+"/query?where=chart_value+is+not+null+and+ID%3D%27"+e+"%27+and+geography_label%3D%27"+t+"%27&objectIds=&time=&resultType=none&outFields="+N+"&returnIdsOnly=false&returnCountOnly=false&returnDistinctValues=true&orderByFields="+j+"&groupByFieldsForStatistics=&outStatistics=&resultOffset=&resultRecordCount=&f=pgeojson&token=";return R.get(n)}function i(e){var t="("+e+")",n="/"+L.FEATURE_SERVICE_NAME+"/FeatureServer/"+L.NCDEQ_NORMALIZED_FEATUREID+"/query?where=ID+in+"+t+"&objectIds=&time=&resultType=none&outFields=*&returnIdsOnly=false&returnCountOnly=false&returnDistinctValues=true&orderByFields=&groupByFieldsForStatistics=&outStatistics=&resultOffset=&resultRecordCount=&sqlFormat=none&f=pgeojson&token=";return R.get(n)}function a(e,t){var n=e,r="HUC_8";"HUC12"===t&&(n=e.substring(I.START_POSITION,I.CATALOGING_UNIT_FROM_HUC12_END_POISTION));var o="/"+L.FEATURE_SERVICE_NAME+"/FeatureServer/"+L.TRA_XWALK+"/query?where=ID%3D%27"+n+"%27+and+type+%3D+%27"+r.toUpperCase()+"%27&objectIds=&time=&resultType=none&outFields=*&returnIdsOnly=false&returnCountOnly=false&returnDistinctValues=true&orderByFields=&groupByFieldsForStatistics=&outStatistics=&resultOffset=&resultRecordCount=&sqlFormat=none&f=pgeojson&token=";return R.get(o)}function s(){var e="/"+L.FEATURE_SERVICE_NAME+"/FeatureServer/"+L.NCDEQ_NORMALIZED_FEATUREID+"/query?where=chart_value+is+not+null+and+OBJECTID+>+0+and+chart_matchid+<>+chart_id&objectIds=&time=&resultType=none&outFields=chart_level%2C+chart_matchid%2C+chart_level_label%2C+chart_type%2C+chart_id&returnIdsOnly=false&returnCountOnly=false&returnDistinctValues=true&orderByFields=chart_level%2C+chart_matchid%2C+chart_type%2C+chart_level_label&groupByFieldsForStatistics=&outStatistics=&resultOffset=&resultRecordCount=&sqlFormat=none&f=pgeojson&token=";return R.get(e)}function u(){var e="/"+L.FEATURE_SERVICE_NAME+"/FeatureServer/"+L.NCDEQ_NORMALIZED_FEATUREID+"/query?where=OBJECTID+>+0&objectIds=&time=&resultType=none&outFields=chart_type%2Cchart_matchid%2C+chart_level_label%2Cchart_id%2C+chart_level&returnIdsOnly=false&returnCountOnly=false&returnDistinctValues=true&orderByFields=CAST%28%22chart_level%22+as+INT%29+desc%2C+CAST%28%22chart_id%22+as+INT%29+desc%2CCAST%28%22chart_matchid%22+as+INT%29+desc&groupByFieldsForStatistics=&outStatistics=&resultOffset=&resultRecordCount=&sqlFormat=none&f=pgeojson&token=";return R.get(e)}function l(e,t){var n="/"+L.FEATURE_SERVICE_NAME+"/FeatureServer/"+L.NCDEQ_NORMALIZED_FEATUREID+"/query?where=chart_value+is+not+null+and+chart_level+%3D+"+e+"+and+chart_id+%3D+"+t+"&objectIds=&time=&resultType=none&outFields=chart_level%2C+chart_matchid%2C+chart_level_label%2C+chart_type%2C+chart_id&returnIdsOnly=false&returnCountOnly=false&returnDistinctValues=true&orderByFields=chart_level%2C+chart_matchid%2C+chart_type%2C+chart_level_label&groupByFieldsForStatistics=&outStatistics=&resultOffset=&resultRecordCount=&sqlFormat=none&f=pgeojson&token=";return R.get(n)}function c(e,t){var n=e.features,r=t.chart_type,o=t.current_chart_level,i=t.current_chart_matchid,a=n.filter(function(e){return e.properties.chart_type.toUpperCase()===r.toUpperCase()&&e.properties.chart_level===o&&e.properties.chart_matchid===i});return 0!==a.length}function p(){return function(e,t){e(C());t();u().then(function(t){var n=(0,A.CheckReponse)(t,"AGO_API_ERROR");e(T("GET_CHART_BUTTONS",n))}),e(S())}}function f(e,t,n){return function(r,o){r(C());var i=o(),a=null,s=null,u=[],p=[];i.chartData?!function(){u=i.chartData.chart_levels.levels?i.chartData.chart_levels.levels:[];var o=i.chartData.chart_levels.chart_limits,f=e-1;l(f,t).then(function(i){var l=(0,A.CheckReponse)(i,"AGO_API_ERROR");o.map(function(r){r.chart_type.toUpperCase()===n.toUpperCase()?!function(){a=e,s=t;var n=r.chart_type,o=l.features.filter(function(e){return e.properties.chart_type.toUpperCase()===n.toUpperCase()}),i=o[0].properties.chart_level?o[0].properties.chart_level:2,f=o[0].properties.chart_matchid?o[0].properties.chart_matchid:1,h=o[0].properties.chart_level_label?o[0].properties.chart_level_label:"  ",d=1===i?2:i,y=!0,m={chart_type:n,current_chart_level:a,current_chart_matchid:s,last_chart_level:d,last_chart_matchid:f,last_chart_label:h},v=c(u,m);if(v)p.push(M({},m,{is_next_level:y}));else{var g=!1;p.push(M({},r,{is_next_level:g}))}}():p.push(r)}),r(P("UPDATE_CHART_LEVEL",u,p)),r(S())})}():(r(P("in action UPDATE_CHART_LEVEL",u,p)),r(S()))}}function h(e,t){return function(e,t){e(C());t();s().then(function(t){var n=[],r=(0,A.CheckReponse)(t,"AGO_API_ERROR"),o=r.features,i=o.map(function(e){return e.properties.chart_type}),a=i.filter(function(e,t){return i.indexOf(e)==t}),s=2,u=1,l=2,c=1,p="  ",f=!0;a.map(function(e){n.push({chart_type:e,current_chart_level:s,current_chart_matchid:u,last_chart_level:l,last_chart_matchid:c,last_chart_label:p,is_next_level:f})}),e(P("GET_CHART_LEVELS",r,n)),e(S())})}}function d(e,t){return function(n,r){n(C());r();o(e,"NLCD_Catchments").then(function(e){var r=(0,A.CheckReponse)(e,"AGO_API_ERROR"),o=r?r.features:[],i=o.filter(function(e){return e.properties.chart_level===t}),a=i.map(function(e){var t=(e.properties.chart_level,e.properties.chart_level_label),n=Number(e.properties.chart_value);return{name:t,value:n}}),s=a.sort(function(e,t){return e.value>t.value?-1:e.value<t.value?1:0});n(O("GET_NLCD_DATA",s)),n(S())})}}function y(e,t){return function(n,r){n(C());r();o(e,"NLCD_huc_12").then(function(e){var r=(0,A.CheckReponse)(e,"AGO_API_ERROR"),o=r?r.features:[],i=o.filter(function(e){return e.properties.chart_level===t}),a=i.map(function(e){var t=(e.properties.chart_level,e.properties.chart_level_label),n=Number(e.properties.chart_value);return{name:t,value:n}}),s=a.sort(function(e,t){return e.value>t.value?-1:e.value<t.value?1:0});n(O("GET_NLCD_DATA_HUC12",s)),n(S())})}}function m(e,t){return function(t,n){t(C());n();o(e,"catchments_baseline").then(function(n){var r=(0,A.CheckReponse)(n,"AGO_API_ERROR"),o=r?r.features:[],i=o.filter(function(e){return 2===e.properties.chart_level}),a=i.map(function(e){var t=(e.properties.chart_level,e.properties.chart_level_label),n=Number(e.properties.chart_value.substring(0,5));return{name:t,value:n}}),s=a.sort(function(e,t){return e.value>t.value?-1:e.value<t.value?1:0}),u=new Object;u.name=e.toString(),s.map(function(e){u[e.name]=e.value});var l=new Object;l.name="1",s.map(function(e){l[e.name]=0});var c=new Object;c.name="2",s.map(function(e){c[e.name]=0});var p=[l,u,c];t(x("GET_CATCHMENT_DATA",r,p)),t(S())})}}function v(e,t){return function(n,o){n(C());o();R.all([r(e,t),a(e,t)]).then(R.spread(function(t,r){var a=o(),s=I.CHART_VISIBILITY;s=void 0===a.chartData.chart_visibility?I.CHART_VISIBILITY:a.chartData.chart_visibility;var u={},l={},c={},p=[],f=[],h=[];u=(0,A.CheckReponse)(t,"AGO_API_ERROR");c=(0,A.CheckReponse)(r,"AGO_API_ERROR");var d="";c.features&&(c.features.map(function(e){var t=e.properties.TRA_Name;d=d+",'"+t+"'"}),d=d.substring(1,d.length)),i(d).then(function(t){l=(0,A.CheckReponse)(t,"AGO_API_ERROR"),l.features&&(f=l.features.filter(function(e){return"TRA"===e.properties.chart_type})),u.features&&(p=u.features.filter(function(e){return"BASELINE"===e.properties.chart_type}),h=u.features.filter(function(e){return"UPLIFT"===e.properties.chart_type}));var r=[{chart_type:"baseline",chart_features:p,chart_limit:e},{chart_type:"uplift",chart_features:h,chart_limit:e},{chart_type:"tra",chart_features:f,chart_limit:e}];n(w(e)),n(E("GET_CHART_DATA",s,r)),n(S())})}))}}function g(e){return function(e,t){e(C());var n=t(),r=[],o=!0;n.chartData.chart_data&&(o=!n.chartData.chart_visibility,r=n.chartData.chart_data.chart_types?n.chartData.chart_data.chart_types:[]),e(E("SET_CHART_VISIBILITY",o,r)),e(S())}}function _(e,t,n){return function(r,o){var i=["tra","baseline","uplift"];r(C());var a=o(),s=void 0;s=a.active_function.active_function?a.active_function.active_function.map(function(r){return r.chart_type===n?{chart_id:e,active_name:t,chart_type:n}:{chart_id:r.chart_id,active_name:r.active_name,chart_type:r.chart_type}}):i.map(function(r){return r===n?{chart_id:e,active_name:t,chart_type:n}:{chart_id:null,active_name:null,chart_type:r}});r(b("SET_ACTIVE_FUNCTION",s)),r(S())}}function b(e,t){return{type:e,active_function:t}}function T(e,t){return{type:e,chart_buttons:t,receivedAt:Date.now()}}function P(e,t,n){return{type:e,chart_levels:{levels:t,chart_limits:n},receivedAt:Date.now()}}function x(e,t,n){return{type:e,CATCHMENTData:t,catchment_chart_ar:n}}function E(e,t,n){return{type:e,chart_data:{chart_types:n},chart_visibility:t,receivedAt:Date.now()}}function O(e,t){return{type:e,ncld_chart_data:t}}function w(e){return{type:"CHART_LIMIT",chart_limit:e}}function C(){return{type:"FETCHING_CHART",fetching:!0}}function S(){return{type:"FETCHING_CHART",fetching:!1}}Object.defineProperty(t,"__esModule",{value:!0});var M=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};t.get_chart_buttons=p,t.update_ChartLevels=f,t.get_ChartLevels=h,t.get_nlcd_data=d,t.get_nlcd_data_huc12=y,t.get_catchment_data=m,t.get_ChartData=v,t.update_ChartVisiblity=g,t.get_active_function=_;var A=n(58),k=n(20),L=n(24),I=n(11),R=n(41),D=(n(327),["ID","OBJECTID","chart_description","chart_id","chart_label","chart_level","chart_level_label","chart_matchid","chart_type","chart_value","geography_label","geography_level","geography_match_id"]),N=D.join(L.ENCODED_COMMAS),j="chart_level"+L.ENCODED_COMMAS+"chart_matchid";R.defaults.baseURL=L.AGO_URL},function(e,t,n){"use strict";function r(){return function(e,t){var n=t(),r=!1,o=n.charts?n.charts.chart_visibility:a.CHART_VISIBILITY,s=14,u=$("#headerrow").outerHeight(),l=$("#breadCrumbsHeight").outerHeight(),c=window.innerHeight-(u+l+s),p=c,f=c,h=window.innerHeight-(u+l+2*s),d=$("#chartColumn").innerWidth()-2*s,y=$("#chartSubColumn").innerWidth()-(s-2),m=$("#chartHeader").innerHeight(),v=h-m,g=$("#mapColumn").innerWidth()-2*s,_={PADDING:s,HEADERHEIGHT:u,BREADCRUMBSHEIGHT:l,LEFTOVER:c,MAPHEIGHT:p,CHARTHEIGHT:f,LEFTOVERINNER:h,CHARTWIDTH:d,CHARTSUBCOLUMN:y,CHARTHEADER:m,CHARTAREAHEIGHT:v,MAPWIDTH:g,HEADER_DESCRIPTION_VISIBILITY:r,chart_visibility:o};e(i("UPDATE_HEADER_DESCRIPTION_VISIBILITY",_))}}function o(){return function(e,t){var n=t(),r=n.charts?n.charts.chart_visibility:a.CHART_VISIBILITY,o=n.default_settings.default_settings?n.default_settings.default_settings.HEADER_DESCRIPTION_VISIBILITY:a.HEADER_DESCRIPTION_VISIBILITY,s=14,u=$("#headerrow").outerHeight(),l=$("#breadCrumbsHeight").outerHeight(),c=window.innerHeight-(u+l+s),p=c,f=c,h=window.innerHeight-(u+l+2*s),d=$("#chartColumn").innerWidth()-2*s,y=$("#chartSubColumn").innerWidth()-(s-2),m=$("#chartHeader").innerHeight(),v=h-m-20,g=$("#mapColumn").innerWidth()-2*s,_={PADDING:s,HEADERHEIGHT:u,BREADCRUMBSHEIGHT:l,LEFTOVER:c,MAPHEIGHT:p,CHARTHEIGHT:f,LEFTOVERINNER:h,CHARTWIDTH:d,CHARTSUBCOLUMN:y,CHARTHEADER:m,CHARTAREAHEIGHT:v,MAPWIDTH:g,HEADER_DESCRIPTION_VISIBILITY:o,chart_visibility:r};e(i("SET_DEFAULT_SETTINGS",_))}}function i(e,t){return{type:e,default_settings:t,receivedAt:Date.now()}}Object.defineProperty(t,"__esModule",{value:!0}),t.update_HeaderVis=r,t.set_defaults=o;var a=n(11)},function(e,t,n){"use strict";function r(){var e="/"+d.FEATURE_SERVICE_NAME+"/FeatureServer/"+d.NCDEQ_NORMALIZED_FEATUREID+"/query?where=id<>%27%27+and+geography_level+<>+99+and+geography_label+<>+%27NLCD_Catchments%27+and+geography_label+<>+%27catchments_baseline%27+and+geography_label+<>+%27NLCD_huc_12%27&objectIds=&time=&resultType=none&outFields="+v+"&returnIdsOnly=false&returnCountOnly=false&returnDistinctValues=true&orderByFields="+g+"&groupByFieldsForStatistics=&outStatistics=&resultOffset=&resultRecordCount=&f=pgeojson&token=";return m.get(e)}function o(e){switch(e){case"River Basins":return 2;case"Cataloging Units":return 3;case"HUC12":return 99;default:return 99}}function i(e,t,n){var r=o(t),i=(0,y.getCurrentLevel)(t),a=e.geography_levels.geography_levels,s=e.menuLists.lists,u=[];return a.map(function(e){var t=[],o=e.geography_label,a=e.geography_level,l=e.active,c=e.filter,p=e.current_id;i===a&&(p=n),a>i&&(p=""),a>=r&&(c=n);var f=s[a-1].lists;c.length>0?f.map(function(e){var n=e.ID.toString().substring(0,c.length),r=c.toString().trim(),o=n.toString().trim();r==o&&t.push(e)}):t=f;var h={geography_level:a,geography_label:o,active:l,filter:c,current_id:p,filtered_menu_list:t};u.push(h)}),u}function a(e,t){var n=(0,y.getAGOGeographyLabel)(t),r=e.geography_levels.geography_levels,o=[],i=!1;return r.map(function(e){var t=e.geography_label,r=e.geography_level,a=e.filter,s=e.current_id,u=e.filtered_menu_list;i=e.geography_label===n;var l={geography_level:r,geography_label:t,active:i,filter:a,current_id:s,filtered_menu_list:u};o.push(l)}),o}function s(e,t){return function(n,r){n(c());var o=r();if(e){var a=i(o,t,e);n(f("CHANGE_FILTER_GEOGRAPHY_LEVEL",a)),n(p())}}}function u(e){return function(t,n){t(c());var r=n(),o=a(r,e);t(f("CHANGE_ACTIVE_GEOGRAPHY_LEVEL",o)),t(p())}}function l(){return function(e,t){e(c());t();r().then(function(t){var n=(0,h.CheckReponse)(t,"AGO_API_ERROR"),r=[],o=!1,i="",a="",s=[];n.features.map(function(e){var t=e.properties.geography_label,n=e.properties.geography_level,u={geography_level:n,geography_label:t,active:o,filter:i,current_id:a,filtered_menu_list:s};r.push(u)}),e(f("GET_GEOGRAPHY_LEVELS",r)),e(p())})}}function c(){return{type:"FETCHING_GEO",fetching:!0}}function p(){return{type:"FETCHING_GEO",fetching:!1}}function f(e,t){return{type:e,geography_levels:t,receivedAt:Date.now()}}Object.defineProperty(t,"__esModule",{value:!0}),t.change_geographyLevelFilter=s,t.change_geographyLevelActive=u,t.get_GeographyLevels=l;var h=n(58),d=n(24),y=n(20),m=n(41);m.defaults.baseURL=d.AGO_URL;var v="geography_level%2Cgeography_label",g="geography_level"},function(e,t,n){"use strict";function r(e){return function(t,n){t(a("SET_LEAFLETMAP",e))}}function o(){return function(e,t){var n=t(),r=s.IMAGERY_VISIBILITY;n.imagery_visibility&&(r=!n.imagery_visibility.visibility),e(i("USE_IMAGERY",r))}}function i(e,t){return{type:e,imagery_visibility:t,receivedAt:Date.now()}}function a(e,t){return{type:e,leafletMap:t,receivedAt:Date.now()}}Object.defineProperty(t,"__esModule",{value:!0}),t.set_LeafletMap=r,t.use_imagery=o;var s=n(11)},function(e,t,n){"use strict";function r(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t["default"]=e,t}function o(e){var t=e.split(",");if(2==t.length){var n=+t[0],r=+t[1];if(Math.abs(n)<=90&&Math.abs(r)<=180)return new google.maps.LatLng(n,r)}return null}function i(e){switch(e){case 12:return 8;case 8:return 6;case 6:return 6;default:return 8}}function a(e){switch(e){case 12:return A.HUC12_MAP_FEATUREID;case 8:return A.HUC12_MAP_FEATUREID;case 6:return A.CATALOGING_MAP_FEATUREID;default:return A.HUC12_MAP_FEATUREID}}function s(e){switch(e){case 12:return"Cataloging Units";case 8:return"Cataloging Units";case 6:return"River Basins";default:return"HUC12"}}function u(e,t){var n="VALUE";t===A.TRA_FEATUREID&&(n="ID");var r="/"+A.FEATURE_SERVICE_NAME+"/FeatureServer/"+t+"/query?where="+n+"+like+%27"+e+"%25%27&objectIds=&time=&resultType=standard&distance=&units=esriSRUnit_Meter&outFields=*&returnGeometry=true&returnCentroid=true&multipatchOption=xyFootprint&maxAllowableOffset=&geometryPrecision=&outSR=4326&returnIdsOnly=false&returnCountOnly=false&returnExtentOnly=false&returnDistinctValues=true&orderByFields=&groupByFieldsForStatistics=&outStatistics=&resultOffset=&resultRecordCount=&returnZ=false&returnM=false&quantizationParameters=&sqlFormat=none&f=pgeojson&token=";return D.get(r)}function l(e,t){var n="VALUE";t===A.TRA_FEATUREID&&(n="ID");var r="/"+A.FEATURE_SERVICE_NAME+"/FeatureServer/"+t+"/query?where="+n+"+%3D+%27"+e+"%27&objectIds=&time=&resultType=standard&distance=&units=esriSRUnit_Meter&outFields=*&returnGeometry=true&returnCentroid=true&multipatchOption=xyFootprint&maxAllowableOffset=&geometryPrecision=&outSR=4326&returnIdsOnly=false&returnCountOnly=false&returnExtentOnly=false&returnDistinctValues=true&orderByFields=&groupByFieldsForStatistics=&outStatistics=&resultOffset=&resultRecordCount=&returnZ=false&returnM=false&quantizationParameters=&sqlFormat=none&f=pgeojson&token=";return D.get(r)}function c(e,t,n){var r="/"+A.FEATURE_SERVICE_NAME+"/FeatureServer/"+n+"/query?where=&objectIds=&time=&geometry=%7Bx%3A+"+t+"%2C+y%3A+"+e+"%7D&geometryType=esriGeometryPoint&multipatchOption=xyFootprint&returnGeodetic=false&inSR=4326&spatialRel=esriSpatialRelIntersects&resultType=none&distance=0.0&units=esriSRUnit_Meter&outFields=*&returnGeometry=true&returnCentroid=true&maxAllowableOffset=&geometryPrecision=&outSR=4326&returnIdsOnly=false&returnCountOnly=false&returnExtentOnly=false&returnDistinctValues=true&orderByFields=&groupByFieldsForStatistics=&outStatistics=&resultOffset=&resultRecordCount=&returnZ=false&returnM=false&quantizationParameters=&sqlFormat=none&f=pgeojson&token=";return D.get(r)}function p(e){return function(t,n){t(x());var r=(n(),e.length),o=i(r),l=a(r),c=s(r),p=e.substring(0,o);D.all([u(p,l),U(p,c)]).then(D.spread(function(e,r){var o=(n(),
  (0,M.CheckReponse)(e,"AGO_API_ERROR")),i=(0,M.CheckReponse)(r,"AGO_API_ERROR"),a=i.features.map(function(e){return e.properties.TRA_Name}),s="'"+a.join("','")+"'";D.all([B(s)]).then(D.spread(function(e){var n=(0,M.CheckReponse)(e,"AGO_API_ERROR"),r=o.features,i=n.features;r=r.concat(i);var a=j(r);t(O("GET_GEOMETRIES",a))}))})),t(E())}}function f(e){return function(t,n){var r=n(),o=e,i=S({},r.mapConfig.mapconfig,{searchMethod:o});t(C("SET_SEARCH_METHOD",i))}}function h(e,t,n){return function(r,o){var i=o(),a=void 0;if(i.current_active_hover&&(a=i.current_active_hover.DATE_SENT),n>a)return null;var s={ID:e,GEOGRAPHY_LEVEL:t,DATE_SENT:n};r(w("SET_ACTIVE_HOVER",s))}}function d(e,t){return function(n,r){if(!e){var o=r(),i=[],a=S({},o.mapConfig.mapconfig,{hoverInfo:i});return void n(C("MAP_GET_HOVER_INFO",a))}D.all([l(e,t)]).then(D.spread(function(e){var t=(0,M.CheckReponse)(e,"AGO_API_ERROR"),o=r(),i=t,a=S({},o.mapConfig.mapconfig,{hoverInfo:i});n(C("MAP_GET_HOVER_INFO",a))}))}}function y(e,t){return function(n,r){n(x());r();D.all([l(e,t),l(e.substring(0,8),A.CATALOGING_MAP_FEATUREID)]).then(D.spread(function(e,t){var o=(0,M.CheckReponse)(t,"AGO_API_ERROR"),i=(0,M.CheckReponse)(e,"AGO_API_ERROR"),a=r(),s=i,u=o,l=S({},a.mapConfig.mapconfig,{layerInfo:s,huc8Info:u});n(C("MAP_GET_LAYER_INFO",l)),n(E())}))}}function m(e,t,n){return function(r,o){r(x());o();D.all([c(e,t,n),c(e,t,A.TRA_FEATUREID),c(e,t,A.CATALOGING_MAP_FEATUREID),c(e,t,A.NLCD_CATCHMENT_FEATUREID)]).then(D.spread(function(n,i,a,s){var u=(0,M.CheckReponse)(s,"AGO_API_ERROR"),l=(0,M.CheckReponse)(i,"AGO_API_ERROR"),c=(0,M.CheckReponse)(n,"AGO_API_ERROR"),p=(0,M.CheckReponse)(a,"AGO_API_ERROR"),f=o(),h=N([t,e]),d=j(h),y=c,m=l,v=u,g=p,_=d,b=S({},f.mapConfig.mapconfig,{layerInfo:y,traPointInfo:m,NLCDPointInfo:v,huc8Info:g,map_point:_});r(C("MAP_GET_LAYER_INFO",b)),r(E())}))}}function v(e){return function(t,n){t(x());var r=n(),o=0===r.mapConfig.mapconfig.layers.length?new Array:r.mapConfig.mapconfig.layers;o.push(e);var i=o,a=S({},r.mapConfig.mapconfig,{layers:i});t(C("MAP_SET_LAYERS",a)),t(E())}}function g(e,t,n,r){return function(r,o){r(x());var i=o(),a=e,s=t,u=n,l=S({},i.mapConfig.mapconfig,{latitude:a,longitude:s,zoom:u});r(C("MAP_TO_POINT",l)),r(E())}}function _(e,t){return function(t,n){t(x());var r=n(),o=e.refs.map.leafletElement,i=o.getCenter(),a=i.lat,s=i.lng,u=o.getZoom(),l=S({},r.mapConfig.mapconfig,{latitude:a,longitude:s,zoom:u});t(C("MAP_END",l)),t(E())}}function b(e){return function(e,t){e(x());var n=(t(),L.latLng(R.SOUTH_WEST_LATITUDE,R.SOUTH_WEST_LONGITUDE)),r=L.latLng(R.NORTH_EAST_LATITUDE,R.NORTH_EAST_LONGITUDE),o=L.latLngBounds(n,r),i=R.START_LATITUDE,a=R.START_LONGITUDE,s=R.START_ZOOM,u=R.MIN_ZOOM,l=R.MAX_ZOOM,c=o,p=[],f={},h={},d={},y={},m="none",v={},g={},_={},b={latitude:i,longitude:a,zoom:s,layers:p,minZoom:u,maxZoom:l,maxBounds:c,layerInfo:f,traPointInfo:h,NLCDPointInfo:d,traInfo:v,huc8Info:y,searchMethod:m,map_point:g,hoverInfo:_};e(C("MAP_DATA",b)),e(E())}}function T(e,t){return function(e,n){e(x());var r,i,a=n(),s=t.target,u=o(s.value);if(u){r=u.lat(),i=u.lng();var l=N([i,r]),p=j(l);D.all([c(r,i,A.HUC12_MAP_FEATUREID),c(r,i,A.TRA_FEATUREID),c(r,i,A.CATALOGING_MAP_FEATUREID),c(r,i,A.NLCD_CATCHMENT_FEATUREID)]).then(D.spread(function(t,n,r,o){var i=(0,M.CheckReponse)(o,"AGO_API_ERROR"),s=(0,M.CheckReponse)(n,"AGO_API_ERROR"),u=(0,M.CheckReponse)(t,"AGO_API_ERROR"),l=(0,M.CheckReponse)(r,"AGO_API_ERROR"),c=u,f=s,h=i,d=l,y=p,m=S({},a.mapConfig.mapconfig,{layerInfo:c,traPointInfo:f,NLCDPointInfo:h,huc8Info:d,map_point:y});e(C("MAP_SEARCH",m)),e(E())}))}else{var f=R.NORTH_EAST_LATITUDE,h=R.NORTH_EAST_LONGITUDE,d=R.SOUTH_WEST_LATITUDE,y=R.SOUTH_WEST_LONGITUDE,m=new google.maps.LatLngBounds(new google.maps.LatLng(f,h),new google.maps.LatLng(d,y)),v={strictbounds:m},g=new google.maps.places.SearchBox(s,v);google.maps.event.addListener(g,"places_changed",function(){var t=g.getPlaces()[0];if(t.geometry){t.address_components||(s.value=t.formatted_address),r=t.geometry.location.lat(),i=t.geometry.location.lng();var n=N([i,r]),o=j(n);D.all([c(r,i,A.HUC12_MAP_FEATUREID),c(r,i,A.TRA_FEATUREID),c(r,i,A.CATALOGING_MAP_FEATUREID),c(r,i,A.NLCD_CATCHMENT_FEATUREID)]).then(D.spread(function(t,n,r,i){var s=(0,M.CheckReponse)(i,"AGO_API_ERROR"),u=(0,M.CheckReponse)(n,"AGO_API_ERROR"),l=(0,M.CheckReponse)(t,"AGO_API_ERROR"),c=(0,M.CheckReponse)(r,"AGO_API_ERROR"),p=l,f=u,h=s,d=c,y=o,m=S({},a.mapConfig.mapconfig,{layerInfo:p,traPointInfo:f,NLCDPointInfo:h,huc8Info:d,map_point:y});e(C("MAP_SEARCH",m)),e(E())}))}})}}}function P(e){return function(t,n){t(x());var r=n();l(e,A.TRA_FEATUREID).then(function(e){var n=(0,M.CheckReponse)(e,"AGO_API_ERROR"),o=n,i=S({},r.mapConfig.mapconfig,{traInfo:o});t(C("TRA_GEOMETRY",i)),t(E())})}}function x(){return{type:"FETCHING_MAP",fetching:!0}}function E(){return{type:"FETCHING_MAP",fetching:!1}}function O(e,t){return{type:e,geometries:t,receivedAt:Date.now()}}function w(e,t){return{type:e,active_hover:t,receivedAt:Date.now()}}function C(e,t){return{type:e,mapconfig:t,receivedAt:Date.now()}}Object.defineProperty(t,"__esModule",{value:!0}),t.ago_get_tra_geom_by_ids=t.ago_get_traxwalk_by_id=void 0;var S=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};t.get_all_geometries=p,t.set_search_method=f,t.set_active_hover=h,t.get_LayerGeom_ByValue=d,t.get_LayerInfo_ByValue=y,t.get_LayerInfo_ByPoint=m,t.set_MapLayers=v,t.set_mapToPoint=g,t.HandleMapEnd=_,t.get_defaultMapData=b,t.handleSearchChange=T,t.get_tra_info=P;var M=n(58),A=n(24),k=n(191),I=r(k),R=n(11),D=n(41),N=n(762),j=n(327),U=t.ago_get_traxwalk_by_id=I.ago_get_traxwalk_by_id,B=t.ago_get_tra_geom_by_ids=I.ago_get_tra_geom_by_ids;D.defaults.baseURL=A.AGO_URL},function(e,t,n){"use strict";function r(){return y.get(d.AGO_RIVER_BASINS)}function o(){return y.get(d.AGO_CATALOGING_UNITS)}function i(){return y.get(d.AGO_HUCS)}function a(e){return{name:e,lists:[]}}function s(e,t,n){var r=[],o=a(e);return r.push(o),r.map(function(t){t.name===e&&n.features.map(function(e){t.lists.push(e.properties)})}),r[0]}function u(){return function(e,t){e(l());t();y.all([r(),o(),i()]).then(y.spread(function(t,n,r){var o=(0,h.CheckReponse)(t,"AGO_API_ERROR"),i=(0,h.CheckReponse)(n,"AGO_API_ERROR"),a=(0,h.CheckReponse)(r,"AGO_API_ERROR"),u=s("River Basins",[],o),l=s("Cataloging Units",[],i),d=s("HUC12",[],a),y=[f({},u),f({},l),f({},d)];e(p(y)),e(c())}))}}function l(){return{type:"FETCHING_MENUS",fetching:!0}}function c(){return{type:"FETCHING_MENUS",fetching:!1}}function p(e){return{type:"GET_MENU_LIST",lists:e,receivedAt:Date.now()}}Object.defineProperty(t,"__esModule",{value:!0});var f=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};t.get_MenuList=u;var h=n(58),d=n(24),y=n(41);y.defaults.baseURL=d.AGO_URL},function(e,t){"use strict";function n(){return function(e,t){var n=JSON_CONSTANTS.concat();e(r("SET_CONSTANTS",n))}}function r(e,t){return{type:e,constants:t,receivedAt:Date.now()}}Object.defineProperty(t,"__esModule",{value:!0}),t.set_constants=n},function(e,t,n){"use strict";var r=n(37),o=n(24),i=n(1),a=i.PropTypes,s=n(357),u=n(359),l=n(360),c=i.createClass({displayName:"ChartBars",propTypes:{title:a.string},getDefaultProps:function(){return{title:"Title"}},handleClick:function(e,t,n,r,i){var a=t.name,s=this.props.chart_type;this.props.set_search_method("chart clicked"),this.props.change_geographyLevelActive(a),"TRA"===s.toUpperCase()?(this.setState({tra_filter:a}),this.props.get_tra_info(a)):this.props.get_LayerInfo_ByValue(a,o.HUC12_MAP_FEATUREID)},get_legend_payload:function(e){var t=this,n=[],r=this.get_datakeys(e);return r.map(function(e){var r=t.props.get_keyColors(e);n.push({value:e,type:"rect",id:e,color:r[1]})}),n},get_datakeys:function(e){var t=[];return t=this.props.ChartLevels.map(function(e){return e.properties.chart_level_label})},get_cell:function(e){var t=this,n=this.props.get_keyColors(e),o=this.props.chart_filter,a=this.props.chart_type;return this.state&&"TRA"===a.toUpperCase()&&this.state&&(o=this.state.tra_filter),this.props.chart_data?this.props.chart_data.map(function(e,a){return i.createElement(r.Cell,{cursor:"pointer",fill:e.name===o?n[0]:n[1],stroke:e.name===o?n[0]:n[1],strokeWidth:e.name===o?1:0,key:"cell-"+a,id:e.name,onClick:t.handleClick.bind(null,t,e)})}):null},get_bars:function(){var e=this,t=this.props.chart_type,n=this.get_datakeys(t),o=0;return n?n.map(function(t){return i.createElement(r.Bar,{key:o++,dataKey:t,stackId:"a",fill:"#beaed4"},e.get_cell(t))}):null},componentDidMount:function(){$("#bar-chart-"+this.props.chart_type+" .recharts-surface").css("overflow","visible")},render:function(){var e=void 0;return e=this.props.chart_filter?0===this.props.chart_data.length?"No Data was found HUC's for the HUC "+this.props.chart_filter+"! Try to click the map, choose a HUC, or Search for a location again.":"This chart displays ALL HUC's in the Cataloging Unit "+this.props.chart_filter.substring(0,8)+". Click on the Chart to go to the HUC OR Place you mouse cursor over bar to get more information.":"No Charts Available Yet Please Click on the map, choose a HUC, or Search for a location",$("#description").html(e),i.createElement("div",null,i.createElement("div",{id:"bar-chart-"+this.props.chart_type},i.createElement(r.BarChart,{key:this.props.chart_type,width:this.props.chart_width,height:200,data:this.props.chart_data,margin:{top:20,right:30,left:20,bottom:5}},i.createElement(r.XAxis,{dataKey:"name",hide:!1,tick:!1,label:i.createElement(u,{level_label:this.props.level_label}),tickLine:!1,axisLine:!1}),i.createElement(r.YAxis,{width:50,hide:!1,label:i.createElement(l,{top_label:this.props.top_label,bottom_label:this.props.bottom_label}),tick:!1,tickLine:!1,axisLine:!1}),i.createElement(r.Tooltip,{content:i.createElement(s,{set_search_method:this.props.set_search_method,get_LayerInfo_ByValue:this.props.get_LayerInfo_ByValue,get_LayerGeom_ByValue:this.props.get_LayerGeom_ByValue,change_geographyLevelActive:this.props.change_geographyLevelActive,get_tra_info:this.props.get_tra_info,get_keyColors:this.props.get_keyColors,chart_type:this.props.chart_type,level_label:this.props.level_label,handleClick:this.handleClick,function_limits:this.props.function_limits,set_active_hover:this.props.set_active_hover})}),this.get_bars())))}});e.exports=c},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(e){var t="#5475A8";switch(e){case"Water":t="#5475A8";break;case"Developed":t="#ff0000";break;case"Barren":t="#D2CDC0";break;case"Forested":t="#85C77E";break;case"Shrubland":t="#AF963C";break;case"Grassland":t="#FDE9AA";break;case"Cultivated":t="#CA9146";break;case"Wetland":t="#64B3D5";break;case"Water Quality":t="#67e48f";break;case"Hydrology":t="#759ac1";break;case"Habitat":t="#fecc9a";break;default:t="#22c355"}return t}var i=n(37),a=n(51),s=r(a),u=n(192),l=r(u),c=n(195),p=r(c),f=n(11),h=n(1),d=(h.PropTypes,function(e){var t=e.payload,n=t.map(function(e){return e.value}),r=n.reduce(function(e,t){return e+t},0);return h.createElement("div",{className:"ui list",style:{marginLeft:"30px"}},t.map(function(e,t){return h.createElement("div",{className:"item",key:"item-"+t},h.createElement("svg",{width:"14",height:"14"},h.createElement("path",{"stroke-strokeWidth":"4",fill:e.fill,stroke:e.stroke,d:"M0,0h32v32h-32z"})),"  "+e.name+"  ("+(e.value/r*100).toFixed(1)+"%)")}))}),y=function(e){var t=e.payload,n=t.map(function(e){return e.value});n.reduce(function(e,t){return e+t},0);return h.createElement("div",{className:"ui list",style:{marginLeft:"30px"}},t.map(function(e,t){return h.createElement("div",{className:"item",key:"item-"+t},h.createElement("svg",{width:"14",height:"14"},h.createElement("path",{"stroke-strokeWidth":"4",fill:e.fill,stroke:e.stroke,d:"M0,0h32v32h-32z"})),"  "+e.name+"  ("+e.value+")")}))},m=h.createClass({displayName:"ChartPie",componentDidMount:function(){this.props.chart_width<500?this.props.chart_width/2.5:this.props.chart_width/2;$(".ui.accordion").accordion(),$(".PieChart .recharts-surface").css("overflow","visible")},componentDidUpdate:function(e,t){$(".PieChart .recharts-layer.recharts-pie").attr("transform","translate(-100)"),$(".PieChart .recharts-layer.recharts-pie").attr("transform","translate(-100)")},render:function(){var e=this.props.chart_data,t=e.length<1?"No "+this.props.title+" found at this location!":this.props.note,n=e.length<1?"Click or search to try again":"",r=(this.props.chart_width<500?this.props.chart_width/2.5:this.props.chart_width/2,e.length<1?"150px":"250px"),a=h.createElement("span",null," "),u=!(window.innerWidth<500);return h.createElement("div",{className:"ui fluid accordion",style:{display:"block",backgroundColor:f.BACKGROUND_COLOR_FG,marginBottom:f.SPACING,border:f.BOX_BORDER,paddingTop:"0px",borderRadius:f.BOX_BORDER_RADUIS}},h.createElement("div",{className:"active title",style:{borderBottom:f.BOX_BORDER,marginTop:f.SPACING,paddingBottom:f.SPACING,height:"3em"}},h.createElement("div",{className:"header",style:{fontSize:"1.28571429em",fontWeight:"700"}},h.createElement("i",{className:"dropdown left floated icon",style:{"float":"left"}}),h.createElement("span",{style:{"float":"left"}},this.props.title,h.createElement(s["default"],{helper_name:this.props.chart_type})),h.createElement("span",{style:{"float":"left",fontSize:".75em!important",fontWeight:"500!important",color:"rgba(0,0,0,.6)"}},h.createElement("span",{className:"description"},this.props.title_description),h.createElement("span",{className:"note"},a,"- ",t)))),h.createElement("div",{className:"active content"},h.createElement("div",{className:"description PieChart",style:{padding:f.SPACING,width:this.props.chart_width,height:r}},e.length<1&&h.createElement(p["default"],{note:t,sub_header:n}),e.length>0&&h.createElement(i.ResponsiveContainer,null,h.createElement(i.PieChart,{key:"",margin:{top:0,right:0,left:0,bottom:0}},this.props.use_percent&&u&&h.createElement(i.Legend,{content:d,width:175,verticalAlign:"middle",align:"right",margin:{top:0,right:0,left:0,bottom:0}}),!this.props.use_percent&&u&&h.createElement(i.Legend,{content:y,width:175,verticalAlign:"middle",align:"right",margin:{top:0,right:0,left:10,bottom:0}}),h.createElement(i.Pie,{data:e,labelLine:!1,fill:"#8884d8",outerRadius:"90%"},e.map(function(e,t){return h.createElement(i.Cell,{key:t,fill:o(e.name)})})),h.createElement(i.Tooltip,{content:h.createElement(l["default"],{get_keyColors:o,data:e})}))))))}});e.exports=m},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(e){var t="#5475A8";switch(e){case"Water":t="#5475A8";break;case"Developed":t="#ff0000";break;case"Barren":t="#D2CDC0";break;case"Forested":t="#85C77E";break;case"Shrubland":t="#AF963C";break;case"Grassland":t="#FDE9AA";break;case"Cultivated":t="#CA9146";break;case"Wetland":t="#64B3D5";break;case"Water Quality":t="#67e48f";break;case"Hydrology":t="#759ac1";break;case"Habitat":t="#fecc9a";break;default:t="#22c355"}return t}var i=n(37),a=n(192),s=r(a),u=n(11),l=n(1),c=(l.PropTypes,function(e){var t=e.payload,n=t.map(function(e){return e.value}),r=n.reduce(function(e,t){return e+t},0);return l.createElement("div",{className:"ui list"},t.map(function(e,t){return l.createElement("div",{className:"item",key:"item-"+t},l.createElement("svg",{width:"14",height:"14"},l.createElement("path",{"stroke-strokeWidth":"4",fill:e.fill,stroke:e.stroke,d:"M0,0h32v32h-32z"})),"  "+e.name+"  ("+(e.value/r*100).toFixed(1)+"%)")}))}),p=function(e){var t=e.payload,n=t.map(function(e){return e.value});n.reduce(function(e,t){return e+t},0);return l.createElement("div",{className:"ui list"},t.map(function(e,t){return l.createElement("div",{className:"item",key:"item-"+t},l.createElement("svg",{width:"14",height:"14"},l.createElement("path",{"stroke-strokeWidth":"4",fill:e.fill,stroke:e.stroke,d:"M0,0h32v32h-32z"})),"  "+e.name+"  ("+e.value+")")}))},f=l.createClass({displayName:"ChartPieComponent",componentDidMount:function(){$(".ui.accordion").accordion()},shouldComponentUpdate:function(e,t){return e.chart_data?!!e:!1},render:function(){var e=this.props.chart_data,t=void 0===e?[]:e,n=t.length<1?"No "+this.props.title+"("+this.props.geography+") found at this location!":"For "+this.props.geography+": "+this.props.chart_filter,r=t.length<1?"Click or search to try again":"",a=this.props.chart_width<500?this.props.chart_width/2.5:this.props.chart_width/2,f=l.createElement("span",null," ");return l.createElement("div",{className:"ui fluid accordion",style:{display:"block",backgroundColor:u.BACKGROUND_COLOR_FG,marginBottom:u.SPACING,border:u.BOX_BORDER,paddingTop:"0px",borderRadius:u.BOX_BORDER_RADUIS}},l.createElement("div",{className:"active title",style:{borderBottom:u.BOX_BORDER,marginTop:u.SPACING,paddingBottom:u.SPACING,height:"3em"}},l.createElement("div",{className:"header",style:{fontSize:"1.28571429em",fontWeight:"700"}},l.createElement("i",{className:"dropdown left floated icon",style:{"float":"left"}}),l.createElement("span",{style:{"float":"left"}},this.props.title),l.createElement("span",{style:{"float":"left",fontSize:".75em!important",fontWeight:"500!important",color:"rgba(0,0,0,.6)"}},l.createElement("span",{className:"description"},this.props.description),l.createElement("span",{className:"note"},f,"- ",n)))),l.createElement("div",{className:"active content"},l.createElement("div",{className:"description",style:{padding:u.SPACING,width:this.props.chart_width}},t.length<1&&l.createElement("div",{className:"ui icon negative message"},l.createElement("i",{className:"remove circle icon"}),l.createElement("div",{className:"content"},l.createElement("div",{className:"header"},n),r)),t.length>0&&l.createElement(i.PieChart,{key:"",width:a,height:250,margin:{top:0,right:0,left:0,bottom:0}},this.props.use_percent&&l.createElement(i.Legend,{content:c,verticalAlign:"middle",align:"right"}),!this.props.use_percent&&l.createElement(i.Legend,{content:p,verticalAlign:"middle",align:"right"}),l.createElement(i.Pie,{data:t,labelLine:!1,fill:"#8884d8",outerRadius:100},t.map(function(e,t){return l.createElement(i.Cell,{key:t,fill:o(e.name)})})),l.createElement(i.Tooltip,{content:l.createElement(s["default"],{get_keyColors:o,data:t})})))))}});e.exports=f},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}var o=n(376),i=r(o),a=n(350),s=r(a),u=n(354),l=r(u),c=n(355),p=(r(c),n(51)),f=r(p),h=n(374),d=(r(h),n(11)),y=n(20),m=n(1),v=(m.PropTypes,n(123),m.createClass({displayName:"ChartRow",getInitialState:function(){return{working:!1}},get_keyColors:function(e){var t=[];switch(e){case"Water Quality":t=["#22c355","#67e48f"];break;case"Phosphorus":t=["rgba(130, 224, 170, 1)","rgba(130, 224, 170, .5)"];break;case"Phosphorus Agriculture":t=["rgba(130, 224, 170, 1)","rgba(130, 224, 170, .5)"];break;case"Phosphorus Atmosphere":t=["rgba(46, 204, 113,1)","rgba(46, 204, 113,.5)"];break;case"Phosphorus Urban":t=["rgba(35, 155, 86  ,1)","rgba(35, 155, 86  ,.5)"];break;case"Nitrogen":t=["rgba(29, 131, 72 ,1)","rgba(29, 131, 72,.5)"];break;case"Nitrogen Atmosphere":t=["rgba(130, 224, 170, 1)","rgba(130, 224, 170, .5)"];break;case"Nitrogen Agriculture":t=["rgba(46, 204, 113,1)","rgba(46, 204, 113,.5)"];break;case"Nitrogen Urban":t=["rgba(35, 155, 86  ,1)","rgba(35, 155, 86  ,.5)"];break;case"Hydrology":t=["#456fa2","#759ac1"];break;case"2 year peak":t=["rgba(133, 193, 233  ,1)","rgba(133, 193, 233  ,.5)"];break;case"10 year peak":t=["rgba(52, 152, 219 ,1)","rgba(52, 152, 219  ,.5)"];break;case"50 year peak":t=["rgba(46, 134, 193  ,1)","rgba(46, 134, 193 ,.5)"];break;case"100 year peak":t=["rgba(33, 97, 140  ,1)","rgba(33, 97, 140 ,.5)"];break;case"Habitat":t=["#fd9935","#fecc9a"];break;case"Habitat Likelhood":t=["#fd9935","#fecc9a"];break;case"Avoided Conversion":t=["rgba(250, 215, 160 ,1)","rgba(250, 215, 160 ,.5)"];break;case"Aquatic Connectivity":t=["rgba(245, 176, 65 ,1)","rgba(245, 176, 65 ,.5)"];break;case"Stream Restoration":t=["rgba(214, 137, 16  ,1)","rgba(214, 137, 16  ,.5)"];break;case"Streams Restoration":t=["rgba(214, 137, 16  ,1)","rgba(214, 137, 16  ,.5)"];break;case"Wetlands and BMPs":t=["rgba(211, 84, 0 ,1)","rgba(211, 84, 0 ,.5)"];break;default:t=["#1a9641","#3cdd6f"]}return t},chartToggle:function(e){this.props.update_ChartVisiblity(),this.props.set_defaults(),this.props.update_HeaderVis()},getChartType_Data:function(e){var t=this.props.charts.chart_data?this.props.charts.chart_data.chart_types:[],n=t.filter(function(t){return t.chart_type===e});return n},getChart_Filter:function(e){var t="";return e&&(t=e.chart_limit),t},getChart_FilteredByHUC:function(e,t){var n=[];return e&&(n=e.chart_features?e.chart_features.filter(function(e){return e.properties.ID===t}):e.filter(function(e){return e.properties.ID===t})),n},getChart_FilteredByChartLevel:function(e,t,n,r){var o=!0;r||(o=!1);var i=[],a=void 0,s=void 0,u=void 0;return this.props.active_function&&(u=this.props.active_function.filter(function(e){return e.chart_type.toUpperCase()===n.toUpperCase()})),u&&(a=u[0].active_name,s=u[0].chart_id),e&&(i=o?e.chart_features?e.chart_features.filter(function(e){return function_limit?e.properties.chart_id===t&&(e.properties.chart_level_label===a&&e.properties.chart_id===s||e.properties.chart_id!=s):e.properties.chart_id===t}):e.filter(function(e){return a?e.properties.chart_id===t&&(e.properties.chart_level_label===a&&e.properties.chart_id===s||e.properties.chart_id!=s):e.properties.chart_id===t}):e.chart_features?e.chart_features.filter(function(e){return a?e.properties.chart_matchid===t&&e.properties.chart_id!=t&&(e.properties.chart_level_label===a&&e.properties.chart_id===s||e.properties.chart_id!=s):e.properties.chart_matchid===t&&e.properties.chart_id!=t}):e.filter(function(e){return function_limit?e.properties.chart_matchid===t&&e.properties.chart_id!=t&&(e.properties.chart_level_label===a&&e.properties.chart_id===s||e.properties.chart_id!=s):e.properties.chart_matchid===t&&e.properties.chart_id!=t})),i},getChart_GroupSum:function(e){var t=e.reduce(function(e,t){var n=Number([t.properties.chart_value])?Number([t.properties.chart_value]):Number(0);return e[t.properties.ID+"_"+t.properties.chart_matchid]=e[t.properties.ID+"_"+t.properties.chart_matchid]?e[t.properties.ID+"_"+t.properties.chart_matchid]+n:n,e},{});return t},getChart_Sorted:function(e){var t=this.getChart_GroupSum(e),n=Object.keys(t).sort(function(e,n){return t[e]>t[n]?-1:t[e]<t[n]?1:0});return n},getChart_data:function(e,t){var n=this,r=[];if(e&&this.props.charts.chart_levels){var o,i;!function(){var a=n.props.charts.chart_levels.chart_limits?n.props.charts.chart_levels.chart_limits:[],s=a.filter(function(e){return e.chart_type.toUpperCase()===t.toUpperCase()}),u=s[0]?s[0].current_chart_matchid:2,l=n.getChart_FilteredByChartLevel(e,u,t,!1),c=n.getChart_Sorted(l);o=new Object,i=new Object,c.map(function(e){var t="_",a=e.indexOf(t);e.split(t).length-1>1&&(a=e.indexOf(t,a+1));var s=e.substring(0,a),u=new Object;u.name=s,o.name=" ",i.name="   ";var c=n.getChart_FilteredByHUC(l,s);c.map(function(e){var t=e.properties.chart_value;t&&(t=e.properties.chart_value);var t=Number(t);u[e.properties.chart_level_label]=t,o[e.properties.chart_level_label]=null,i[e.properties.chart_level_label]=null,u.chart_id=e.properties.chart_id,o.chart_id=e.properties.chart_id,i.chart_id=e.properties.chart_id}),r.push(u)}),1===r.length&&(r.unshift(o),r.push(i))}()}return r},getLevel:function(){if(this.props.geography_levels){var e=this.props.geography_levels.filter(function(e){return e.active===!0}),t="River Basins";return e.length>0&&(t=(0,y.getCategoryName)(e[0].geography_label)),t}return null},shouldComponentUpdate:function(e,t){var n=!0;return e.fetching_map&&(n=!0),e.fetching_chart&&(n=!0),e.fetching_tra&&(n=!1),e.fetching_geo&&(n=!1),e.fetching_menu&&(n=!1),n},componentWillMount:function(){this.props.get_chart_buttons()},set_chart_types:function(){return[{NAME:"LANDUSE_LANDCOVER_HUC12",TYPE:"ChartPieComponent",TITLE:"Landuse-Landcover",DESCRIPTION:"",USE_PERCENT:"TRUE",GEOGRAPHY:"HUC12"},{NAME:"LANDUSE_LANDCOVER_CATCHMENT",TYPE:"ChartPieComponent",TITLE:"Landuse-Landcover",DESCRIPTION:"",USE_PERCENT:"TRUE",GEOGRAPHY:"Catchment"}]},render:function(){var e=!1;this.props.fetching_map&&(e=!0),this.props.fetching_chart&&(e=!0),this.props.fetching_tra&&(e=!0),this.props.fetching_geo&&(e=!0),this.props.fetching_menu&&(e=!0);var t=e,n=t?"ui active inverted fluid dimmer":"ui disabled inverted dimmer",r="",o=!1;this.props.searchMethod&&(r=this.props.searchMethod,o="location searched"===r||"clicked"===r||"tra clicked"===r||"chart clicked"===r||"chart hover"===r.substring(0,11));var a=!0;a=void 0===this.props.charts.chart_visibility?!0:this.props.charts.chart_visibility;var u=a?"show":"none",c=this.getChartType_Data("baseline"),p=this.getChartType_Data("uplift"),h=this.getChartType_Data("tra"),y=this.getChart_Filter(c[0]),v=[],g=[],_=[];v=this.getChart_data(c[0],"BASELINE"),g=this.getChart_data(p[0],"UPLIFT"),_=this.getChart_data(h[0],"TRA");var b=this.props.traPointInfo,T="",P="",x="",E="",O="",w="",C=[];if(P="Please Click on the Map or Search for a location to discover if it is in a TRA",O=m.createElement("div",null),x="ui icon info message",E=m.createElement("i",{className:"info circle icon"}),w="",b&&b.features){C=b.features.map(function(e){return e.properties.ID});var S=C.toString().split(",").join(", ");if(C.length>0){var M=C.length>1?"'s":"";O=m.createElement("i",{className:"big marker icon",style:{color:"#3388cc"}}),P="The point on the map is in a TRA. ",x="ui icon fluid success message",E=m.createElement("i",{className:"check circle icon"}),w=m.createElement("p",null,"This includes the TRA",M,": ",S)}else O=m.createElement("i",{className:"big marker icon",style:{color:"#3388cc"}}),x="ui icon fluid negative message",E=m.createElement("i",{className:"remove circle icon"}),P="The point on the map is NOT in a TRA",w=""}o||(P="Please Click on the Map or Search for a location to discover if it is in a TRA",x="ui icon fluid info message",E=m.createElement("i",{className:"info circle icon"}),w=""),T=m.createElement("div",{className:x},E,m.createElement("div",{className:"content"},m.createElement("div",{className:"header"},O,P),w));var A="Please Click on the Map, Search for a location, or Choose a HUC to get started.",k="No HUC's Selected yet.";y&&(A="Charts and Data for the HUC "+y.substring(0,8),k="The "+this.getLevel()+" "+y+" is currently highlighted.");var L=this.props.NLCDPointInfo?this.props.NLCDPointInfo:[];"menu"===r&&(L=[]);var I=[];L.features&&(I=L.features.length>0?L.features[0].properties.ID:[]);var R=this.props.ncld_chart_data?this.props.ncld_chart_data:[],D=this.props.ncld_chart_data_huc12?this.props.ncld_chart_data_huc12:[],N=this.props||this.props.catchment_chart_ar?this.props.catchment_chart_ar:[];"menu"===r&&(R=[],N=[]);var j="TRA's in this Cataloging Unit";y&&(j="TRA's in the Cataloging Unit "+y.substring(0,8));var U=window.innerWidth<d.OVERIDE_WIDTH?"sixteen":d.CHART_WIDTH,B=window.innerWidth<1260?"3.5em":"3em",F="Is it in a Targeted Resource Area (TRA)?",H=y?"none":"show",z=this.props.default_settings?this.props.default_settings.PADDING:0,G=this.props.default_settings?this.props.default_settings.LEFTOVER-z:0,W=this.props.default_settings?this.props.default_settings.CHARTWIDTH:0,V=this.props.default_settings?this.props.default_settings.CHARTAREAHEIGHT:0,q=(this.props.default_settings?this.props.default_settings.CHARTHEADER:0,this.props.default_settings?this.props.default_settings.CHARTSUBCOLUMN:0),Z=this.props.default_settings?this.props.default_settings.LEFTOVERINNER:0,K=y?V:0;return m.createElement("div",{id:"chartSubColumn",style:{height:G,width:W,padding:"0px",margin:"0px"}},y&&m.createElement("div",{id:"chartHeader",className:"ui sticky",style:{border:d.BOX_BORDER,padding:d.SPACING,marginBottom:d.SPACING,backgroundColor:d.BACKGROUND_COLOR_FG,borderRadius:d.BOX_BORDER_RADUIS}},m.createElement("div",{className:"content",style:{marginTop:d.SPACING}},m.createElement("div",{className:"ui header"},A))),m.createElement("div",{className:"ui basic segment",style:{display:H,height:Z,border:d.BOX_BORDER,padding:d.SPACING,marginBottom:"7px",backgroundColor:d.BACKGROUND_COLOR_FG,borderRadius:d.BOX_BORDER_RADUIS}},m.createElement("div",{className:"content",style:{marginTop:d.SPACING}},m.createElement("div",{className:"ui header"},A))),m.createElement("div",{style:{display:u,backgroundColor:d.BACKGROUND_COLOR_BG,width:W+21,paddingRight:d.SPACING,height:K,overflowY:"scroll",overflowX:"hidden"}},m.createElement("div",{className:"ui stackable internally celled "+U+" wide column vertically divided items ",style:{width:W,overflow:"visible"}},m.createElement("div",{className:n,style:{height:"100%"}},m.createElement("div",{className:"ui loader"})),y&&m.createElement("div",{className:"ui fluid accordion",style:{display:"block",backgroundColor:d.BACKGROUND_COLOR_FG,marginBottom:d.SPACING,border:d.BOX_BORDER,paddingTop:"0px",borderRadius:d.BOX_BORDER_RADUIS}},m.createElement("div",{className:"active title",style:{borderBottom:d.BOX_BORDER,marginTop:d.SPACING,paddingBottom:d.SPACING,height:B}},m.createElement("div",{className:"header",style:{fontSize:"1.28571429em",fontWeight:"700"}},m.createElement("i",{className:"dropdown left floated icon",style:{"float":"left"}}),m.createElement("span",{style:{"float":"left"}},F,m.createElement(f["default"],{helper_name:"TRA Point"})),m.createElement("span",{style:{"float":"left",fontSize:".75em!important",fontWeight:"500!important",color:"rgba(0,0,0,.6)"}},m.createElement("span",{className:"description"}),m.createElement("span",{className:"note"})))),m.createElement("div",{className:"active content"},m.createElement("div",{className:"meta"},m.createElement("span",{className:"description"})),m.createElement("div",{className:"description",style:{padding:d.SPACING,width:this.props.chart_width}},T))),y&&m.createElement(i["default"],{key:"tra",chart_width:q,title:"Targeted Resource Areas",title_description:"",note:j,chart_type:"tra",chart_data:_,chart_filter:y,get_LayerInfo_ByValue:this.props.get_LayerInfo_ByValue,get_LayerGeom_ByValue:this.props.get_LayerGeom_ByValue,change_geographyLevelActive:this.props.change_geographyLevelActive,set_search_method:this.props.set_search_method,tra_data:this.props.tra_data,get_tra_info:this.props.get_tra_info,charts:this.props.charts,update_ChartLevels:this.props.update_ChartLevels,update_ChartMatchId:this.props.update_ChartMatchId,get_keyColors:this.get_keyColors,top_label:"",bottom_label:"",level_label:"TRA",set_active_function:this.props.set_active_function,active_function:this.props.active_function,set_active_hover:this.props.set_active_hover}),y&&m.createElement(i["default"],{key:"baseline",chart_width:q,title:"BASELINE",title_description:"",note:"The taller the bar chart the more degraded",chart_type:"baseline",chart_data:v,chart_filter:y,get_LayerInfo_ByValue:this.props.get_LayerInfo_ByValue,get_LayerGeom_ByValue:this.props.get_LayerGeom_ByValue,change_geographyLevelActive:this.props.change_geographyLevelActive,set_search_method:this.props.set_search_method,tra_data:this.props.tra_data,get_tra_info:this.props.get_tra_info,charts:this.props.charts,update_ChartLevels:this.props.update_ChartLevels,update_ChartMatchId:this.props.update_ChartMatchId,get_keyColors:this.get_keyColors,top_label:"Most Degraded",bottom_label:"Least Degraded",level_label:this.getLevel(),set_active_function:this.props.set_active_function,active_function:this.props.active_function,set_active_hover:this.props.set_active_hover}),y&&m.createElement(i["default"],{key:"uplift",chart_width:q,title:"UPLIFT",title_description:"",note:"The taller the bar chart the more potential for improvement.",chart_type:"uplift",chart_data:g,chart_filter:y,get_LayerInfo_ByValue:this.props.get_LayerInfo_ByValue,
  get_LayerGeom_ByValue:this.props.get_LayerGeom_ByValue,change_geographyLevelActive:this.props.change_geographyLevelActive,set_search_method:this.props.set_search_method,tra_data:this.props.tra_data,get_tra_info:this.props.get_tra_info,charts:this.props.charts,update_ChartLevels:this.props.update_ChartLevels,update_ChartMatchId:this.props.update_ChartMatchId,get_keyColors:this.get_keyColors,top_label:"More Potential",bottom_label:"Less Potential",level_label:this.getLevel(),set_active_function:this.props.set_active_function,active_function:this.props.active_function,set_active_hover:this.props.set_active_hover}),y&&m.createElement(s["default"],{chart_width:q,title:"Landuse-Landcover (HUC12)",chart_type:"Landuse-Landcover HUC12",title_description:"",note:"For Catchment: "+I,chart_data:D,use_percent:!0}),y&&m.createElement(s["default"],{chart_width:q,title:"Landuse-Landcover (Catchment)",chart_type:"Landuse-Landcover Catchment",title_description:"",note:"For Catchment: "+I,chart_data:R,use_percent:!0}),y&&N&&m.createElement(l["default"],{chart_width:q,title:"Baseline (Catchment)",chart_type:"Baseline Catchment",title_description:"",note:"For Catchment: "+I,chart_data:N,searchMethod:r}))))}}));e.exports=v},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function i(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}var a,s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol?"symbol":typeof e},u="function"==typeof Symbol&&"symbol"===s(Symbol.iterator)?function(e){return"undefined"==typeof e?"undefined":s(e)}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol?"symbol":"undefined"==typeof e?"undefined":s(e)},l=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},c=n(195),p=r(c),f=n(51),h=r(f),d=n(11),y=n(20),m=n(1),v=m.PropTypes,g=n(349),_=m.createClass((a={displayName:"ChartRowWrapper",propTypes:{title:v.string},getDefaultProps:function(){return{title:"Title"}},handle_chart_level_click:function(e,t,n,r,o,a,s){var u=this.state.chart_buttons,l=this.state.chart_bread_crumbs?this.state.chart_bread_crumbs:[],c=void 0;this.setState({direction:"crumb"===o?"up":o});var p=this.get_current_function(u,a),f=this.get_previous_function(u,a),h=this.get_last_function(u,n);switch(o){case"up":this.props.update_ChartLevels(t,n,r),c=f.length>1?l.filter(function(e){f.map(function(t){return e!=t.properties.chart_level_label})}):l.filter(function(e){return e!=f[0].properties.chart_level_label});break;case"down":this.props.update_ChartLevels(t,n,r),c=[].concat(i(l),[h]);break;case"crumb":this.props.update_ChartLevels(t,n,r);var d=p[0].properties.chart_level_label,y=l.indexOf(d);c=l.slice(0,y);break;default:c=[].concat(i(l))}var m=2===t&&1===n;m&&(c=[]),this.setState({chart_bread_crumbs:c})},get_chart_levels:function(){var e=this.props.charts.chart_levels.levels.features,t=this.props.charts.chart_levels.chart_limits,n=this.props.chart_type,r=t.filter(function(e){return e.chart_type.toUpperCase()===n.toUpperCase()}),o=r[0]?r[0].current_chart_level:2,i=r[0]?r[0].current_chart_matchid:1,a=e.filter(function(e){return e.properties.chart_type.toUpperCase()===n.toUpperCase()&&e.properties.chart_level===o&&e.properties.chart_matchid===i});if(0===a.length){e.filter(function(e){return e.properties.chart_type.toUpperCase()===n.toUpperCase()&&e.properties.chart_level===o&&e.properties.chart_matchid===i})}return a},get_chart_Previous:function(){var e=(this.props.charts.chart_levels.levels.features,this.props.charts.chart_levels.chart_limits),t=this.props.chart_type,n=e.filter(function(e){return e.chart_type.toUpperCase()===t.toUpperCase()}),r=n[0]?n[0].last_chart_level:2,o=n[0]?n[0].last_chart_matchid:1,i=n[0]?n[0].last_chart_label:"  ",a=n[0]?n[0].current_chart_level:null,s=n[0]?n[0].current_chart_matchid:null;return{last_chart_level:r,last_chart_matchid:o,last_chart_label:i,current_chart_level:a,current_chart_matchid:s}},check_next_level_valid:function(){var e=this.props.charts.chart_levels.chart_limits,t=this.props.chart_type,n=e.filter(function(e){return e.chart_type.toUpperCase()===t.toUpperCase()}),r=n[0]?n[0].is_next_level:!0;return r},sort_byid:function(e){var t=e.sort(function(e,t){return Number(e.properties.chart_id)>Number(t.properties.chart_id)?-1:Number(e.properties.chart_id)<Number(t.properties.chart_id)?1:0});return t},check_dupes:function(e,t){var n=!1,r=0,o=0;return e.map(function(e){o===t&&(r+=1,r>1&&(n=!0)),o=e.properties?Number(e.properties.chart_id):Number(e.chart_id)}),n},get_initial_dupe:function(){var e=this,t=this.get_chart_levels(),n=(this.get_chart_Previous(),this.check_next_level_valid(),this.props.chart_type,this.sort_byid(t)),r=this.update_ChartLevels(n),o=0;r.map(function(t){var n=e.check_dupes(r,t.chart_id);if(n?o+=1:o=0,n&&1===o){e.set_initial(t.chart_level_label);var i={chart_id:t.chart_id,active_name:t.chart_level_label,chart_type:e.props.chart_type};return e.props.set_active_function(t.chart_id,t.chart_level_label,e.props.chart_type),i}})},get_dupes:function(e,t){var n=this,r=0,o=this.props.chart_type,i=e.map(function(e){if(Number(e.chart_id)===Number(t)){var i=n.props.get_keyColors(e.chart_level_label),a={backgroundColor:i[1]+"!important",color:"rgba(0,0,0,.6)"};return m.createElement("div",{key:r++,className:"item function "+o.toUpperCase(),style:a},m.createElement("span",{className:"text",onClick:n.handleChange.bind(null,e.chart_id,e.chart_level_label),style:{color:"rgba(0,0,0,.6)"}},e.chart_level_label))}});return i},update_ChartLevels:function(e){var t=this,n=[];return e.map(function(r){var o=t.check_dupes(e,Number(r.properties.chart_id));n.push(l({},r.properties,{has_dupes:o}))}),n},handleChange:function(e,t,n){this.props.set_active_function(e,t,this.props.chart_type)},componentDidMount:function(){var e=this.props.chart_type;$(".ui.dropdown.button.function."+e.toUpperCase()).dropdown({allowCategorySelection:!0}),this.get_initial_dupe(),$(".help.circle.outline.icon."+e).popup(),$(".level.down.icon").popup({position:"top center",content:"Drill Down into function"}),$(".level.up.flipped.icon").popup({position:"top center",content:"Drill up into function"})},componentDidUpdate:function(e,t){var n=this.props.chart_type,r=$(".ui.dropdown.button.function."+n.toUpperCase()).dropdown("get text"),o=void 0;""===r&&(o=this.props.active_function.filter(function(e){return e.chart_type===n}),r=o[0].active_name),$(".level.down.icon").popup({position:"top center",content:"Drill Down into function"}),$(".level.up.flipped.icon").popup({position:"top center",content:"Drill up into function"});var i=this.props.get_keyColors(r);'"background-color": "'+i[1]+'"!important","margin":"0px!important","height":"36px","color":"rgba(0,0,0,.6)"';$(".ui.dropdown.button.function."+n.toUpperCase()).css("background-color",i[1]),$(".ui.left.item.dropdown.level.function."+n.toUpperCase()).css("background-color",i[0]),$(".help.circle.icon.function"+n.toUpperCase()).attr("data-title",r);var a=(0,y.get_helper)(r);$(".help.circle.icon.function"+n.toUpperCase()).attr("data-content",a),$(".ui.dropdown.button.function."+n.toUpperCase()).dropdown("set text",r),$(".ui.dropdown.button.function."+n.toUpperCase()).dropdown("set value",r)},set_initial:function(e){var t=this.props.chart_type;$(".ui.dropdown.button.function."+t.toUpperCase()).dropdown("set text",e),$(".ui.dropdown.button.function."+t.toUpperCase()).dropdown("set value",e)},componentWillMount:function(){var e=this.props.chart_type,t=this.props.chart_buttons;if(t){var n=t.features.filter(function(t){return t.properties.chart_type.toUpperCase()===e.toUpperCase()});return void this.setState({chart_buttons:n})}this.setState({chart_buttons:null})},get_chart_level_:function(e,t){if(e){var n=e.filter(function(e){return e.properties.chart_matchid===t});return n.length>0?n[0].properties.chart_level:null}return null},is_next_valid:function(e,t){if(e){var n=e.filter(function(e){return e.properties.chart_matchid===t});return n.length>0}return!1},get_last_id:function(e,t){if(e){var n=e.filter(function(e){return e.properties.chart_id===t});return n.length>0?n[0].properties.chart_matchid:null}return null},get_last_function:function(e,t){var n=this.props.chart_type;if(e){var r=e.filter(function(e){return e.properties.chart_id===t}),o="";return o=r.length>1?$(".ui.dropdown.button.function."+n.toUpperCase()).dropdown("get text"):r[0].properties.chart_level_label,r.length>0?o:null}return null},get_current_function:function(e,t){this.props.chart_type;if(e){var n=e.filter(function(e){return e.properties.chart_id===t});return n.length>0?n:null}return null}},o(a,"get_current_function",function(e,t){this.props.chart_type;if(e){var n=e.filter(function(e){return e.properties.chart_id===t});return n.length>0?n:null}return null}),o(a,"is_at_top",function(e,t){this.props.chart_type;if(e){var n=e.filter(function(e){return e.properties.chart_id===t});return 2===n[0].properties.chart_level&&1==n[0].properties.chart_matchid}return!1}),o(a,"get_previous_function",function(e,t){this.props.chart_type;if(e){var n=function(){var n=e.filter(function(e){return e.properties.chart_id===t}),r=n.length>0?n[0].properties.chart_matchid:null,o=e.filter(function(e){return e.properties.chart_id===r});return{v:o.length>0?o:null}}();if("object"===("undefined"==typeof n?"undefined":u(n)))return n.v}return null}),o(a,"get_next_function",function(e,t){if(e){var n=e.filter(function(e){return e.properties.chart_matchid===t});return n.length>0?n:null}return!1}),o(a,"get_ids_from_label",function(e){var t=this.state.chart_buttons;if(t){var n=t.filter(function(t){return t.properties.chart_level_label===e}),r=n.length>0?n[0].properties.chart_id:null,o=n.length>0?n[0].properties.chart_matchid:null,i=n.length>0?n[0].properties.chart_level:null,a=n.length>0?n[0].properties.chart_description:null;return[r,o,i,a]}return null}),o(a,"get_breadcrumbs",function(e){var t=this,n=this.props.chart_type,r=0;return e?e.map(function(e){var o=t.props.get_keyColors(e),i=t.get_ids_from_label(e);return m.createElement("div",{className:"ui small label breadcrumbs",key:"breadcrumbs-"+r++,style:{backgroundColor:o[1],cursor:"pointer"},onClick:t.handle_chart_level_click.bind(null,t,i[2],i[1],n,"crumb",i[0])},e,m.createElement(h["default"],{helper_name:e}),m.createElement("i",{className:"delete icon"}))}):void 0}),o(a,"get_drilldown_breadcrombs",function(e){var t=this.props.chart_type;return e?m.createElement("div",{className:"ui small label",key:"breadcrumbs-message-top",style:{cursor:"pointer"}},"Top Function"):m.createElement("div",{className:"ui small label",key:"breadcrumbs-message-top",style:{cursor:"pointer"},onClick:this.handle_chart_level_click.bind(null,this,2,1,t,"crumb",3)},"Top Function")}),o(a,"render",function(){var e=this.props.chart_data,t=this.props.chart_type,n=this.state.chart_buttons,r=this.get_chart_levels(),o=this.get_chart_Previous(),i=this.sort_byid(r),a=this.update_ChartLevels(i),s=2===o.current_chart_level&&1===o.current_chart_matchid,u=o.last_chart_level,l=o.last_chart_matchid,c=this.props.chart_type,f="Click a function to drill down ",v=(""===o.last_chart_label.trim()?"Total":o.last_chart_label,window.innerWidth<1260?"3.5em":"3em"),_=m.createElement("span",null," "),b=0,T=!1,P=this.state.direction?this.state.direction:"down";P=s?"down":P;var x=this.get_breadcrumbs(this.state.chart_bread_crumbs),E=this.state.chart_bread_crumbs,O=0,w=this.get_drilldown_breadcrombs(s);E&&(O=E.length);var C=void 0;this.props.active_function&&(C=this.props.active_function.filter(function(e){return e.chart_type===t}));var S=(0,y.getFriendlyName_NextLevel)(this.props.level_label),M=e.length<1?"No "+this.props.title+" found at this location!":this.props.note,A=e.length<1?"Click or search to try again":"";return m.createElement("div",{className:"ui fluid accordion",style:{display:"block",backgroundColor:d.BACKGROUND_COLOR_FG,marginBottom:d.SPACING,border:d.BOX_BORDER,paddingTop:"0px",borderRadius:d.BOX_BORDER_RADUIS}},m.createElement("div",{className:"active title",style:{borderBottom:d.BOX_BORDER,marginTop:d.SPACING,paddingBottom:d.SPACING,height:v}},m.createElement("div",{className:"header",style:{fontSize:"1.28571429em",fontWeight:"700"}},m.createElement("i",{className:"dropdown left floated icon",style:{"float":"left"}}),m.createElement("span",{style:{"float":"left"}},this.props.title," (",S,")",m.createElement(h["default"],{helper_name:t})),m.createElement("span",{style:{"float":"left",fontSize:".75em!important",fontWeight:"500!important",color:"rgba(0,0,0,.6)"}},m.createElement("span",{className:"description"},this.props.title_description),m.createElement("span",{className:"note"},_,"- ",this.props.note)))),m.createElement("div",{className:"active content"},m.createElement("div",{className:"meta"},m.createElement("span",{className:"description"},this.props.title_description)),m.createElement("div",{className:"description",style:{padding:d.SPACING,width:this.props.chart_width}},e.length<1&&m.createElement(p["default"],{note:M,sub_header:A}),e.length>0&&m.createElement("span",null,m.createElement("div",{className:"ui bottom attached basic compact left aligned segment",style:{border:"0px",margin:"0px",padding:"7px"}},m.createElement("div",{className:"ui labels",key:"bc"},w,x),m.createElement("h5",{className:"ui header",style:{marginTop:"10px"}},f)),m.createElement("div",{className:"ui bottom attached basic compact left aligned segment",style:{border:"0px",margin:"0px",padding:"0px"}},m.createElement("div",{className:"ui text stackable mini menu",style:{cursor:"pointer"}},a&&a.map(function(e){var t=(Number(e.chart_id)===b,e.has_dupes),r=e.chart_level_label,o=e.chart_level+1,i=e.chart_id,p=e.chart_type,f=this.props.get_keyColors(r),y={backgroundColor:f[1],margin:"0px!important",height:"36px",color:"rgba(0,0,0,.5)",fontWeight:"700",minWidth:"100px!important",maxWidth:"250px!important"},v={backgroundColor:f[0],margin:"0px!important",height:"36px",width:"36px!important",color:"rgba(0,0,0,.6)",borderBottomRightRadius:d.BOX_BORDER_RADUIS,borderTopRightRadius:d.BOX_BORDER_RADUIS},g={backgroundColor:f[0],margin:"0px!important",height:"36px",width:"36px!important",color:"rgba(0,0,0,.6)",borderBottomLeftRadius:d.BOX_BORDER_RADUIS,borderTopLeftRadius:d.BOX_BORDER_RADUIS,borderBottomRightRadius:"0px",borderTopRightRadius:"0px"},_=this.is_next_valid(n,e.chart_id),x=(this.get_last_id(n,e.chart_matchid),t&&!T);b=Number(e.chart_id),T=t;var E=0,O=m.createElement("span",null),w=m.createElement("span",null),C=m.createElement("span",null);return x&&(w=this.get_dupes(a,e.chart_id),O=m.createElement("div",{className:"ui left compact item",key:r+"-"+E++},!s&&m.createElement("div",{className:"ui dropdown middle aligned center aligned level function "+p,style:g,onClick:this.handle_chart_level_click.bind(null,this,u,l,c,"up",e.chart_id)},m.createElement("i",{className:"level up flipped icon function "+p,style:{hieght:"36px"}})),m.createElement("div",{key:r+"-"+E++,className:"ui left dropdown compact button item function "+p,style:y},m.createElement("span",{className:"text",key:"start"}),m.createElement("i",{className:"dropdown icon",key:r+"-"+E++}),m.createElement("div",{className:"menu",key:r+"-"+E++},w),m.createElement(h["default"],{class_name_text:"function "+p,helper_name:e.chart_level_label})),_&&m.createElement("div",{className:"ui left item dropdown middle aligned center aligned level function "+p,style:v,onClick:this.handle_chart_level_click.bind(null,this,o,i,p,"down",e.chart_id),key:r+"-"+E++},m.createElement("i",{className:"level down right floated icon function "+p,style:{hieght:"36px"},key:r+"-"+E++})))),t||(C=m.createElement("div",{className:"ui left item",key:r+"-"+E++},!s&&m.createElement("div",{className:"ui button middle aligned center aligned level function "+p,style:g,key:r+"-"+E++,onClick:this.handle_chart_level_click.bind(null,this,u,l,c,"up",e.chart_id)},m.createElement("i",{className:"level up flipped icon function "+p,style:{hieght:"36px"},key:r+"-"+E++})),!_&&m.createElement("div",{className:"ui left item button function "+p,style:y,key:r+"-"+E++,onClick:this.handle_chart_level_click.bind(null,this,u,l,c,"up",e.chart_id)},r,m.createElement(h["default"],{helper_name:r})),_&&"down"===P&&m.createElement("div",{className:"ui left item button function "+p,style:y,key:r+"-"+E++,onClick:this.handle_chart_level_click.bind(null,this,o,i,p,"down",e.chart_id)},r,m.createElement(h["default"],{helper_name:r})),_&&"up"===P&&m.createElement("div",{className:"ui left item button function "+p,style:y,key:r+"-"+E++,onClick:this.handle_chart_level_click.bind(null,this,u,l,p,"up",e.chart_id)},r,m.createElement(h["default"],{helper_name:r})),_&&m.createElement("div",{className:"ui left item button middle aligned center aligned level function "+p,style:v,key:r+"-"+E++,onClick:this.handle_chart_level_click.bind(null,this,o,i,p,"down",e.chart_id)},m.createElement("i",{className:"level down right floated icon function"+p,style:{hieght:"36px"},key:r+"-"+E++})))),m.createElement("span",{key:r+"-"+E++},O,C)}.bind(this)))),m.createElement(g,{key:this.props.title,chart_width:this.props.chart_width,chart_type:this.props.chart_type,chart_data:this.props.chart_data,chart_filter:this.props.chart_filter,get_LayerInfo_ByValue:this.props.get_LayerInfo_ByValue,get_LayerGeom_ByValue:this.props.get_LayerGeom_ByValue,change_geographyLevelActive:this.props.change_geographyLevelActive,set_search_method:this.props.set_search_method,tra_data:this.props.tra_data,get_tra_info:this.props.get_tra_info,charts:this.props.charts,ChartLevels:r,get_keyColors:this.props.get_keyColors,top_label:this.props.top_label,bottom_label:this.props.bottom_label,level_label:this.props.level_label,function_limits:C,set_active_hover:this.props.set_active_hover})))))}),a));e.exports=_},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}var o=n(37),i=n(51),a=r(i),s=n(11),u=n(1),l=(u.PropTypes,n(358)),c=u.createClass({displayName:"ChartSimpleBar",componentDidMount:function(){$(".ui.accordion").accordion()},get_keyColors:function(e){var t="#5475A8";switch(e){case"Water Quality":t="#67e48f";break;case"Hydrology":t="#759ac1";break;case"Habitat":t="#fecc9a";break;default:t="#67e48f"}return t},get_bars:function(e){var t=this,n=0,r=[];return e&&Object.keys(e).forEach(function(e){"NAME"!=e.toUpperCase()&&r.push(e)}),r.map(function(e){return u.createElement(o.Bar,{dataKey:e,key:n++,fill:t.get_keyColors(e)})})},render:function(){var e=this.props.chart_data,t=this.get_bars(e[0]),n=e[0],r="menu"===this.props.searchMethod?0:Object.keys(n).length,i=2>r?"No "+this.props.title+" found at this location!":this.props.note,c=e.length<1?"Click or search to try again":"",p=u.createElement("span",null," ");return u.createElement("div",{className:"ui fluid accordion",style:{display:"block",backgroundColor:s.BACKGROUND_COLOR_FG,marginBottom:s.SPACING,border:s.BOX_BORDER,paddingTop:"0px",borderRadius:s.BOX_BORDER_RADUIS}},u.createElement("div",{className:"active title",style:{borderBottom:s.BOX_BORDER,marginTop:s.SPACING,paddingBottom:s.SPACING,height:"3em"}},u.createElement("div",{className:"header",style:{fontSize:"1.28571429em",fontWeight:"700"}},u.createElement("i",{className:"dropdown left floated icon",style:{"float":"left"}}),u.createElement("span",{style:{"float":"left"}},this.props.title,u.createElement(a["default"],{helper_name:this.props.chart_type})),u.createElement("span",{style:{"float":"left",fontSize:".75em!important",fontWeight:"500!important",color:"rgba(0,0,0,.6)"}},u.createElement("span",{className:"description"},this.props.title_description),u.createElement("span",{className:"note"},p,"- ",i)))),u.createElement("div",{className:"active content"},u.createElement("div",{className:"description",style:{padding:s.SPACING,width:this.props.chart_width}},2>r&&u.createElement("div",{className:"ui icon negative message"},u.createElement("i",{className:"remove circle icon"}),u.createElement("div",{className:"content"},u.createElement("div",{className:"header"},i),c)),r>1&&u.createElement("div",{id:"simple-bar"},u.createElement(o.BarChart,{width:this.props.chart_width,height:200,data:e,margin:{top:5,right:5,left:5,bottom:5}},u.createElement(o.XAxis,{dataKey:"name",hide:!1,tick:!1,tickLine:!1,axisLine:!1}),u.createElement(o.YAxis,{hide:!1,tick:!1,tickLine:!1,axisLine:!1}),u.createElement(o.Tooltip,{content:u.createElement(l,{get_keyColors:this.get_keyColors})}),u.createElement(o.Legend,null),t)))))}});e.exports=c},function(e,t,n){"use strict";var r=n(1),o=(r.PropTypes,r.createClass({displayName:"ChartTRA",handleStatClick:function(e,t,n,r){var o=t;if(!this.state||o!==this.state.tra_filter){var i=this.props.chart_type;this.props.change_geographyLevelActive(o),"TRA"===i.toUpperCase()&&(this.setState({tra_filter:o}),this.props.get_tra_info(o)),this.props.set_search_method("tra clicked")}},get_Colors:function(e){var t="#5475A8";switch(e){case"Water Quality":t="#67e48f";break;case"Hydrology":t="#759ac1";break;case"Habitat":t="#fecc9a";break;default:t="#67e48f"}return t},get_tra_outline:function(e){var t={cursor:"pointer",boxShadow:"0 1px 3px 0 rgba(212, 212, 213, 1),0 0 0 1px rgba(212, 212, 213, 1)",WebkitBoxShadow:"0 1px 3px 0 rgba(212, 212, 213, 1),0 0 0 1px rgba(212, 212, 213, 1)",MozBoxShadow:"0 1px 3px 0 rgba(212, 212, 213, 1),0 0 0 1px rgba(212, 212, 213, 1)",margin:".4em .4em"};return this.state&&e===this.state.tra_filter&&(t={cursor:"pointer",boxShadow:"0 1px 4px 0 rgba(255, 0, 0, 0.4),0 0 0 2px rgba(255, 0, 0, 0.4)",WebkitBoxShadow:"0 4px 4px 0 rgba(255, 0, 0, 0.4),0 0 0 2px rgba(255, 0, 0, 0.4)",MozBoxShadow:"0 4px 4px 0 rgba(255, 0, 0, 0.4),0 0 0 2px rgba(255, 0, 0, 0.4)",margin:".4em .4em"}),t},get_tras_cards:function(e){var t=this,n=0;return r.createElement("div",{key:n++,className:"ui cards",style:{paddingLeft:10}},e.map(function(e){return r.createElement("div",{key:e.ID,className:"card",onMouseEnter:t.handleStatClick.bind(null,t,e.ID),onClick:t.handleStatClick.bind(null,t,e.ID),onMouseOver:t.handleStatClick.bind(null,t,e.ID),style:t.get_tra_outline(e.ID)},r.createElement("div",{className:"content center aligned"},r.createElement("div",{className:"header"},e.ID),r.createElement("div",{className:"header"},"is a ",r.createElement("span",{style:{color:t.get_Colors(e.NAME),cursor:"pointer"}},e.NAME)," TRA"),r.createElement("div",{className:"description"},r.createElement("div",{className:"ui mini statistic",style:{cursor:"pointer"}},r.createElement("div",{className:"label",style:{cursor:"pointer"}},"with a score of"),r.createElement("div",{className:"value",style:{color:t.get_Colors(e.NAME),cursor:"pointer"}},Number(e.VALUE.substring(0,5)))))))}))},render:function(){var e=this.props.chart_data,t=[],n=[];if(e&&e[0].chart_features){var o=e[0].chart_features,i=o.filter(function(e){return 1===e.properties.chart_matchid&&2===e.properties.chart_level&&e.properties.chart_level_label===e.properties.geography_label.replace("TRA ","")});t=i.map(function(e){return{ID:e.properties.ID,NAME:e.properties.chart_level_label,VALUE:e.properties.chart_value,TYPE:e.properties.geography_label}}),n=t.sort(function(e,t){return e.VALUE>t.VALUE?-1:e.VALUE<t.VALUE?1:0})}return r.createElement("div",{className:"item",style:{display:"block"}},r.createElement("div",{className:"content"},r.createElement("div",{className:"header"},r.createElement("i",{className:"left floated dropdown icon"}),this.props.title),r.createElement("div",{className:"meta"},r.createElement("span",{className:"note"},this.props.note)),r.createElement("div",{className:"description",style:{paddingTop:"5px"}},this.get_tras_cards(n))))}}));e.exports=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(5);t["default"]=r.Control.extend({options:{className:"",onOff:"",handleOff:function(){}},onAdd:function(e){return r.DomUtil.create("div",this.options.className)},onRemove:function(e){return e.off(this.options.onOff,this.options.handleOff,this),this}})},function(e,t,n){"use strict";function r(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}var o=(n(37),n(24)),i=n(20),a=n(1),s=a.PropTypes,u={width:"100%",margin:0,lineHeight:24,border:"1px solid #f5f5f5",backgroundColor:"rgba(255, 255, 255, 0.95)",padding:10},l={margin:"0",color:"#666",fontWeight:"700"},c=a.createClass({displayName:"CustomToolTipBarCharts",propTypes:{type:s.string,payload:s.array,label:s.string},getInitialState:function(){return{counter:0}},incrementCounter:function(){this.setState({counter:this.state.counter+1})},get_layer_id:function(e){switch(e){case"baseline":return o.HUC12_MAP_FEATUREID;case"uplift":return o.HUC12_MAP_FEATUREID;case"tra":return o.TRA_FEATUREID;default:return o.HUC12_MAP_FEATUREID}},update_hover:function(e){var t=this.props.chart_type;this.props.set_search_method("chart hover "+t);var n=(0,i.getAGOGeographyLabel_NextLevel)(this.props.level_label);"TRA"===t.toUpperCase()&&(n="tra");var r=Date.now();e.value&&this.props.set_active_hover(e.value,n,r)},componentWillUnmount:function(){var e=this.props.chart_type,t=(0,i.getAGOGeographyLabel_NextLevel)(this.props.level_label);"TRA"===e.toUpperCase()&&(t="tra"),this.props.set_active_hover(null,t)},componentWillUpdate:function(e,t){var n=e.active;if(n){var r=e.label,o=this.props.label;if(r!=o||this.state.counter<1){var i=this,a=this.get_layer_id(e.chart_type),s={value:e.label,chart_type:e.chart_type,layer_id:a};e.chart_type;i.update_hover(s)}}var u=this,l=e.chart_type,c=$("#bar-chart-"+l).find(".recharts-rectangle.recharts-bar-rectangle"),p=$("#bar-chart-"+l).find(".recharts-bar-cursor"),f=$("#bar-chart-"+l).find(".recharts-wrapper");$("#bar-chart-"+l).find(".recharts-layer.recharts-bar-graphical"),$("#bar-chart-"+l).find(".recharts-tooltip-wrapper");$(c).unbind("click"),$(p).unbind("click"),$(f).unbind("click"),$(p).on("click",function(){u.props.handleClick(u,{name:e.label})}),$(f).on("click",function(){u.props.handleClick(u,{name:e.label})}),$(c).on("click",function(){u.props.handleClick(u,{name:e.label})}),this.state.counter<1&&this.incrementCounter()},render:function(){var e=this,t=this.props.active;if(t){var n=this.props,o=n.payload,s=n.label,c=this.props.chart_type,p=(this.get_layer_id(this.props.chart_type),[].concat(r(o)).reverse()),f=p.map(function(t){var n=e.props.get_keyColors(t.name),r={margin:"0",color:n[1]},o={fontWeight:"800"},i=t.value?t.value.toString().substring(0,5):"0",s=t.name+": ";e.props.function_limits[0].active_name;return(0!==t.value&&t.value||"TRA"!==e.props.chart_type.toUpperCase())&&0!==t.value&&t.value?a.createElement("p",{key:t.name,style:r},s,a.createElement("span",{style:o},i)):null}),h=!1;f.map(function(e){e&&(h=!0)});var d=s.toString().trim(),y=$("#bar-chart-"+c).find(".recharts-bar-cursor");if(!d||!h)return $(y).css({fill:"none"}),a.createElement("div",{key:d+"blanktip"});$(y).css({fill:"#f1f1f1"});var m=(0,i.getFriendlyName_NextLevel)(this.props.level_label);return a.createElement("div",{key:d+"tooltip",style:u},a.createElement("p",{style:l},m,": ",""+d),f)}return null}});e.exports=c},function(e,t,n){"use strict";var r=(n(37),n(1)),o=r.PropTypes,i={width:"100%",margin:0,lineHeight:24,border:"1px solid #f5f5f5",backgroundColor:"rgba(255, 255, 255, 0.95)",padding:10},a={margin:"0",color:"#666",fontWeight:"700"},s=r.createClass({displayName:"CustomToolTipSimpleBarCharts",propTypes:{type:o.string,payload:o.array,label:o.string},componentWillMount:function(){var e=$("#simple-bar").find(".recharts-bar-cursor");$(e).css({fill:"none"})},render:function(){var e=this,t=this.props.active;if(t){var n=this.props,o=n.payload,s=n.label,u=o.map(function(t){var n=e.props.get_keyColors(t.name),o={margin:"0",color:n},i={fontWeight:"800"},a=t.value?t.value.toString().substring(0,5):"N/A",s=t.name+": ";return r.createElement("p",{key:t.name,style:o},s,r.createElement("span",{style:i},a))}),l=$("#simple-bar").find(".recharts-bar-cursor");if($(l).css({fill:"none"}),"1"===s||"2"===s)return $(l).css({fill:"none"}),r.createElement("div",{key:s+"blanktip"});$(l).css({fill:"#f1f1f1"});var c=s.toString();return r.createElement("div",{key:c+"tooltip",style:i},r.createElement("p",{style:a},"Cathcment: ",""+c),u)}return null}});e.exports=s},function(e,t,n){"use strict";var r=(n(37),n(24),n(1)),o=(r.PropTypes,r.createClass({displayName:"CustomizedLabelX",render:function(){var e=this.props,t=(e.x,e.y),n=e.stroke,o=(e.payload,e.height,e.width),i=(this.props.viewBox.width/2,this.props.level_label+"'s"),a=15;return r.createElement("text",{x:o/2,y:t,dy:a,fill:n,fontSize:10,textAnchor:"middle"},i)}}));e.exports=o},function(e,t,n){"use strict";var r=(n(37),n(24),n(1)),o=(r.PropTypes,r.createClass({displayName:"CustomizedLabelY",render:function(){var e=this.props,t=e.x,n=e.y,o=e.stroke,i=(e.payload,e.width,e.height),a=(this.props.level_label+"'s",45),s=20;this.props.top_label.toString().split(" ");return r.createElement("g",null,r.createElement("text",{x:t,y:n-10,dy:s,dx:a,fill:o,fontSize:10,textAnchor:"end"},r.createElement("tspan",null,this.props.top_label)),r.createElement("text",{x:t,y:i,dy:s,dx:a,fill:o,fontSize:10,textAnchor:"end"},r.createElement("tspan",null,this.props.bottom_label)))}}));e.exports=o},function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==("undefined"==typeof t?"undefined":a(t))&&"function"!=typeof t?e:t}function i(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+("undefined"==typeof t?"undefined":a(t)));e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol?"symbol":typeof e};Object.defineProperty(t,"__esModule",{value:!0});var s=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),u=function f(e,t,n){null===e&&(e=Function.prototype);var r=Object.getOwnPropertyDescriptor(e,t);if(void 0===r){var o=Object.getPrototypeOf(e);return null===o?void 0:f(o,t,n)}if("value"in r)return r.value;var i=r.get;if(void 0!==i)return i.call(n)},l=n(73),c=(n(1),n(5),n(59),n(59)),p=function(e){function t(){return r(this,t),o(this,Object.getPrototypeOf(t).apply(this,arguments))}return i(t,e),s(t,[{key:"componentWillMount",value:function(){u(Object.getPrototypeOf(t.prototype),"componentWillMount",this).call(this);var e=this.props.layer;"Imagery"===e&&(this.leafletElement=c.basemapLayer("ImageryLabels"),this.props.setMapLayers({name:"ImageryLabels",layer:this.leafletElement}),this.leafletElement=c.basemapLayer("ImageryTransportation"),this.props.setMapLayers({name:"ImageryTransportation",layer:this.leafletElement})),this.leafletElement=c.basemapLayer(e);var n=this.props.name;this.props.setMapLayers({name:n,layer:this.leafletElement})}}]),t}(l.BaseTileLayer);t["default"]=p},function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==("undefined"==typeof t?"undefined":a(t))&&"function"!=typeof t?e:t;
  }function i(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+("undefined"==typeof t?"undefined":a(t)));e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol?"symbol":typeof e};Object.defineProperty(t,"__esModule",{value:!0});var s=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),u=function f(e,t,n){null===e&&(e=Function.prototype);var r=Object.getOwnPropertyDescriptor(e,t);if(void 0===r){var o=Object.getPrototypeOf(e);return null===o?void 0:f(o,t,n)}if("value"in r)return r.value;var i=r.get;if(void 0!==i)return i.call(n)},l=n(73),c=(n(1),n(5),n(59),n(59)),p=function(e){function t(){return r(this,t),o(this,Object.getPrototypeOf(t).apply(this,arguments))}return i(t,e),s(t,[{key:"componentWillMount",value:function(){u(Object.getPrototypeOf(t.prototype),"componentWillMount",this).call(this);var e=this.props,n=e.url,r=e.layerStyle,o=(e.zoom,e.max_zoom),i=e.min_zoom,a=(e.center,{});r&&(a=JSON.parse(r));var s=19;o&&(s=o);var l=0;i&&(l=i),this.leafletElement=c.featureLayer({url:n,style:function(){return a},maxZoom:s,minZoom:l});var p=this.props.name;this.props.setMapLayers({name:p,layer:this.leafletElement})}}]),t}(l.BaseTileLayer);t["default"]=p},function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==("undefined"==typeof t?"undefined":a(t))&&"function"!=typeof t?e:t}function i(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+("undefined"==typeof t?"undefined":a(t)));e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol?"symbol":typeof e};Object.defineProperty(t,"__esModule",{value:!0});var s=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),u=function h(e,t,n){null===e&&(e=Function.prototype);var r=Object.getOwnPropertyDescriptor(e,t);if(void 0===r){var o=Object.getPrototypeOf(e);return null===o?void 0:h(o,t,n)}if("value"in r)return r.value;var i=r.get;if(void 0!==i)return i.call(n)},l=n(73),c=(n(1),n(5),n(59),n(20)),p=n(59),f=function(e){function t(){return r(this,t),o(this,Object.getPrototypeOf(t).apply(this,arguments))}return i(t,e),s(t,[{key:"componentWillMount",value:function(){u(Object.getPrototypeOf(t.prototype),"componentWillMount",this).call(this);var e=this.props,n=e.url,r=e.max_zoom,o=e.min_zoom,i=e.tileOpacity,a=e.z_Index,s=(e.imageryVisibility,e.leafletMap,1);i&&(s=Number(i));var l=19;r&&(l=r);var f=0;o&&(f=o);var h=0;a&&(h=a);var d=this.props.name,y=(0,c.get_attribution)(d);this.leafletElement=p.tiledMapLayer({url:n,opacity:s,maxZoom:l,minZoom:f,maxNativeZoom:l,zIndex:h,attribution:y});this.leafletElement;this.props.setMapLayers({name:d,layer:this.leafletElement})}}]),t}(l.BaseTileLayer);t["default"]=f},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}var o=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i=n(362),a=(r(i),n(363)),s=r(a),u=n(361),l=(r(u),n(372)),c=r(l),p=n(367),f=r(p),h=n(11),d=n(24),y=n(20),m=n(1),v=n(73),g=(m.PropTypes,{huc8:null,huc12:null,tra:null,catchment:null,mappoint:null}),_=m.createClass({displayName:"MapComponent",handleResize:function(){if(this.props.leafletMap){var e=this.props.leafletMap.leafletMap;e&&e.invalidateSize(!0)}},handleChartButtonClick:function(e,t){var n=this;this.props.update_ChartVisiblity(),this.props.set_defaults();var r=this;this.props.leafletMap&&!function(){var e=n.props.leafletMap.leafletMap;e.invalidateSize(!0),setTimeout(function(){r.props.set_defaults(),e.invalidateSize(!0)},100)}()},geoJSON_renderer:function(e,t){var n={};switch(e){case"catchment":n={fillColor:"#1C2833",stroke:!0,weight:20,opacity:.6,color:"#1C2833",fillOpacity:.25,zIndex:100};break;case"hover":n="chart hover tra"===t?{fillColor:"#FF0000",stroke:!0,weight:8,opacity:.2,color:"#FF0000",fillOpacity:0,zIndex:50}:{fillColor:"#1F618D",stroke:!0,weight:8,opacity:.2,color:"#1F618D",fillOpacity:.25,zIndex:0};break;case"tra":n={fillColor:"#FF0000",stroke:!0,weight:8,opacity:.4,color:"#FF0000",fillOpacity:0,zIndex:50};break;case"point":n={};break;case"huc8":n={fillColor:"#FFFF00",stroke:!0,weight:8,opacity:.4,color:"#FFFF00",fillOpacity:0,zIndex:75};break;case"huc12":n={fillColor:"#1F618D",stroke:!0,weight:8,opacity:.6,color:"#1F618D",fillOpacity:.25,zIndex:0};break;case"HUC12":n={fillColor:"#1F618D",stroke:!0,weight:8,opacity:.6,color:"#1F618D",fillOpacity:.25,zIndex:0};break;case"Cataloging Units":n={fillColor:"#1F618D",stroke:!0,weight:8,opacity:.6,color:"#1F618D",fillOpacity:.1,zIndex:0};break;case"River Basins":n={fillColor:"#1F618D",stroke:!0,weight:8,opacity:.6,color:"#1F618D",fillOpacity:.1,zIndex:0};break;default:n={fillColor:"red",stroke:!0,weight:8,opacity:.6,color:"#1F618D",fillOpacity:.25,zIndex:0}}return n},remove_GeoJSON_Layer_from_object:function(e){Object.keys(g).forEach(function(t){t.toUpperCase()===e.toUpperCase()&&(g[t]=null)})},remove_GeoJSON_Layer:function(e){var t=this.props.leafletMap.leafletMap;if(t){var n=g,r=n[e],o=t.hasLayer(r);o&&(t.removeLayer(r),this.remove_GeoJSON_Layer_from_object(e))}},add_GeoJSON_Layer:function(e,t,n){var r=this.props.searchMethod,i=this.props.leafletMap.leafletMap,a=g,s=a[t],u=i.hasLayer(s);u&&i.removeLayer(s),s=L.geoJson().addTo(i),s.addData(e);var l=this.geoJSON_renderer(t,r);return s.setStyle(l),n&&i.fitBounds(s.getBounds()),this.add_GeoJSON_ClickEvent(s),a[t]=s,g=o({},g,a),s},add_GeoJSON_ClickEvent:function(e){this.handleMapClick;e&&e.on("click",function(e,t){t.bind(null,this)}.bind(this))},get_features:function(e){var t=this.has_features(e);return t?e.features:[]},get_property_id:function(e,t){if(e[0]){var n=e[0].properties[t];return n}return""},has_features:function(e){return!(!e||!e.features)},shouldComponentUpdate:function(e,t){var n=!0;return e.fetching_map&&(n=!0),e.fetching_chart&&(n=!1),e.fetching_tra&&(n=!1),e.fetching_geo&&(n=!1),e.fetching_menu&&(n=!1),n},componentWillUpdate:function(e,t){var n=void 0;e.leafletMap&&(n=e.leafletMap.leafletMap,n&&n.invalidateSize(!0));var r=this.getLevel(),o=e.searchMethod,i=e.imagery_visibility?e.imagery_visibility:!1,a=void 0,s=e.map_settings.layers;if(i){if(n){var u=e.map_settings.layers;a=u.filter(function(e){return"base map labels"===e.name}),n.removeLayer(a[0].layer),a=u.filter(function(e){return"base map"===e.name}),n.removeLayer(a[0].layer);var u=this.props.map_settings.layers;a=u.filter(function(e){return"imagery"===e.name}),a&&n.addLayer(a[0].layer)}}else n&&(a=s.filter(function(e){return"imagery"===e.name}),n.removeLayer(a[0].layer),a=s.filter(function(e){return"base map labels"===e.name}),a&&n.addLayer(a[0].layer),a=s.filter(function(e){return"base map"===e.name}),a&&n.addLayer(a[0].layer));"menu"===o&&(this.remove_GeoJSON_Layer("point"),this.remove_GeoJSON_Layer("catchment"),this.remove_GeoJSON_Layer("huc8"),this.remove_GeoJSON_Layer("huc12")),this.remove_GeoJSON_Layer("hover"),"Cataloging Units"!=r&&this.remove_GeoJSON_Layer("Cataloging Units"),"River Basins"!=r&&this.remove_GeoJSON_Layer("River Basins"),"HUC12"!=r&&this.remove_GeoJSON_Layer("HUC12")},componentDidMount:function(){$(".leaflet-bottom.leaflet-left").css("z-index",1e5),$(".leaflet-top.leaflet-left").css("z-index",1)},componentDidUpdate:function(e,t){var n=this;if(e){var r=this.getLevel(),o=this.props.searchMethod;if("chart hover"===o.substring(0,11)&&this.props.active_hover&&!function(){var e=n.props.active_hover.ID;if(n.props.geometries){var t=n.has_features(n.props.geometries);if(t){var r=n.props.geometries.features,o=r.filter(function(t){return t.properties.ID===e});n.add_GeoJSON_Layer(o,"hover",!1)}}}(),"menu"!=o&&e.map_settings){if(e.map_settings.map_point){this.get_features(this.props.map_settings.map_point),this.get_features(e.map_settings.map_point)}var i=this.has_features(this.props.map_settings.map_point);if(i){var a=this.props.map_settings.map_point.features;this.add_GeoJSON_Layer(a,"point",!1)}}var s=this.get_features(this.props.NLCDPointInfo),u=this.get_features(e.NLCDPointInfo),l=this.get_property_id(s,"ID"),c=this.get_property_id(u,"ID");l!=c&&(this.props.get_nlcd_data(l,2),this.props.get_catchment_data(l),this.add_GeoJSON_Layer(s,"catchment",!1)),u&&s&&s[0]&&(0===u.length?this.add_GeoJSON_Layer(s,"catchment",!1):l!=c&&this.add_GeoJSON_Layer(s,"catchment",!1));var p=this.get_features(this.props.traInfo),f=this.get_features(e.traInfo),h=this.get_property_id(p,"ID"),d=this.get_property_id(f,"ID");p&&!f&&this.add_GeoJSON_Layer(p,"tra",!1),f&&p&&p[0]&&(0===f.length?this.add_GeoJSON_Layer(p,"tra",!1):h!=d&&this.add_GeoJSON_Layer(p,"tra",!1)),r&&"HUC12"!=r.toUpperCase()&&"menu"===o&&this.remove_GeoJSON_Layer("tra");var y="menu"!==o,m=this.get_features(this.props.huc8Info),v=this.get_features(e.huc8Info),g=this.get_property_id(m,"ID"),_=this.get_property_id(v,"ID");m&&!v&&this.add_GeoJSON_Layer(m,"huc8",y),v&&m&&m[0]&&(0===v.length?this.add_GeoJSON_Layer(m,"huc8",y):g!=_&&this.add_GeoJSON_Layer(m,"huc8",y));var b=this.get_features(this.props.layerInfo),T=this.get_features(e.layerInfo),P=this.get_property_id(b,"ID"),x=this.get_property_id(T,"ID");"menu"===o&&this.add_GeoJSON_Layer(b,r,!1),b&&!T&&(this.add_GeoJSON_Layer(b,r,!1),this.updateFilters(b[0].properties.VALUE),this.props.get_nlcd_data_huc12(b[0].properties.VALUE,2)),T&&b&&b[0]&&(0===T.length?(this.add_GeoJSON_Layer(b,r,!1),this.updateFilters(b[0].properties.VALUE),this.props.get_nlcd_data_huc12(b[0].properties.VALUE,2)):P!=x&&(this.add_GeoJSON_Layer(b,r,!1),this.updateFilters(b[0].properties.VALUE),this.props.get_nlcd_data_huc12(b[0].properties.VALUE,2)))}},HandleMapEnd:function(e,t){var n=(this.getLevel(),this.getLevelFilter());this.props.HandleMapEnd(e,t),this.updateFilters(n)},getLevelFilter:function(){if(this.props.geography_levels){var e=this.props.geography_levels.filter(function(e){return e.active===!0}),t="";return e.length>0&&(t=e[0].current_id),t}return null},getLevel:function(){if(this.props.geography_levels){var e=this.props.geography_levels.filter(function(e){return e.active===!0}),t="River Basins";return e.length>0&&(t=(0,y.getCategoryName)(e[0].geography_label)),t}return null},updateFilters:function(e){var t=this,n=["River Basins","Cataloging Units","HUC12"];n.map(function(n){var r=(0,y.get_matchEnd)(n);if(e){var o=e.substring(0,r);t.props.change_geographyLevelFilter(o,n),$("#search-select-"+n.replace(" ","_")).dropdown("set selected",o);var i=$("#search-select-"+n.replace(" ","_")).dropdown("get value"),a=(0,y.get_HUC)(n);i[0]!=o&&($("#search-select-"+n.replace(" ","_")).dropdown("set text","Choose a "+n+"("+a+")"),$("#search-select-"+n.replace(" ","_")).dropdown("set selected",o))}})},handleMapLoad:function(e,t){var n=this.refs.map.leafletElement;if(this.props.set_LeafletMap(n),this.props.layerInfo){var r=this.props.layerInfo.features;if(r&&r[0]){var o=r[0].properties.ID;this.updateFilters(o)}}},handleMapClick:function(e,t){this.props.change_geographyLevelActive("HUC12"),this.props.set_search_method("clicked"),this.props.update_HeaderVis(),this.props.get_LayerInfo_ByPoint(t.latlng.lat,t.latlng.lng,d.HUC12_MAP_FEATUREID)},getInitialState:function(){return{attribution:'Map data &copy; <a href="http://openstreetmap.org">OpenStreetMap</a> contributors, <a href="http://creativecommons.org/licenses/by-sa/2.0/">CC-BY-SA</a>',tileUrl:"https://api.tiles.mapbox.com/v3/daveism.oo0p88l4/{z}/{x}/{y}.png"}},render:function(){var e=!0;e=void 0===this.props.charts.chart_visibility?!0:this.props.charts.chart_visibility;var t=this.props.imagery_visibility?this.props.imagery_visibility:!1,n=this.props.default_settings?this.props.default_settings.PADDING:0,r=this.props.default_settings?this.props.default_settings.LEFTOVER-n:0,o=this.props.default_settings?this.props.default_settings.MAPWIDTH:0,i=this.props.map_settings?this.props.map_settings.latitude:h.START_LATITUDE,a=this.props.map_settings?this.props.map_settings.longitude:h.START_LONGITUDE;return m.createElement("div",{style:{height:r,width:o,padding:"0px"},onResize:this.handleResize()},this.props.map_settings&&m.createElement(v.Map,{ref:"map",onLeafletZoomEnd:this.HandleMapEnd.bind(null,this),onLeafletMoveEnd:this.HandleMapEnd.bind(null,this),onLeafletClick:this.handleMapClick.bind(null,this),onLeafletResize:this.handleResize.bind(null,this),center:[i,a],zoom:this.props.map_settings.zoom,maxBounds:this.props.map_settings.maxBounds,maxZoom:this.props.map_settings.maxZoom,minZoom:this.props.map_settings.minZoom},m.createElement(c["default"],{position:"topright",className:"mapbutton"},m.createElement("button",{className:"ui black button",onClick:this.handleChartButtonClick.bind(null,this),style:{paddingLeft:h.SPACING,paddingRight:h.SPACING,width:"140px"}},m.createElement("i",{className:"bar chart icon"}),e?"Hide Charts":"Show Charts")),m.createElement(c["default"],{position:"bottomleft",className:"mapbutton"},m.createElement("button",{className:"ui grey mini button",onClick:this.props.use_imagery,style:{width:"140px",marginBottom:"14px",zIndex:1e7}},t?"Show Map":"Show Satellite")),m.createElement(c["default"],{position:"topright",className:"mapbutton"},m.createElement(f["default"],{map_settings:this.props.map_settings,leafletMap:this.props.leafletMap,geojson_layers:g})),m.createElement(s["default"],{z_Index:0,setMapLayers:this.props.set_MapLayers,name:"imagery",url:d.IMAGERY_BASEMAP,onLeafletLoad:this.handleMapLoad.bind(null,this),onLeafletClick:this.handleMapClick.bind(null,this)}),m.createElement(s["default"],{z_Index:2,setMapLayers:this.props.set_MapLayers,name:"base map labels",min_zoom:"8",url:d.BASE_MAP_LABELS,onLeafletLoad:this.handleMapLoad.bind(null,this),onLeafletClick:this.handleMapClick.bind(null,this)}),m.createElement(s["default"],{z_Index:1,setMapLayers:this.props.set_MapLayers,name:"base map",url:d.BASE_MAP,onLeafletLoad:this.handleMapLoad.bind(null,this),onLeafletClick:this.handleMapClick.bind(null,this)}),m.createElement(s["default"],{url:d.CATCHMENTS_BASE_MAP,setMapLayers:this.props.set_MapLayers,name:"Catchments Base Map",min_zoom:"12",onLeafletClick:this.handleMapClick.bind(null,this),z_Index:3}),m.createElement(s["default"],{url:d.HUC12_BASE_MAP,setMapLayers:this.props.set_MapLayers,name:"HUC 12 Base Map",min_zoom:"9",onLeafletClick:this.handleMapClick.bind(null,this),z_Index:4}),m.createElement(s["default"],{url:d.HUC8_BASE_MAP,setMapLayers:this.props.set_MapLayers,name:"Cataloging Units Base Map",min_zoom:"8",onLeafletClick:this.handleMapClick.bind(null,this),z_Index:5}),m.createElement(s["default"],{url:d.HUC6_BASE_MAP,setMapLayers:this.props.set_MapLayers,tileOpacity:"0.5",name:"River Basins Base Map",onLeafletClick:this.handleMapClick.bind(null,this),z_Index:6}),m.createElement(s["default"],{url:d.TRA_BASE_MAP,setMapLayers:this.props.set_MapLayers,tileOpacity:"0.5",name:"Targeted Resource Areas (TRA) Base Map",onLeafletClick:this.handleMapClick.bind(null,this),z_Index:7})))}});e.exports=_},function(e,t,n){"use strict";var r=n(1),o=r.PropTypes,i=r.createClass({displayName:"MapLayerToggle",propTypes:{toggleText:o.string},handleLayerClick:function(e){var t=this.props.leafletMap,n=this.props.layer,r=t.hasLayer(n);r?t.removeLayer(n):t.addLayer(n),"https://services.arcgisonline.com/arcgis/rest/services/World_Imagery/MapServer/"===n.options.url&&n.bringToBack()},getDefaultProps:function(){return{toggleText:"Layer Toggle"}},getInitialState:function(){return this.toggleText=this.props.get_display_names(this.props.toggleText),{toggleText:this.toggleText}},render:function(){return r.createElement("div",null,r.createElement("div",{className:"ui checked checkbox"},r.createElement("input",{type:"checkbox",defaultChecked:!0,onClick:this.handleLayerClick}),r.createElement("label",{className:"ui black label",style:{paddingTop:"2px",paddingBottom:"0px",marginBottom:"0px",fontSize:".78571429rem",paddingLeft:"2.25em"}},this.state.toggleText)))}});e.exports=i},function(e,t,n){"use strict";var r=(n(11),n(1)),o=r.PropTypes,i=r.createClass({displayName:"MapLayerToggleName",propTypes:{title:o.string},getDefaultProps:function(){return{title:"Title"}},getInitialState:function(){return{title:this.props.text}},render:function(){return r.createElement("h5",{className:"ui inverted header",style:{marginTop:"0px",fontSize:".78571429rem"}},this.state.title)}});e.exports=i},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}var o=n(123),i=r(o),a=n(11),s=n(1),u=n(366),l=n(365),c=(s.PropTypes,s.createClass({displayName:"MapLayerToggleWrapper",componentDidMount:function(){$(".ui.accordion").accordion()},get_display_names:function(e){var t="";switch(e){case"catchment":t="Catchment";break;case"tra":t="Targeted Resource Area (TRA)";break;case"point":t="Point Marker";break;case"huc6":t="Cataloging Unit (HUC 8)";break;case"huc8":t="Cataloging Unit (HUC 8)";break;case"HUC 12":t="HUC 12";break;case"HUC12":t="HUC 12";break;case"huc12":t="HUC 12";break;case"Cataloging Units":t="Cataloging Units (HUC 8)";break;case"River Basins":t="River Basin (HUC 6)";break;default:t=e}return t},create_toggles:function(e){var t=this;return e.map(function(e){return"base map labels"!=e.name&&"base map"!=e.name&&"imagery"!=e.name&&e.layer?s.createElement(l,{key:e.name,toggleText:e.name,layer:e.layer,get_display_names:t.get_display_names,leafletMap:t.props.leafletMap.leafletMap}):void 0})},check_toggles_valid:function(e){var t=!1;return e.map(function(e){e&&(t=!0)}),t},render:function(){var e=[];this.props.map_settings&&(e=this.props.map_settings.layers);var t=this.create_toggles(e),n=[];this.props.geojson_layers&&(n=this.props.geojson_layers);var r=[];Object.keys(n).forEach(function(e){"NAME"!=e.toUpperCase()&&r.push({name:e,layer:n[e]})});var o=this.create_toggles(r),l=this.check_toggles_valid(o);s.createElement("span",null," ");return s.createElement("div",{className:"ui inverted segment",style:{padding:"0px 5px 0px 5px",marginRight:"4px"}},s.createElement("div",{className:"ui vertical inverted fluid accordion"},s.createElement("div",{className:"item"},s.createElement("div",{className:"title",style:{fontWeight:"700",fontSize:"1rem",width:"130px"}},s.createElement("i",{className:"dropdown left floated icon"}),s.createElement("i",{className:"list layout icon"}),"Toggle Layers"),s.createElement("div",{className:"content"},s.createElement(u,{text:"Base Map Layers"}),t,s.createElement("div",{style:{paddingBottom:a.SPACING}}),l&&s.createElement("div",null,s.createElement(i["default"],null),s.createElement(u,{text:"Highlighted Map Layers"}),o),s.createElement("div",{style:{paddingBottom:a.SPACING}})))))}}));e.exports=c},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}var o=n(378),i=r(o),a=n(1),s=(a.PropTypes,a.createClass({displayName:"MapRowComponent",render:function(){var e=($("#headerrow").outerHeight(),this.props.default_settings?this.props.default_settings.PADDING:0),t=this.props.default_settings?this.props.default_settings.LEFTOVER-e:0,n=this.props.default_settings?this.props.default_settings.MAPWIDTH:0;return a.createElement("div",{id:"mapSubColumn",style:{height:t,width:n,padding:"0px",margin:"0px"}},a.createElement(i["default"],null))}}));e.exports=s},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}var o=n(123),i=r(o),a=n(51),s=r(a),u=n(20),l=n(11),c=n(1),p=n(370),f=(c.PropTypes,c.createClass({displayName:"MenuComponent",handleMapFillClick:function(e){this.props.set_mapToPoint(l.START_LATITUDE,l.START_LONGITUDE,l.START_ZOOM,e)},handleChartButtonClick:function(e){var t=this;this.props.update_ChartVisiblity(),this.props.set_defaults(),this.props.update_HeaderVis(),this.props.leafletMap&&!function(){var e=t.props.leafletMap.leafletMap;t.props.set_defaults(),setTimeout(function(){e.invalidateSize()},200)}()},componentDidMount:function(){this.props.get_MenuList()},componentWillUpdate:function(e,t){this.props.set_defaults();e.searchMethod;if(e.leafletMap){var n=e.leafletMap.leafletMap;n&&n.invalidateSize(!0)}var r=e.searchMethod;"menu"!==r&&"clicked"!==r||$(".mapSearch").val("")},getDefaultMenu:function(e){if(this.props.DefaultMenuLists){var t=this.props.DefaultMenuLists.filter(function(t){return t.name===e}),n=[];return t.length>0&&(n=t[0].lists),n}return null},checkList:function(e){return e?this.props.DefaultMenuLists:void 0},getLevel:function(){if(this.props.geography_levels){var e=this.props.geography_levels.filter(function(e){return e.active===!0}),t="River Basins";return e.length>0&&(t=(0,u.getCategoryName)(e[0].geography_label)),t}return null},handleSearchClick:function(e,t){this.props.update_HeaderVis(),this.props.set_defaults()},handleSearch:function(e,t){this.props.change_geographyLevelActive("HUC12"),this.props.handleSearchChange(e,t),this.props.set_search_method("location searched"),this.props.update_HeaderVis()},updateFilters:function(e){var t=this,n=["River Basins","Cataloging Units","HUC12"];n.map(function(n){var r=(0,u.get_matchEnd)(n);if(e){var o=e.substring(0,r);t.props.change_geographyLevelFilter(o,n),$("#search-select-"+n.replace(" ","_")).dropdown("set selected",o);var i=$("#search-select-"+n.replace(" ","_")).dropdown("get value");i[0]!=o&&$("#search-select-"+n.replace(" ","_")).dropdown("set selected",o)}})},getLevelFilter:function(){if(this.props.geography_levels){var e=this.props.geography_levels.filter(function(e){return e.active===!0}),t="";return e.length>0&&(t=e[0].current_id),t}return null},menuChange:function(e,t){this.updateFilters(t.target.value);var n=e;"location searched"!==this.props.searchMethod&&"clicked"!==this.props.searchMethod||(n="HUC12"),this.props.change_geographyLevelActive(n),this.props.update_HeaderVis();var r=(0,u.get_matchEnd)(n),o=t.target.value.length;if(Number(o)===Number(r)){this.props.get_ChartData(t.target.value,n),this.props.get_all_geometries(t.target.value),this.props.get_TRAData(t.target.value,n);var i=(0,u.getAGOFeatureId)(n);this.props.get_LayerInfo_ByValue(t.target.value,i),$("#search-select-"+n.replace(" ","_")).dropdown("set selected",t.target.value),this.updateFilters(t.target.value)}var a=this.props.map_settings.latitude+1e-8,s=this.props.map_settings.longitude+1e-8,l=this.props.map_settings.zoom;this.props.set_mapToPoint(a,s,l,null)},handleSearchIconClick:function(){},handleMenuClick:function(e,t){this.props.change_geographyLevelActive(e),this.props.set_search_method("menu"),this.props.update_HeaderVis()},getActive:function(e){var t=(0,u.getAGOGeographyLabel)(e),n=this.props.geography_levels.filter(function(e){return e.geography_label===t}),r=!1;return n.length>0&&(r=n[0].active),r?"active item":"item"},getFilter:function(e){var t=(0,u.getAGOGeographyLabel)(e),n=this.props.geography_levels.filter(function(e){return e.geography_label===t}),r="";return n.length>0&&(r=n[0].filter),r},render:function(){var e=window.innerWidth<l.OVERIDE_WIDTH_NORMAL?"95%":"100%",t=window.innerWidth<l.OVERIDE_WIDTH_NORMAL?"14px":"",n=window.innerWidth<l.OVERIDE_WIDTH?"sixteen wide":"twelve wide",r=window.innerWidth<l.OVERIDE_WIDTH?"sixteen wide":"four wide";return c.createElement("div",{className:"html ui top attached segment"},c.createElement("div",{className:"ui relaxed stackable divided grid"},c.createElement("div",{className:"row"},c.createElement("div",{className:r+" wide column"},c.createElement("div",{className:"ui form"},c.createElement("div",{className:"field"},c.createElement("label",{style:{width:e,marginLeft:t}},c.createElement("i",{className:"search link icon",onClick:this.handleSearchIconClick.bind(null,this)}),"Search for a Location",c.createElement(s["default"],{helper_name:"Search for a Location"})),c.createElement("div",{className:"ui left icon input",style:{height:"50px",width:e,marginLeft:t}},c.createElement("input",{className:"mapSearch",type:"text",placeholder:"Search for a Location...",onChange:this.handleSearch.bind(null,this),onClick:this.handleSearchClick.bind(null,this)}),c.createElement("i",{className:"search link icon"}))))),window.innerWidth<l.OVERIDE_WIDTH&&window.innerWidth>l.OVERIDE_WIDTH_NORMAL-1&&c.createElement(i["default"],null),c.createElement("div",{className:n+" column geography_levels_holder"},c.createElement("div",{className:"ui three wide column stackable grid"},this.props.geography_levels&&this.props.geography_levels.map(function(e){var t=(0,u.getCategoryName)(e.geography_label),n=e.filtered_menu_list;return 0===n.length&&(n=this.getDefaultMenu(t)),c.createElement(p,{key:t,name:t,lists:n,getFilter:this.getFilter,getActive:this.getActive,handleMenuClick:this.handleMenuClick,menuChange:this.menuChange,set_search_method:this.props.set_search_method})}.bind(this)))))))}}));e.exports=f},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}var o=n(51),i=r(o),a=n(20),s=n(11),u=n(1),l=u.PropTypes,c=u.createClass({displayName:"MenuItemComponent",propTypes:{handleMenuClick:l.func.isRequired,getActive:l.func.isRequired,getFilter:l.func.isRequired,set_search_method:l.func.isRequired},componentDidMount:function(){var e=this;$(".ui.dropdown").dropdown(),$(".ui.fluid.search.selection.dropdown .dropdown.icon").click(function(){e.props.set_search_method("menu")})},componentWillUpdate:function(e,t){$(".ui.dropdown").dropdown()},render:function(){$("#menu-placeholder-"+this.props.name.replace(" ","_")).remove();var e=(0,a.get_HUC)(this.props.name),t=this.props.geography_levels?this.props.geography_levels.length:3,n=$(".geography_levels_holder").width(),r=250>=n/t?250:n/t,o=window.innerWidth<s.OVERIDE_WIDTH_NORMAL?"95%":"100%",l=window.innerWidth<s.OVERIDE_WIDTH_NORMAL?"14px":"",c=r+"px";if(this.props.lists)var p=this.props.lists.map(function(e){return u.createElement("option",{key:e.VALUE,value:e.VALUE,style:{width:c}},e.MAIN,"-(",e.SUB,")")}.bind(this));return u.createElement("div",{className:"stackable column",style:{width:c}},u.createElement("div",{className:"ui form"},u.createElement("div",{className:"field"},u.createElement("label",{style:{marginLeft:l}},"Choose a ",this.props.name,"  (",e,")",u.createElement(i["default"],{helper_name:this.props.name})),u.createElement("div",{className:"ui input",onClick:this.props.handleMenuClick.bind(null,this.props.name),style:{height:"50px",width:o,marginLeft:l}},u.createElement("select",{className:"ui fluid search selection dropdown",id:"search-select-"+this.props.name.replace(" ","_"),onChange:this.props.menuChange.bind(null,this.props.name)},u.createElement("option",{value:""},"Choose a ",this.props.name,"  (",e,")"),p)))))}});e.exports=c},function(e,t,n){"use strict";var r=n(1),o=(r.PropTypes,r.createClass({displayName:"ModalAbout",render:function(){return r.createElement("div",{className:"ui modal",id:"modal-about"},r.createElement("div",{className:"actions",style:{backgroundColor:"#fff","float":"right"}},r.createElement("div",{className:"circular ui icon button floated right ok",style:{padding:"0",backgroundColor:"#fff"}},r.createElement("i",{className:"remove circle outline icon red",style:{fontSize:"2rem"}}))),r.createElement("div",{className:"header"},"About the River Basin Restoration Priorities Web Application"),r.createElement("div",{className:"content"},r.createElement("div",{className:"description"},r.createElement("p",null," NCDEQ-Division of Mitigation Services River Basin Restoration Priorities (RBRPs) are plans developed to identify priorities for the protection and enhancement of water quality, fisheries, wildlife habitat and recreational opportunities. DMS uses these priorities to guide its stream, wetland and riparian restoration and protection activities in the state’s 17 major river basins. The updated RBRP process identifies priorities as Targeted  Resource Areas(TRAs). TRAs are collections of clustered NHD+ catchments that receive priority for DMS planning and restoration project funds. Find out more at ",r.createElement("a",{href:"http://deq.nc.gov/"}," http://deq.nc.gov/ ")))))}}));e.exports=o},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==("undefined"==typeof t?"undefined":u(t))&&"function"!=typeof t?e:t}function s(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+("undefined"==typeof t?"undefined":u(t)));e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol?"symbol":typeof e};Object.defineProperty(t,"__esModule",{value:!0});var l=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),c=function g(e,t,n){null===e&&(e=Function.prototype);var r=Object.getOwnPropertyDescriptor(e,t);if(void 0===r){var o=Object.getPrototypeOf(e);return null===o?void 0:g(o,t,n)}if("value"in r)return r.value;var i=r.get;if(void 0!==i)return i.call(n)},p=n(1),f=n(73),h=n(5),d=n(356),y=r(d),m=n(60),v=function(e){function t(e){return i(this,t),a(this,Object.getPrototypeOf(t).call(this,e))}return s(t,e),l(t,[{key:"componentWillMount",value:function(){var e=this.props,t=(e.children,e.map,e.popupContainer,o(e,["children","map","popupContainer"]));this.leafletElement=new y["default"](t)}},{key:"componentDidMount",value:function(){c(Object.getPrototypeOf(t.prototype),"componentDidMount",this).call(this),this.renderContent()}},{key:"componentDidUpdate",value:function(e){c(Object.getPrototypeOf(t.prototype),"componentDidUpdate",this).call(this,e),this.renderContent()}},{key:"renderContent",value:function(){var e=this.leafletElement.getContainer();L.DomEvent.disableClickPropagation(e).disableScrollPropagation(e),(0,m.render)(p.Children.only(this.props.children),e)}},{key:"render",value:function(){return null}}]),t}(f.MapControl);v.propTypes={children:p.PropTypes.node,map:p.PropTypes.instanceOf(h.Map),popupContainer:p.PropTypes.object,position:p.PropTypes.string},t["default"]=v},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t["default"]=e,t}function i(e){var t=e.chartData,n=e.default_settings.default_settings,r=e.constants.constants,o=e.leafletMap;return{leafletMap:o,charts:t,default_settings:n,
  constants:r}}function a(e){return(0,s.bindActionCreators)(c,e)}Object.defineProperty(t,"__esModule",{value:!0});var s=n(23),u=n(30),l=n(28),c=o(l),p=n(194),f=r(p),h=(0,u.connect)(i,a)(f["default"]);t["default"]=h},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(t,"__esModule",{value:!0});var o=n(23),i=n(30),a=n(28),s=n(351),u=r(s),l=function(e,t){return{chart_data:e.NLCDDATA.ncld_chart_data,chart_filter:e.chart_limit.chart_limit}},c=function(e,t){return{get_ChartData:(0,o.bindActionCreators)(a.get_ChartData,e),set_defaults:(0,o.bindActionCreators)(a.set_defaults,e)}},p=(0,i.connect)(l,c)(u["default"]);t["default"]=p},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(t,"__esModule",{value:!0});var o=n(23),i=n(30),a=n(28),s=n(352),u=r(s),l=function(e,t){return{charts:e.chartData,default_settings:e.default_settings.default_settings,geography_levels:e.geography_levels.geography_levels,chart_levels:e.chartData.chart_levels,tra_data:e.traData.tra_data,traPointInfo:e.mapConfig.traPointInfo,NLCDPointInfo:e.mapConfig.NLCDPointInfo,searchMethod:e.mapConfig.searchMethod,fetching_chart:e.fetching_chart.fetching_chart,fetching_map:e.fetching_map.fetching_map,fetching_tra:e.fetching_tra.fetching_tra,fetching_geo:e.fetching_geo.fetching_geo,fetching_menu:e.fetching_menu.fetching_menu,ncld_chart_data:e.NLCDDATA.ncld_chart_data,ncld_chart_data_huc12:e.NLCDDATA.ncld_chart_data_huc12,catchment_chart_ar:e.CATCHMENTDATA.catchment_chart_ar,active_function:e.active_function.active_function,chart_buttons:e.chart_buttons.chart_buttons}},c=function(e,t){return{get_ChartData:(0,o.bindActionCreators)(a.get_ChartData,e),get_TRAData:(0,o.bindActionCreators)(a.get_TRAData,e),update_ChartVisiblity:(0,o.bindActionCreators)(a.update_ChartVisiblity,e),get_LayerInfo_ByValue:(0,o.bindActionCreators)(a.get_LayerInfo_ByValue,e),change_geographyLevelActive:(0,o.bindActionCreators)(a.change_geographyLevelActive,e),set_search_method:(0,o.bindActionCreators)(a.set_search_method,e),get_tra_info:(0,o.bindActionCreators)(a.get_tra_info,e),update_ChartLevels:(0,o.bindActionCreators)(a.update_ChartLevels,e),update_HeaderVis:(0,o.bindActionCreators)(a.update_HeaderVis,e),get_nlcd_data:(0,o.bindActionCreators)(a.get_nlcd_data,e),get_catchment_data:(0,o.bindActionCreators)(a.get_catchment_data,e),get_LayerGeom_ByValue:(0,o.bindActionCreators)(a.get_LayerGeom_ByValue,e),set_active_function:(0,o.bindActionCreators)(a.set_active_function,e),set_active_hover:(0,o.bindActionCreators)(a.set_active_hover,e),get_all_geometries:(0,o.bindActionCreators)(a.get_all_geometries,e),get_chart_buttons:(0,o.bindActionCreators)(a.get_chart_buttons,e),set_defaults:(0,o.bindActionCreators)(a.set_defaults,e)}},p=(0,i.connect)(l,c)(u["default"]);t["default"]=p},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(t,"__esModule",{value:!0});var o=n(23),i=n(30),a=n(28),s=n(353),u=r(s),l=function(e,t){return{chart_buttons:e.chart_buttons.chart_buttons}},c=function(e,t){return{update_ChartVisiblity:(0,o.bindActionCreators)(a.update_ChartVisiblity,e)}},p=(0,i.connect)(l,c)(u["default"]);t["default"]=p},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(t,"__esModule",{value:!0});var o=n(23),i=n(30),a=n(28),s=n(193),u=r(s),l=function(e,t){var n=e.constants.constants;return{constants:n}},c=function(e,t){return{set_constants:(0,o.bindActionCreators)(a.set_constants,e)}},p=(0,i.connect)(l,c)(u["default"]);t["default"]=p},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(t,"__esModule",{value:!0});var o=n(30),i=n(23),a=n(28),s=n(364),u=r(s),l=function(e,t){var n=e.mapConfig.mapconfig,r=e.chartData,o=e.default_settings.default_settings,i=e.leafletMap,a=e.geography_levels.geography_levels,s=e.mapConfig.layerinfo,u=e.mapConfig.traPointInfo,l=e.mapConfig.NLCDPointInfo,c=e.mapConfig.huc8Info,p=e.mapConfig.searchMethod,f=e.mapConfig.traInfo,h=e.fetching_chart.fetching_chart,d=e.fetching_map.fetching_map,y=e.fetching_tra.fetching_tra,m=e.fetching_geo.fetching_geo,v=e.fetching_geo.fetching_menu,g=e.mapConfig.hoverInfo;return{charts:r,geography_levels:a,map_settings:n,default_settings:o,leafletMap:i,layerInfo:s,traInfo:f,traPointInfo:u,huc8Info:c,searchMethod:p,NLCDPointInfo:l,fetching_chart:h,fetching_map:d,fetching_tra:y,fetching_geo:m,fetching_menu:v,hoverInfo:g,active_hover:e.active_hover.active_hover,geometries:e.geometries.geometries,imagery_visibility:e.imagery_visibility.visibility}},c=function(e,t){return{get_defaultMapData:(0,i.bindActionCreators)(a.get_defaultMapData,e),update_ChartVisiblity:(0,i.bindActionCreators)(a.update_ChartVisiblity,e),HandleMapEnd:(0,i.bindActionCreators)(a.HandleMapEnd,e),set_mapToPoint:(0,i.bindActionCreators)(a.set_mapToPoint,e),change_geographyLevelActive:(0,i.bindActionCreators)(a.change_geographyLevelActive,e),change_geographyLevelFilter:(0,i.bindActionCreators)(a.change_geographyLevelFilter,e),get_ChartData:(0,i.bindActionCreators)(a.get_ChartData,e),set_MapLayers:(0,i.bindActionCreators)(a.set_MapLayers,e),set_LeafletMap:(0,i.bindActionCreators)(a.set_LeafletMap,e),get_LayerInfo_ByPoint:(0,i.bindActionCreators)(a.get_LayerInfo_ByPoint,e),set_search_method:(0,i.bindActionCreators)(a.set_search_method,e),update_HeaderVis:(0,i.bindActionCreators)(a.update_HeaderVis,e),get_nlcd_data:(0,i.bindActionCreators)(a.get_nlcd_data,e),get_nlcd_data_huc12:(0,i.bindActionCreators)(a.get_nlcd_data_huc12,e),get_catchment_data:(0,i.bindActionCreators)(a.get_catchment_data,e),get_LayerGeom_ByValue:(0,i.bindActionCreators)(a.get_LayerGeom_ByValue,e),get_all_geometries:(0,i.bindActionCreators)(a.get_all_geometries,e),use_imagery:(0,i.bindActionCreators)(a.use_imagery,e),set_defaults:(0,i.bindActionCreators)(a.set_defaults,e)}},p=(0,o.connect)(l,c)(u["default"]);t["default"]=p},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(t,"__esModule",{value:!0});var o=n(23),i=n(30),a=n(28),s=n(368),u=r(s),l=function(e,t){return{default_settings:e.default_settings.default_settings}},c=function(e,t){return{set_defaults:(0,o.bindActionCreators)(a.set_defaults,e)}},p=(0,i.connect)(l,c)(u["default"]);t["default"]=p},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(t,"__esModule",{value:!0});var o=n(30),i=n(23),a=n(28),s=n(369),u=r(s),l=function(e,t){var n=e.menuLists.lists,r=e.geography_levels.geography_levels,o=e.chartData,i=e.mapConfig.mapconfig,a=e.leafletMap,s=e.mapConfig.layerinfo,u=e.mapConfig.traPointInfo,l=e.mapConfig.huc8Info,c=e.mapConfig.searchMethod,p=e.mapConfig.traInfo;return{DefaultMenuLists:n,charts:o,geography_levels:r,map_settings:i,leafletMap:a,layerInfo:s,traPointInfo:u,traInfo:p,tra_data:e.traData.tra_data,huc8Info:l,searchMethod:c}},c=function(e,t){return{get_MenuList:(0,i.bindActionCreators)(a.get_MenuList,e),update_ChartVisiblity:(0,i.bindActionCreators)(a.update_ChartVisiblity,e),change_geographyLevelActive:(0,i.bindActionCreators)(a.change_geographyLevelActive,e),change_geographyLevelFilter:(0,i.bindActionCreators)(a.change_geographyLevelFilter,e),get_ChartData:(0,i.bindActionCreators)(a.get_ChartData,e),get_TRAData:(0,i.bindActionCreators)(a.get_TRAData,e),handleSearchChange:(0,i.bindActionCreators)(a.handleSearchChange,e),set_mapToPoint:(0,i.bindActionCreators)(a.set_mapToPoint,e),get_LayerInfo_ByValue:(0,i.bindActionCreators)(a.get_LayerInfo_ByValue,e),set_search_method:(0,i.bindActionCreators)(a.set_search_method,e),update_HeaderVis:(0,i.bindActionCreators)(a.update_HeaderVis,e),get_all_geometries:(0,i.bindActionCreators)(a.get_all_geometries,e),set_defaults:(0,i.bindActionCreators)(a.set_defaults,e)}},p=(0,o.connect)(l,c)(u["default"]);t["default"]=p},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t["default"]=e,t}function i(e){return{charts:e.chartData,default_settings:e.default_settings.default_settings}}Object.defineProperty(t,"__esModule",{value:!0});var a=n(23),s=n(30),u=n(28),l=(o(u),n(196)),c=r(l),p=function(e,t){return{update_HeaderVis:(0,a.bindActionCreators)(u.update_HeaderVis,e)}},f=(0,s.connect)(i,p)(c["default"]);t["default"]=f},function(e,t,n){"use strict";var r=(n(1),n(60)),o=n(392);r.render(o,document.getElementById("app"))},function(e,t){"use strict";function n(){var e=arguments.length<=0||void 0===arguments[0]?[]:arguments[0],t=arguments[1];switch(t.type){case"GET_CHART_DATA":return l({},e,{chart_data:t.chart_data,chart_visibility:t.chart_visibility});case"SET_CHART_VISIBILITY":return l({},e,{chart_data:t.chart_data,chart_visibility:t.chart_visibility});case"GET_CHART_LEVELS":return l({},e,{chart_levels:t.chart_levels});case"UPDATE_CHART_LEVEL":return l({},e,{chart_levels:t.chart_levels});default:return e}}function r(){var e=arguments.length<=0||void 0===arguments[0]?[]:arguments[0],t=arguments[1];switch(t.type){case"GET_CATCHMENT_DATA":return l({},e,{CATCHMENTData:t.CATCHMENTData,catchment_chart_ar:t.catchment_chart_ar});default:return e}}function o(){var e=arguments.length<=0||void 0===arguments[0]?[]:arguments[0],t=arguments[1];switch(t.type){case"GET_NLCD_DATA":return l({},e,{ncld_chart_data:t.ncld_chart_data});case"GET_NLCD_DATA_HUC12":return l({},e,{ncld_chart_data_huc12:t.ncld_chart_data});default:return e}}function i(){var e=arguments.length<=0||void 0===arguments[0]?[]:arguments[0],t=arguments[1];switch(t.type){case"SET_ACTIVE_FUNCTION":return l({},e,{active_function:t.active_function});default:return e}}function a(){var e=arguments.length<=0||void 0===arguments[0]?[]:arguments[0],t=arguments[1];switch(t.type){case"GET_CHART_BUTTONS":return l({},e,{chart_buttons:t.chart_buttons});default:return e}}function s(){var e=arguments.length<=0||void 0===arguments[0]?[]:arguments[0],t=arguments[1];switch(t.type){case"CHART_LIMIT":return l({},e,{chart_limit:t.chart_limit});default:return e}}function u(){var e=arguments.length<=0||void 0===arguments[0]?[]:arguments[0],t=arguments[1];switch(t.type){case"FETCHING_CHART":return l({},e,{fetching_chart:t.fetching});default:return e}}Object.defineProperty(t,"__esModule",{value:!0});var l=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};t.chartData=n,t.CATCHMENTDATA=r,t.NLCDDATA=o,t.active_function=i,t.chart_buttons=a,t.chart_limit=s,t.fetching_chart=u},function(e,t){"use strict";function n(){var e=arguments.length<=0||void 0===arguments[0]?[]:arguments[0],t=arguments[1];switch(t.type){case"UPDATE_MAP_HEIGHT":return r({},e,{default_settings:t.default_settings});case"UPDATE_CHART_HEIGHT":return r({},e,{default_settings:t.default_settings});case"SET_DEFAULT_SETTINGS":return r({},e,{default_settings:t.default_settings});case"UPDATE_HEADER_DESCRIPTION_VISIBILITY":return r({},e,{default_settings:t.default_settings});default:return e}}Object.defineProperty(t,"__esModule",{value:!0});var r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};t.default_settings=n},function(e,t){"use strict";function n(){var e=arguments.length<=0||void 0===arguments[0]?[]:arguments[0],t=arguments[1];switch(t.type){case"GET_GEOGRAPHY_LEVELS":return o({},e,{geography_levels:t.geography_levels});case"CHANGE_ACTIVE_GEOGRAPHY_LEVEL":return o({},e,{geography_levels:t.geography_levels});case"CHANGE_FILTER_GEOGRAPHY_LEVEL":return o({},e,{geography_levels:t.geography_levels});default:return e}return e}function r(){var e=arguments.length<=0||void 0===arguments[0]?[]:arguments[0],t=arguments[1];switch(t.type){case"FETCHING_GEO":return o({},e,{fetching_geo:t.fetching});default:return e}}Object.defineProperty(t,"__esModule",{value:!0});var o=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};t.geography_levels=n,t.fetching_geo=r},function(e,t){"use strict";function n(){var e=arguments.length<=0||void 0===arguments[0]?[]:arguments[0],t=arguments[1];switch(t.type){case"SET_LEAFLETMAP":return o({},e,{leafletMap:t.leafletMap});default:return e}return e}function r(){var e=arguments.length<=0||void 0===arguments[0]?[]:arguments[0],t=arguments[1];switch(t.type){case"USE_IMAGERY":return o({},e,{visibility:t.imagery_visibility});default:return e}}Object.defineProperty(t,"__esModule",{value:!0});var o=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};t.leafletMap=n,t.imagery_visibility=r},function(e,t){"use strict";function n(){var e=arguments.length<=0||void 0===arguments[0]?[]:arguments[0],t=arguments[1];switch(t.type){case"MAP_SEARCH":return a({},e,{mapconfig:t.mapconfig,layerinfo:t.mapconfig.layerInfo,traInfo:t.mapconfig.traInfo,traPointInfo:t.mapconfig.traPointInfo,NLCDPointInfo:t.mapconfig.NLCDPointInfo,huc8Info:t.mapconfig.huc8Info,searchMethod:t.mapconfig.searchMethod,hoverInfo:t.mapconfig.hoverInfo});case"MAP_TO_POINT":return a({},e,{mapconfig:t.mapconfig,layerinfo:t.mapconfig.layerInfo,traInfo:t.mapconfig.traInfo,traPointInfo:t.mapconfig.traPointInfo,NLCDPointInfo:t.mapconfig.NLCDPointInfo,huc8Info:t.mapconfig.huc8Info,searchMethod:t.mapconfig.searchMethod,hoverInfo:t.mapconfig.hoverInfo});case"MAP_END":return a({},e,{mapconfig:t.mapconfig,layerinfo:t.mapconfig.layerInfo,traInfo:t.mapconfig.traInfo,traPointInfo:t.mapconfig.traPointInfo,NLCDPointInfo:t.mapconfig.NLCDPointInfo,huc8Info:t.mapconfig.huc8Info,searchMethod:t.mapconfig.searchMethod,hoverInfo:t.mapconfig.hoverInfo});case"MAP_DATA":return a({},e,{mapconfig:t.mapconfig,layerinfo:t.mapconfig.layerInfo,traInfo:t.mapconfig.traInfo,traPointInfo:t.mapconfig.traPointInfo,NLCDPointInfo:t.mapconfig.NLCDPointInfo,huc8Info:t.mapconfig.huc8Info,searchMethod:t.mapconfig.searchMethod,hoverInfo:t.mapconfig.hoverInfo});case"MAP_SET_LAYERS":return a({},e,{mapconfig:t.mapconfig,layerinfo:t.mapconfig.layerInfo,traInfo:t.mapconfig.traInfo,traPointInfo:t.mapconfig.traPointInfo,NLCDPointInfo:t.mapconfig.NLCDPointInfo,huc8Info:t.mapconfig.huc8Info,searchMethod:t.mapconfig.searchMethod,hoverInfo:t.mapconfig.hoverInfo});case"MAP_GET_LAYER_INFO":return a({},e,{mapconfig:t.mapconfig,layerinfo:t.mapconfig.layerInfo,traInfo:t.mapconfig.traInfo,traPointInfo:t.mapconfig.traPointInfo,NLCDPointInfo:t.mapconfig.NLCDPointInfo,huc8Info:t.mapconfig.huc8Info,searchMethod:t.mapconfig.searchMethod,hoverInfo:t.mapconfig.hoverInfo});case"MAP_GET_HOVER_INFO":return a({},e,{mapconfig:t.mapconfig,layerinfo:t.mapconfig.layerInfo,traInfo:t.mapconfig.traInfo,traPointInfo:t.mapconfig.traPointInfo,NLCDPointInfo:t.mapconfig.NLCDPointInfo,huc8Info:t.mapconfig.huc8Info,searchMethod:t.mapconfig.searchMethod,hoverInfo:t.mapconfig.hoverInfo});case"SET_SEARCH_METHOD":return a({},e,{mapconfig:t.mapconfig,layerinfo:t.mapconfig.layerInfo,traInfo:t.mapconfig.traInfo,traPointInfo:t.mapconfig.traPointInfo,NLCDPointInfo:t.mapconfig.NLCDPointInfo,huc8Info:t.mapconfig.huc8Info,searchMethod:t.mapconfig.searchMethod,hoverInfo:t.mapconfig.hoverInfo});case"TRA_GEOMETRY":return a({},e,{mapconfig:t.mapconfig,layerinfo:t.mapconfig.layerInfo,traInfo:t.mapconfig.traInfo,traPointInfo:t.mapconfig.traPointInfo,NLCDPointInfo:t.mapconfig.NLCDPointInfo,huc8Info:t.mapconfig.huc8Info,searchMethod:t.mapconfig.searchMethod,hoverInfo:t.mapconfig.hoverInfo});default:return e}return e}function r(){var e=arguments.length<=0||void 0===arguments[0]?[]:arguments[0],t=arguments[1];switch(t.type){case"GET_GEOMETRIES":return a({},e,{geometries:t.geometries});default:return e}}function o(){var e=arguments.length<=0||void 0===arguments[0]?[]:arguments[0],t=arguments[1];switch(t.type){case"SET_ACTIVE_HOVER":return a({},e,{active_hover:t.active_hover});default:return e}}function i(){var e=arguments.length<=0||void 0===arguments[0]?[]:arguments[0],t=arguments[1];switch(t.type){case"FETCHING_MAP":return a({},e,{fetching_map:t.fetching});default:return e}}Object.defineProperty(t,"__esModule",{value:!0});var a=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};t.mapConfig=n,t.geometries=r,t.active_hover=o,t.fetching_map=i},function(e,t){"use strict";function n(){var e=arguments.length<=0||void 0===arguments[0]?[]:arguments[0],t=arguments[1];switch(t.type){case"GET_TRA_DATA":return o({},e,{tra_data:t.tra_data});case"GET_TRA_GEOM":return o({},e,{tra_data:t.tra_data});default:return e}}function r(){var e=arguments.length<=0||void 0===arguments[0]?[]:arguments[0],t=arguments[1];switch(t.type){case"FETCHING_TRA":return o({},e,{fetching_tra:t.fetching});default:return e}}Object.defineProperty(t,"__esModule",{value:!0});var o=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};t.traData=n,t.fetching_tra=r},function(e,t){"use strict";function n(){var e=arguments.length<=0||void 0===arguments[0]?[]:arguments[0],t=arguments[1];switch(t.type){case"SET_CONSTANTS":return r({},e,{constants:t.constants});default:return e}}Object.defineProperty(t,"__esModule",{value:!0});var r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};t.constants=n},function(e,t){"use strict";function n(){var e=arguments.length<=0||void 0===arguments[0]?[]:arguments[0],t=arguments[1];switch(t.type){case"GET_MENU_LIST":return o({},e,{lists:t.lists});default:return e}return e}function r(){var e=arguments.length<=0||void 0===arguments[0]?[]:arguments[0],t=arguments[1];switch(t.type){case"FETCHING_MENUS":return o({},e,{fetching_menu:t.fetching});default:return e}}Object.defineProperty(t,"__esModule",{value:!0});var o=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};t.menuLists=n,t.fetching_menu=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(23),o=n(223),i=(n(28),n(390)),a=n(383),s=n(385),u=n(387),l=n(384),c=n(386),p=n(388),f=n(389),h=(0,r.combineReducers)({menuLists:i.menuLists,chartDataByID:a.chartDataByID,AllChartDataByID:a.AllChartDataByID,chartData:a.chartData,traData:p.traData,geography_levels:s.geography_levels,change_geographyLevelActive:s.change_geographyLevelActive,mapConfig:u.mapConfig,default_settings:l.default_settings,leafletMap:c.leafletMap,routing:o.routerReducer,fetching_chart:a.fetching_chart,fetching_map:u.fetching_map,fetching_tra:p.fetching_tra,fetching_geo:s.fetching_geo,fetching_menu:i.fetching_menu,NLCDDATA:a.NLCDDATA,CATCHMENTDATA:a.CATCHMENTDATA,hoverInfo:u.hoverInfo,active_function:a.active_function,chart_limit:a.chart_limit,active_hover:u.active_hover,geometries:u.geometries,imagery_visibility:c.imagery_visibility,constants:f.constants,chart_buttons:a.chart_buttons});t["default"]=h},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}var o=n(1),i=r(o),a=n(373),s=r(a),u=n(194),l=r(u),c=n(381),p=r(c),f=n(196),h=r(f),d=n(231),y=n(30),m=n(393),v=r(m),g=i["default"].createElement(y.Provider,{store:v["default"]},i["default"].createElement(d.Router,{history:d.hashHistory},i["default"].createElement(d.Route,{path:"/",component:s["default"]},i["default"].createElement(d.IndexRoute,{component:l["default"]})),i["default"].createElement(d.Route,{path:"/Resources",component:p["default"]},i["default"].createElement(d.IndexRoute,{component:h["default"]}))));e.exports=g},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(t,"__esModule",{value:!0}),t.history=void 0;var o=n(23),i=n(223),a=n(231),s=n(753),u=r(s),l=n(391),c=r(l),p=(0,o.createStore)(c["default"],(0,o.applyMiddleware)(u["default"]));t.history=(0,i.syncHistoryWithStore)(a.browserHistory,p);t["default"]=p},function(e,t,n){"use strict";e.exports=n(592)},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==("undefined"==typeof t?"undefined":s(t))&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+("undefined"==typeof t?"undefined":s(t)));e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol?"symbol":typeof e};Object.defineProperty(t,"__esModule",{value:!0});var u=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),l=n(1),c=n(5),p=n(72),f=r(p),h=function(e){function t(){return o(this,t),i(this,Object.getPrototypeOf(t).apply(this,arguments))}return a(t,e),u(t,[{key:"componentWillMount",value:function(){this.leafletElement=c.control.attribution(this.props)}}]),t}(f["default"]);h.propTypes={prefix:l.PropTypes.string},t["default"]=h},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==("undefined"==typeof t?"undefined":u(t))&&"function"!=typeof t?e:t}function s(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+("undefined"==typeof t?"undefined":u(t)));e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol?"symbol":typeof e};Object.defineProperty(t,"__esModule",{value:!0});var l=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),c=function y(e,t,n){null===e&&(e=Function.prototype);var r=Object.getOwnPropertyDescriptor(e,t);if(void 0===r){var o=Object.getPrototypeOf(e);return null===o?void 0:y(o,t,n)}if("value"in r)return r.value;var i=r.get;if(void 0!==i)return i.call(n)},p=n(5),f=n(87),h=r(f),d=function(e){function t(){return i(this,t),a(this,Object.getPrototypeOf(t).apply(this,arguments))}return s(t,e),l(t,[{key:"componentWillMount",value:function(){c(Object.getPrototypeOf(t.prototype),"componentWillMount",this).call(this);var e=this.props,n=(e.map,o(e,["map"]));this.leafletElement=p.tileLayer.canvas(n)}}]),t}(h["default"]);t["default"]=d},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==("undefined"==typeof t?"undefined":u(t))&&"function"!=typeof t?e:t}function s(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+("undefined"==typeof t?"undefined":u(t)));e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol?"symbol":typeof e};Object.defineProperty(t,"__esModule",{value:!0});var l=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),c=function g(e,t,n){null===e&&(e=Function.prototype);var r=Object.getOwnPropertyDescriptor(e,t);if(void 0===r){var o=Object.getPrototypeOf(e);return null===o?void 0:g(o,t,n)}if("value"in r)return r.value;var i=r.get;if(void 0!==i)return i.call(n)},p=n(1),f=n(5),h=n(52),d=r(h),y=n(29),m=r(y),v=function(e){function t(){return i(this,t),a(this,Object.getPrototypeOf(t).apply(this,arguments))}return s(t,e),l(t,[{key:"componentWillMount",value:function(){c(Object.getPrototypeOf(t.prototype),"componentWillMount",this).call(this);var e=this.props,n=e.center,r=(e.map,e.radius),i=o(e,["center","map","radius"]);this.leafletElement=(0,f.circle)(n,r,i)}},{key:"componentDidUpdate",value:function(e){this.props.center!==e.center&&this.leafletElement.setLatLng(this.props.center),this.props.radius!==e.radius&&this.leafletElement.setRadius(this.props.radius),this.setStyleIfChanged(e,this.props)}}]),t}(m["default"]);v.propTypes={center:d["default"].isRequired,radius:p.PropTypes.number.isRequired},t["default"]=v},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==("undefined"==typeof t?"undefined":u(t))&&"function"!=typeof t?e:t}function s(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+("undefined"==typeof t?"undefined":u(t)));e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol?"symbol":typeof e};Object.defineProperty(t,"__esModule",{value:!0});var l=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),c=function g(e,t,n){null===e&&(e=Function.prototype);var r=Object.getOwnPropertyDescriptor(e,t);if(void 0===r){var o=Object.getPrototypeOf(e);return null===o?void 0:g(o,t,n)}if("value"in r)return r.value;var i=r.get;if(void 0!==i)return i.call(n)},p=n(1),f=n(5),h=n(52),d=r(h),y=n(29),m=r(y),v=function(e){function t(){return i(this,t),a(this,Object.getPrototypeOf(t).apply(this,arguments))}return s(t,e),l(t,[{key:"componentWillMount",value:function(){c(Object.getPrototypeOf(t.prototype),"componentWillMount",this).call(this);var e=this.props,n=e.center,r=(e.map,o(e,["center","map"]));this.leafletElement=(0,f.circleMarker)(n,r)}},{key:"componentDidUpdate",value:function(e){this.props.center!==e.center&&this.leafletElement.setLatLng(this.props.center),this.props.radius!==e.radius&&this.leafletElement.setRadius(this.props.radius),this.setStyleIfChanged(e,this.props)}}]),t}(m["default"]);v.propTypes={center:d["default"].isRequired,radius:p.PropTypes.number},t["default"]=v},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==("undefined"==typeof t?"undefined":s(t))&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+("undefined"==typeof t?"undefined":s(t)));e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol?"symbol":typeof e};Object.defineProperty(t,"__esModule",{value:!0});var u=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),l=function d(e,t,n){null===e&&(e=Function.prototype);var r=Object.getOwnPropertyDescriptor(e,t);if(void 0===r){var o=Object.getPrototypeOf(e);return null===o?void 0:d(o,t,n)}if("value"in r)return r.value;var i=r.get;if(void 0!==i)return i.call(n)},c=n(5),p=n(29),f=r(p),h=function(e){function t(){return o(this,t),i(this,Object.getPrototypeOf(t).apply(this,arguments))}return a(t,e),u(t,[{key:"componentWillMount",value:function(){this.leafletElement=(0,c.featureGroup)()}},{key:"componentDidMount",value:function(){l(Object.getPrototypeOf(t.prototype),"componentDidMount",this).call(this),this.setStyle(this.props)}},{key:"componentDidUpdate",value:function(e){this.setStyleIfChanged(e,this.props)}},{key:"render",value:function(){return this.renderChildrenWithProps({layerGroup:this.leafletElement,popupContainer:this.leafletElement})}}]),t}(f["default"]);t["default"]=h},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==("undefined"==typeof t?"undefined":u(t))&&"function"!=typeof t?e:t}function s(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+("undefined"==typeof t?"undefined":u(t)));e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol?"symbol":typeof e};Object.defineProperty(t,"__esModule",{value:!0});var l=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),c=function m(e,t,n){null===e&&(e=Function.prototype);var r=Object.getOwnPropertyDescriptor(e,t);
  if(void 0===r){var o=Object.getPrototypeOf(e);return null===o?void 0:m(o,t,n)}if("value"in r)return r.value;var i=r.get;if(void 0!==i)return i.call(n)},p=n(1),f=n(5),h=n(29),d=r(h),y=function(e){function t(){return i(this,t),a(this,Object.getPrototypeOf(t).apply(this,arguments))}return s(t,e),l(t,[{key:"componentWillMount",value:function(){c(Object.getPrototypeOf(t.prototype),"componentWillMount",this).call(this);var e=this.props,n=e.data,r=(e.map,o(e,["data","map"]));this.leafletElement=(0,f.geoJson)(n,r)}},{key:"componentDidUpdate",value:function(e){this.setStyleIfChanged(e,this.props)}}]),t}(d["default"]);y.propTypes={data:p.PropTypes.object.isRequired},t["default"]=y},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==("undefined"==typeof t?"undefined":u(t))&&"function"!=typeof t?e:t}function s(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+("undefined"==typeof t?"undefined":u(t)));e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol?"symbol":typeof e};Object.defineProperty(t,"__esModule",{value:!0});var l=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),c=function g(e,t,n){null===e&&(e=Function.prototype);var r=Object.getOwnPropertyDescriptor(e,t);if(void 0===r){var o=Object.getPrototypeOf(e);return null===o?void 0:g(o,t,n)}if("value"in r)return r.value;var i=r.get;if(void 0!==i)return i.call(n)},p=n(1),f=n(5),h=n(89),d=r(h),y=n(61),m=r(y),v=function(e){function t(){return i(this,t),a(this,Object.getPrototypeOf(t).apply(this,arguments))}return s(t,e),l(t,[{key:"componentWillMount",value:function(){c(Object.getPrototypeOf(t.prototype),"componentWillMount",this).call(this);var e=this.props,n=e.bounds,r=(e.map,e.url),i=o(e,["bounds","map","url"]);this.leafletElement=(0,f.imageOverlay)(r,n,i)}},{key:"componentDidUpdate",value:function(e){this.props.url!==e.url&&this.leafletElement.setUrl(this.props.url),this.props.opacity!==e.opacity&&this.leafletElement.setOpacity(this.props.opacity)}},{key:"render",value:function(){return null}}]),t}(m["default"]);v.propTypes={attribution:p.PropTypes.string,bounds:d["default"].isRequired,map:p.PropTypes.instanceOf(f.Map),opacity:p.PropTypes.number,url:p.PropTypes.string.isRequired},t["default"]=v},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==("undefined"==typeof t?"undefined":s(t))&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+("undefined"==typeof t?"undefined":s(t)));e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol?"symbol":typeof e};Object.defineProperty(t,"__esModule",{value:!0});var u=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),l=function d(e,t,n){null===e&&(e=Function.prototype);var r=Object.getOwnPropertyDescriptor(e,t);if(void 0===r){var o=Object.getPrototypeOf(e);return null===o?void 0:d(o,t,n)}if("value"in r)return r.value;var i=r.get;if(void 0!==i)return i.call(n)},c=n(5),p=n(61),f=r(p),h=function(e){function t(){return o(this,t),i(this,Object.getPrototypeOf(t).apply(this,arguments))}return a(t,e),u(t,[{key:"componentWillMount",value:function(){l(Object.getPrototypeOf(t.prototype),"componentWillMount",this).call(this),this.leafletElement=(0,c.layerGroup)()}},{key:"render",value:function(){return this.renderChildrenWithProps({layerGroup:this.leafletElement})}}]),t}(f["default"]);t["default"]=h},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==("undefined"==typeof t?"undefined":u(t))&&"function"!=typeof t?e:t}function s(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+("undefined"==typeof t?"undefined":u(t)));e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol?"symbol":typeof e};Object.defineProperty(t,"__esModule",{value:!0});var l=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),c=n(1),p=n(5),f=n(72),h=r(f),d=function(e){function t(){return i(this,t),a(this,Object.getPrototypeOf(t).apply(this,arguments))}return s(t,e),l(t,[{key:"componentWillMount",value:function(){var e=this.props,t=e.baseLayers,n=e.overlays,r=o(e,["baseLayers","overlays"]);this.leafletElement=p.control.layers(t,n,r)}}]),t}(h["default"]);d.propTypes={baseLayers:c.PropTypes.object,overlays:c.PropTypes.object},t["default"]=d},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==("undefined"==typeof t?"undefined":s(t))&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+("undefined"==typeof t?"undefined":s(t)));e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol?"symbol":typeof e};Object.defineProperty(t,"__esModule",{value:!0});var u=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),l=function S(e,t,n){null===e&&(e=Function.prototype);var r=Object.getOwnPropertyDescriptor(e,t);if(void 0===r){var o=Object.getPrototypeOf(e);return null===o?void 0:S(o,t,n)}if("value"in r)return r.value;var i=r.get;if(void 0!==i)return i.call(n)},c=n(18),p=r(c),f=n(509),h=r(f),d=n(518),y=r(d),m=n(1),v=r(m),g=n(5),_=r(g),b=n(89),T=r(b),P=n(52),x=r(P),E=n(88),O=r(E),w=function(e){return(0,p["default"])(e)?e:[e.lat,e.lng||e.lon]},C=function(e){function t(e){o(this,t);var n=i(this,Object.getPrototypeOf(t).call(this,e));return n.state={id:e.id||(0,y["default"])("map")},n}return a(t,e),u(t,[{key:"componentDidMount",value:function(){this.leafletElement=_["default"].map(this.state.id,this.props),l(Object.getPrototypeOf(t.prototype),"componentDidMount",this).call(this),this.setState({map:this.leafletElement}),(0,h["default"])(this.props.bounds)||this.leafletElement.fitBounds(this.props.bounds,this.props.boundsOptions)}},{key:"componentDidUpdate",value:function(e){var t=this.props,n=t.bounds,r=t.center,o=t.maxBounds,i=t.zoom,a=t.animate;r&&this.shouldUpdateCenter(r,e.center)?this.leafletElement.setView(r,i,{animate:a}):i&&i!==e.zoom&&this.leafletElement.setZoom(i),o&&this.shouldUpdateBounds(o,e.maxBounds)&&this.leafletElement.setMaxBounds(o),n&&this.shouldUpdateBounds(n,e.bounds)&&this.leafletElement.fitBounds(n,this.props.boundsOptions)}},{key:"componentWillUnmount",value:function(){l(Object.getPrototypeOf(t.prototype),"componentWillUnmount",this).call(this),this.leafletElement.remove()}},{key:"shouldUpdateCenter",value:function(e,t){return t?(e=w(e),t=w(t),e[0]!==t[0]||e[1]!==t[1]):!0}},{key:"shouldUpdateBounds",value:function(e,t){return t?(e=_["default"].latLngBounds(e),t=_["default"].latLngBounds(t),!e.equals(t)):!0}},{key:"render",value:function(){var e=this.leafletElement,t=e?v["default"].Children.map(this.props.children,function(t){return t?v["default"].cloneElement(t,{map:e}):null}):null;return v["default"].createElement("div",{className:this.props.className,id:this.state.id,style:this.props.style},t)}}]),t}(O["default"]);C.propTypes={animate:m.PropTypes.bool,bounds:T["default"],boundsOptions:m.PropTypes.object,center:x["default"],children:m.PropTypes.oneOfType([m.PropTypes.arrayOf(m.PropTypes.node),m.PropTypes.node]),className:m.PropTypes.string,id:m.PropTypes.string,maxBounds:T["default"],maxZoom:m.PropTypes.number,minZoom:m.PropTypes.number,style:m.PropTypes.object,zoom:m.PropTypes.number},C.defaultProps={animate:!1},t["default"]=C},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==("undefined"==typeof t?"undefined":u(t))&&"function"!=typeof t?e:t}function s(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+("undefined"==typeof t?"undefined":u(t)));e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol?"symbol":typeof e};Object.defineProperty(t,"__esModule",{value:!0});var l=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),c=function g(e,t,n){null===e&&(e=Function.prototype);var r=Object.getOwnPropertyDescriptor(e,t);if(void 0===r){var o=Object.getPrototypeOf(e);return null===o?void 0:g(o,t,n)}if("value"in r)return r.value;var i=r.get;if(void 0!==i)return i.call(n)},p=n(1),f=n(5),h=n(52),d=r(h),y=n(61),m=r(y),v=function(e){function t(){return i(this,t),a(this,Object.getPrototypeOf(t).apply(this,arguments))}return s(t,e),l(t,[{key:"componentWillMount",value:function(){c(Object.getPrototypeOf(t.prototype),"componentWillMount",this).call(this);var e=this.props,n=(e.map,e.position),r=o(e,["map","position"]);this.leafletElement=(0,f.marker)(n,r)}},{key:"componentDidUpdate",value:function(e){this.props.position!==e.position&&this.leafletElement.setLatLng(this.props.position),this.props.icon!==e.icon&&this.leafletElement.setIcon(this.props.icon),this.props.zIndexOffset!==e.zIndexOffset&&this.leafletElement.setZIndexOffset(this.props.zIndexOffset),this.props.opacity!==e.opacity&&this.leafletElement.setOpacity(this.props.opacity)}},{key:"render",value:function(){return this.renderChildrenWithProps({popupContainer:this.leafletElement})}}]),t}(m["default"]);v.propTypes={icon:p.PropTypes.instanceOf(f.Icon),opacity:p.PropTypes.number,position:d["default"].isRequired,zIndexOffset:p.PropTypes.number},t["default"]=v},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==("undefined"==typeof t?"undefined":u(t))&&"function"!=typeof t?e:t}function s(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+("undefined"==typeof t?"undefined":u(t)));e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol?"symbol":typeof e};Object.defineProperty(t,"__esModule",{value:!0});var l=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),c=function g(e,t,n){null===e&&(e=Function.prototype);var r=Object.getOwnPropertyDescriptor(e,t);if(void 0===r){var o=Object.getPrototypeOf(e);return null===o?void 0:g(o,t,n)}if("value"in r)return r.value;var i=r.get;if(void 0!==i)return i.call(n)},p=n(1),f=n(5),h=n(62),d=r(h),y=n(29),m=r(y),v=function(e){function t(){return i(this,t),a(this,Object.getPrototypeOf(t).apply(this,arguments))}return s(t,e),l(t,[{key:"componentWillMount",value:function(){c(Object.getPrototypeOf(t.prototype),"componentWillMount",this).call(this);var e=this.props,n=(e.map,e.polygons),r=o(e,["map","polygons"]);this.leafletElement=(0,f.multiPolygon)(n,r)}},{key:"componentDidUpdate",value:function(e){this.props.polygons!==e.polygons&&this.leafletElement.setLatLngs(this.props.polygons),this.setStyleIfChanged(e,this.props)}}]),t}(m["default"]);v.propTypes={polygons:p.PropTypes.arrayOf(d["default"]).isRequired},t["default"]=v},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==("undefined"==typeof t?"undefined":u(t))&&"function"!=typeof t?e:t}function s(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+("undefined"==typeof t?"undefined":u(t)));e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol?"symbol":typeof e};Object.defineProperty(t,"__esModule",{value:!0});var l=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),c=function g(e,t,n){null===e&&(e=Function.prototype);var r=Object.getOwnPropertyDescriptor(e,t);if(void 0===r){var o=Object.getPrototypeOf(e);return null===o?void 0:g(o,t,n)}if("value"in r)return r.value;var i=r.get;if(void 0!==i)return i.call(n)},p=n(1),f=n(5),h=n(62),d=r(h),y=n(29),m=r(y),v=function(e){function t(){return i(this,t),a(this,Object.getPrototypeOf(t).apply(this,arguments))}return s(t,e),l(t,[{key:"componentWillMount",value:function(){c(Object.getPrototypeOf(t.prototype),"componentWillMount",this).call(this);var e=this.props,n=(e.map,e.polylines),r=o(e,["map","polylines"]);this.leafletElement=(0,f.multiPolyline)(n,r)}},{key:"componentDidUpdate",value:function(e){this.props.polylines!==e.polylines&&this.leafletElement.setLatLngs(this.props.polylines),this.setStyleIfChanged(e,this.props)}}]),t}(m["default"]);v.propTypes={polylines:p.PropTypes.arrayOf(d["default"]).isRequired},t["default"]=v},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==("undefined"==typeof t?"undefined":u(t))&&"function"!=typeof t?e:t}function s(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+("undefined"==typeof t?"undefined":u(t)));e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol?"symbol":typeof e};Object.defineProperty(t,"__esModule",{value:!0});var l=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),c=function g(e,t,n){null===e&&(e=Function.prototype);var r=Object.getOwnPropertyDescriptor(e,t);if(void 0===r){var o=Object.getPrototypeOf(e);return null===o?void 0:g(o,t,n)}if("value"in r)return r.value;var i=r.get;if(void 0!==i)return i.call(n)},p=n(1),f=n(5),h=n(62),d=r(h),y=n(29),m=r(y),v=function(e){function t(){return i(this,t),a(this,Object.getPrototypeOf(t).apply(this,arguments))}return s(t,e),l(t,[{key:"componentWillMount",value:function(){c(Object.getPrototypeOf(t.prototype),"componentWillMount",this).call(this);var e=this.props,n=(e.map,e.positions),r=o(e,["map","positions"]);this.leafletElement=(0,f.polygon)(n,r)}},{key:"componentDidUpdate",value:function(e){this.props.positions!==e.positions&&this.leafletElement.setLatLngs(this.props.positions),this.setStyleIfChanged(e,this.props)}}]),t}(m["default"]);v.propTypes={positions:p.PropTypes.oneOfType([d["default"],p.PropTypes.arrayOf(d["default"])]).isRequired},t["default"]=v},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==("undefined"==typeof t?"undefined":u(t))&&"function"!=typeof t?e:t}function s(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+("undefined"==typeof t?"undefined":u(t)));e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol?"symbol":typeof e};Object.defineProperty(t,"__esModule",{value:!0});var l=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),c=function v(e,t,n){null===e&&(e=Function.prototype);var r=Object.getOwnPropertyDescriptor(e,t);if(void 0===r){var o=Object.getPrototypeOf(e);return null===o?void 0:v(o,t,n)}if("value"in r)return r.value;var i=r.get;if(void 0!==i)return i.call(n)},p=n(5),f=n(62),h=r(f),d=n(29),y=r(d),m=function(e){function t(){return i(this,t),a(this,Object.getPrototypeOf(t).apply(this,arguments))}return s(t,e),l(t,[{key:"componentWillMount",value:function(){c(Object.getPrototypeOf(t.prototype),"componentWillMount",this).call(this);var e=this.props,n=(e.map,e.positions),r=o(e,["map","positions"]);this.leafletElement=(0,p.polyline)(n,r)}},{key:"componentDidUpdate",value:function(e){this.props.positions!==e.positions&&this.leafletElement.setLatLngs(this.props.positions),this.setStyleIfChanged(e,this.props)}}]),t}(y["default"]);m.propTypes={positions:h["default"].isRequired},t["default"]=m},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==("undefined"==typeof t?"undefined":u(t))&&"function"!=typeof t?e:t}function s(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+("undefined"==typeof t?"undefined":u(t)));e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol?"symbol":typeof e};Object.defineProperty(t,"__esModule",{value:!0});var l=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),c=function _(e,t,n){null===e&&(e=Function.prototype);var r=Object.getOwnPropertyDescriptor(e,t);if(void 0===r){var o=Object.getPrototypeOf(e);return null===o?void 0:_(o,t,n)}if("value"in r)return r.value;var i=r.get;if(void 0!==i)return i.call(n)},p=n(1),f=n(60),h=n(5),d=n(52),y=r(d),m=n(88),v=r(m),g=function(e){function t(){return i(this,t),a(this,Object.getPrototypeOf(t).apply(this,arguments))}return s(t,e),l(t,[{key:"componentWillMount",value:function(){c(Object.getPrototypeOf(t.prototype),"componentWillMount",this).call(this);var e=this.props,n=(e.children,e.map,e.popupContainer),r=o(e,["children","map","popupContainer"]);this.leafletElement=(0,h.popup)(r,n),this.leafletElement.on("open",this.renderPopupContent.bind(this)),this.leafletElement.on("close",this.removePopupContent.bind(this))}},{key:"componentDidMount",value:function(){var e=this.props,t=e.map,n=e.popupContainer,r=e.position,o=this.leafletElement;n?n.bindPopup(o):(r&&o.setLatLng(r),o.openOn(t))}},{key:"componentDidUpdate",value:function(e){var t=this.props.position;t!==e.position&&this.leafletElement.setLatLng(t),this.leafletElement._isOpen&&this.renderPopupContent()}},{key:"componentWillUnmount",value:function(){c(Object.getPrototypeOf(t.prototype),"componentWillUnmount",this).call(this),this.removePopupContent(),this.props.map.removeLayer(this.leafletElement)}},{key:"renderPopupContent",value:function(){this.props.children?((0,f.render)(p.Children.only(this.props.children),this.leafletElement._contentNode),this.leafletElement._updateLayout(),this.leafletElement._updatePosition(),this.leafletElement._adjustPan()):this.removePopupContent()}},{key:"removePopupContent",value:function(){this.leafletElement._contentNode&&(0,f.unmountComponentAtNode)(this.leafletElement._contentNode)}},{key:"render",value:function(){return null}}]),t}(v["default"]);g.propTypes={children:p.PropTypes.node,map:p.PropTypes.instanceOf(h.Map),popupContainer:p.PropTypes.object,position:y["default"]},t["default"]=g},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==("undefined"==typeof t?"undefined":u(t))&&"function"!=typeof t?e:t}function s(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+("undefined"==typeof t?"undefined":u(t)));e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol?"symbol":typeof e};Object.defineProperty(t,"__esModule",{value:!0});var l=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),c=function v(e,t,n){null===e&&(e=Function.prototype);var r=Object.getOwnPropertyDescriptor(e,t);if(void 0===r){var o=Object.getPrototypeOf(e);return null===o?void 0:v(o,t,n)}if("value"in r)return r.value;var i=r.get;if(void 0!==i)return i.call(n)},p=n(5),f=n(89),h=r(f),d=n(29),y=r(d),m=function(e){function t(){return i(this,t),a(this,Object.getPrototypeOf(t).apply(this,arguments))}return s(t,e),l(t,[{key:"componentWillMount",value:function(){c(Object.getPrototypeOf(t.prototype),"componentWillMount",this).call(this);var e=this.props,n=e.bounds,r=(e.map,o(e,["bounds","map"]));this.leafletElement=(0,p.rectangle)(n,r)}},{key:"componentDidUpdate",value:function(e){this.props.bounds!==e.bounds&&this.leafletElement.setBounds(this.props.bounds),this.setStyleIfChanged(e,this.props)}}]),t}(y["default"]);m.propTypes={bounds:h["default"].isRequired},t["default"]=m},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==("undefined"==typeof t?"undefined":s(t))&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+("undefined"==typeof t?"undefined":s(t)));e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol?"symbol":typeof e};Object.defineProperty(t,"__esModule",{value:!0});var u=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),l=n(1),c=n(5),p=n(72),f=r(p),h=function(e){function t(){return o(this,t),i(this,Object.getPrototypeOf(t).apply(this,arguments))}return a(t,e),u(t,[{key:"componentWillMount",value:function(){this.leafletElement=c.control.scale(this.props)}}]),t}(f["default"]);h.propTypes={imperial:l.PropTypes.bool,maxWidth:l.PropTypes.number,metric:l.PropTypes.bool,updateWhenIdle:l.PropTypes.bool},t["default"]=h},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==("undefined"==typeof t?"undefined":u(t))&&"function"!=typeof t?e:t}function s(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+("undefined"==typeof t?"undefined":u(t)));e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol?"symbol":typeof e};Object.defineProperty(t,"__esModule",{value:!0});var l=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),c=function m(e,t,n){null===e&&(e=Function.prototype);var r=Object.getOwnPropertyDescriptor(e,t);if(void 0===r){var o=Object.getPrototypeOf(e);return null===o?void 0:m(o,t,n)}if("value"in r)return r.value;var i=r.get;if(void 0!==i)return i.call(n)},p=n(1),f=n(5),h=n(87),d=r(h),y=function(e){function t(){return i(this,t),a(this,Object.getPrototypeOf(t).apply(this,arguments))}return s(t,e),l(t,[{key:"componentWillMount",value:function(){c(Object.getPrototypeOf(t.prototype),"componentWillMount",this).call(this);var e=this.props,n=(e.map,e.url),r=o(e,["map","url"]);this.leafletElement=(0,f.tileLayer)(n,r)}},{key:"componentDidUpdate",value:function(e){var t=this.props.url;t&&t!==e.url&&this.leafletElement.setUrl(t)}}]),t}(d["default"]);y.propTypes={url:p.PropTypes.string.isRequired},t["default"]=y},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==("undefined"==typeof t?"undefined":u(t))&&"function"!=typeof t?e:t}function s(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+("undefined"==typeof t?"undefined":u(t)));e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0
  }}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol?"symbol":typeof e};Object.defineProperty(t,"__esModule",{value:!0});var l=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),c=function m(e,t,n){null===e&&(e=Function.prototype);var r=Object.getOwnPropertyDescriptor(e,t);if(void 0===r){var o=Object.getPrototypeOf(e);return null===o?void 0:m(o,t,n)}if("value"in r)return r.value;var i=r.get;if(void 0!==i)return i.call(n)},p=n(1),f=n(5),h=n(87),d=r(h),y=function(e){function t(){return i(this,t),a(this,Object.getPrototypeOf(t).apply(this,arguments))}return s(t,e),l(t,[{key:"componentWillMount",value:function(){c(Object.getPrototypeOf(t.prototype),"componentWillMount",this).call(this);var e=this.props,n=(e.map,e.url),r=o(e,["map","url"]);this.leafletElement=f.tileLayer.wms(n,r)}}]),t}(d["default"]);y.propTypes={url:p.PropTypes.string.isRequired},t["default"]=y},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==("undefined"==typeof t?"undefined":s(t))&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+("undefined"==typeof t?"undefined":s(t)));e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol?"symbol":typeof e};Object.defineProperty(t,"__esModule",{value:!0});var u=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),l=n(1),c=n(5),p=n(72),f=r(p),h=function(e){function t(){return o(this,t),i(this,Object.getPrototypeOf(t).apply(this,arguments))}return a(t,e),u(t,[{key:"componentWillMount",value:function(){this.leafletElement=c.control.zoom(this.props)}}]),t}(f["default"]);h.propTypes={zoomInText:l.PropTypes.string,zoomInTitle:l.PropTypes.string,zoomOutText:l.PropTypes.string,zoomOutTitle:l.PropTypes.string},t["default"]=h},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(t,"__esModule",{value:!0}),t.latlngList=t.latlng=t.controlPosition=t.bounds=void 0;var o=n(89),i=r(o),a=n(198),s=r(a),u=n(52),l=r(u),c=n(62),p=r(c);t.bounds=i["default"],t.controlPosition=s["default"],t.latlng=l["default"],t.latlngList=p["default"]},function(e,t,n){"use strict";var r=n(63),o=n(42),i=r(o,"DataView");e.exports=i},function(e,t,n){"use strict";function r(e){var t=-1,n=e?e.length:0;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}var o=n(466),i=n(467),a=n(468),s=n(469),u=n(470);r.prototype.clear=o,r.prototype["delete"]=i,r.prototype.get=a,r.prototype.has=s,r.prototype.set=u,e.exports=r},function(e,t,n){"use strict";var r=n(63),o=n(42),i=r(o,"Promise");e.exports=i},function(e,t,n){"use strict";var r=n(63),o=n(42),i=r(o,"Set");e.exports=i},function(e,t,n){"use strict";function r(e){var t=-1,n=e?e.length:0;for(this.__data__=new o;++t<n;)this.add(e[t])}var o=n(124),i=n(488),a=n(489);r.prototype.add=r.prototype.push=i,r.prototype.has=a,e.exports=r},function(e,t,n){"use strict";var r=n(63),o=n(42),i=r(o,"WeakMap");e.exports=i},function(e,t){"use strict";function n(e,t){return e.set(t[0],t[1]),e}e.exports=n},function(e,t){"use strict";function n(e,t){return e.add(t),e}e.exports=n},function(e,t){"use strict";function n(e,t,n){var r=n.length;switch(r){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}e.exports=n},function(e,t){"use strict";function n(e,t){for(var n=-1,r=e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}e.exports=n},function(e,t,n){"use strict";function r(e,t){return e&&o(t,i(t),e)}var o=n(130),i=n(44);e.exports=r},function(e,t,n){"use strict";function r(e,t,n,P,x,E,O){var S;if(P&&(S=E?P(e,x,E,O):P(e)),void 0!==S)return S;if(!_(e))return e;var M=m(e);if(M){if(S=h(e),!t)return l(e,S)}else{var k=f(e),L=k==w||k==C;if(v(e))return u(e,t);if(k==A||k==T||L&&!E){if(g(e))return E?e:{};if(S=y(L?{}:e),!t)return c(e,s(S,e))}else{if(!Z[k])return E?e:{};S=d(e,k,r,t)}}O||(O=new o);var I=O.get(e);if(I)return I;if(O.set(e,S),!M)var R=n?p(e):b(e);return i(R||e,function(o,i){R&&(i=o,o=e[i]),a(S,i,r(o,t,n,P,i,e,O))}),S}var o=n(125),i=n(201),a=n(127),s=n(427),u=n(447),l=n(454),c=n(455),p=n(462),f=n(131),h=n(472),d=n(473),y=n(474),m=n(18),v=n(505),g=n(132),_=n(43),b=n(44),T="[object Arguments]",P="[object Array]",x="[object Boolean]",E="[object Date]",O="[object Error]",w="[object Function]",C="[object GeneratorFunction]",S="[object Map]",M="[object Number]",A="[object Object]",k="[object RegExp]",L="[object Set]",I="[object String]",R="[object Symbol]",D="[object WeakMap]",N="[object ArrayBuffer]",j="[object DataView]",U="[object Float32Array]",B="[object Float64Array]",F="[object Int8Array]",H="[object Int16Array]",z="[object Int32Array]",G="[object Uint8Array]",W="[object Uint8ClampedArray]",V="[object Uint16Array]",q="[object Uint32Array]",Z={};Z[T]=Z[P]=Z[N]=Z[j]=Z[x]=Z[E]=Z[U]=Z[B]=Z[F]=Z[H]=Z[z]=Z[S]=Z[M]=Z[A]=Z[k]=Z[L]=Z[I]=Z[R]=Z[G]=Z[W]=Z[V]=Z[q]=!0,Z[O]=Z[w]=Z[D]=!1,e.exports=r},function(e,t,n){"use strict";function r(e){return o(e)?i(e):{}}var o=n(43),i=Object.create;e.exports=r},function(e,t,n){"use strict";function r(e,t,n,a,s){var u=-1,l=e.length;for(n||(n=i),s||(s=[]);++u<l;){var c=e[u];t>0&&n(c)?t>1?r(c,t-1,n,a,s):o(s,c):a||(s[s.length]=c)}return s}var o=n(203),i=n(475);e.exports=r},function(e,t,n){"use strict";var r=n(458),o=r();e.exports=o},function(e,t,n){"use strict";function r(e,t){return e&&o(e,t,i)}var o=n(431),i=n(44);e.exports=r},function(e,t,n){"use strict";function r(e,t,n){var r=t(e);return i(e)?r:o(r,n(e))}var o=n(203),i=n(18);e.exports=r},function(e,t){"use strict";function n(e,t){return t in Object(e)}e.exports=n},function(e,t,n){"use strict";function r(e,t,n,r,m,g){var _=l(e),b=l(t),T=d,P=d;_||(T=u(e),T=T==h?y:T),b||(P=u(t),P=P==h?y:P);var x=T==y&&!c(e),E=P==y&&!c(t),O=T==P;if(O&&!x)return g||(g=new o),_||p(e)?i(e,t,n,r,m,g):a(e,t,T,n,r,m,g);if(!(m&f)){var w=x&&v.call(e,"__wrapped__"),C=E&&v.call(t,"__wrapped__");if(w||C){var S=w?e.value():e,M=C?t.value():t;return g||(g=new o),n(S,M,r,m,g)}}return O?(g||(g=new o),s(e,t,n,r,m,g)):!1}var o=n(125),i=n(210),a=n(460),s=n(461),u=n(131),l=n(18),c=n(132),p=n(508),f=2,h="[object Arguments]",d="[object Array]",y="[object Object]",m=Object.prototype,v=m.hasOwnProperty;e.exports=r},function(e,t,n){"use strict";function r(e,t,n,r){var u=n.length,l=u,c=!r;if(null==e)return!l;for(e=Object(e);u--;){var p=n[u];if(c&&p[2]?p[1]!==e[p[0]]:!(p[0]in e))return!1}for(;++u<l;){p=n[u];var f=p[0],h=e[f],d=p[1];if(c&&p[2]){if(void 0===h&&!(f in e))return!1}else{var y=new o;if(r)var m=r(h,d,f,e,t,y);if(!(void 0===m?i(d,h,r,a|s,y):m))return!1}}return!0}var o=n(125),i=n(128),a=1,s=2;e.exports=r},function(e,t){"use strict";function n(e){return r(Object(e))}var r=Object.keys;e.exports=n},function(e,t,n){"use strict";function r(e){var t=i(e);return 1==t.length&&t[0][2]?a(t[0][0],t[0][1]):function(n){return n===e||o(n,e,t)}}var o=n(436),i=n(464),a=n(214);e.exports=r},function(e,t,n){"use strict";function r(e,t){return s(e)&&u(t)?l(c(e),t):function(n){var r=i(n,e);return void 0===r&&r===t?a(n,e):o(t,r,void 0,p|f)}}var o=n(128),i=n(501),a=n(502),s=n(94),u=n(213),l=n(214),c=n(74),p=1,f=2;e.exports=r},function(e,t,n){"use strict";function r(e,t){return e=Object(e),o(t,function(t,n){return n in e&&(t[n]=e[n]),t},{})}var o=n(91);e.exports=r},function(e,t,n){"use strict";function r(e){return function(t){return o(t,e)}}var o=n(205);e.exports=r},function(e,t){"use strict";function n(e,t,n,r,o){return o(e,function(e,o,i){n=r?(r=!1,e):t(n,e,o,i)}),n}e.exports=n},function(e,t){"use strict";function n(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}e.exports=n},function(e,t,n){"use strict";function r(e,t){return o(t,function(t){return[t,e[t]]})}var o=n(202);e.exports=r},function(e,t,n){"use strict";function r(e){if("string"==typeof e)return e;if(i(e))return u?u.call(e):"";var t=e+"";return"0"==t&&1/e==-a?"-0":t}var o=n(126),i=n(97),a=1/0,s=o?o.prototype:void 0,u=s?s.toString:void 0;e.exports=r},function(e,t){"use strict";function n(e){return e&&e.Object===Object?e:null}e.exports=n},function(e,t){"use strict";function n(e,t){if(t)return e.slice();var n=new e.constructor(e.length);return e.copy(n),n}e.exports=n},function(e,t,n){"use strict";function r(e,t){var n=t?o(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}var o=n(129);e.exports=r},function(e,t,n){"use strict";function r(e,t,n){var r=t?n(a(e),!0):a(e);return i(r,o,new e.constructor)}var o=n(423),i=n(91),a=n(135);e.exports=r},function(e,t){"use strict";function n(e){var t=new e.constructor(e.source,r.exec(e));return t.lastIndex=e.lastIndex,t}var r=/\w*$/;e.exports=n},function(e,t,n){"use strict";function r(e,t,n){var r=t?n(a(e),!0):a(e);return i(r,o,new e.constructor)}var o=n(424),i=n(91),a=n(215);e.exports=r},function(e,t,n){"use strict";function r(e){return a?Object(a.call(e)):{}}var o=n(126),i=o?o.prototype:void 0,a=i?i.valueOf:void 0;e.exports=r},function(e,t,n){"use strict";function r(e,t){var n=t?o(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}var o=n(129);e.exports=r},function(e,t){"use strict";function n(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n<r;)t[n]=e[n];return t}e.exports=n},function(e,t,n){"use strict";function r(e,t){return o(e,i(e),t)}var o=n(130),i=n(212);e.exports=r},function(e,t,n){"use strict";function r(e){return i(function(t,n){var r=-1,i=n.length,a=i>1?n[i-1]:void 0,s=i>2?n[2]:void 0;for(a=e.length>3&&"function"==typeof a?(i--,a):void 0,s&&o(n[0],n[1],s)&&(a=3>i?void 0:a,i=1),t=Object(t);++r<i;){var u=n[r];u&&e(t,u,r,a)}return t})}var o=n(476),i=n(218);e.exports=r},function(e,t,n){"use strict";function r(e,t){return function(n,r){if(null==n)return n;if(!o(n))return e(n,r);for(var i=n.length,a=t?i:-1,s=Object(n);(t?a--:++a<i)&&r(s[a],a,s)!==!1;);return n}}var o=n(75);e.exports=r},function(e,t){"use strict";function n(e){return function(t,n,r){for(var o=-1,i=Object(t),a=r(t),s=a.length;s--;){var u=a[e?s:++o];if(n(i[u],u,i)===!1)break}return t}}e.exports=n},function(e,t,n){"use strict";function r(e){return function(t){var n=i(t);return n==u?a(t):n==l?s(t):o(t,e(t))}}var o=n(444),i=n(131),a=n(135),s=n(490),u="[object Map]",l="[object Set]";e.exports=r},function(e,t,n){"use strict";function r(e,t,n,r,o,P,E){switch(n){case T:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case b:return!(e.byteLength!=t.byteLength||!r(new i(e),new i(t)));case p:case f:return+e==+t;case h:return e.name==t.name&&e.message==t.message;case y:return e!=+e?t!=+t:e==+t;case m:case g:return e==t+"";case d:var O=s;case v:var w=P&c;if(O||(O=u),e.size!=t.size&&!w)return!1;var C=E.get(e);return C?C==t:(P|=l,E.set(e,t),a(O(e),O(t),r,o,P,E));case _:if(x)return x.call(e)==x.call(t)}return!1}var o=n(126),i=n(200),a=n(210),s=n(135),u=n(215),l=1,c=2,p="[object Boolean]",f="[object Date]",h="[object Error]",d="[object Map]",y="[object Number]",m="[object RegExp]",v="[object Set]",g="[object String]",_="[object Symbol]",b="[object ArrayBuffer]",T="[object DataView]",P=o?o.prototype:void 0,x=P?P.valueOf:void 0;e.exports=r},function(e,t,n){"use strict";function r(e,t,n,r,s,u){var l=s&a,c=i(e),p=c.length,f=i(t),h=f.length;if(p!=h&&!l)return!1;for(var d=p;d--;){var y=c[d];if(!(l?y in t:o(t,y)))return!1}var m=u.get(e);if(m)return m==t;var v=!0;u.set(e,t);for(var g=l;++d<p;){y=c[d];var _=e[y],b=t[y];if(r)var T=l?r(b,_,y,t,e,u):r(_,b,y,e,t,u);if(!(void 0===T?_===b||n(_,b,r,s,u):T)){v=!1;break}g||(g="constructor"==y)}if(v&&!g){var P=e.constructor,x=t.constructor;P!=x&&"constructor"in e&&"constructor"in t&&!("function"==typeof P&&P instanceof P&&"function"==typeof x&&x instanceof x)&&(v=!1)}return u["delete"](e),v}var o=n(206),i=n(44),a=2;e.exports=r},function(e,t,n){"use strict";function r(e){return o(e,a,i)}var o=n(433),i=n(212),a=n(44);e.exports=r},function(e,t,n){"use strict";var r=n(208),o=r("length");e.exports=o},function(e,t,n){"use strict";function r(e){for(var t=i(e),n=t.length;n--;)t[n][2]=o(t[n][1]);return t}var o=n(213),i=n(517);e.exports=r},function(e,t,n){"use strict";function r(e,t,n){t=u(t,e)?[t]:o(t);for(var r,f=-1,h=t.length;++f<h;){var d=p(t[f]);if(!(r=null!=e&&n(e,d)))break;e=e[d]}if(r)return r;var h=e?e.length:0;return!!h&&l(h)&&s(d,h)&&(a(e)||c(e)||i(e))}var o=n(209),i=n(137),a=n(18),s=n(133),u=n(94),l=n(96),c=n(217),p=n(74);e.exports=r},function(e,t,n){"use strict";function r(){this.__data__=o?o(null):{}}var o=n(95);e.exports=r},function(e,t){"use strict";function n(e){return this.has(e)&&delete this.__data__[e]}e.exports=n},function(e,t,n){"use strict";function r(e){var t=this.__data__;if(o){var n=t[e];return n===i?void 0:n}return s.call(t,e)?t[e]:void 0}var o=n(95),i="__lodash_hash_undefined__",a=Object.prototype,s=a.hasOwnProperty;e.exports=r},function(e,t,n){"use strict";function r(e){var t=this.__data__;return o?void 0!==t[e]:a.call(t,e)}var o=n(95),i=Object.prototype,a=i.hasOwnProperty;e.exports=r},function(e,t,n){"use strict";function r(e,t){var n=this.__data__;return n[e]=o&&void 0===t?i:t,this}var o=n(95),i="__lodash_hash_undefined__";e.exports=r},function(e,t,n){"use strict";function r(e){var t=e?e.length:void 0;return s(t)&&(a(e)||u(e)||i(e))?o(t,String):null}var o=n(443),i=n(137),a=n(18),s=n(96),u=n(217);e.exports=r},function(e,t){"use strict";function n(e){var t=e.length,n=e.constructor(t);return t&&"string"==typeof e[0]&&o.call(e,"index")&&(n.index=e.index,n.input=e.input),n}var r=Object.prototype,o=r.hasOwnProperty;e.exports=n},function(e,t,n){"use strict";function r(e,t,n,r){var A=e.constructor;switch(t){case _:return o(e);case p:case f:return new A(+e);case b:return i(e,r);case T:case P:case x:case E:case O:case w:case C:case S:case M:return c(e,r);case h:return a(e,r,n);case d:case v:return new A(e);case y:return s(e);case m:return u(e,r,n);case g:return l(e)}}var o=n(129),i=n(448),a=n(449),s=n(450),u=n(451),l=n(452),c=n(453),p="[object Boolean]",f="[object Date]",h="[object Map]",d="[object Number]",y="[object RegExp]",m="[object Set]",v="[object String]",g="[object Symbol]",_="[object ArrayBuffer]",b="[object DataView]",T="[object Float32Array]",P="[object Float64Array]",x="[object Int8Array]",E="[object Int16Array]",O="[object Int32Array]",w="[object Uint8Array]",C="[object Uint8ClampedArray]",S="[object Uint16Array]",M="[object Uint32Array]";e.exports=r},function(e,t,n){"use strict";function r(e){return"function"!=typeof e.constructor||a(e)?{}:o(i(e))}var o=n(429),i=n(211),a=n(134);e.exports=r},function(e,t,n){"use strict";function r(e){return i(e)||o(e)}var o=n(137),i=n(18);e.exports=r},function(e,t,n){"use strict";function r(e,t,n){if(!u(n))return!1;var r="undefined"==typeof t?"undefined":o(t);return("number"==r?a(n)&&s(t,n.length):"string"==r&&t in n)?i(n[t],e):!1}var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol?"symbol":typeof e},i=n(136),a=n(75),s=n(133),u=n(43);e.exports=r},function(e,t){"use strict";function n(e){var t="undefined"==typeof e?"undefined":r(e);return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol?"symbol":typeof e};e.exports=n},function(e,t){"use strict";function n(){this.__data__=[]}e.exports=n},function(e,t,n){"use strict";function r(e){var t=this.__data__,n=o(t,e);if(0>n)return!1;var r=t.length-1;return n==r?t.pop():a.call(t,n,1),!0}var o=n(92),i=Array.prototype,a=i.splice;e.exports=r},function(e,t,n){"use strict";function r(e){var t=this.__data__,n=o(t,e);return 0>n?void 0:t[n][1]}var o=n(92);e.exports=r},function(e,t,n){"use strict";function r(e){return o(this.__data__,e)>-1}var o=n(92);e.exports=r},function(e,t,n){"use strict";function r(e,t){var n=this.__data__,r=o(n,e);return 0>r?n.push([e,t]):n[r][1]=t,this}var o=n(92);e.exports=r},function(e,t,n){"use strict";function r(){this.__data__={hash:new o,map:new(a||i),string:new o}}var o=n(418),i=n(90),a=n(199);e.exports=r},function(e,t,n){"use strict";function r(e){return o(this,e)["delete"](e)}var o=n(93);e.exports=r},function(e,t,n){"use strict";function r(e){return o(this,e).get(e)}var o=n(93);e.exports=r},function(e,t,n){"use strict";function r(e){return o(this,e).has(e)}var o=n(93);e.exports=r},function(e,t,n){"use strict";function r(e,t){return o(this,e).set(e,t),this}var o=n(93);e.exports=r},function(e,t){"use strict";function n(e){return this.__data__.set(e,r),this}var r="__lodash_hash_undefined__";e.exports=n},function(e,t){"use strict";function n(e){return this.__data__.has(e)}e.exports=n},function(e,t){"use strict";function n(e){var t=-1,n=Array(e.size);return e.forEach(function(e){n[++t]=[e,e]}),n}e.exports=n},function(e,t,n){"use strict";function r(){this.__data__=new o}var o=n(90);e.exports=r},function(e,t){"use strict";function n(e){return this.__data__["delete"](e)}e.exports=n},function(e,t){"use strict";function n(e){return this.__data__.get(e)}e.exports=n},function(e,t){"use strict";function n(e){return this.__data__.has(e)}e.exports=n},function(e,t,n){"use strict";function r(e,t){var n=this.__data__;return n instanceof o&&n.__data__.length==a&&(n=this.__data__=new i(n.__data__)),n.set(e,t),this}var o=n(90),i=n(124),a=200;e.exports=r},function(e,t,n){"use strict";var r=n(510),o=n(219),i=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]/g,a=/\\(\\)?/g,s=r(function(e){var t=[];return o(e).replace(i,function(e,n,r,o){t.push(r?o.replace(a,"$1"):n||e)}),t});e.exports=s},function(e,t,n){"use strict";var r=n(127),o=n(130),i=n(456),a=n(75),s=n(134),u=n(44),l=Object.prototype,c=l.hasOwnProperty,p=l.propertyIsEnumerable,f=!p.call({valueOf:1},"valueOf"),h=i(function(e,t){if(f||s(t)||a(t))return void o(t,u(t),e);for(var n in t)c.call(t,n)&&r(e,n,t[n])});e.exports=h},function(e,t,n){"use strict";function r(e){return o(e,!1,!0)}var o=n(428);e.exports=r},function(e,t){"use strict";function n(e){return function(){return e}}e.exports=n},function(e,t,n){"use strict";function r(e,t){var n=s(e)?o:i;return n(e,a(t,3))}var o=n(201),i=n(204),a=n(207),s=n(18);e.exports=r},function(e,t,n){"use strict";function r(e,t,n){var r=null==e?void 0:o(e,t);return void 0===r?n:r}var o=n(205);e.exports=r},function(e,t,n){"use strict";function r(e,t){return null!=e&&i(e,t,o)}var o=n(434),i=n(465);e.exports=r},function(e,t){"use strict";function n(e){return e}e.exports=n},function(e,t,n){"use strict";function r(e){return i(e)&&o(e)}var o=n(75),i=n(76);e.exports=r},function(e,t,n){(function(e){"use strict";var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol?"symbol":typeof e},o=n(499),i=n(42),a={"function":!0,object:!0},s=a[r(t)]&&t&&!t.nodeType?t:void 0,u=a[r(e)]&&e&&!e.nodeType?e:void 0,l=u&&u.exports===s?s:void 0,c=l?i.Buffer:void 0,p=c?function(e){return e instanceof c}:o(!1);e.exports=p}).call(t,n(122)(e))},function(e,t,n){"use strict";function r(e,t){return o(e,t)}var o=n(128);e.exports=r},function(e,t,n){"use strict";function r(e){if(!a(e))return!1;var t=o(e)||i(e)?h:l;return t.test(s(e))}var o=n(138),i=n(132),a=n(43),s=n(216),u=/[\\^$.*+?()[\]{}|]/g,l=/^\[object .+?Constructor\]$/,c=Object.prototype,p=Function.prototype.toString,f=c.hasOwnProperty,h=RegExp("^"+p.call(f).replace(u,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");e.exports=r},function(e,t,n){"use strict";function r(e){return i(e)&&o(e.length)&&!!A[L.call(e)]}var o=n(96),i=n(76),a="[object Arguments]",s="[object Array]",u="[object Boolean]",l="[object Date]",c="[object Error]",p="[object Function]",f="[object Map]",h="[object Number]",d="[object Object]",y="[object RegExp]",m="[object Set]",v="[object String]",g="[object WeakMap]",_="[object ArrayBuffer]",b="[object DataView]",T="[object Float32Array]",P="[object Float64Array]",x="[object Int8Array]",E="[object Int16Array]",O="[object Int32Array]",w="[object Uint8Array]",C="[object Uint8ClampedArray]",S="[object Uint16Array]",M="[object Uint32Array]",A={};A[T]=A[P]=A[x]=A[E]=A[O]=A[w]=A[C]=A[S]=A[M]=!0,A[a]=A[s]=A[_]=A[u]=A[b]=A[l]=A[c]=A[p]=A[f]=A[h]=A[d]=A[y]=A[m]=A[v]=A[g]=!1;var k=Object.prototype,L=k.toString;e.exports=r},function(e,t){"use strict";function n(e){return void 0===e}e.exports=n},function(e,t,n){"use strict";function r(e,t){if("function"!=typeof e||t&&"function"!=typeof t)throw new TypeError(i);var n=function a(){var n=arguments,r=t?t.apply(this,n):n[0],o=a.cache;if(o.has(r))return o.get(r);var i=e.apply(this,n);return a.cache=o.set(r,i),i};return n.cache=new(r.Cache||o),n}var o=n(124),i="Expected a function";r.Cache=o,e.exports=r},function(e,t,n){"use strict";var r=n(202),o=n(430),i=n(440),a=n(218),s=n(74),u=a(function(e,t){return null==e?{}:i(e,r(o(t,1),s))});e.exports=u},function(e,t,n){"use strict";function r(e){return a(e)?o(s(e)):i(e)}var o=n(208),i=n(441),a=n(94),s=n(74);e.exports=r},function(e,t,n){"use strict";function r(e,t,n){var r=u(e)?o:s,l=arguments.length<3;return r(e,a(t,4),n,l,i)}var o=n(91),i=n(204),a=n(207),s=n(442),u=n(18);e.exports=r},function(e,t,n){"use strict";function r(e){if(!e)return 0===e?e:0;if(e=o(e),e===i||e===-i){var t=0>e?-1:1;return t*a}return e===e?e:0}var o=n(516),i=1/0,a=1.7976931348623157e308;e.exports=r},function(e,t,n){"use strict";function r(e){var t=o(e),n=t%1;return t===t?n?t-n:t:0}var o=n(514);e.exports=r},function(e,t,n){"use strict";function r(e){if("number"==typeof e)return e;if(a(e))return s;if(i(e)){var t=o(e.valueOf)?e.valueOf():e;e=i(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(u,"");var n=c.test(e);return n||p.test(e)?f(e.slice(2),n?2:8):l.test(e)?s:+e}var o=n(138),i=n(43),a=n(97),s=NaN,u=/^\s+|\s+$/g,l=/^[-+]0x[0-9a-f]+$/i,c=/^0b[01]+$/i,p=/^0o[0-7]+$/i,f=parseInt;e.exports=r},function(e,t,n){"use strict";var r=n(459),o=n(44),i=r(o);e.exports=i},function(e,t,n){"use strict";function r(e){var t=++i;return o(e)+t}var o=n(219),i=0;e.exports=r},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==("undefined"==typeof t?"undefined":s(t))&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+("undefined"==typeof t?"undefined":s(t)));e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol?"symbol":typeof e};t.__esModule=!0,t["default"]=void 0;var u=n(1),l=n(220),c=r(l),p=n(221),f=(r(p),function(e){function t(n,r){o(this,t);var a=i(this,e.call(this,n,r));return a.store=n.store,a}return a(t,e),t.prototype.getChildContext=function(){return{store:this.store}},t.prototype.render=function(){var e=this.props.children;return u.Children.only(e)},t}(u.Component));t["default"]=f,f.propTypes={store:c["default"].isRequired,children:u.PropTypes.element.isRequired},f.childContextTypes={store:c["default"].isRequired}},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==("undefined"==typeof t?"undefined":c(t))&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+("undefined"==typeof t?"undefined":c(t)));e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}function s(e){return e.displayName||e.name||"Component"}function u(e,t){try{return e.apply(t)}catch(n){return S.value=n,S}}function l(e,t,n){var r=arguments.length<=3||void 0===arguments[3]?{}:arguments[3],l=Boolean(e),c=e||O,h=void 0;h="function"==typeof t?t:t?(0,g["default"])(t):w;var y=n||C,v=r.pure,_=void 0===v?!0:v,b=r.withRef,T=void 0===b?!1:b,x=_&&y!==C,A=M++;return function(e){function t(e,t,n){var r=y(e,t,n);return r}var n="Connect("+s(e)+")",r=function(r){function s(e,t){o(this,s);var a=i(this,r.call(this,e,t));a.version=A,a.store=e.store||t.store,(0,E["default"])(a.store,'Could not find "store" in either the context or '+('props of "'+n+'". ')+"Either wrap the root component in a <Provider>, "+('or explicitly pass "store" as a prop to "'+n+'".'));var u=a.store.getState();return a.state={storeState:u},a.clearCache(),a}return a(s,r),s.prototype.shouldComponentUpdate=function(){return!_||this.haveOwnPropsChanged||this.hasStoreStateChanged},s.prototype.computeStateProps=function(e,t){if(!this.finalMapStateToProps)return this.configureFinalMapState(e,t);var n=e.getState(),r=this.doStatePropsDependOnOwnProps?this.finalMapStateToProps(n,t):this.finalMapStateToProps(n);return r},s.prototype.configureFinalMapState=function(e,t){var n=c(e.getState(),t),r="function"==typeof n;return this.finalMapStateToProps=r?n:c,this.doStatePropsDependOnOwnProps=1!==this.finalMapStateToProps.length,r?this.computeStateProps(e,t):n},s.prototype.computeDispatchProps=function(e,t){if(!this.finalMapDispatchToProps)return this.configureFinalMapDispatch(e,t);var n=e.dispatch,r=this.doDispatchPropsDependOnOwnProps?this.finalMapDispatchToProps(n,t):this.finalMapDispatchToProps(n);return r},s.prototype.configureFinalMapDispatch=function(e,t){var n=h(e.dispatch,t),r="function"==typeof n;return this.finalMapDispatchToProps=r?n:h,this.doDispatchPropsDependOnOwnProps=1!==this.finalMapDispatchToProps.length,r?this.computeDispatchProps(e,t):n},s.prototype.updateStatePropsIfNeeded=function(){var e=this.computeStateProps(this.store,this.props);return this.stateProps&&(0,m["default"])(e,this.stateProps)?!1:(this.stateProps=e,!0)},s.prototype.updateDispatchPropsIfNeeded=function(){var e=this.computeDispatchProps(this.store,this.props);return this.dispatchProps&&(0,m["default"])(e,this.dispatchProps)?!1:(this.dispatchProps=e,!0)},s.prototype.updateMergedPropsIfNeeded=function(){var e=t(this.stateProps,this.dispatchProps,this.props);return this.mergedProps&&x&&(0,m["default"])(e,this.mergedProps)?!1:(this.mergedProps=e,!0)},s.prototype.isSubscribed=function(){return"function"==typeof this.unsubscribe},s.prototype.trySubscribe=function(){l&&!this.unsubscribe&&(this.unsubscribe=this.store.subscribe(this.handleChange.bind(this)),this.handleChange())},s.prototype.tryUnsubscribe=function(){this.unsubscribe&&(this.unsubscribe(),this.unsubscribe=null)},s.prototype.componentDidMount=function(){this.trySubscribe()},s.prototype.componentWillReceiveProps=function(e){_&&(0,m["default"])(e,this.props)||(this.haveOwnPropsChanged=!0)},s.prototype.componentWillUnmount=function(){this.tryUnsubscribe(),this.clearCache()},s.prototype.clearCache=function(){this.dispatchProps=null,this.stateProps=null,this.mergedProps=null,this.haveOwnPropsChanged=!0,this.hasStoreStateChanged=!0,this.haveStatePropsBeenPrecalculated=!1,this.statePropsPrecalculationError=null,this.renderedElement=null,this.finalMapDispatchToProps=null,this.finalMapStateToProps=null},s.prototype.handleChange=function(){if(this.unsubscribe){var e=this.store.getState(),t=this.state.storeState;if(!_||t!==e){if(_&&!this.doStatePropsDependOnOwnProps){var n=u(this.updateStatePropsIfNeeded,this);if(!n)return;n===S&&(this.statePropsPrecalculationError=S.value),this.haveStatePropsBeenPrecalculated=!0}this.hasStoreStateChanged=!0,this.setState({storeState:e})}}},s.prototype.getWrappedInstance=function(){return(0,E["default"])(T,"To access the wrapped instance, you need to specify { withRef: true } as the fourth argument of the connect() call."),this.refs.wrappedInstance},s.prototype.render=function(){var t=this.haveOwnPropsChanged,n=this.hasStoreStateChanged,r=this.haveStatePropsBeenPrecalculated,o=this.statePropsPrecalculationError,i=this.renderedElement;if(this.haveOwnPropsChanged=!1,this.hasStoreStateChanged=!1,this.haveStatePropsBeenPrecalculated=!1,this.statePropsPrecalculationError=null,o)throw o;var a=!0,s=!0;_&&i&&(a=n||t&&this.doStatePropsDependOnOwnProps,s=t&&this.doDispatchPropsDependOnOwnProps);var u=!1,l=!1;r?u=!0:a&&(u=this.updateStatePropsIfNeeded()),s&&(l=this.updateDispatchPropsIfNeeded());var c=!0;return c=u||l||t?this.updateMergedPropsIfNeeded():!1,!c&&i?i:(T?this.renderedElement=(0,f.createElement)(e,p({},this.mergedProps,{ref:"wrappedInstance"})):this.renderedElement=(0,f.createElement)(e,this.mergedProps),this.renderedElement)},s}(f.Component);return r.displayName=n,r.WrappedComponent=e,r.contextTypes={store:d["default"]},r.propTypes={store:d["default"]},(0,P["default"])(r,e)}}var c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol?"symbol":typeof e},p=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};t.__esModule=!0,t["default"]=l;var f=n(1),h=n(220),d=r(h),y=n(521),m=r(y),v=n(522),g=r(v),_=n(221),b=(r(_),n(528)),T=(r(b),n(523)),P=r(T),x=n(524),E=r(x),O=function(e){return{}},w=function(e){return{dispatch:e}},C=function(e,t,n){return p({},n,e,t)},S={value:null},M=0},function(e,t){"use strict";function n(e,t){if(e===t)return!0;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(var o=Object.prototype.hasOwnProperty,i=0;i<n.length;i++)if(!o.call(t,n[i])||e[n[i]]!==t[n[i]])return!1;return!0}t.__esModule=!0,t["default"]=n},function(e,t,n){"use strict";function r(e){return function(t){return(0,o.bindActionCreators)(e,t)}}t.__esModule=!0,t["default"]=r;var o=n(23)},function(e,t){"use strict";var n={childContextTypes:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,mixins:!0,propTypes:!0,type:!0},r={name:!0,length:!0,prototype:!0,caller:!0,arguments:!0,arity:!0};e.exports=function(e,t){if("string"!=typeof t)for(var o=Object.getOwnPropertyNames(t),i=0;i<o.length;++i)if(!n[o[i]]&&!r[o[i]])try{e[o[i]]=t[o[i]]}catch(a){}return e}},function(e,t,n){"use strict";var r=function(e,t,n,r,o,i,a,s){if(!e){var u;if(void 0===t)u=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var l=[n,r,o,i,a,s],c=0;u=new Error(t.replace(/%s/g,function(){return l[c++]})),
  u.name="Invariant Violation"}throw u.framesToPop=1,u}};e.exports=r},function(e,t){"use strict";function n(e){return r(Object(e))}var r=Object.getPrototypeOf;e.exports=n},function(e,t){"use strict";function n(e){var t=!1;if(null!=e&&"function"!=typeof e.toString)try{t=!!(e+"")}catch(n){}return t}e.exports=n},function(e,t){"use strict";function n(e){return!!e&&"object"==("undefined"==typeof e?"undefined":r(e))}var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol?"symbol":typeof e};e.exports=n},function(e,t,n){"use strict";function r(e){if(!a(e)||f.call(e)!=s||i(e))return!1;var t=o(e);if(null===t)return!0;var n=c.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&l.call(n)==p}var o=n(525),i=n(526),a=n(527),s="[object Object]",u=Object.prototype,l=Function.prototype.toString,c=u.hasOwnProperty,p=l.call(Object),f=u.toString;e.exports=r},function(e,t,n){"use strict";function r(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}function o(e){return function(){return function(t){return function(n){if(n.type!==i.CALL_HISTORY_METHOD)return t(n);var o=n.payload,a=o.method,s=o.args;e[a].apply(e,r(s))}}}}Object.defineProperty(t,"__esModule",{value:!0}),t["default"]=o;var i=n(222)},function(e,t,n){"use strict";function r(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=n.selectLocationState,s=void 0===r?a:r,u=n.adjustUrlOnReplay,l=void 0===u?!0:u;if("undefined"==typeof s(t.getState()))throw new Error("Expected the routing state to be available either as `state.routing` or as the custom expression you can specify as `selectLocationState` in the `syncHistoryWithStore()` options. Ensure you have added the `routerReducer` to your store's reducers via `combineReducers` or whatever method you use to isolate your reducers.");var c=void 0,p=void 0,f=void 0,h=void 0,d=void 0,y=function(e){var n=s(t.getState());return n.locationBeforeTransitions||(e?c:void 0)};if(c=y(),l){var m=function(){var t=y(!0);d!==t&&c!==t&&(p=!0,d=t,e.transitionTo(o({},t,{action:"PUSH"})),p=!1)};f=t.subscribe(m),m()}var v=function(e){p||(d=e,!c&&(c=e,y())||t.dispatch({type:i.LOCATION_CHANGE,payload:e}))};return h=e.listen(v),e.getCurrentLocation&&v(e.getCurrentLocation()),o({},e,{listen:function(e){var n=y(!0),r=!1,o=t.subscribe(function(){var t=y(!0);t!==n&&(n=t,r||e(n))});return e(n),function(){r=!0,o()}},unsubscribe:function(){l&&f(),h()}})}Object.defineProperty(t,"__esModule",{value:!0});var o=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};t["default"]=r;var i=n(224),a=function(e){return e.routing}},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}t.__esModule=!0;var o=n(13),i=(r(o),n(53)),a={contextTypes:{history:i.history},componentWillMount:function(){this.history=this.context.history}};t["default"]=a,e.exports=t["default"]},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}t.__esModule=!0;var o=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i=n(1),a=r(i),s=n(225),u=r(s),l=a["default"].createClass({displayName:"IndexLink",render:function(){return a["default"].createElement(u["default"],o({},this.props,{onlyActiveOnIndex:!0}))}});t["default"]=l,e.exports=t["default"]},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}t.__esModule=!0;var o=n(1),i=r(o),a=n(13),s=(r(a),n(21)),u=r(s),l=n(226),c=r(l),p=n(53),f=i["default"].PropTypes,h=f.string,d=f.object,y=i["default"].createClass({displayName:"IndexRedirect",statics:{createRouteFromReactElement:function(e,t){t&&(t.indexRoute=c["default"].createRouteFromReactElement(e))}},propTypes:{to:h.isRequired,query:d,state:d,onEnter:p.falsy,children:p.falsy},render:function(){u["default"](!1)}});t["default"]=y,e.exports=t["default"]},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}t.__esModule=!0;var o=n(1),i=r(o),a=n(13),s=(r(a),n(21)),u=r(s),l=n(45),c=n(53),p=i["default"].PropTypes.func,f=i["default"].createClass({displayName:"IndexRoute",statics:{createRouteFromReactElement:function(e,t){t&&(t.indexRoute=l.createRouteFromReactElement(e))}},propTypes:{path:c.falsy,component:c.component,components:c.components,getComponent:p,getComponents:p},render:function(){u["default"](!1)}});t["default"]=f,e.exports=t["default"]},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}t.__esModule=!0;var o=n(13),i=(r(o),n(1)),a=r(i),s=n(21),u=r(s),l=a["default"].PropTypes.object,c={contextTypes:{history:l.isRequired,route:l},propTypes:{route:l},componentDidMount:function(){this.routerWillLeave?void 0:u["default"](!1);var e=this.props.route||this.context.route;e?void 0:u["default"](!1),this._unlistenBeforeLeavingRoute=this.context.history.listenBeforeLeavingRoute(e,this.routerWillLeave)},componentWillUnmount:function(){this._unlistenBeforeLeavingRoute&&this._unlistenBeforeLeavingRoute()}};t["default"]=c,e.exports=t["default"]},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}t.__esModule=!0;var o=n(1),i=r(o),a=n(21),s=r(a),u=n(45),l=n(53),c=i["default"].PropTypes,p=c.string,f=c.func,h=i["default"].createClass({displayName:"Route",statics:{createRouteFromReactElement:u.createRouteFromReactElement},propTypes:{path:p,component:l.component,components:l.components,getComponent:f,getComponents:f},render:function(){s["default"](!1)}});t["default"]=h,e.exports=t["default"]},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}t.__esModule=!0;var o=n(13),i=(r(o),n(1)),a=r(i),s=a["default"].PropTypes.object,u={propTypes:{route:s.isRequired},childContextTypes:{route:s.isRequired},getChildContext:function(){return{route:this.props.route}},componentWillMount:function(){}};t["default"]=u,e.exports=t["default"]},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}function i(e){return!e||!e.__v2_compatible__}t.__esModule=!0;var a=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},s=n(235),u=r(s),l=n(99),c=r(l),p=n(1),f=r(p),h=n(141),d=r(h),y=n(53),m=n(140),v=r(m),g=n(45),_=n(227),b=n(13),T=(r(b),f["default"].PropTypes),P=T.func,x=T.object,E=f["default"].createClass({displayName:"Router",propTypes:{history:x,children:y.routes,routes:y.routes,render:P,createElement:P,onError:P,onUpdate:P,matchContext:x},getDefaultProps:function(){return{render:function(e){return f["default"].createElement(v["default"],e)}}},getInitialState:function(){return{location:null,routes:null,params:null,components:null}},handleError:function(e){if(!this.props.onError)throw e;this.props.onError.call(this,e)},componentWillMount:function(){var e=this,t=this.props,n=(t.parseQueryString,t.stringifyQuery,this.createRouterObjects()),r=n.history,o=n.transitionManager,i=n.router;this._unlisten=o.listen(function(t,n){t?e.handleError(t):e.setState(n,e.props.onUpdate)}),this.history=r,this.router=i},createRouterObjects:function(){var e=this.props.matchContext;if(e)return e;var t=this.props.history,n=this.props,r=n.routes,o=n.children;i(t)&&(t=this.wrapDeprecatedHistory(t));var a=d["default"](t,g.createRoutes(r||o)),s=_.createRouterObject(t,a),u=_.createRoutingHistory(t,a);return{history:u,transitionManager:a,router:s}},wrapDeprecatedHistory:function(e){var t=this.props,n=t.parseQueryString,r=t.stringifyQuery,o=void 0;return o=e?function(){return e}:u["default"],c["default"](o)({parseQueryString:n,stringifyQuery:r})},componentWillReceiveProps:function(e){},componentWillUnmount:function(){this._unlisten&&this._unlisten()},render:function O(){var e=this.state,t=e.location,n=e.routes,r=e.params,i=e.components,s=this.props,u=s.createElement,O=s.render,l=o(s,["createElement","render"]);return null==t?null:(Object.keys(E.propTypes).forEach(function(e){return delete l[e]}),O(a({},l,{history:this.history,router:this.router,location:t,routes:n,params:r,components:i,createElement:u})))}});t["default"]=E,e.exports=t["default"]},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}t.__esModule=!0;var o=n(1),i=r(o),a=n(140),s=r(a),u=n(13),l=(r(u),i["default"].createClass({displayName:"RoutingContext",componentWillMount:function(){},render:function(){return i["default"].createElement(s["default"],this.props)}}));t["default"]=l,e.exports=t["default"]},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(e,t){return function(n,r,o){e.apply(t,arguments),e.length<3&&o()}}function i(e){return e.reduce(function(e,t){return t.onEnter&&e.push(o(t.onEnter,t)),e},[])}function a(e,t,n){function r(e,t,n){return t?void(a={pathname:t,query:n,state:e}):void(a=e)}var o=i(e);if(!o.length)return void n();var a=void 0;u.loopAsync(o.length,function(e,n,i){o[e](t,r,function(e){e||a?i(e,a):n()})},n)}function s(e){for(var t=0,n=e.length;n>t;++t)e[t].onLeave&&e[t].onLeave.call(e[t])}t.__esModule=!0,t.runEnterHooks=a,t.runLeaveHooks=s;var u=n(139),l=n(13);r(l)},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}t.__esModule=!0;var o=n(551),i=r(o),a=n(229),s=r(a);t["default"]=s["default"](i["default"]),e.exports=t["default"]},function(e,t,n){"use strict";function r(e,t,n){if(!e.path)return!1;var r=i.getParamNames(e.path);return r.some(function(e){return t.params[e]!==n.params[e]})}function o(e,t){var n=e&&e.routes,o=t.routes,i=void 0,a=void 0;return n?!function(){var s=!1;i=n.filter(function(n){if(s)return!0;var i=-1===o.indexOf(n)||r(n,e,t);return i&&(s=!0),i}),i.reverse(),a=o.filter(function(e){return-1===n.indexOf(e)||-1!==i.indexOf(e)})}():(i=[],a=o),{leaveRoutes:i,enterRoutes:a}}t.__esModule=!0;var i=n(64);t["default"]=o,e.exports=t["default"]},function(e,t,n){"use strict";function r(e,t,n){t.component||t.components?n(null,t.component||t.components):t.getComponent?t.getComponent(e,n):t.getComponents?t.getComponents(e,n):n()}function o(e,t){i.mapAsync(e.routes,function(t,n,o){r(e.location,t,o)},t)}t.__esModule=!0;var i=n(139);t["default"]=o,e.exports=t["default"]},function(e,t,n){"use strict";function r(e,t){var n={};if(!e.path)return n;var r=o.getParamNames(e.path);for(var i in t)t.hasOwnProperty(i)&&-1!==r.indexOf(i)&&(n[i]=t[i]);return n}t.__esModule=!0;var o=n(64);t["default"]=r,e.exports=t["default"]},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}t.__esModule=!0;var o=n(235),i=r(o),a=n(229),s=r(a);t["default"]=s["default"](i["default"]),e.exports=t["default"]},function(e,t,n){"use strict";function r(e,t){if(e==t)return!0;if(null==e||null==t)return!1;if(Array.isArray(e))return Array.isArray(t)&&e.length===t.length&&e.every(function(e,n){return r(e,t[n])});if("object"===("undefined"==typeof e?"undefined":l(e))){for(var n in e)if(e.hasOwnProperty(n))if(void 0===e[n]){if(void 0!==t[n])return!1}else{if(!t.hasOwnProperty(n))return!1;if(!r(e[n],t[n]))return!1}return!0}return String(e)===String(t)}function o(e,t,n){return e.every(function(e,r){return String(t[r])===String(n[e])})}function i(e,t,n){for(var r=e,i=[],a=[],s=0,u=t.length;u>s;++s){var l=t[s],p=l.path||"";if("/"===p.charAt(0)&&(r=e,i=[],a=[]),null!==r){var f=c.matchPattern(p,r);r=f.remainingPathname,i=[].concat(i,f.paramNames),a=[].concat(a,f.paramValues)}if(""===r&&l.path&&o(i,a,n))return s}return null}function a(e,t,n,r){var o=i(e,t,n);return null===o?!1:r?t.slice(o+1).every(function(e){return!e.path}):!0}function s(e,t){return null==t?null==e:null==e?!0:r(e,t)}function u(e,t,n,r,o){var i=e.pathname,u=e.query;return null==n?!1:a(i,r,o,t)?s(u,n.query):!1}var l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol?"symbol":typeof e};t.__esModule=!0,t["default"]=u;var c=n(64);e.exports=t["default"]},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}function i(e,t){var n=e.history,r=e.routes,i=e.location,s=o(e,["history","routes","location"]);n||i?void 0:u["default"](!1),n=n?n:c["default"](s);var l=f["default"](n,h.createRoutes(r)),p=void 0;i?i=n.createLocation(i):p=n.listen(function(e){i=e});var y=d.createRouterObject(n,l);n=d.createRoutingHistory(n,l),l.match(i,function(e,r,o){t(e,r,o&&a({},o,{history:n,router:y,matchContext:{history:n,transitionManager:l,router:y}})),p&&p()})}t.__esModule=!0;var a=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},s=n(21),u=r(s),l=n(228),c=r(l),p=n(141),f=r(p),h=n(45),d=n(227);t["default"]=i,e.exports=t["default"]},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(e,t,n){if(e.childRoutes)return[null,e.childRoutes];if(!e.getChildRoutes)return[];var r=!0,o=void 0;return e.getChildRoutes(t,function(e,t){return t=!e&&d.createRoutes(t),r?void(o=[e,t]):void n(e,t)}),r=!1,o}function i(e,t,n){e.indexRoute?n(null,e.indexRoute):e.getIndexRoute?e.getIndexRoute(t,function(e,t){n(e,!e&&d.createRoutes(t)[0])}):e.childRoutes?!function(){var r=e.childRoutes.filter(function(e){return!e.hasOwnProperty("path")});f.loopAsync(r.length,function(e,n,o){i(r[e],t,function(t,i){if(t||i){var a=[r[e]].concat(Array.isArray(i)?i:[i]);o(t,a)}else n()})},function(e,t){n(null,t)})}():n()}function a(e,t,n){return t.reduce(function(e,t,r){var o=n&&n[r];return Array.isArray(e[t])?e[t].push(o):t in e?e[t]=[e[t],o]:e[t]=o,e},e)}function s(e,t){return a({},e,t)}function u(e,t,n,r,a,u){var p=e.path||"";if("/"===p.charAt(0)&&(n=t.pathname,r=[],a=[]),null!==n){var f=h.matchPattern(p,n);if(n=f.remainingPathname,r=[].concat(r,f.paramNames),a=[].concat(a,f.paramValues),""===n&&e.path){var d=function(){var n={routes:[e],params:s(r,a)};return i(e,t,function(e,t){if(e)u(e);else{if(Array.isArray(t)){var r;(r=n.routes).push.apply(r,t)}else t&&n.routes.push(t);u(null,n)}}),{v:void 0}}();if("object"===("undefined"==typeof d?"undefined":c(d)))return d.v}}if(null!=n||e.childRoutes){var y=function(o,i){o?u(o):i?l(i,t,function(t,n){t?u(t):n?(n.routes.unshift(e),u(null,n)):u()},n,r,a):u()},m=o(e,t,y);m&&y.apply(void 0,m)}else u()}function l(e,t,n){var r=arguments.length<=3||void 0===arguments[3]?t.pathname:arguments[3],o=arguments.length<=4||void 0===arguments[4]?[]:arguments[4],i=arguments.length<=5||void 0===arguments[5]?[]:arguments[5];return function(){f.loopAsync(e.length,function(n,a,s){u(e[n],t,r,o,i,function(e,t){e||t?s(e,t):a()})},n)}()}var c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol?"symbol":typeof e};t.__esModule=!0;var p=n(13),f=(r(p),n(139)),h=n(64),d=n(45);t["default"]=l,e.exports=t["default"]},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}function i(e){return function(){var t=arguments.length<=0||void 0===arguments[0]?{}:arguments[0],n=t.routes,r=o(t,["routes"]),i=u["default"](e)(r),s=c["default"](i,n);return a({},i,s)}}t.__esModule=!0;var a=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},s=n(99),u=r(s),l=n(141),c=r(l),p=n(13);r(p);t["default"]=i,e.exports=t["default"]},function(e,t){"use strict";function n(e,t,n){function o(){return s=!0,u?void(c=[].concat(r.call(arguments))):void n.apply(this,arguments)}function i(){if(!s&&(l=!0,!u)){for(u=!0;!s&&e>a&&l;)l=!1,t.call(this,a++,i,o);return u=!1,s?void n.apply(this,c):void(a>=e&&l&&(s=!0,n()))}}var a=0,s=!1,u=!1,l=!1,c=void 0;i()}t.__esModule=!0;var r=Array.prototype.slice;t.loopAsync=n},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(){function e(e){e=e||window.history.state||{};var t=p.getWindowPath(),n=e,r=n.key,o=void 0;r?o=f.readState(r):(o=null,r=_.createKey(),v&&window.history.replaceState(i({},e,{key:r}),null,t));var a=l.parsePath(t);return _.createLocation(i({},a,{state:o}),void 0,r)}function t(t){function n(t){void 0!==t.state&&r(e(t.state))}var r=t.transitionTo;return p.addEventListener(window,"popstate",n),function(){p.removeEventListener(window,"popstate",n)}}function n(e){var t=e.basename,n=e.pathname,r=e.search,o=e.hash,i=e.state,a=e.action,s=e.key;if(a!==u.POP){f.saveState(s,i);var l=(t||"")+n+r+o,c={key:s};if(a===u.PUSH){if(g)return window.location.href=l,!1;window.history.pushState(c,null,l)}else{if(g)return window.location.replace(l),!1;window.history.replaceState(c,null,l)}}}function r(e){1===++b&&(T=t(_));var n=_.listenBefore(e);return function(){n(),0===--b&&T()}}function o(e){1===++b&&(T=t(_));var n=_.listen(e);return function(){n(),0===--b&&T()}}function a(e){1===++b&&(T=t(_)),_.registerTransitionHook(e)}function h(e){_.unregisterTransitionHook(e),0===--b&&T()}var y=arguments.length<=0||void 0===arguments[0]?{}:arguments[0];c.canUseDOM?void 0:s["default"](!1);var m=y.forceRefresh,v=p.supportsHistory(),g=!v||m,_=d["default"](i({},y,{getCurrentLocation:e,finishTransition:n,saveState:f.saveState})),b=0,T=void 0;return i({},_,{listenBefore:r,listen:o,registerTransitionHook:a,unregisterTransitionHook:h})}t.__esModule=!0;var i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},a=n(21),s=r(a),u=n(65),l=n(54),c=n(98),p=n(142),f=n(233),h=n(234),d=r(h);t["default"]=o,e.exports=t["default"]},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(){var e=arguments.length<=0||void 0===arguments[0]?"/":arguments[0],t=arguments.length<=1||void 0===arguments[1]?u.POP:arguments[1],n=arguments.length<=2||void 0===arguments[2]?null:arguments[2],r=arguments.length<=3||void 0===arguments[3]?null:arguments[3];"string"==typeof e&&(e=l.parsePath(e)),"object"===("undefined"==typeof t?"undefined":i(t))&&(e=a({},e,{state:t}),t=n||u.POP,n=r);var o=e.pathname||"/",s=e.search||"",c=e.hash||"",p=e.state||null;return{pathname:o,search:s,hash:c,state:p,action:t,key:n}}var i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol?"symbol":typeof e};t.__esModule=!0;var a=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},s=n(31),u=(r(s),n(65)),l=n(54);t["default"]=o,e.exports=t["default"]},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(e){return e.filter(function(e){return e.state}).reduce(function(e,t){return e[t.key]=t.state,e},{})}function i(){function e(e,t){g[e]=t}function t(e){return g[e]}function n(){var e=m[v],n=e.basename,r=e.pathname,o=e.search,i=(n||"")+r+(o||""),a=void 0,u=void 0;e.key?(a=e.key,u=t(a)):(a=h.createKey(),u=null,e.key=a);var l=p.parsePath(i);return h.createLocation(s({},l,{state:u}),void 0,a)}function r(e){var t=v+e;return t>=0&&t<m.length}function i(e){if(e){if(!r(e))return;v+=e;var t=n();h.transitionTo(s({},t,{action:f.POP}))}}function u(t){switch(t.action){case f.PUSH:v+=1,v<m.length&&m.splice(v),m.push(t),e(t.key,t.state);break;case f.REPLACE:m[v]=t,e(t.key,t.state)}}var l=arguments.length<=0||void 0===arguments[0]?{}:arguments[0];Array.isArray(l)?l={entries:l}:"string"==typeof l&&(l={entries:[l]});var h=d["default"](s({},l,{getCurrentLocation:n,finishTransition:u,saveState:e,go:i})),y=l,m=y.entries,v=y.current;"string"==typeof m?m=[m]:Array.isArray(m)||(m=["/"]),m=m.map(function(e){var t=h.createKey();return"string"==typeof e?{pathname:e,key:t}:"object"===("undefined"==typeof e?"undefined":a(e))&&e?s({},e,{key:t}):void c["default"](!1)}),null==v?v=m.length-1:v>=0&&v<m.length?void 0:c["default"](!1);var g=o(m);return h}var a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol?"symbol":typeof e};t.__esModule=!0;var s=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},u=n(31),l=(r(u),n(21)),c=r(l),p=n(54),f=n(65),h=n(236),d=r(h);t["default"]=i,e.exports=t["default"]},function(e,t,n){"use strict";function r(e){return null===e||void 0===e}function o(e){return e&&"object"===("undefined"==typeof e?"undefined":a(e))&&"number"==typeof e.length?"function"!=typeof e.copy||"function"!=typeof e.slice?!1:!(e.length>0&&"number"!=typeof e[0]):!1}function i(e,t,n){var i,p;if(r(e)||r(t))return!1;if(e.prototype!==t.prototype)return!1;if(l(e))return l(t)?(e=s.call(e),t=s.call(t),c(e,t,n)):!1;if(o(e)){if(!o(t))return!1;if(e.length!==t.length)return!1;for(i=0;i<e.length;i++)if(e[i]!==t[i])return!1;return!0}try{var f=u(e),h=u(t)}catch(d){return!1}if(f.length!=h.length)return!1;for(f.sort(),h.sort(),i=f.length-1;i>=0;i--)if(f[i]!=h[i])return!1;for(i=f.length-1;i>=0;i--)if(p=f[i],!c(e[p],t[p],n))return!1;return("undefined"==typeof e?"undefined":a(e))===("undefined"==typeof t?"undefined":a(t))}var a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol?"symbol":typeof e},s=Array.prototype.slice,u=n(556),l=n(555),c=e.exports=function(e,t,n){return n||(n={}),e===t?!0:e instanceof Date&&t instanceof Date?e.getTime()===t.getTime():!e||!t||"object"!=("undefined"==typeof e?"undefined":a(e))&&"object"!=("undefined"==typeof t?"undefined":a(t))?n.strict?e===t:e==t:i(e,t,n)}},function(e,t){"use strict";function n(e){return"[object Arguments]"==Object.prototype.toString.call(e)}function r(e){return e&&"object"==("undefined"==typeof e?"undefined":o(e))&&"number"==typeof e.length&&Object.prototype.hasOwnProperty.call(e,"callee")&&!Object.prototype.propertyIsEnumerable.call(e,"callee")||!1}var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol?"symbol":typeof e},i="[object Arguments]"==function(){return Object.prototype.toString.call(arguments)}();t=e.exports=i?n:r,t.supported=n,t.unsupported=r},function(e,t){"use strict";function n(e){var t=[];for(var n in e)t.push(n);return t}t=e.exports="function"==typeof Object.keys?Object.keys:n,t.shim=n},function(e,t,n){"use strict";var r=n(558);t.extract=function(e){return e.split("?")[1]||""},t.parse=function(e){return"string"!=typeof e?{}:(e=e.trim().replace(/^(\?|#|&)/,""),e?e.split("&").reduce(function(e,t){var n=t.replace(/\+/g," ").split("="),r=n.shift(),o=n.length>0?n.join("="):void 0;return r=decodeURIComponent(r),o=void 0===o?null:decodeURIComponent(o),e.hasOwnProperty(r)?Array.isArray(e[r])?e[r].push(o):e[r]=[e[r],o]:e[r]=o,e},{}):{})},t.stringify=function(e){return e?Object.keys(e).sort().map(function(t){var n=e[t];return void 0===n?"":null===n?t:Array.isArray(n)?n.slice().sort().map(function(e){return r(t)+"="+r(e)}).join("&"):r(t)+"="+r(n)}).filter(function(e){return e.length>0}).join("&"):""}},function(e,t){"use strict";e.exports=function(e){return encodeURIComponent(e).replace(/[!'()*]/g,function(e){return"%"+e.charCodeAt(0).toString(16).toUpperCase()})}},function(e,t,n){"use strict";var r=n(15),o=n(153),i=n(271),a={componentDidMount:function(){this.props.autoFocus&&i(o(this))}},s={Mixin:a,focusDOMComponent:function(){i(r.getNode(this._rootNodeID))}};e.exports=s},function(e,t,n){"use strict";function r(){var e=window.opera;return"object"===("undefined"==typeof e?"undefined":h(e))&&"function"==typeof e.version&&parseInt(e.version(),10)<=12}function o(e){return(e.ctrlKey||e.altKey||e.metaKey)&&!(e.ctrlKey&&e.altKey)}function i(e){switch(e){case M.topCompositionStart:return A.compositionStart;case M.topCompositionEnd:return A.compositionEnd;case M.topCompositionUpdate:return A.compositionUpdate}}function a(e,t){return e===M.topKeyDown&&t.keyCode===P}function s(e,t){switch(e){case M.topKeyUp:return-1!==T.indexOf(t.keyCode);case M.topKeyDown:return t.keyCode!==P;case M.topKeyPress:case M.topMouseDown:case M.topBlur:return!0;default:return!1}}function u(e){var t=e.detail;return"object"===("undefined"==typeof t?"undefined":h(t))&&"data"in t?t.data:null}function l(e,t,n,r,o){var l,c;if(x?l=i(e):L?s(e,r)&&(l=A.compositionEnd):a(e,r)&&(l=A.compositionStart),!l)return null;w&&(L||l!==A.compositionStart?l===A.compositionEnd&&L&&(c=L.getData()):L=v.getPooled(t));var p=g.getPooled(l,n,r,o);if(c)p.data=c;else{var f=u(r);null!==f&&(p.data=f)}return y.accumulateTwoPhaseDispatches(p),p}function c(e,t){switch(e){case M.topCompositionEnd:return u(t);case M.topKeyPress:var n=t.which;return n!==C?null:(k=!0,S);case M.topTextInput:var r=t.data;return r===S&&k?null:r;default:return null}}function p(e,t){if(L){if(e===M.topCompositionEnd||s(e,t)){var n=L.getData();return v.release(L),L=null,n}return null}switch(e){case M.topPaste:return null;case M.topKeyPress:return t.which&&!o(t)?String.fromCharCode(t.which):null;case M.topCompositionEnd:return w?null:t.data;default:return null}}function f(e,t,n,r,o){var i;if(i=O?c(e,r):p(e,r),!i)return null;var a=_.getPooled(A.beforeInput,n,r,o);return a.data=i,y.accumulateTwoPhaseDispatches(a),a}var h="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol?"symbol":typeof e},d=n(34),y=n(78),m=n(14),v=n(568),g=n(598),_=n(601),b=n(47),T=[9,13,27,32],P=229,x=m.canUseDOM&&"CompositionEvent"in window,E=null;m.canUseDOM&&"documentMode"in document&&(E=document.documentMode);var O=m.canUseDOM&&"TextEvent"in window&&!E&&!r(),w=m.canUseDOM&&(!x||E&&E>8&&11>=E),C=32,S=String.fromCharCode(C),M=d.topLevelTypes,A={beforeInput:{phasedRegistrationNames:{bubbled:b({onBeforeInput:null}),captured:b({onBeforeInputCapture:null})},dependencies:[M.topCompositionEnd,M.topKeyPress,M.topTextInput,M.topPaste]},compositionEnd:{phasedRegistrationNames:{bubbled:b({onCompositionEnd:null}),captured:b({onCompositionEndCapture:null})},dependencies:[M.topBlur,M.topCompositionEnd,M.topKeyDown,M.topKeyPress,M.topKeyUp,M.topMouseDown]},compositionStart:{phasedRegistrationNames:{bubbled:b({onCompositionStart:null}),captured:b({onCompositionStartCapture:null})},dependencies:[M.topBlur,M.topCompositionStart,M.topKeyDown,M.topKeyPress,M.topKeyUp,M.topMouseDown]},compositionUpdate:{phasedRegistrationNames:{bubbled:b({onCompositionUpdate:null}),captured:b({onCompositionUpdateCapture:null})},dependencies:[M.topBlur,M.topCompositionUpdate,M.topKeyDown,M.topKeyPress,M.topKeyUp,M.topMouseDown]}},k=!1,L=null,I={eventTypes:A,extractEvents:function(e,t,n,r,o){return[l(e,t,n,r,o),f(e,t,n,r,o)]}};e.exports=I},function(e,t,n){"use strict";var r=n(238),o=n(14),i=n(25),a=(n(615),n(606)),s=n(620),u=n(624),l=(n(7),u(function(e){return s(e)})),c=!1,p="cssFloat";if(o.canUseDOM){var f=document.createElement("div").style;try{f.font=""}catch(h){c=!0}void 0===document.documentElement.style.cssFloat&&(p="styleFloat")}var d={createMarkupForStyles:function(e){var t="";for(var n in e)if(e.hasOwnProperty(n)){var r=e[n];null!=r&&(t+=l(n)+":",t+=a(n,r)+";")}return t||null},setValueForStyles:function(e,t){var n=e.style;for(var o in t)if(t.hasOwnProperty(o)){var i=a(o,t[o]);if("float"===o&&(o=p),i)n[o]=i;else{var s=c&&r.shorthandPropertyExpansions[o];if(s)for(var u in s)n[u]="";else n[o]=""}}}};i.measureMethods(d,"CSSPropertyOperations",{setValueForStyles:"setValueForStyles"}),e.exports=d},function(e,t,n){"use strict";function r(e){var t=e.nodeName&&e.nodeName.toLowerCase();return"select"===t||"input"===t&&"file"===e.type}function o(e){var t=x.getPooled(M.change,k,e,E(e));b.accumulateTwoPhaseDispatches(t),P.batchedUpdates(i,t)}function i(e){_.enqueueEvents(e),_.processEventQueue(!1)}function a(e,t){A=e,k=t,A.attachEvent("onchange",o)}function s(){A&&(A.detachEvent("onchange",o),A=null,k=null)}function u(e,t,n){return e===S.topChange?n:void 0}function l(e,t,n){e===S.topFocus?(s(),a(t,n)):e===S.topBlur&&s()}function c(e,t){A=e,k=t,L=e.value,I=Object.getOwnPropertyDescriptor(e.constructor.prototype,"value"),Object.defineProperty(A,"value",N),A.attachEvent("onpropertychange",f)}function p(){A&&(delete A.value,A.detachEvent("onpropertychange",f),A=null,k=null,L=null,I=null)}function f(e){if("value"===e.propertyName){var t=e.srcElement.value;t!==L&&(L=t,o(e))}}function h(e,t,n){return e===S.topInput?n:void 0}function d(e,t,n){e===S.topFocus?(p(),c(t,n)):e===S.topBlur&&p()}function y(e,t,n){return e!==S.topSelectionChange&&e!==S.topKeyUp&&e!==S.topKeyDown||!A||A.value===L?void 0:(L=A.value,k)}function m(e){return e.nodeName&&"input"===e.nodeName.toLowerCase()&&("checkbox"===e.type||"radio"===e.type)}function v(e,t,n){return e===S.topClick?n:void 0}var g=n(34),_=n(77),b=n(78),T=n(14),P=n(26),x=n(56),E=n(156),O=n(159),w=n(268),C=n(47),S=g.topLevelTypes,M={change:{phasedRegistrationNames:{bubbled:C({onChange:null}),captured:C({onChangeCapture:null})},dependencies:[S.topBlur,S.topChange,S.topClick,S.topFocus,S.topInput,S.topKeyDown,S.topKeyUp,S.topSelectionChange]}},A=null,k=null,L=null,I=null,R=!1;T.canUseDOM&&(R=O("change")&&(!("documentMode"in document)||document.documentMode>8));var D=!1;T.canUseDOM&&(D=O("input")&&(!("documentMode"in document)||document.documentMode>9));var N={get:function(){return I.get.call(this)},set:function(e){L=""+e,I.set.call(this,e)}},j={eventTypes:M,extractEvents:function(e,t,n,o,i){var a,s;if(r(t)?R?a=u:s=l:w(t)?D?a=h:(a=y,s=d):m(t)&&(a=v),a){var c=a(e,t,n);if(c){var p=x.getPooled(M.change,c,o,i);return p.type="change",b.accumulateTwoPhaseDispatches(p),p}}s&&s(e,t,n)}};e.exports=j},function(e,t){"use strict";var n=0,r={createReactRootIndex:function(){return n++}};e.exports=r},function(e,t,n){"use strict";function r(e){return e.substring(1,e.indexOf(" "))}var o=n(14),i=n(617),a=n(27),s=n(273),u=n(3),l=/^(<[^ \/>]+)/,c="data-danger-index",p={dangerouslyRenderMarkup:function(e){o.canUseDOM?void 0:u(!1);for(var t,n={},p=0;p<e.length;p++)e[p]?void 0:u(!1),t=r(e[p]),t=s(t)?t:"*",n[t]=n[t]||[],n[t][p]=e[p];var f=[],h=0;for(t in n)if(n.hasOwnProperty(t)){var d,y=n[t];for(d in y)if(y.hasOwnProperty(d)){var m=y[d];y[d]=m.replace(l,"$1 "+c+'="'+d+'" ')}for(var v=i(y.join(""),a),g=0;g<v.length;++g){var _=v[g];_.hasAttribute&&_.hasAttribute(c)&&(d=+_.getAttribute(c),_.removeAttribute(c),f.hasOwnProperty(d)?u(!1):void 0,f[d]=_,h+=1)}}return h!==f.length?u(!1):void 0,f.length!==e.length?u(!1):void 0,f},dangerouslyReplaceNodeWithMarkup:function(e,t){o.canUseDOM?void 0:u(!1),t?void 0:u(!1),"html"===e.tagName.toLowerCase()?u(!1):void 0;var n;n="string"==typeof t?i(t,a)[0]:t,e.parentNode.replaceChild(n,e)}};e.exports=p},function(e,t,n){"use strict";var r=n(47),o=[r({ResponderEventPlugin:null}),r({SimpleEventPlugin:null}),r({TapEventPlugin:null}),r({EnterLeaveEventPlugin:null}),r({ChangeEventPlugin:null}),r({SelectEventPlugin:null}),r({BeforeInputEventPlugin:null})];e.exports=o},function(e,t,n){"use strict";var r=n(34),o=n(78),i=n(103),a=n(15),s=n(47),u=r.topLevelTypes,l=a.getFirstReactDOM,c={mouseEnter:{registrationName:s({onMouseEnter:null}),dependencies:[u.topMouseOut,u.topMouseOver]},mouseLeave:{
  registrationName:s({onMouseLeave:null}),dependencies:[u.topMouseOut,u.topMouseOver]}},p=[null,null],f={eventTypes:c,extractEvents:function(e,t,n,r,s){if(e===u.topMouseOver&&(r.relatedTarget||r.fromElement))return null;if(e!==u.topMouseOut&&e!==u.topMouseOver)return null;var f;if(t.window===t)f=t;else{var h=t.ownerDocument;f=h?h.defaultView||h.parentWindow:window}var d,y,m="",v="";if(e===u.topMouseOut?(d=t,m=n,y=l(r.relatedTarget||r.toElement),y?v=a.getID(y):y=f,y=y||f):(d=f,y=t,v=n),d===y)return null;var g=i.getPooled(c.mouseLeave,m,r,s);g.type="mouseleave",g.target=d,g.relatedTarget=y;var _=i.getPooled(c.mouseEnter,v,r,s);return _.type="mouseenter",_.target=y,_.relatedTarget=d,o.accumulateEnterLeaveDispatches(g,_,m,v),p[0]=g,p[1]=_,p}};e.exports=f},function(e,t,n){"use strict";function r(e){return e===m.topMouseUp||e===m.topTouchEnd||e===m.topTouchCancel}function o(e){return e===m.topMouseMove||e===m.topTouchMove}function i(e){return e===m.topMouseDown||e===m.topTouchStart}function a(e,t,n,r){var o=e.type||"unknown-event";e.currentTarget=y.Mount.getNode(r),t?h.invokeGuardedCallbackWithCatch(o,n,e,r):h.invokeGuardedCallback(o,n,e,r),e.currentTarget=null}function s(e,t){var n=e._dispatchListeners,r=e._dispatchIDs;if(Array.isArray(n))for(var o=0;o<n.length&&!e.isPropagationStopped();o++)a(e,t,n[o],r[o]);else n&&a(e,t,n,r);e._dispatchListeners=null,e._dispatchIDs=null}function u(e){var t=e._dispatchListeners,n=e._dispatchIDs;if(Array.isArray(t)){for(var r=0;r<t.length&&!e.isPropagationStopped();r++)if(t[r](e,n[r]))return n[r]}else if(t&&t(e,n))return n;return null}function l(e){var t=u(e);return e._dispatchIDs=null,e._dispatchListeners=null,t}function c(e){var t=e._dispatchListeners,n=e._dispatchIDs;Array.isArray(t)?d(!1):void 0;var r=t?t(e,n):null;return e._dispatchListeners=null,e._dispatchIDs=null,r}function p(e){return!!e._dispatchListeners}var f=n(34),h=n(255),d=n(3),y=(n(7),{Mount:null,injectMount:function(e){y.Mount=e}}),m=f.topLevelTypes,v={isEndish:r,isMoveish:o,isStartish:i,executeDirectDispatch:c,executeDispatchesInOrder:s,executeDispatchesInOrderStopAtTrue:l,hasDispatches:p,getNode:function(e){return y.Mount.getNode(e)},getID:function(e){return y.Mount.getID(e)},injection:y};e.exports=v},function(e,t,n){"use strict";function r(e){this._root=e,this._startText=this.getText(),this._fallbackText=null}var o=n(46),i=n(6),a=n(267);i(r.prototype,{destructor:function(){this._root=null,this._startText=null,this._fallbackText=null},getText:function(){return"value"in this._root?this._root.value:this._root[a()]},getData:function(){if(this._fallbackText)return this._fallbackText;var e,t,n=this._startText,r=n.length,o=this.getText(),i=o.length;for(e=0;r>e&&n[e]===o[e];e++);var a=r-e;for(t=1;a>=t&&n[r-t]===o[i-t];t++);var s=t>1?1-t:void 0;return this._fallbackText=o.slice(e,s),this._fallbackText}}),o.addPoolingTo(r),e.exports=r},function(e,t,n){"use strict";var r,o=n(66),i=n(14),a=o.injection.MUST_USE_ATTRIBUTE,s=o.injection.MUST_USE_PROPERTY,u=o.injection.HAS_BOOLEAN_VALUE,l=o.injection.HAS_SIDE_EFFECTS,c=o.injection.HAS_NUMERIC_VALUE,p=o.injection.HAS_POSITIVE_NUMERIC_VALUE,f=o.injection.HAS_OVERLOADED_BOOLEAN_VALUE;if(i.canUseDOM){var h=document.implementation;r=h&&h.hasFeature&&h.hasFeature("http://www.w3.org/TR/SVG11/feature#BasicStructure","1.1")}var d={isCustomAttribute:RegExp.prototype.test.bind(/^(data|aria)-[a-z_][a-z\d_.\-]*$/),Properties:{accept:null,acceptCharset:null,accessKey:null,action:null,allowFullScreen:a|u,allowTransparency:a,alt:null,async:u,autoComplete:null,autoPlay:u,capture:a|u,cellPadding:null,cellSpacing:null,charSet:a,challenge:a,checked:s|u,classID:a,className:r?a:s,cols:a|p,colSpan:null,content:null,contentEditable:null,contextMenu:a,controls:s|u,coords:null,crossOrigin:null,data:null,dateTime:a,"default":u,defer:u,dir:null,disabled:a|u,download:f,draggable:null,encType:null,form:a,formAction:a,formEncType:a,formMethod:a,formNoValidate:u,formTarget:a,frameBorder:a,headers:null,height:a,hidden:a|u,high:null,href:null,hrefLang:null,htmlFor:null,httpEquiv:null,icon:null,id:s,inputMode:a,integrity:null,is:a,keyParams:a,keyType:a,kind:null,label:null,lang:null,list:a,loop:s|u,low:null,manifest:a,marginHeight:null,marginWidth:null,max:null,maxLength:a,media:a,mediaGroup:null,method:null,min:null,minLength:a,multiple:s|u,muted:s|u,name:null,nonce:a,noValidate:u,open:u,optimum:null,pattern:null,placeholder:null,poster:null,preload:null,radioGroup:null,readOnly:s|u,rel:null,required:u,reversed:u,role:a,rows:a|p,rowSpan:null,sandbox:null,scope:null,scoped:u,scrolling:null,seamless:a|u,selected:s|u,shape:null,size:a|p,sizes:a,span:p,spellCheck:null,src:null,srcDoc:s,srcLang:null,srcSet:a,start:c,step:null,style:null,summary:null,tabIndex:null,target:null,title:null,type:null,useMap:null,value:s|l,width:a,wmode:a,wrap:null,about:a,datatype:a,inlist:a,prefix:a,property:a,resource:a,"typeof":a,vocab:a,autoCapitalize:a,autoCorrect:a,autoSave:null,color:null,itemProp:a,itemScope:a|u,itemType:a,itemID:a,itemRef:a,results:null,security:a,unselectable:a},DOMAttributeNames:{acceptCharset:"accept-charset",className:"class",htmlFor:"for",httpEquiv:"http-equiv"},DOMPropertyNames:{autoComplete:"autocomplete",autoFocus:"autofocus",autoPlay:"autoplay",autoSave:"autosave",encType:"encoding",hrefLang:"hreflang",radioGroup:"radiogroup",spellCheck:"spellcheck",srcDoc:"srcdoc",srcSet:"srcset"}};e.exports=d},function(e,t,n){"use strict";var r=(n(79),n(153)),o=(n(7),"_getDOMNodeDidWarn"),i={getDOMNode:function(){return this.constructor[o]=!0,r(this)}};e.exports=i},function(e,t,n){"use strict";function r(e,t,n){var r=void 0===e[n];null!=t&&r&&(e[n]=i(t,null))}var o=n(55),i=n(158),a=n(161),s=n(162),u=(n(7),{instantiateChildren:function(e,t,n){if(null==e)return null;var o={};return s(e,r,o),o},updateChildren:function(e,t,n,r){if(!t&&!e)return null;var s;for(s in t)if(t.hasOwnProperty(s)){var u=e&&e[s],l=u&&u._currentElement,c=t[s];if(null!=u&&a(l,c))o.receiveComponent(u,c,n,r),t[s]=u;else{u&&o.unmountComponent(u,s);var p=i(c,null);t[s]=p}}for(s in e)!e.hasOwnProperty(s)||t&&t.hasOwnProperty(s)||o.unmountComponent(e[s]);return t},unmountChildren:function(e){for(var t in e)if(e.hasOwnProperty(t)){var n=e[t];o.unmountComponent(n)}}});e.exports=u},function(e,t,n){"use strict";function r(e){var t=e._currentElement._owner||null;if(t){var n=t.getName();if(n)return" Check the render method of `"+n+"`."}return""}function o(e){}var i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol?"symbol":typeof e},a=n(149),s=n(35),u=n(19),l=n(79),c=n(25),p=n(102),f=(n(101),n(55)),h=n(151),d=n(6),y=n(81),m=n(3),v=n(161);n(7);o.prototype.render=function(){var e=l.get(this)._currentElement.type;return e(this.props,this.context,this.updater)};var g=1,_={construct:function(e){this._currentElement=e,this._rootNodeID=null,this._instance=null,this._pendingElement=null,this._pendingStateQueue=null,this._pendingReplaceState=!1,this._pendingForceUpdate=!1,this._renderedComponent=null,this._context=null,this._mountOrder=0,this._topLevelWrapper=null,this._pendingCallbacks=null},mountComponent:function(e,t,n){this._context=n,this._mountOrder=g++,this._rootNodeID=e;var r,a,s=this._processProps(this._currentElement.props),c=this._processContext(n),p=this._currentElement.type,d="prototype"in p;d&&(r=new p(s,c,h)),d&&null!==r&&r!==!1&&!u.isValidElement(r)||(a=r,r=new o(p)),r.props=s,r.context=c,r.refs=y,r.updater=h,this._instance=r,l.set(r,this);var v=r.state;void 0===v&&(r.state=v=null),"object"!==("undefined"==typeof v?"undefined":i(v))||Array.isArray(v)?m(!1):void 0,this._pendingStateQueue=null,this._pendingReplaceState=!1,this._pendingForceUpdate=!1,r.componentWillMount&&(r.componentWillMount(),this._pendingStateQueue&&(r.state=this._processPendingState(r.props,r.context))),void 0===a&&(a=this._renderValidatedComponent()),this._renderedComponent=this._instantiateReactComponent(a);var _=f.mountComponent(this._renderedComponent,e,t,this._processChildContext(n));return r.componentDidMount&&t.getReactMountReady().enqueue(r.componentDidMount,r),_},unmountComponent:function(){var e=this._instance;e.componentWillUnmount&&e.componentWillUnmount(),f.unmountComponent(this._renderedComponent),this._renderedComponent=null,this._instance=null,this._pendingStateQueue=null,this._pendingReplaceState=!1,this._pendingForceUpdate=!1,this._pendingCallbacks=null,this._pendingElement=null,this._context=null,this._rootNodeID=null,this._topLevelWrapper=null,l.remove(e)},_maskContext:function(e){var t=null,n=this._currentElement.type,r=n.contextTypes;if(!r)return y;t={};for(var o in r)t[o]=e[o];return t},_processContext:function(e){var t=this._maskContext(e);return t},_processChildContext:function(e){var t=this._currentElement.type,n=this._instance,r=n.getChildContext&&n.getChildContext();if(r){"object"!==i(t.childContextTypes)?m(!1):void 0;for(var o in r)o in t.childContextTypes?void 0:m(!1);return d({},e,r)}return e},_processProps:function(e){return e},_checkPropTypes:function(e,t,n){var o=this.getName();for(var i in e)if(e.hasOwnProperty(i)){var a;try{"function"!=typeof e[i]?m(!1):void 0,a=e[i](t,i,o,n)}catch(s){a=s}if(a instanceof Error){r(this);n===p.prop}}},receiveComponent:function(e,t,n){var r=this._currentElement,o=this._context;this._pendingElement=null,this.updateComponent(t,r,e,o,n)},performUpdateIfNecessary:function(e){null!=this._pendingElement&&f.receiveComponent(this,this._pendingElement||this._currentElement,e,this._context),(null!==this._pendingStateQueue||this._pendingForceUpdate)&&this.updateComponent(e,this._currentElement,this._currentElement,this._context,this._context)},updateComponent:function(e,t,n,r,o){var i,a=this._instance,s=this._context===o?a.context:this._processContext(o);t===n?i=n.props:(i=this._processProps(n.props),a.componentWillReceiveProps&&a.componentWillReceiveProps(i,s));var u=this._processPendingState(i,s),l=this._pendingForceUpdate||!a.shouldComponentUpdate||a.shouldComponentUpdate(i,u,s);l?(this._pendingForceUpdate=!1,this._performComponentUpdate(n,i,u,s,e,o)):(this._currentElement=n,this._context=o,a.props=i,a.state=u,a.context=s)},_processPendingState:function(e,t){var n=this._instance,r=this._pendingStateQueue,o=this._pendingReplaceState;if(this._pendingReplaceState=!1,this._pendingStateQueue=null,!r)return n.state;if(o&&1===r.length)return r[0];for(var i=d({},o?r[0]:n.state),a=o?1:0;a<r.length;a++){var s=r[a];d(i,"function"==typeof s?s.call(n,i,e,t):s)}return i},_performComponentUpdate:function(e,t,n,r,o,i){var a,s,u,l=this._instance,c=Boolean(l.componentDidUpdate);c&&(a=l.props,s=l.state,u=l.context),l.componentWillUpdate&&l.componentWillUpdate(t,n,r),this._currentElement=e,this._context=i,l.props=t,l.state=n,l.context=r,this._updateRenderedComponent(o,i),c&&o.getReactMountReady().enqueue(l.componentDidUpdate.bind(l,a,s,u),l)},_updateRenderedComponent:function(e,t){var n=this._renderedComponent,r=n._currentElement,o=this._renderValidatedComponent();if(v(r,o))f.receiveComponent(n,o,e,this._processChildContext(t));else{var i=this._rootNodeID,a=n._rootNodeID;f.unmountComponent(n),this._renderedComponent=this._instantiateReactComponent(o);var s=f.mountComponent(this._renderedComponent,i,e,this._processChildContext(t));this._replaceNodeWithMarkupByID(a,s)}},_replaceNodeWithMarkupByID:function(e,t){a.replaceNodeWithMarkupByID(e,t)},_renderValidatedComponentWithoutOwnerOrContext:function(){var e=this._instance,t=e.render();return t},_renderValidatedComponent:function(){var e;s.current=this;try{e=this._renderValidatedComponentWithoutOwnerOrContext()}finally{s.current=null}return null===e||e===!1||u.isValidElement(e)?void 0:m(!1),e},attachRef:function(e,t){var n=this.getPublicInstance();null==n?m(!1):void 0;var r=t.getPublicInstance(),o=n.refs===y?n.refs={}:n.refs;o[e]=r},detachRef:function(e){var t=this.getPublicInstance().refs;delete t[e]},getName:function(){var e=this._currentElement.type,t=this._instance&&this._instance.constructor;return e.displayName||t&&t.displayName||e.name||t&&t.name||null},getPublicInstance:function(){var e=this._instance;return e instanceof o?null:e},_instantiateReactComponent:null};c.measureMethods(_,"ReactCompositeComponent",{mountComponent:"mountComponent",updateComponent:"updateComponent",_renderValidatedComponent:"_renderValidatedComponent"});var b={Mixin:_};e.exports=b},function(e,t){"use strict";var n={onClick:!0,onDoubleClick:!0,onMouseDown:!0,onMouseMove:!0,onMouseUp:!0,onClickCapture:!0,onDoubleClickCapture:!0,onMouseDownCapture:!0,onMouseMoveCapture:!0,onMouseUpCapture:!0},r={getNativeProps:function(e,t,r){if(!t.disabled)return t;var o={};for(var i in t)t.hasOwnProperty(i)&&!n[i]&&(o[i]=t[i]);return o}};e.exports=r},function(e,t,n){"use strict";function r(){return this}function o(){var e=this._reactInternalComponent;return!!e}function i(){}function a(e,t){var n=this._reactInternalComponent;n&&(I.enqueueSetPropsInternal(n,e),t&&I.enqueueCallbackInternal(n,t))}function s(e,t){var n=this._reactInternalComponent;n&&(I.enqueueReplacePropsInternal(n,e),t&&I.enqueueCallbackInternal(n,t))}function u(e,t){t&&(null!=t.dangerouslySetInnerHTML&&(null!=t.children?j(!1):void 0,"object"===v(t.dangerouslySetInnerHTML)&&Z in t.dangerouslySetInnerHTML?void 0:j(!1)),null!=t.style&&"object"!==v(t.style)?j(!1):void 0)}function l(e,t,n,r){var o=A.findReactContainerForID(e);if(o){var i=o.nodeType===K?o.ownerDocument:o;z(t,i)}r.getReactMountReady().enqueue(c,{id:e,registrationName:t,listener:n})}function c(){var e=this;x.putListener(e.id,e.registrationName,e.listener)}function p(){var e=this;e._rootNodeID?void 0:j(!1);var t=A.getNode(e._rootNodeID);switch(t?void 0:j(!1),e._tag){case"iframe":e._wrapperState.listeners=[x.trapBubbledEvent(P.topLevelTypes.topLoad,"load",t)];break;case"video":case"audio":e._wrapperState.listeners=[];for(var n in Y)Y.hasOwnProperty(n)&&e._wrapperState.listeners.push(x.trapBubbledEvent(P.topLevelTypes[n],Y[n],t));break;case"img":e._wrapperState.listeners=[x.trapBubbledEvent(P.topLevelTypes.topError,"error",t),x.trapBubbledEvent(P.topLevelTypes.topLoad,"load",t)];break;case"form":e._wrapperState.listeners=[x.trapBubbledEvent(P.topLevelTypes.topReset,"reset",t),x.trapBubbledEvent(P.topLevelTypes.topSubmit,"submit",t)]}}function f(){w.mountReadyWrapper(this)}function h(){S.postUpdateWrapper(this)}function d(e){ee.call(Q,e)||($.test(e)?void 0:j(!1),Q[e]=!0)}function y(e,t){return e.indexOf("-")>=0||null!=t.is}function m(e){d(e),this._tag=e.toLowerCase(),this._renderedChildren=null,this._previousStyle=null,this._previousStyleCopy=null,this._rootNodeID=null,this._wrapperState=null,this._topLevelWrapper=null,this._nodeWithLegacyProperties=null}var v="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol?"symbol":typeof e},g=n(559),_=n(561),b=n(66),T=n(146),P=n(34),x=n(100),E=n(148),O=n(573),w=n(576),C=n(577),S=n(247),M=n(579),A=n(15),k=n(584),L=n(25),I=n(151),R=n(6),D=n(105),N=n(106),j=n(3),U=(n(159),n(47)),B=n(107),F=n(160),H=(n(164),n(163),n(7),x.deleteListener),z=x.listenTo,G=x.registrationNameModules,W={string:!0,number:!0},V=U({children:null}),q=U({style:null}),Z=U({__html:null}),K=1,Y={topAbort:"abort",topCanPlay:"canplay",topCanPlayThrough:"canplaythrough",topDurationChange:"durationchange",topEmptied:"emptied",topEncrypted:"encrypted",topEnded:"ended",topError:"error",topLoadedData:"loadeddata",topLoadedMetadata:"loadedmetadata",topLoadStart:"loadstart",topPause:"pause",topPlay:"play",topPlaying:"playing",topProgress:"progress",topRateChange:"ratechange",topSeeked:"seeked",topSeeking:"seeking",topStalled:"stalled",topSuspend:"suspend",topTimeUpdate:"timeupdate",topVolumeChange:"volumechange",topWaiting:"waiting"},J={area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0},X={listing:!0,pre:!0,textarea:!0},$=(R({menuitem:!0},J),/^[a-zA-Z][a-zA-Z:_\.\-\d]*$/),Q={},ee={}.hasOwnProperty;m.displayName="ReactDOMComponent",m.Mixin={construct:function(e){this._currentElement=e},mountComponent:function(e,t,n){this._rootNodeID=e;var r=this._currentElement.props;switch(this._tag){case"iframe":case"img":case"form":case"video":case"audio":this._wrapperState={listeners:null},t.getReactMountReady().enqueue(p,this);break;case"button":r=O.getNativeProps(this,r,n);break;case"input":w.mountWrapper(this,r,n),r=w.getNativeProps(this,r,n);break;case"option":C.mountWrapper(this,r,n),r=C.getNativeProps(this,r,n);break;case"select":S.mountWrapper(this,r,n),r=S.getNativeProps(this,r,n),n=S.processChildContext(this,r,n);break;case"textarea":M.mountWrapper(this,r,n),r=M.getNativeProps(this,r,n)}u(this,r);var o;if(t.useCreateElement){var i=n[A.ownerDocumentContextKey],a=i.createElement(this._currentElement.type);T.setAttributeForID(a,this._rootNodeID),A.getID(a),this._updateDOMProperties({},r,t,a),this._createInitialChildren(t,r,n,a),o=a}else{var s=this._createOpenTagMarkupAndPutListeners(t,r),l=this._createContentMarkup(t,r,n);o=!l&&J[this._tag]?s+"/>":s+">"+l+"</"+this._currentElement.type+">"}switch(this._tag){case"input":t.getReactMountReady().enqueue(f,this);case"button":case"select":case"textarea":r.autoFocus&&t.getReactMountReady().enqueue(g.focusDOMComponent,this)}return o},_createOpenTagMarkupAndPutListeners:function(e,t){var n="<"+this._currentElement.type;for(var r in t)if(t.hasOwnProperty(r)){var o=t[r];if(null!=o)if(G.hasOwnProperty(r))o&&l(this._rootNodeID,r,o,e);else{r===q&&(o&&(o=this._previousStyleCopy=R({},t.style)),o=_.createMarkupForStyles(o));var i=null;null!=this._tag&&y(this._tag,t)?r!==V&&(i=T.createMarkupForCustomAttribute(r,o)):i=T.createMarkupForProperty(r,o),i&&(n+=" "+i)}}if(e.renderToStaticMarkup)return n;var a=T.createMarkupForID(this._rootNodeID);return n+" "+a},_createContentMarkup:function(e,t,n){var r="",o=t.dangerouslySetInnerHTML;if(null!=o)null!=o.__html&&(r=o.__html);else{var i=W[v(t.children)]?t.children:null,a=null!=i?null:t.children;if(null!=i)r=N(i);else if(null!=a){var s=this.mountChildren(a,e,n);r=s.join("")}}return X[this._tag]&&"\n"===r.charAt(0)?"\n"+r:r},_createInitialChildren:function(e,t,n,r){var o=t.dangerouslySetInnerHTML;if(null!=o)null!=o.__html&&B(r,o.__html);else{var i=W[v(t.children)]?t.children:null,a=null!=i?null:t.children;if(null!=i)F(r,i);else if(null!=a)for(var s=this.mountChildren(a,e,n),u=0;u<s.length;u++)r.appendChild(s[u])}},receiveComponent:function(e,t,n){var r=this._currentElement;this._currentElement=e,this.updateComponent(t,r,e,n)},updateComponent:function(e,t,n,r){var o=t.props,i=this._currentElement.props;switch(this._tag){case"button":o=O.getNativeProps(this,o),i=O.getNativeProps(this,i);break;case"input":w.updateWrapper(this),o=w.getNativeProps(this,o),i=w.getNativeProps(this,i);break;case"option":o=C.getNativeProps(this,o),i=C.getNativeProps(this,i);break;case"select":o=S.getNativeProps(this,o),i=S.getNativeProps(this,i);break;case"textarea":M.updateWrapper(this),o=M.getNativeProps(this,o),i=M.getNativeProps(this,i)}u(this,i),this._updateDOMProperties(o,i,e,null),this._updateDOMChildren(o,i,e,r),!D&&this._nodeWithLegacyProperties&&(this._nodeWithLegacyProperties.props=i),"select"===this._tag&&e.getReactMountReady().enqueue(h,this)},_updateDOMProperties:function(e,t,n,r){var o,i,a;for(o in e)if(!t.hasOwnProperty(o)&&e.hasOwnProperty(o))if(o===q){var s=this._previousStyleCopy;for(i in s)s.hasOwnProperty(i)&&(a=a||{},a[i]="");this._previousStyleCopy=null}else G.hasOwnProperty(o)?e[o]&&H(this._rootNodeID,o):(b.properties[o]||b.isCustomAttribute(o))&&(r||(r=A.getNode(this._rootNodeID)),T.deleteValueForProperty(r,o));for(o in t){var u=t[o],c=o===q?this._previousStyleCopy:e[o];if(t.hasOwnProperty(o)&&u!==c)if(o===q)if(u?u=this._previousStyleCopy=R({},u):this._previousStyleCopy=null,c){for(i in c)!c.hasOwnProperty(i)||u&&u.hasOwnProperty(i)||(a=a||{},a[i]="");for(i in u)u.hasOwnProperty(i)&&c[i]!==u[i]&&(a=a||{},a[i]=u[i])}else a=u;else G.hasOwnProperty(o)?u?l(this._rootNodeID,o,u,n):c&&H(this._rootNodeID,o):y(this._tag,t)?(r||(r=A.getNode(this._rootNodeID)),o===V&&(u=null),T.setValueForAttribute(r,o,u)):(b.properties[o]||b.isCustomAttribute(o))&&(r||(r=A.getNode(this._rootNodeID)),null!=u?T.setValueForProperty(r,o,u):T.deleteValueForProperty(r,o))}a&&(r||(r=A.getNode(this._rootNodeID)),_.setValueForStyles(r,a))},_updateDOMChildren:function(e,t,n,r){var o=W[v(e.children)]?e.children:null,i=W[v(t.children)]?t.children:null,a=e.dangerouslySetInnerHTML&&e.dangerouslySetInnerHTML.__html,s=t.dangerouslySetInnerHTML&&t.dangerouslySetInnerHTML.__html,u=null!=o?null:e.children,l=null!=i?null:t.children,c=null!=o||null!=a,p=null!=i||null!=s;null!=u&&null==l?this.updateChildren(null,n,r):c&&!p&&this.updateTextContent(""),null!=i?o!==i&&this.updateTextContent(""+i):null!=s?a!==s&&this.updateMarkup(""+s):null!=l&&this.updateChildren(l,n,r)},unmountComponent:function(){switch(this._tag){case"iframe":case"img":case"form":case"video":case"audio":var e=this._wrapperState.listeners;if(e)for(var t=0;t<e.length;t++)e[t].remove();break;case"input":w.unmountWrapper(this);break;case"html":case"head":case"body":j(!1)}if(this.unmountChildren(),x.deleteAllListeners(this._rootNodeID),E.unmountIDFromEnvironment(this._rootNodeID),this._rootNodeID=null,this._wrapperState=null,this._nodeWithLegacyProperties){var n=this._nodeWithLegacyProperties;n._reactInternalComponent=null,this._nodeWithLegacyProperties=null}},getPublicInstance:function(){if(!this._nodeWithLegacyProperties){var e=A.getNode(this._rootNodeID);e._reactInternalComponent=this,e.getDOMNode=r,e.isMounted=o,e.setState=i,e.replaceState=i,e.forceUpdate=i,e.setProps=a,e.replaceProps=s,e.props=this._currentElement.props,this._nodeWithLegacyProperties=e}return this._nodeWithLegacyProperties}},L.measureMethods(m,"ReactDOMComponent",{mountComponent:"mountComponent",updateComponent:"updateComponent"}),R(m.prototype,m.Mixin,k.Mixin),e.exports=m},function(e,t,n){"use strict";function r(e){return o.createFactory(e)}var o=n(19),i=(n(252),n(623)),a=i({a:"a",abbr:"abbr",address:"address",area:"area",article:"article",aside:"aside",audio:"audio",b:"b",base:"base",bdi:"bdi",bdo:"bdo",big:"big",blockquote:"blockquote",body:"body",br:"br",button:"button",canvas:"canvas",caption:"caption",cite:"cite",code:"code",col:"col",colgroup:"colgroup",data:"data",datalist:"datalist",dd:"dd",del:"del",details:"details",dfn:"dfn",dialog:"dialog",div:"div",dl:"dl",dt:"dt",em:"em",embed:"embed",fieldset:"fieldset",figcaption:"figcaption",figure:"figure",footer:"footer",form:"form",h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",head:"head",header:"header",hgroup:"hgroup",hr:"hr",html:"html",i:"i",iframe:"iframe",img:"img",input:"input",ins:"ins",kbd:"kbd",keygen:"keygen",label:"label",legend:"legend",li:"li",link:"link",main:"main",map:"map",mark:"mark",menu:"menu",menuitem:"menuitem",meta:"meta",meter:"meter",nav:"nav",noscript:"noscript",object:"object",ol:"ol",optgroup:"optgroup",option:"option",output:"output",p:"p",param:"param",picture:"picture",pre:"pre",progress:"progress",q:"q",rp:"rp",rt:"rt",ruby:"ruby",s:"s",samp:"samp",script:"script",section:"section",select:"select",small:"small",source:"source",span:"span",strong:"strong",style:"style",sub:"sub",summary:"summary",sup:"sup",table:"table",tbody:"tbody",td:"td",textarea:"textarea",tfoot:"tfoot",th:"th",thead:"thead",time:"time",title:"title",tr:"tr",track:"track",u:"u",ul:"ul","var":"var",video:"video",wbr:"wbr",circle:"circle",clipPath:"clipPath",defs:"defs",ellipse:"ellipse",g:"g",image:"image",line:"line",linearGradient:"linearGradient",mask:"mask",path:"path",pattern:"pattern",polygon:"polygon",polyline:"polyline",radialGradient:"radialGradient",rect:"rect",stop:"stop",svg:"svg",text:"text",tspan:"tspan"},r);e.exports=a},function(e,t,n){"use strict";function r(){this._rootNodeID&&f.updateWrapper(this)}function o(e){var t=this._currentElement.props,n=a.executeOnChange(t,e);u.asap(r,this);var o=t.name;if("radio"===t.type&&null!=o){for(var i=s.getNode(this._rootNodeID),l=i;l.parentNode;)l=l.parentNode;for(var f=l.querySelectorAll("input[name="+JSON.stringify(""+o)+'][type="radio"]'),h=0;h<f.length;h++){var d=f[h];if(d!==i&&d.form===i.form){var y=s.getID(d);y?void 0:c(!1);var m=p[y];m?void 0:c(!1),u.asap(r,m)}}}return n}var i=n(150),a=n(147),s=n(15),u=n(26),l=n(6),c=n(3),p={},f={getNativeProps:function(e,t,n){var r=a.getValue(t),o=a.getChecked(t),i=l({},t,{defaultChecked:void 0,defaultValue:void 0,value:null!=r?r:e._wrapperState.initialValue,checked:null!=o?o:e._wrapperState.initialChecked,onChange:e._wrapperState.onChange});return i},mountWrapper:function(e,t){var n=t.defaultValue;e._wrapperState={initialChecked:t.defaultChecked||!1,initialValue:null!=n?n:null,onChange:o.bind(e)}},mountReadyWrapper:function(e){p[e._rootNodeID]=e},unmountWrapper:function(e){delete p[e._rootNodeID]},updateWrapper:function(e){var t=e._currentElement.props,n=t.checked;null!=n&&i.updatePropertyByID(e._rootNodeID,"checked",n||!1);var r=a.getValue(t);null!=r&&i.updatePropertyByID(e._rootNodeID,"value",""+r)}};e.exports=f},function(e,t,n){"use strict";var r=n(242),o=n(247),i=n(6),a=(n(7),o.valueContextKey),s={mountWrapper:function(e,t,n){var r=n[a],o=null;if(null!=r)if(o=!1,Array.isArray(r)){for(var i=0;i<r.length;i++)if(""+r[i]==""+t.value){o=!0;break}}else o=""+r==""+t.value;e._wrapperState={selected:o}},getNativeProps:function(e,t,n){var o=i({selected:void 0,children:void 0},t);null!=e._wrapperState.selected&&(o.selected=e._wrapperState.selected);var a="";return r.forEach(t.children,function(e){null!=e&&("string"!=typeof e&&"number"!=typeof e||(a+=e))}),a&&(o.children=a),o}};e.exports=s},function(e,t,n){"use strict";function r(e,t,n,r){return e===n&&t===r}function o(e){var t=document.selection,n=t.createRange(),r=n.text.length,o=n.duplicate();o.moveToElementText(e),o.setEndPoint("EndToStart",n);var i=o.text.length,a=i+r;return{start:i,end:a}}function i(e){var t=window.getSelection&&window.getSelection();if(!t||0===t.rangeCount)return null;var n=t.anchorNode,o=t.anchorOffset,i=t.focusNode,a=t.focusOffset,s=t.getRangeAt(0);try{s.startContainer.nodeType,s.endContainer.nodeType}catch(u){return null}var l=r(t.anchorNode,t.anchorOffset,t.focusNode,t.focusOffset),c=l?0:s.toString().length,p=s.cloneRange();p.selectNodeContents(e),p.setEnd(s.startContainer,s.startOffset);var f=r(p.startContainer,p.startOffset,p.endContainer,p.endOffset),h=f?0:p.toString().length,d=h+c,y=document.createRange();y.setStart(n,o),y.setEnd(i,a);var m=y.collapsed;return{start:m?d:h,end:m?h:d}}function a(e,t){var n,r,o=document.selection.createRange().duplicate();"undefined"==typeof t.end?(n=t.start,r=n):t.start>t.end?(n=t.end,r=t.start):(n=t.start,r=t.end),o.moveToElementText(e),o.moveStart("character",n),o.setEndPoint("EndToStart",o),o.moveEnd("character",r-n),o.select()}function s(e,t){if(window.getSelection){var n=window.getSelection(),r=e[c()].length,o=Math.min(t.start,r),i="undefined"==typeof t.end?o:Math.min(t.end,r);if(!n.extend&&o>i){var a=i;i=o,o=a}var s=l(e,o),u=l(e,i);if(s&&u){var p=document.createRange();p.setStart(s.node,s.offset),n.removeAllRanges(),o>i?(n.addRange(p),n.extend(u.node,u.offset)):(p.setEnd(u.node,u.offset),n.addRange(p))}}}var u=n(14),l=n(609),c=n(267),p=u.canUseDOM&&"selection"in document&&!("getSelection"in window),f={getOffsets:p?o:i,setOffsets:p?a:s};e.exports=f},function(e,t,n){"use strict";function r(){this._rootNodeID&&c.updateWrapper(this)}function o(e){var t=this._currentElement.props,n=i.executeOnChange(t,e);return s.asap(r,this),n}var i=n(147),a=n(150),s=n(26),u=n(6),l=n(3),c=(n(7),{getNativeProps:function(e,t,n){null!=t.dangerouslySetInnerHTML?l(!1):void 0;var r=u({},t,{defaultValue:void 0,value:void 0,children:e._wrapperState.initialValue,onChange:e._wrapperState.onChange});return r},mountWrapper:function(e,t){var n=t.defaultValue,r=t.children;null!=r&&(null!=n?l(!1):void 0,Array.isArray(r)&&(r.length<=1?void 0:l(!1),r=r[0]),n=""+r),null==n&&(n="");var a=i.getValue(t);e._wrapperState={initialValue:""+(null!=a?a:n),onChange:o.bind(e)}},updateWrapper:function(e){var t=e._currentElement.props,n=i.getValue(t);null!=n&&a.updatePropertyByID(e._rootNodeID,"value",""+n)}});e.exports=c},function(e,t,n){"use strict";function r(e){o.enqueueEvents(e),o.processEventQueue(!1)}var o=n(77),i={handleTopLevel:function(e,t,n,i,a){var s=o.extractEvents(e,t,n,i,a);r(s)}};e.exports=i},function(e,t,n){"use strict";function r(e){var t=f.getID(e),n=p.getReactRootIDFromNodeID(t),r=f.findReactContainerForID(n),o=f.getFirstReactDOM(r);return o}function o(e,t){this.topLevelType=e,this.nativeEvent=t,this.ancestors=[]}function i(e){a(e)}function a(e){for(var t=f.getFirstReactDOM(y(e.nativeEvent))||window,n=t;n;)e.ancestors.push(n),n=r(n);for(var o=0;o<e.ancestors.length;o++){t=e.ancestors[o];var i=f.getID(t)||"";v._handleTopLevel(e.topLevelType,t,i,e.nativeEvent,y(e.nativeEvent))}}function s(e){var t=m(window);e(t)}var u=n(269),l=n(14),c=n(46),p=n(67),f=n(15),h=n(26),d=n(6),y=n(156),m=n(618);d(o.prototype,{destructor:function(){this.topLevelType=null,this.nativeEvent=null,this.ancestors.length=0}}),c.addPoolingTo(o,c.twoArgumentPooler);var v={_enabled:!0,_handleTopLevel:null,WINDOW_HANDLE:l.canUseDOM?window:null,setHandleTopLevel:function(e){v._handleTopLevel=e},setEnabled:function(e){v._enabled=!!e},isEnabled:function(){return v._enabled},trapBubbledEvent:function(e,t,n){var r=n;return r?u.listen(r,t,v.dispatchEvent.bind(null,e)):null},trapCapturedEvent:function(e,t,n){var r=n;return r?u.capture(r,t,v.dispatchEvent.bind(null,e)):null},monitorScrollValue:function(e){var t=s.bind(null,e);u.listen(window,"scroll",t)},dispatchEvent:function(e,t){if(v._enabled){var n=o.getPooled(e,t);try{h.batchedUpdates(i,n)}finally{o.release(n)}}}};e.exports=v},function(e,t,n){"use strict";var r=n(66),o=n(77),i=n(149),a=n(243),s=n(253),u=n(100),l=n(259),c=n(25),p=n(262),f=n(26),h={Component:i.injection,Class:a.injection,DOMProperty:r.injection,EmptyComponent:s.injection,EventPluginHub:o.injection,EventEmitter:u.injection,NativeComponent:l.injection,Perf:c.injection,RootIndex:p.injection,Updates:f.injection};e.exports=h},function(e,t,n){"use strict";var r=n(242),o=n(244),i=n(243),a=n(575),s=n(19),u=(n(252),n(261)),l=n(152),c=n(6),p=n(610),f=s.createElement,h=s.createFactory,d=s.cloneElement,y={Children:{map:r.map,forEach:r.forEach,count:r.count,toArray:r.toArray,only:p},Component:o,createElement:f,cloneElement:d,isValidElement:s.isValidElement,PropTypes:u,createClass:i.createClass,createFactory:h,createMixin:function(e){return e},DOM:a,version:l,__spread:c};e.exports=y},function(e,t,n){"use strict";function r(e,t,n){m.push({parentID:e,parentNode:null,type:p.INSERT_MARKUP,markupIndex:v.push(t)-1,content:null,fromIndex:null,toIndex:n})}function o(e,t,n){m.push({parentID:e,parentNode:null,type:p.MOVE_EXISTING,markupIndex:null,content:null,fromIndex:t,toIndex:n})}function i(e,t){m.push({parentID:e,parentNode:null,type:p.REMOVE_NODE,markupIndex:null,content:null,fromIndex:t,toIndex:null})}function a(e,t){m.push({parentID:e,parentNode:null,type:p.SET_MARKUP,markupIndex:null,content:t,fromIndex:null,toIndex:null})}function s(e,t){m.push({parentID:e,parentNode:null,type:p.TEXT_CONTENT,markupIndex:null,content:t,fromIndex:null,toIndex:null})}function u(){m.length&&(c.processChildrenUpdates(m,v),l())}function l(){m.length=0,v.length=0}var c=n(149),p=n(258),f=(n(35),n(55)),h=n(571),d=n(265),y=0,m=[],v=[],g={Mixin:{_reconcilerInstantiateChildren:function(e,t,n){return h.instantiateChildren(e,t,n)},_reconcilerUpdateChildren:function(e,t,n,r){var o;return o=d(t),h.updateChildren(e,o,n,r)},mountChildren:function(e,t,n){var r=this._reconcilerInstantiateChildren(e,t,n);this._renderedChildren=r;var o=[],i=0;for(var a in r)if(r.hasOwnProperty(a)){var s=r[a],u=this._rootNodeID+a,l=f.mountComponent(s,u,t,n);s._mountIndex=i++,o.push(l)}return o},updateTextContent:function(e){
  y++;var t=!0;try{var n=this._renderedChildren;h.unmountChildren(n);for(var r in n)n.hasOwnProperty(r)&&this._unmountChild(n[r]);this.setTextContent(e),t=!1}finally{y--,y||(t?l():u())}},updateMarkup:function(e){y++;var t=!0;try{var n=this._renderedChildren;h.unmountChildren(n);for(var r in n)n.hasOwnProperty(r)&&this._unmountChildByName(n[r],r);this.setMarkup(e),t=!1}finally{y--,y||(t?l():u())}},updateChildren:function(e,t,n){y++;var r=!0;try{this._updateChildren(e,t,n),r=!1}finally{y--,y||(r?l():u())}},_updateChildren:function(e,t,n){var r=this._renderedChildren,o=this._reconcilerUpdateChildren(r,e,t,n);if(this._renderedChildren=o,o||r){var i,a=0,s=0;for(i in o)if(o.hasOwnProperty(i)){var u=r&&r[i],l=o[i];u===l?(this.moveChild(u,s,a),a=Math.max(u._mountIndex,a),u._mountIndex=s):(u&&(a=Math.max(u._mountIndex,a),this._unmountChild(u)),this._mountChildByNameAtIndex(l,i,s,t,n)),s++}for(i in r)!r.hasOwnProperty(i)||o&&o.hasOwnProperty(i)||this._unmountChild(r[i])}},unmountChildren:function(){var e=this._renderedChildren;h.unmountChildren(e),this._renderedChildren=null},moveChild:function(e,t,n){e._mountIndex<n&&o(this._rootNodeID,e._mountIndex,t)},createChild:function(e,t){r(this._rootNodeID,t,e._mountIndex)},removeChild:function(e){i(this._rootNodeID,e._mountIndex)},setTextContent:function(e){s(this._rootNodeID,e)},setMarkup:function(e){a(this._rootNodeID,e)},_mountChildByNameAtIndex:function(e,t,n,r,o){var i=this._rootNodeID+t,a=f.mountComponent(e,i,r,o);e._mountIndex=n,this.createChild(e,a)},_unmountChild:function(e){this.removeChild(e),e._mountIndex=null}}};e.exports=g},function(e,t,n){"use strict";var r=n(3),o={isValidOwner:function(e){return!(!e||"function"!=typeof e.attachRef||"function"!=typeof e.detachRef)},addComponentAsRefTo:function(e,t,n){o.isValidOwner(n)?void 0:r(!1),n.attachRef(t,e)},removeComponentAsRefFrom:function(e,t,n){o.isValidOwner(n)?void 0:r(!1),n.getPublicInstance().refs[t]===e.getPublicInstance()&&n.detachRef(t)}};e.exports=o},function(e,t,n){"use strict";function r(e){this.reinitializeTransaction(),this.renderToStaticMarkup=!1,this.reactMountReady=o.getPooled(null),this.useCreateElement=!e&&s.useCreateElement}var o=n(145),i=n(46),a=n(100),s=n(246),u=n(256),l=n(104),c=n(6),p={initialize:u.getSelectionInformation,close:u.restoreSelection},f={initialize:function(){var e=a.isEnabled();return a.setEnabled(!1),e},close:function(e){a.setEnabled(e)}},h={initialize:function(){this.reactMountReady.reset()},close:function(){this.reactMountReady.notifyAll()}},d=[p,f,h],y={getTransactionWrappers:function(){return d},getReactMountReady:function(){return this.reactMountReady},destructor:function(){o.release(this.reactMountReady),this.reactMountReady=null}};c(r.prototype,l.Mixin,y),i.addPoolingTo(r),e.exports=r},function(e,t,n){"use strict";function r(e,t,n){"function"==typeof e?e(t.getPublicInstance()):i.addComponentAsRefTo(t,e,n)}function o(e,t,n){"function"==typeof e?e(null):i.removeComponentAsRefFrom(t,e,n)}var i=n(585),a={};a.attachRefs=function(e,t){if(null!==t&&t!==!1){var n=t.ref;null!=n&&r(n,e,t._owner)}},a.shouldUpdateRefs=function(e,t){var n=null===e||e===!1,r=null===t||t===!1;return n||r||t._owner!==e._owner||t.ref!==e.ref},a.detachRefs=function(e,t){if(null!==t&&t!==!1){var n=t.ref;null!=n&&o(n,e,t._owner)}},e.exports=a},function(e,t){"use strict";var n={isBatchingUpdates:!1,batchedUpdates:function(e){}};e.exports=n},function(e,t,n){"use strict";function r(e){a.isValidElement(e)?void 0:d(!1);var t;try{p.injection.injectBatchingStrategy(l);var n=s.createReactRootID();return t=c.getPooled(!1),t.perform(function(){var r=h(e,null),o=r.mountComponent(n,t,f);return u.addChecksumToMarkup(o)},null)}finally{c.release(t),p.injection.injectBatchingStrategy(i)}}function o(e){a.isValidElement(e)?void 0:d(!1);var t;try{p.injection.injectBatchingStrategy(l);var n=s.createReactRootID();return t=c.getPooled(!0),t.perform(function(){var r=h(e,null);return r.mountComponent(n,t,f)},null)}finally{c.release(t),p.injection.injectBatchingStrategy(i)}}var i=n(250),a=n(19),s=n(67),u=n(257),l=n(588),c=n(590),p=n(26),f=n(81),h=n(158),d=n(3);e.exports={renderToString:r,renderToStaticMarkup:o}},function(e,t,n){"use strict";function r(e){this.reinitializeTransaction(),this.renderToStaticMarkup=e,this.reactMountReady=i.getPooled(null),this.useCreateElement=!1}var o=n(46),i=n(145),a=n(104),s=n(6),u=n(27),l={initialize:function(){this.reactMountReady.reset()},close:u},c=[l],p={getTransactionWrappers:function(){return c},getReactMountReady:function(){return this.reactMountReady},destructor:function(){i.release(this.reactMountReady),this.reactMountReady=null}};s(r.prototype,a.Mixin,p),o.addPoolingTo(r),e.exports=r},function(e,t,n){"use strict";var r=n(265),o={getChildMapping:function(e){return e?r(e):e},mergeChildMappings:function(e,t){function n(n){return t.hasOwnProperty(n)?t[n]:e[n]}e=e||{},t=t||{};var r={},o=[];for(var i in e)t.hasOwnProperty(i)?o.length&&(r[i]=o,o=[]):o.push(i);var a,s={};for(var u in t){if(r.hasOwnProperty(u))for(a=0;a<r[u].length;a++){var l=r[u][a];s[r[u][a]]=n(l)}s[u]=n(u)}for(a=0;a<o.length;a++)s[o[a]]=n(o[a]);return s}};e.exports=o},function(e,t,n){"use strict";var r=n(241),o=n(591),i=n(6),a=n(27),s=r.createClass({displayName:"ReactTransitionGroup",propTypes:{component:r.PropTypes.any,childFactory:r.PropTypes.func},getDefaultProps:function(){return{component:"span",childFactory:a.thatReturnsArgument}},getInitialState:function(){return{children:o.getChildMapping(this.props.children)}},componentWillMount:function(){this.currentlyTransitioningKeys={},this.keysToEnter=[],this.keysToLeave=[]},componentDidMount:function(){var e=this.state.children;for(var t in e)e[t]&&this.performAppear(t)},componentWillReceiveProps:function(e){var t=o.getChildMapping(e.children),n=this.state.children;this.setState({children:o.mergeChildMappings(n,t)});var r;for(r in t){var i=n&&n.hasOwnProperty(r);!t[r]||i||this.currentlyTransitioningKeys[r]||this.keysToEnter.push(r)}for(r in n){var a=t&&t.hasOwnProperty(r);!n[r]||a||this.currentlyTransitioningKeys[r]||this.keysToLeave.push(r)}},componentDidUpdate:function(){var e=this.keysToEnter;this.keysToEnter=[],e.forEach(this.performEnter);var t=this.keysToLeave;this.keysToLeave=[],t.forEach(this.performLeave)},performAppear:function(e){this.currentlyTransitioningKeys[e]=!0;var t=this.refs[e];t.componentWillAppear?t.componentWillAppear(this._handleDoneAppearing.bind(this,e)):this._handleDoneAppearing(e)},_handleDoneAppearing:function(e){var t=this.refs[e];t.componentDidAppear&&t.componentDidAppear(),delete this.currentlyTransitioningKeys[e];var n=o.getChildMapping(this.props.children);n&&n.hasOwnProperty(e)||this.performLeave(e)},performEnter:function(e){this.currentlyTransitioningKeys[e]=!0;var t=this.refs[e];t.componentWillEnter?t.componentWillEnter(this._handleDoneEntering.bind(this,e)):this._handleDoneEntering(e)},_handleDoneEntering:function(e){var t=this.refs[e];t.componentDidEnter&&t.componentDidEnter(),delete this.currentlyTransitioningKeys[e];var n=o.getChildMapping(this.props.children);n&&n.hasOwnProperty(e)||this.performLeave(e)},performLeave:function(e){this.currentlyTransitioningKeys[e]=!0;var t=this.refs[e];t.componentWillLeave?t.componentWillLeave(this._handleDoneLeaving.bind(this,e)):this._handleDoneLeaving(e)},_handleDoneLeaving:function(e){var t=this.refs[e];t.componentDidLeave&&t.componentDidLeave(),delete this.currentlyTransitioningKeys[e];var n=o.getChildMapping(this.props.children);n&&n.hasOwnProperty(e)?this.performEnter(e):this.setState(function(t){var n=i({},t.children);return delete n[e],{children:n}})},render:function(){var e=[];for(var t in this.state.children){var n=this.state.children[t];n&&e.push(r.cloneElement(this.props.childFactory(n),{ref:t,key:t}))}return r.createElement(this.props.component,this.props,e)}});e.exports=s},function(e,t,n){"use strict";var r=n(66),o=r.injection.MUST_USE_ATTRIBUTE,i={xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace"},a={Properties:{clipPath:o,cx:o,cy:o,d:o,dx:o,dy:o,fill:o,fillOpacity:o,fontFamily:o,fontSize:o,fx:o,fy:o,gradientTransform:o,gradientUnits:o,markerEnd:o,markerMid:o,markerStart:o,offset:o,opacity:o,patternContentUnits:o,patternUnits:o,points:o,preserveAspectRatio:o,r:o,rx:o,ry:o,spreadMethod:o,stopColor:o,stopOpacity:o,stroke:o,strokeDasharray:o,strokeLinecap:o,strokeOpacity:o,strokeWidth:o,textAnchor:o,transform:o,version:o,viewBox:o,x1:o,x2:o,x:o,xlinkActuate:o,xlinkArcrole:o,xlinkHref:o,xlinkRole:o,xlinkShow:o,xlinkTitle:o,xlinkType:o,xmlBase:o,xmlLang:o,xmlSpace:o,y1:o,y2:o,y:o},DOMAttributeNamespaces:{xlinkActuate:i.xlink,xlinkArcrole:i.xlink,xlinkHref:i.xlink,xlinkRole:i.xlink,xlinkShow:i.xlink,xlinkTitle:i.xlink,xlinkType:i.xlink,xmlBase:i.xml,xmlLang:i.xml,xmlSpace:i.xml},DOMAttributeNames:{clipPath:"clip-path",fillOpacity:"fill-opacity",fontFamily:"font-family",fontSize:"font-size",gradientTransform:"gradientTransform",gradientUnits:"gradientUnits",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",patternContentUnits:"patternContentUnits",patternUnits:"patternUnits",preserveAspectRatio:"preserveAspectRatio",spreadMethod:"spreadMethod",stopColor:"stop-color",stopOpacity:"stop-opacity",strokeDasharray:"stroke-dasharray",strokeLinecap:"stroke-linecap",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",textAnchor:"text-anchor",viewBox:"viewBox",xlinkActuate:"xlink:actuate",xlinkArcrole:"xlink:arcrole",xlinkHref:"xlink:href",xlinkRole:"xlink:role",xlinkShow:"xlink:show",xlinkTitle:"xlink:title",xlinkType:"xlink:type",xmlBase:"xml:base",xmlLang:"xml:lang",xmlSpace:"xml:space"}};e.exports=a},function(e,t,n){"use strict";function r(e){if("selectionStart"in e&&u.hasSelectionCapabilities(e))return{start:e.selectionStart,end:e.selectionEnd};if(window.getSelection){var t=window.getSelection();return{anchorNode:t.anchorNode,anchorOffset:t.anchorOffset,focusNode:t.focusNode,focusOffset:t.focusOffset}}if(document.selection){var n=document.selection.createRange();return{parentElement:n.parentElement(),text:n.text,top:n.boundingTop,left:n.boundingLeft}}}function o(e,t){if(b||null==v||v!==c())return null;var n=r(v);if(!_||!h(_,n)){_=n;var o=l.getPooled(m.select,g,e,t);return o.type="select",o.target=v,a.accumulateTwoPhaseDispatches(o),o}return null}var i=n(34),a=n(78),s=n(14),u=n(256),l=n(56),c=n(272),p=n(268),f=n(47),h=n(164),d=i.topLevelTypes,y=s.canUseDOM&&"documentMode"in document&&document.documentMode<=11,m={select:{phasedRegistrationNames:{bubbled:f({onSelect:null}),captured:f({onSelectCapture:null})},dependencies:[d.topBlur,d.topContextMenu,d.topFocus,d.topKeyDown,d.topMouseDown,d.topMouseUp,d.topSelectionChange]}},v=null,g=null,_=null,b=!1,T=!1,P=f({onSelect:null}),x={eventTypes:m,extractEvents:function(e,t,n,r,i){if(!T)return null;switch(e){case d.topFocus:(p(t)||"true"===t.contentEditable)&&(v=t,g=n,_=null);break;case d.topBlur:v=null,g=null,_=null;break;case d.topMouseDown:b=!0;break;case d.topContextMenu:case d.topMouseUp:return b=!1,o(r,i);case d.topSelectionChange:if(y)break;case d.topKeyDown:case d.topKeyUp:return o(r,i)}return null},didPutListener:function(e,t,n){t===P&&(T=!0)}};e.exports=x},function(e,t){"use strict";var n=Math.pow(2,53),r={createReactRootIndex:function(){return Math.ceil(Math.random()*n)}};e.exports=r},function(e,t,n){"use strict";var r=n(34),o=n(269),i=n(78),a=n(15),s=n(597),u=n(56),l=n(600),c=n(602),p=n(103),f=n(599),h=n(603),d=n(80),y=n(604),m=n(27),v=n(154),g=n(3),_=n(47),b=r.topLevelTypes,T={abort:{phasedRegistrationNames:{bubbled:_({onAbort:!0}),captured:_({onAbortCapture:!0})}},blur:{phasedRegistrationNames:{bubbled:_({onBlur:!0}),captured:_({onBlurCapture:!0})}},canPlay:{phasedRegistrationNames:{bubbled:_({onCanPlay:!0}),captured:_({onCanPlayCapture:!0})}},canPlayThrough:{phasedRegistrationNames:{bubbled:_({onCanPlayThrough:!0}),captured:_({onCanPlayThroughCapture:!0})}},click:{phasedRegistrationNames:{bubbled:_({onClick:!0}),captured:_({onClickCapture:!0})}},contextMenu:{phasedRegistrationNames:{bubbled:_({onContextMenu:!0}),captured:_({onContextMenuCapture:!0})}},copy:{phasedRegistrationNames:{bubbled:_({onCopy:!0}),captured:_({onCopyCapture:!0})}},cut:{phasedRegistrationNames:{bubbled:_({onCut:!0}),captured:_({onCutCapture:!0})}},doubleClick:{phasedRegistrationNames:{bubbled:_({onDoubleClick:!0}),captured:_({onDoubleClickCapture:!0})}},drag:{phasedRegistrationNames:{bubbled:_({onDrag:!0}),captured:_({onDragCapture:!0})}},dragEnd:{phasedRegistrationNames:{bubbled:_({onDragEnd:!0}),captured:_({onDragEndCapture:!0})}},dragEnter:{phasedRegistrationNames:{bubbled:_({onDragEnter:!0}),captured:_({onDragEnterCapture:!0})}},dragExit:{phasedRegistrationNames:{bubbled:_({onDragExit:!0}),captured:_({onDragExitCapture:!0})}},dragLeave:{phasedRegistrationNames:{bubbled:_({onDragLeave:!0}),captured:_({onDragLeaveCapture:!0})}},dragOver:{phasedRegistrationNames:{bubbled:_({onDragOver:!0}),captured:_({onDragOverCapture:!0})}},dragStart:{phasedRegistrationNames:{bubbled:_({onDragStart:!0}),captured:_({onDragStartCapture:!0})}},drop:{phasedRegistrationNames:{bubbled:_({onDrop:!0}),captured:_({onDropCapture:!0})}},durationChange:{phasedRegistrationNames:{bubbled:_({onDurationChange:!0}),captured:_({onDurationChangeCapture:!0})}},emptied:{phasedRegistrationNames:{bubbled:_({onEmptied:!0}),captured:_({onEmptiedCapture:!0})}},encrypted:{phasedRegistrationNames:{bubbled:_({onEncrypted:!0}),captured:_({onEncryptedCapture:!0})}},ended:{phasedRegistrationNames:{bubbled:_({onEnded:!0}),captured:_({onEndedCapture:!0})}},error:{phasedRegistrationNames:{bubbled:_({onError:!0}),captured:_({onErrorCapture:!0})}},focus:{phasedRegistrationNames:{bubbled:_({onFocus:!0}),captured:_({onFocusCapture:!0})}},input:{phasedRegistrationNames:{bubbled:_({onInput:!0}),captured:_({onInputCapture:!0})}},keyDown:{phasedRegistrationNames:{bubbled:_({onKeyDown:!0}),captured:_({onKeyDownCapture:!0})}},keyPress:{phasedRegistrationNames:{bubbled:_({onKeyPress:!0}),captured:_({onKeyPressCapture:!0})}},keyUp:{phasedRegistrationNames:{bubbled:_({onKeyUp:!0}),captured:_({onKeyUpCapture:!0})}},load:{phasedRegistrationNames:{bubbled:_({onLoad:!0}),captured:_({onLoadCapture:!0})}},loadedData:{phasedRegistrationNames:{bubbled:_({onLoadedData:!0}),captured:_({onLoadedDataCapture:!0})}},loadedMetadata:{phasedRegistrationNames:{bubbled:_({onLoadedMetadata:!0}),captured:_({onLoadedMetadataCapture:!0})}},loadStart:{phasedRegistrationNames:{bubbled:_({onLoadStart:!0}),captured:_({onLoadStartCapture:!0})}},mouseDown:{phasedRegistrationNames:{bubbled:_({onMouseDown:!0}),captured:_({onMouseDownCapture:!0})}},mouseMove:{phasedRegistrationNames:{bubbled:_({onMouseMove:!0}),captured:_({onMouseMoveCapture:!0})}},mouseOut:{phasedRegistrationNames:{bubbled:_({onMouseOut:!0}),captured:_({onMouseOutCapture:!0})}},mouseOver:{phasedRegistrationNames:{bubbled:_({onMouseOver:!0}),captured:_({onMouseOverCapture:!0})}},mouseUp:{phasedRegistrationNames:{bubbled:_({onMouseUp:!0}),captured:_({onMouseUpCapture:!0})}},paste:{phasedRegistrationNames:{bubbled:_({onPaste:!0}),captured:_({onPasteCapture:!0})}},pause:{phasedRegistrationNames:{bubbled:_({onPause:!0}),captured:_({onPauseCapture:!0})}},play:{phasedRegistrationNames:{bubbled:_({onPlay:!0}),captured:_({onPlayCapture:!0})}},playing:{phasedRegistrationNames:{bubbled:_({onPlaying:!0}),captured:_({onPlayingCapture:!0})}},progress:{phasedRegistrationNames:{bubbled:_({onProgress:!0}),captured:_({onProgressCapture:!0})}},rateChange:{phasedRegistrationNames:{bubbled:_({onRateChange:!0}),captured:_({onRateChangeCapture:!0})}},reset:{phasedRegistrationNames:{bubbled:_({onReset:!0}),captured:_({onResetCapture:!0})}},scroll:{phasedRegistrationNames:{bubbled:_({onScroll:!0}),captured:_({onScrollCapture:!0})}},seeked:{phasedRegistrationNames:{bubbled:_({onSeeked:!0}),captured:_({onSeekedCapture:!0})}},seeking:{phasedRegistrationNames:{bubbled:_({onSeeking:!0}),captured:_({onSeekingCapture:!0})}},stalled:{phasedRegistrationNames:{bubbled:_({onStalled:!0}),captured:_({onStalledCapture:!0})}},submit:{phasedRegistrationNames:{bubbled:_({onSubmit:!0}),captured:_({onSubmitCapture:!0})}},suspend:{phasedRegistrationNames:{bubbled:_({onSuspend:!0}),captured:_({onSuspendCapture:!0})}},timeUpdate:{phasedRegistrationNames:{bubbled:_({onTimeUpdate:!0}),captured:_({onTimeUpdateCapture:!0})}},touchCancel:{phasedRegistrationNames:{bubbled:_({onTouchCancel:!0}),captured:_({onTouchCancelCapture:!0})}},touchEnd:{phasedRegistrationNames:{bubbled:_({onTouchEnd:!0}),captured:_({onTouchEndCapture:!0})}},touchMove:{phasedRegistrationNames:{bubbled:_({onTouchMove:!0}),captured:_({onTouchMoveCapture:!0})}},touchStart:{phasedRegistrationNames:{bubbled:_({onTouchStart:!0}),captured:_({onTouchStartCapture:!0})}},volumeChange:{phasedRegistrationNames:{bubbled:_({onVolumeChange:!0}),captured:_({onVolumeChangeCapture:!0})}},waiting:{phasedRegistrationNames:{bubbled:_({onWaiting:!0}),captured:_({onWaitingCapture:!0})}},wheel:{phasedRegistrationNames:{bubbled:_({onWheel:!0}),captured:_({onWheelCapture:!0})}}},P={topAbort:T.abort,topBlur:T.blur,topCanPlay:T.canPlay,topCanPlayThrough:T.canPlayThrough,topClick:T.click,topContextMenu:T.contextMenu,topCopy:T.copy,topCut:T.cut,topDoubleClick:T.doubleClick,topDrag:T.drag,topDragEnd:T.dragEnd,topDragEnter:T.dragEnter,topDragExit:T.dragExit,topDragLeave:T.dragLeave,topDragOver:T.dragOver,topDragStart:T.dragStart,topDrop:T.drop,topDurationChange:T.durationChange,topEmptied:T.emptied,topEncrypted:T.encrypted,topEnded:T.ended,topError:T.error,topFocus:T.focus,topInput:T.input,topKeyDown:T.keyDown,topKeyPress:T.keyPress,topKeyUp:T.keyUp,topLoad:T.load,topLoadedData:T.loadedData,topLoadedMetadata:T.loadedMetadata,topLoadStart:T.loadStart,topMouseDown:T.mouseDown,topMouseMove:T.mouseMove,topMouseOut:T.mouseOut,topMouseOver:T.mouseOver,topMouseUp:T.mouseUp,topPaste:T.paste,topPause:T.pause,topPlay:T.play,topPlaying:T.playing,topProgress:T.progress,topRateChange:T.rateChange,topReset:T.reset,topScroll:T.scroll,topSeeked:T.seeked,topSeeking:T.seeking,topStalled:T.stalled,topSubmit:T.submit,topSuspend:T.suspend,topTimeUpdate:T.timeUpdate,topTouchCancel:T.touchCancel,topTouchEnd:T.touchEnd,topTouchMove:T.touchMove,topTouchStart:T.touchStart,topVolumeChange:T.volumeChange,topWaiting:T.waiting,topWheel:T.wheel};for(var x in P)P[x].dependencies=[x];var E=_({onClick:null}),O={},w={eventTypes:T,extractEvents:function(e,t,n,r,o){var a=P[e];if(!a)return null;var m;switch(e){case b.topAbort:case b.topCanPlay:case b.topCanPlayThrough:case b.topDurationChange:case b.topEmptied:case b.topEncrypted:case b.topEnded:case b.topError:case b.topInput:case b.topLoad:case b.topLoadedData:case b.topLoadedMetadata:case b.topLoadStart:case b.topPause:case b.topPlay:case b.topPlaying:case b.topProgress:case b.topRateChange:case b.topReset:case b.topSeeked:case b.topSeeking:case b.topStalled:case b.topSubmit:case b.topSuspend:case b.topTimeUpdate:case b.topVolumeChange:case b.topWaiting:m=u;break;case b.topKeyPress:if(0===v(r))return null;case b.topKeyDown:case b.topKeyUp:m=c;break;case b.topBlur:case b.topFocus:m=l;break;case b.topClick:if(2===r.button)return null;case b.topContextMenu:case b.topDoubleClick:case b.topMouseDown:case b.topMouseMove:case b.topMouseOut:case b.topMouseOver:case b.topMouseUp:m=p;break;case b.topDrag:case b.topDragEnd:case b.topDragEnter:case b.topDragExit:case b.topDragLeave:case b.topDragOver:case b.topDragStart:case b.topDrop:m=f;break;case b.topTouchCancel:case b.topTouchEnd:case b.topTouchMove:case b.topTouchStart:m=h;break;case b.topScroll:m=d;break;case b.topWheel:m=y;break;case b.topCopy:case b.topCut:case b.topPaste:m=s}m?void 0:g(!1);var _=m.getPooled(a,n,r,o);return i.accumulateTwoPhaseDispatches(_),_},didPutListener:function(e,t,n){if(t===E){var r=a.getNode(e);O[e]||(O[e]=o.listen(r,"click",m))}},willDeleteListener:function(e,t){t===E&&(O[e].remove(),delete O[e])}};e.exports=w},function(e,t,n){"use strict";function r(e,t,n,r){o.call(this,e,t,n,r)}var o=n(56),i={clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}};o.augmentClass(r,i),e.exports=r},function(e,t,n){"use strict";function r(e,t,n,r){o.call(this,e,t,n,r)}var o=n(56),i={data:null};o.augmentClass(r,i),e.exports=r},function(e,t,n){"use strict";function r(e,t,n,r){o.call(this,e,t,n,r)}var o=n(103),i={dataTransfer:null};o.augmentClass(r,i),e.exports=r},function(e,t,n){"use strict";function r(e,t,n,r){o.call(this,e,t,n,r)}var o=n(80),i={relatedTarget:null};o.augmentClass(r,i),e.exports=r},function(e,t,n){"use strict";function r(e,t,n,r){o.call(this,e,t,n,r)}var o=n(56),i={data:null};o.augmentClass(r,i),e.exports=r},function(e,t,n){"use strict";function r(e,t,n,r){o.call(this,e,t,n,r)}var o=n(80),i=n(154),a=n(608),s=n(155),u={key:a,location:null,ctrlKey:null,shiftKey:null,altKey:null,metaKey:null,repeat:null,locale:null,getModifierState:s,charCode:function(e){return"keypress"===e.type?i(e):0},keyCode:function(e){return"keydown"===e.type||"keyup"===e.type?e.keyCode:0},which:function(e){return"keypress"===e.type?i(e):"keydown"===e.type||"keyup"===e.type?e.keyCode:0}};o.augmentClass(r,u),e.exports=r},function(e,t,n){"use strict";function r(e,t,n,r){o.call(this,e,t,n,r)}var o=n(80),i=n(155),a={touches:null,targetTouches:null,changedTouches:null,altKey:null,metaKey:null,ctrlKey:null,shiftKey:null,getModifierState:i};o.augmentClass(r,a),e.exports=r},function(e,t,n){"use strict";function r(e,t,n,r){o.call(this,e,t,n,r)}var o=n(103),i={deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:null,deltaMode:null};o.augmentClass(r,i),e.exports=r},function(e,t){"use strict";function n(e){for(var t=1,n=0,o=0,i=e.length,a=-4&i;a>o;){for(;o<Math.min(o+4096,a);o+=4)n+=(t+=e.charCodeAt(o))+(t+=e.charCodeAt(o+1))+(t+=e.charCodeAt(o+2))+(t+=e.charCodeAt(o+3));t%=r,n%=r}for(;i>o;o++)n+=t+=e.charCodeAt(o);return t%=r,n%=r,t|n<<16}var r=65521;e.exports=n},function(e,t,n){"use strict";function r(e,t){var n=null==t||"boolean"==typeof t||""===t;if(n)return"";var r=isNaN(t);return r||0===t||i.hasOwnProperty(e)&&i[e]?""+t:("string"==typeof t&&(t=t.trim()),t+"px")}var o=n(238),i=o.isUnitlessNumber;e.exports=r},function(e,t,n){"use strict";function r(e,t,n,r,o){return o}n(6),n(7);e.exports=r},function(e,t,n){"use strict";function r(e){if(e.key){var t=i[e.key]||e.key;if("Unidentified"!==t)return t}if("keypress"===e.type){var n=o(e);return 13===n?"Enter":String.fromCharCode(n)}return"keydown"===e.type||"keyup"===e.type?a[e.keyCode]||"Unidentified":""}var o=n(154),i={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},a={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"};e.exports=r},function(e,t){"use strict";function n(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function r(e){for(;e;){if(e.nextSibling)return e.nextSibling;e=e.parentNode}}function o(e,t){for(var o=n(e),i=0,a=0;o;){if(3===o.nodeType){if(a=i+o.textContent.length,t>=i&&a>=t)return{node:o,offset:t-i};i=a}o=n(r(o))}}e.exports=o},function(e,t,n){"use strict";function r(e){return o.isValidElement(e)?void 0:i(!1),e}var o=n(19),i=n(3);e.exports=r},function(e,t,n){"use strict";function r(e){return'"'+o(e)+'"'}var o=n(106);e.exports=r},function(e,t,n){"use strict";var r=n(15);e.exports=r.renderSubtreeIntoContainer},function(e,t,n){"use strict";function r(e,t,n){return!o(e.props,t)||!o(e.state,n)}var o=n(164);e.exports=r},function(e,t){"use strict";function n(e){return e.replace(r,function(e,t){return t.toUpperCase()})}var r=/-(.)/g;e.exports=n},function(e,t,n){"use strict";function r(e){return o(e.replace(i,"ms-"))}var o=n(614),i=/^-ms-/;e.exports=r},function(e,t,n){"use strict";function r(e){return!!e&&("object"==("undefined"==typeof e?"undefined":i(e))||"function"==typeof e)&&"length"in e&&!("setInterval"in e)&&"number"!=typeof e.nodeType&&(Array.isArray(e)||"callee"in e||"item"in e)}function o(e){return r(e)?Array.isArray(e)?e.slice():a(e):[e]}var i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol?"symbol":typeof e},a=n(625);e.exports=o},function(e,t,n){"use strict";function r(e){var t=e.match(c);return t&&t[1].toLowerCase()}function o(e,t){var n=l;l?void 0:u(!1);var o=r(e),i=o&&s(o);if(i){n.innerHTML=i[1]+e+i[2];for(var c=i[0];c--;)n=n.lastChild}else n.innerHTML=e;var p=n.getElementsByTagName("script");p.length&&(t?void 0:u(!1),a(p).forEach(t));for(var f=a(n.childNodes);n.lastChild;)n.removeChild(n.lastChild);return f}var i=n(14),a=n(616),s=n(273),u=n(3),l=i.canUseDOM?document.createElement("div"):null,c=/^\s*<(\w+)/;e.exports=o},function(e,t){"use strict";function n(e){return e===window?{x:window.pageXOffset||document.documentElement.scrollLeft,y:window.pageYOffset||document.documentElement.scrollTop}:{x:e.scrollLeft,y:e.scrollTop}}e.exports=n},function(e,t){"use strict";function n(e){return e.replace(r,"-$1").toLowerCase()}var r=/([A-Z])/g;e.exports=n},function(e,t,n){"use strict";function r(e){return o(e).replace(i,"-ms-")}var o=n(619),i=/^ms-/;e.exports=r},function(e,t){"use strict";function n(e){return!(!e||!("function"==typeof Node?e instanceof Node:"object"===("undefined"==typeof e?"undefined":r(e))&&"number"==typeof e.nodeType&&"string"==typeof e.nodeName))}var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol?"symbol":typeof e};e.exports=n},function(e,t,n){"use strict";function r(e){return o(e)&&3==e.nodeType}var o=n(621);e.exports=r},function(e,t){"use strict";function n(e,t,n){if(!e)return null;var o={};for(var i in e)r.call(e,i)&&(o[i]=t.call(n,e[i],i,e));return o}var r=Object.prototype.hasOwnProperty;e.exports=n},function(e,t){"use strict";function n(e){var t={};return function(n){return t.hasOwnProperty(n)||(t[n]=e.call(this,n)),t[n]}}e.exports=n},function(e,t,n){"use strict";function r(e){var t=e.length;if(Array.isArray(e)||"object"!==("undefined"==typeof e?"undefined":o(e))&&"function"!=typeof e?i(!1):void 0,"number"!=typeof t?i(!1):void 0,0===t||t-1 in e?void 0:i(!1),e.hasOwnProperty)try{return Array.prototype.slice.call(e)}catch(n){}for(var r=Array(t),a=0;t>a;a++)r[a]=e[a];return r}var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol?"symbol":typeof e},i=n(3);e.exports=r},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==("undefined"==typeof t?"undefined":s(t))&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+("undefined"==typeof t?"undefined":s(t)));e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol?"symbol":typeof e};Object.defineProperty(t,"__esModule",{value:!0});var u,l,c,p=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},f=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),h=n(1),d=r(h),y=n(8),m=(r(y),n(32)),v=(r(m),n(9)),g=r(v),_=n(36),b=r(_),T=n(169),P=r(T),x=n(166),E=r(x),O=n(165),w=r(O),C=n(48),S=(r(C),n(38)),M=(r(S),n(82)),A=r(M),k=n(111),L=r(k),I=n(22),R=n(4),D=n(2),N=r(D),j=n(68),U=n(277),B=n(279),F=n(278),H=(0,N["default"])((c=l=function(e){function t(){return o(this,t),i(this,Object.getPrototypeOf(t).apply(this,arguments))}return a(t,e),f(t,[{key:"renderCursor",value:function(e,t,n){var r=this.props,o=r.children,i=r.isTooltipActive,a=(0,R.findChildByType)(o,b["default"]);if(!a||!a.props.cursor||!i)return null;var s=this.props,u=s.layout,l=s.activeTooltipIndex,c="horizontal"===u?e:t,f=(0,I.getAnyElementOfObject)(c),h=(0,I.getBandSizeOfScale)(f.scale),y=(0,j.getTicksOfAxis)(f),m=y[l].coordinate,v=p({fill:"#f1f1f1"},(0,R.getPresentationAttributes)(a.props.cursor),{x:"horizontal"===u?m:n.left+.5,y:"horizontal"===u?n.top+.5:m,width:"horizontal"===u?h:n.width-1,height:"horizontal"===u?n.height-1:h});return d["default"].isValidElement(a.props.cursor)?d["default"].cloneElement(a.props.cursor,v):d["default"].createElement(A["default"],v)}},{key:"render",value:function(){var e=this.props,t=e.xAxisMap,n=e.yAxisMap,r=e.offset,o=e.graphicalItems,i=(e.stackGroups,o.filter(function(e){return"Area"===e.type.displayName})),a=o.filter(function(e){return"Line"===e.type.displayName}),s=o.filter(function(e){return"Bar"===e.type.displayName});return d["default"].createElement(g["default"],{className:"recharts-composed"},this.renderCursor(t,n,r),d["default"].createElement(U.AreaChart,p({},this.props,{graphicalItems:i,isComposed:!0})),d["default"].createElement(F.BarChart,p({},this.props,{graphicalItems:s,isComposed:!0})),d["default"].createElement(B.LineChart,p({},this.props,{graphicalItems:a,isComposed:!0})))}}]),t}(h.Component),l.displayName="ComposedChart",l.propTypes={layout:h.PropTypes.oneOf(["horizontal","vertical"]),dataStartIndex:h.PropTypes.number,dataEndIndex:h.PropTypes.number,isTooltipActive:h.PropTypes.bool,activeTooltipIndex:h.PropTypes.number,xAxisMap:h.PropTypes.object,yAxisMap:h.PropTypes.object,offset:h.PropTypes.object,graphicalItems:h.PropTypes.array,stackGroups:h.PropTypes.object,children:h.PropTypes.oneOfType([h.PropTypes.arrayOf(h.PropTypes.node),h.PropTypes.node])},u=c))||u;t["default"]=(0,L["default"])(H,[P["default"],w["default"],E["default"]])},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==("undefined"==typeof t?"undefined":s(t))&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+("undefined"==typeof t?"undefined":s(t)));e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol?"symbol":typeof e};Object.defineProperty(t,"__esModule",{value:!0});var u,l,c,p=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},f=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,
  r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),h=n(1),d=r(h),y=n(8),m=r(y),v=n(32),g=r(v),_=n(57),b=r(_),T=n(36),P=r(T),x=n(280),E=r(x),O=n(112),w=r(O),C=n(22),S=n(4),M=n(39),A=n(2),k=r(A),L=(0,k["default"])((c=l=function(e){function t(){var e,n,r,a;o(this,t);for(var s=arguments.length,u=Array(s),l=0;s>l;l++)u[l]=arguments[l];return n=r=i(this,(e=Object.getPrototypeOf(t)).call.apply(e,[this].concat(u))),r.state={activeTooltipLabel:"",activeTooltipCoord:{x:0,y:0},activeTooltipPayload:[],isTooltipActive:!1},r.handleMouseEnter=function(e,t,n){var o=r.props.onMouseEnter,i=e.cx,a=e.cy,s=e.outerRadius,u=e.midAngle;r.setState({isTooltipActive:!0,activeTooltipCoord:(0,M.polarToCartesian)(i,a,s,u),activeTooltipPayload:[e.payload]},function(){o&&o(e,t,n)})},r.handleMouseLeave=function(e){r.setState({isTooltipActive:!1},function(){r.props.onMouseLeave&&r.props.onMouseLeave(e)})},a=n,i(r,a)}return a(t,e),f(t,[{key:"getComposedData",value:function(e){var t=e.props,n=t.data,r=t.children,o=(t.nameKey,t.valueKey,(0,S.getPresentationAttributes)(e.props)),i=(0,S.findAllByType)(r,w["default"]);return n&&n.length?n.map(function(e,t){return p({},o,e,i&&i[t]&&i[t].props)}):i&&i.length?i.map(function(e){return p({},o,e.props)}):[]}},{key:"renderLegend",value:function(e){var t=this,n=this.props.children,r=(0,S.findChildByType)(n,b["default"]);if(!r)return null;var o=this.props,i=o.width,a=o.height,s=o.margin,u=r.props&&r.props.payload||e.reduce(function(e,n){var r=n.props.nameKey,o=t.getComposedData(n);return e.concat(o.map(function(e){return p({value:e[r],color:e.fill},e)}))},[]);return d["default"].cloneElement(r,p({},b["default"].getWithHeight(r,i,a),{payload:u,chartWidth:i,chartHeight:a,margin:s}))}},{key:"renderTooltip",value:function(){var e=this.props.children,t=(0,S.findChildByType)(e,P["default"]);if(!t)return null;var n=this.props,r=n.width,o=n.height,i=this.state,a=i.isTooltipActive,s=i.activeTooltipLabel,u=i.activeTooltipCoord,l=i.activeTooltipPayload,c={x:0,y:0,width:r,height:o};return d["default"].cloneElement(t,{viewBox:c,active:a,label:s,payload:l,coordinate:u})}},{key:"renderItems",value:function(e){var t=this,n=this.props,r=n.width,o=n.height,i=n.margin;return e.map(function(e,n){var a=e.props,s=a.innerRadius,u=a.outerRadius,l=(a.data,(0,C.getPercentValue)(e.props.cx,r,r/2)),c=(0,C.getPercentValue)(e.props.cy,o,o/2),p=(0,M.getMaxRadius)(r,o,i);return d["default"].cloneElement(e,{key:"recharts-pie-"+n,cx:l,cy:c,maxRadius:Math.max(r,o)/2,innerRadius:(0,C.getPercentValue)(s,p,0),outerRadius:(0,C.getPercentValue)(u,p,.8*p),data:t.getComposedData(e),onMouseEnter:t.handleMouseEnter,onMouseLeave:t.handleMouseLeave})})}},{key:"render",value:function(){if(!(0,S.validateWidthHeight)(this))return null;var e=this.props,t=e.style,n=e.children,r=e.className,o=e.width,i=e.height,a=(0,S.findAllByType)(n,E["default"]);return d["default"].createElement("div",{className:(0,m["default"])("recharts-wrapper",r),style:p({position:"relative",cursor:"default"},t)},d["default"].createElement(g["default"],{width:o,height:i},this.renderItems(a)),this.renderLegend(a),this.renderTooltip(a))}}]),t}(h.Component),l.displayName="PieChart",l.propTypes={width:h.PropTypes.number,height:h.PropTypes.number,margin:h.PropTypes.shape({top:h.PropTypes.number,right:h.PropTypes.number,bottom:h.PropTypes.number,left:h.PropTypes.number}),title:h.PropTypes.string,style:h.PropTypes.object,children:h.PropTypes.oneOfType([h.PropTypes.arrayOf(h.PropTypes.node),h.PropTypes.node]),className:h.PropTypes.string,onMouseEnter:h.PropTypes.func,onMouseLeave:h.PropTypes.func,onClick:h.PropTypes.func},l.defaultProps={style:{},margin:{top:0,right:0,bottom:0,left:0}},u=c))||u;t["default"]=L},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==("undefined"==typeof t?"undefined":s(t))&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+("undefined"==typeof t?"undefined":s(t)));e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol?"symbol":typeof e};Object.defineProperty(t,"__esModule",{value:!0});var u,l,c,p=n(121),f=r(p),h=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},d=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),y=n(1),m=r(y),v=n(8),g=r(v),_=n(83),b=n(187),T=n(32),P=r(T),x=n(9),E=(r(x),n(57)),O=r(E),w=n(284),C=r(w),S=n(282),M=r(S),A=n(281),k=r(A),L=n(283),I=r(L),R=n(4),D=n(39),N=n(22),j=n(2),U=r(j),B=(0,U["default"])((c=l=function(e){function t(){return o(this,t),i(this,Object.getPrototypeOf(t).apply(this,arguments))}return a(t,e),d(t,[{key:"getRadiusAxisCfg",value:function(e,t,n){var r=(this.props.children,void 0),o=void 0,i=void 0;return e&&e.props.ticks?(i=e.props.ticks,o=i.length,r=[Math.min.apply(null,i),Math.max.apply(null,i)]):(o=Math.max(e&&e.props.tickCount||I["default"].defaultProps.tickCount,2),i=this.getTicksByItems(e,o),r=[Math.min.apply(null,i),Math.max.apply(null,i)]),{tickCount:o,ticks:i,scale:(0,_.scaleLinear)().domain(r).range([t,n])}}},{key:"getTicksByItems",value:function(e,t){var n=this.props,r=n.data,o=n.children,i=e?e.props:I["default"].defaultProps,a=i.domain,s=(0,R.findAllByType)(o,C["default"]),u=s.map(function(e){return e.props.dataKey}),l=r.reduce(function(e,t){var n=u.map(function(e){return t[e]||0}),r=Math.max.apply(null,n),o=Math.min.apply(null,n);return[Math.min(e[0],o),Math.max(e[1],r)]},[1/0,-(1/0)]),c=(0,N.parseSpecifiedDomain)(a,l);return!a||"auto"!==a[0]&&"auto"!==a[1]?c:(0,b.getNiceTickValues)(c,t)}},{key:"getGridRadius",value:function(e,t,n){var r=(0,f["default"])(0,e),o=(0,_.scalePoint)().domain(r).range([t,n]);return r.map(function(e){return o(e)})}},{key:"getAngle",value:function(e,t,n,r){var o=r?-1:1,i=360/t;return n+e*o*i}},{key:"getAngleTicks",value:function(e,t,n){for(var r=[],o=0;e>o;o++)r.push(this.getAngle(o,e,t,n));return r}},{key:"getRadiusTicks",value:function(e){var t=e.ticks,n=e.scale;if(t&&t.length)return t.map(function(e){return{radius:n(e),value:e}});var r=e.tickCount,o=n.domain();return(0,f["default"])(0,r).map(function(e,t){var i=o[0]+t*(o[1]-o[0])/(r-1);return{value:i,radius:n(i)}})}},{key:"getComposedData",value:function(e,t,n,r,o,i){var a=this,s=e.props.dataKey,u=this.props,l=u.data,c=u.startAngle,p=u.clockWise,f=l.length;return l.map(function(e,o){var i=e[s]||0,u=a.getAngle(o,f,c,p),l=t(i);return h({},(0,D.polarToCartesian)(n,r,l,u),{value:i,cx:n,cy:r,radius:l,angle:u,payload:e})})}},{key:"renderRadars",value:function(e,t,n,r,o,i){var a=this;if(!e||!e.length)return null;var s=(0,R.getPresentationAttributes)(this.props);return e.map(function(e,u){return m["default"].cloneElement(e,h({},s,(0,R.getPresentationAttributes)(e),{points:a.getComposedData(e,t,n,r,o,i),key:"radar-"+u}))})}},{key:"renderGrid",value:function(e,t,n,r,o){var i=this.props.children,a=(0,R.findChildByType)(i,M["default"]);if(!a)return null;var s=this.props,u=s.startAngle,l=s.clockWise,c=s.data,p=c.length,f=e.tickCount;return m["default"].cloneElement(a,{polarAngles:this.getAngleTicks(p,u,l),polarRadius:this.getGridRadius(f,r,o),cx:t,cy:n,innerRadius:r,outerRadius:o,key:"layer-grid"})}},{key:"renderAngleAxis",value:function(e,t,n,r){var o=this,i=this.props.children,a=(0,R.findChildByType)(i,k["default"]);if(!a||a.props.hide)return null;var s=this.props,u=s.data,l=(s.width,s.height,s.startAngle),c=s.clockWise,p=u.length,f=(0,R.findChildByType)(i,M["default"]),h=(0,N.getPercentValue)(a.props.radius,r,n),d=a.props.dataKey;return m["default"].cloneElement(a,{ticks:u.map(function(e,t){return{value:d?e[d]:t,angle:o.getAngle(t,p,l,c)}}),cx:e,cy:t,radius:h,axisLineType:f&&f.props&&f.props.gridType||M["default"].defaultProps.gridType,key:"layer-angle-axis"})}},{key:"renderRadiusAxis",value:function(e,t,n,r){if(!e||e.props.hide)return null;var o=this.props.startAngle;return m["default"].cloneElement(e,{angle:e.props.angle||o,ticks:this.getRadiusTicks(t),cx:n,cy:r})}},{key:"renderLegend",value:function(e){var t=this.props.children,n=(0,R.findChildByType)(t,O["default"]);if(!n)return null;var r=this.props,o=r.width,i=r.height,a=r.margin,s=n.props&&n.props.payload||e.map(function(e){var t=e.props,n=t.dataKey,r=t.name,o=t.legendType;return{type:o||"square",color:e.props.stroke||e.props.fill,value:r||n}},this);return m["default"].cloneElement(n,h({},O["default"].getWithHeight(n,o,i),{payload:s,chartWidth:o,chartHeight:i,margin:a}))}},{key:"render",value:function(){if(!(0,R.validateWidthHeight)(this))return null;var e=this.props,t=e.className,n=e.data,r=e.width,o=e.height,i=e.margin,a=e.children,s=e.style,u=(0,N.getPercentValue)(this.props.cx,r,r/2),l=(0,N.getPercentValue)(this.props.cy,o,o/2),c=(0,D.getMaxRadius)(r,o,i),p=(0,N.getPercentValue)(this.props.innerRadius,c,0),f=(0,N.getPercentValue)(this.props.outerRadius,c,.8*c);if(0>=f||!n||!n.length)return null;var d=(0,R.findAllByType)(a,C["default"]),y=(0,R.findChildByType)(a,I["default"]),v=this.getRadiusAxisCfg(y,p,f);return m["default"].createElement("div",{className:(0,g["default"])("recharts-wrapper",t),style:h({position:"relative",cursor:"default"},s)},m["default"].createElement(P["default"],{width:r,height:o},this.renderGrid(v,u,l,p,f),this.renderRadiusAxis(y,v,u,l),this.renderAngleAxis(u,l,f,c),this.renderRadars(d,v.scale,u,l,p,f)),this.renderLegend(d))}}]),t}(y.Component),l.displayName="RadarChart",l.propTypes={width:y.PropTypes.number,height:y.PropTypes.number,margin:y.PropTypes.shape({top:y.PropTypes.number,right:y.PropTypes.number,bottom:y.PropTypes.number,left:y.PropTypes.number}),cx:y.PropTypes.oneOfType([y.PropTypes.number,y.PropTypes.string]),cy:y.PropTypes.oneOfType([y.PropTypes.number,y.PropTypes.string]),startAngle:y.PropTypes.number,innerRadius:y.PropTypes.oneOfType([y.PropTypes.number,y.PropTypes.string]),outerRadius:y.PropTypes.oneOfType([y.PropTypes.number,y.PropTypes.string]),clockWise:y.PropTypes.bool,data:y.PropTypes.array,style:y.PropTypes.object,children:y.PropTypes.oneOfType([y.PropTypes.arrayOf(y.PropTypes.node),y.PropTypes.node]),className:y.PropTypes.string},l.defaultProps={width:0,height:0,cx:"50%",cy:"50%",innerRadius:0,outerRadius:"80%",startAngle:90,clockWise:!0,data:[],margin:{top:0,right:0,bottom:0,left:0}},u=c))||u;t["default"]=B},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==("undefined"==typeof t?"undefined":u(t))&&"function"!=typeof t?e:t}function s(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+("undefined"==typeof t?"undefined":u(t)));e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol?"symbol":typeof e};Object.defineProperty(t,"__esModule",{value:!0});var l,c,p,f=n(121),h=r(f),d=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},y=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),m=n(1),v=r(m),g=n(8),_=r(g),b=n(83),T=n(32),P=r(T),x=n(285),E=r(x),O=n(22),w=n(112),C=r(w),S=n(57),M=r(S),A=n(36),k=r(A),L=n(4),I=n(39),R=n(2),D=r(R),N=(0,D["default"])((p=c=function(e){function t(){var e,n,r,o;i(this,t);for(var s=arguments.length,u=Array(s),l=0;s>l;l++)u[l]=arguments[l];return n=r=a(this,(e=Object.getPrototypeOf(t)).call.apply(e,[this].concat(u))),r.state={activeTooltipLabel:"",activeTooltipPayload:[],activeTooltipCoord:{x:0,y:0},isTooltipActive:!1},r.handleMouseEnter=function(e,t,n){var o=e.cx,i=e.cy,a=e.endAngle,s=e.outerRadius;r.setState({isTooltipActive:!0,activeTooltipCoord:(0,I.polarToCartesian)(o,i,s,a),activeTooltipPayload:[e.payload]},function(){r.props.onMouseEnter&&r.props.onMouseEnter(e,t,n)})},r.handleMouseLeave=function(e,t,n){r.setState({isTooltipActive:!1},function(){r.props.onMouseEnter&&r.props.onMouseLeave(e,t,n)})},o=n,a(r,o)}return s(t,e),y(t,[{key:"getComposedData",value:function(e,t,n,r,o){var i=this.props.data,a=t[o],s=(0,L.findAllByType)(e.props.children,C["default"]);return i.map(function(e,t){var i=e[o],u=n(t);return d({},e,r,{value:i,innerRadius:u-a.offset,outerRadius:u-a.offset+a.radius},s&&s[t]&&s[t].props)})}},{key:"getRadiusList",value:function(e){var t=this.props.barSize;return e.map(function(e){return d({},e.props,{barSize:e.props.barSize||t})})}},{key:"getRadiusScale",value:function(e,t){var n=this.props.data,r=Math.max(n.length,1),o=[t,e],i=(0,b.scaleBand)().domain((0,h["default"])(0,r)).range(o);return i}},{key:"getBarPosition",value:function(e,t){var n=this.props,r=n.barGap,i=n.barCategoryGap,a=t.length,s=void 0;return a&&t[0].barSize===+t[0].barSize?!function(){var e=t.reduce(function(e,t){return e+t.barSize},0);e+=(a-1)*r;var n=-e/2>>0,i={offset:n-r,radius:0};s=t.reduce(function(e,t){return i={offset:i.offset+i.radius+r,radius:t.barSize},d({},e,o({},t.dataKey,i))},{})}():!function(){var n=(0,O.getPercentValue)(i,e),u=(e-2*n-(a-1)*r)/a>>0;n=-Math.max((u*a+(a-1)*r)/2>>0,0),s=t.reduce(function(e,t,i){return d({},e,o({},t.dataKey,{offset:n+(u+r)*i,radius:u}))},{})}(),s}},{key:"renderLegend",value:function(){var e=this.props.children,t=(0,L.findChildByType)(e,M["default"]);if(!t)return null;var n=this.props,r=n.data,o=n.width,i=n.height,a=n.margin,s=t.props&&t.props.payload||r.map(function(e){return{type:"square",color:e.fill||"#000",value:e.name}});return v["default"].cloneElement(t,d({},M["default"].getWithHeight(t,o,i),{payload:s,chartWidth:o,chartHeight:i,margin:a}))}},{key:"renderTooltip",value:function(){var e=this.props.children,t=(0,L.findChildByType)(e,k["default"]);if(!t)return null;var n=this.props,r=n.width,o=n.height,i=this.state,a=i.isTooltipActive,s=i.activeTooltipLabel,u=i.activeTooltipCoord,l=i.activeTooltipPayload,c={x:0,y:0,width:r,height:o};return v["default"].cloneElement(t,{viewBox:c,active:a,label:s,payload:l,coordinate:u})}},{key:"renderItems",value:function(e,t,n){var r=this;if(!e||!e.length)return null;var o=this.getRadiusList(e),i=t.bandwidth(),a=this.getBarPosition(i,o);return e.map(function(e,o){var i=e.props.dataKey;return v["default"].cloneElement(e,d({},n,{key:"radial-bar-"+o,onMouseLeave:r.handleMouseLeave,onMouseEnter:r.handleMouseEnter,onClick:r.props.onClick,data:r.getComposedData(e,a,t,n,i)}))},this)}},{key:"render",value:function(){var e=this.props.data;if(!(0,L.validateWidthHeight)(this)||!e||!e.length)return null;var t=this.props,n=t.style,r=t.children,o=t.className,i=t.width,a=t.height,s=t.margin,u=(0,L.findAllByType)(r,E["default"]),l=(0,O.getPercentValue)(this.props.cx,i,i/2),c=(0,O.getPercentValue)(this.props.cy,a,a/2),p=(0,I.getMaxRadius)(i,a,s),f=(0,O.getPercentValue)(this.props.innerRadius,p,0),h=(0,O.getPercentValue)(this.props.outerRadius,p,.8*p),y=this.getRadiusScale(f,h);return v["default"].createElement("div",{className:(0,_["default"])("recharts-wrapper",o),style:d({cursor:"default"},n,{position:"relative"})},v["default"].createElement(P["default"],{width:i,height:a},this.renderItems(u,y,{cx:l,cy:c})),this.renderLegend(),this.renderTooltip(u))}}]),t}(m.Component),c.displayName="RadialBarChart",c.propTypes={width:m.PropTypes.number,height:m.PropTypes.number,margin:m.PropTypes.shape({top:m.PropTypes.number,right:m.PropTypes.number,bottom:m.PropTypes.number,left:m.PropTypes.number}),cy:m.PropTypes.oneOfType([m.PropTypes.number,m.PropTypes.string]),cx:m.PropTypes.oneOfType([m.PropTypes.number,m.PropTypes.string]),data:m.PropTypes.array,innerRadius:m.PropTypes.oneOfType([m.PropTypes.number,m.PropTypes.string]),outerRadius:m.PropTypes.oneOfType([m.PropTypes.number,m.PropTypes.string]),barCategoryGap:m.PropTypes.oneOfType([m.PropTypes.number,m.PropTypes.string]),barGap:m.PropTypes.number,barSize:m.PropTypes.number,title:m.PropTypes.string,style:m.PropTypes.object,onMouseEnter:m.PropTypes.func,onMouseLeave:m.PropTypes.func,onClick:m.PropTypes.func,children:m.PropTypes.oneOfType([m.PropTypes.arrayOf(m.PropTypes.node),m.PropTypes.node]),className:m.PropTypes.string},c.defaultProps={cx:"50%",cy:"50%",innerRadius:"30%",outerRadius:"90%",barGap:2,barCategoryGap:"10%",style:{},margin:{top:0,right:0,bottom:0,left:0}},l=p))||l;t["default"]=N},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==("undefined"==typeof t?"undefined":u(t))&&"function"!=typeof t?e:t}function s(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+("undefined"==typeof t?"undefined":u(t)));e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol?"symbol":typeof e};Object.defineProperty(t,"__esModule",{value:!0});var l,c,p,f=n(17),h=r(f),d=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},y=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),m=n(1),v=r(m),g=n(8),_=r(g),b=n(83),T=n(187),P=n(32),x=r(P),E=n(9),O=r(E),w=n(57),C=r(w),S=n(36),M=r(S),A=n(286),k=r(A),L=n(167),I=r(L),R=n(168),D=r(R),N=n(275),j=r(N),U=n(170),B=r(U),F=n(171),H=r(F),z=n(276),G=r(z),W=n(110),V=r(W),q=n(109),Z=r(q),K=n(4),Y=n(2),J=r(Y),X=n(22),$=n(174),Q=n(68),ee=(0,J["default"])((p=c=function(e){function t(){var e,n,r,o;i(this,t);for(var s=arguments.length,u=Array(s),l=0;s>l;l++)u[l]=arguments[l];return n=r=a(this,(e=Object.getPrototypeOf(t)).call.apply(e,[this].concat(u))),r.state={activeTooltipCoord:{x:0,y:0},isTooltipActive:!1,activeItem:null},r.handleScatterMouseEnter=function(e,t){r.setState({isTooltipActive:!0,activeItem:e,activeTooltipCoord:{x:e.cx,y:e.cy}})},r.handleScatterMouseLeave=function(){r.setState({isTooltipActive:!1})},o=n,a(r,o)}return s(t,e),y(t,[{key:"getComposedData",value:function(e,t,n,r){var o=t.dataKey,i=n.dataKey,a=r.dataKey;return e.map(function(e){return{cx:t.scale(e[o]),cy:n.scale(e[i]),r:void 0!==a?r.scale(e[a]):r.range[0],payload:{x:e[o],y:e[i],z:void 0!==a&&e[a]||"-"}}})}},{key:"getDomain",value:function(e,t,n,r){var o=e.reduce(function(e,n){return e.concat(n.props.data.map(function(e){return e[t]}))},[]);return"xAxis"!==r&&"yAxis"!==r||(o=(0,Q.detectReferenceElementsDomain)(this.props.children,o,n,r)),[Math.min.apply(null,o),Math.max.apply(null,o)]}},{key:"getAxis",value:function(){var e=arguments.length<=0||void 0===arguments[0]?"xAxis":arguments[0],t=arguments[1],n=this.props.children,r="xAxis"===e?B["default"]:H["default"],o=(0,K.findChildByType)(n,r);if((0,$.warn)(o,"recharts: ScatterChart must has %s",r.displayName),o){var i=(0,X.parseSpecifiedDomain)(o.props.domain,this.getDomain(t,o.props.dataKey,o.props[e+"Id"],e));return d({},o.props,{axisType:e,domain:i,type:"number",originalDomain:o.props.domain})}return null}},{key:"getZAxis",value:function(e){var t=this.props.children,n=(0,K.findChildByType)(t,G["default"]),r=n&&n.props||G["default"].defaultProps,o=r.dataKey?this.getDomain(e,r.dataKey):[-1,1];return d({},r,{domain:o,scale:(0,b.scaleLinear)().domain(o).range(r.range)})}},{key:"getOffset",value:function(e,t,n){var r=this.props,o=r.children,i=r.width,a=r.height,s=r.margin,u=d({},s),l=(0,Q.getLegendProps)(o,e,i,a);if(u[t.orientation]+=t.height,u[n.orientation]+=n.width,l){var c=C["default"].getLegendBBox(l,i,a)||{};"horizontal"===l.layout&&(0,h["default"])(u[l.verticalAlign])?u[l.verticalAlign]+=c.height||0:"vertical"===l.layout&&(0,h["default"])(u[l.align])&&(u[l.align]+=c.width||0)}return d({},u,{width:i-u.left-u.right,height:a-u.top-u.bottom})}},{key:"setTicksOfScale",value:function(e,t){if(t.ticks&&t.ticks)return t.domain=(0,Q.calculateDomainOfTicks)(t.ticks,t.type),void e.domain(t.domain).ticks(t.ticks.length);if(t.tickCount&&t.originalDomain&&("auto"===t.originalDomain[0]||"auto"===t.originalDomain[1])){var n=e.domain(),r=(0,T.getNiceTickValues)(n,t.tickCount);t.ticks=r,e.domain((0,Q.calculateDomainOfTicks)(r,t.type))}}},{key:"getFormatAxis",value:function(e,t,n){var r=e.orientation,o=e.domain,i=e.tickFormat,a="xAxis"===n?[t.left,t.left+t.width]:[t.top+t.height,t.top],s=(0,b.scaleLinear)().domain(o).range(a);this.setTicksOfScale(s,e),i&&s.tickFormat(i);var u=void 0,l=void 0;return"xAxis"===n?(u=t.left,l="top"===r?t.top-e.height:t.top+t.height):(u="left"===r?t.left-e.width:t.right,l=t.top),d({},e,{scale:s,width:"xAxis"===n?t.width:e.width,height:"yAxis"===n?t.height:e.height,x:u,y:l})}},{key:"getTooltipContent",value:function(e,t,n,r){if(!e)return null;var o=[{name:t.name||t.dataKey,unit:t.unit||"",value:e.x},{name:n.name||n.dataKey,unit:n.unit||"",value:e.y}];return e.z&&"-"!==e.z&&o.push({name:r.name||r.dataKey,unit:r.unit||"",value:e.z}),o}},{key:"renderTooltip",value:function(e,t,n,r,o){var i=this.props.children,a=(0,K.findChildByType)(i,M["default"]);if(!a||!a.props.cursor||!this.state.isTooltipActive)return null;var s=this.state,u=s.isTooltipActive,l=s.activeItem,c=s.activeTooltipCoord,p={x:o.left,y:o.top,width:o.width,height:o.height};return v["default"].cloneElement(a,{viewBox:p,active:u,label:"",payload:this.getTooltipContent(l&&l.payload,t,n,r),coordinate:c})}},{key:"renderGrid",value:function(e,t,n){var r=this.props,o=r.children,i=r.width,a=r.height,s=(0,K.findChildByType)(o,D["default"]);if(!s)return null;var u=(0,Q.getTicksOfGrid)(I["default"].getTicks(d({},I["default"].defaultProps,e,{ticks:(0,Q.getTicksOfAxis)(e,!0),viewBox:{x:0,y:0,width:i,height:a}})),n.left,n.left+n.width),l=(0,Q.getTicksOfGrid)(I["default"].getTicks(d({},I["default"].defaultProps,t,{ticks:(0,Q.getTicksOfAxis)(t,!0),viewBox:{x:0,y:0,width:i,height:a}})),n.top,n.top+n.height);return v["default"].cloneElement(s,{key:"grid",x:n.left,y:n.top,width:n.width,height:n.height,verticalPoints:u,horizontalPoints:l})}},{key:"renderLegend",value:function(e){var t=(0,Q.getLegendProps)(e);if(!t)return null;var n=this.props,r=n.margin,o=n.width,i=n.height;return v["default"].createElement(C["default"],d({},t,{chartWidth:o,chartHeight:i,margin:r}))}},{key:"renderAxis",value:function(e,t){var n=this.props,r=n.width,o=n.height;return e&&!e.hide?v["default"].createElement(O["default"],{key:t,className:t},v["default"].createElement(I["default"],{x:e.x,y:e.y,width:e.width,height:e.height,orientation:e.orientation,viewBox:{x:0,y:0,width:r,height:o},ticks:(0,Q.getTicksOfAxis)(e)})):null}},{key:"renderCursor",value:function(e,t,n){var r=this.props.children,o=(0,K.findChildByType)(r,M["default"]);if(!o||!this.state.isTooltipActive)return null;var i=this.state.activeItem,a=d({fill:"#f1f1f1"},(0,K.getPresentationAttributes)(o.props.cursor),n,{x:i.cx,y:i.cy,payload:i});return v["default"].isValidElement(o.props.cursor)?v["default"].cloneElement(o.props.cursor,a):v["default"].createElement(k["default"],a)}},{key:"renderItems",value:function(e,t,n,r){var o=this,i=this.state.activeGroupId;return e.map(function(e,a){var s=e.props,u=s.strokeWidth,l=s.data,c=u===+u?u:1;return c=i==="scatter-"+a?c+2:c,v["default"].cloneElement(e,{key:"scatter-"+a,groupId:"scatter-"+a,strokeWidth:c,onMouseLeave:o.handleScatterMouseLeave,onMouseEnter:o.handleScatterMouseEnter,points:o.getComposedData(l,t,n,r)})},this)}},{key:"renderReferenceLines",value:function(e,t,n){var r=this.props.children,i=(0,K.findAllByType)(r,V["default"]);return i&&i.length?i.map(function(r,i){return v["default"].cloneElement(r,{key:"reference-line-"+i,xAxisMap:o({},e.xAxisId,e),yAxisMap:o({},t.yAxisId,t),viewBox:{x:n.left,y:n.top,width:n.width,height:n.height}})}):null}},{key:"renderReferenceDots",value:function(e,t,n){var r=this.props.children,i=(0,K.findAllByType)(r,Z["default"]);return i&&i.length?i.map(function(n,r){return v["default"].cloneElement(n,{key:"reference-dot-"+r,xAxisMap:o({},e.xAxisId,e),yAxisMap:o({},t.yAxisId,t)})}):null}},{key:"render",value:function(){if(!(0,K.validateWidthHeight)(this))return null;var e=this.props,t=e.style,n=e.children,r=e.className,o=e.width,i=e.height,a=(0,K.findAllByType)(n,j["default"]),s=this.getZAxis(a),u=this.getAxis("xAxis",a),l=this.getAxis("yAxis",a),c=this.getOffset(a,u,l);return u=this.getFormatAxis(u,c,"xAxis"),l=this.getFormatAxis(l,c,"yAxis"),v["default"].createElement("div",{className:(0,_["default"])("recharts-wrapper",r),style:d({position:"relative",cursor:"default"},t)},v["default"].createElement(x["default"],{width:o,height:i},this.renderGrid(u,l,c),this.renderReferenceLines(u,l,c),this.renderReferenceDots(u,l,c),this.renderAxis(u,"recharts-x-axis"),this.renderAxis(l,"recharts-y-axis"),this.renderCursor(u,l,c),this.renderItems(a,u,l,s,c)),this.renderLegend(a),this.renderTooltip(a,u,l,s,c))}}]),t}(m.Component),c.displayName="ScatterChart",c.propTypes={width:m.PropTypes.number,height:m.PropTypes.number,margin:m.PropTypes.shape({top:m.PropTypes.number,right:m.PropTypes.number,bottom:m.PropTypes.number,left:m.PropTypes.number}),title:m.PropTypes.string,style:m.PropTypes.object,children:m.PropTypes.oneOfType([m.PropTypes.arrayOf(m.PropTypes.node),m.PropTypes.node]),className:m.PropTypes.string},c.defaultProps={style:{},margin:{top:5,right:5,bottom:5,left:5}},l=p))||l;t["default"]=ee},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==("undefined"==typeof t?"undefined":s(t))&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+("undefined"==typeof t?"undefined":s(t)));e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol?"symbol":typeof e};Object.defineProperty(t,"__esModule",{value:!0});var u,l,c,p=n(10),f=r(p),h=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),d=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},y=n(1),m=r(y),v=n(32),g=r(v),_=n(9),b=r(_),T=n(82),P=r(T),x=n(4),E=n(8),O=r(E),w=n(40),C=r(w),S=n(2),M=r(S),A=function j(e,t,n,r){var o=t.children,i=e+1,a=o&&o.length?o.map(function(e,t){return j(i,e,t,r)}):null,s=void 0;return s=o&&o.length?a.reduce(function(e,t){return e+t.value},0):isNaN(t[r])||t[r]<=0?0:t[r],d({},t,{children:a,value:s,depth:e,index:n})},k=function(e){return{x:e.x,y:e.y,width:e.width,height:e.height}},L=function(e,t){var n=0>t?0:t;return e.map(function(e){var t=e.value*n;return d({},e,{area:isNaN(t)||0>=t?0:t})})},I=function(e,t,n){var r=t*t,o=e.area*e.area,i=e.reduce(function(e,t){return{min:Math.min(e.min,t.area),max:Math.max(e.max,t.area)}},{min:1/0,max:0}),a=i.min,s=i.max;return o?Math.max(r*s*n/o,o/(r*a*n)):1/0},R=function(e,t,n,r){var o=-1,i=e.length,a=n.x,s=n.y,u=t?Math.round(e.area/t):0,l=void 0;if(t===n.width){for((r||u>n.height)&&(u=n.height);++o<i;)l=e[o],l.x=a,l.y=s,l.height=u,a+=l.width=Math.min(n.x+n.width-a,u?Math.round(l.area/u):0);l.z=!0,l.width+=n.x+n.width-a,n.y+=u,n.height-=u}else{for((r||u>n.width)&&(u=n.width);++o<i;)l=e[o],l.x=a,l.y=s,l.width=u,s+=l.height=Math.min(n.y+n.height-s,u?Math.round(l.area/u):0);l.z=!1,l.height+=n.y+n.height-s,n.x+=u,n.width-=u}},D=function U(e,t){var n=e.children;if(n&&n.length){var r=k(e),o=[],i=1/0,a=void 0,s=Math.min(r.width,r.height),u=L(n,r.width*r.height/e.value),l=u.slice();o.area=0;for(var c=void 0;l.length>0;)o.push(c=l[0]),o.area+=c.area,a=I(o,s,t),i>=a?(l.shift(),i=a):(o.area-=o.pop().area,R(o,s,r,!1),s=Math.min(r.width,r.height),o.length=o.area=0,i=1/0);return o.length&&(R(o,s,r,!0),o.length=o.area=0),d({},e,{children:u.map(function(e){return U(e,t)})})}return e},N=(0,M["default"])((c=l=function(e){function t(){return o(this,t),i(this,Object.getPrototypeOf(t).apply(this,arguments))}return a(t,e),h(t,[{key:"renderDefaultNode",value:function(e){var t=this.props,n=t.isAnimationActive,r=t.animationBegin,o=t.animationDuration,i=t.animationEasing,a=e.width,s=e.height,u=parseInt((2*Math.random()-1)*a,10);parseInt((2*Math.random()-1)*s,10);return m["default"].createElement(C["default"],{from:"translate("+u+"px, "+u+"px)",to:"translate(0, 0)",attributeName:"transform",animationBegin:r,animationEasing:i,isAnimationActive:n,animationDuration:o},m["default"].createElement("g",null,m["default"].createElement(P["default"],d({},e,{isAnimationActive:n}))))}},{key:"renderNode",value:function(e,t,n){var r=this,o=this.props.content,i=d({},(0,x.getPresentationAttributes)(this.props),t,{root:e}),a=void 0;return a=m["default"].isValidElement(o)?m["default"].cloneElement(o,i):(0,f["default"])(o)?o(i):this.renderDefaultNode(i),m["default"].createElement(b["default"],{key:"recharts-treemap-node-"+n},a,t.children&&t.children.length?t.children.map(function(e,n){return r.renderNode(t,e,n)}):null)}},{key:"renderAllNodes",value:function(){var e=this.props,t=e.width,n=e.height,r=e.data,o=e.dataKey,i=e.ratio,a=A(0,{children:r,x:0,y:0,width:t,height:n},0,o),s=D(a,i);return this.renderNode(s,s,0)}},{key:"render",value:function(){if(!(0,x.validateWidthHeight)(this))return null;var e=this.props,t=e.width,n=e.height,r=e.className,o=e.style;return m["default"].createElement("div",{className:(0,O["default"])("recharts-wrapper",r),style:d({position:"relative",cursor:"default"
  },o)},m["default"].createElement(g["default"],{width:t,height:n},this.renderAllNodes()))}}]),t}(y.Component),l.displayName="Treemap",l.propTypes={width:y.PropTypes.number,height:y.PropTypes.number,data:y.PropTypes.array,style:y.PropTypes.object,ratio:y.PropTypes.number,content:y.PropTypes.oneOfType([y.PropTypes.element,y.PropTypes.func]),fill:y.PropTypes.string,stroke:y.PropTypes.string,className:y.PropTypes.string,dataKey:y.PropTypes.string,isAnimationActive:y.PropTypes.bool,animationBegin:y.PropTypes.number,animationDuration:y.PropTypes.number,animationEasing:y.PropTypes.oneOf(["ease","ease-in","ease-out","ease-in-out","linear"])},l.defaultProps={fill:"#fff",stroke:"#000",dataKey:"value",ratio:.5*(1+Math.sqrt(5)),isAnimationActive:!0,animationBegin:0,animationDuration:1500,animationEasing:"ease"},u=c))||u;t["default"]=N},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==("undefined"==typeof t?"undefined":s(t))&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+("undefined"==typeof t?"undefined":s(t)));e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol?"symbol":typeof e};Object.defineProperty(t,"__esModule",{value:!0});var u,l,c,p=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),f=n(1),h=r(f),d=n(2),y=r(d),m=n(32),v=r(m),g=32,_=(0,y["default"])((c=l=function(e){function t(){return o(this,t),i(this,Object.getPrototypeOf(t).apply(this,arguments))}return a(t,e),p(t,[{key:"renderIcon",value:function(e){var t=g/2,n=g/6,r=g/3,o=void 0,i=e.color,a=e.color;switch(e.type){case"line":i="none",o="M0,"+t+"h"+r+"A"+n+","+n+","+("0,1,1,"+2*r+","+t)+("H"+g+"M"+2*r+","+t)+("A"+n+","+n+",0,1,1,"+r+","+t);break;case"scatter":a="none",o="M"+t+",0A"+t+","+t+",0,1,1,"+t+","+g+("A"+t+","+t+",0,1,1,"+t+",0Z");break;case"rect":a="none",o="M0,"+g/8+"h"+g+"v"+3*g/4+"h"+-g+"z";break;default:a="none",o="M0,0h"+g+"v"+g+"h"+-g+"z"}return h["default"].createElement("path",{strokeWidth:4,fill:i,stroke:a,d:o,className:"recharts-legend-icon"})}},{key:"renderItems",value:function(){var e=this,t=this.props,n=t.payload,r=t.iconSize,o=t.layout,i={x:0,y:0,width:g,height:g},a={display:"horizontal"===o?"inline-block":"block",marginRight:10},s={display:"inline-block",verticalAlign:"middle",marginRight:4};return n.map(function(t,n){return h["default"].createElement("li",{className:"recharts-legend-item legend-item-"+n,style:a,key:"legend-item-"+n},h["default"].createElement(v["default"],{width:r,height:r,viewBox:i,style:s},e.renderIcon(t)),h["default"].createElement("span",{className:"recharts-legend-item-text"},t.value))})}},{key:"render",value:function(){var e=this.props,t=e.payload,n=e.layout,r=e.align;if(!t||!t.length)return null;var o={padding:0,margin:0,textAlign:"horizontal"===n?r:"left"};return h["default"].createElement("ul",{className:"recharts-default-legend",style:o},this.renderItems())}}]),t}(f.Component),l.displayName="Legend",l.propTypes={content:f.PropTypes.element,iconSize:f.PropTypes.number,layout:f.PropTypes.oneOf(["horizontal","vertical"]),align:f.PropTypes.oneOf(["center","left","right"]),verticalAlign:f.PropTypes.oneOf(["top","bottom","middle"]),payload:f.PropTypes.arrayOf(f.PropTypes.shape({value:f.PropTypes.any,id:f.PropTypes.any,type:f.PropTypes.oneOf(["line","scatter","square","rect"])}))},l.defaultProps={iconSize:14,layout:"horizontal",align:"center",verticalAlign:"middle"},u=c))||u;t["default"]=_},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==("undefined"==typeof t?"undefined":s(t))&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+("undefined"==typeof t?"undefined":s(t)));e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol?"symbol":typeof e};Object.defineProperty(t,"__esModule",{value:!0});var u,l,c,p=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},f=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),h=n(1),d=r(h),y=n(2),m=r(y),v=(0,m["default"])((c=l=function(e){function t(){return o(this,t),i(this,Object.getPrototypeOf(t).apply(this,arguments))}return a(t,e),f(t,[{key:"renderContent",value:function(){var e=this.props,t=e.payload,n=e.separator,r=e.formatter,o=e.itemStyle;if(t&&t.length){var i={padding:0,margin:0},a=t.map(function(e,t){var i=p({display:"block",paddingTop:4,paddingBottom:4,color:e.color||"#000"},o),a=e.formatter||r;return d["default"].createElement("li",{className:"recharts-tooltip-item",key:"tooltip-item-"+t,style:i},d["default"].createElement("span",{className:"recharts-tooltip-item-name"},e.name),d["default"].createElement("span",{className:"recharts-tooltip-item-separator"},n),d["default"].createElement("span",{className:"recharts-tooltip-item-value"},a?a(e.value,e.name):e.value),d["default"].createElement("span",{className:"recharts-tooltip-item-unit"},e.unit||""))});return d["default"].createElement("ul",{className:"recharts-tooltip-item-list",style:i},a)}return null}},{key:"render",value:function(){var e=this.props,t=e.labelStyle,n=e.label,r=e.labelFormatter,o=e.wrapperStyle,i=p({margin:0,padding:10,backgroundColor:"#fff",border:"1px solid #ccc",whiteSpace:"nowrap"},o),a=p({margin:0},t),s=n;return n&&r&&(s=r(n)),d["default"].createElement("div",{className:"recharts-default-tooltip",style:i},d["default"].createElement("p",{className:"recharts-tooltip-label",style:a},s||""),this.renderContent())}}]),t}(h.Component),l.displayName="DefaultTooltipContent",l.propTypes={separator:h.PropTypes.string,formatter:h.PropTypes.func,wrapperStyle:h.PropTypes.object,itemStyle:h.PropTypes.object,labelStyle:h.PropTypes.object,labelFormatter:h.PropTypes.func,label:h.PropTypes.any,payload:h.PropTypes.arrayOf(h.PropTypes.shape({name:h.PropTypes.any,value:h.PropTypes.oneOfType([h.PropTypes.number,h.PropTypes.string]),unit:h.PropTypes.any}))},l.defaultProps={separator:" : ",itemStyle:{},labelStyle:{}},u=c))||u;t["default"]=v},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==("undefined"==typeof t?"undefined":s(t))&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+("undefined"==typeof t?"undefined":s(t)));e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol?"symbol":typeof e};Object.defineProperty(t,"__esModule",{value:!0});var u,l,c,p=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),f=n(1),h=r(f),d=n(2),y=r(d),m=n(22),v=n(69),g=n(174),_=(0,y["default"])((c=l=function(e){function t(){var e,n,r,a;o(this,t);for(var s=arguments.length,u=Array(s),l=0;s>l;l++)u[l]=arguments[l];return n=r=i(this,(e=Object.getPrototypeOf(t)).call.apply(e,[this].concat(u))),r.state={hasInitialized:!1},r.updateSizeOfWrapper=function(){var e=r.props,t=e.width,n=e.height,o=r.refs.container,i=(0,v.getWidth)(o),a=(0,v.getHeight)(o);r.setState({hasInitialized:!0,width:(0,m.getPercentValue)(t,i),height:(0,m.getPercentValue)(n,a)})},a=n,i(r,a)}return a(t,e),p(t,[{key:"componentDidMount",value:function(){this.updateSizeOfWrapper(),window.addEventListener("resize",this.updateSizeOfWrapper)}},{key:"componentWillUnmount",value:function(){window.removeEventListener("resize",this.updateSizeOfWrapper)}},{key:"render",value:function(){var e=this.state,t=e.hasInitialized,n=e.width,r=e.height,o=this.props.children,i={width:"100%",height:"100%"};return(0,g.warn)((0,m.isPercent)(this.props.width)||(0,m.isPercent)(this.props.height),"The width(%s) and height(%s) are both fixed number,\n       maybe you don't need to use ResponsiveContainer.",this.props.width,this.props.height),t&&(0,g.warn)(n>0&&r>0,"The width(%s) and height(%s) of chart should be greater than 0,\n        please check the style of container, or the props width(%s) and height(%s).",n,r,this.props.width,this.props.height),h["default"].createElement("div",{className:"recharts-responsive-container",style:i,ref:"container"},t&&n>0&&r>0?h["default"].cloneElement(o,{width:n,height:r}):null)}}]),t}(f.Component),l.displayName="ResponsiveContainer",l.propTypes={width:f.PropTypes.oneOfType([f.PropTypes.string,f.PropTypes.number]),height:f.PropTypes.oneOfType([f.PropTypes.string,f.PropTypes.number]),children:f.PropTypes.node},l.defaultProps={width:"100%",height:"100%"},u=c))||u;t["default"]=_},function(e,t){"use strict";var n={};Object.setPrototypeOf||n.__proto__||!function(){var e=Object.getPrototypeOf;Object.getPrototypeOf=function(t){return t.__proto__?t.__proto__:e.call(Object,t)}}()},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==("undefined"==typeof t?"undefined":s(t))&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+("undefined"==typeof t?"undefined":s(t)));e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol?"symbol":typeof e};Object.defineProperty(t,"__esModule",{value:!0});var u,l,c,p=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},f=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),h=n(1),d=r(h),y=n(2),m=r(y),v=n(8),g=r(v),_=n(4),b=(0,m["default"])((c=l=function(e){function t(){return o(this,t),i(this,Object.getPrototypeOf(t).apply(this,arguments))}return a(t,e),f(t,[{key:"getPath",value:function(e){var t=e.map(function(e){return e.x+" "+e.y});return"M"+t.join("L")+"Z"}},{key:"render",value:function(){var e=this.props,t=e.points,n=e.radius,r=e.className;if(!t||!t.length)return null;var o=(0,g["default"])("recharts-triangle",r);return d["default"].createElement("path",p({},(0,_.getPresentationAttributes)(this.props),(0,_.filterEventAttributes)(this.props),{className:o,d:this.getPath(t,n)}))}}]),t}(h.Component),l.displayName="Rectangle",l.propTypes=p({},_.PRESENTATION_ATTRIBUTES,{className:h.PropTypes.string,points:h.PropTypes.arrayOf(h.PropTypes.shape({x:h.PropTypes.number,y:h.PropTypes.number})),radius:h.PropTypes.number}),l.defaultProps={radius:0,stroke:"none",strokeWidth:1,strokeDasharray:"none",fill:"#000"},u=c))||u;t["default"]=b},function(e,t,n){"use strict";n(649),n(650),n(651),n(652),n(653),n(654),n(655),n(656),n(657),n(658),n(659),n(660),n(661),n(662),n(663),n(664),n(665),e.exports=n(175).Math},function(e,t){"use strict";e.exports=function(e){if("function"!=typeof e)throw TypeError(e+" is not a function!");return e}},function(e,t,n){"use strict";var r=n(178);e.exports=function(e){if(!r(e))throw TypeError(e+" is not an object!");return e}},function(e,t,n){"use strict";var r=n(638);e.exports=function(e,t,n){if(r(e),void 0===t)return e;switch(n){case 1:return function(n){return e.call(t,n)};case 2:return function(n,r){return e.call(t,n,r)};case 3:return function(n,r,o){return e.call(t,n,r,o)}}return function(){return e.apply(t,arguments)}}},function(e,t,n){"use strict";var r=n(178),o=n(177).document,i=r(o)&&r(o.createElement);e.exports=function(e){return i?o.createElement(e):{}}},function(e,t){"use strict";var n={}.hasOwnProperty;e.exports=function(e,t){return n.call(e,t)}},function(e,t,n){"use strict";e.exports=!n(176)&&!n(113)(function(){return 7!=Object.defineProperty(n(641)("div"),"a",{get:function(){return 7}}).a})},function(e,t,n){"use strict";var r=n(639),o=n(643),i=n(647),a=Object.defineProperty;t.f=n(176)?Object.defineProperty:function(e,t,n){if(r(e),t=i(t,!0),r(n),o)try{return a(e,t,n)}catch(s){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(e[t]=n.value),e}},function(e,t){"use strict";e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},function(e,t,n){"use strict";var r=n(177),o=n(287),i=n(642),a=n(648)("src"),s="toString",u=Function[s],l=(""+u).split(s);n(175).inspectSource=function(e){return u.call(e)},(e.exports=function(e,t,n,s){var u="function"==typeof n;u&&(i(n,"name")||o(n,"name",t)),e[t]!==n&&(u&&(i(n,a)||o(n,a,e[t]?""+e[t]:l.join(String(t)))),e===r?e[t]=n:s?e[t]?e[t]=n:o(e,t,n):(delete e[t],o(e,t,n)))})(Function.prototype,s,function(){return"function"==typeof this&&this[a]||u.call(this)})},function(e,t,n){"use strict";var r=n(178);e.exports=function(e,t){if(!r(e))return e;var n,o;if(t&&"function"==typeof(n=e.toString)&&!r(o=n.call(e)))return o;if("function"==typeof(n=e.valueOf)&&!r(o=n.call(e)))return o;if(!t&&"function"==typeof(n=e.toString)&&!r(o=n.call(e)))return o;throw TypeError("Can't convert object to primitive value")}},function(e,t){"use strict";var n=0,r=Math.random();e.exports=function(e){return"Symbol(".concat(void 0===e?"":e,")_",(++n+r).toString(36))}},function(e,t,n){"use strict";var r=n(12),o=n(288),i=Math.sqrt,a=Math.acosh;r(r.S+r.F*!(a&&710==Math.floor(a(Number.MAX_VALUE))),"Math",{acosh:function(e){return(e=+e)<1?NaN:e>94906265.62425156?Math.log(e)+Math.LN2:o(e-1+i(e-1)*i(e+1))}})},function(e,t,n){"use strict";function r(e){return isFinite(e=+e)&&0!=e?0>e?-r(-e):Math.log(e+Math.sqrt(e*e+1)):e}var o=n(12);o(o.S,"Math",{asinh:r})},function(e,t,n){"use strict";var r=n(12);r(r.S,"Math",{atanh:function(e){return 0==(e=+e)?e:Math.log((1+e)/(1-e))/2}})},function(e,t,n){"use strict";var r=n(12),o=n(180);r(r.S,"Math",{cbrt:function(e){return o(e=+e)*Math.pow(Math.abs(e),1/3)}})},function(e,t,n){"use strict";var r=n(12);r(r.S,"Math",{clz32:function(e){return(e>>>=0)?31-Math.floor(Math.log(e+.5)*Math.LOG2E):32}})},function(e,t,n){"use strict";var r=n(12),o=Math.exp;r(r.S,"Math",{cosh:function(e){return(o(e=+e)+o(-e))/2}})},function(e,t,n){"use strict";var r=n(12);r(r.S,"Math",{expm1:n(179)})},function(e,t,n){"use strict";var r=n(12),o=n(180),i=Math.pow,a=i(2,-52),s=i(2,-23),u=i(2,127)*(2-s),l=i(2,-126),c=function(e){return e+1/a-1/a};r(r.S,"Math",{fround:function(e){var t,n,r=Math.abs(e),i=o(e);return l>r?i*c(r/l/s)*l*s:(t=(1+s/a)*r,n=t-(t-r),n>u||n!=n?i*(1/0):i*n)}})},function(e,t,n){"use strict";var r=n(12),o=Math.abs;r(r.S,"Math",{hypot:function(e,t){for(var n,r,i=0,a=0,s=arguments.length,u=0;s>a;)n=o(arguments[a++]),n>u?(r=u/n,i=i*r*r+1,u=n):n>0?(r=n/u,i+=r*r):i+=n;return u===1/0?1/0:u*Math.sqrt(i)}})},function(e,t,n){"use strict";var r=n(12),o=Math.imul;r(r.S+r.F*n(113)(function(){return-5!=o(4294967295,5)||2!=o.length}),"Math",{imul:function(e,t){var n=65535,r=+e,o=+t,i=n&r,a=n&o;return 0|i*a+((n&r>>>16)*a+i*(n&o>>>16)<<16>>>0)}})},function(e,t,n){"use strict";var r=n(12);r(r.S,"Math",{log10:function(e){return Math.log(e)/Math.LN10}})},function(e,t,n){"use strict";var r=n(12);r(r.S,"Math",{log1p:n(288)})},function(e,t,n){"use strict";var r=n(12);r(r.S,"Math",{log2:function(e){return Math.log(e)/Math.LN2}})},function(e,t,n){"use strict";var r=n(12);r(r.S,"Math",{sign:n(180)})},function(e,t,n){"use strict";var r=n(12),o=n(179),i=Math.exp;r(r.S+r.F*n(113)(function(){return-2e-17!=!Math.sinh(-2e-17)}),"Math",{sinh:function(e){return Math.abs(e=+e)<1?(o(e)-o(-e))/2:(i(e-1)-i(-e-1))*(Math.E/2)}})},function(e,t,n){"use strict";var r=n(12),o=n(179),i=Math.exp;r(r.S,"Math",{tanh:function(e){var t=o(e=+e),n=o(-e);return t==1/0?1:n==1/0?-1:(t-n)/(i(e)+i(-e))}})},function(e,t,n){"use strict";var r=n(12);r(r.S,"Math",{trunc:function(e){return(e>0?Math.floor:Math.ceil)(e)}})},function(e,t,n){"use strict";function r(){}var o=n(118),i=Object.prototype;r.prototype=o?o(null):i,e.exports=r},function(e,t,n){"use strict";var r=n(117),o=n(84),i=r(o,"Set");e.exports=i},function(e,t,n){"use strict";function r(e){var t=-1,n=e?e.length:0;for(this.__data__=new o;++t<n;)this.push(e[t])}var o=n(296),i=n(697);r.prototype.push=i,e.exports=r},function(e,t,n){"use strict";var r=n(84),o=r.Uint8Array;e.exports=o},function(e,t,n){"use strict";var r=n(117),o=n(84),i=r(o,"WeakMap");e.exports=i},function(e,t){"use strict";function n(e,t,n){var r=n.length;switch(r){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}e.exports=n},function(e,t){"use strict";function n(e,t){for(var n=-1,r=e.length,o=0,i=[];++n<r;){var a=e[n];t(a,n,e)&&(i[o++]=a)}return i}e.exports=n},function(e,t,n){"use strict";function r(e,t){return!!e.length&&o(e,t,0)>-1}var o=n(683);e.exports=r},function(e,t){"use strict";function n(e,t,n){for(var r=-1,o=e.length;++r<o;)if(n(t,e[r]))return!0;return!1}e.exports=n},function(e,t){"use strict";function n(e,t){for(var n=-1,r=e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}e.exports=n},function(e,t,n){"use strict";function r(e){return o(e)?e:[]}var o=n(313);e.exports=r},function(e,t,n){"use strict";var r=n(681),o=n(699),i=o(r);e.exports=i},function(e,t){"use strict";function n(e,t,n){for(var r=-1,o=e.length;++r<o;){var i=e[r],a=t(i);if(null!=a&&(void 0===s?a===a:n(a,s)))var s=a,u=i}return u}e.exports=n},function(e,t,n){"use strict";function r(e,t){var n=[];return o(e,function(e,r,o){t(e,r,o)&&n.push(e)}),n}var o=n(677);e.exports=r},function(e,t,n){"use strict";var r=n(700),o=r();e.exports=o},function(e,t,n){"use strict";function r(e,t){return e&&o(e,t,i)}var o=n(680),i=n(186);e.exports=r},function(e,t){"use strict";function n(e,t){return t in Object(e)}e.exports=n},function(e,t,n){"use strict";function r(e,t,n){if(t!==t)return o(e,n);for(var r=n-1,i=e.length;++r<i;)if(e[r]===t)return r;return-1}var o=n(712);e.exports=r},function(e,t,n){"use strict";function r(e,t,n){for(var r=n?a:i,p=e[0].length,f=e.length,h=f,d=Array(f),y=1/0,m=[];h--;){var v=e[h];h&&t&&(v=s(v,u(t))),y=c(v.length,y),d[h]=!n&&(t||p>=120&&v.length>=120)?new o(h&&v):void 0}v=e[0];var g=-1,_=d[0];e:for(;++g<p&&m.length<y;){var b=v[g],T=t?t(b):b;if(!(_?l(_,T):r(m,T,n))){for(h=f;--h;){var P=d[h];if(!(P?l(P,T):r(e[h],T,n)))continue e}_&&_.push(T),m.push(b)}}return m}var o=n(668),i=n(673),a=n(674),s=n(181),u=n(695),l=n(696),c=Math.min;e.exports=r},function(e,t,n){"use strict";function r(e,t,n,r,m,g){var _=l(e),b=l(t),T=d,P=d;_||(T=u(e),T=T==h?y:T),b||(P=u(t),P=P==h?y:P);var x=T==y&&!c(e),E=P==y&&!c(t),O=T==P;if(O&&!x)return g||(g=new o),_||p(e)?i(e,t,n,r,m,g):a(e,t,T,n,r,m,g);if(!(m&f)){var w=x&&v.call(e,"__wrapped__"),C=E&&v.call(t,"__wrapped__");if(w||C)return g||(g=new o),n(w?e.value():e,C?t.value():t,r,m,g)}return O?(g||(g=new o),s(e,t,n,r,m,g)):!1}var o=n(297),i=n(308),a=n(702),s=n(703),u=n(706),l=n(16),c=n(183),p=n(737),f=2,h="[object Arguments]",d="[object Array]",y="[object Object]",m=Object.prototype,v=m.hasOwnProperty;e.exports=r},function(e,t,n){"use strict";function r(e,t,n,r){var u=n.length,l=u,c=!r;if(null==e)return!l;for(e=Object(e);u--;){var p=n[u];if(c&&p[2]?p[1]!==e[p[0]]:!(p[0]in e))return!1}for(;++u<l;){p=n[u];var f=p[0],h=e[f],d=p[1];if(c&&p[2]){if(void 0===h&&!(f in e))return!1}else{var y=new o,m=r?r(h,d,f,e,t,y):void 0;if(!(void 0===m?i(d,h,r,a|s,y):m))return!1}}return!0}var o=n(297),i=n(182),a=1,s=2;e.exports=r},function(e,t){"use strict";function n(e){return r(Object(e))}var r=Object.keys;e.exports=n},function(e,t,n){"use strict";function r(e){var t=i(e);if(1==t.length&&t[0][2]){var n=t[0][0],r=t[0][1];return function(e){return null==e?!1:e[n]===r&&(void 0!==r||n in Object(e))}}return function(n){return n===e||o(n,e,t)}}var o=n(686),i=n(705);e.exports=r},function(e,t,n){"use strict";function r(e,t){return function(n){var r=i(n,e);return void 0===r&&r===t?a(n,e):o(t,r,void 0,s|u)}}var o=n(182),i=n(311),a=n(732),s=1,u=2;e.exports=r},function(e,t,n){"use strict";function r(e){return function(t){return o(t,e)}}var o=n(304);e.exports=r},function(e,t){"use strict";function n(e,t,n,i){for(var a=-1,s=o(r((t-e)/(n||1)),0),u=Array(s);s--;)u[i?s:++a]=e,e+=n;return u}var r=Math.ceil,o=Math.max;e.exports=n},function(e,t){"use strict";function n(e,t,n){var r=-1,o=e.length;0>t&&(t=-t>o?0:o+t),n=n>o?o:n,0>n&&(n+=o),o=t>n?0:n-t>>>0,t>>>=0;for(var i=Array(o);++r<o;)i[r]=e[r+t];return i}e.exports=n},function(e,t){"use strict";function n(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}e.exports=n},function(e,t,n){"use strict";function r(e,t){return o(t,function(t){return[t,e[t]]})}var o=n(181);e.exports=r},function(e,t){"use strict";function n(e){return function(t){return e(t)}}e.exports=n},function(e,t,n){"use strict";function r(e,t){var n=e.__data__;if(o(t)){var r=n.__data__,a="string"==typeof t?r.string:r.hash;return a[t]===i}return n.has(t)}var o=n(71),i="__lodash_hash_undefined__";e.exports=r},function(e,t,n){"use strict";function r(e){var t=this.__data__;if(o(e)){var n=t.__data__,r="string"==typeof e?n.string:n.hash;r[e]=i}else t.set(e,i)}var o=n(71),i="__lodash_hash_undefined__";e.exports=r},function(e,t){"use strict";function n(e){return e&&e.Object===Object?e:null}e.exports=n},function(e,t,n){"use strict";function r(e,t){return function(n,r){if(null==n)return n;if(!o(n))return e(n,r);for(var i=n.length,a=t?i:-1,s=Object(n);(t?a--:++a<i)&&r(s[a],a,s)!==!1;);return n}}var o=n(119);e.exports=r},function(e,t){"use strict";function n(e){return function(t,n,r){for(var o=-1,i=Object(t),a=r(t),s=a.length;s--;){var u=a[e?s:++o];if(n(i[u],u,i)===!1)break}return t}}e.exports=n},function(e,t,n){"use strict";function r(e){return function(t,n,r){return r&&"number"!=typeof r&&i(t,n,r)&&(n=r=void 0),t=a(t),t=t===t?t:0,void 0===n?(n=t,t=0):n=a(n)||0,r=void 0===r?n>t?1:-1:a(r)||0,o(t,n,r,e)}}var o=n(691),i=n(713),a=n(316);e.exports=r},function(e,t,n){"use strict";function r(e,t,n,r,o,T,x){switch(n){case b:return!(e.byteLength!=t.byteLength||!r(new i(e),new i(t)));case p:case f:return+e==+t;case h:return e.name==t.name&&e.message==t.message;case y:return e!=+e?t!=+t:e==+t;case m:case g:return e==t+"";case d:var E=s;case v:var O=T&c;if(E||(E=u),e.size!=t.size&&!O)return!1;var w=x.get(e);return w?w==t:a(E(e),E(t),r,o,T|l,x.set(e,t));case _:if(P)return P.call(e)==P.call(t)}return!1}var o=n(298),i=n(669),a=n(308),s=n(721),u=n(723),l=1,c=2,p="[object Boolean]",f="[object Date]",h="[object Error]",d="[object Map]",y="[object Number]",m="[object RegExp]",v="[object Set]",g="[object String]",_="[object Symbol]",b="[object ArrayBuffer]",T=o?o.prototype:void 0,P=T?T.valueOf:void 0;e.exports=r},function(e,t,n){"use strict";function r(e,t,n,r,s,u){var l=s&a,c=i(e),p=c.length,f=i(t),h=f.length;if(p!=h&&!l)return!1;for(var d=p;d--;){var y=c[d];if(!(l?y in t:o(t,y)))return!1}var m=u.get(e);if(m)return m==t;var v=!0;u.set(e,t);for(var g=l;++d<p;){y=c[d];var _=e[y],b=t[y];if(r)var T=l?r(b,_,y,t,e,u):r(_,b,y,e,t,u);if(!(void 0===T?_===b||n(_,b,r,s,u):T)){v=!1;break}g||(g="constructor"==y)}if(v&&!g){var P=e.constructor,x=t.constructor;P!=x&&"constructor"in e&&"constructor"in t&&!("function"==typeof P&&P instanceof P&&"function"==typeof x&&x instanceof x)&&(v=!1)}return u["delete"](e),v}var o=n(305),i=n(186),a=2;e.exports=r},function(e,t,n){"use strict";var r=n(307),o=r("length");e.exports=o},function(e,t,n){"use strict";function r(e){for(var t=i(e),n=t.length;n--;)t[n][2]=o(t[n][1]);return t}var o=n(715),i=n(743);e.exports=r},function(e,t,n){"use strict";function r(e){return h.call(e)}var o=n(70),i=n(667),a=n(670),s="[object Map]",u="[object Object]",l="[object Set]",c="[object WeakMap]",p=Object.prototype,f=Function.prototype.toString,h=p.toString,d=o?f.call(o):"",y=i?f.call(i):"",m=a?f.call(a):"";(o&&r(new o)!=s||i&&r(new i)!=l||a&&r(new a)!=c)&&(r=function(e){var t=h.call(e),n=t==u?e.constructor:null,r="function"==typeof n?f.call(n):"";if(r)switch(r){case d:return s;case y:return l;case m:return c}return t}),e.exports=r},function(e,t,n){"use strict";function r(e,t,n){if(null==e)return!1;var r=n(e,t);r||u(t)||(t=o(t),e=f(e,t),null!=e&&(t=p(t),r=n(e,t)));var h=e?e.length:void 0;return r||!!h&&l(h)&&s(t,h)&&(a(e)||c(e)||i(e))}var o=n(303),i=n(312),a=n(16),s=n(184),u=n(185),l=n(120),c=n(50),p=n(738),f=n(722);e.exports=r},function(e,t,n){"use strict";function r(e,t){return o(e,t)&&delete e[t]}var o=n(309);e.exports=r},function(e,t,n){"use strict";function r(e,t){if(o){var n=e[t];return n===i?void 0:n}return s.call(e,t)?e[t]:void 0}var o=n(118),i="__lodash_hash_undefined__",a=Object.prototype,s=a.hasOwnProperty;e.exports=r},function(e,t,n){"use strict";function r(e,t,n){e[t]=o&&void 0===n?i:n}var o=n(118),i="__lodash_hash_undefined__";e.exports=r},function(e,t,n){"use strict";function r(e){var t=e?e.length:void 0;return s(t)&&(a(e)||u(e)||i(e))?o(t,String):null}var o=n(693),i=n(312),a=n(16),s=n(120),u=n(50);e.exports=r},function(e,t){"use strict";function n(e,t,n){for(var r=e.length,o=t+(n?0:-1);n?o--:++o<r;){var i=e[o];if(i!==i)return o}return-1}e.exports=n},function(e,t,n){"use strict";function r(e,t,n){if(!u(n))return!1;var r="undefined"==typeof t?"undefined":o(t);return("number"==r?a(n)&&s(t,n.length):"string"==r&&t in n)?i(n[t],e):!1}var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol?"symbol":typeof e},i=n(310),a=n(119),s=n(184),u=n(85);e.exports=r},function(e,t){"use strict";function n(e){var t=e&&e.constructor,n="function"==typeof t&&t.prototype||r;return e===n}var r=Object.prototype;e.exports=n},function(e,t,n){"use strict";function r(e){return e===e&&!o(e)}var o=n(85);e.exports=r},function(e,t,n){"use strict";function r(){this.__data__={hash:new o,map:i?new i:[],string:new o}}var o=n(666),i=n(70);e.exports=r},function(e,t,n){"use strict";function r(e){var t=this.__data__;return s(e)?a("string"==typeof e?t.string:t.hash,e):o?t.map["delete"](e):i(t.map,e)}var o=n(70),i=n(299),a=n(708),s=n(71);e.exports=r},function(e,t,n){"use strict";function r(e){var t=this.__data__;return s(e)?a("string"==typeof e?t.string:t.hash,e):o?t.map.get(e):i(t.map,e)}var o=n(70),i=n(300),a=n(709),s=n(71);e.exports=r},function(e,t,n){"use strict";function r(e){var t=this.__data__;return s(e)?a("string"==typeof e?t.string:t.hash,e):o?t.map.has(e):i(t.map,e)}var o=n(70),i=n(301),a=n(309),s=n(71);e.exports=r},function(e,t,n){"use strict";function r(e,t){var n=this.__data__;return s(e)?a("string"==typeof e?n.string:n.hash,e,t):o?n.map.set(e,t):i(n.map,e,t),this}var o=n(70),i=n(302),a=n(710),s=n(71);e.exports=r},function(e,t){"use strict";function n(e){var t=-1,n=Array(e.size);return e.forEach(function(e,r){n[++t]=[r,e]}),n}e.exports=n},function(e,t,n){"use strict";function r(e,t){return 1==t.length?e:i(e,o(t,0,-1))}var o=n(692),i=n(311);e.exports=r},function(e,t){"use strict";function n(e){var t=-1,n=Array(e.size);return e.forEach(function(e){n[++t]=e}),n}e.exports=n},function(e,t){"use strict";function n(){this.__data__={array:[],map:null}}e.exports=n},function(e,t,n){"use strict";function r(e){var t=this.__data__,n=t.array;return n?o(n,e):t.map["delete"](e)}var o=n(299);e.exports=r},function(e,t,n){"use strict";function r(e){var t=this.__data__,n=t.array;return n?o(n,e):t.map.get(e)}var o=n(300);e.exports=r},function(e,t,n){"use strict";function r(e){var t=this.__data__,n=t.array;return n?o(n,e):t.map.has(e)}var o=n(301);e.exports=r},function(e,t,n){"use strict";function r(e,t){var n=this.__data__,r=n.array;r&&(r.length<a-1?i(r,e,t):(n.array=null,n.map=new o(r)));var s=n.map;return s&&s.set(e,t),this}var o=n(296),i=n(302),a=200;e.exports=r},function(e,t,n){"use strict";function r(e){var t=[];return o(e).replace(i,function(e,n,r,o){t.push(r?o.replace(a,"$1"):n||e)}),t}var o=n(317),i=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]/g,a=/\\(\\)?/g;e.exports=r},function(e,t,n){"use strict";function r(e,t){var n=s(e)?o:i;return n(e,a(t,3))}var o=n(672),i=n(679),a=n(306),s=n(16);e.exports=r},function(e,t){"use strict";function n(e,t){return e>t}e.exports=n},function(e,t,n){"use strict";function r(e,t){return i(e,t,o)}var o=n(682),i=n(707);e.exports=r},function(e,t){"use strict";function n(e){return e}e.exports=n},function(e,t,n){"use strict";var r=n(181),o=n(676),i=n(684),a=n(741),s=a(function(e){var t=r(e,o);return t.length&&t[0]===e[0]?i(t):[]});e.exports=s},function(e,t,n){"use strict";function r(e){return null==e?!1:o(e)?f.test(c.call(e)):a(e)&&(i(e)?f:u).test(e)}var o=n(10),i=n(183),a=n(49),s=/[\\^$.*+?()[\]{}|]/g,u=/^\[object .+?Constructor\]$/,l=Object.prototype,c=Function.prototype.toString,p=l.hasOwnProperty,f=RegExp("^"+c.call(p).replace(s,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");e.exports=r},function(e,t,n){"use strict";function r(e){return"symbol"==("undefined"==typeof e?"undefined":o(e))||i(e)&&u.call(e)==a}var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol?"symbol":typeof e},i=n(49),a="[object Symbol]",s=Object.prototype,u=s.toString;e.exports=r},function(e,t,n){"use strict";function r(e){return i(e)&&o(e.length)&&!!M[k.call(e)]}var o=n(120),i=n(49),a="[object Arguments]",s="[object Array]",u="[object Boolean]",l="[object Date]",c="[object Error]",p="[object Function]",f="[object Map]",h="[object Number]",d="[object Object]",y="[object RegExp]",m="[object Set]",v="[object String]",g="[object WeakMap]",_="[object ArrayBuffer]",b="[object Float32Array]",T="[object Float64Array]",P="[object Int8Array]",x="[object Int16Array]",E="[object Int32Array]",O="[object Uint8Array]",w="[object Uint8ClampedArray]",C="[object Uint16Array]",S="[object Uint32Array]",M={};
  M[b]=M[T]=M[P]=M[x]=M[E]=M[O]=M[w]=M[C]=M[S]=!0,M[a]=M[s]=M[_]=M[u]=M[l]=M[c]=M[p]=M[f]=M[h]=M[d]=M[y]=M[m]=M[v]=M[g]=!1;var A=Object.prototype,k=A.toString;e.exports=r},function(e,t){"use strict";function n(e){var t=e?e.length:0;return t?e[t-1]:void 0}e.exports=n},function(e,t,n){"use strict";function r(e,t){return e&&e.length?o(e,i(t),a):void 0}var o=n(678),i=n(306),a=n(731);e.exports=r},function(e,t,n){"use strict";function r(e){return a(e)?o(e):i(e)}var o=n(307),i=n(690),a=n(185);e.exports=r},function(e,t,n){"use strict";function r(e,t){if("function"!=typeof e)throw new TypeError(a);return t=s(void 0===t?e.length-1:i(t),0),function(){for(var n=arguments,r=-1,i=s(n.length-t,0),a=Array(i);++r<i;)a[r]=n[t+r];switch(t){case 0:return e.call(this,a);case 1:return e.call(this,n[0],a);case 2:return e.call(this,n[0],n[1],a)}var u=Array(t+1);for(r=-1;++r<t;)u[r]=n[r];return u[t]=a,o(e,this,u)}}var o=n(671),i=n(742),a="Expected a function",s=Math.max;e.exports=r},function(e,t,n){"use strict";function r(e){if(!e)return 0===e?e:0;if(e=o(e),e===i||e===-i){var t=0>e?-1:1;return t*a}var n=e%1;return e===e?n?e-n:e:0}var o=n(316),i=1/0,a=1.7976931348623157e308;e.exports=r},function(e,t,n){"use strict";function r(e){return o(e,i(e))}var o=n(694),i=n(186);e.exports=r},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==("undefined"==typeof t?"undefined":s(t))&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+("undefined"==typeof t?"undefined":s(t)));e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol?"symbol":typeof e};Object.defineProperty(t,"__esModule",{value:!0});var u,l,c=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),p=n(1),f=r(p),h=n(394),d=r(h),y=n(745),m=r(y),v=(l=u=function(e){function t(){return o(this,t),i(this,Object.getPrototypeOf(t).apply(this,arguments))}return a(t,e),c(t,[{key:"_wrapChild",value:function(e){var t=this.props,n=t.appear,r=t.leave,o=t.enter;return f["default"].createElement(m["default"],{appear:n,leave:r,enter:o},e)}},{key:"render",value:function(){var e=this.props,t=e.component,n=e.children;return f["default"].createElement(d["default"],{component:t,childFactory:this._wrapChild.bind(this)},n)}}]),t}(p.Component),u.propTypes={appear:p.PropTypes.object,leave:p.PropTypes.object,enter:p.PropTypes.object,children:p.PropTypes.oneOfType([p.PropTypes.array,p.PropTypes.element]),component:p.PropTypes.any},u.defaultProps={component:"span"},l);t["default"]=v},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==("undefined"==typeof t?"undefined":s(t))&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+("undefined"==typeof t?"undefined":s(t)));e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol?"symbol":typeof e};Object.defineProperty(t,"__esModule",{value:!0});var u,l,c=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},p=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),f=n(1),h=r(f),d=n(319),y=r(d),m=(l=u=function(e){function t(){var e,n,r,a;o(this,t);for(var s=arguments.length,u=Array(s),l=0;s>l;l++)u[l]=arguments[l];return n=r=i(this,(e=Object.getPrototypeOf(t)).call.apply(e,[this].concat(u))),r.state={isActive:!1},a=n,i(r,a)}return a(t,e),p(t,[{key:"handleStyleActive",value:function(e,t){if(e){var n=e.onAnimationEnd?function(){e.onAnimationEnd(),t()}:t;this.setState(c({},e,{onAnimationEnd:n,isActive:!0}))}else t()}},{key:"componentWillAppear",value:function(e){this.handleStyleActive(this.props.appear,e)}},{key:"componentWillEnter",value:function(e){this.handleStyleActive(this.props.enter,e)}},{key:"componentWillLeave",value:function(e){this.handleStyleActive(this.props.leave,e)}},{key:"render",value:function(){return h["default"].createElement(y["default"],this.state,f.Children.only(this.props.children))}}]),t}(f.Component),u.propTypes={appear:f.PropTypes.object,leave:f.PropTypes.object,enter:f.PropTypes.object,children:f.PropTypes.element},l);t["default"]=m},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}Object.defineProperty(t,"__esModule",{value:!0});var i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},a=n(86),s=n(321),u=r(s),l=function(e){var t=e,n=function(){},r=!1;return{subscribe:function(e){return n=e,function(){n=function(){return null}}},setStyle:function(e){t=e,n()},start:function(){r=!1},getShouldStop:function(){return r},getStyle:function(){return t},stop:function(){r=!0}}},c=function(){for(var e=arguments.length,t=Array(e),n=0;e>n;n++)t[n]=arguments[n];return function(e){return function(n){var r=e(n),s=r.setStyle,u=[],l=i({},r,{setStyle:function(e){return s(e)}});return u=t.map(function(e){return e(l)}),s=a.compose.apply(void 0,o(u))(r.setStyle),i({},r,{setStyle:s,start:function(e){return r.start(),s(e)}})}}},p=function(e){var t=(e.setStyle,e.getShouldStop);return function(e){var n=null;return function(r){return t()?(clearTimeout(n),new Promise(function(e,t){t()})):"function"==typeof r||Array.isArray(r)?e(r):new Promise(function(t,o){var i=0,a=e;"number"==typeof r&&(i=r,a=function(){}),n=setTimeout(function(){var e=null;(0,u["default"])(function(){(0,u["default"])(function(){return e=a(r),t(),e})})},i)})}}},f=function(e){var t=e.setStyle;return function(e){return function(n){if(Array.isArray(n)){var r=n;return r.reduce(function(e,n){return e.then(function(){return t(n)})["catch"](function(){})},Promise.resolve())}return e(n)}}},h=function(e){var t=e.setStyle,n=e.getStyle;return function(e){return function(r){return"function"==typeof r?r(t,n):e(r)}}},d=(0,a.compose)(c(p,f,h))(l);t["default"]=d},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}function i(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}Object.defineProperty(t,"__esModule",{value:!0});var a=n(730),s=r(a),u=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},l=function(){function e(e,t){var n=[],r=!0,o=!1,i=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(u){o=!0,i=u}finally{try{!r&&s["return"]&&s["return"]()}finally{if(o)throw i}}return n}return function(t,n){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),c=n(321),p=r(c),f=n(86),h=function(e,t,n){return e+(t-e)*n},d=function(e){var t=e.from,n=e.to;return t!==n},y=function m(e,t,n){var r=(0,f.mapObject)(function(t,n){if(d(n)){var r=e(n.from,n.to,n.velocity),o=l(r,2),i=o[0],a=o[1];return u({},n,{from:i,velocity:a})}return n},t);return 1>n?(0,f.mapObject)(function(e,t){return d(t)?u({},t,{velocity:h(t.velocity,r[e].velocity,n),from:h(t.from,r[e].from,n)}):t},t):m(e,r,n-1)};t["default"]=function(e,t,n,r,a){var l=(0,f.getIntersectionKeys)(e,t),m=l.reduce(function(n,r){return u({},n,i({},r,[e[r],t[r]]))},{}),v=l.reduce(function(n,r){return u({},n,i({},r,{from:e[r],velocity:0,to:t[r]}))},{}),g=-1,_=void 0,b=void 0,T=function(){return(0,f.mapObject)(function(e,t){return t.from},v)},P=function(){return!(0,s["default"])(v,d).length},x=function(r){_||(_=r);var o=r-_,i=o/n.dt;v=y(n,v,i),a(u({},e,t,T(v))),_=r,P()||(g=(0,p["default"])(O))},E=function(i){b||(b=i);var s=(i-b)/r,l=(0,f.mapObject)(function(e,t){return h.apply(void 0,o(t).concat([n(s)]))},m);a(u({},e,t,l)),1>s&&(g=(0,p["default"])(O))},O=n.isStepper?x:E;return function(){return(0,p["default"])(O),function(){(0,c.cancel)(g)}}}},function(e,t,n){/**
  	 * @author Félix Girault <felix.girault@gmail.com>
  	 * @license MIT
  	 */
  "use strict";function r(e,t){return i(this,e,t)}function o(e){e.prototype.shouldComponentUpdate=r}var i=n(749);e.exports=o},function(e,t,n){"use strict";e.exports=n(613)},function(e,t,n){"use strict";(function(){var t,n,r;"undefined"!=typeof performance&&null!==performance&&performance.now?e.exports=function(){return performance.now()}:null!=={env:{NODE_ENV:"production"}}&&{env:{NODE_ENV:"production"}}.hrtime?(e.exports=function(){return(t()-r)/1e6},n={env:{NODE_ENV:"production"}}.hrtime,t=function(){var e;return e=n(),1e9*e[0]+e[1]},r=t()):Date.now?(e.exports=function(){return Date.now()-r},r=Date.now()):(e.exports=function(){return(new Date).getTime()-r},r=(new Date).getTime())}).call(void 0)},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(e,t){if(e[0]===e[1])return(0,s["default"])(e,t);t=Math.max(t,2);var n=(e[1]-e[0])/(t-1),r=(0,i.compose)((0,i.map)(function(t){return e[0]+t*n}),i.range);return r(0,t)}Object.defineProperty(t,"__esModule",{value:!0});var i=n(188),a=n(322),s=r(a);t["default"]=o},function(e,t,n){"use strict";function r(e){return/^([+-]?)\d*\.\d+$/.test(e)}function o(e){var t=Math.abs(e),n=void 0;if(0===e)n=1;else if(1>t)n=Math.floor(Math.log(t)/Math.log(10))+1;else{var r=""+e,o=r.split(".");n=o[0].length}return n}function i(e){var t=e?""+e:"",n=t.split(".");return n.length>1?n[1].length:0}function a(e,t){var n=Math.max(i(e),i(t));return n=Math.pow(10,n),(u(e,n)+u(t,n))/n}function s(e,t){return a(e,-t)}function u(e,t){var n=parseInt((""+e).replace(".",""),10),r=parseInt((""+t).replace(".",""),10),o=i(e)+i(t);return n*r/Math.pow(10,o)}function l(e,t){var n=i(e),r=i(t),o=parseInt((""+e).replace(".",""),10),a=parseInt((""+t).replace(".",""),10);return o/a*Math.pow(10,r-n)}function c(e,t,n){for(var r=e,o=[];t>r;)o.push(r),r=a(r,n);return o}Object.defineProperty(t,"__esModule",{value:!0});var p=n(188),f=(0,p.curry)(function(e,t,n){var r=+e,o=+t;return r+n*(o-r)}),h=(0,p.curry)(function(e,t,n){var r=t-+e;return r=r?r:1/0,(n-e)/r}),d=(0,p.curry)(function(e,t,n){var r=t-+e;return r=r?r:1/0,Math.max(0,Math.min(1,(n-e)/r))});t["default"]={rangeStep:c,isFloat:r,getDigitCount:o,getDecimalDigitCount:i,sum:a,minus:s,multiply:u,divide:l,interpolateNumber:f,uninterpolateNumber:h,uninterpolateTruncation:d}},function(e,t){"use strict";function n(e){return function(t){var n=t.dispatch,r=t.getState;return function(t){return function(o){return"function"==typeof o?o(n,r,e):t(o)}}}}t.__esModule=!0;var r=n();r.withExtraArgument=n,t["default"]=r},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(){for(var e=arguments.length,t=Array(e),n=0;e>n;n++)t[n]=arguments[n];return function(e){return function(n,r,o){var a=e(n,r,o),u=a.dispatch,l=[],c={getState:a.getState,dispatch:function(e){return u(e)}};return l=t.map(function(e){return e(c)}),u=s["default"].apply(void 0,l)(a.dispatch),i({},a,{dispatch:u})}}}t.__esModule=!0;var i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};t["default"]=o;var a=n(323),s=r(a)},function(e,t){"use strict";function n(e,t){return function(){return t(e.apply(void 0,arguments))}}function r(e,t){if("function"==typeof e)return n(e,t);if("object"!==("undefined"==typeof e?"undefined":o(e))||null===e)throw new Error("bindActionCreators expected an object or a function, instead received "+(null===e?"null":"undefined"==typeof e?"undefined":o(e))+'. Did you write "import ActionCreators from" instead of "import * as ActionCreators from"?');for(var r=Object.keys(e),i={},a=0;a<r.length;a++){var s=r[a],u=e[s];"function"==typeof u&&(i[s]=n(u,t))}return i}var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol?"symbol":typeof e};t.__esModule=!0,t["default"]=r},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(e,t){var n=t&&t.type,r=n&&'"'+n.toString()+'"'||"an action";return"Given action "+r+', reducer "'+e+'" returned undefined. To ignore an action, you must explicitly return the previous state.'}function i(e){Object.keys(e).forEach(function(t){var n=e[t],r=n(void 0,{type:s.ActionTypes.INIT});if("undefined"==typeof r)throw new Error('Reducer "'+t+'" returned undefined during initialization. If the state passed to the reducer is undefined, you must explicitly return the initial state. The initial state may not be undefined.');var o="@@redux/PROBE_UNKNOWN_ACTION_"+Math.random().toString(36).substring(7).split("").join(".");if("undefined"==typeof n(void 0,{type:o}))throw new Error('Reducer "'+t+'" returned undefined when probed with a random type. '+("Don't try to handle "+s.ActionTypes.INIT+' or other actions in "redux/*" ')+"namespace. They are considered private. Instead, you must return the current state for any unknown actions, unless it is undefined, in which case you must return the initial state, regardless of the action type. The initial state may not be undefined.")})}function a(e){for(var t=Object.keys(e),n={},r=0;r<t.length;r++){var a=t[r];"function"==typeof e[a]&&(n[a]=e[a])}var s,u=Object.keys(n);try{i(n)}catch(l){s=l}return function(){var e=arguments.length<=0||void 0===arguments[0]?{}:arguments[0],t=arguments[1];if(s)throw s;for(var r=!1,i={},a=0;a<u.length;a++){var l=u[a],c=n[l],p=e[l],f=c(p,t);if("undefined"==typeof f){var h=o(l,t);throw new Error(h)}i[l]=f,r=r||f!==p}return r?i:e}}t.__esModule=!0,t["default"]=a;var s=n(324),u=n(326),l=(r(u),n(325));r(l)},function(e,t){"use strict";function n(e){return r(Object(e))}var r=Object.getPrototypeOf;e.exports=n},function(e,t){"use strict";function n(e){var t=!1;if(null!=e&&"function"!=typeof e.toString)try{t=!!(e+"")}catch(n){}return t}e.exports=n},function(e,t){"use strict";function n(e){return!!e&&"object"==("undefined"==typeof e?"undefined":r(e))}var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol?"symbol":typeof e};e.exports=n},function(e,t,n){(function(t){"use strict";e.exports=n(761)(t||window||void 0)}).call(t,function(){return this}())},function(e,t){"use strict";e.exports=function(e){var t,n=e.Symbol;return"function"==typeof n?n.observable?t=n.observable:(t=n("observable"),n.observable=t):t="@@observable",t}},function(e,t){"use strict";var n=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)};e.exports=function(e,t){if(!n(e))throw new Error("Coordinates must be an array");if(e.length<2)throw new Error("Coordinates must be at least 2 numbers long");return{type:"Feature",geometry:{type:"Point",coordinates:e},properties:t||{}}}}]);