text: !function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e(require("React"),require("ReactDOM")):"function"==typeof define&&define.amd?define(["React","ReactDOM"],e):"object"==typeof exports?exports.ReStock=e(require("React"),require("ReactDOM")):t.ReStock=e(t.React,t.ReactDOM)}(this,function(t,e){return function(t){function e(n){if(r[n])return r[n].exports;var a=r[n]={i:n,l:!1,exports:{}};return t[n].call(a.exports,a,a.exports,e),a.l=!0,a.exports}var n=window.webpackJsonpReStock;window.webpackJsonpReStock=function(e,r,o){for(var i,c,s=0,u=[];s<e.length;s++)c=e[s],a[c]&&u.push(a[c][0]),a[c]=0;for(i in r)Object.prototype.hasOwnProperty.call(r,i)&&(t[i]=r[i]);for(n&&n(e,r,o);u.length;)u.shift()()};var r={},a={2:0};return e.e=function(t){function n(){c.onerror=c.onload=null,clearTimeout(s);var e=a[t];0!==e&&(e&&e[1](new Error("Loading chunk "+t+" failed.")),a[t]=void 0)}var r=a[t];if(0===r)return new Promise(function(t){t()});if(r)return r[2];var o=new Promise(function(e,n){r=a[t]=[e,n]});r[2]=o;var i=document.getElementsByTagName("head")[0],c=document.createElement("script");c.type="text/javascript",c.charset="utf-8",c.async=!0,c.timeout=12e4,e.nc&&c.setAttribute("nonce",e.nc),c.src=e.p+"dist/"+t+"."+{0:"8b64a036350626071644"}[t]+".js";var s=setTimeout(n,12e4);return c.onerror=c.onload=n,i.appendChild(c),o},e.m=t,e.c=r,e.d=function(t,n,r){e.o(t,n)||Object.defineProperty(t,n,{configurable:!1,enumerable:!0,get:r})},e.n=function(t){var n=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(n,"a",n),n},e.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},e.p="",e.oe=function(t){throw t},e(e.s=555)}([function(e,n){e.exports=t},function(t,e,n){t.exports=n(233)()},function(t,e,n){"use strict";function r(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function a(t){var e=S.a;return e}function o(t){return(t>0)-(t<0)}function i(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],e=Array.isArray(t)?t:[t],n=e.length;return function(t,r){if(0===n)return y(t)?t:r;for(var a=0;null!=t&&a<n;)t=t[e[a++]];return a===n?t:r}}function c(t){return"function"==typeof t?t:function(){return t}}function s(t,e){var n=X(t)?t:[t],r=n.map(function(t){return t-e}).reduce(function(t,e){return Math.abs(t)<Math.abs(e)?t:e});return e+r}function u(t,e){for(var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:this,r=0;r<t.length;++r)if(e.call(n,t[r],r,t))return t[r]}function l(t){return t&&(t.ownerDocument&&t.ownerDocument.defaultView||t.document&&t||t.defaultView)}function f(t){return t?{pageX:t.pageX,pageY:t.pageY,clientX:t.clientX,clientY:t.clientY}:{}}function h(t,e,n,r){for(var a=0,o=t.length-1;o-a>1;){var i=Math.round((a+o)/2);n(t[i])<=e?a=i:o=i}return n(t[a]).valueOf()===e.valueOf()&&(o=a),n(t[o]).valueOf()===e.valueOf()&&(a=o),n(t[a])<e&&n(t[o])<e&&(a=o),n(t[a])>e&&n(t[o])>e&&(o=a),{left:a,right:o}}function p(t,e,n,r){var a=h(t,e,n,r),o=a.left,i=a.right;if(o===i)return t[o];var c=Math.abs(n(t[o])-e)<Math.abs(n(t[i])-e)?t[o]:t[i];return c}function d(t,e){if(!e||!t)return t?t[0]:void 0;for(var n=void 0,r=0;r<t.length;r++)if(n=t[r],y(e(n)))return n}function b(t,e){if(!e||!t){var n=t?t.length:0;return n?t[n-1]:void 0}for(var r=void 0,a=t.length-1;a>=0;a--)if(r=t[a],y(e(r)))return r}function y(t){return null!==t&&void 0!==t}function v(t){return!y(t)}function g(t){return y(t)&&"object"===(void 0===t?"undefined":W(t))&&!Array.isArray(t)}function m(t,e){var n=e.target,r=n.getBoundingClientRect(),a=t.clientX-r.left-n.clientLeft,o=t.clientY-r.top-n.clientTop;return[Math.round(a),Math.round(o)]}function O(t,e){var n=t.currentTarget,r=e||n.getBoundingClientRect(),a=t.clientX-r.left-n.clientLeft,o=t.clientY-r.top-n.clientTop;return[Math.round(a),Math.round(o)]}function w(t,e){t.forEach(function(t){t.setTransform(1,0,0,1,0,0),t.clearRect(-1,-1,t.canvas.width+2,t.canvas.height+2),t.scale(e,e)})}function x(t,e){var n=t.replace("#","");if(t.indexOf("#")>-1&&(3===n.length||6===n.length)){var r=3===n.length?1:2;return"rgba("+parseInt(n.substring(0,1*r),16)+", "+parseInt(n.substring(1*r,2*r),16)+", "+parseInt(n.substring(2*r,3*r),16)+", "+e+")"}return t}function k(t,e){return t.reduce(function(t,n){var a=e(n),o=z(a,2),i=o[0],c=o[1];return q({},t,r({},i,c))},{})}function _(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:C.a,n=Object.keys(t),r=new Array(n.length);return n.forEach(function(n,a){r[a]=e(t[n],n,t)}),r}e.p=a,e.J=o,e.F=i,e.l=c,e.o=s,e.j=u,e.i=l,n.d(e,"a",function(){return I}),n.d(e,"b",function(){return B}),n.d(e,"c",function(){return H}),n.d(e,"d",function(){return V}),n.d(e,"f",function(){return L}),n.d(e,"e",function(){return Y}),e.r=f,e.n=h,e.m=p,n.d(e,"E",function(){return U}),e.s=d,n.d(e,"k",function(){return G}),e.y=b,e.v=y,e.w=v,e.x=g,e.O=m,e.C=O,e.h=w,e.t=x,e.N=k,e.z=_;var j=n(35),S=(n(14),n(50)),C=n(51),E=n(297);n.d(e,"H",function(){return E.a});var P=n(154);n.d(e,"P",function(){return P.a});var T=n(298);n.d(e,"B",function(){return T.a});var M=n(299);n.d(e,"K",function(){return M.a}),n.d(e,"u",function(){return C.a}),n.d(e,"D",function(){return S.a});var A=n(155);n.d(e,"I",function(){return A.a});var D=n(300);n.d(e,"A",function(){return D.a});var F=n(301);n.d(e,"g",function(){return F.a});var R=(n(94),n(302));n.d(e,"G",function(){return R.a}),n.d(e,"M",function(){return R.b});var N=n(303);n.d(e,"q",function(){return N.a}),n.d(e,"L",function(){return N.b});var q=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},z=function(){function t(t,e){var n=[],r=!0,a=!1,o=void 0;try{for(var i,c=t[Symbol.iterator]();!(r=(i=c.next()).done)&&(n.push(i.value),!e||n.length!==e);r=!0);}catch(t){a=!0,o=t}finally{try{!r&&c.return&&c.return()}finally{if(a)throw o}}return n}return function(e,n){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return t(e,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),W="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},I="mouseenter.interaction",B="mouseleave.interaction",H="mousemove.pan",V="mouseup.pan",L="touchmove.pan",Y="touchend.pan touchcancel.pan",U=Object(j.c)(j.f),G=d,X=Array.isArray},function(t,e,n){"use strict";var r=n(465);n.d(e,"b",function(){return r.a});var a=n(466);n.d(e,"a",function(){return a.a});var o=n(468);n.d(e,"c",function(){return o.a});n(469)},,,,,,,function(t,e,n){"use strict";function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function a(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function o(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var i=n(1),c=n.n(i),s=n(13),u=n(2),l=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},f=function(){function t(t,e){var n=[],r=!0,a=!1,o=void 0;try{for(var i,c=t[Symbol.iterator]();!(r=(i=c.next()).done)&&(n.push(i.value),!e||n.length!==e);r=!0);}catch(t){a=!0,o=t}finally{try{!r&&c.return&&c.return()}finally{if(a)throw o}}return n}return function(e,n){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return t(e,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),h=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),p=function t(e,n,r){null===e&&(e=Function.prototype);var a=Object.getOwnPropertyDescriptor(e,n);if(void 0===a){var o=Object.getPrototypeOf(e);return null===o?void 0:t(o,n,r)}if("value"in a)return a.value;var i=a.get;if(void 0!==i)return i.call(r)},d=["drag","dragend"],b=function(t){function e(t,n){r(this,e);var o=a(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t,n));return o.preCanvasDraw=o.preCanvasDraw.bind(o),o.postCanvasDraw=o.postCanvasDraw.bind(o),o.shouldTypeProceed=o.shouldTypeProceed.bind(o),o.preEvaluate=o.preEvaluate.bind(o),o}return o(e,t),h(e,[{key:"preCanvasDraw",value:function(t,n){p(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"preCanvasDraw",this).call(this,t,n),t.save();var r=this.context,a=r.margin,o=r.ratio,i=n.chartConfig,c=.5*o+i.origin[0]+a.left,s=.5*o+i.origin[1]+a.top,u=n.chartConfig,l=u.width,f=u.height,h=this.props,d=h.clip,b=h.edgeClip;t.setTransform(1,0,0,1,0,0),t.scale(o,o),b&&(t.beginPath(),t.rect(-1,s-10,l+a.left+a.right+1,f+20),t.clip()),t.translate(c,s),d&&(t.beginPath(),t.rect(-1,-1,l+1,f+1),t.clip())}},{key:"postCanvasDraw",value:function(t,n){p(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"postCanvasDraw",this).call(this,t,n),t.restore()}},{key:"updateMoreProps",value:function(t){p(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"updateMoreProps",this).call(this,t);var n=t.chartConfig;if(n){var r=this.context.chartId,a=Object(u.j)(n,function(t){return t.id===r});this.moreProps.chartConfig=a}if(Object(u.v)(this.moreProps.chartConfig)){var o=f(this.moreProps.chartConfig.origin,2),i=o[0],c=o[1];if(Object(u.v)(t.mouseXY)){var s=f(t.mouseXY,2),l=s[0],h=s[1];this.moreProps.mouseXY=[l-i,h-c]}if(Object(u.v)(t.startPos)){var d=f(t.startPos,2),b=d[0],y=d[1];this.moreProps.startPos=[b-i,y-c]}}}},{key:"preEvaluate",value:function(){}},{key:"shouldTypeProceed",value:function(t,e){return!("mousemove"!==t&&"click"!==t||!this.props.disablePan)||(-1!==d.indexOf(t)||!Object(u.v)(e)||!Object(u.v)(e.currentCharts)||e.currentCharts.indexOf(this.context.chartId)>-1)}}]),e}(s.a);b.propTypes=s.a.propTypes,b.defaultProps=s.a.defaultProps,b.contextTypes=l({},s.a.contextTypes,{canvasOriginX:c.a.number,canvasOriginY:c.a.number,chartId:c.a.oneOfType([c.a.number,c.a.string]).isRequired,chartConfig:c.a.object.isRequired,ratio:c.a.number.isRequired}),e.a=b},,function(t,e,n){"use strict";var r=n(237);n.d(e,"a",function(){return r.a}),n.d(e,"b",function(){return r.b});var a=(n(126),n(127));n.d(e,"c",function(){return a.a});var o=n(243);n.d(e,"d",function(){return o.a});var i=n(244);n.d(e,"e",function(){return i.a});var c=n(245);n.d(e,"f",function(){return c.a})},function(t,e,n){"use strict";function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function a(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function o(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}function i(t){return t.axes}function c(t){return t.mouseCoord}e.b=i,e.c=c;var s=n(0),u=n.n(s),l=n(1),f=n.n(l),h=n(2),p=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},d=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),b={mouseleave:"mousemove",panend:"pan",pinchzoom:"pan",mousedown:"mousemove",click:"mousemove",contextmenu:"mousemove",dblclick:"mousemove",dragstart:"drag",dragend:"drag",dragcancel:"drag"},y=function(t){function e(t,n){r(this,e);var o=a(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t,n));o.drawOnCanvas=o.drawOnCanvas.bind(o),o.getMoreProps=o.getMoreProps.bind(o),o.listener=o.listener.bind(o),o.draw=o.draw.bind(o),o.updateMoreProps=o.updateMoreProps.bind(o),o.evaluateType=o.evaluateType.bind(o),o.isHover=o.isHover.bind(o),o.preCanvasDraw=o.preCanvasDraw.bind(o),o.postCanvasDraw=o.postCanvasDraw.bind(o),o.getPanConditions=o.getPanConditions.bind(o),o.shouldTypeProceed=o.shouldTypeProceed.bind(o),o.preEvaluate=o.preEvaluate.bind(o);var i=n.generateSubscriptionId;return o.suscriberId=i(),o.moreProps={},o.state={updateCount:0},o}return o(e,t),d(e,[{key:"updateMoreProps",value:function(t){var e=this;Object.keys(t).forEach(function(n){e.moreProps[n]=t[n]})}},{key:"shouldTypeProceed",value:function(){return!0}},{key:"preEvaluate",value:function(){}},{key:"listener",value:function(t,e,n,r){Object(h.v)(e)&&this.updateMoreProps(e),this.evaluationInProgress=!0,this.evaluateType(t,r),this.evaluationInProgress=!1}},{key:"evaluateType",value:function(t,e){var n=b[t]||t;if(this.props.drawOn.indexOf(n)>-1&&(this.preEvaluate(t,this.moreProps,e),this.shouldTypeProceed(t,this.moreProps)))switch(t){case"zoom":case"mouseenter":case"mouseleave":break;case"contextmenu":this.props.onContextMenu&&this.props.onContextMenu(this.getMoreProps(),e),this.moreProps.hovering&&this.props.onContextMenuWhenHover&&this.props.onContextMenuWhenHover(this.getMoreProps(),e);break;case"mousedown":this.props.onMouseDown&&this.props.onMouseDown(this.getMoreProps(),e);break;case"click":var r=this.getMoreProps();this.moreProps.hovering?this.props.onClickWhenHover(r,e):this.props.onClickOutside(r,e),this.props.onClick&&this.props.onClick(r,e);break;case"mousemove":var a=this.moreProps.hovering;this.moreProps.hovering=this.isHover(e);var o=this.context,i=o.amIOnTop,c=o.setCursorClass;this.moreProps.hovering&&!this.props.selected&&!a&&Object(h.v)(this.props.onHover)?(c("react-stockcharts-pointer-cursor"),this.iSetTheCursorClass=!0):this.moreProps.hovering&&this.props.selected&&i(this.suscriberId)?(c(this.props.interactiveCursorClass),this.iSetTheCursorClass=!0):a&&!this.moreProps.hovering&&this.iSetTheCursorClass&&(this.iSetTheCursorClass=!1,c(null));var s=this.getMoreProps();this.moreProps.hovering&&!a&&this.props.onHover&&this.props.onHover(s,e),a&&!this.moreProps.hovering&&this.props.onUnHover&&this.props.onUnHover(s,e),this.props.onMouseMove&&this.props.onMouseMove(s,e);break;case"dblclick":var u=this.getMoreProps();this.props.onDoubleClick&&this.props.onDoubleClick(u,e),this.moreProps.hovering&&this.props.onDoubleClickWhenHover&&this.props.onDoubleClickWhenHover(u,e);break;case"pan":this.moreProps.hovering=!1,this.props.onPan&&this.props.onPan(this.getMoreProps(),e);break;case"panend":this.props.onPanEnd&&this.props.onPanEnd(this.getMoreProps(),e);break;case"dragstart":this.moreProps.hovering&&this.props.selected&&(0,this.context.amIOnTop)(this.suscriberId)&&(this.dragInProgress=!0,this.props.onDragStart(this.getMoreProps(),e)),this.someDragInProgress=!0;break;case"drag":this.dragInProgress&&this.props.onDrag&&this.props.onDrag(this.getMoreProps(),e);break;case"dragend":this.dragInProgress&&this.props.onDragComplete&&this.props.onDragComplete(this.getMoreProps(),e),this.dragInProgress=!1,this.someDragInProgress=!1;break;case"dragcancel":(this.dragInProgress||this.iSetTheCursorClass)&&(0,this.context.setCursorClass)(null)}}},{key:"isHover",value:function(t){return!!Object(h.v)(this.props.isHover)&&this.props.isHover(this.getMoreProps(),t)}},{key:"getPanConditions",value:function(){return{draggable:!(!this.props.selected||!this.moreProps.hovering),panEnabled:!this.props.disablePan}}},{key:"draw",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{force:!1},e=t.trigger,n=t.force,r=b[e]||e;if(this.props.drawOn.indexOf(r)>-1||this.props.selected||n){var a=this.context.chartCanvasType,o=this.props.canvasDraw;if(Object(h.w)(o)||"svg"===a){var i=this.state.updateCount;this.setState({updateCount:i+1})}else this.drawOnCanvas()}}},{key:"componentWillMount",value:function(){var t=this.context,e=t.subscribe,n=t.chartId,r=this.props,a=r.clip,o=r.edgeClip;e(this.suscriberId,{chartId:n,clip:a,edgeClip:o,listener:this.listener,draw:this.draw,getPanConditions:this.getPanConditions}),this.componentWillReceiveProps(this.props,this.context)}},{key:"componentWillUnmount",value:function(){(0,this.context.unsubscribe)(this.suscriberId)}},{key:"componentDidMount",value:function(){this.componentDidUpdate(this.props)}},{key:"componentDidUpdate",value:function(t){var e=this.context.chartCanvasType,n=this.props,r=n.canvasDraw,a=n.selected,o=n.interactiveCursorClass;if(t.selected!==a){(0,this.context.setCursorClass)(a&&this.moreProps.hovering?o:null)}Object(h.v)(r)&&!this.evaluationInProgress&&"svg"!==e&&this.drawOnCanvas()}},{key:"componentWillReceiveProps",value:function(t,e){var n=e.xScale,r=e.plotData,a=e.chartConfig,o=e.getMutableState;this.props.debug(e),this.moreProps=p({},this.moreProps,o(),{xScale:n,plotData:r,chartConfig:a})}},{key:"getMoreProps",value:function(){var t=this.context,e=t.xScale,n=t.plotData,r=t.chartConfig,a=t.morePropsDecorator,o=t.xAccessor,i=t.displayXAccessor,c=t.width,s=t.height,u=this.context,l=u.chartId,f=u.fullData,d=p({xScale:e,plotData:n,chartConfig:r,xAccessor:o,displayXAccessor:i,width:c,height:s,chartId:l,fullData:f},this.moreProps);return(a||h.u)(d)}},{key:"preCanvasDraw",value:function(){}},{key:"postCanvasDraw",value:function(){}},{key:"drawOnCanvas",value:function(){var t=this.props,e=t.canvasDraw,n=t.canvasToDraw,r=this.context.getCanvasContexts,a=this.getMoreProps(),o=n(r());this.preCanvasDraw(o,a),e(o,a),this.postCanvasDraw(o,a)}},{key:"render",value:function(){var t=this.context,e=t.chartCanvasType,n=t.chartId,r=this.props,a=r.canvasDraw,o=r.clip,i=r.svgDraw;if(Object(h.v)(a)&&"svg"!==e)return null;var c=Object(h.v)(n)?"-"+n:"",s=o?{clipPath:"url(#chart-area-clip"+c+")"}:null;return u.a.createElement("g",{style:s},i(this.getMoreProps()))}}]),e}(s.Component);y.propTypes={svgDraw:f.a.func.isRequired,canvasDraw:f.a.func,drawOn:f.a.array.isRequired,clip:f.a.bool.isRequired,edgeClip:f.a.bool.isRequired,interactiveCursorClass:f.a.string,selected:f.a.bool.isRequired,disablePan:f.a.bool.isRequired,canvasToDraw:f.a.func.isRequired,isHover:f.a.func,onClick:f.a.func,onClickWhenHover:f.a.func,onClickOutside:f.a.func,onPan:f.a.func,onPanEnd:f.a.func,onDragStart:f.a.func,onDrag:f.a.func,onDragComplete:f.a.func,onDoubleClick:f.a.func,onDoubleClickWhenHover:f.a.func,onContextMenu:f.a.func,onContextMenuWhenHover:f.a.func,onMouseMove:f.a.func,onMouseDown:f.a.func,onHover:f.a.func,onUnHover:f.a.func,debug:f.a.func},y.defaultProps={svgDraw:Object(h.l)(null),draw:[],canvasToDraw:function(t){return t.mouseCoord},clip:!0,edgeClip:!1,selected:!1,disablePan:!1,onClickWhenHover:h.D,onClickOutside:h.D,onDragStart:h.D,onMouseMove:h.D,onMouseDown:h.D,debug:h.D},y.contextTypes={width:f.a.number.isRequired,height:f.a.number.isRequired,margin:f.a.object.isRequired,chartId:f.a.oneOfType([f.a.number,f.a.string]),getCanvasContexts:f.a.func,chartCanvasType:f.a.string,xScale:f.a.func.isRequired,xAccessor:f.a.func.isRequired,displayXAccessor:f.a.func.isRequired,plotData:f.a.array.isRequired,fullData:f.a.array.isRequired,chartConfig:f.a.oneOfType([f.a.array,f.a.object]).isRequired,morePropsDecorator:f.a.func,generateSubscriptionId:f.a.func,getMutableState:f.a.func.isRequired,amIOnTop:f.a.func.isRequired,subscribe:f.a.func.isRequired,unsubscribe:f.a.func.isRequired,setCursorClass:f.a.func.isRequired},e.a=y},function(t,e,n){"use strict";var r=n(130);n.d(e,"b",function(){return r.a});var a=n(48);n.d(e,"a",function(){return a.a});var o=n(131);n.d(e,"c",function(){return o.a});var i=(n(247),n(248));n.d(e,"d",function(){return i.a});var c=n(133);n.d(e,"e",function(){return c.a});var s=n(135);n.d(e,"f",function(){return s.a});var u=n(249);n.d(e,"g",function(){return u.a});var l=(n(252),n(253),n(139),n(254));n.d(e,"h",function(){return l.a});var f=n(255);n.d(e,"i",function(){return f.a});var h=(n(256),n(257));n.d(e,"j",function(){return h.a});var p=n(140);n.d(e,"k",function(){return p.a});var d=n(132);n.d(e,"l",function(){return d.a});var b=(n(258),n(87));n.d(e,"m",function(){return b.a});var y=n(137);n.d(e,"n",function(){return y.a});var v=(n(259),n(260),n(261));n.d(e,"o",function(){return v.a});var g=n(138);n.d(e,"r",function(){return g.a}),n.d(e,"p",function(){return g.b}),n.d(e,"q",function(){return g.c});var m=(n(141),n(134),n(262));n.d(e,"s",function(){return m.a})},,function(t,e,n){"use strict";var r=n(246);n.d(e,"b",function(){return r.a});var a=n(156);n.d(e,"a",function(){return a.a});var o=(n(10),n(13),n(341),n(342));n.d(e,"c",function(){return o.a})},function(t,e,n){"use strict";var r=n(344);n.d(e,"a",function(){return r.a});var a=(n(106),n(369));n.d(e,"p",function(){return a.a});var o=n(370);n.d(e,"e",function(){return o.a});var i=n(371);n.d(e,"u",function(){return i.a});var c=n(372);n.d(e,"q",function(){return c.a});var s=n(52);n.d(e,"i",function(){return s.a});var u=n(373);n.d(e,"d",function(){return u.a});var l=n(374);n.d(e,"k",function(){return l.a});var f=n(177);n.d(e,"b",function(){return f.a});var h=n(77);n.d(e,"r",function(){return h.a});var p=n(375);n.d(e,"g",function(){return p.a});var d=n(376);n.d(e,"h",function(){return d.a});var b=n(377);n.d(e,"l",function(){return b.a});var y=n(378);n.d(e,"n",function(){return y.a});var v=n(379);n.d(e,"j",function(){return v.a});var g=n(380);n.d(e,"c",function(){return g.a});var m=n(381);n.d(e,"m",function(){return m.a});var O=n(382);n.d(e,"s",function(){return O.a});var w=n(383);n.d(e,"f",function(){return w.a});var x=n(385);n.d(e,"v",function(){return x.a});var k=n(63);n.d(e,"t",function(){return k.a});var _=n(386);n.d(e,"o",function(){return _.a})},function(t,e,n){"use strict";var r=n(387);n.d(e,"a",function(){return r.a});var a=n(415);n.d(e,"b",function(){return a.a})},,,function(t,e,n){"use strict";var r=n(85);n.d(e,"b",function(){return r.a}),n.d(e,"a",function(){return r.b}),n.d(e,"c",function(){return r.c}),n.d(e,"d",function(){return r.d});n(124),n(125),n(231)},function(t,e,n){"use strict";var r=n(422);n.d(e,"a",function(){return r.a}),n.d(e,"b",function(){return r.b});n(181)},function(t,e,n){"use strict";var r=n(416);n.d(e,"c",function(){return r.a});var a=n(417);n.d(e,"b",function(){return a.a});var o=n(418);n.d(e,"d",function(){return o.a});var i=n(419);n.d(e,"e",function(){return i.a});var c=n(420);n.d(e,"a",function(){return c.a});var s=n(421);n.d(e,"f",function(){return s.a})},function(t,e,n){"use strict";var r=n(423);n.d(e,"c",function(){return r.a});var a=n(424);n.d(e,"e",function(){return a.a});var o=n(425);n.d(e,"g",function(){return o.a});var i=n(426);n.d(e,"d",function(){return i.a});var c=n(427);n.d(e,"a",function(){return c.a});var s=n(428);n.d(e,"f",function(){return s.a});var u=n(429);n.d(e,"h",function(){return u.a});var l=n(430);n.d(e,"b",function(){return l.a});n(38),n(39)},function(t,e,n){"use strict";n.d(e,"b",function(){return r}),n.d(e,"a",function(){return a}),n.d(e,"f",function(){return o}),n.d(e,"o",function(){return i}),n.d(e,"c",function(){return c}),n.d(e,"e",function(){return s}),n.d(e,"m",function(){return u}),n.d(e,"i",function(){return l}),n.d(e,"g",function(){return f}),n.d(e,"k",function(){return h}),n.d(e,"d",function(){return p}),n.d(e,"n",function(){return d}),n.d(e,"q",function(){return b}),n.d(e,"p",function(){return y}),n.d(e,"h",function(){return v}),n.d(e,"l",function(){return g}),n.d(e,"j",function(){return m});var r={windowSize:20,sourcePath:"close",multiplier:2,movingAverageType:"sma"},a={windowSize:14},o={sourcePath:"close",volumePath:"volume"},i={sourcePath:"close",volumePath:"volume",smoothingType:"ema",smoothingWindow:13},c={sourcePath:"close"},s={windowSize:13,sourcePath:"close",movingAverageType:"sma"},u={accelerationFactor:.02,maxAccelerationFactor:.2},l={fast:12,slow:26,signal:9,sourcePath:"close"},f={windowSize:12,kWindowSize:3,dWindowSize:3},h={windowSize:14,sourcePath:"close"},p={sourcePath:"close",windowSize:10},d={sourcePath:"close",windowSize:10},b={sourcePath:"close",windowSize:10},y={sourcePath:"close",windowSize:10},v={reversalType:"ATR",windowSize:14,reversal:2,sourcePath:"close"},g={reversalType:"ATR",windowSize:14,fixedBrickSize:2,sourcePath:"high/low"},m={boxSize:.5,reversal:3,sourcePath:"high/low"}},function(t,e,n){"use strict";var r=n(2),a=0;e.a=function(){function t(){}var e=a++,n=void 0,o=void 0,i=void 0,c=void 0,s=void 0;return t.id=function(n){return arguments.length?(e=n,t):e},t.accessor=function(e){return arguments.length?(n=e,t):n},t.stroke=function(n){return arguments.length?(o=n,t):o||(o=Object(r.E)(e))},t.fill=function(n){return arguments.length?(i=n,t):i||(i=Object(r.E)(e))},t.echo=function(e){return arguments.length?(c=e,t):c},t.type=function(e){return arguments.length?(s=e,t):s},t}},function(t,e,n){"use strict";var r=n(64);n.d(e,"f",function(){return r.a});var a=n(183);n.d(e,"o",function(){return a.a});var o=n(432);n.d(e,"r",function(){return o.a});var i=n(433);n.d(e,"q",function(){return i.a});var c=n(434);n.d(e,"b",function(){return c.a});var s=n(435);n.d(e,"h",function(){return s.a});var u=n(436);n.d(e,"i",function(){return u.a});var l=n(437);n.d(e,"k",function(){return l.a});var f=n(438);n.d(e,"l",function(){return f.a});var h=n(439);n.d(e,"j",function(){return h.a});var p=n(440);n.d(e,"m",function(){return p.a});var d=n(441);n.d(e,"p",function(){return d.a});var b=n(110);n.d(e,"a",function(){return b.a});var y=n(184);n.d(e,"g",function(){return y.a});var v=(n(442),n(443));n.d(e,"e",function(){return v.a});var g=n(444);n.d(e,"n",function(){return g.a});var m=n(445);n.d(e,"d",function(){return m.a});var O=n(446);n.d(e,"c",function(){return O.a})},function(t,e,n){"use strict";function r(t,e,n,i){function c(e){return t(e=new Date(+e)),e}return c.floor=c,c.ceil=function(n){return t(n=new Date(n-1)),e(n,1),t(n),n},c.round=function(t){var e=c(t),n=c.ceil(t);return t-e<n-t?e:n},c.offset=function(t,n){return e(t=new Date(+t),null==n?1:Math.floor(n)),t},c.range=function(n,r,a){var o,i=[];if(n=c.ceil(n),a=null==a?1:Math.floor(a),!(n<r&&a>0))return i;do{i.push(o=new Date(+n)),e(n,a),t(n)}while(o<n&&n<r);return i},c.filter=function(n){return r(function(e){if(e>=e)for(;t(e),!n(e);)e.setTime(e-1)},function(t,r){if(t>=t)if(r<0)for(;++r<=0;)for(;e(t,-1),!n(t););else for(;--r>=0;)for(;e(t,1),!n(t););})},n&&(c.count=function(e,r){return a.setTime(+e),o.setTime(+r),t(a),t(o),Math.floor(n(a,o))},c.every=function(t){return t=Math.floor(t),isFinite(t)&&t>0?t>1?c.filter(i?function(e){return i(e)%t==0}:function(e){return c.count(0,e)%t==0}):c:null}),c}e.a=r;var a=new Date,o=new Date},function(t,e,n){"use strict";var r=n(431);n.d(e,"g",function(){return r.a});var a=n(447);n.d(e,"p",function(){return a.a});var o=n(448);n.d(e,"s",function(){return o.a});var i=n(449);n.d(e,"r",function(){return i.a});var c=n(450);n.d(e,"b",function(){return c.a});var s=n(451);n.d(e,"i",function(){return s.a});var u=n(452);n.d(e,"j",function(){return u.a});var l=n(453);n.d(e,"l",function(){return l.a});var f=n(454);n.d(e,"m",function(){return f.a});var h=n(455);n.d(e,"k",function(){return h.a});var p=n(456);n.d(e,"n",function(){return p.a});var d=n(457);n.d(e,"a",function(){return d.a});var b=n(458);n.d(e,"q",function(){return b.a});var y=n(459);n.d(e,"h",function(){return y.a});var v=n(460);n.d(e,"o",function(){return v.a});var g=n(461);n.d(e,"f",function(){return g.a});var m=n(462);n.d(e,"c",function(){return m.a});var O=n(463);n.d(e,"e",function(){return O.a});var w=n(464);n.d(e,"d",function(){return w.a});n(25),n(111)},,function(t,e,n){"use strict";var r=n(264);n.d(e,"b",function(){return r.a});var a=n(265);n.d(e,"c",function(){return a.a});var o=n(88);n.d(e,"a",function(){return o.a});n(266),n(267),n(268)},function(t,n){t.exports=e},function(t,e,n){"use strict";function r(t,e){this._groups=t,this._parents=e}function a(){return new r([[document.documentElement]],F)}n.d(e,"b",function(){return F}),e.a=r;var o=n(309),i=n(310),c=n(311),s=n(312),u=n(160),l=n(314),f=n(315),h=n(316),p=n(317),d=n(318),b=n(319),y=n(320),v=n(321),g=n(322),m=n(323),O=n(324),w=n(162),x=n(325),k=n(326),_=n(327),j=n(328),S=n(329),C=n(330),E=n(331),P=n(332),T=n(333),M=n(334),A=n(99),D=n(335),F=[null];r.prototype=a.prototype={constructor:r,select:o.a,selectAll:i.a,filter:c.a,data:s.a,enter:u.b,exit:l.a,merge:f.a,order:h.a,sort:p.a,call:d.a,nodes:b.a,node:y.a,size:v.a,empty:g.a,each:m.a,attr:O.a,style:w.a,property:x.a,classed:k.a,text:_.a,html:j.a,raise:S.a,lower:C.a,append:E.a,insert:P.a,remove:T.a,datum:M.a,on:A.a,dispatch:D.a}},function(t,e,n){"use strict";n.d(e,"d",function(){return r}),n.d(e,"c",function(){return a}),n.d(e,"b",function(){return o}),n.d(e,"a",function(){return i}),n.d(e,"e",function(){return c});var r=1e3,a=6e4,o=36e5,i=864e5,c=6048e5},function(t,e,n){"use strict";var r=n(263);n.d(e,"d",function(){return r.a});var a=(n(269),n(57));n.d(e,"a",function(){return a.a});var o=n(283);n.d(e,"b",function(){return o.a});var i=n(142);n.d(e,"c",function(){return i.a});var c=(n(284),n(285),n(286),n(287),n(153));n.d(e,"e",function(){return c.b});var s=(n(288),n(289));n.d(e,"f",function(){return s.a});n(290),n(291),n(292),n(293),n(294),n(295),n(296)},,function(t,e,n){"use strict";var r=n(90);n.d(e,"a",function(){return r.e}),n.d(e,"f",function(){return r.g}),n.d(e,"d",function(){return r.f});var a=n(270);n.d(e,"e",function(){return a.a}),n.d(e,"c",function(){return a.b});var o=n(271);n.d(e,"b",function(){return o.a})},function(t,e,n){"use strict";function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function a(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function o(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var i=n(0),c=n.n(i),s=n(1),u=n.n(s),l=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},f=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),h=function(t){function e(){return r(this,e),a(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return o(e,t),f(e,[{key:"render",value:function(){return c.a.createElement("text",l({fontFamily:this.props.fontFamily,fontSize:this.props.fontSize},this.props,{className:"react-stockcharts-tooltip"}),this.props.children)}}]),e}(i.Component);h.propTypes={fontFamily:u.a.string.isRequired,fontSize:u.a.number.isRequired,children:u.a.node.isRequired},h.defaultProps={fontFamily:"Helvetica Neue, Helvetica, Arial, sans-serif",fontSize:11},e.a=h},function(t,e,n){"use strict";function r(t){return o.a.createElement("tspan",s({className:"react-stockcharts-tooltip-label"},t),t.children)}var a=n(0),o=n.n(a),i=n(1),c=n.n(i),s=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t};r.propTypes={children:c.a.node.isRequired,fill:c.a.string.isRequired},r.defaultProps={fill:"#4682B4"},e.a=r},function(t,e,n){"use strict";var r=n(343);n.d(e,"a",function(){return r.a})},,function(t,e,n){"use strict";n.d(e,"a",function(){return a}),n.d(e,"b",function(){return o});var r=Array.prototype,a=r.map,o=r.slice},function(t,e,n){"use strict";e.a=function(t){return function(){return t}}},function(t,e,n){"use strict";function r(t,e){return e.currentItem}e.a=r},function(t,e,n){"use strict";function r(t,e){var n=t.width,r=t.height;return{availableHeight:r,width:n,height:e.height||r}}function a(t){return function(e){var n=t(e);return Object(O.x)(n)?Object(O.z)(n):n}}function o(t){if(Array.isArray(t)&&2===t.length){var e=x(t,2),n=e[0],r=e[1];return"number"==typeof n&&"number"==typeof r}return!1}function i(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];return d.a.Children.map(e,function(e){if(e&&e.type.toString()===m.a.toString()){var a=w({},m.a.defaultProps,e.props),i=a.id,c=a.origin,s=a.padding,u=a.yExtents,l=a.yScale,f=a.flipYScale,h=a.yExtentsCalculator,p=r(t,a),d=p.width,b=p.height,y=p.availableHeight,v=a.yPan,g=a.yPanEnabled,k=Object(O.v)(u)?(Array.isArray(u)?u:[u]).map(O.l):void 0,_=Object(O.j)(n,function(t){return t.id===i});if(o(u))if(Object(O.v)(_)&&_.yPan&&_.yPanEnabled&&v&&g&&Object(O.I)(_.originalYExtentsProp,u))l.domain(_.yScale.domain());else{var j=x(u,2),S=j[0],C=j[1];l.domain([S,C])}else Object(O.v)(_)&&_.yPanEnabled&&(o(_.originalYExtentsProp)||(l.domain(_.yScale.domain()),g=!0));return{id:i,origin:Object(O.l)(c)(d,y),padding:s,originalYExtentsProp:u,yExtents:k,yExtentsCalculator:h,flipYScale:f,yScale:l,yPan:v,yPanEnabled:g,width:d,height:b}}}).filter(function(t){return Object(O.v)(t)})}function c(t,e){return t.filter(function(t){var n=t.origin[1],r=n+t.height;return e[1]>n&&e[1]<r}).map(function(t){return t.id})}function s(t,e,n,r){if(t.rangeRoundPoints||Object(O.w)(t.invert)){if(isNaN(n))throw new Error("padding has to be a number for ordinal scale");t.rangeRoundPoints&&t.rangeRoundPoints(r?[0,e]:[e,0],n),t.rangeRound&&t.range(r?[0,e]:[e,0]).padding(n)}else{var a=isNaN(n)?n:{top:n,bottom:n},o=a.top,i=a.bottom;t.range(r?[o,e-i]:[e-i,o])}return t}function u(t,e,n){var r=t.map(function(t){return n.map(a(t))}),o=g()(r);return e.invert?Object(b.f)(o):Object(y.c)(o).values()}function l(t,e,n,r,a){var o=e.plotData,i=e.xAccessor,c=e.displayXAccessor,l=e.fullData,f=t.map(function(t){var e=t.yExtentsCalculator,a=t.yExtents,s=t.yScale;return{realYDomain:Object(O.v)(e)?e({plotData:o,xDomain:n,xAccessor:i,displayXAccessor:c,fullData:l}):u(a,s,o),yDomainDY:Object(O.v)(r)?s.range().map(function(t){return t-r}).map(s.invert):s.domain(),prevYDomain:s.domain()}});return Object(O.P)().combine(function(t,e){var n=e.realYDomain,r=e.yDomainDY,o=e.prevYDomain,i=t.id,c=t.padding,u=t.height,l=t.yScale,f=t.yPan,h=t.flipYScale,p=t.yPanEnabled,d=void 0!==p&&p,b=!Object(O.v)(a)||a.indexOf(i)>-1,y=f&&d?b?r:o:n,v=s(l.copy().domain(y),u,c,h);return w({},t,{yScale:v,realYDomain:n})})(t,f)}function f(t,e,n,r){var a=void 0,o=void 0;if(t.invert)a=t.invert(n[0]),o=Object(O.m)(r,a,e);else{var i=t.range().map(function(t,e){return{x:Math.abs(t-n[0]),idx:e}}).reduce(function(t,e){return t.x<e.x?t:e});o=Object(O.v)(i)?r[i.idx]:r[0]}return o}function h(t,e,n,r){var a=void 0,o=void 0;if(t.invert){if((a=t.invert(n[0]))>e(Object(O.y)(r))&&t.value)return Math.round(a);o=Object(O.m)(r,a,e)}else{var i=t.range().map(function(t,e){return{x:Math.abs(t-n[0]),idx:e}}).reduce(function(t,e){return t.x<e.x?t:e});o=Object(O.v)(i)?r[i.idx]:r[0]}return e(o)}e.d=i,e.b=c,e.a=l,e.c=f,e.e=h;var p=n(0),d=n.n(p),b=n(14),y=n(31),v=n(304),g=n.n(v),m=n(156),O=n(2),w=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},x=function(){function t(t,e){var n=[],r=!0,a=!1,o=void 0;try{for(var i,c=t[Symbol.iterator]();!(r=(i=c.next()).done)&&(n.push(i.value),!e||n.length!==e);r=!0);}catch(t){a=!0,o=t}finally{try{!r&&c.return&&c.return()}finally{if(a)throw o}}return n}return function(e,n){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return t(e,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}()},,,function(t,e,n){"use strict";e.a=function(t,e){return t<e?-1:t>e?1:t>=e?0:NaN}},function(t,e,n){"use strict";var r=n(89);n.d(e,"a",function(){return r.a});var a=(n(147),n(92),n(145),n(148),n(70));n.d(e,"c",function(){return a.a});var o=(n(149),n(272));n.d(e,"d",function(){return o.a});var i=(n(150),n(273),n(276),n(144),n(277),n(278),n(279),n(280));n.d(e,"b",function(){return i.a});n(281)},function(t,e,n){"use strict";e.a=function(){}},function(t,e,n){"use strict";e.a=function(t){return t}},function(t,e,n){"use strict";function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function a(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function o(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var i=n(0),c=n.n(i),s=n(1),u=n.n(s),l=n(65),f=n(10),h=n(13),p=n(2),d=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},b=function(){function t(t,e){var n=[],r=!0,a=!1,o=void 0;try{for(var i,c=t[Symbol.iterator]();!(r=(i=c.next()).done)&&(n.push(i.value),!e||n.length!==e);r=!0);}catch(t){a=!0,o=t}finally{try{!r&&c.return&&c.return()}finally{if(a)throw o}}return n}return function(e,n){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return t(e,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),y=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),v=function(t){function e(t){r(this,e);var n=a(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return n.renderSVG=n.renderSVG.bind(n),n.drawOnCanvas=n.drawOnCanvas.bind(n),n.isHover=n.isHover.bind(n),n}return o(e,t),y(e,[{key:"isHover",value:function(t){var e=this.props,n=e.highlightOnHover,r=e.yAccessor,a=e.hoverTolerance;if(!n)return!1;var o=t.mouseXY,i=t.currentItem,c=t.xScale,s=t.plotData,u=t.chartConfig,l=u.yScale,f=u.origin,h=t.xAccessor,d=b(o,2),y=d[0],v=d[1],g=a,m=Object(p.n)(s,c.invert(y),h),O=m.left,w=m.right;if(O===w){var x=l(r(i))+f[1],k=c(h(i))+f[0];return Math.pow(y-k,2)+Math.pow(v-x,2)<Math.pow(g,2)}var _=s[O],j=s[w],S=c(h(_))+f[0],C=l(r(_))+f[1],E=c(h(j))+f[0],P=l(r(j))+f[1],T=(P-C)/(E-S),M=-1*T*S+C,A=Math.round(T*y+M);return v>=A-g&&v<=A+g}},{key:"drawOnCanvas",value:function(t,e){var n=this.props,r=n.yAccessor,a=n.stroke,o=n.strokeWidth,i=n.hoverStrokeWidth,c=n.defined,s=n.strokeDasharray,u=n.interpolation,f=this.props.connectNulls,h=e.xAccessor,d=e.xScale,b=e.chartConfig.yScale,y=e.plotData,v=e.hovering;t.lineWidth=v?i:o,t.strokeStyle=a,t.setLineDash(Object(p.q)(s).split(","));var g=Object(l.j)().x(function(t){return d(h(t))}).y(function(t){return b(r(t))});Object(p.v)(u)&&g.curve(u),f||g.defined(function(t){return c(r(t))}),t.beginPath(),g.context(t)(y),t.stroke()}},{key:"renderSVG",value:function(t){var e=this.props,n=e.yAccessor,r=e.stroke,a=e.strokeWidth,o=e.hoverStrokeWidth,i=e.defined,s=e.strokeDasharray,u=this.props.connectNulls,f=this.props.interpolation,h=t.xAccessor,d=t.xScale,b=t.chartConfig.yScale,y=t.plotData,v=t.hovering,g=Object(l.j)().x(function(t){return d(h(t))}).y(function(t){return b(n(t))});Object(p.v)(f)&&g.curve(f),u||g.defined(function(t){return i(n(t))});var m=g(y),O=this.props,w=O.fill,x=O.className;return c.a.createElement("path",{className:x+" "+(r?"":" line-stroke"),d:m,stroke:r,strokeWidth:v?o:a,strokeDasharray:Object(p.q)(s),fill:w})}},{key:"render",value:function(){var t=this.props.highlightOnHover,e=t?{isHover:this.isHover,drawOn:["mousemove","pan"],canvasToDraw:h.c}:{drawOn:["pan"],canvasToDraw:h.b};return c.a.createElement(f.a,d({svgDraw:this.renderSVG,canvasDraw:this.drawOnCanvas,onClickWhenHover:this.props.onClick,onDoubleClickWhenHover:this.props.onDoubleClick,onContextMenuWhenHover:this.props.onContextMenu},e))}}]),e}(i.Component);v.propTypes={className:u.a.string,strokeWidth:u.a.number,stroke:u.a.string,hoverStrokeWidth:u.a.number,fill:u.a.string,defined:u.a.func,hoverTolerance:u.a.number,strokeDasharray:u.a.oneOf(p.L),highlightOnHover:u.a.bool,onClick:u.a.func,onDoubleClick:u.a.func,onContextMenu:u.a.func,yAccessor:u.a.func,connectNulls:u.a.bool,interpolation:u.a.func},v.defaultProps={className:"line ",strokeWidth:1,hoverStrokeWidth:4,fill:"none",stroke:"#4682B4",strokeDasharray:"Solid",defined:function(t){return!isNaN(t)},hoverTolerance:6,highlightOnHover:!1,connectNulls:!1,onClick:function(t){},onDoubleClick:function(t){},onContextMenu:function(t){}},e.a=v},function(t,e,n){"use strict";e.a=function(t){return function(){return t}}},,,function(t,e,n){"use strict";e.a=function(t){return null===t?NaN:+t}},function(t,e,n){"use strict";function r(t){var e=t.domain;return t.ticks=function(t){var n=e();return Object(o.r)(n[0],n[n.length-1],null==t?10:t)},t.tickFormat=function(t,n){return Object(s.a)(e(),t,n)},t.nice=function(n){null==n&&(n=10);var r,a=e(),i=0,c=a.length-1,s=a[i],u=a[c];return u<s&&(r=s,s=u,u=r,r=i,i=c,c=r),r=Object(o.p)(s,u,n),r>0?(s=Math.floor(s/r)*r,u=Math.ceil(u/r)*r,r=Object(o.p)(s,u,n)):r<0&&(s=Math.ceil(s*r)/r,u=Math.floor(u*r)/r,r=Object(o.p)(s,u,n)),r>0?(a[i]=Math.floor(s/r)*r,a[c]=Math.ceil(u/r)*r,e(a)):r<0&&(a[i]=Math.ceil(s*r)/r,a[c]=Math.floor(u*r)/r,e(a)),t},t}function a(){var t=Object(c.b)(c.c,i.c);return t.copy=function(){return Object(c.a)(t,a())},r(t)}e.b=r,e.a=a;var o=n(14),i=n(49),c=n(71),s=n(282)},function(t,e,n){"use strict";function r(t,e){return function(n){return t+n*e}}function a(t,e,n){return t=Math.pow(t,n),e=Math.pow(e,n)-t,n=1/n,function(r){return Math.pow(t+r*e,n)}}function o(t,e){var n=e-t;return n?r(t,n>180||n<-180?n-360*Math.round(n/360):n):Object(s.a)(isNaN(t)?e:t)}function i(t){return 1==(t=+t)?c:function(e,n){return n-e?a(e,n,t):Object(s.a)(isNaN(e)?n:e)}}function c(t,e){var n=e-t;return n?r(t,n):Object(s.a)(isNaN(t)?e:t)}e.c=o,e.b=i,e.a=c;var s=n(146)},function(t,e,n){"use strict";e.a=function(t){return t.match(/.{6}/g).map(function(t){return"#"+t})}},function(t,e,n){"use strict";function r(t){return t>1?0:t<-1?p:Math.acos(t)}function a(t){return t>=1?d:t<=-1?-d:Math.asin(t)}n.d(e,"a",function(){return o}),n.d(e,"d",function(){return i}),n.d(e,"e",function(){return c}),n.d(e,"h",function(){return s}),n.d(e,"i",function(){return u}),n.d(e,"k",function(){return l}),n.d(e,"l",function(){return f}),n.d(e,"f",function(){return h}),n.d(e,"j",function(){return p}),n.d(e,"g",function(){return d}),n.d(e,"m",function(){return b}),e.b=r,e.c=a;var o=Math.abs,i=Math.atan2,c=Math.cos,s=Math.max,u=Math.min,l=Math.sin,f=Math.sqrt,h=1e-12,p=Math.PI,d=p/2,b=2*p},function(t,e,n){"use strict";e.a=function(t,e){if((a=t.length)>1)for(var n,r,a,o=1,i=t[e[0]],c=i.length;o<a;++o)for(r=i,i=t[e[o]],n=0;n<c;++n)i[n][1]+=i[n][0]=isNaN(r[n][1])?r[n][0]:r[n][1]}},function(t,e,n){"use strict";e.a=function(t){for(var e=t.length,n=new Array(e);--e>=0;)n[e]=e;return n}},function(t,e,n){"use strict";function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function a(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function o(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}function i(t,e,n,r,a,o,i){return"horizontal"===t?{x1:0,y1:n(a),x2:o,y2:n(a)}:{x1:e(r),y1:0,x2:e(r),y2:i}}var c=n(0),s=n.n(c),u=n(1),l=n.n(u),f=n(2),h=n(10),p=n(13),d=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},b=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),y=function(t){function e(t){r(this,e);var n=a(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return n.renderSVG=n.renderSVG.bind(n),n.drawOnCanvas=n.drawOnCanvas.bind(n),n}return o(e,t),b(e,[{key:"drawOnCanvas",value:function(t,e){var n=this.props,r=n.type,a=n.stroke,o=n.strokeWidth,c=n.opacity,s=n.strokeDasharray,u=this.props,l=u.yValue,h=u.xValue,p=e.xScale,d=e.chartConfig,b=d.yScale,y=d.width,v=d.height;t.beginPath(),t.strokeStyle=Object(f.t)(a,c),t.lineWidth=o;var g=i(r,p,b,h,l,y,v),m=g.x1,O=g.y1,w=g.x2,x=g.y2;t.setLineDash(Object(f.q)(s).split(",")),t.moveTo(m,O),t.lineTo(w,x),t.stroke()}},{key:"render",value:function(){return s.a.createElement(h.a,{svgDraw:this.renderSVG,canvasDraw:this.drawOnCanvas,canvasToDraw:p.b,drawOn:["pan"]})}},{key:"renderSVG",value:function(t){var e=t.width,n=t.height,r=t.xScale,a=t.chartConfig.yScale,o=this.props.className,c=this.props,u=c.type,l=c.stroke,h=c.strokeWidth,p=c.opacity,b=c.strokeDasharray,y=this.props,v=y.yValue,g=y.xValue,m=i(u,r,a,g,v,e,n);return s.a.createElement("line",d({className:o,strokeDasharray:Object(f.q)(b),stroke:l,strokeWidth:h,opacity:p},m))}}]),e}(c.Component);y.propTypes={className:l.a.string,type:l.a.oneOf(["vertical","horizontal"]),stroke:l.a.string,strokeWidth:l.a.number,strokeDasharray:l.a.oneOf(f.L),opacity:l.a.number.isRequired,yValue:function(t,e){return"vertical"===t.type&&Object(f.v)(t[e])?new Error("Do not define `yValue` when type is `vertical`, define the `xValue` prop"):"horizontal"===t.type&&Object(f.w)(t[e])?new Error("when type = `horizontal` `yValue` is required"):void 0},xValue:function(t,e){return"horizontal"===t.type&&Object(f.v)(t[e])?new Error("Do not define `xValue` when type is `horizontal`, define the `yValue` prop"):"vertical"===t.type&&Object(f.w)(t[e])?new Error("when type = `vertical` `xValue` is required"):void 0}},y.defaultProps={className:"line ",type:"horizontal",stroke:"#000000",opacity:.5,strokeWidth:1,strokeDasharray:"Solid"},e.a=y},function(t,e,n){"use strict";var r=n(2),a=n(25),o=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t};e.a=function(){function t(t){var n=e,a=n.windowSize,o=n.sourcePath,i=Object(r.F)(o),c=2/(a+1),s=void 0,u=0,l=0;return t.map(function(t,e){var n=i(t,e);if(Object(r.w)(s)&&Object(r.w)(n))return void l++;if(e<a+l-1)return void(u+=n);if(e===a+l-1){u+=n;var o=u/a;return s=o,o}var f=n*c+(1-c)*s;return s=f,f})}var e=a.d;return t.undefinedLength=function(){return e.windowSize-1},t.options=function(n){return arguments.length?(e=o({},a.d,n),t):e},t}},function(t,e,n){"use strict";var r=(n(345),n(163));n.d(e,"a",function(){return r.a});var a=n(102);n.d(e,"j",function(){return a.a});var o=(n(346),n(349),n(165),n(166),n(350),n(351),n(168),n(169),n(170),n(172),n(171),n(173),n(174),n(352),n(353),n(75));n.d(e,"b",function(){return o.b});var i=(n(354),n(175),n(176),n(76));n.d(e,"c",function(){return i.b});var c=(n(355),n(356),n(104));n.d(e,"d",function(){return c.a});var s=(n(357),n(73));n.d(e,"e",function(){return s.a});var u=n(358);n.d(e,"f",function(){return u.a});var l=(n(359),n(360));n.d(e,"g",function(){return l.a}),n.d(e,"h",function(){return l.b}),n.d(e,"i",function(){return l.c});var f=n(361);n.d(e,"k",function(){return f.a});n(362),n(363),n(61),n(364),n(365),n(105),n(366),n(367),n(62),n(368)},,,,function(t,e,n){"use strict";var r=n(86);e.a=function(t){return t=Object(r.a)(Math.abs(t)),t?t[1]:NaN}},function(t,e,n){"use strict";e.a=function(t,e){return t=+t,e-=t,function(n){return t+e*n}}},function(t,e,n){"use strict";function r(t,e){return(e-=t=+t)?function(n){return(n-t)/e}:Object(p.a)(e)}function a(t){return function(e,n){var r=t(e=+e,n=+n);return function(t){return t<=e?0:t>=n?1:r(t)}}}function o(t){return function(e,n){var r=t(e=+e,n=+n);return function(t){return t<=0?e:t>=1?n:r(t)}}}function i(t,e,n,r){var a=t[0],o=t[1],i=e[0],c=e[1];return o<a?(a=n(o,a),i=r(c,i)):(a=n(a,o),i=r(i,c)),function(t){return i(a(t))}}function c(t,e,n,r){var a=Math.min(t.length,e.length)-1,o=new Array(a),i=new Array(a),c=-1;for(t[a]<t[0]&&(t=t.slice().reverse(),e=e.slice().reverse());++c<a;)o[c]=n(t[c],t[c+1]),i[c]=r(e[c],e[c+1]);return function(e){var n=Object(l.b)(t,e,1,a)-1;return i[n](o[n](e))}}function s(t,e){return e.domain(t.domain()).range(t.range()).interpolate(t.interpolate()).clamp(t.clamp())}function u(t,e){function n(){return u=Math.min(y.length,v.length)>2?c:i,l=p=null,s}function s(e){return(l||(l=u(y,v,m?a(t):t,g)))(+e)}var u,l,p,y=b,v=b,g=f.a,m=!1;return s.invert=function(t){return(p||(p=u(v,y,r,m?o(e):e)))(+t)},s.domain=function(t){return arguments.length?(y=h.a.call(t,d.a),n()):y.slice()},s.range=function(t){return arguments.length?(v=h.b.call(t),n()):v.slice()},s.rangeRound=function(t){return v=h.b.call(t),g=f.d,n()},s.clamp=function(t){return arguments.length?(m=!!t,n()):m},s.interpolate=function(t){return arguments.length?(g=t,n()):g},n()}e.c=r,e.a=s,e.b=u;var l=n(14),f=n(49),h=n(42),p=n(93),d=n(151),b=[0,1]},function(t,e,n){"use strict";e.a=function(t,e){var n=t.ownerSVGElement||t;if(n.createSVGPoint){var r=n.createSVGPoint();return r.x=e.clientX,r.y=e.clientY,r=r.matrixTransform(t.getScreenCTM().inverse()),[r.x,r.y]}var a=t.getBoundingClientRect();return[e.clientX-a.left-t.clientLeft,e.clientY-a.top-t.clientTop]}},function(t,e,n){"use strict";function r(t){this._context=t}r.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(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;default:this._context.lineTo(t,e)}}},e.a=function(t){return new r(t)}},function(t,e,n){"use strict";e.a=function(){}},function(t,e,n){"use strict";function r(t,e,n){t._context.bezierCurveTo((2*t._x0+t._x1)/3,(2*t._y0+t._y1)/3,(t._x0+2*t._x1)/3,(t._y0+2*t._y1)/3,(t._x0+4*t._x1+e)/6,(t._y0+4*t._y1+n)/6)}function a(t){this._context=t}e.c=r,e.a=a,a.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:r(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(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);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:r(this,t,e)}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}},e.b=function(t){return new a(t)}},function(t,e,n){"use strict";function r(t,e,n){t._context.bezierCurveTo(t._x1+t._k*(t._x2-t._x0),t._y1+t._k*(t._y2-t._y0),t._x2+t._k*(t._x1-e),t._y2+t._k*(t._y1-n),t._x2,t._y2)}function a(t,e){this._context=t,this._k=(1-e)/6}e.c=r,e.a=a,a.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:r(this,this._x1,this._y1)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2,this._x1=t,this._y1=e;break;case 2:this._point=3;default:r(this,t,e)}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}},e.b=function t(e){function n(t){return new a(t,e)}return n.tension=function(e){return t(+e)},n}(0)},function(t,e,n){"use strict";function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function a(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function o(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}function i(){function t(t){return e.map(function(e,n){var r=t.map(function(t){var n=[0,t[e]];return n.data=t,n});return r.key=e,r.index=n,r})}var e=[];return t.keys=function(n){return arguments.length?(e=n,t):e},t}function c(t,e,n,r,a){var o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:k.u,i=arguments.length>6&&void 0!==arguments[6]?arguments[6]:C,c=n.xScale,s=n.chartConfig.yScale;h(e,t,l(e,r,n.plotData,c,s,a,i,o))}function s(t){return Array.isArray(t)?t:[t]}function u(t,e,n,r){var a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:k.u,o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:C,i=e.xScale,c=e.chartConfig.yScale;return f(t,l(t,n,e.plotData,i,c,r,o,a))}function l(t,e,n,r,a,o,i,c){var u=t.yAccessor,l=t.swapScales,f=s(l?t.xAccessor:u);return p(t,l?u:e,f,l?a:r,l?r:a,n,o,l?i:c)}function f(t,e){var n=t.opacity;return e.map(function(t,e){return t.width<=1?b.a.createElement("line",{key:e,className:t.className,stroke:t.fill,x1:t.x,y1:t.y,x2:t.x,y2:t.y+t.height}):b.a.createElement("rect",{key:e,className:t.className,stroke:t.stroke,fill:t.fill,x:t.x,y:t.y,width:t.width,fillOpacity:n,height:t.height})})}function h(t,e,n){var r=t.stroke;Object(g.b)().key(function(t){return t.fill}).entries(n).forEach(function(n){var a=n.key,o=n.values;Object(k.s)(o).width>1&&(e.strokeStyle=a);var i=Object(k.s)(o).width<=1?a:Object(k.t)(a,t.opacity);e.fillStyle=i,o.forEach(function(t){t.width<=1?e.fillRect(t.x-.5,t.y,1,t.height):(e.fillRect(t.x,t.y,t.width,t.height),r&&e.strokeRect(t.x,t.y,t.width,t.height))})})}function p(t,e,n,r,a,o){var c=arguments.length>6&&void 0!==arguments[6]?arguments[6]:i,s=arguments.length>7&&void 0!==arguments[7]?arguments[7]:k.u,u=t.baseAt,l=t.className,f=t.fill,h=t.stroke,p=t.spaceBetweenBar,d=void 0===p?0:p,b=Object(k.l)(l),y=Object(k.l)(f),v=Object(k.l)(u),g=Object(k.l)(t.width),O=g(t,{xScale:r,xAccessor:e,plotData:o}),w=Math.round(O),x=(w-d*(n.length-1))/n.length,j=1===w?0:.5*O,S=o.map(function(t){var r={appearance:{},x:e(t)};return n.forEach(function(e,n){var a="y"+n;r[a]=e(t);var o={className:b(t,n),stroke:h?y(t,n):"none",fill:y(t,n)};r.appearance[a]=o}),r}),C=n.map(function(t,e){return"y"+e}),E=c().keys(C)(S),P=E.map(function(t,e){var n=t.key;return t.map(function(t){var r=[t[0],t[1]];return r.data={x:t.data.x,i:e,appearance:t.data.appearance[n]},r})});return s(Object(m.j)(P).map(function(t){var e=a(t[1]),n=v(r,a,t.data)-a(t[1]-t[0]);return n<0&&(e+=n,n=-n),_({},t.data.appearance,{x:Math.round(r(t.data.x)-O/2),y:e,groupOffset:Math.round(j-(t.data.i>0?(x+d)*t.data.i:0)),groupWidth:Math.round(x),offset:Math.round(j),height:n,width:w})}).filter(function(t){return!isNaN(t.y)}))}e.e=i,e.c=c,e.f=u,e.d=f,e.b=h;var d=n(0),b=n.n(d),y=n(1),v=n.n(y),g=n(31),m=n(14),O=n(65),w=n(10),x=n(13),k=n(2),_=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},j=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),S=function(t){function e(t){r(this,e);var n=a(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return n.renderSVG=n.renderSVG.bind(n),n.drawOnCanvas=n.drawOnCanvas.bind(n),n}return o(e,t),j(e,[{key:"drawOnCanvas",value:function(t,e){var n=e.xAccessor;c(t,this.props,e,n,O.k)}},{key:"renderSVG",value:function(t){var e=t.xAccessor;return b.a.createElement("g",null,u(this.props,t,e,O.k))}},{key:"render",value:function(){var t=this.props.clip;return b.a.createElement(w.a,{clip:t,svgDraw:this.renderSVG,canvasDraw:this.drawOnCanvas,canvasToDraw:x.b,drawOn:["pan"]})}}]),e}(d.Component);S.propTypes={baseAt:v.a.oneOfType([v.a.number,v.a.func]).isRequired,direction:v.a.oneOf(["up","down"]).isRequired,stroke:v.a.bool.isRequired,width:v.a.oneOfType([v.a.number,v.a.func]).isRequired,opacity:v.a.number.isRequired,fill:v.a.oneOfType([v.a.func,v.a.string]).isRequired,className:v.a.oneOfType([v.a.func,v.a.string]).isRequired,clip:v.a.bool.isRequired},S.defaultProps={baseAt:function(t,e){return Object(k.s)(e.range())},direction:"up",className:"bar",stroke:!0,fill:"#4682B4",opacity:.5,width:k.G,clip:!0,swapScales:!1};var C=function(t){return t.map(function(t){return _({},t,{x:t.y,y:t.x,height:t.width,width:t.height})})};e.a=S},function(t,e,n){"use strict";function r(t){var e=t.className,n=a(t);if(null===n)return null;var r=void 0,o=void 0,i=void 0;if(Object(s.v)(n.line)&&(r=c.a.createElement("line",{className:"react-stockcharts-cross-hair",opacity:n.line.opacity,stroke:n.line.stroke,x1:n.line.x1,y1:n.line.y1,x2:n.line.x2,y2:n.line.y2})),Object(s.v)(n.coordinateBase)){var u=n.coordinateBase,l=u.rectWidth,f=u.rectHeight,h=u.arrowWidth,p="left"===n.orient?"M0,0L0,"+f+"L"+l+","+f+"L"+(l+h)+",10L"+l+",0L0,0L0,0":"M0,"+h+"L"+h+","+f+"L"+(l+h)+","+f+"L"+(l+h)+",0L"+h+",0L0,"+h;o="left"===n.orient||"right"===n.orient?c.a.createElement("g",{transform:"translate("+n.coordinateBase.edgeXRect+","+n.coordinateBase.edgeYRect+")"},c.a.createElement("path",{d:p,key:1,className:"react-stockchart-text-background",height:f,width:l,fill:n.coordinateBase.fill,opacity:n.coordinateBase.opacity})):c.a.createElement("rect",{key:1,className:"react-stockchart-text-background",x:n.coordinateBase.edgeXRect,y:n.coordinateBase.edgeYRect,height:f,width:l,fill:n.coordinateBase.fill,opacity:n.coordinateBase.opacity}),i=c.a.createElement("text",{key:2,x:n.coordinate.edgeXText,y:n.coordinate.edgeYText,textAnchor:n.coordinate.textAnchor,fontFamily:n.coordinate.fontFamily,fontSize:n.coordinate.fontSize,dy:".32em",fill:n.coordinate.textFill},n.coordinate.displayCoordinate)}return c.a.createElement("g",{className:e},r,o,i)}function a(t){var e=t.coordinate,n=t.show,r=t.type,a=t.orient,o=t.edgeAt,i=t.hideLine,c=t.lineStrokeDasharray,u=t.fill,l=t.opacity,f=t.fontFamily,h=t.fontSize,p=t.textFill,d=t.lineStroke,b=t.lineOpacity,y=t.arrowWidth,v=t.rectWidth,g=t.rectHeight,m=t.x1,O=t.y1,w=t.x2,x=t.y2,k=t.dx;if(!n)return null;var _=void 0,j=void 0;if(Object(s.v)(e)){var S=void 0,C=void 0,E=void 0,P=void 0;"horizontal"===r?(S=k+("right"===a?o+1:o-v-1),C=O-g/2,E=k+("right"===a?o+v/2:o-v/2),P=O):(S=m-v/2,C="bottom"===a?o:o-g,E=m,P="bottom"===a?o+g/2:o-g/2),_={edgeXRect:S,edgeYRect:C,rectHeight:g,rectWidth:v,fill:u,opacity:l,arrowWidth:y},j={edgeXText:E,edgeYText:P,textAnchor:"middle",fontFamily:f,fontSize:h,textFill:p,displayCoordinate:e}}return{coordinateBase:_,coordinate:j,line:i?void 0:{opacity:b,stroke:d,strokeDasharray:c,x1:m,y1:O,x2:w,y2:x},orient:a}}function o(t,e){var n=e.fontSize,r=e.fontFamily;t.font=n+"px "+r,t.textBaseline="middle";var o=t.measureText(e.coordinate).width+10,i=a(u({},e,{rectWidth:o}));if(null!==i){if(Object(s.v)(i.coordinateBase)){var c=i.coordinateBase,l=c.rectWidth,f=c.rectHeight,h=c.arrowWidth;t.fillStyle=Object(s.t)(i.coordinateBase.fill,i.coordinateBase.opacity);var p=i.coordinateBase.edgeXRect,d=i.coordinateBase.edgeYRect,b=f/2;t.beginPath(),"right"===i.orient?(p-=h,t.moveTo(p,d+b),t.lineTo(p+h,d),t.lineTo(p+l+h,d),t.lineTo(p+l+h,d+f),t.lineTo(p+h,d+f),t.closePath()):"left"===i.orient?(t.moveTo(p,d),t.lineTo(p+l,d),t.lineTo(p+l+h,d+b),t.lineTo(p+l,d+f),t.lineTo(p,d+f),t.closePath()):t.rect(p,d,l,f),t.fill(),t.fillStyle=i.coordinate.textFill,t.textAlign="middle"===i.coordinate.textAnchor?"center":i.coordinate.textAnchor,t.fillText(i.coordinate.displayCoordinate,i.coordinate.edgeXText,i.coordinate.edgeYText)}if(Object(s.v)(i.line)){var y=Object(s.q)(i.line.strokeDasharray).split(",").map(function(t){return+t});t.setLineDash(y),t.strokeStyle=Object(s.t)(i.line.stroke,i.line.opacity),t.beginPath(),t.moveTo(i.line.x1,i.line.y1),t.lineTo(i.line.x2,i.line.y2),t.stroke()}}}e.b=r,e.a=o;var i=n(0),c=n.n(i),s=n(2),u=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t}},function(t,e,n){"use strict";var r=(n(28),n(217));n.d(e,"c",function(){return r.a}),n.d(e,"n",function(){return r.a});var a=n(218);n.d(e,"g",function(){return a.a}),n.d(e,"r",function(){return a.a});var o=n(219);n.d(e,"d",function(){return o.a});var i=n(220);n.d(e,"b",function(){return i.a});var c=n(221);n.d(e,"a",function(){return c.a});var s=n(222);n.d(e,"j",function(){return s.b}),n.d(e,"h",function(){return s.b}),n.d(e,"e",function(){return s.a}),n.d(e,"i",function(){return s.c});var u=n(223);n.d(e,"f",function(){return u.a});var l=n(224);n.d(e,"k",function(){return l.a});var f=n(225);n.d(e,"o",function(){return f.a});var h=n(226);n.d(e,"m",function(){return h.a});var p=n(227);n.d(e,"l",function(){return p.a});var d=n(228);n.d(e,"u",function(){return d.b}),n.d(e,"s",function(){return d.b}),n.d(e,"p",function(){return d.a}),n.d(e,"t",function(){return d.c});var b=n(229);n.d(e,"q",function(){return b.a});var y=n(230);n.d(e,"v",function(){return y.a})},,,,,function(t,e,n){"use strict";function r(t){return new Function("d","return {"+t.map(function(t,e){return JSON.stringify(t)+": d["+e+"]"}).join(",")+"}")}function a(t,e){var n=r(t);return function(r,a){return e(n(r),a,t)}}function o(t){var e=Object.create(null),n=[];return t.forEach(function(t){for(var r in t)r in e||n.push(e[r]=r)}),n}var i={},c={},s=34,u=10,l=13;e.a=function(t){function e(t,e){var o,i,c=n(t,function(t,n){if(o)return o(t,n-1);i=t,o=e?a(t,e):r(t)});return c.columns=i||[],c}function n(t,e){function n(){if(p)return c;if(d)return d=!1,i;var e,n,r=f;if(t.charCodeAt(r)===s){for(;f++<o&&t.charCodeAt(f)!==s||t.charCodeAt(++f)===s;);return(e=f)>=o?p=!0:(n=t.charCodeAt(f++))===u?d=!0:n===l&&(d=!0,t.charCodeAt(f)===u&&++f),t.slice(r+1,e-1).replace(/""/g,'"')}for(;f<o;){if((n=t.charCodeAt(e=f++))===u)d=!0;else if(n===l)d=!0,t.charCodeAt(f)===u&&++f;else if(n!==y)continue;return t.slice(r,e)}return p=!0,t.slice(r,o)}var r,a=[],o=t.length,f=0,h=0,p=o<=0,d=!1;for(t.charCodeAt(o-1)===u&&--o,t.charCodeAt(o-1)===l&&--o;(r=n())!==c;){for(var b=[];r!==i&&r!==c;)b.push(r),r=n();e&&null==(b=e(b,h++))||a.push(b)}return a}function f(e,n){return null==n&&(n=o(e)),[n.map(d).join(t)].concat(e.map(function(e){return n.map(function(t){return d(e[t])}).join(t)})).join("\n")}function h(t){return t.map(p).join("\n")}function p(e){return e.map(d).join(t)}function d(t){return null==t?"":b.test(t+="")?'"'+t.replace(/"/g,'""')+'"':t}var b=new RegExp('["'+t+"\n\r]"),y=t.charCodeAt(0);return{parse:e,parseRows:n,format:f,formatRows:h}}},function(t,e,n){"use strict";function r(t){return a=Object(u.a)(t),o=a.format,i=a.parse,c=a.utcFormat,s=a.utcParse,a}n.d(e,"b",function(){return o}),n.d(e,"c",function(){return i}),n.d(e,"d",function(){return c}),n.d(e,"e",function(){return s}),e.a=r;var a,o,i,c,s,u=n(124);r({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",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"]})},function(t,e,n){"use strict";e.a=function(t,e){if((n=(t=e?t.toExponential(e-1):t.toExponential()).indexOf("e"))<0)return null;var n,r=t.slice(0,n);return[r.length>1?r[0]+r.slice(2):r,+t.slice(n+1)]}},function(t,e,n){"use strict";var r=n(56);e.a=function(t,e,n){if(null==n&&(n=r.a),a=t.length){if((e=+e)<=0||a<2)return+n(t[0],0,t);if(e>=1)return+n(t[a-1],a-1,t);var a,o=(a-1)*e,i=Math.floor(o),c=+n(t[i],i,t);return c+(+n(t[i+1],i+1,t)-c)*(o-i)}}},function(t,e,n){"use strict";function r(){}function a(t,e){var n=new r;if(t instanceof r)t.each(function(t,e){n.set(e,t)});else if(Array.isArray(t)){var a,o=-1,i=t.length;if(null==e)for(;++o<i;)n.set(o,t[o]);else for(;++o<i;)n.set(e(a=t[o],o,t),a)}else if(t)for(var c in t)n.set(c,t[c]);return n}n.d(e,"b",function(){return o});var o="$";r.prototype=a.prototype={constructor:r,has:function(t){return o+t in this},get:function(t){return this[o+t]},set:function(t,e){return this[o+t]=e,this},remove:function(t){var e=o+t;return e in this&&delete this[e]},clear:function(){for(var t in this)t[0]===o&&delete this[t]},keys:function(){var t=[];for(var e in this)e[0]===o&&t.push(e.slice(1));return t},values:function(){var t=[];for(var e in this)e[0]===o&&t.push(this[e]);return t},entries:function(){var t=[];for(var e in this)e[0]===o&&t.push({key:e.slice(1),value:this[e]});return t},size:function(){var t=0;for(var e in this)e[0]===o&&++t;return t},empty:function(){for(var t in this)if(t[0]===o)return!1;return!0},each:function(t){for(var e in this)e[0]===o&&t(this[e],e.slice(1),this)}},e.a=a},function(t,e,n){"use strict";var r=n(37),a=n(144),o=n(147),i=n(148),c=n(70),s=n(149),u=n(150),l=n(146);e.a=function(t,e){var n,f=typeof e;return null==e||"boolean"===f?Object(l.a)(e):("number"===f?c.a:"string"===f?(n=Object(r.a)(e))?(e=n,a.a):u.a:e instanceof r.a?a.a:e instanceof Date?i.a:Array.isArray(e)?o.a:"function"!=typeof e.valueOf&&"function"!=typeof e.toString||isNaN(e)?s.a:c.a)(t,e)}},function(t,e,n){"use strict";function r(){}function a(t){var e;return t=(t+"").trim().toLowerCase(),(e=w.exec(t))?(e=parseInt(e[1],16),new u(e>>8&15|e>>4&240,e>>4&15|240&e,(15&e)<<4|15&e,1)):(e=x.exec(t))?o(parseInt(e[1],16)):(e=k.exec(t))?new u(e[1],e[2],e[3],1):(e=_.exec(t))?new u(255*e[1]/100,255*e[2]/100,255*e[3]/100,1):(e=j.exec(t))?i(e[1],e[2],e[3],e[4]):(e=S.exec(t))?i(255*e[1]/100,255*e[2]/100,255*e[3]/100,e[4]):(e=C.exec(t))?l(e[1],e[2]/100,e[3]/100,1):(e=E.exec(t))?l(e[1],e[2]/100,e[3]/100,e[4]):P.hasOwnProperty(t)?o(P[t]):"transparent"===t?new u(NaN,NaN,NaN,0):null}function o(t){return new u(t>>16&255,t>>8&255,255&t,1)}function i(t,e,n,r){return r<=0&&(t=e=n=NaN),new u(t,e,n,r)}function c(t){return t instanceof r||(t=a(t)),t?(t=t.rgb(),new u(t.r,t.g,t.b,t.opacity)):new u}function s(t,e,n,r){return 1===arguments.length?c(t):new u(t,e,n,null==r?1:r)}function u(t,e,n,r){this.r=+t,this.g=+e,this.b=+n,this.opacity=+r}function l(t,e,n,r){return r<=0?t=e=n=NaN:n<=0||n>=1?t=e=NaN:e<=0&&(t=NaN),new p(t,e,n,r)}function f(t){if(t instanceof p)return new p(t.h,t.s,t.l,t.opacity);if(t instanceof r||(t=a(t)),!t)return new p;if(t instanceof p)return t;t=t.rgb();var e=t.r/255,n=t.g/255,o=t.b/255,i=Math.min(e,n,o),c=Math.max(e,n,o),s=NaN,u=c-i,l=(c+i)/2;return u?(s=e===c?(n-o)/u+6*(n<o):n===c?(o-e)/u+2:(e-n)/u+4,u/=l<.5?c+i:2-c-i,s*=60):u=l>0&&l<1?0:s,new p(s,u,l,t.opacity)}function h(t,e,n,r){return 1===arguments.length?f(t):new p(t,e,n,null==r?1:r)}function p(t,e,n,r){this.h=+t,this.s=+e,this.l=+n,this.opacity=+r}function d(t,e,n){return 255*(t<60?e+(n-e)*t/60:t<180?n:t<240?e+(n-e)*(240-t)/60:e)}e.a=r,n.d(e,"d",function(){return y}),n.d(e,"c",function(){return v}),e.e=a,e.h=c,e.g=s,e.b=u,e.f=h;var b=n(91),y=.7,v=1/y,g="\\s*([+-]?\\d+)\\s*",m="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*",O="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*",w=/^#([0-9a-f]{3})$/,x=/^#([0-9a-f]{6})$/,k=new RegExp("^rgb\\("+[g,g,g]+"\\)$"),_=new RegExp("^rgb\\("+[O,O,O]+"\\)$"),j=new RegExp("^rgba\\("+[g,g,g,m]+"\\)$"),S=new RegExp("^rgba\\("+[O,O,O,m]+"\\)$"),C=new RegExp("^hsl\\("+[m,O,O]+"\\)$"),E=new RegExp("^hsla\\("+[m,O,O,m]+"\\)$"),P={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};Object(b.a)(r,a,{displayable:function(){return this.rgb().displayable()},toString:function(){return this.rgb()+""}}),Object(b.a)(u,s,Object(b.b)(r,{brighter:function(t){return t=null==t?v:Math.pow(v,t),new u(this.r*t,this.g*t,this.b*t,this.opacity)},darker:function(t){return t=null==t?y:Math.pow(y,t),new u(this.r*t,this.g*t,this.b*t,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 t=this.opacity;return t=isNaN(t)?1:Math.max(0,Math.min(1,t)),(1===t?"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===t?")":", "+t+")")}})),Object(b.a)(p,h,Object(b.b)(r,{brighter:function(t){return t=null==t?v:Math.pow(v,t),new p(this.h,this.s,this.l*t,this.opacity)},darker:function(t){return t=null==t?y:Math.pow(y,t),new p(this.h,this.s,this.l*t,this.opacity)},rgb:function(){var t=this.h%360+360*(this.h<0),e=isNaN(t)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*e,a=2*n-r;return new u(d(t>=240?t-240:t+120,a,r),d(t,a,r),d(t<120?t+240:t-120,a,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}}))},function(t,e,n){"use strict";function r(t,e){var n=Object.create(t.prototype);for(var r in e)n[r]=e[r];return n}e.b=r,e.a=function(t,e,n){t.prototype=e.prototype=n,n.constructor=t}},function(t,e,n){"use strict";function r(t,e,n,r,a){var o=t*t,i=o*t;return((1-3*t+3*o-i)*e+(4-6*o+3*i)*n+(1+3*t+3*o-3*i)*r+i*a)/6}e.a=r,e.b=function(t){var e=t.length-1;return function(n){var a=n<=0?n=0:n>=1?(n=1,e-1):Math.floor(n*e),o=t[a],i=t[a+1],c=a>0?t[a-1]:2*o-i,s=a<e-1?t[a+2]:2*i-o;return r((n-a/e)*e,c,o,i,s)}}},function(t,e,n){"use strict";e.a=function(t){return function(){return t}}},function(t,e,n){"use strict";function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function a(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function o(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var i=n(0),c=n.n(i),s=n(155),u=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),l=function(t){function e(){return r(this,e),a(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return o(e,t),u(e,[{key:"shouldComponentUpdate",value:function(t,e,n){return!Object(s.a)(this.props,t)||!Object(s.a)(this.state,e)||!Object(s.a)(this.context,n)}}]),e}(c.a.Component);e.a=l},function(t,e,n){"use strict";function r(t){return function(){var e=this.ownerDocument,n=this.namespaceURI;return n===i.b&&e.documentElement.namespaceURI===i.b?e.createElement(t):e.createElementNS(n,t)}}function a(t){return function(){return this.ownerDocument.createElementNS(t.space,t.local)}}var o=n(96),i=n(97);e.a=function(t){var e=Object(o.a)(t);return(e.local?a:r)(e)}},function(t,e,n){"use strict";var r=n(97);e.a=function(t){var e=t+="",n=e.indexOf(":");return n>=0&&"xmlns"!==(e=t.slice(0,n))&&(t=t.slice(n+1)),r.a.hasOwnProperty(e)?{space:r.a[e],local:t}:t}},function(t,e,n){"use strict";n.d(e,"b",function(){return r});var r="http://www.w3.org/1999/xhtml";e.a={svg:"http://www.w3.org/2000/svg",xhtml:r,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"}},function(t,e,n){"use strict";var r=n(99);e.a=function(){for(var t,e=r.b;t=e.sourceEvent;)e=t;return e}},function(t,e,n){"use strict";function r(t,e,n){return t=a(t,e,n),function(e){var n=e.relatedTarget;n&&(n===this||8&n.compareDocumentPosition(this))||t.call(this,e)}}function a(t,e,n){return function(r){var a=u;u=r;try{t.call(this,this.__data__,e,n)}finally{u=a}}}function o(t){return t.trim().split(/^|\s+/).map(function(t){var e="",n=t.indexOf(".");return n>=0&&(e=t.slice(n+1),t=t.slice(0,n)),{type:t,name:e}})}function i(t){return function(){var e=this.__on;if(e){for(var n,r=0,a=-1,o=e.length;r<o;++r)n=e[r],t.type&&n.type!==t.type||n.name!==t.name?e[++a]=n:this.removeEventListener(n.type,n.listener,n.capture);++a?e.length=a:delete this.__on}}}function c(t,e,n){var o=s.hasOwnProperty(t.type)?r:a;return function(r,a,i){var c,s=this.__on,u=o(e,a,i);if(s)for(var l=0,f=s.length;l<f;++l)if((c=s[l]).type===t.type&&c.name===t.name)return this.removeEventListener(c.type,c.listener,c.capture),this.addEventListener(c.type,c.listener=u,c.capture=n),void(c.value=e);this.addEventListener(t.type,u,n),c={type:t.type,name:t.name,value:e,listener:u,capture:n},s?s.push(c):this.__on=[c]}}n.d(e,"b",function(){return u});var s={},u=null;if("undefined"!=typeof document){"onmouseenter"in document.documentElement||(s={mouseenter:"mouseover",mouseleave:"mouseout"})}e.a=function(t,e,n){var r,a,s=o(t+""),u=s.length;{if(!(arguments.length<2)){for(l=e?c:i,null==n&&(n=!1),r=0;r<u;++r)this.each(l(s[r],e,n));return this}var l=this.node().__on;if(l)for(var f,h=0,p=l.length;h<p;++h)for(r=0,f=l[h];r<u;++r)if((a=s[r]).type===f.type&&a.name===f.name)return f.value}}},function(t,e,n){"use strict";function r(){}e.a=function(t){return null==t?r:function(){return this.querySelector(t)}}},function(t,e,n){"use strict";e.a=function(t){return t.ownerDocument&&t.ownerDocument.defaultView||t.document&&t||t.defaultView}},function(t,e,n){"use strict";var r=n(40),a=n(43),o=n(73),i=n(103);e.a=function(){function t(t){var a,o,i,f=t.length,h=!1;for(null==s&&(l=u(i=Object(r.a)())),a=0;a<=f;++a)!(a<f&&c(o=t[a],a,t))===h&&((h=!h)?l.lineStart():l.lineEnd()),h&&l.point(+e(o,a,t),+n(o,a,t));if(i)return l=null,i+""||null}var e=i.a,n=i.b,c=Object(a.a)(!0),s=null,u=o.a,l=null;return t.x=function(n){return arguments.length?(e="function"==typeof n?n:Object(a.a)(+n),t):e},t.y=function(e){return arguments.length?(n="function"==typeof e?e:Object(a.a)(+e),t):n},t.defined=function(e){return arguments.length?(c="function"==typeof e?e:Object(a.a)(!!e),t):c},t.curve=function(e){return arguments.length?(u=e,null!=s&&(l=u(s)),t):u},t.context=function(e){return arguments.length?(null==e?s=l=null:l=u(s=e),t):s},t}},function(t,e,n){"use strict";function r(t){return t[0]}function a(t){return t[1]}e.a=r,e.b=a},function(t,e,n){"use strict";function r(t,e,n){var r=t._x1,a=t._y1,i=t._x2,c=t._y2;if(t._l01_a>o.f){var s=2*t._l01_2a+3*t._l01_a*t._l12_a+t._l12_2a,u=3*t._l01_a*(t._l01_a+t._l12_a);r=(r*s-t._x0*t._l12_2a+t._x2*t._l01_2a)/u,a=(a*s-t._y0*t._l12_2a+t._y2*t._l01_2a)/u}if(t._l23_a>o.f){var l=2*t._l23_2a+3*t._l23_a*t._l12_a+t._l12_2a,f=3*t._l23_a*(t._l23_a+t._l12_a);i=(i*l+t._x1*t._l23_2a-e*t._l12_2a)/f,c=(c*l+t._y1*t._l23_2a-n*t._l12_2a)/f}t._context.bezierCurveTo(r,a,i,c,t._x2,t._y2)}function a(t,e){this._context=t,this._alpha=e}e.b=r;var o=n(60),i=n(76);a.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._x2,this._y2)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){if(t=+t,e=+e,this._point){var n=this._x2-t,a=this._y2-e;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+a*a,this._alpha))}switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;break;case 2:this._point=3;default:r(this,t,e)}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=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}},e.a=function t(e){function n(t){return e?new a(t,e):new i.a(t,0)}return n.alpha=function(e){return t(+e)},n}(.5)},function(t,e,n){"use strict";function r(t){for(var e,n=0,r=-1,a=t.length;++r<a;)(e=+t[r][1])&&(n+=e);return n}e.b=r;var a=n(62);e.a=function(t){var e=t.map(r);return Object(a.a)(t).sort(function(t,n){return e[t]-e[n]})}},function(t,e,n){"use strict";function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function a(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function o(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}function i(t,e,n){n.beginPath();var r=Object(d.k)(t),a=b(r,2),o=a[0],i=a[1];n.moveTo(o,i);var c=void 0;for(c=0;c<e.length;c++){var s=b(e[c],2),u=s[0],l=s[1];n.lineTo(u,l)}for(c=t.length-1;c>=0;c--){var f=b(t[c],2),h=f[0],p=f[1];n.lineTo(h,p)}n.closePath(),n.fill()}var c=n(0),s=n.n(c),u=n(1),l=n.n(u),f=n(65),h=n(10),p=n(13),d=n(2),b=function(){function t(t,e){var n=[],r=!0,a=!1,o=void 0;try{for(var i,c=t[Symbol.iterator]();!(r=(i=c.next()).done)&&(n.push(i.value),!e||n.length!==e);r=!0);}catch(t){a=!0,o=t}finally{try{!r&&c.return&&c.return()}finally{if(a)throw o}}return n}return function(e,n){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return t(e,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),y=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),v=function(t){function e(t){r(this,e);var n=a(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return n.renderSVG=n.renderSVG.bind(n),n.drawOnCanvas=n.drawOnCanvas.bind(n),n}return o(e,t),y(e,[{key:"drawOnCanvas",value:function(t,e){var n=this.props,r=n.yAccessor,a=n.defined,o=n.base,c=this.props,s=c.fill,u=c.stroke,l=c.opacity,f=e.xScale,h=e.chartConfig.yScale,p=e.plotData,b=e.xAccessor,y=Object(d.l)(o);t.fillStyle=Object(d.t)(s,l),t.strokeStyle=u;for(var v=[],g=[],m=0;m<p.length;m++){var O=p[m];if(a(r(O),m)){var w=[f(b(O)),h(r(O)),y(h,O)],x=w[0],k=w[1],_=w[2];v.push([x,_]),g.push([x,k])}else v.length&&(i(v,g,t),v=[],g=[])}v.length&&i(v,g,t)}},{key:"renderSVG",value:function(t){var e=this.props,n=e.yAccessor,r=e.defined,a=e.base,o=this.props,i=o.stroke,c=o.fill,u=o.className,l=o.opacity,h=t.xScale,p=t.chartConfig.yScale,b=t.plotData,y=t.xAccessor,v=Object(d.l)(a),g=Object(f.a)().defined(function(t){return r(n(t))}).x(function(t){return h(y(t))}).y0(v.bind(null,p)).y1(function(t){return p(n(t))}),m=g(b),O=u.concat(Object(d.v)(i)?"":" line-stroke");return s.a.createElement("path",{d:m,stroke:i,fill:c,className:O,opacity:l})}},{key:"render",value:function(){return s.a.createElement(h.a,{svgDraw:this.renderSVG,canvasDraw:this.drawOnCanvas,canvasToDraw:p.b,drawOn:["pan"]})}}]),e}(c.Component);v.propTypes={className:l.a.string,yAccessor:l.a.func.isRequired,stroke:l.a.string,fill:l.a.string,opacity:l.a.number,defined:l.a.func,base:l.a.oneOfType([l.a.func,l.a.number])},v.defaultProps={className:"line ",fill:"none",opacity:1,defined:function(t){return!isNaN(t)},base:function(t){return Object(d.k)(t.range())}},e.a=v},function(t,e,n){"use strict";e.a=function(){return 1e-6*(Math.random()-.5)}},function(t,e,n){"use strict";e.a=function(t,e,n,r,a){this.node=t,this.x0=e,this.y0=n,this.x1=r,this.y1=a}},function(t,e,n){"use strict";function r(){return m||(x(a),m=w.now()+O)}function a(){m=0}function o(){this._call=this._time=this._next=null}function i(t,e,n){var r=new o;return r.restart(t,e,n),r}function c(){r(),++d;for(var t,e=h;e;)(t=m-e._time)>=0&&e._call.call(null,t),e=e._next;--d}function s(){m=(g=w.now())+O,d=b=0;try{c()}finally{d=0,l(),m=0}}function u(){var t=w.now(),e=t-g;e>v&&(O-=e,g=t)}function l(){for(var t,e,n=h,r=1/0;n;)n._call?(r>n._time&&(r=n._time),t=n,n=n._next):(e=n._next,n._next=null,n=t?t._next=e:h=e);p=t,f(r)}function f(t){if(!d){b&&(b=clearTimeout(b));t-m>24?(t<1/0&&(b=setTimeout(s,t-w.now()-O)),y&&(y=clearInterval(y))):(y||(g=w.now(),y=setInterval(u,v)),d=1,x(s))}}e.b=r,e.a=o,e.c=i;var h,p,d=0,b=0,y=0,v=1e3,g=0,m=0,O=0,w="object"==typeof performance&&performance.now?performance:Date,x="object"==typeof window&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(t){setTimeout(t,17)};o.prototype=i.prototype={constructor:o,restart:function(t,e,n){if("function"!=typeof t)throw new TypeError("callback is not a function");n=(null==n?r():+n)+(null==e?0:+e),this._next||p===this||(p?p._next=this:h=this,p=this),this._call=t,this._time=n,f()},stop:function(){this._call&&(this._call=null,this._time=1/0,f())}}},function(t,e,n){"use strict";var r=n(14),a=n(25),o=n(2),i=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t};e.a=function(){function t(t){var a=e,i=a.windowSize,c=Object(o.K)().windowSize(2).source(n).undefinedValue(function(t){return t.high-t.low}).accumulator(function(t){var e=t[0],n=t[1];return Math.max(n.high-n.low,n.high-e.close,n.low-e.close)}),s=void 0;return Object(o.K)().skipInitial(1).windowSize(i).accumulator(function(t){var e=Object(o.y)(t),n=Object(o.v)(s)?(s*(i-1)+e)/i:Object(r.o)(t)/i;return s=n,n})(c(t))}var e=a.a,n=function(t){return{open:t.open,high:t.high,low:t.low,close:t.close}};return t.undefinedLength=function(){return e.windowSize-1},t.options=function(n){return arguments.length?(e=i({},a.a,n),t):e},t.source=function(e){return arguments.length?(n=e,t):n},t}},function(t,e,n){"use strict";n.d(e,"a",function(){return a}),n.d(e,"b",function(){return o});var r={light:{BollingerBand:{stroke:{top:"#964B00",middle:"#000000",bottom:"#964B00"},fill:"#4682B4"},ElderImpulse:{stroke:{up:"#6BA583",down:"#FF0000",neutral:"#0000FF"}},MACD:{fill:{divergence:"#4682B4"},stroke:{macd:"#FF0000",signal:"#00F300"}},FullStochasticOscillator:{stroke:{top:"#37a600",middle:"#b8ab00",bottom:"#37a600",dLine:"#17becf",kLine:"#ff7f0e"}}},dark:{BollingerBand:{stroke:{top:"#964B00",middle:"#FF6600",bottom:"#964B00"},fill:"#4682B4"},ElderImpulse:{stroke:{up:"#6BA583",down:"#FF0000",neutral:"#0000FF"}},MACD:{fill:{divergence:"#FF6600"},stroke:{macd:"#ea2bff",signal:"#74d400"}},FullStochasticOscillator:{stroke:{top:"#37a600",middle:"#b8ab00",bottom:"#37a600",dLine:"#ea2bff",kLine:"#74d400"}}}},a=(r.light.BollingerBand,r.light.ElderImpulse),o=r.light.MACD;r.light.FullStochasticOscillator},,,,,,,,,,,,,function(t,e,n){"use strict";function r(t){if(0<=t.y&&t.y<100){var e=new Date(-1,t.m,t.d,t.H,t.M,t.S,t.L);return e.setFullYear(t.y),e}return new Date(t.y,t.m,t.d,t.H,t.M,t.S,t.L)}function a(t){if(0<=t.y&&t.y<100){var e=new Date(Date.UTC(-1,t.m,t.d,t.H,t.M,t.S,t.L));return e.setUTCFullYear(t.y),e}return new Date(Date.UTC(t.y,t.m,t.d,t.H,t.M,t.S,t.L))}function o(t){return{y:t,m:0,d:1,H:0,M:0,S:0,L:0}}function i(t){function e(t,e){return function(n){var r,a,o,i=[],c=-1,s=0,u=t.length;for(n instanceof Date||(n=new Date(+n));++c<u;)37===t.charCodeAt(c)&&(i.push(t.slice(s,c)),null!=(a=dt[r=t.charAt(++c)])?r=t.charAt(++c):a="e"===r?" ":"0",(o=e[r])&&(r=o(n,a)),i.push(r),s=c+1);return i.push(t.slice(s,c)),i.join("")}}function n(t,e){return function(n){var r,c,s=o(1900),u=i(s,t,n+="",0);if(u!=n.length)return null;if("Q"in s)return new Date(s.Q);if("p"in s&&(s.H=s.H%12+12*s.p),"V"in s){if(s.V<1||s.V>53)return null;"w"in s||(s.w=1),"Z"in s?(r=a(o(s.y)),c=r.getUTCDay(),r=c>4||0===c?pt.p.ceil(r):Object(pt.p)(r),r=pt.l.offset(r,7*(s.V-1)),s.y=r.getUTCFullYear(),s.m=r.getUTCMonth(),s.d=r.getUTCDate()+(s.w+6)%7):(r=e(o(s.y)),c=r.getDay(),r=c>4||0===c?pt.e.ceil(r):Object(pt.e)(r),r=pt.a.offset(r,7*(s.V-1)),s.y=r.getFullYear(),s.m=r.getMonth(),s.d=r.getDate()+(s.w+6)%7)}else("W"in s||"U"in s)&&("w"in s||(s.w="u"in s?s.u%7:"W"in s?1:0),c="Z"in s?a(o(s.y)).getUTCDay():e(o(s.y)).getDay(),s.m=0,s.d="W"in s?(s.w+6)%7+7*s.W-(c+5)%7:s.w+7*s.U-(c+6)%7);return"Z"in s?(s.H+=s.Z/100|0,s.M+=s.Z%100,a(s)):e(s)}}function i(t,e,n,r){for(var a,o,i=0,c=e.length,s=n.length;i<c;){if(r>=s)return-1;if(37===(a=e.charCodeAt(i++))){if(a=e.charAt(i++),!(o=Kt[a in dt?e.charAt(i++):a])||(r=o(t,n,r))<0)return-1}else if(a!=n.charCodeAt(r++))return-1}return r}function c(t,e,n){var r=Wt.exec(e.slice(n));return r?(t.p=It[r[0].toLowerCase()],n+r[0].length):-1}function s(t,e,n){var r=Vt.exec(e.slice(n));return r?(t.w=Lt[r[0].toLowerCase()],n+r[0].length):-1}function bt(t,e,n){var r=Bt.exec(e.slice(n));return r?(t.w=Ht[r[0].toLowerCase()],n+r[0].length):-1}function yt(t,e,n){var r=Gt.exec(e.slice(n));return r?(t.m=Xt[r[0].toLowerCase()],n+r[0].length):-1}function vt(t,e,n){var r=Yt.exec(e.slice(n));return r?(t.m=Ut[r[0].toLowerCase()],n+r[0].length):-1}function gt(t,e,n){return i(t,Mt,e,n)}function mt(t,e,n){return i(t,At,e,n)}function Ot(t,e,n){return i(t,Dt,e,n)}function wt(t){return Nt[t.getDay()]}function xt(t){return Rt[t.getDay()]}function kt(t){return zt[t.getMonth()]}function _t(t){return qt[t.getMonth()]}function jt(t){return Ft[+(t.getHours()>=12)]}function St(t){return Nt[t.getUTCDay()]}function Ct(t){return Rt[t.getUTCDay()]}function Et(t){return zt[t.getUTCMonth()]}function Pt(t){return qt[t.getUTCMonth()]}function Tt(t){return Ft[+(t.getUTCHours()>=12)]}var Mt=t.dateTime,At=t.date,Dt=t.time,Ft=t.periods,Rt=t.days,Nt=t.shortDays,qt=t.months,zt=t.shortMonths,Wt=u(Ft),It=l(Ft),Bt=u(Rt),Ht=l(Rt),Vt=u(Nt),Lt=l(Nt),Yt=u(qt),Ut=l(qt),Gt=u(zt),Xt=l(zt),Zt={a:wt,A:xt,b:kt,B:_t,c:null,d:T,e:T,f:R,H:M,I:A,j:D,L:F,m:N,M:q,p:jt,Q:ft,s:ht,S:z,u:W,U:I,V:B,w:H,W:V,x:null,X:null,y:L,Y:Y,Z:U,"%":lt},Qt={a:St,A:Ct,b:Et,B:Pt,c:null,d:G,e:G,f:J,H:X,I:Z,j:Q,L:K,m:$,M:tt,p:Tt,Q:ft,s:ht,S:et,u:nt,U:rt,V:at,w:ot,W:it,x:null,X:null,y:ct,Y:st,Z:ut,"%":lt},Kt={a:s,A:bt,b:yt,B:vt,c:gt,d:O,e:O,f:S,H:x,I:x,j:w,L:j,m:m,M:k,p:c,Q:E,s:P,S:_,u:h,U:p,V:d,w:f,W:b,x:mt,X:Ot,y:v,Y:y,Z:g,"%":C};return Zt.x=e(At,Zt),Zt.X=e(Dt,Zt),Zt.c=e(Mt,Zt),Qt.x=e(At,Qt),Qt.X=e(Dt,Qt),Qt.c=e(Mt,Qt),{format:function(t){var n=e(t+="",Zt);return n.toString=function(){return t},n},parse:function(t){var e=n(t+="",r);return e.toString=function(){return t},e},utcFormat:function(t){var n=e(t+="",Qt);return n.toString=function(){return t},n},utcParse:function(t){var e=n(t,a);return e.toString=function(){return t},e}}}function c(t,e,n){var r=t<0?"-":"",a=(r?-t:t)+"",o=a.length;return r+(o<n?new Array(n-o+1).join(e)+a:a)}function s(t){return t.replace(vt,"\\$&")}function u(t){return new RegExp("^(?:"+t.map(s).join("|")+")","i")}function l(t){for(var e={},n=-1,r=t.length;++n<r;)e[t[n].toLowerCase()]=n;return e}function f(t,e,n){var r=bt.exec(e.slice(n,n+1));return r?(t.w=+r[0],n+r[0].length):-1}function h(t,e,n){var r=bt.exec(e.slice(n,n+1));return r?(t.u=+r[0],n+r[0].length):-1}function p(t,e,n){var r=bt.exec(e.slice(n,n+2));return r?(t.U=+r[0],n+r[0].length):-1}function d(t,e,n){var r=bt.exec(e.slice(n,n+2));return r?(t.V=+r[0],n+r[0].length):-1}function b(t,e,n){var r=bt.exec(e.slice(n,n+2));return r?(t.W=+r[0],n+r[0].length):-1}function y(t,e,n){var r=bt.exec(e.slice(n,n+4));return r?(t.y=+r[0],n+r[0].length):-1}function v(t,e,n){var r=bt.exec(e.slice(n,n+2));return r?(t.y=+r[0]+(+r[0]>68?1900:2e3),n+r[0].length):-1}function g(t,e,n){var r=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(e.slice(n,n+6));return r?(t.Z=r[1]?0:-(r[2]+(r[3]||"00")),n+r[0].length):-1}function m(t,e,n){var r=bt.exec(e.slice(n,n+2));return r?(t.m=r[0]-1,n+r[0].length):-1}function O(t,e,n){var r=bt.exec(e.slice(n,n+2));return r?(t.d=+r[0],n+r[0].length):-1}function w(t,e,n){var r=bt.exec(e.slice(n,n+3));return r?(t.m=0,t.d=+r[0],n+r[0].length):-1}function x(t,e,n){var r=bt.exec(e.slice(n,n+2));return r?(t.H=+r[0],n+r[0].length):-1}function k(t,e,n){var r=bt.exec(e.slice(n,n+2));return r?(t.M=+r[0],n+r[0].length):-1}function _(t,e,n){var r=bt.exec(e.slice(n,n+2));return r?(t.S=+r[0],n+r[0].length):-1}function j(t,e,n){var r=bt.exec(e.slice(n,n+3));return r?(t.L=+r[0],n+r[0].length):-1}function S(t,e,n){var r=bt.exec(e.slice(n,n+6));return r?(t.L=Math.floor(r[0]/1e3),n+r[0].length):-1}function C(t,e,n){var r=yt.exec(e.slice(n,n+1));return r?n+r[0].length:-1}function E(t,e,n){var r=bt.exec(e.slice(n));return r?(t.Q=+r[0],n+r[0].length):-1}function P(t,e,n){var r=bt.exec(e.slice(n));return r?(t.Q=1e3*+r[0],n+r[0].length):-1}function T(t,e){return c(t.getDate(),e,2)}function M(t,e){return c(t.getHours(),e,2)}function A(t,e){return c(t.getHours()%12||12,e,2)}function D(t,e){return c(1+pt.a.count(Object(pt.k)(t),t),e,3)}function F(t,e){return c(t.getMilliseconds(),e,3)}function R(t,e){return F(t,e)+"000"}function N(t,e){return c(t.getMonth()+1,e,2)}function q(t,e){return c(t.getMinutes(),e,2)}function z(t,e){return c(t.getSeconds(),e,2)}function W(t){var e=t.getDay();return 0===e?7:e}function I(t,e){return c(pt.h.count(Object(pt.k)(t),t),e,2)}function B(t,e){var n=t.getDay();return t=n>=4||0===n?Object(pt.i)(t):pt.i.ceil(t),c(pt.i.count(Object(pt.k)(t),t)+(4===Object(pt.k)(t).getDay()),e,2)}function H(t){return t.getDay()}function V(t,e){return c(pt.e.count(Object(pt.k)(t),t),e,2)}function L(t,e){return c(t.getFullYear()%100,e,2)}function Y(t,e){return c(t.getFullYear()%1e4,e,4)}function U(t){var e=t.getTimezoneOffset();return(e>0?"-":(e*=-1,"+"))+c(e/60|0,"0",2)+c(e%60,"0",2)}function G(t,e){return c(t.getUTCDate(),e,2)}function X(t,e){return c(t.getUTCHours(),e,2)}function Z(t,e){return c(t.getUTCHours()%12||12,e,2)}function Q(t,e){return c(1+pt.l.count(Object(pt.v)(t),t),e,3)}function K(t,e){return c(t.getUTCMilliseconds(),e,3)}function J(t,e){return K(t,e)+"000"}function $(t,e){return c(t.getUTCMonth()+1,e,2)}function tt(t,e){return c(t.getUTCMinutes(),e,2)}function et(t,e){return c(t.getUTCSeconds(),e,2)}function nt(t){var e=t.getUTCDay();return 0===e?7:e}function rt(t,e){return c(pt.s.count(Object(pt.v)(t),t),e,2)}function at(t,e){var n=t.getUTCDay();return t=n>=4||0===n?Object(pt.t)(t):pt.t.ceil(t),c(pt.t.count(Object(pt.v)(t),t)+(4===Object(pt.v)(t).getUTCDay()),e,2)}function ot(t){return t.getUTCDay()}function it(t,e){return c(pt.p.count(Object(pt.v)(t),t),e,2)}function ct(t,e){return c(t.getUTCFullYear()%100,e,2)}function st(t,e){return c(t.getUTCFullYear()%1e4,e,4)}function ut(){return"+0000"}function lt(){return"%"}function ft(t){return+t}function ht(t){return Math.floor(+t/1e3)}e.a=i;var pt=n(79),dt={"-":"",_:" ",0:"0"},bt=/^\s*\d+/,yt=/^%/,vt=/[\\^$*+?|[\]().{}]/g},function(t,e,n){"use strict";function r(t){return t.toISOString()}n.d(e,"a",function(){return o});var a=n(85),o="%Y-%m-%dT%H:%M:%S.%LZ";Date.prototype.toISOString||Object(a.d)(o)},function(t,e,n){"use strict";var r=n(69),a=n(238),o=n(239),i=n(127),c=n(128),s=n(129),u=n(242),l=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];e.a=function(t){function e(t){function e(t){var e,o,i,c=O,h=w;if("c"===m)h=x(t)+h,t="";else{t=+t;var b=t<0;if(t=x(Math.abs(t),g),b&&0==+t&&(b=!1),c=(b?"("===a?a:"-":"-"===a||"("===a?"":a)+c,h=h+("s"===m?l[8+s.b/3]:"")+(b&&"("===a?")":""),k)for(e=-1,o=t.length;++e<o;)if(48>(i=t.charCodeAt(e))||i>57){h=(46===i?p+t.slice(e+1):t.slice(e))+h,t=t.slice(0,e);break}}v&&!u&&(t=f(t,1/0));var _=c.length+t.length+h.length,j=_<y?new Array(y-_+1).join(n):"";switch(v&&u&&(t=f(j+t,j.length?y-h.length:1/0),j=""),r){case"<":t=c+t+h+j;break;case"=":t=c+j+t+h;break;case"^":t=j.slice(0,_=j.length>>1)+c+t+h+j.slice(_);break;default:t=j+c+t+h}return d(t)}t=Object(i.a)(t);var n=t.fill,r=t.align,a=t.sign,o=t.symbol,u=t.zero,y=t.width,v=t.comma,g=t.precision,m=t.type,O="$"===o?h[0]:"#"===o&&/[boxX]/.test(m)?"0"+m.toLowerCase():"",w="$"===o?h[1]:/[%p]/.test(m)?b:"",x=c.a[m],k=!m||/[defgprs%]/.test(m);return g=null==g?m?6:12:/[gprs]/.test(m)?Math.max(1,Math.min(21,g)):Math.max(0,Math.min(20,g)),e.toString=function(){return t+""},e}function n(t,n){var a=e((t=Object(i.a)(t),t.type="f",t)),o=3*Math.max(-8,Math.min(8,Math.floor(Object(r.a)(n)/3))),c=Math.pow(10,-o),s=l[8+o/3];return function(t){return a(c*t)+s}}var f=t.grouping&&t.thousands?Object(a.a)(t.grouping,t.thousands):u.a,h=t.currency,p=t.decimal,d=t.numerals?Object(o.a)(t.numerals):u.a,b=t.percent||"%";return{format:e,formatPrefix:n}}},function(t,e,n){"use strict";function r(t){return new a(t)}function a(t){if(!(e=i.exec(t)))throw new Error("invalid format: "+t);var e,n=e[1]||" ",r=e[2]||">",a=e[3]||"-",c=e[4]||"",s=!!e[5],u=e[6]&&+e[6],l=!!e[7],f=e[8]&&+e[8].slice(1),h=e[9]||"";"n"===h?(l=!0,h="g"):o.a[h]||(h=""),(s||"0"===n&&"="===r)&&(s=!0,n="0",r="="),this.fill=n,this.align=r,this.sign=a,this.symbol=c,this.zero=s,this.width=u,this.comma=l,this.precision=f,this.type=h}e.a=r;var o=n(128),i=/^(?:(.)?([<>=^]))?([+\-\( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?([a-z%])?$/i;r.prototype=a.prototype,a.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}},function(t,e,n){"use strict";var r=n(240),a=n(129),o=n(241);e.a={"":r.a,"%":function(t,e){return(100*t).toFixed(e)},b:function(t){return Math.round(t).toString(2)},c:function(t){return t+""},d:function(t){return Math.round(t).toString(10)},e:function(t,e){return t.toExponential(e)},f:function(t,e){return t.toFixed(e)},g:function(t,e){return t.toPrecision(e)},o:function(t){return Math.round(t).toString(8)},p:function(t,e){return Object(o.a)(100*t,e)},r:o.a,s:a.a,X:function(t){return Math.round(t).toString(16).toUpperCase()},x:function(t){return Math.round(t).toString(16)}}},function(t,e,n){"use strict";n.d(e,"b",function(){return r});var r,a=n(86);e.a=function(t,e){var n=Object(a.a)(t,e);if(!n)return t+"";var o=n[0],i=n[1],c=i-(r=3*Math.max(-8,Math.min(8,Math.floor(i/3))))+1,s=o.length;return c===s?o:c>s?o+new Array(c-s+1).join("0"):c>0?o.slice(0,c)+"."+o.slice(c):"0."+new Array(1-c).join("0")+Object(a.a)(t,Math.max(0,e+c-1))[0]}},function(t,e,n){"use strict";var r=n(48),a=n(131),o=Object(a.a)(r.a),i=o.right;o.left;e.a=i},function(t,e,n){"use strict";function r(t){return function(e,n){return Object(a.a)(t(e),n)}}var a=n(48);e.a=function(t){return 1===t.length&&(t=r(t)),{left:function(e,n,r,a){for(null==r&&(r=0),null==a&&(a=e.length);r<a;){var o=r+a>>>1;t(e[o],n)<0?r=o+1:a=o}return r},right:function(e,n,r,a){for(null==r&&(r=0),null==a&&(a=e.length);r<a;){var o=r+a>>>1;t(e[o],n)>0?a=o:r=o+1}return r}}}},function(t,e,n){"use strict";function r(t,e){return[t,e]}e.b=r,e.a=function(t,e){null==e&&(e=r);for(var n=0,a=t.length-1,o=t[0],i=new Array(a<0?0:a);n<a;)i[n]=e(o,o=t[++n]);return i}},function(t,e,n){"use strict";var r=n(134);e.a=function(t,e){var n=Object(r.a)(t,e);return n?Math.sqrt(n):n}},function(t,e,n){"use strict";var r=n(56);e.a=function(t,e){var n,a,o=t.length,i=0,c=-1,s=0,u=0;if(null==e)for(;++c<o;)isNaN(n=Object(r.a)(t[c]))||(a=n-s,s+=a/++i,u+=a*(n-s));else for(;++c<o;)isNaN(n=Object(r.a)(e(t[c],c,t)))||(a=n-s,s+=a/++i,u+=a*(n-s));if(i>1)return u/(i-1)}},function(t,e,n){"use strict";e.a=function(t,e){var n,r,a,o=t.length,i=-1;if(null==e){for(;++i<o;)if(null!=(n=t[i])&&n>=n)for(r=a=n;++i<o;)null!=(n=t[i])&&(r>n&&(r=n),a<n&&(a=n))}else for(;++i<o;)if(null!=(n=e(t[i],i,t))&&n>=n)for(r=a=n;++i<o;)null!=(n=e(t[i],i,t))&&(r>n&&(r=n),a<n&&(a=n));return[r,a]}},function(t,e,n){"use strict";n.d(e,"b",function(){return a}),n.d(e,"a",function(){return o});var r=Array.prototype,a=r.slice,o=r.map},function(t,e,n){"use strict";e.a=function(t,e,n){t=+t,e=+e,n=(a=arguments.length)<2?(e=t,t=0,1):a<3?1:+n;for(var r=-1,a=0|Math.max(0,Math.ceil((e-t)/n)),o=new Array(a);++r<a;)o[r]=t+r*n;return o}},function(t,e,n){"use strict";function r(t,e,n){var r=(e-t)/Math.max(0,n),a=Math.floor(Math.log(r)/Math.LN10),s=r/Math.pow(10,a);return a>=0?(s>=o?10:s>=i?5:s>=c?2:1)*Math.pow(10,a):-Math.pow(10,-a)/(s>=o?10:s>=i?5:s>=c?2:1)}function a(t,e,n){var r=Math.abs(e-t)/Math.max(0,n),a=Math.pow(10,Math.floor(Math.log(r)/Math.LN10)),s=r/a;return s>=o?a*=10:s>=i?a*=5:s>=c&&(a*=2),e<t?-a:a}e.b=r,e.c=a;var o=Math.sqrt(50),i=Math.sqrt(10),c=Math.sqrt(2);e.a=function(t,e,n){var a,o,i,c,s=-1;if(e=+e,t=+t,n=+n,t===e&&n>0)return[t];if((a=e<t)&&(o=t,t=e,e=o),0===(c=r(t,e,n))||!isFinite(c))return[];if(c>0)for(t=Math.ceil(t/c),e=Math.floor(e/c),i=new Array(o=Math.ceil(e-t+1));++s<o;)i[s]=(t+s)*c;else for(t=Math.floor(t*c),e=Math.ceil(e*c),i=new Array(o=Math.ceil(t-e+1));++s<o;)i[s]=(t-s)/c;return a&&i.reverse(),i}},function(t,e,n){"use strict";e.a=function(t){return Math.ceil(Math.log(t.length)/Math.LN2)+1}},function(t,e,n){"use strict";e.a=function(t,e){var n,r,a=t.length,o=-1;if(null==e){for(;++o<a;)if(null!=(n=t[o])&&n>=n)for(r=n;++o<a;)null!=(n=t[o])&&r>n&&(r=n)}else for(;++o<a;)if(null!=(n=e(t[o],o,t))&&n>=n)for(r=n;++o<a;)null!=(n=e(t[o],o,t))&&r>n&&(r=n);return r}},function(t,e,n){"use strict";function r(t){return t.length}var a=n(140);e.a=function(t){if(!(i=t.length))return[];for(var e=-1,n=Object(a.a)(t,r),o=new Array(n);++e<n;)for(var i,c=-1,s=o[e]=new Array(i);++c<i;)s[c]=t[c][e];return o}},function(t,e,n){"use strict";function r(t){function e(e){var r=e+"",a=n.get(r);if(!a){if(s!==i)return s;n.set(r,a=c.push(e))}return t[(a-1)%t.length]}var n=Object(a.a)(),c=[],s=i;return t=null==t?[]:o.b.call(t),e.domain=function(t){if(!arguments.length)return c.slice();c=[],n=Object(a.a)();for(var r,o,i=-1,s=t.length;++i<s;)n.has(o=(r=t[i])+"")||n.set(o,c.push(r));return e},e.range=function(n){return arguments.length?(t=o.b.call(n),e):t.slice()},e.unknown=function(t){return arguments.length?(s=t,e):s},e.copy=function(){return r().domain(c).range(t).unknown(s)},e}e.a=r;var a=n(31),o=n(42),i={name:"implicit"}},function(t,e,n){"use strict";n.d(e,"a",function(){return r}),n.d(e,"b",function(){return a});var r=Math.PI/180,a=180/Math.PI},function(t,e,n){"use strict";function r(t){return function(e){var n,r,o=e.length,i=new Array(o),c=new Array(o),s=new Array(o);for(n=0;n<o;++n)r=Object(a.f)(e[n]),i[n]=r.r||0,c[n]=r.g||0,s[n]=r.b||0;return i=t(i),c=t(c),s=t(s),r.opacity=1,function(t){return r.r=i(t),r.g=c(t),r.b=s(t),r+""}}}var a=n(37),o=n(92),i=n(145),c=n(58);e.a=function t(e){function n(t,e){var n=r((t=Object(a.f)(t)).r,(e=Object(a.f)(e)).r),o=r(t.g,e.g),i=r(t.b,e.b),s=Object(c.a)(t.opacity,e.opacity);return function(e){return t.r=n(e),t.g=o(e),t.b=i(e),t.opacity=s(e),t+""}}var r=Object(c.b)(e);return n.gamma=t,n}(1);r(o.b),r(i.a)},function(t,e,n){"use strict";var r=n(92);e.a=function(t){var e=t.length;return function(n){var a=Math.floor(((n%=1)<0?++n:n)*e),o=t[(a+e-1)%e],i=t[a%e],c=t[(a+1)%e],s=t[(a+2)%e];return Object(r.a)((n-a/e)*e,o,i,c,s)}}},function(t,e,n){"use strict";e.a=function(t){return function(){return t}}},function(t,e,n){"use strict";var r=n(89);e.a=function(t,e){var n,a=e?e.length:0,o=t?Math.min(a,t.length):0,i=new Array(o),c=new Array(a);for(n=0;n<o;++n)i[n]=Object(r.a)(t[n],e[n]);for(;n<a;++n)c[n]=e[n];return function(t){for(n=0;n<o;++n)c[n]=i[n](t);return c}}},function(t,e,n){"use strict";e.a=function(t,e){var n=new Date;return t=+t,e-=t,function(r){return n.setTime(t+e*r),n}}},function(t,e,n){"use strict";var r=n(89);e.a=function(t,e){var n,a={},o={};null!==t&&"object"==typeof t||(t={}),null!==e&&"object"==typeof e||(e={});for(n in e)n in t?a[n]=Object(r.a)(t[n],e[n]):o[n]=e[n];return function(t){for(n in a)o[n]=a[n](t);return o}}},function(t,e,n){"use strict";function r(t){return function(){return t}}function a(t){return function(e){return t(e)+""}}var o=n(70),i=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,c=new RegExp(i.source,"g");e.a=function(t,e){var n,s,u,l=i.lastIndex=c.lastIndex=0,f=-1,h=[],p=[];for(t+="",e+="";(n=i.exec(t))&&(s=c.exec(e));)(u=s.index)>l&&(u=e.slice(l,u),h[f]?h[f]+=u:h[++f]=u),(n=n[0])===(s=s[0])?h[f]?h[f]+=s:h[++f]=s:(h[++f]=null,p.push({i:f,x:Object(o.a)(n,s)})),l=c.lastIndex;return l<e.length&&(u=e.slice(l),h[f]?h[f]+=u:h[++f]=u),h.length<2?p[0]?a(p[0].x):r(e):(e=p.length,function(t){for(var n,r=0;r<e;++r)h[(n=p[r]).i]=n.x(t);return h.join("")})}},function(t,e,n){"use strict";e.a=function(t){return+t}},function(t,e,n){"use strict";e.a=function(t,e){t=t.slice();var n,r=0,a=t.length-1,o=t[r],i=t[a];return i<o&&(n=r,r=a,a=n,n=o,o=i,i=n),t[r]=e.floor(o),t[a]=e.ceil(i),t}},function(t,e,n){"use strict";function r(t){return new Date(t)}function a(t){return t instanceof Date?+t:+new Date(+t)}function o(t,e,n,s,u,O,w,x,k){function _(r){return(w(r)<r?P:O(r)<r?T:u(r)<r?M:s(r)<r?A:e(r)<r?n(r)<r?D:F:t(r)<r?R:N)(r)}function j(e,n,r,a){if(null==e&&(e=10),"number"==typeof e){var o=Math.abs(r-n)/e,c=Object(i.c)(function(t){return t[2]}).right(q,o);c===q.length?(a=Object(i.q)(n/m,r/m,e),e=t):c?(c=q[o/q[c-1][2]<q[c][2]/o?c-1:c],a=c[1],e=c[0]):(a=Math.max(Object(i.q)(n,r,e),1),e=x)}return null==a?e:e.every(a)}var S=Object(f.b)(f.c,c.c),C=S.invert,E=S.domain,P=k(".%L"),T=k(":%S"),M=k("%I:%M"),A=k("%I %p"),D=k("%a %d"),F=k("%b %d"),R=k("%B"),N=k("%Y"),q=[[w,1,p],[w,5,5*p],[w,15,15*p],[w,30,30*p],[O,1,d],[O,5,5*d],[O,15,15*d],[O,30,30*d],[u,1,b],[u,3,3*b],[u,6,6*b],[u,12,12*b],[s,1,y],[s,2,2*y],[n,1,v],[e,1,g],[e,3,3*g],[t,1,m]];return S.invert=function(t){return new Date(C(t))},S.domain=function(t){return arguments.length?E(l.a.call(t,a)):E().map(r)},S.ticks=function(t,e){var n,r=E(),a=r[0],o=r[r.length-1],i=o<a;return i&&(n=a,a=o,o=n),n=j(t,a,o,e),n=n?n.range(a,o+1):[],i?n.reverse():n},S.tickFormat=function(t,e){return null==e?_:k(e)},S.nice=function(t,e){var n=E();return(t=j(t,n[0],n[n.length-1],e))?E(Object(h.a)(n,t)):S},S.copy=function(){return Object(f.a)(S,o(t,e,n,s,u,O,w,x,k))},S}e.a=o;var i=n(14),c=n(49),s=n(79),u=n(21),l=n(42),f=n(71),h=n(152),p=1e3,d=60*p,b=60*d,y=24*b,v=7*y,g=30*y,m=365*y;e.b=function(){return o(s.k,s.f,s.j,s.a,s.b,s.d,s.g,s.c,u.a).domain([new Date(2e3,0,1),new Date(2e3,0,2)])}},function(t,e,n){"use strict";function r(){function t(){var t=arguments.length;if(!t)return[];var r=Object(a.k)(arguments,e),o=void 0,i=new Array(r);for(o=-1;++o<r;){for(var c=-1,s=i[o]=new Array(t);++c<t;)s[c]=arguments[c][o];i[o]=n.apply(this,i[o])}return i}function e(t){return t.length}var n=o.a;return t.combine=function(e){return arguments.length?(n=e,t):n},t}e.a=r;var a=n(14),o=n(51)},function(t,e,n){"use strict";function r(t){return"[object Date]"===Object.prototype.toString.call(t)}function a(t,e){return r(t)&&r(e)?t.getTime()===e.getTime():t===e}function o(t,e){if(!t&&!e)return!0;if(!t&&e||t&&!e)return!1;var n=0,r=0,o=void 0;for(o in e)if(r++,e.hasOwnProperty(o)&&!t.hasOwnProperty(o)||!a(t[o],e[o]))return!1;for(o in t)n++;return n===r}e.a=o},function(t,e,n){"use strict";function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function a(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function o(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var i=n(0),c=n.n(i),s=n(1),u=n.n(s),l=n(35),f=n(94),h=n(2),p=function(){function t(t,e){var n=[],r=!0,a=!1,o=void 0;try{for(var i,c=t[Symbol.iterator]();!(r=(i=c.next()).done)&&(n.push(i.value),!e||n.length!==e);r=!0);}catch(t){a=!0,o=t}finally{try{!r&&c.return&&c.return()}finally{if(a)throw o}}return n}return function(e,n){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return t(e,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),d=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),b=function(t){function e(t,n){r(this,e);var o=a(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t,n));return o.yScale=o.yScale.bind(o),o.listener=o.listener.bind(o),o}return o(e,t),d(e,[{key:"componentWillMount",value:function(){var t=this.props.id;(0,this.context.subscribe)("chart_"+t,{listener:this.listener})}},{key:"componentWillUnmount",value:function(){var t=this.props.id;(0,this.context.unsubscribe)("chart_"+t)}},{key:"listener",value:function(t,e,n,r){var a=this.props,o=a.id,i=a.onContextMenu;if("contextmenu"===t){e.currentCharts.indexOf(o)>-1&&i(e,r)}}},{key:"yScale",value:function(){var t=this;return Object(h.j)(this.context.chartConfig,function(e){return e.id===t.props.id}).yScale.copy()}},{key:"getChildContext",value:function(){var t=this.props.id,e=Object(h.j)(this.context.chartConfig,function(e){return e.id===t});return{chartId:t,chartConfig:e}}},{key:"render",value:function(){var t=this,e=Object(h.j)(this.context.chartConfig,function(e){return e.id===t.props.id}),n=e.origin,r=p(n,2),a=r[0],o=r[1];return c.a.createElement("g",{transform:"translate("+a+", "+o+")"},this.props.children)}}]),e}(f.a);b.propTypes={height:u.a.number,origin:u.a.oneOfType([u.a.array,u.a.func]),id:u.a.oneOfType([u.a.number,u.a.string]).isRequired,yExtents:u.a.oneOfType([u.a.array,u.a.func]),yExtentsCalculator:function(t,e,n){if(Object(h.w)(t.yExtents)&&"function"!=typeof t.yExtentsCalculator)return new Error("yExtents or yExtentsCalculator must be present on "+n+". Validation failed.")},onContextMenu:u.a.func,yScale:u.a.func,flipYScale:u.a.bool,padding:u.a.oneOfType([u.a.number,u.a.shape({top:u.a.number,bottom:u.a.number})]),children:u.a.node},b.defaultProps={id:0,origin:[0,0],padding:0,yScale:Object(l.a)(),flipYScale:!1,yPan:!0,yPanEnabled:!1,onContextMenu:h.D},b.contextTypes={chartConfig:u.a.array,subscribe:u.a.func.isRequired,unsubscribe:u.a.func.isRequired},b.childContextTypes={chartConfig:u.a.object.isRequired,chartId:u.a.oneOfType([u.a.number,u.a.string]).isRequired},e.a=b},function(t,e,n){"use strict";var r=(n(95),n(306),n(158),n(307));n.d(e,"b",function(){return r.a});var a=(n(96),n(97),n(72),n(308));n.d(e,"c",function(){return a.a});var o=(n(336),n(33),n(100),n(159),n(162),n(337),n(338));n.d(e,"d",function(){return o.a});var i=(n(101),n(99));n.d(e,"a",function(){return i.b})},function(t,e,n){"use strict";var r=function(t){return function(){return this.matches(t)}};if("undefined"!=typeof document){var a=document.documentElement;if(!a.matches){var o=a.webkitMatchesSelector||a.msMatchesSelector||a.mozMatchesSelector||a.oMatchesSelector;r=function(t){return function(){return o.call(this,t)}}}}e.a=r},function(t,e,n){"use strict";function r(){return[]}e.a=function(t){return null==t?r:function(){return this.querySelectorAll(t)}}},function(t,e,n){"use strict";function r(t,e){this.ownerDocument=t.ownerDocument,this.namespaceURI=t.namespaceURI,this._next=null,this._parent=t,this.__data__=e}e.a=r;var a=n(161),o=n(33);e.b=function(){return new o.a(this._enter||this._groups.map(a.a),this._parents)},r.prototype={constructor:r,appendChild:function(t){return this._parent.insertBefore(t,this._next)},insertBefore:function(t,e){return this._parent.insertBefore(t,e)},querySelector:function(t){return this._parent.querySelector(t)},querySelectorAll:function(t){return this._parent.querySelectorAll(t)}}},function(t,e,n){"use strict";e.a=function(t){return new Array(t.length)}},function(t,e,n){"use strict";function r(t){return function(){this.style.removeProperty(t)}}function a(t,e,n){return function(){this.style.setProperty(t,e,n)}}function o(t,e,n){return function(){var r=e.apply(this,arguments);null==r?this.style.removeProperty(t):this.style.setProperty(t,r,n)}}function i(t,e){return t.style.getPropertyValue(e)||Object(c.a)(t).getComputedStyle(t,null).getPropertyValue(e)}var c=n(101);e.a=function(t,e,n){return arguments.length>1?this.each((null==e?r:"function"==typeof e?o:a)(t,e,null==n?"":n)):i(this.node(),t)}},function(t,e,n){"use strict";var r=n(40),a=n(43),o=n(73),i=n(102),c=n(103);e.a=function(){function t(t){var e,a,o,i,c,b=t.length,y=!1,v=new Array(b),g=new Array(b);for(null==h&&(d=p(c=Object(r.a)())),e=0;e<=b;++e){if(!(e<b&&f(i=t[e],e,t))===y)if(y=!y)a=e,d.areaStart(),d.lineStart();else{for(d.lineEnd(),d.lineStart(),o=e-1;o>=a;--o)d.point(v[o],g[o]);d.lineEnd(),d.areaEnd()}y&&(v[e]=+n(i,e,t),g[e]=+u(i,e,t),d.point(s?+s(i,e,t):v[e],l?+l(i,e,t):g[e]))}if(c)return d=null,c+""||null}function e(){return Object(i.a)().defined(f).curve(p).context(h)}var n=c.a,s=null,u=Object(a.a)(0),l=c.b,f=Object(a.a)(!0),h=null,p=o.a,d=null;return t.x=function(e){return arguments.length?(n="function"==typeof e?e:Object(a.a)(+e),s=null,t):n},t.x0=function(e){return arguments.length?(n="function"==typeof e?e:Object(a.a)(+e),t):n},t.x1=function(e){return arguments.length?(s=null==e?null:"function"==typeof e?e:Object(a.a)(+e),t):s},t.y=function(e){return arguments.length?(u="function"==typeof e?e:Object(a.a)(+e),l=null,t):u},t.y0=function(e){return arguments.length?(u="function"==typeof e?e:Object(a.a)(+e),t):u},t.y1=function(e){return arguments.length?(l=null==e?null:"function"==typeof e?e:Object(a.a)(+e),t):l},t.lineX0=t.lineY0=function(){return e().x(n).y(u)},t.lineY1=function(){return e().x(n).y(l)},t.lineX1=function(){return e().x(s).y(u)},t.defined=function(e){return arguments.length?(f="function"==typeof e?e:Object(a.a)(!!e),t):f},t.curve=function(e){return arguments.length?(p=e,null!=h&&(d=p(h)),t):p},t.context=function(e){return arguments.length?(null==e?h=d=null:d=p(h=e),t):h},t}},function(t,e,n){"use strict";function r(t){this._curve=t}function a(t){function e(e){return new r(t(e))}return e._curve=t,e}n.d(e,"a",function(){return i}),e.b=a;var o=n(73),i=a(o.a);r.prototype={areaStart:function(){this._curve.areaStart()},areaEnd:function(){this._curve.areaEnd()},lineStart:function(){this._curve.lineStart()},lineEnd:function(){this._curve.lineEnd()},point:function(t,e){this._curve.point(e*Math.sin(t),e*-Math.cos(t))}}},function(t,e,n){"use strict";function r(t){var e=t.curve;return t.angle=t.x,delete t.x,t.radius=t.y,delete t.y,t.curve=function(t){return arguments.length?e(Object(a.b)(t)):e()._curve},t}e.a=r;var a=n(164);n(102)},function(t,e,n){"use strict";e.a=function(t,e){return[(e=+e)*Math.cos(t-=Math.PI/2),e*Math.sin(t)]}},function(t,e,n){"use strict";n.d(e,"a",function(){return r});var r=Array.prototype.slice},function(t,e,n){"use strict";var r=n(60);e.a={draw:function(t,e){var n=Math.sqrt(e/r.j);t.moveTo(n,0),t.arc(0,0,n,0,r.m)}}},function(t,e,n){"use strict";e.a={draw:function(t,e){var n=Math.sqrt(e/5)/2;t.moveTo(-3*n,-n),t.lineTo(-n,-n),t.lineTo(-n,-3*n),t.lineTo(n,-3*n),t.lineTo(n,-n),t.lineTo(3*n,-n),t.lineTo(3*n,n),t.lineTo(n,n),t.lineTo(n,3*n),t.lineTo(-n,3*n),t.lineTo(-n,n),t.lineTo(-3*n,n),t.closePath()}}},function(t,e,n){"use strict";var r=Math.sqrt(1/3),a=2*r;e.a={draw:function(t,e){var n=Math.sqrt(e/a),o=n*r;t.moveTo(0,-n),t.lineTo(o,0),t.lineTo(0,n),t.lineTo(-o,0),t.closePath()}}},function(t,e,n){"use strict";var r=n(60),a=Math.sin(r.j/10)/Math.sin(7*r.j/10),o=Math.sin(r.m/10)*a,i=-Math.cos(r.m/10)*a;e.a={draw:function(t,e){var n=Math.sqrt(.8908130915292852*e),a=o*n,c=i*n;t.moveTo(0,-n),t.lineTo(a,c);for(var s=1;s<5;++s){var u=r.m*s/5,l=Math.cos(u),f=Math.sin(u);t.lineTo(f*n,-l*n),t.lineTo(l*a-f*c,f*a+l*c)}t.closePath()}}},function(t,e,n){"use strict";e.a={draw:function(t,e){var n=Math.sqrt(e),r=-n/2;t.rect(r,r,n,n)}}},function(t,e,n){"use strict";var r=Math.sqrt(3);e.a={draw:function(t,e){var n=-Math.sqrt(e/(3*r));t.moveTo(0,2*n),t.lineTo(-r*n,-n),t.lineTo(r*n,-n),t.closePath()}}},function(t,e,n){"use strict";var r=-.5,a=Math.sqrt(3)/2,o=1/Math.sqrt(12),i=3*(o/2+1);e.a={draw:function(t,e){var n=Math.sqrt(e/i),c=n/2,s=n*o,u=c,l=n*o+n,f=-u,h=l;t.moveTo(c,s),t.lineTo(u,l),t.lineTo(f,h),t.lineTo(r*c-a*s,a*c+r*s),t.lineTo(r*u-a*l,a*u+r*l),t.lineTo(r*f-a*h,a*f+r*h),t.lineTo(r*c+a*s,r*s-a*c),t.lineTo(r*u+a*l,r*l-a*u),t.lineTo(r*f+a*h,r*h-a*f),t.closePath()}}},function(t,e,n){"use strict";function r(t,e){this._context=t,this._k=(1-e)/6}e.a=r;var a=n(74),o=n(76);r.prototype={areaStart:a.a,areaEnd:a.a,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(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._x3=t,this._y3=e;break;case 1:this._point=2,this._context.moveTo(this._x4=t,this._y4=e);break;case 2:this._point=3,this._x5=t,this._y5=e;break;default:Object(o.c)(this,t,e)}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};!function t(e){function n(t){return new r(t,e)}return n.tension=function(e){return t(+e)},n}(0)},function(t,e,n){"use strict";function r(t,e){this._context=t,this._k=(1-e)/6}e.a=r;var a=n(76);r.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(t,e){switch(t=+t,e=+e,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:Object(a.c)(this,t,e)}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};!function t(e){function n(t){return new r(t,e)}return n.tension=function(e){return t(+e)},n}(0)},function(t,e,n){"use strict";function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function a(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function o(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}function i(t,e){var n=t.baseAt,r=t.fill,a=t.stroke,o=t.yAccessor,i=e.xScale,c=e.xAccessor,s=e.plotData,u=e.chartConfig.yScale,l=Object(d.l)(r),f=Object(d.l)(n),h=Object(d.l)(t.width),p=h(t,{xScale:i,xAccessor:c,plotData:s}),b=Math.floor(.5*p);return s.map(function(t){var e=o(t),n=u(e),r=Math.round(i(c(t)))-b,s=f(i,u,t)-u(e);return s<0&&(n+=s,s=-s),{x:r,y:Math.round(n),height:Math.round(s),width:2*b,fill:l(t,0),stroke:a?l(t,0):"none"}})}var c=n(0),s=n.n(c),u=n(1),l=n.n(u),f=n(10),h=n(13),p=n(77),d=n(2),b=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),y=function(t){function e(t){r(this,e);var n=a(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return n.renderSVG=n.renderSVG.bind(n),n.drawOnCanvas=n.drawOnCanvas.bind(n),n}return o(e,t),b(e,[{key:"drawOnCanvas",value:function(t,e){if(this.props.swapScales){var n=e.xAccessor;Object(p.c)(t,this.props,e,n,p.e)}else{var r=i(this.props,e);Object(p.b)(this.props,t,r)}}},{key:"renderSVG",value:function(t){if(this.props.swapScales){var e=t.xAccessor;return s.a.createElement("g",null,Object(p.f)(this.props,t,e,p.e))}var n=i(this.props,t);return s.a.createElement("g",null,Object(p.d)(this.props,n))}},{key:"render",value:function(){var t=this.props.clip;return s.a.createElement(f.a,{clip:t,svgDraw:this.renderSVG,canvasToDraw:h.b,canvasDraw:this.drawOnCanvas,drawOn:["pan"]})}}]),e}(c.Component);y.propTypes={baseAt:l.a.oneOfType([l.a.number,l.a.func]),stroke:l.a.bool,width:l.a.oneOfType([l.a.number,l.a.func]),yAccessor:l.a.func.isRequired,opacity:l.a.number,fill:l.a.oneOfType([l.a.func,l.a.string]),className:l.a.oneOfType([l.a.func,l.a.string]),clip:l.a.bool,swapScales:l.a.bool},y.defaultProps=p.a.defaultProps,e.a=y},function(t,e,n){"use strict";function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function a(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function o(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}function i(t,e){var n=t.orient,r=t.innerTickSize,a=t.tickFormat,o=t.tickPadding,i=t.tickLabelFill,c=t.tickStrokeWidth,s=t.tickStrokeDasharray,u=t.fontSize,l=t.fontFamily,f=t.showTicks,h=t.flexTicks,p=t.ticks,d=t.tickValues,b=t.tickStroke,y=t.tickStrokeOpacity,v=t.tickInterval,O=void 0;if(Object(k.v)(d))O=d;else if(Object(k.v)(v)){var w=e.domain(),x=j(w,2),S=x[0],C=x[1];O=Object(m.n)(S,C,(C-S)/v)}else O=Object(k.v)(e.ticks)?e.ticks(p,h):e.domain();var E=e.tickFormat?e.tickFormat(p):k.u,P=Object(k.w)(a)?E:function(t){return a(t)||""},T="top"===n||"left"===n?-1:1,M=Math.max(r,0)+o,A=void 0,D=void 0,F=void 0,R=void 0;if("bottom"===n||"top"===n){if(D=T<0?"0em":".71em",F=T<0?0:.71*u,R="middle",A=O.map(function(t){var n=Math.round(e(t));return{value:t,x1:n,y1:0,x2:n,y2:T*r,labelX:n,labelY:T*M}}),f&&h){for(var N=A.map(function(t){return{id:t.value,value:t.value,fy:t.y2,origX:t.x1}}),q=Object(g.b)(N).force("x",Object(g.c)(function(t){return t.origX}).strength(1)).force("collide",Object(g.a)(22)).stop(),z=0;z<100;++z)q.tick();var W=Object(k.P)().combine(function(t,e){return Math.abs(e.x-e.origX)>.01?_({},t,{x2:e.x,labelX:e.x}):t});A=W(A,N)}}else A=O.map(function(t){var n=Math.round(e(t));return{value:t,x1:0,y1:n,x2:T*r,y2:n,labelX:T*M,labelY:n}}),D=".32em",F=.32*u,R=T<0?"end":"start";return{ticks:A,scale:e,tickStroke:b,tickLabelFill:i||b,tickStrokeOpacity:y,tickStrokeWidth:c,tickStrokeDasharray:s,dy:D,canvas_dy:F,textAnchor:R,fontSize:u,fontFamily:l,format:P}}function c(t,e){var n=t.orient,r=t.outerTickSize,a=t.domainClassName,o=t.fill,i=t.stroke,c=t.strokeWidth,s=t.opacity,u="top"===n||"left"===n?-1:1,l=void 0;return l="bottom"===n||"top"===n?"M"+e[0]+","+u*r+"V0H"+e[1]+"V"+u*r:"M"+u*r+","+e[0]+"H0V"+e[1]+"H"+u*r,b.a.createElement("path",{className:a,d:l,fill:o,opacity:s,stroke:i,strokeWidth:c})}function s(t,e,n){var r=e.orient,a=e.outerTickSize,o=e.stroke,i=e.strokeWidth,c=e.opacity,s="top"===r||"left"===r?-1:1,u="bottom"===r||"top"===r;t.lineWidth=i,t.strokeStyle=Object(k.t)(o,c),t.beginPath(),u?(t.moveTo(Object(k.k)(n),s*a),t.lineTo(Object(k.k)(n),0),t.lineTo(Object(k.y)(n),0),t.lineTo(Object(k.y)(n),s*a)):(t.moveTo(s*a,Object(k.k)(n)),t.lineTo(0,Object(k.k)(n)),t.lineTo(0,Object(k.y)(n)),t.lineTo(s*a,Object(k.y)(n))),t.stroke()}function u(t){var e=t.tickLabelFill,n=t.tickStroke,r=t.tickStrokeOpacity,a=t.tickStrokeDasharray,o=t.tickStrokeWidth,i=t.textAnchor,c=t.fontSize,s=t.fontFamily,u=t.x1,l=t.y1,f=t.x2,h=t.y2,p=t.labelX,d=t.labelY,y=t.dy;return b.a.createElement("g",{className:"tick"},b.a.createElement("line",{shapeRendering:"crispEdges",opacity:r,stroke:n,strokeWidth:o,strokeDasharray:Object(k.q)(a),x1:u,y1:l,x2:f,y2:h}),b.a.createElement("text",{dy:y,x:p,y:d,fill:e,fontSize:c,fontFamily:s,textAnchor:i},t.children))}function l(t,e){var n=i(t,e),r=n.tickLabelFill,a=n.tickStroke,o=n.tickStrokeOpacity,c=n.tickStrokeWidth,s=n.tickStrokeDasharray,l=n.textAnchor,f=n.fontSize,h=n.fontFamily,p=n.ticks,d=n.format,y=n.dy;return b.a.createElement("g",null,p.map(function(t,e){return b.a.createElement(u,{key:e,tickStroke:a,tickLabelFill:r,tickStrokeWidth:c,tickStrokeOpacity:o,tickStrokeDasharray:s,dy:y,x1:t.x1,y1:t.y1,x2:t.x2,y2:t.y2,labelX:t.labelX,labelY:t.labelY,textAnchor:l,fontSize:f,fontFamily:h},d(t.value))}))}function f(t,e){var n=e.tickStroke,r=e.tickStrokeOpacity,a=e.tickLabelFill,o=e.textAnchor,i=e.fontSize,c=e.fontFamily,s=e.ticks;t.strokeStyle=Object(k.t)(n,r),t.fillStyle=n,s.forEach(function(n){h(t,n,e)}),t.font=i+"px "+c,t.fillStyle=a,t.textAlign="middle"===o?"center":o,s.forEach(function(n){p(t,n,e)})}function h(t,e,n){var r=n.tickStrokeWidth,a=n.tickStrokeDasharray;t.beginPath(),t.moveTo(e.x1,e.y1),t.lineTo(e.x2,e.y2),t.lineWidth=r,t.setLineDash(Object(k.q)(a).split(",")),t.stroke()}function p(t,e,n){var r=n.canvas_dy,a=n.format;t.beginPath(),t.fillText(a(e.value),e.labelX,e.labelY+r)}var d=n(0),b=n.n(d),y=n(1),v=n.n(y),g=n(388),m=n(14),O=n(10),w=n(13),x=n(414),k=n(2),_=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},j=function(){function t(t,e){var n=[],r=!0,a=!1,o=void 0;try{for(var i,c=t[Symbol.iterator]();!(r=(i=c.next()).done)&&(n.push(i.value),!e||n.length!==e);r=!0);}catch(t){a=!0,o=t}finally{try{!r&&c.return&&c.return()}finally{if(a)throw o}}return n}return function(e,n){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return t(e,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),S=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),C=function(t){function e(t){r(this,e);var n=a(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return n.renderSVG=n.renderSVG.bind(n),n.drawOnCanvas=n.drawOnCanvas.bind(n),n.saveNode=n.saveNode.bind(n),n.getMoreProps=n.getMoreProps.bind(n),n}return o(e,t),S(e,[{key:"saveNode",value:function(t){this.node=t}},{key:"getMoreProps",value:function(){return this.node.getMoreProps()}},{key:"drawOnCanvas",value:function(t,e){var n=this.props,r=n.showDomain,a=n.showTicks,o=n.transform,c=n.range,u=n.getScale;if(t.save(),t.translate(o[0],o[1]),r&&s(t,this.props,c),a){f(t,i(this.props,u(e)))}t.restore()}},{key:"renderSVG",value:function(t){var e=this.props.className,n=this.props,r=n.showDomain,a=n.showTicks,o=n.range,i=n.getScale,s=a?l(this.props,i(t)):null,u=r?c(this.props,o):null;return b.a.createElement("g",{className:e},s,u)}},{key:"render",value:function(){var t=this.props,e=t.bg,n=t.axisZoomCallback,r=t.zoomCursorClassName,a=t.zoomEnabled,o=t.getScale,i=t.inverted,c=this.props,s=c.transform,u=c.getMouseDelta,l=c.edgeClip,f=this.props,h=f.onContextMenu,p=f.onDoubleClick,d=a?b.a.createElement(x.a,{bg:e,getScale:o,getMoreProps:this.getMoreProps,getMouseDelta:u,axisZoomCallback:n,zoomCursorClassName:r,inverted:i,onContextMenu:h,onDoubleClick:p}):null;return b.a.createElement("g",{transform:"translate("+s[0]+", "+s[1]+")"},d,b.a.createElement(O.a,{ref:this.saveNode,canvasToDraw:w.b,clip:!1,edgeClip:l,svgDraw:this.renderSVG,canvasDraw:this.drawOnCanvas,drawOn:["pan"]}))}}]),e}(d.Component);C.propTypes={innerTickSize:v.a.number,outerTickSize:v.a.number,tickFormat:v.a.func,tickPadding:v.a.number,tickSize:v.a.number,ticks:v.a.number,tickValues:v.a.array,tickInterval:v.a.number,showDomain:v.a.bool,showTicks:v.a.bool,className:v.a.string,axisZoomCallback:v.a.func,zoomEnabled:v.a.bool,inverted:v.a.bool,zoomCursorClassName:v.a.string,transform:v.a.arrayOf(v.a.number).isRequired,range:v.a.arrayOf(v.a.number).isRequired,getMouseDelta:v.a.func.isRequired,getScale:v.a.func.isRequired,bg:v.a.object.isRequired,edgeClip:v.a.bool.isRequired,onContextMenu:v.a.func,onDoubleClick:v.a.func},C.defaultProps={zoomEnabled:!1,zoomCursorClassName:"",edgeClip:!1},u.propTypes={children:v.a.string.isRequired,x1:v.a.number.isRequired,y1:v.a.number.isRequired,x2:v.a.number.isRequired,y2:v.a.number.isRequired,labelX:v.a.number.isRequired,labelY:v.a.number.isRequired,dy:v.a.string.isRequired,tickStroke:v.a.string,tickLabelFill:v.a.string,tickStrokeWidth:v.a.number,tickStrokeOpacity:v.a.number,tickStrokeDasharray:v.a.oneOf(k.L),textAnchor:v.a.string,fontSize:v.a.number,fontFamily:v.a.string},e.a=C},function(t,e,n){"use strict";var r=n(391);n.d(e,"a",function(){return r.a})},function(t,e,n){"use strict";function r(t){return t.x}function a(t){return t.y}e.b=r,e.c=a;var o=n(406),i=n(31),c=n(408),s=Math.PI*(3-Math.sqrt(5));e.a=function(t){function e(){n(),v.call("tick",u),l<f&&(y.stop(),v.call("end",u))}function n(){var e,n,r=t.length;for(l+=(p-l)*h,b.each(function(t){t(l)}),e=0;e<r;++e)n=t[e],null==n.fx?n.x+=n.vx*=d:(n.x=n.fx,n.vx=0),null==n.fy?n.y+=n.vy*=d:(n.y=n.fy,n.vy=0)}function r(){for(var e,n=0,r=t.length;n<r;++n){if(e=t[n],e.index=n,isNaN(e.x)||isNaN(e.y)){var a=10*Math.sqrt(n),o=n*s;e.x=a*Math.cos(o),e.y=a*Math.sin(o)}(isNaN(e.vx)||isNaN(e.vy))&&(e.vx=e.vy=0)}}function a(e){return e.initialize&&e.initialize(t),e}var u,l=1,f=.001,h=1-Math.pow(f,1/300),p=0,d=.6,b=Object(i.a)(),y=Object(c.a)(e),v=Object(o.a)("tick","end");return null==t&&(t=[]),r(),u={tick:n,restart:function(){return y.restart(e),u},stop:function(){return y.stop(),u},nodes:function(e){return arguments.length?(t=e,r(),b.each(a),u):t},alpha:function(t){return arguments.length?(l=+t,u):l},alphaMin:function(t){return arguments.length?(f=+t,u):f},alphaDecay:function(t){return arguments.length?(h=+t,u):+h},alphaTarget:function(t){return arguments.length?(p=+t,u):p},velocityDecay:function(t){return arguments.length?(d=1-t,u):1-d},force:function(t,e){return arguments.length>1?(null==e?b.remove(t):b.set(t,a(e)),u):b.get(t)},find:function(e,n,r){var a,o,i,c,s,u=0,l=t.length;for(null==r?r=1/0:r*=r,u=0;u<l;++u)c=t[u],a=e-c.x,o=n-c.y,(i=a*a+o*o)<r&&(s=c,r=i);return s},on:function(t,e){return arguments.length>1?(v.on(t,e),u):v.on(t)}}}},function(t,e,n){"use strict";function r(t,e){function n(t){return s(t)}var s=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Object(i.a)();if(Object(c.w)(t))throw new Error("Use the discontinuousTimeScaleProvider to create financeDiscontinuousScale");return n.invert=function(t){var e=s.invert(t);return Math.round(1e4*e)/1e4},n.domain=function(t){return arguments.length?(s.domain(t),n):s.domain()},n.range=function(t){return arguments.length?(s.range(t),n):s.range()},n.rangeRound=function(t){return s.range(t)},n.clamp=function(t){return arguments.length?(s.clamp(t),n):s.clamp()},n.interpolate=function(t){return arguments.length?(s.interpolate(t),n):s.interpolate()},n.ticks=function(e,n){var r=s.ticks(e),i=Object(a.a)(),f=s.domain(),h=u(f,2),p=h[0],d=h[1],b=Math.max(Math.ceil(p),Object(c.s)(t).index)+Math.abs(Object(c.s)(t).index),y=Math.min(Math.floor(d),Object(c.y)(t).index)+Math.abs(Object(c.s)(t).index);Math.floor(d);for(var v=Math.ceil((y-b)/(d-p)*r.length),g=l;g>=0;g--){for(var m=i.get(g),O=Object(c.w)(m)?[]:m.slice(),w=b;w<=y;w++)t[w].level===g&&O.push(t[w]);i.set(g,O)}for(var x=[],k=l;k>=0&&!(i.get(k).length+x.length>1.5*v);k--)x=x.concat(i.get(k).map(function(t){return t.index}));var _=x.sort(o.a);if(!n&&y-b>_.length){for(var j=Object(a.c)(_),S=Math.abs(Object(c.s)(t).index),C=Math.ceil(1.5*(r.length>0?(Object(c.y)(r)-Object(c.s)(r))/r.length/4:1)),E=0;E<_.length-1;E++)for(var P=E+1;P<_.length;P++)_[P]-_[E]<=C&&j.remove(t[_[E]+S].level>=t[_[P]+S].level?_[P]:_[E]);return j.values().map(function(t){return parseInt(t,10)})}return _},n.tickFormat=function(){return function(e){var n=Math.abs(Object(c.s)(t).index),r=t[e+n];return(0,r.format)(r.date)}},n.value=function(e){var n=Math.abs(Object(c.s)(t).index);if(Object(c.v)(t[e+n])){return t[e+n].date}},n.nice=function(t){return s.nice(t),n},n.copy=function(){return r(t,e,s.copy())},n}e.a=r;var a=n(31),o=n(14),i=n(35),c=n(2),s=n(182),u=function(){function t(t,e){var n=[],r=!0,a=!1,o=void 0;try{for(var i,c=t[Symbol.iterator]();!(r=(i=c.next()).done)&&(n.push(i.value),!e||n.length!==e);r=!0);}catch(t){a=!0,o=t}finally{try{!r&&c.return&&c.return()}finally{if(a)throw o}}return n}return function(e,n){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return t(e,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),l=s.b.length-1},function(t,e,n){"use strict";n.d(e,"a",function(){return r}),n.d(e,"b",function(){return a});var r={yearFormat:"%Y",quarterFormat:"%b %Y",monthFormat:"%b",weekFormat:"%d %b",dayFormat:"%a %d",hourFormat:"%_I %p",minuteFormat:"%I:%M %p",secondFormat:"%I:%M:%S %p",milliSecondFormat:"%L"},a=[function(t,e,n){return t.startOfYear&&e.getFullYear()%12==0&&"yearFormat"},function(t,e,n){return t.startOfYear&&e.getFullYear()%4==0&&"yearFormat"},function(t,e,n){return t.startOfYear&&e.getFullYear()%2==0&&"yearFormat"},function(t,e,n){return t.startOfYear&&"yearFormat"},function(t,e,n){return t.startOfQuarter&&"quarterFormat"},function(t,e,n){return t.startOfMonth&&"monthFormat"},function(t,e,n){return t.startOfWeek&&"weekFormat"},function(t,e,n){return t.startOfDay&&n%2==0&&"dayFormat"},function(t,e,n){return t.startOfDay&&"dayFormat"},function(t,e,n){return t.startOfHalfDay&&"hourFormat"},function(t,e,n){return t.startOfQuarterDay&&"hourFormat"},function(t,e,n){return t.startOfEighthOfADay&&"hourFormat"},function(t,e,n){return t.startOfHour&&e.getHours()%2==0&&"hourFormat"},function(t,e,n){return t.startOfHour&&"hourFormat"},function(t,e,n){return t.startOf30Minutes&&"minuteFormat"},function(t,e,n){return t.startOf15Minutes&&"minuteFormat"},function(t,e,n){return t.startOf5Minutes&&"minuteFormat"},function(t,e,n){return t.startOfMinute&&"minuteFormat"},function(t,e,n){return t.startOf30Seconds&&"secondFormat"},function(t,e,n){return"secondFormat"}]},function(t,e,n){"use strict";var r=n(14),a=n(2),o=n(25),i=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t};e.a=function(){function t(t){var n=e,o=n.windowSize,i=n.sourcePath;return Object(a.K)().windowSize(o).sourcePath(i).accumulator(function(t){return Object(r.i)(t)})(t)}var e=o.n;return t.undefinedLength=function(){return e.windowSize-1},t.options=function(n){return arguments.length?(e=i({},o.n,n),t):e},t}},function(t,e,n){"use strict";var r=n(2),a=n(25),o=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},i=function(){function t(t,e){var n=[],r=!0,a=!1,o=void 0;try{for(var i,c=t[Symbol.iterator]();!(r=(i=c.next()).done)&&(n.push(i.value),!e||n.length!==e);r=!0);}catch(t){a=!0,o=t}finally{try{!r&&c.return&&c.return()}finally{if(a)throw o}}return n}return function(e,n){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return t(e,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}();e.a=function(){function t(t){var n=e,a=n.sourcePath,o=n.volumePath,c=Object(r.F)(a),s=Object(r.F)(o);return Object(r.K)().windowSize(2).accumulator(function(t){var e=i(t,2),n=e[0],r=e[1];return(c(r)-c(n))*s(r)})(t)}var e=a.f;return t.undefinedLength=function(){return 2},t.options=function(n){return arguments.length?(e=o({},a.f,n),t):e},t}},,,,,,,,,,,function(t,e,n){"use strict";function r(t){var e=t.xScale,n=t.xAccessor,r=t.mouseXY,a=t.plotData;t.fullData;return n(Object(i.c)(e,n,r,a))}function a(t){var e=(t.xScale,t.xAccessor),n=(t.mouseXY,t.plotData);t.fullData;return e(Object(c.y)(n))}function o(t){var e=t.xScale,n=(t.xAccessor,t.mouseXY,t.plotData,t.fullData,e.domain());return s(n,2)[1]}e.b=r,e.a=a,e.c=o;var i=n(45),c=n(2),s=function(){function t(t,e){var n=[],r=!0,a=!1,o=void 0;try{for(var i,c=t[Symbol.iterator]();!(r=(i=c.next()).done)&&(n.push(i.value),!e||n.length!==e);r=!0);}catch(t){a=!0,o=t}finally{try{!r&&c.return&&c.return()}finally{if(a)throw o}}return n}return function(e,n){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return t(e,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}()},,,,,,,,,,,,,,,,function(t,e){var n;n=function(){return this}();try{n=n||Function("return this")()||(0,eval)("this")}catch(t){"object"==typeof window&&(n=window)}t.exports=n},,,function(t,e,n){"use strict";var r=(n(84),n(215));n.d(e,"a",function(){return r.a});var a=n(216);n.d(e,"b",function(){return a.a})},function(t,e,n){"use strict";n.d(e,"a",function(){return o});var r=n(84),a=Object(r.a)(","),o=a.parse;a.parseRows,a.format,a.formatRows},function(t,e,n){"use strict";n.d(e,"a",function(){return o});var r=n(84),a=Object(r.a)("\t"),o=a.parse;a.parseRows,a.format,a.formatRows},function(t,e,n){"use strict";var r=n(28),a=Object(r.a)(function(){},function(t,e){t.setTime(+t+e)},function(t,e){return e-t});a.every=function(t){return t=Math.floor(t),isFinite(t)&&t>0?t>1?Object(r.a)(function(e){e.setTime(Math.floor(e/t)*t)},function(e,n){e.setTime(+e+n*t)},function(e,n){return(n-e)/t}):a:null},e.a=a;a.range},function(t,e,n){"use strict";var r=n(28),a=n(34),o=Object(r.a)(function(t){t.setTime(Math.floor(t/a.d)*a.d)},function(t,e){t.setTime(+t+e*a.d)},function(t,e){return(e-t)/a.d},function(t){return t.getUTCSeconds()});e.a=o;o.range},function(t,e,n){"use strict";var r=n(28),a=n(34),o=Object(r.a)(function(t){t.setTime(Math.floor(t/a.c)*a.c)},function(t,e){t.setTime(+t+e*a.c)},function(t,e){return(e-t)/a.c},function(t){return t.getMinutes()});e.a=o;o.range},function(t,e,n){"use strict";var r=n(28),a=n(34),o=Object(r.a)(function(t){var e=t.getTimezoneOffset()*a.c%a.b;e<0&&(e+=a.b),t.setTime(Math.floor((+t-e)/a.b)*a.b+e)},function(t,e){t.setTime(+t+e*a.b)},function(t,e){return(e-t)/a.b},function(t){return t.getHours()});e.a=o;o.range},function(t,e,n){"use strict";var r=n(28),a=n(34),o=Object(r.a)(function(t){t.setHours(0,0,0,0)},function(t,e){t.setDate(t.getDate()+e)},function(t,e){return(e-t-(e.getTimezoneOffset()-t.getTimezoneOffset())*a.c)/a.a},function(t){return t.getDate()-1});e.a=o;o.range},function(t,e,n){"use strict";function r(t){return Object(a.a)(function(e){e.setDate(e.getDate()-(e.getDay()+7-t)%7),e.setHours(0,0,0,0)},function(t,e){t.setDate(t.getDate()+7*e)},function(t,e){return(e-t-(e.getTimezoneOffset()-t.getTimezoneOffset())*o.c)/o.e})}n.d(e,"b",function(){return i}),n.d(e,"a",function(){return c}),n.d(e,"c",function(){return l});var a=n(28),o=n(34),i=r(0),c=r(1),s=r(2),u=r(3),l=r(4),f=r(5),h=r(6);i.range,c.range,s.range,u.range,l.range,f.range,h.range},function(t,e,n){"use strict";var r=n(28),a=Object(r.a)(function(t){t.setDate(1),t.setHours(0,0,0,0)},function(t,e){t.setMonth(t.getMonth()+e)},function(t,e){return e.getMonth()-t.getMonth()+12*(e.getFullYear()-t.getFullYear())},function(t){return t.getMonth()});e.a=a;a.range},function(t,e,n){"use strict";var r=n(28),a=Object(r.a)(function(t){t.setMonth(0,1),t.setHours(0,0,0,0)},function(t,e){t.setFullYear(t.getFullYear()+e)},function(t,e){return e.getFullYear()-t.getFullYear()},function(t){return t.getFullYear()});a.every=function(t){return isFinite(t=Math.floor(t))&&t>0?Object(r.a)(function(e){e.setFullYear(Math.floor(e.getFullYear()/t)*t),e.setMonth(0,1),e.setHours(0,0,0,0)},function(e,n){e.setFullYear(e.getFullYear()+n*t)}):null},e.a=a;a.range},function(t,e,n){"use strict";var r=n(28),a=n(34),o=Object(r.a)(function(t){t.setUTCSeconds(0,0)},function(t,e){t.setTime(+t+e*a.c)},function(t,e){return(e-t)/a.c},function(t){return t.getUTCMinutes()});e.a=o;o.range},function(t,e,n){"use strict";var r=n(28),a=n(34),o=Object(r.a)(function(t){t.setUTCMinutes(0,0,0)},function(t,e){t.setTime(+t+e*a.b)},function(t,e){return(e-t)/a.b},function(t){return t.getUTCHours()});e.a=o;o.range},function(t,e,n){"use strict";var r=n(28),a=n(34),o=Object(r.a)(function(t){t.setUTCHours(0,0,0,0)},function(t,e){t.setUTCDate(t.getUTCDate()+e)},function(t,e){return(e-t)/a.a},function(t){return t.getUTCDate()-1});e.a=o;o.range},function(t,e,n){"use strict";function r(t){return Object(a.a)(function(e){e.setUTCDate(e.getUTCDate()-(e.getUTCDay()+7-t)%7),e.setUTCHours(0,0,0,0)},function(t,e){t.setUTCDate(t.getUTCDate()+7*e)},function(t,e){return(e-t)/o.e})}n.d(e,"b",function(){return i}),n.d(e,"a",function(){return c}),n.d(e,"c",function(){return l});var a=n(28),o=n(34),i=r(0),c=r(1),s=r(2),u=r(3),l=r(4),f=r(5),h=r(6);i.range,c.range,s.range,u.range,l.range,f.range,h.range},function(t,e,n){"use strict";var r=n(28),a=Object(r.a)(function(t){t.setUTCDate(1),t.setUTCHours(0,0,0,0)},function(t,e){t.setUTCMonth(t.getUTCMonth()+e)},function(t,e){return e.getUTCMonth()-t.getUTCMonth()+12*(e.getUTCFullYear()-t.getUTCFullYear())},function(t){return t.getUTCMonth()});e.a=a;a.range},function(t,e,n){"use strict";var r=n(28),a=Object(r.a)(function(t){t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},function(t,e){t.setUTCFullYear(t.getUTCFullYear()+e)},function(t,e){return e.getUTCFullYear()-t.getUTCFullYear()},function(t){return t.getUTCFullYear()});a.every=function(t){return isFinite(t=Math.floor(t))&&t>0?Object(r.a)(function(e){e.setUTCFullYear(Math.floor(e.getUTCFullYear()/t)*t),e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)},function(e,n){e.setUTCFullYear(e.getUTCFullYear()+n*t)}):null},e.a=a;a.range},function(t,e,n){"use strict";function r(t){var e=new Date(t);return isNaN(e)?null:e}var a=n(125),o=n(85);+new Date("2000-01-01T00:00:00.000Z")||Object(o.e)(a.a)},function(t,e,n){"use strict";function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function a(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function o(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var i=n(0),c=n.n(i),s=n(1),u=n.n(s),l=n(12),f=n(21),h=n(16),p=n(17),d=n(18),b=n(23),y=n(22),v=n(24),g=n(29),m=n(3),O=n(2),w=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},x=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),k={stroke:{top:"#964B00",middle:"#FF6600",bottom:"#964B00"},fill:"#4682B4"},_={stroke:Object.assign({},p.s.defaultProps.stroke,{top:"#37a600",middle:"#b8ab00",bottom:"#37a600"})},j=function(t){function e(){return r(this,e),a(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return o(e,t),x(e,[{key:"render",value:function(){var t=this.props,e=t.type,n=t.data,r=t.width,a=t.ratio,o={left:70,right:70,top:20,bottom:30},i=750-o.top-o.bottom,s=r-o.left-o.right,u={innerTickSize:-1*s,tickStrokeOpacity:.2},m={innerTickSize:-1*i,tickStrokeOpacity:.2},x=Object(g.g)().id(0).options({windowSize:20}).merge(function(t,e){t.ema20=e}).accessor(function(t){return t.ema20}),j=Object(g.g)().id(2).options({windowSize:50}).merge(function(t,e){t.ema50=e}).accessor(function(t){return t.ema50}),S=Object(g.q)().options({windowSize:14,kWindowSize:3}).merge(function(t,e){t.slowSTO=e}).accessor(function(t){return t.slowSTO}),C=Object(g.q)().options({windowSize:14,kWindowSize:1}).merge(function(t,e){t.fastSTO=e}).accessor(function(t){return t.fastSTO}),E=Object(g.q)().options({windowSize:14,kWindowSize:3,dWindowSize:4}).merge(function(t,e){t.fullSTO=e}).accessor(function(t){return t.fullSTO}),P=Object(g.b)().merge(function(t,e){t.bb=e}).accessor(function(t){return t.bb}),T=P(x(j(S(C(E(n)))))),M=y.a.inputDateAccessor(function(t){return t.date}),A=M(T),D=A.data,F=A.xScale,R=A.xAccessor,N=A.displayXAccessor,q=R(Object(O.y)(D)),z=R(D[Math.max(0,D.length-150)]),W=[q,z];return c.a.createElement(h.b,{height:750,width:r,ratio:a,margin:o,type:e,seriesName:"MSFT",data:D,xScale:F,xAccessor:R,displayXAccessor:N,xExtents:W},c.a.createElement(h.a,{id:1,height:325,yExtents:[function(t){return[t.high,t.low]},P.accessor(),x.accessor(),j.accessor()],padding:{top:10,bottom:20}},c.a.createElement(d.b,w({axisAt:"right",orient:"right",ticks:5},u,{inverted:!0,tickStroke:"#FFFFFF"})),c.a.createElement(d.a,{axisAt:"bottom",orient:"bottom",showTicks:!1,outerTickSize:0,stroke:"#FFFFFF",opacity:.5}),c.a.createElement(b.e,{at:"right",orient:"right",displayFormat:Object(l.a)(".2f")}),c.a.createElement(p.d,{stroke:function(t){return t.close>t.open?"#6BA583":"#DB0000"},wickStroke:function(t){return t.close>t.open?"#6BA583":"#DB0000"},fill:function(t){return t.close>t.open?"#6BA583":"#DB0000"}}),c.a.createElement(p.i,{yAccessor:x.accessor(),stroke:x.stroke()}),c.a.createElement(p.i,{yAccessor:j.accessor(),stroke:j.stroke()}),c.a.createElement(p.c,w({yAccessor:function(t){return t.bb}},k)),c.a.createElement(b.b,{yAccessor:x.accessor(),fill:x.stroke()}),c.a.createElement(b.b,{yAccessor:j.accessor(),fill:j.stroke()}),c.a.createElement(b.c,{itemType:"last",orient:"right",edgeAt:"right",yAccessor:function(t){return t.close},fill:function(t){return t.close>t.open?"#6BA583":"#DB0000"}}),c.a.createElement(v.e,{origin:[-40,-10]}),c.a.createElement(v.d,{onClick:function(t){},origin:[-38,15],options:[{yAccessor:x.accessor(),type:x.type(),stroke:x.stroke(),windowSize:x.options().windowSize},{yAccessor:j.accessor(),type:j.type(),stroke:j.stroke(),windowSize:j.options().windowSize}]}),c.a.createElement(v.a,{origin:[-38,60],yAccessor:function(t){return t.bb},options:P.options()})),c.a.createElement(h.a,{id:2,yExtents:function(t){return t.volume},height:100,origin:function(t,e){return[0,e-475]}},c.a.createElement(d.b,{axisAt:"left",orient:"left",ticks:5,tickFormat:Object(l.a)(".2s"),tickStroke:"#FFFFFF"}),c.a.createElement(p.b,{yAccessor:function(t){return t.volume},fill:function(t){return t.close>t.open?"#6BA583":"#DB0000"}})),c.a.createElement(h.a,{id:3,yExtents:[0,100],height:125,origin:function(t,e){return[0,e-375]},padding:{top:10,bottom:10}},c.a.createElement(d.a,{axisAt:"bottom",orient:"bottom",showTicks:!1,outerTickSize:0,stroke:"#FFFFFF",opacity:.5}),c.a.createElement(d.b,{axisAt:"right",orient:"right",tickValues:[20,50,80],tickStroke:"#FFFFFF"}),c.a.createElement(b.e,{at:"right",orient:"right",displayFormat:Object(l.a)(".2f")}),c.a.createElement(p.s,w({yAccessor:function(t){return t.slowSTO}},_)),c.a.createElement(v.h,{origin:[-38,15],yAccessor:function(t){return t.slowSTO},options:S.options(),appearance:_,label:"Slow STO"})),c.a.createElement(h.a,{id:4,yExtents:[0,100],height:125,origin:function(t,e){return[0,e-250]},padding:{top:10,bottom:10}},c.a.createElement(d.a,{axisAt:"bottom",orient:"bottom",showTicks:!1,outerTickSize:0,stroke:"#FFFFFF",opacity:.5}),c.a.createElement(d.b,{axisAt:"right",orient:"right",tickValues:[20,50,80],tickStroke:"#FFFFFF"}),c.a.createElement(b.e,{at:"right",orient:"right",displayFormat:Object(l.a)(".2f")}),c.a.createElement(p.s,w({yAccessor:function(t){return t.fastSTO}},_)),c.a.createElement(v.h,{origin:[-38,15],yAccessor:function(t){return t.fastSTO},options:C.options(),appearance:_,label:"Fast STO"})),c.a.createElement(h.a,{id:5,yExtents:[0,100],height:125,origin:function(t,e){return[0,e-125]},padding:{top:10,bottom:10}},c.a.createElement(d.a,w({axisAt:"bottom",orient:"bottom"},m,{tickStroke:"#FFFFFF",stroke:"#FFFFFF"})),c.a.createElement(d.b,{axisAt:"right",orient:"right",tickValues:[20,50,80],tickStroke:"#FFFFFF"}),c.a.createElement(b.d,{at:"bottom",orient:"bottom",displayFormat:Object(f.a)("%Y-%m-%d")}),c.a.createElement(b.e,{at:"right",orient:"right",displayFormat:Object(l.a)(".2f")}),c.a.createElement(p.s,w({yAccessor:function(t){return t.fullSTO}},_)),c.a.createElement(v.h,{origin:[-38,15],yAccessor:function(t){return t.fullSTO},options:E.options(),appearance:_,label:"Full STO"})),c.a.createElement(b.a,{stroke:"#FFFFFF"}))}}]),e}(c.a.Component);j.propTypes={data:u.a.array.isRequired,width:u.a.number.isRequired,ratio:u.a.number.isRequired,type:u.a.oneOf(["svg","hybrid"]).isRequired},j.defaultProps={type:"svg"},j=Object(m.c)(j),e.a=j},function(t,e,n){"use strict";var r=n(234),a=n(235),o=n(236);t.exports=function(){function t(t,e,n,r,i,c){c!==o&&a(!1,"Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types")}function e(){return t}t.isRequired=t;var n={array:t,bool:t,func:t,number:t,object:t,string:t,symbol:t,any:t,arrayOf:e,element:t,instanceOf:e,node:t,objectOf:e,oneOf:e,oneOfType:e,shape:e,exact:e};return n.checkPropTypes=r,n.PropTypes=n,n}},function(t,e,n){"use strict";function r(t){return function(){return t}}var a=function(){};a.thatReturns=r,a.thatReturnsFalse=r(!1),a.thatReturnsTrue=r(!0),a.thatReturnsNull=r(null),a.thatReturnsThis=function(){return this},a.thatReturnsArgument=function(t){return t},t.exports=a},function(t,e,n){"use strict";function r(t,e,n,r,o,i,c,s){if(a(e),!t){var u;if(void 0===e)u=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var l=[n,r,o,i,c,s],f=0;u=new Error(e.replace(/%s/g,function(){return l[f++]})),u.name="Invariant Violation"}throw u.framesToPop=1,u}}var a=function(t){};t.exports=r},function(t,e,n){"use strict";t.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},function(t,e,n){"use strict";n.d(e,"a",function(){return a}),n.d(e,"b",function(){return o});var r,a,o,i=n(126);!function(t){r=Object(i.a)(t),a=r.format,o=r.formatPrefix}({decimal:".",thousands:",",grouping:[3],currency:["$",""]})},function(t,e,n){"use strict";e.a=function(t,e){return function(n,r){for(var a=n.length,o=[],i=0,c=t[0],s=0;a>0&&c>0&&(s+c+1>r&&(c=Math.max(1,r-s)),o.push(n.substring(a-=c,a+c)),!((s+=c+1)>r));)c=t[i=(i+1)%t.length];return o.reverse().join(e)}}},function(t,e,n){"use strict";e.a=function(t){return function(e){return e.replace(/[0-9]/g,function(e){return t[+e]})}}},function(t,e,n){"use strict";e.a=function(t,e){t=t.toPrecision(e);t:for(var n,r=t.length,a=1,o=-1;a<r;++a)switch(t[a]){case".":o=n=a;break;case"0":0===o&&(o=a),n=a;break;case"e":break t;default:o>0&&(o=0)}return o>0?t.slice(0,o)+t.slice(n+1):t}},function(t,e,n){"use strict";var r=n(86);e.a=function(t,e){var n=Object(r.a)(t,e);if(!n)return t+"";var a=n[0],o=n[1];return o<0?"0."+new Array(-o).join("0")+a:a.length>o+1?a.slice(0,o+1)+"."+a.slice(o+1):a+new Array(o-a.length+2).join("0")}},function(t,e,n){"use strict";e.a=function(t){return t}},function(t,e,n){"use strict";var r=n(69);e.a=function(t){return Math.max(0,-Object(r.a)(Math.abs(t)))}},function(t,e,n){"use strict";var r=n(69);e.a=function(t,e){return Math.max(0,3*Math.max(-8,Math.min(8,Math.floor(Object(r.a)(e)/3)))-Object(r.a)(Math.abs(t)))}},function(t,e,n){"use strict";var r=n(69);e.a=function(t,e){return t=Math.abs(t),e=Math.abs(e)-t,Math.max(0,Object(r.a)(e)-Object(r.a)(t))+1}},function(t,e,n){"use strict";function r(t,e){var n={};for(var r in t)e.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(t,r)&&(n[r]=t[r]);return n}function a(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function i(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}function c(t,e){return!A.every(function(n){return Object(k.I)(t[n],e[n])})}function s(t){var e="\n\t.react-stockcharts-avoid-interaction {\n\t\tpointer-events: none;\n\t}\n\t.react-stockcharts-enable-interaction {\n\t\tpointer-events: all;\n\t}\n\t.react-stockcharts-tooltip {\n\t\tpointer-events: all;\n\t\tcursor: pointer;\n\t}\n\t.react-stockcharts-default-cursor {\n\t\tcursor: default;\n\t}\n\t.react-stockcharts-move-cursor {\n\t\tcursor: move;\n\t}\n\t.react-stockcharts-pointer-cursor {\n\t\tcursor: pointer;\n\t}\n\t.react-stockcharts-ns-resize-cursor {\n\t\tcursor: ns-resize;\n\t}\n\t.react-stockcharts-ew-resize-cursor {\n\t\tcursor: ew-resize;\n\t}";return m.a.createElement("style",{type:"text/css"},t?"\n\t.react-stockcharts-grabbing-cursor {\n\t\tpointer-events: all;\n\t\tcursor: -moz-grabbing;\n\t\tcursor: -webkit-grabbing;\n\t\tcursor: grabbing;\n\t}\n\t.react-stockcharts-crosshair-cursor {\n\t\tpointer-events: all;\n\t\tcursor: crosshair;\n\t}\n\t.react-stockcharts-tooltip-hover {\n\t\tpointer-events: all;\n\t\tcursor: pointer;\n\t}"+e:e)}function u(t){return{height:t.height-t.margin.top-t.margin.bottom,width:t.width-t.margin.left-t.margin.right}}function l(t){return t?-1:1}function f(t){var e=t.data,n=t.plotFull,r=t.xScale,a=t.clamp,o=t.pointsPerPxThreshold,i=t.xAccessor,c=t.displayXAccessor,s=t.minPointsPerPxThreshold,u=Object(k.v)(n)?n:i===k.u,l=Object(E.a)({xScale:r,useWholeData:u,clamp:a,pointsPerPxThreshold:o,minPointsPerPxThreshold:s}),f=l.filterData;return{xAccessor:i,displayXAccessor:c||i,xScale:r,fullData:e,filterData:f}}function h(t){var e=(arguments.length>1&&void 0!==arguments[1]&&arguments[1],d(t)),n=e.xAccessor,r=e.displayXAccessor,a=e.fullData,o=e.plotData,i=e.xScale,c=t.postCalculator,s=t.children,l=c(o),f=u(t),h=Object(j.a)(Object(j.d)(f,s),{plotData:l,xAccessor:n,displayXAccessor:r,fullData:a},i.domain());return M({},e,{xScale:i,plotData:l,chartConfig:h})}function p(t,e,n,r,a){var o=t.fullData,i=t.xScale,c=t.xAccessor,s=t.displayXAccessor,f=t.filterData,h=Object(k.y)(o),p=e.domain(),d=T(p,2),y=d[0],v=d[1],g=n.postCalculator,m=n.children,O=n.padding,w=n.flipXScale,x=n.maintainPointsPerPixelOnResize,_=l(w),S=u(n),C=b(i,S,O,_),E=void 0;if(!r||v>=c(h)){var P=e.range(),M=T(P,2),A=M[0],D=M[1],F=C.range(),R=T(F,2),N=R[0],q=R[1],z=(q-N)/(D-A)*(v-y),W=x?v-z:y,I=e(c(h)),B=f(o,[W,v],c,C,{fallbackStart:y,fallbackEnd:{lastItem:h,lastItemX:I}});E=B.plotData,C.domain(B.domain)}else if(r&&v<c(h)){var H=e(c(h))-e.range()[1],V=e.range().map(function(t){return t+H}).map(e.invert),L=T(V,2),Y=L[0],U=L[1],G=f(o,[Y,U],c,C);E=G.plotData,C.domain(G.domain)}var X=g(E);return{xScale:C,xAccessor:c,chartConfig:Object(j.a)(Object(j.d)(S,m,a),{plotData:X,xAccessor:c,displayXAccessor:s,fullData:o},C.domain()),plotData:X,fullData:o,filterData:f}}function d(t){var e=t.xAccessor,n=t.xExtents,r=t.data,a=t.padding,o=t.flipXScale,i=l(o),c=u(t),s="function"==typeof n?n(r):Object(x.f)(n.map(function(t){return Object(k.l)(t)}).map(function(t){return t(r,e)})),h=f(t),p=h.xAccessor,d=h.displayXAccessor,y=h.xScale,v=h.fullData,g=h.filterData,m=b(y,c,a,i),O=g(v,s,e,m),w=O.plotData,_=O.domain;return{plotData:w,xScale:m.domain(_),xAccessor:p,displayXAccessor:d,fullData:v,filterData:g}}function b(t,e,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1;if(t.rangeRoundPoints){if(isNaN(n))throw new Error("padding has to be a number for ordinal scale");t.rangeRoundPoints([0,e.width],n)}else if(t.padding){if(isNaN(n))throw new Error("padding has to be a number for ordinal scale");t.range([0,e.width]),t.padding(n/2)}else{var a=isNaN(n)?n:{left:n,right:n},o=a.left,i=a.right;r>0?t.range([o,e.width-i]):t.range([e.width-i,o])}return t}function y(t){var e=t.touch1Pos,n=t.touch2Pos;return{topLeft:[Math.min(e[0],n[0]),Math.min(e[1],n[1])],bottomRight:[Math.max(e[0],n[0]),Math.max(e[1],n[1])]}}function v(t,e,n){return!isNaN(t(e(Object(k.s)(n))))&&Object(k.v)(t.invert)}var g=n(0),m=n.n(g),O=n(1),w=n.n(O),x=n(14),k=n(2),_=n(195),j=n(45),S=n(305),C=n(339),E=n(340),P=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),T=function(){function t(t,e){var n=[],r=!0,a=!1,o=void 0;try{for(var i,c=t[Symbol.iterator]();!(r=(i=c.next()).done)&&(n.push(i.value),!e||n.length!==e);r=!0);}catch(t){a=!0,o=t}finally{try{!r&&c.return&&c.return()}finally{if(a)throw o}}return n}return function(e,n){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return t(e,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),M=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},A=(Object(k.p)("ChartCanvas"),["seriesName"]),D=function(t){function e(){a(this,e);var t=o(this,(e.__proto__||Object.getPrototypeOf(e)).call(this));return t.getDataInfo=t.getDataInfo.bind(t),t.getCanvasContexts=t.getCanvasContexts.bind(t),t.handleMouseMove=t.handleMouseMove.bind(t),t.handleMouseEnter=t.handleMouseEnter.bind(t),t.handleMouseLeave=t.handleMouseLeave.bind(t),t.handleZoom=t.handleZoom.bind(t),t.handlePinchZoom=t.handlePinchZoom.bind(t),t.handlePinchZoomEnd=t.handlePinchZoomEnd.bind(t),t.handlePan=t.handlePan.bind(t),t.handlePanEnd=t.handlePanEnd.bind(t),t.handleClick=t.handleClick.bind(t),t.handleMouseDown=t.handleMouseDown.bind(t),t.handleDoubleClick=t.handleDoubleClick.bind(t),t.handleContextMenu=t.handleContextMenu.bind(t),t.handleDragStart=t.handleDragStart.bind(t),t.handleDrag=t.handleDrag.bind(t),t.handleDragEnd=t.handleDragEnd.bind(t),t.panHelper=t.panHelper.bind(t),t.pinchZoomHelper=t.pinchZoomHelper.bind(t),t.xAxisZoom=t.xAxisZoom.bind(t),t.yAxisZoom=t.yAxisZoom.bind(t),t.resetYDomain=t.resetYDomain.bind(t),t.calculateStateForDomain=t.calculateStateForDomain.bind(t),t.generateSubscriptionId=t.generateSubscriptionId.bind(t),t.draw=t.draw.bind(t),t.redraw=t.redraw.bind(t),t.getAllPanConditions=t.getAllPanConditions.bind(t),t.subscriptions=[],t.subscribe=t.subscribe.bind(t),t.unsubscribe=t.unsubscribe.bind(t),t.amIOnTop=t.amIOnTop.bind(t),t.saveEventCaptureNode=t.saveEventCaptureNode.bind(t),t.saveCanvasContainerNode=t.saveCanvasContainerNode.bind(t),t.setCursorClass=t.setCursorClass.bind(t),t.getMutableState=t.getMutableState.bind(t),t.interactiveState=[],t.panInProgress=!1,t.state={},t.mutableState={},t.lastSubscriptionId=0,t}return i(e,t),P(e,[{key:"saveEventCaptureNode",value:function(t){this.eventCaptureNode=t}},{key:"saveCanvasContainerNode",value:function(t){this.canvasContainerNode=t}},{key:"getMutableState",value:function(){return this.mutableState}},{key:"getDataInfo",value:function(){return M({},this.state,{fullData:this.fullData})}},{key:"getCanvasContexts",value:function(){if(this.canvasContainerNode)return this.canvasContainerNode.getCanvasContexts()}},{key:"generateSubscriptionId",value:function(){return++this.lastSubscriptionId}},{key:"clearBothCanvas",value:function(){var t=this.getCanvasContexts();t&&t.axes&&Object(k.h)([t.axes,t.mouseCoord],this.props.ratio)}},{key:"clearMouseCanvas",value:function(){var t=this.getCanvasContexts();t&&t.mouseCoord&&Object(k.h)([t.mouseCoord],this.props.ratio)}},{key:"clearThreeCanvas",value:function(){var t=this.getCanvasContexts();t&&t.axes&&Object(k.h)([t.axes,t.mouseCoord,t.bg],this.props.ratio)}},{key:"subscribe",value:function(t,e){var n=e.getPanConditions,r=void 0===n?Object(k.l)({draggable:!1,panEnabled:!0}):n;this.subscriptions=this.subscriptions.concat(M({id:t},e,{getPanConditions:r}))}},{key:"unsubscribe",value:function(t){this.subscriptions=this.subscriptions.filter(function(e){return e.id!==t})}},{key:"getAllPanConditions",value:function(){return this.subscriptions.map(function(t){return t.getPanConditions()})}},{key:"setCursorClass",value:function(t){this.eventCaptureNode.setCursorClass(t)}},{key:"amIOnTop",value:function(t){var e=this.subscriptions.filter(function(t){return t.getPanConditions().draggable});return e.length>0&&Object(k.y)(e).id===t}},{key:"handleContextMenu",value:function(t,e){var n=this.state,r=n.xAccessor,a=n.chartConfig,o=n.plotData,i=n.xScale,c=Object(j.b)(a,t),s=Object(j.c)(i,r,t,o);this.triggerEvent("contextmenu",{mouseXY:t,currentItem:s,currentCharts:c},e)}},{key:"calculateStateForDomain",value:function(t){var e=this.state,n=e.xAccessor,r=e.displayXAccessor,a=e.xScale,o=e.chartConfig,i=e.plotData,c=this.state.filterData,s=this.fullData,u=this.props.postCalculator,l=c(s,t,n,a,{currentPlotData:i,currentDomain:a.domain()}),f=l.plotData,h=l.domain,p=u(f),d=a.copy().domain(h);return{xScale:d,plotData:p,chartConfig:Object(j.a)(o,{plotData:p,xAccessor:n,displayXAccessor:r,fullData:s},d.domain())}}},{key:"pinchZoomHelper",value:function(t,e){var n=t.xScale,r=this.state,a=r.xScale,o=r.chartConfig,i=r.plotData,c=r.xAccessor,s=r.displayXAccessor,u=this.state.filterData,l=this.fullData,f=this.props.postCalculator,h=y(t),p=h.topLeft,d=h.bottomRight,b=y(e),v=b.topLeft,g=b.bottomRight,m=n.range()[1],O=Math.round(-(d[0]*v[0]-p[0]*g[0])/(p[0]-d[0])),w=Math.round(m+((m-d[0])*(m-v[0])-(m-p[0])*(m-g[0]))/(m-p[0]-(m-d[0]))),x=Math.round(-O*p[0]/(-O+v[0])),k=Math.round(m-(w-m)*(m-p[0])/(w+(m-v[0]))),_=[x,k].map(n.invert),S=u(l,_,c,n,{currentPlotData:i,currentDomain:a.domain()}),C=S.plotData,E=S.domain,P=f(C),T=a.copy().domain(E),M=e.touch1Pos;return{chartConfig:Object(j.a)(o,{plotData:P,xAccessor:c,displayXAccessor:s,fullData:l},T.domain()),xScale:T,plotData:P,mouseXY:M,currentItem:Object(j.c)(T,c,M,P)}}},{key:"cancelDrag",value:function(){this.eventCaptureNode.cancelDrag(),this.triggerEvent("dragcancel")}},{key:"handlePinchZoom",value:function(t,e,n){var r=this;if(!this.waitingForAnimationFrame){this.waitingForAnimationFrame=!0;var a=this.pinchZoomHelper(t,e);this.triggerEvent("pinchzoom",a,n),this.finalPinch=e,requestAnimationFrame(function(){r.clearBothCanvas(),r.draw({trigger:"pinchzoom"}),r.waitingForAnimationFrame=!1})}}},{key:"handlePinchZoomEnd",value:function(t,e){var n=this.state.xAccessor;if(this.finalPinch){var r=this.pinchZoomHelper(t,this.finalPinch),a=r.xScale;this.triggerEvent("pinchzoom",r,e),this.finalPinch=null,this.clearThreeCanvas();var o=this.fullData,i=Object(k.s)(o),c=Object(k.s)(a.domain()),s=n(i),u=this.props.onLoadMore;this.setState(r,function(){c<s&&u(c,s)})}}},{key:"handleZoom",value:function(t,e,n){if(!this.panInProgress){var r=this.state,a=r.xAccessor,o=r.xScale,i=r.plotData,c=this.props,s=c.zoomMultiplier,u=c.zoomAnchor,l=this.fullData,f=u({xScale:o,xAccessor:a,mouseXY:e,plotData:i,fullData:l}),h=o(f),p=t>0?1*s:1/s,d=o.range().map(function(t){return h+(t-h)*p}).map(o.invert),b=this.calculateStateForDomain(d),y=b.xScale,v=b.plotData,g=b.chartConfig,m=Object(j.c)(y,a,e,v),O=Object(j.b)(g,e);this.clearThreeCanvas();var w=Object(k.s)(l),x=Object(k.s)(y.domain()),_=a(w),S=this.props.onLoadMore;this.mutableState={mouseXY:e,currentItem:m,currentCharts:O},this.triggerEvent("zoom",{xScale:y,plotData:v,chartConfig:g,mouseXY:e,currentCharts:O,currentItem:m,show:!0},n),this.setState({xScale:y,plotData:v,chartConfig:g},function(){x<_&&S(x,_)})}}},{key:"xAxisZoom",value:function(t){var e=this.calculateStateForDomain(t),n=e.xScale,r=e.plotData,a=e.chartConfig;this.clearThreeCanvas();var o=this.state.xAccessor,i=this.fullData,c=Object(k.s)(i),s=Object(k.s)(n.domain()),u=o(c),l=this.props.onLoadMore;this.setState({xScale:n,plotData:r,chartConfig:a},function(){s<u&&l(s,u)})}},{key:"yAxisZoom",value:function(t,e){this.clearThreeCanvas();var n=this.state.chartConfig,r=n.map(function(n){if(n.id===t){var r=n.yScale;return M({},n,{yScale:r.copy().domain(e),yPanEnabled:!0})}return n});this.setState({chartConfig:r})}},{key:"triggerEvent",value:function(t,e,n){var r=this;this.subscriptions.forEach(function(a){var o=M({},r.state,{fullData:r.fullData,subscriptions:r.subscriptions});a.listener(t,e,o,n)})}},{key:"draw",value:function(t){this.subscriptions.forEach(function(e){Object(k.v)(e.draw)&&e.draw(t)})}},{key:"redraw",value:function(){this.clearThreeCanvas(),this.draw({force:!0})}},{key:"panHelper",value:function(t,e,n,r){var a=this.state,o=a.xAccessor,i=a.displayXAccessor,c=a.chartConfig,s=this.state.filterData,u=this.fullData,l=this.props.postCalculator,f=t[0]-n[0],h=t[1]-n[1];if(Object(k.w)(e.invert))throw new Error("xScale provided does not have an invert() method.You are likely using an ordinal scale. This scale does not support zoom, pan");var p=e.range().map(function(t){return t-f}).map(e.invert),d=s(u,p,o,e,{currentPlotData:this.hackyWayToStopPanBeyondBounds__plotData,currentDomain:this.hackyWayToStopPanBeyondBounds__domain}),b=d.plotData,y=d.domain,v=e.copy().domain(y),g=l(b),m=Object(j.c)(v,o,t,g),O=Object(j.a)(c,{plotData:g,xAccessor:o,displayXAccessor:i,fullData:u},v.domain(),h,r);return{xScale:v,plotData:g,chartConfig:O,mouseXY:t,currentCharts:Object(j.b)(O,t),currentItem:m}}},{key:"handlePan",value:function(t,e,n,r,a){var o=this;if(!this.waitingForPanAnimationFrame){this.waitingForPanAnimationFrame=!0,this.hackyWayToStopPanBeyondBounds__plotData=this.hackyWayToStopPanBeyondBounds__plotData||this.state.plotData,this.hackyWayToStopPanBeyondBounds__domain=this.hackyWayToStopPanBeyondBounds__domain||this.state.xScale.domain();var i=this.panHelper(t,e,n,r);this.hackyWayToStopPanBeyondBounds__plotData=i.plotData,this.hackyWayToStopPanBeyondBounds__domain=i.xScale.domain(),this.panInProgress=!0,this.triggerEvent("pan",i,a),this.mutableState={mouseXY:i.mouseXY,currentItem:i.currentItem,currentCharts:i.currentCharts},requestAnimationFrame(function(){o.waitingForPanAnimationFrame=!1,o.clearBothCanvas(),o.draw({trigger:"pan"})})}}},{key:"handleMouseDown",value:function(t,e,n){this.triggerEvent("mousedown",this.mutableState,n)}},{key:"handleMouseEnter",value:function(t){this.triggerEvent("mouseenter",{show:!0},t)}},{key:"handleMouseMove",value:function(t,e,n){var r=this;if(!this.waitingForAnimationFrame){this.waitingForAnimationFrame=!0;var a=this.state,o=a.chartConfig,i=a.plotData,c=a.xScale,s=a.xAccessor,u=Object(j.b)(o,t),l=Object(j.c)(c,s,t,i);this.triggerEvent("mousemove",{show:!0,mouseXY:t,prevMouseXY:this.prevMouseXY,currentItem:l,currentCharts:u},n),this.prevMouseXY=t,this.mutableState={mouseXY:t,currentItem:l,currentCharts:u},requestAnimationFrame(function(){r.clearMouseCanvas(),r.draw({trigger:"mousemove"}),r.waitingForAnimationFrame=!1})}}},{key:"handleMouseLeave",value:function(t){this.triggerEvent("mouseleave",{show:!1},t),this.clearMouseCanvas(),this.draw({trigger:"mouseleave"})}},{key:"handleDragStart",value:function(t,e){var n=t.startPos;this.triggerEvent("dragstart",{startPos:n},e)}},{key:"handleDrag",value:function(t,e){var n=this,r=t.startPos,a=t.mouseXY,o=this.state,i=o.chartConfig,c=o.plotData,s=o.xScale,u=o.xAccessor,l=Object(j.b)(i,a),f=Object(j.c)(s,u,a,c);this.triggerEvent("drag",{startPos:r,mouseXY:a,currentItem:f,currentCharts:l},e),this.mutableState={mouseXY:a,currentItem:f,currentCharts:l},requestAnimationFrame(function(){n.clearMouseCanvas(),n.draw({trigger:"drag"})})}},{key:"handleDragEnd",value:function(t,e){var n=this,r=t.mouseXY;this.triggerEvent("dragend",{mouseXY:r},e),requestAnimationFrame(function(){n.clearMouseCanvas(),n.draw({trigger:"dragend"})})}},{key:"handleClick",value:function(t,e){var n=this;this.triggerEvent("click",this.mutableState,e),requestAnimationFrame(function(){n.clearMouseCanvas(),n.draw({trigger:"click"})})}},{key:"handleDoubleClick",value:function(t,e){this.triggerEvent("dblclick",{},e)}},{key:"handlePanEnd",value:function(t,e,n,r,a){var o=this,i=this.panHelper(t,e,n,r);this.hackyWayToStopPanBeyondBounds__plotData=null,this.hackyWayToStopPanBeyondBounds__domain=null,this.panInProgress=!1;var c=i.xScale,s=i.plotData,u=i.chartConfig;this.triggerEvent("panend",i,a),requestAnimationFrame(function(){var t=o.state.xAccessor,e=o.fullData,n=Object(k.s)(e),r=Object(k.s)(c.domain()),a=t(n),i=o.props.onLoadMore;o.clearThreeCanvas(),o.setState({xScale:c,plotData:s,chartConfig:u},function(){r<a&&i(r,a)})})}},{key:"getChildContext",value:function(){var t=u(this.props);return{fullData:this.fullData,plotData:this.state.plotData,width:t.width,height:t.height,chartConfig:this.state.chartConfig,xScale:this.state.xScale,xAccessor:this.state.xAccessor,displayXAccessor:this.state.displayXAccessor,chartCanvasType:this.props.type,margin:this.props.margin,ratio:this.props.ratio,xAxisZoom:this.xAxisZoom,yAxisZoom:this.yAxisZoom,getCanvasContexts:this.getCanvasContexts,redraw:this.redraw,subscribe:this.subscribe,unsubscribe:this.unsubscribe,generateSubscriptionId:this.generateSubscriptionId,getMutableState:this.getMutableState,amIOnTop:this.amIOnTop,setCursorClass:this.setCursorClass}}},{key:"componentWillMount",value:function(){var t=h(this.props,!0),e=t.fullData,n=r(t,["fullData"]);this.setState(n),this.fullData=e}},{key:"componentWillReceiveProps",value:function(t){var e=c(this.props,t),n=v(this.state.xScale,this.state.xAccessor,this.state.plotData),a=this.state.chartConfig,o=void 0;if(n&&!e&&Object(k.I)(this.props.xExtents,t.xExtents)){var i=this.state.xScale.domain(),s=T(i,2),u=s[0],l=s[1],d=Object(k.y)(this.fullData),b=f(t),y=b.xAccessor,g=y(d)<=l&&y(d)>=u;o=p(b,this.state.xScale,t,g,a)}else o=h(t);var m=o,O=m.fullData,w=r(m,["fullData"]);this.panInProgress||(this.clearThreeCanvas(),this.setState(w)),this.fullData=O}},{key:"resetYDomain",value:function(t){var e=this.state.chartConfig,n=!1,r=e.map(function(e){return!Object(k.w)(t)&&e.id!==t||Object(k.I)(e.yScale.domain(),e.realYDomain)?e:(n=!0,M({},e,{yScale:e.yScale.domain(e.realYDomain),yPanEnabled:!1}))});n&&(this.clearThreeCanvas(),this.setState({chartConfig:r}))}},{key:"shouldComponentUpdate",value:function(){return!this.panInProgress}},{key:"render",value:function(){var t=this.props,e=t.type,n=t.height,r=t.width,a=t.margin,o=t.className,i=t.zIndex,c=t.defaultFocus,l=t.ratio,f=t.mouseMoveEvent,h=t.panEvent,p=t.zoomEvent,d=this.props,b=d.useCrossHairStyleCursor,y=d.onSelect,g=this.state,O=g.plotData,w=g.xScale,x=g.xAccessor,k=g.chartConfig,_=u(this.props),j=v(w,x,O),E=s(b&&j);return m.a.createElement("div",{style:{position:"relative",width:r,height:n},className:o,onClick:y},m.a.createElement(C.a,{ref:this.saveCanvasContainerNode,type:e,ratio:l,width:r,height:n,zIndex:i}),m.a.createElement("svg",{className:o,width:r,height:n,style:{position:"absolute",zIndex:i+5}},E,m.a.createElement("defs",null,m.a.createElement("clipPath",{id:"chart-area-clip"},m.a.createElement("rect",{x:"0",y:"0",width:_.width,height:_.height})),k.map(function(t,e){return m.a.createElement("clipPath",{key:e,id:"chart-area-clip-"+t.id},m.a.createElement("rect",{x:"0",y:"0",width:t.width,height:t.height}))})),m.a.createElement("g",{transform:"translate("+(a.left+.5)+", "+(a.top+.5)+")"},m.a.createElement(S.a,{ref:this.saveEventCaptureNode,mouseMove:f&&j,zoom:p&&j,pan:h&&j,width:_.width,height:_.height,chartConfig:k,xScale:w,xAccessor:x,focus:c,getAllPanConditions:this.getAllPanConditions,onContextMenu:this.handleContextMenu,onClick:this.handleClick,onDoubleClick:this.handleDoubleClick,onMouseDown:this.handleMouseDown,onMouseMove:this.handleMouseMove,onMouseEnter:this.handleMouseEnter,onMouseLeave:this.handleMouseLeave,onDragStart:this.handleDragStart,onDrag:this.handleDrag,onDragComplete:this.handleDragEnd,onZoom:this.handleZoom,onPinchZoom:this.handlePinchZoom,onPinchZoomEnd:this.handlePinchZoomEnd,onPan:this.handlePan,onPanEnd:this.handlePanEnd}),m.a.createElement("g",{className:"react-stockcharts-avoid-interaction"},this.props.children))))}}]),e}(g.Component);D.propTypes={width:w.a.number.isRequired,height:w.a.number.isRequired,margin:w.a.object,ratio:w.a.number.isRequired,type:w.a.oneOf(["svg","hybrid"]),pointsPerPxThreshold:w.a.number,minPointsPerPxThreshold:w.a.number,data:w.a.array.isRequired,xAccessor:w.a.func,xExtents:w.a.oneOfType([w.a.array,w.a.func]),zoomAnchor:w.a.func,className:w.a.string,seriesName:w.a.string.isRequired,zIndex:w.a.number,children:w.a.node.isRequired,xScale:w.a.func.isRequired,postCalculator:w.a.func,flipXScale:w.a.bool,useCrossHairStyleCursor:w.a.bool,padding:w.a.oneOfType([w.a.number,w.a.shape({left:w.a.number,right:w.a.number})]),defaultFocus:w.a.bool,zoomMultiplier:w.a.number,onLoadMore:w.a.func,displayXAccessor:function(t,e){if(Object(k.w)(t[e]));else if("function"!=typeof t[e])return new Error("displayXAccessor has to be a function")},mouseMoveEvent:w.a.bool,panEvent:w.a.bool,clamp:w.a.oneOfType([w.a.string,w.a.bool]),zoomEvent:w.a.bool,onSelect:w.a.func,maintainPointsPerPixelOnResize:w.a.bool},D.defaultProps={margin:{top:20,right:30,bottom:30,left:80},type:"hybrid",pointsPerPxThreshold:2,minPointsPerPxThreshold:.01,className:"react-stockchart",zIndex:1,xExtents:[x.k,x.h],postCalculator:k.u,padding:0,xAccessor:k.u,flipXScale:!1,useCrossHairStyleCursor:!0,defaultFocus:!0,onLoadMore:k.D,onSelect:k.D,mouseMoveEvent:!0,panEvent:!0,zoomEvent:!0,zoomMultiplier:1.1,clamp:!1,zoomAnchor:_.b,maintainPointsPerPixelOnResize:!0},D.childContextTypes={plotData:w.a.array,fullData:w.a.array,chartConfig:w.a.arrayOf(w.a.shape({id:w.a.oneOfType([w.a.number,w.a.string]).isRequired,origin:w.a.arrayOf(w.a.number).isRequired,padding:w.a.oneOfType([w.a.number,w.a.shape({top:w.a.number,bottom:w.a.number})]),yExtents:w.a.arrayOf(w.a.func),yExtentsProvider:w.a.func,yScale:w.a.func.isRequired,mouseCoordinates:w.a.shape({at:w.a.string,format:w.a.func}),width:w.a.number.isRequired,height:w.a.number.isRequired})).isRequired,xScale:w.a.func.isRequired,xAccessor:w.a.func.isRequired,displayXAccessor:w.a.func.isRequired,width:w.a.number.isRequired,height:w.a.number.isRequired,chartCanvasType:w.a.oneOf(["svg","hybrid"]).isRequired,margin:w.a.object.isRequired,ratio:w.a.number.isRequired,getCanvasContexts:w.a.func,xAxisZoom:w.a.func,yAxisZoom:w.a.func,amIOnTop:w.a.func,redraw:w.a.func,subscribe:w.a.func,unsubscribe:w.a.func,setCursorClass:w.a.func,generateSubscriptionId:w.a.func,getMutableState:w.a.func},D.ohlcv=function(t){return{date:t.date,open:t.open,high:t.high,low:t.low,close:t.close,volume:t.volume}},e.a=D},function(t,e,n){"use strict";n(132)},function(t,e,n){"use strict";e.a=function(t,e){return e<t?-1:e>t?1:e>=t?0:NaN}},function(t,e,n){"use strict";var r=n(136),a=n(130),o=n(250),i=n(135),c=n(251),s=n(137),u=n(138),l=n(139);e.a=function(){function t(t){var r,o,i=t.length,c=new Array(i);for(r=0;r<i;++r)c[r]=e(t[r],r,t);var l=n(c),h=l[0],p=l[1],d=f(c,h,p);Array.isArray(d)||(d=Object(u.c)(h,p,d),d=Object(s.a)(Math.ceil(h/d)*d,Math.floor(p/d)*d,d));for(var b=d.length;d[0]<=h;)d.shift(),--b;for(;d[b-1]>p;)d.pop(),--b;var y,v=new Array(b+1);for(r=0;r<=b;++r)y=v[r]=[],y.x0=r>0?d[r-1]:h,y.x1=r<b?d[r]:p;for(r=0;r<i;++r)o=c[r],h<=o&&o<=p&&v[Object(a.a)(d,o,0,b)].push(t[r]);return v}var e=c.a,n=i.a,f=l.a;return t.value=function(n){return arguments.length?(e="function"==typeof n?n:Object(o.a)(n),t):e},t.domain=function(e){return arguments.length?(n="function"==typeof e?e:Object(o.a)([e[0],e[1]]),t):n},t.thresholds=function(e){return arguments.length?(f="function"==typeof e?e:Array.isArray(e)?Object(o.a)(r.b.call(e)):Object(o.a)(e),t):f},t}},function(t,e,n){"use strict";e.a=function(t){return function(){return t}}},function(t,e,n){"use strict";e.a=function(t){return t}},function(t,e,n){"use strict";n(136),n(48),n(56),n(87)},function(t,e,n){"use strict";n(133)},function(t,e,n){"use strict";e.a=function(t,e){var n,r,a=t.length,o=-1;if(null==e){for(;++o<a;)if(null!=(n=t[o])&&n>=n)for(r=n;++o<a;)null!=(n=t[o])&&n>r&&(r=n)}else for(;++o<a;)if(null!=(n=e(t[o],o,t))&&n>=n)for(r=n;++o<a;)null!=(n=e(t[o],o,t))&&n>r&&(r=n);return r}},function(t,e,n){"use strict";var r=n(56);e.a=function(t,e){var n,a=t.length,o=a,i=-1,c=0;if(null==e)for(;++i<a;)isNaN(n=Object(r.a)(t[i]))?--o:c+=n;else for(;++i<a;)isNaN(n=Object(r.a)(e(t[i],i,t)))?--o:c+=n;if(o)return c/o}},function(t,e,n){"use strict";n(48),n(56),n(87)},function(t,e,n){"use strict";e.a=function(t){for(var e,n,r,a=t.length,o=-1,i=0;++o<a;)i+=t[o].length;for(n=new Array(i);--a>=0;)for(r=t[a],e=r.length;--e>=0;)n[--i]=r[e];return n}},function(t,e,n){"use strict"},function(t,e,n){"use strict";n(48)},function(t,e,n){"use strict"},function(t,e,n){"use strict";e.a=function(t,e){var n,r=t.length,a=-1,o=0;if(null==e)for(;++a<r;)(n=+t[a])&&(o+=n);else for(;++a<r;)(n=+e(t[a],a,t))&&(o+=n);return o}},function(t,e,n){"use strict";var r=n(141);e.a=function(){return Object(r.a)(arguments)}},function(t,e,n){"use strict";function r(){function t(){var t=o().length,r=u[1]<u[0],a=u[r-0],c=u[1-r];e=(c-a)/Math.max(1,t-f+2*h),l&&(e=Math.floor(e)),a+=(c-a-e*(t-f))*p,n=e*(1-f),l&&(a=Math.round(a),n=Math.round(n));var d=Object(i.n)(t).map(function(t){return a+e*t});return s(r?d.reverse():d)}var e,n,a=Object(c.a)().unknown(void 0),o=a.domain,s=a.range,u=[0,1],l=!1,f=0,h=0,p=.5;return delete a.unknown,a.domain=function(e){return arguments.length?(o(e),t()):o()},a.range=function(e){return arguments.length?(u=[+e[0],+e[1]],t()):u.slice()},a.rangeRound=function(e){return u=[+e[0],+e[1]],l=!0,t()},a.bandwidth=function(){return n},a.step=function(){return e},a.round=function(e){return arguments.length?(l=!!e,t()):l},a.padding=function(e){return arguments.length?(f=h=Math.max(0,Math.min(1,e)),t()):f},a.paddingInner=function(e){return arguments.length?(f=Math.max(0,Math.min(1,e)),t()):f},a.paddingOuter=function(e){return arguments.length?(h=Math.max(0,Math.min(1,e)),t()):h},a.align=function(e){return arguments.length?(p=Math.max(0,Math.min(1,e)),t()):p},a.copy=function(){return r().domain(o()).range(u).round(l).paddingInner(f).paddingOuter(h).align(p)},t()}function a(t){var e=t.copy;return t.padding=t.paddingOuter,delete t.paddingInner,delete t.paddingOuter,t.copy=function(){return a(e())},t}function o(){return a(r().paddingInner(1))}e.a=o;var i=n(14),c=n(142)},function(t,e,n){"use strict";function r(){return{}}function a(t,e,n){t[e]=n}function o(){return Object(c.a)()}function i(t,e,n){t.set(e,n)}var c=n(88);e.a=function(){function t(e,r,a,o){if(r>=l.length)return null!=n&&e.sort(n),null!=s?s(e):e;for(var i,u,f,h=-1,p=e.length,d=l[r++],b=Object(c.a)(),y=a();++h<p;)(f=b.get(i=d(u=e[h])+""))?f.push(u):b.set(i,[u]);return b.each(function(e,n){o(y,n,t(e,r,a,o))}),y}function e(t,n){if(++n>l.length)return t;var r,a=f[n-1];return null!=s&&n>=l.length?r=t.entries():(r=[],t.each(function(t,a){r.push({key:a,values:e(t,n)})})),null!=a?r.sort(function(t,e){return a(t.key,e.key)}):r}var n,s,u,l=[],f=[];return u={object:function(e){return t(e,0,r,a)},map:function(e){return t(e,0,o,i)},entries:function(n){return e(t(n,0,o,i),0)},key:function(t){return l.push(t),u},sortKeys:function(t){return f[l.length-1]=t,u},sortValues:function(t){return n=t,u},rollup:function(t){return s=t,u}}}},function(t,e,n){"use strict";function r(){}function a(t,e){var n=new r;if(t instanceof r)t.each(function(t){n.add(t)});else if(t){var a=-1,o=t.length;if(null==e)for(;++a<o;)n.add(t[a]);else for(;++a<o;)n.add(e(t[a],a,t))}return n}var o=n(88),i=o.a.prototype;r.prototype=a.prototype={constructor:r,has:i.has,add:function(t){return t+="",this[o.b+t]=t,this},remove:i.remove,clear:i.clear,values:i.keys,size:i.size,empty:i.empty,each:i.each},e.a=a},function(t,e,n){"use strict"},function(t,e,n){"use strict"},function(t,e,n){"use strict"},function(t,e,n){"use strict";n(42),n(57),n(151)},function(t,e,n){"use strict";function r(t){if(t instanceof o)return new o(t.l,t.a,t.b,t.opacity);if(t instanceof h){var e=t.h*b.a;return new o(t.l,Math.cos(e)*t.c,Math.sin(e)*t.c,t.opacity)}t instanceof d.b||(t=Object(d.h)(t));var n=u(t.r),r=u(t.g),a=u(t.b),c=i((.4124564*n+.3575761*r+.1804375*a)/y),s=i((.2126729*n+.7151522*r+.072175*a)/v);return new o(116*s-16,500*(c-s),200*(s-i((.0193339*n+.119192*r+.9503041*a)/g)),t.opacity)}function a(t,e,n,a){return 1===arguments.length?r(t):new o(t,e,n,null==a?1:a)}function o(t,e,n,r){this.l=+t,this.a=+e,this.b=+n,this.opacity=+r}function i(t){return t>x?Math.pow(t,1/3):t/w+m}function c(t){return t>O?t*t*t:w*(t-m)}function s(t){return 255*(t<=.0031308?12.92*t:1.055*Math.pow(t,1/2.4)-.055)}function u(t){return(t/=255)<=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4)}function l(t){if(t instanceof h)return new h(t.h,t.c,t.l,t.opacity);t instanceof o||(t=r(t));var e=Math.atan2(t.b,t.a)*b.b;return new h(e<0?e+360:e,Math.sqrt(t.a*t.a+t.b*t.b),t.l,t.opacity)}function f(t,e,n,r){return 1===arguments.length?l(t):new h(t,e,n,null==r?1:r)}function h(t,e,n,r){this.h=+t,this.c=+e,this.l=+n,this.opacity=+r}e.a=a,e.b=f;var p=n(91),d=n(90),b=n(143),y=.95047,v=1,g=1.08883,m=4/29,O=6/29,w=3*O*O,x=O*O*O;Object(p.a)(o,a,Object(p.b)(d.a,{brighter:function(t){return new o(this.l+18*(null==t?1:t),this.a,this.b,this.opacity)},darker:function(t){return new o(this.l-18*(null==t?1:t),this.a,this.b,this.opacity)},rgb:function(){var t=(this.l+16)/116,e=isNaN(this.a)?t:t+this.a/500,n=isNaN(this.b)?t:t-this.b/200;return t=v*c(t),e=y*c(e),n=g*c(n),new d.b(s(3.2404542*e-1.5371385*t-.4985314*n),s(-.969266*e+1.8760108*t+.041556*n),s(.0556434*e-.2040259*t+1.0572252*n),this.opacity)}})),Object(p.a)(h,f,Object(p.b)(d.a,{brighter:function(t){return new h(this.h,this.c,this.l+18*(null==t?1:t),this.opacity)},darker:function(t){return new h(this.h,this.c,this.l-18*(null==t?1:t),this.opacity)},rgb:function(){return r(this).rgb()}}))},function(t,e,n){"use strict";function r(t){if(t instanceof o)return new o(t.h,t.s,t.l,t.opacity);t instanceof c.b||(t=Object(c.h)(t));var e=t.r/255,n=t.g/255,r=t.b/255,a=(y*r+d*e-b*n)/(y+d-b),i=r-a,u=(p*(n-a)-f*i)/h,l=Math.sqrt(u*u+i*i)/(p*a*(1-a)),v=l?Math.atan2(u,i)*s.b-120:NaN;return new o(v<0?v+360:v,l,a,t.opacity)}function a(t,e,n,a){return 1===arguments.length?r(t):new o(t,e,n,null==a?1:a)}function o(t,e,n,r){this.h=+t,this.s=+e,this.l=+n,this.opacity=+r}e.a=a;var i=n(91),c=n(90),s=n(143),u=-.14861,l=1.78277,f=-.29227,h=-.90649,p=1.97294,d=p*h,b=p*l,y=l*f-h*u;Object(i.a)(o,a,Object(i.b)(c.a,{brighter:function(t){return t=null==t?c.c:Math.pow(c.c,t),new o(this.h,this.s,this.l*t,this.opacity)},darker:function(t){return t=null==t?c.d:Math.pow(c.d,t),new o(this.h,this.s,this.l*t,this.opacity)},rgb:function(){var t=isNaN(this.h)?0:(this.h+120)*s.a,e=+this.l,n=isNaN(this.s)?0:this.s*e*(1-e),r=Math.cos(t),a=Math.sin(t);return new c.b(255*(e+n*(u*r+l*a)),255*(e+n*(f*r+h*a)),255*(e+n*(p*r)),this.opacity)}}))},function(t,e,n){"use strict";e.a=function(t,e){return t=+t,e-=t,function(n){return Math.round(t+e*n)}}},function(t,e,n){"use strict";function r(t,e,n,r){function o(t){return t.length?t.pop()+" ":""}function i(t,r,o,i,c,s){if(t!==o||r!==i){var u=c.push("translate(",null,e,null,n);s.push({i:u-4,x:Object(a.a)(t,o)},{i:u-2,x:Object(a.a)(r,i)})}else(o||i)&&c.push("translate("+o+e+i+n)}function c(t,e,n,i){t!==e?(t-e>180?e+=360:e-t>180&&(t+=360),i.push({i:n.push(o(n)+"rotate(",null,r)-2,x:Object(a.a)(t,e)})):e&&n.push(o(n)+"rotate("+e+r)}function s(t,e,n,i){t!==e?i.push({i:n.push(o(n)+"skewX(",null,r)-2,x:Object(a.a)(t,e)}):e&&n.push(o(n)+"skewX("+e+r)}function u(t,e,n,r,i,c){if(t!==n||e!==r){var s=i.push(o(i)+"scale(",null,",",null,")");c.push({i:s-4,x:Object(a.a)(t,n)},{i:s-2,x:Object(a.a)(e,r)})}else 1===n&&1===r||i.push(o(i)+"scale("+n+","+r+")")}return function(e,n){var r=[],a=[];return e=t(e),n=t(n),i(e.translateX,e.translateY,n.translateX,n.translateY,r,a),c(e.rotate,n.rotate,r,a),s(e.skewX,n.skewX,r,a),u(e.scaleX,e.scaleY,n.scaleX,n.scaleY,r,a),e=n=null,function(t){for(var e,n=-1,o=a.length;++n<o;)r[(e=a[n]).i]=e.x(t);return r.join("")}}}var a=n(70),o=n(274);r(o.a,"px, ","px)","deg)"),r(o.b,", ",")",")")},function(t,e,n){"use strict";function r(t){return"none"===t?u.b:(o||(o=document.createElement("DIV"),i=document.documentElement,c=document.defaultView),o.style.transform=t,t=c.getComputedStyle(i.appendChild(o),null).getPropertyValue("transform"),i.removeChild(o),t=t.slice(7,-1).split(","),Object(u.a)(+t[0],+t[1],+t[2],+t[3],+t[4],+t[5]))}function a(t){return null==t?u.b:(s||(s=document.createElementNS("http://www.w3.org/2000/svg","g")),s.setAttribute("transform",t),(t=s.transform.baseVal.consolidate())?(t=t.matrix,Object(u.a)(t.a,t.b,t.c,t.d,t.e,t.f)):u.b)}e.a=r,e.b=a;var o,i,c,s,u=n(275)},function(t,e,n){"use strict";n.d(e,"b",function(){return a});var r=180/Math.PI,a={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};e.a=function(t,e,n,a,o,i){var c,s,u;return(c=Math.sqrt(t*t+e*e))&&(t/=c,e/=c),(u=t*n+e*a)&&(n-=t*u,a-=e*u),(s=Math.sqrt(n*n+a*a))&&(n/=s,a/=s,u/=s),t*a<e*n&&(t=-t,e=-e,u=-u,c=-c),{translateX:o,translateY:i,rotate:Math.atan2(e,t)*r,skewX:Math.atan(u)*r,scaleX:c,scaleY:s}}},function(t,e,n){"use strict";Math.SQRT2},function(t,e,n){"use strict";function r(t){return function(e,n){var r=t((e=Object(a.d)(e)).h,(n=Object(a.d)(n)).h),i=Object(o.a)(e.s,n.s),c=Object(o.a)(e.l,n.l),s=Object(o.a)(e.opacity,n.opacity);return function(t){return e.h=r(t),e.s=i(t),e.l=c(t),e.opacity=s(t),e+""}}}var a=n(37),o=n(58);r(o.c),r(o.a)},function(t,e,n){"use strict";n(37),n(58)},function(t,e,n){"use strict";function r(t){return function(e,n){var r=t((e=Object(a.c)(e)).h,(n=Object(a.c)(n)).h),i=Object(o.a)(e.c,n.c),c=Object(o.a)(e.l,n.l),s=Object(o.a)(e.opacity,n.opacity);return function(t){return e.h=r(t),e.c=i(t),e.l=c(t),e.opacity=s(t),e+""}}}var a=n(37),o=n(58);r(o.c),r(o.a)},function(t,e,n){"use strict";function r(t){return function e(n){function r(e,r){var i=t((e=Object(a.b)(e)).h,(r=Object(a.b)(r)).h),c=Object(o.a)(e.s,r.s),s=Object(o.a)(e.l,r.l),u=Object(o.a)(e.opacity,r.opacity);return function(t){return e.h=i(t),e.s=c(t),e.l=s(Math.pow(t,n)),e.opacity=u(t),e+""}}return n=+n,r.gamma=e,r}(1)}n.d(e,"a",function(){return i});var a=n(37),o=n(58),i=(r(o.c),r(o.a))},function(t,e,n){"use strict"},function(t,e,n){"use strict";var r=n(14),a=n(12);e.a=function(t,e,n){var o,i=t[0],c=t[t.length-1],s=Object(r.q)(i,c,null==e?10:e);switch(n=Object(a.c)(null==n?",f":n),n.type){case"s":var u=Math.max(Math.abs(i),Math.abs(c));return null!=n.precision||isNaN(o=Object(a.e)(s,u))||(n.precision=o),Object(a.b)(n,u);case"":case"e":case"g":case"p":case"r":null!=n.precision||isNaN(o=Object(a.f)(s,Math.max(Math.abs(i),Math.abs(c))))||(n.precision=o-("e"===n.type));break;case"f":case"%":null!=n.precision||isNaN(o=Object(a.d)(s))||(n.precision=o-2*("%"===n.type))}return Object(a.a)(n)}},function(t,e,n){"use strict";function r(t,e){return(e=Math.log(e/t))?function(n){return Math.log(n/t)/e}:Object(h.a)(e)}function a(t,e){return t<0?function(n){return-Math.pow(-e,n)*Math.pow(-t,1-n)}:function(n){return Math.pow(e,n)*Math.pow(t,1-n)}}function o(t){return isFinite(t)?+("1e"+t):t<0?0:t}function i(t){return 10===t?o:t===Math.E?Math.exp:function(e){return Math.pow(t,e)}}function c(t){return t===Math.E?Math.log:10===t&&Math.log10||2===t&&Math.log2||(t=Math.log(t),function(e){return Math.log(e)/t})}function s(t){return function(e){return-t(-e)}}function u(){function t(){return h=c(o),b=i(o),n()[0]<0&&(h=s(h),b=s(b)),e}var e=Object(d.b)(r,a).domain([1,10]),n=e.domain,o=10,h=c(10),b=i(10);return e.base=function(e){return arguments.length?(o=+e,t()):o},e.domain=function(e){return arguments.length?(n(e),t()):n()},e.ticks=function(t){var e,r=n(),a=r[0],i=r[r.length-1];(e=i<a)&&(f=a,a=i,i=f);var c,s,u,f=h(a),p=h(i),d=null==t?10:+t,y=[];if(!(o%1)&&p-f<d){if(f=Math.round(f)-1,p=Math.round(p)+1,a>0){for(;f<p;++f)for(s=1,c=b(f);s<o;++s)if(!((u=c*s)<a)){if(u>i)break;y.push(u)}}else for(;f<p;++f)for(s=o-1,c=b(f);s>=1;--s)if(!((u=c*s)<a)){if(u>i)break;y.push(u)}}else y=Object(l.r)(f,p,Math.min(p-f,d)).map(b);return e?y.reverse():y},e.tickFormat=function(t,n){if(null==n&&(n=10===o?".0e":","),"function"!=typeof n&&(n=Object(f.a)(n)),t===1/0)return n;null==t&&(t=10);var r=Math.max(1,o*t/e.ticks().length);return function(t){var e=t/b(Math.round(h(t)));return e*o<o-.5&&(e*=o),e<=r?n(t):""}},e.nice=function(){return n(Object(p.a)(n(),{floor:function(t){return b(Math.floor(h(t)))},ceil:function(t){return b(Math.ceil(h(t)))}}))},e.copy=function(){return Object(d.a)(e,u().base(o))},e}e.a=u;var l=n(14),f=n(12),h=n(93),p=n(152),d=n(71)},function(t,e,n){"use strict";n(93),n(57),n(71)},function(t,e,n){"use strict";n(14),n(42)},function(t,e,n){"use strict";n(14),n(42),n(57)},function(t,e,n){"use strict";n(14),n(42)},function(t,e,n){"use strict";n(153),n(21),n(79)},function(t,e,n){"use strict";var r=n(59);e.a=Object(r.a)("1f77b4ff7f0e2ca02cd627289467bd8c564be377c27f7f7fbcbd2217becf")},function(t,e,n){"use strict";var r=n(59);Object(r.a)("393b795254a36b6ecf9c9ede6379398ca252b5cf6bcedb9c8c6d31bd9e39e7ba52e7cb94843c39ad494ad6616be7969c7b4173a55194ce6dbdde9ed6")},function(t,e,n){"use strict";var r=n(59);Object(r.a)("3182bd6baed69ecae1c6dbefe6550dfd8d3cfdae6bfdd0a231a35474c476a1d99bc7e9c0756bb19e9ac8bcbddcdadaeb636363969696bdbdbdd9d9d9")},function(t,e,n){"use strict";var r=n(59);Object(r.a)("1f77b4aec7e8ff7f0effbb782ca02c98df8ad62728ff98969467bdc5b0d58c564bc49c94e377c2f7b6d27f7f7fc7c7c7bcbd22dbdb8d17becf9edae5")},function(t,e,n){"use strict";var r=n(37),a=n(49);Object(a.b)(Object(r.b)(300,.5,0),Object(r.b)(-240,.5,1))},function(t,e,n){"use strict";var r=n(37),a=n(49);Object(a.b)(Object(r.b)(-100,.75,.35),Object(r.b)(80,1.5,.8)),Object(a.b)(Object(r.b)(260,.75,.35),Object(r.b)(80,1.5,.8)),Object(r.b)()},function(t,e,n){"use strict";function r(t){var e=t.length;return function(n){return t[Math.max(0,Math.min(e-1,Math.floor(n*e)))]}}var a=n(59);r(Object(a.a)("44015444025645045745055946075a46085c460a5d460b5e470d60470e6147106347116447136548146748166848176948186a481a6c481b6d481c6e481d6f481f70482071482173482374482475482576482677482878482979472a7a472c7a472d7b472e7c472f7d46307e46327e46337f463480453581453781453882443983443a83443b84433d84433e85423f854240864241864142874144874045884046883f47883f48893e49893e4a893e4c8a3d4d8a3d4e8a3c4f8a3c508b3b518b3b528b3a538b3a548c39558c39568c38588c38598c375a8c375b8d365c8d365d8d355e8d355f8d34608d34618d33628d33638d32648e32658e31668e31678e31688e30698e306a8e2f6b8e2f6c8e2e6d8e2e6e8e2e6f8e2d708e2d718e2c718e2c728e2c738e2b748e2b758e2a768e2a778e2a788e29798e297a8e297b8e287c8e287d8e277e8e277f8e27808e26818e26828e26828e25838e25848e25858e24868e24878e23888e23898e238a8d228b8d228c8d228d8d218e8d218f8d21908d21918c20928c20928c20938c1f948c1f958b1f968b1f978b1f988b1f998a1f9a8a1e9b8a1e9c891e9d891f9e891f9f881fa0881fa1881fa1871fa28720a38620a48621a58521a68522a78522a88423a98324aa8325ab8225ac8226ad8127ad8128ae8029af7f2ab07f2cb17e2db27d2eb37c2fb47c31b57b32b67a34b67935b77937b87838b9773aba763bbb753dbc743fbc7340bd7242be7144bf7046c06f48c16e4ac16d4cc26c4ec36b50c46a52c56954c56856c66758c7655ac8645cc8635ec96260ca6063cb5f65cb5e67cc5c69cd5b6ccd5a6ece5870cf5773d05675d05477d1537ad1517cd2507fd34e81d34d84d44b86d54989d5488bd6468ed64590d74393d74195d84098d83e9bd93c9dd93ba0da39a2da37a5db36a8db34aadc32addc30b0dd2fb2dd2db5de2bb8de29bade28bddf26c0df25c2df23c5e021c8e020cae11fcde11dd0e11cd2e21bd5e21ad8e219dae319dde318dfe318e2e418e5e419e7e419eae51aece51befe51cf1e51df4e61ef6e620f8e621fbe723fde725")),r(Object(a.a)("00000401000501010601010802010902020b02020d03030f03031204041405041606051806051a07061c08071e0907200a08220b09240c09260d0a290e0b2b100b2d110c2f120d31130d34140e36150e38160f3b180f3d19103f1a10421c10441d11471e114920114b21114e22115024125325125527125829115a2a115c2c115f2d11612f116331116533106734106936106b38106c390f6e3b0f703d0f713f0f72400f74420f75440f764510774710784910784a10794c117a4e117b4f127b51127c52137c54137d56147d57157e59157e5a167e5c167f5d177f5f187f601880621980641a80651a80671b80681c816a1c816b1d816d1d816e1e81701f81721f817320817521817621817822817922827b23827c23827e24828025828125818326818426818627818827818928818b29818c29818e2a81902a81912b81932b80942c80962c80982d80992d809b2e7f9c2e7f9e2f7fa02f7fa1307ea3307ea5317ea6317da8327daa337dab337cad347cae347bb0357bb2357bb3367ab5367ab73779b83779ba3878bc3978bd3977bf3a77c03a76c23b75c43c75c53c74c73d73c83e73ca3e72cc3f71cd4071cf4070d0416fd2426fd3436ed5446dd6456cd8456cd9466bdb476adc4869de4968df4a68e04c67e24d66e34e65e44f64e55064e75263e85362e95462ea5661eb5760ec5860ed5a5fee5b5eef5d5ef05f5ef1605df2625df2645cf3655cf4675cf4695cf56b5cf66c5cf66e5cf7705cf7725cf8745cf8765cf9785df9795df97b5dfa7d5efa7f5efa815ffb835ffb8560fb8761fc8961fc8a62fc8c63fc8e64fc9065fd9266fd9467fd9668fd9869fd9a6afd9b6bfe9d6cfe9f6dfea16efea36ffea571fea772fea973feaa74feac76feae77feb078feb27afeb47bfeb67cfeb77efeb97ffebb81febd82febf84fec185fec287fec488fec68afec88cfeca8dfecc8ffecd90fecf92fed194fed395fed597fed799fed89afdda9cfddc9efddea0fde0a1fde2a3fde3a5fde5a7fde7a9fde9aafdebacfcecaefceeb0fcf0b2fcf2b4fcf4b6fcf6b8fcf7b9fcf9bbfcfbbdfcfdbf")),r(Object(a.a)("00000401000501010601010802010a02020c02020e03021004031204031405041706041907051b08051d09061f0a07220b07240c08260d08290e092b10092d110a30120a32140b34150b37160b39180c3c190c3e1b0c411c0c431e0c451f0c48210c4a230c4c240c4f260c51280b53290b552b0b572d0b592f0a5b310a5c320a5e340a5f3609613809623909633b09643d09653e0966400a67420a68440a68450a69470b6a490b6a4a0c6b4c0c6b4d0d6c4f0d6c510e6c520e6d540f6d550f6d57106e59106e5a116e5c126e5d126e5f136e61136e62146e64156e65156e67166e69166e6a176e6c186e6d186e6f196e71196e721a6e741a6e751b6e771c6d781c6d7a1d6d7c1d6d7d1e6d7f1e6c801f6c82206c84206b85216b87216b88226a8a226a8c23698d23698f24699025689225689326679526679727669827669a28659b29649d29649f2a63a02a63a22b62a32c61a52c60a62d60a82e5fa92e5eab2f5ead305dae305cb0315bb1325ab3325ab43359b63458b73557b93556ba3655bc3754bd3853bf3952c03a51c13a50c33b4fc43c4ec63d4dc73e4cc83f4bca404acb4149cc4248ce4347cf4446d04545d24644d34743d44842d54a41d74b3fd84c3ed94d3dda4e3cdb503bdd513ade5238df5337e05536e15635e25734e35933e45a31e55c30e65d2fe75e2ee8602de9612bea632aeb6429eb6628ec6726ed6925ee6a24ef6c23ef6e21f06f20f1711ff1731df2741cf3761bf37819f47918f57b17f57d15f67e14f68013f78212f78410f8850ff8870ef8890cf98b0bf98c0af98e09fa9008fa9207fa9407fb9606fb9706fb9906fb9b06fb9d07fc9f07fca108fca309fca50afca60cfca80dfcaa0ffcac11fcae12fcb014fcb216fcb418fbb61afbb81dfbba1ffbbc21fbbe23fac026fac228fac42afac62df9c72ff9c932f9cb35f8cd37f8cf3af7d13df7d340f6d543f6d746f5d949f5db4cf4dd4ff4df53f4e156f3e35af3e55df2e661f2e865f2ea69f1ec6df1ed71f1ef75f1f179f2f27df2f482f3f586f3f68af4f88ef5f992f6fa96f8fb9af9fc9dfafda1fcffa4")),r(Object(a.a)("0d088710078813078916078a19068c1b068d1d068e20068f2206902406912605912805922a05932c05942e05952f059631059733059735049837049938049a3a049a3c049b3e049c3f049c41049d43039e44039e46039f48039f4903a04b03a14c02a14e02a25002a25102a35302a35502a45601a45801a45901a55b01a55c01a65e01a66001a66100a76300a76400a76600a76700a86900a86a00a86c00a86e00a86f00a87100a87201a87401a87501a87701a87801a87a02a87b02a87d03a87e03a88004a88104a78305a78405a78606a68707a68808a68a09a58b0aa58d0ba58e0ca48f0da4910ea3920fa39410a29511a19613a19814a099159f9a169f9c179e9d189d9e199da01a9ca11b9ba21d9aa31e9aa51f99a62098a72197a82296aa2395ab2494ac2694ad2793ae2892b02991b12a90b22b8fb32c8eb42e8db52f8cb6308bb7318ab83289ba3388bb3488bc3587bd3786be3885bf3984c03a83c13b82c23c81c33d80c43e7fc5407ec6417dc7427cc8437bc9447aca457acb4679cc4778cc4977cd4a76ce4b75cf4c74d04d73d14e72d24f71d35171d45270d5536fd5546ed6556dd7566cd8576bd9586ada5a6ada5b69db5c68dc5d67dd5e66de5f65de6164df6263e06363e16462e26561e26660e3685fe4695ee56a5de56b5de66c5ce76e5be76f5ae87059e97158e97257ea7457eb7556eb7655ec7754ed7953ed7a52ee7b51ef7c51ef7e50f07f4ff0804ef1814df1834cf2844bf3854bf3874af48849f48948f58b47f58c46f68d45f68f44f79044f79143f79342f89441f89540f9973ff9983ef99a3efa9b3dfa9c3cfa9e3bfb9f3afba139fba238fca338fca537fca636fca835fca934fdab33fdac33fdae32fdaf31fdb130fdb22ffdb42ffdb52efeb72dfeb82cfeba2cfebb2bfebd2afebe2afec029fdc229fdc328fdc527fdc627fdc827fdca26fdcb26fccd25fcce25fcd025fcd225fbd324fbd524fbd724fad824fada24f9dc24f9dd25f8df25f8e125f7e225f7e425f6e626f6e826f5e926f5eb27f4ed27f3ee27f3f027f2f227f1f426f1f525f0f724f0f921"))},function(t,e,n){"use strict";n(57)},function(t,e,n){"use strict";function r(t,e,n){var r=e[n];if("function"!=typeof r)throw new Error("Attempt to rebind "+n+" which isn't a function on the source object");return function(){for(var n=arguments.length,a=Array(n),o=0;o<n;o++)a[o]=arguments[o];var i=r.apply(e,a);return i===e?t:i}}function a(t,e){for(var n=arguments.length,a=Array(n>2?n-2:0),o=2;o<n;o++)a[o-2]=arguments[o];var i=!0,c=!1,s=void 0;try{for(var u,l=a[Symbol.iterator]();!(i=(u=l.next()).done);i=!0){var f=u.value;t[f]=r(t,e,f)}}catch(t){c=!0,s=t}finally{try{!i&&l.return&&l.return()}finally{if(c)throw s}}return t}e.a=a},function(t,e,n){"use strict";var r=n(51),a=n(154),o=n(50),i=n(2);e.a=function(){function t(t){return Object(a.a)().combine(function(t,e){var r=n&&Object(i.w)(e)?t:c(t,e);return Object(i.w)(r)?t:r})(t,e(t))}var e=r.a,n=!0,c=o.a;return t.algorithm=function(n){return arguments.length?(e=n,t):e},t.merge=function(e){return arguments.length?(c=e,t):c},t.skipUndefined=function(e){return arguments.length?(n=e,t):n},t}},function(t,e,n){"use strict";var r=n(50),a=n(2);e.a=function(){var t=void 0,e=10,n=r.a,o=void 0,i=void 0,c=0,s=void 0,u=function(r){var u=i||Object(a.F)(o),l=Object(a.l)(e).apply(this,arguments),f=r.slice(c,l+c).map(u),h=0,p=Object(a.l)(t);return r.map(function(t,e){return e<c+l-1?p(u(t),e,s):(e>=c+l&&(f.shift(),f.push(u(t,e))),n(f,e,h++,s))})};return u.undefinedValue=function(e){return arguments.length?(t=e,u):t},u.windowSize=function(t){return arguments.length?(e=t,u):e},u.misc=function(t){return arguments.length?(s=t,u):s},u.accumulator=function(t){return arguments.length?(n=t,u):n},u.skipInitial=function(t){return arguments.length?(c=t,u):c},u.sourcePath=function(t){return arguments.length?(o=t,u):o},u.source=function(t){return arguments.length?(i=t,u):i},u}},function(t,e,n){"use strict";var r=n(50),a=n(51),o=n(2);e.a=function(){var t=void 0,e=10,n=r.a,i=a.a,c=0,s=function(r){var a=Object(o.l)(e).apply(this,arguments),s=[],u=0,l=Object(o.l)(t),f=[];return r.forEach(function(t,e){var r=void 0;if(e<c+a-1)return r=l(t,e),f.push(r),void s.push(r);e>=c+a&&s.shift(),s.push(i(t,e)),r=n(s,e,u++),f.push(r),s.pop(),s.push(r)}),f};return s.undefinedValue=function(e){return arguments.length?(t=e,s):t},s.windowSize=function(t){return arguments.length?(e=t,s):e},s.accumulator=function(t){return arguments.length?(n=t,s):n},s.skipInitial=function(t){return arguments.length?(c=t,s):c},s.source=function(t){return arguments.length?(i=t,s):i},s}},function(t,e,n){"use strict";var r=n(50),a=n(51),o=n(2);e.a=function(){var t=Object(o.l)(!1),e=r.a,n=a.a,i=!1,c=!1,s=function(r){var a=i?void 0:[],o=[],s=0,u=0;for(u=0;u<r.length;u++){var l=r[u];a.length>0&&t(l,u,a)?(a&&a.length>0&&o.push(e(a,u,s++)),a=[n(l)]):a&&a.push(n(l))}return c||o.push(e(a,u,s)),o};return s.accumulateTill=function(e){return arguments.length?(t=Object(o.l)(e),s):t},s.accumulator=function(t){return arguments.length?(e=t,s):e},s.value=function(t){return arguments.length?(n=t,s):n},s.discardTillStart=function(t){return arguments.length?(i=t,s):i},s.discardTillEnd=function(t){return arguments.length?(c=t,s):c},s}},function(t,e,n){"use strict";function r(t,e){var n=t.widthRatio,r=void 0===n?.8:n,a=e.xScale,i=e.xAccessor,c=e.plotData;return Math.abs((a(i(Object(o.y)(c)))-a(i(Object(o.s)(c))))/(c.length-1))*r}function a(t){return function(e,n){var r=e.widthRatio,a=void 0===r?.8:r,i=n.xScale,c=n.xAccessor,s=n.plotData,u=c(Object(o.s)(s));return Math.abs(i(t.offset(u,1))-i(u))*a}}e.a=r,e.b=a;var o=n(2)},function(t,e,n){"use strict";n.d(e,"b",function(){return r}),n.d(e,"a",function(){return a});var r=["Solid","ShortDash","ShortDot","ShortDashDot","ShortDashDotDot","Dot","Dash","LongDash","DashDot","LongDashDot","LongDashDotDot"],a=function(t){switch(t){default:case"Solid":return"none";case"ShortDash":return"6, 2";case"ShortDot":return"2, 2";case"ShortDashDot":return"6, 2, 2, 2";case"ShortDashDotDot":return"6, 2, 2, 2, 2, 2";case"Dot":return"2, 6";case"Dash":return"8, 6";case"LongDash":return"16, 6";case"DashDot":return"8, 6, 2, 6";case"LongDashDot":return"16, 6, 2, 6";case"LongDashDotDot":return"16, 6, 2, 6, 2, 6"}}},function(t,e,n){(function(e){function n(t,e){for(var n=-1,r=e.length,a=t.length;++n<r;)t[a+n]=e[n];return t}function r(t,e,o,i,c){var s=-1,u=t.length;for(o||(o=a),c||(c=[]);++s<u;){var l=t[s];e>0&&o(l)?e>1?r(l,e-1,o,i,c):n(c,l):i||(c[c.length]=l)}return c}function a(t){return C(t)||i(t)||!!(S&&t&&t[S])}function o(t){return(t?t.length:0)?r(t,p):[]}function i(t){return s(t)&&x.call(t,"callee")&&(!j.call(t,"callee")||k.call(t)==b)}function c(t){return null!=t&&l(t.length)&&!u(t)}function s(t){return h(t)&&c(t)}function u(t){var e=f(t)?k.call(t):"";return e==y||e==v}function l(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=d}function f(t){var e=typeof t;return!!t&&("object"==e||"function"==e)}function h(t){return!!t&&"object"==typeof t}var p=1/0,d=9007199254740991,b="[object Arguments]",y="[object Function]",v="[object GeneratorFunction]",g="object"==typeof e&&e&&e.Object===Object&&e,m="object"==typeof self&&self&&self.Object===Object&&self,O=g||m||Function("return this")(),w=Object.prototype,x=w.hasOwnProperty,k=w.toString,_=O.Symbol,j=w.propertyIsEnumerable,S=_?_.isConcatSpreadable:void 0,C=Array.isArray;t.exports=o}).call(e,n(211))},function(t,e,n){"use strict";function r(t,e){var n={};for(var r in t)e.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(t,r)&&(n[r]=t[r]);return n}function a(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function i(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var c=n(0),s=n.n(c),u=n(1),l=n.n(u),f=n(157),h=n(2),p=n(45),d=function(){function t(t,e){var n=[],r=!0,a=!1,o=void 0;try{for(var i,c=t[Symbol.iterator]();!(r=(i=c.next()).done)&&(n.push(i.value),!e||n.length!==e);r=!0);}catch(t){a=!0,o=t}finally{try{!r&&c.return&&c.return()}finally{if(a)throw o}}return n}return function(e,n){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return t(e,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),b=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),y=function(t){function e(t){a(this,e);var n=o(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return n.handleEnter=n.handleEnter.bind(n),n.handleLeave=n.handleLeave.bind(n),n.handleWheel=n.handleWheel.bind(n),n.handleMouseMove=n.handleMouseMove.bind(n),n.handleMouseDown=n.handleMouseDown.bind(n),n.handlePanEnd=n.handlePanEnd.bind(n),n.handlePan=n.handlePan.bind(n),n.handleTouchStart=n.handleTouchStart.bind(n),n.handlePinchZoom=n.handlePinchZoom.bind(n),n.handlePinchZoomEnd=n.handlePinchZoomEnd.bind(n),n.handleClick=n.handleClick.bind(n),n.handleRightClick=n.handleRightClick.bind(n),n.handleDrag=n.handleDrag.bind(n),n.handleDragEnd=n.handleDragEnd.bind(n),n.setCursorClass=n.setCursorClass.bind(n),n.saveNode=n.saveNode.bind(n),n.mouseInside=!1,n.mouseInteraction=!0,n.state={panInProgress:!1},n}return i(e,t),b(e,[{key:"saveNode",value:function(t){this.node=t}},{key:"componentWillMount",value:function(){this.focus=this.props.focus}},{key:"componentDidMount",value:function(){this.node&&Object(f.c)(this.node).on(h.a,this.handleEnter).on(h.b,this.handleLeave)}},{key:"componentDidUpdate",value:function(){this.componentDidMount()}},{key:"componentWillUnmount",value:function(){this.node&&Object(f.c)(this.node).on(h.a,null).on(h.b,null)}},{key:"handleEnter",value:function(){var t=f.a,e=this.props.onMouseEnter;if(this.mouseInside=!0,!this.state.panInProgress&&!this.state.dragInProgress){var n=Object(h.i)(this.node);Object(f.c)(n).on(h.c,this.handleMouseMove)}e(t)}},{key:"handleLeave",value:function(t){var e=this.props.onMouseLeave;if(this.mouseInside=!1,!this.state.panInProgress&&!this.state.dragInProgress){var n=Object(h.i)(this.node);Object(f.c)(n).on(h.c,null)}e(t)}},{key:"handleWheel",value:function(t){var e=this.props,n=e.zoom,r=e.onZoom;if(n&&this.focus&&0!==t.deltaY){t.preventDefault();var a=Object(h.C)(t);r(t.deltaY>0?1:-1,a,t)}}},{key:"handleMouseMove",value:function(){var t=f.a,e=this.props,n=e.onMouseMove,r=e.mouseMove;if(this.mouseInteraction&&r&&!this.state.panInProgress){n(Object(f.b)(this.node),"mouse",t)}}},{key:"handleClick",value:function(t){var e=this,n=Object(h.C)(t),r=this.props,a=r.onClick,o=r.onDoubleClick;this.panHappened||this.dragHappened||(this.clicked?(o(n,t),this.clicked=!1):(a(n,t),this.clicked=!0,setTimeout(function(){e.clicked&&(e.clicked=!1)},400)))}},{key:"handleRightClick",value:function(t){t.stopPropagation(),t.preventDefault();var e=this.props,n=e.onContextMenu,r=e.onPanEnd,a=Object(h.C)(t,this.node.getBoundingClientRect());if(Object(h.v)(this.state.panStart)){var o=this.state.panStart,i=o.panStartXScale,c=o.panOrigin,s=o.chartsToPan;this.panHappened&&r(a,i,c,s,t);var u=Object(h.i)(this.node);Object(f.c)(u).on(h.c,null).on(h.d,null),this.setState({panInProgress:!1,panStart:null})}n(a,t)}},{key:"handleDrag",value:function(){var t=f.a;if(this.props.onDrag){this.dragHappened=!0;var e=Object(f.b)(this.node);this.props.onDrag({startPos:this.state.dragStartPosition,mouseXY:e},t)}}},{key:"cancelDrag",value:function(){var t=Object(h.i)(this.node);Object(f.c)(t).on(h.c,this.mouseInside?this.handleMouseMove:null).on(h.d,null),this.setState({dragInProgress:!1}),this.mouseInteraction=!0}},{key:"handleDragEnd",value:function(){var t=f.a,e=Object(f.b)(this.node),n=Object(h.i)(this.node);Object(f.c)(n).on(h.c,this.mouseInside?this.handleMouseMove:null).on(h.d,null),this.dragHappened&&this.props.onDragComplete({mouseXY:e},t),this.setState({dragInProgress:!1}),this.mouseInteraction=!0}},{key:"handleMouseDown",value:function(t){if(0===t.button){var e=this.props,n=e.pan,r=e.xScale,a=e.chartConfig,o=e.onMouseDown,i=this.props.getAllPanConditions;if(this.panHappened=!1,this.dragHappened=!1,this.focus=!0,!this.state.panInProgress&&this.mouseInteraction){var c=Object(h.C)(t),s=Object(p.b)(a,c),u=i().reduce(function(t,e){return{draggable:t.draggable||e.draggable,panEnabled:t.panEnabled&&e.panEnabled}},{draggable:!1,panEnabled:n}),l=u.panEnabled,d=u.draggable,b=l&&!d;if(b){this.setState({panInProgress:b,panStart:{panStartXScale:r,panOrigin:c,chartsToPan:s}});var y=Object(h.i)(this.node);Object(f.c)(y).on(h.c,this.handlePan).on(h.d,this.handlePanEnd)}else if(d){this.setState({panInProgress:!1,dragInProgress:!0,panStart:null,dragStartPosition:c}),this.props.onDragStart({startPos:c},t);var v=Object(h.i)(this.node);Object(f.c)(v).on(h.c,this.handleDrag).on(h.d,this.handleDragEnd)}o(c,s,t)}t.preventDefault()}}},{key:"handlePan",value:function(){var t=f.a,e=this.props,n=e.pan,r=e.onPan;if(n&&r&&Object(h.v)(this.state.panStart)){this.panHappened=!0;var a=this.state.panStart,o=a.panStartXScale,i=a.panOrigin,c=a.chartsToPan,s=this.mouseInteraction?Object(f.b)(this.node):Object(f.d)(this.node)[0];this.lastNewPos=s,r(s,o,i,c,t)}}},{key:"handlePanEnd",value:function(){var t=f.a,e=this.props,n=e.pan,r=e.onPanEnd;if(Object(h.v)(this.state.panStart)){var a=this.state.panStart,o=a.panStartXScale,i=a.panOrigin,c=a.chartsToPan,s=Object(h.i)(this.node);Object(f.c)(s).on(h.c,this.mouseInside?this.handleMouseMove:null).on(h.d,null).on(h.f,null).on(h.e,null),this.panHappened&&n&&r&&r(this.lastNewPos,o,i,c,t),this.setState({panInProgress:!1,panStart:null})}}},{key:"handleTouchStart",value:function(t){this.mouseInteraction=!1;var e=this.props,n=e.pan,r=e.chartConfig,a=e.onMouseMove,o=this.props,i=o.xScale,c=o.onPanEnd;if(1===t.touches.length){this.panHappened=!1;var s=Object(h.O)(Object(h.r)(t.touches[0]),t);if(n){var u=Object(p.b)(r,s);this.setState({panInProgress:!0,panStart:{panStartXScale:i,panOrigin:s,chartsToPan:u}}),a(s,"touch",t);var l=Object(h.i)(this.node);Object(f.c)(l).on(h.f,this.handlePan,!1).on(h.e,this.handlePanEnd,!1)}}else if(2===t.touches.length){var d=this.state,b=d.panInProgress,y=d.panStart;if(b&&n&&c){var v=y.panStartXScale,g=y.panOrigin,m=y.chartsToPan,O=Object(h.i)(this.node);Object(f.c)(O).on(h.c,this.mouseInside?this.handleMouseMove:null).on(h.d,null).on(h.f,this.handlePinchZoom,!1).on(h.e,this.handlePinchZoomEnd,!1);var w=Object(h.O)(Object(h.r)(t.touches[0]),t),x=Object(h.O)(Object(h.r)(t.touches[1]),t);this.panHappened&&n&&c&&c(this.lastNewPos,v,g,m,t),this.setState({panInProgress:!1,pinchZoomStart:{xScale:i,touch1Pos:w,touch2Pos:x,range:i.range(),chartsToPan:m}})}}}},{key:"handlePinchZoom",value:function(){var t=f.a,e=Object(f.d)(this.node),n=d(e,2),a=n[0],o=n[1],i=this.props,c=i.xScale,s=i.zoom,u=i.onPinchZoom,l=this.state.pinchZoomStart,h=(l.chartsToPan,r(l,["chartsToPan"]));s&&u&&u(h,{touch1Pos:a,touch2Pos:o,xScale:c},t)}},{key:"handlePinchZoomEnd",value:function(){var t=f.a,e=Object(h.i)(this.node);Object(f.c)(e).on(h.f,null).on(h.e,null);var n=this.props,a=n.zoom,o=n.onPinchZoomEnd,i=this.state.pinchZoomStart,c=(i.chartsToPan,r(i,["chartsToPan"]));a&&o&&o(c,t),this.setState({pinchZoomStart:null})}},{key:"setCursorClass",value:function(t){t!==this.state.cursorOverrideClass&&this.setState({cursorOverrideClass:t})}},{key:"render",value:function(){var t=this.props,e=t.height,n=t.width,r=null!=this.state.cursorOverrideClass?this.state.cursorOverrideClass:this.state.panInProgress?"react-stockcharts-grabbing-cursor":"react-stockcharts-crosshair-cursor";return s.a.createElement("rect",{ref:this.saveNode,className:r,width:n,height:e,style:{opacity:0},onWheel:this.handleWheel,onMouseDown:this.handleMouseDown,onClick:this.handleClick,onContextMenu:this.handleRightClick,onTouchStart:this.handleTouchStart})}}]),e}(c.Component);y.propTypes={mouseMove:l.a.bool.isRequired,zoom:l.a.bool.isRequired,pan:l.a.bool.isRequired,panSpeedMultiplier:l.a.number.isRequired,focus:l.a.bool.isRequired,width:l.a.number.isRequired,height:l.a.number.isRequired,chartConfig:l.a.array,xScale:l.a.func.isRequired,xAccessor:l.a.func.isRequired,getAllPanConditions:l.a.func.isRequired,onMouseMove:l.a.func,onMouseEnter:l.a.func,onMouseLeave:l.a.func,onZoom:l.a.func,onPinchZoom:l.a.func,onPinchZoomEnd:l.a.func.isRequired,onPan:l.a.func,onPanEnd:l.a.func,onDragStart:l.a.func,onDrag:l.a.func,onDragComplete:l.a.func,onClick:l.a.func,onDoubleClick:l.a.func,onContextMenu:l.a.func,onMouseDown:l.a.func,children:l.a.node},y.defaultProps={mouseMove:!1,zoom:!1,pan:!1,panSpeedMultiplier:1,focus:!1,onDragComplete:h.D},e.a=y},function(t,e,n){"use strict";function r(){return new a}function a(){this._="@"+(++o).toString(36)}var o=0;a.prototype=r.prototype={constructor:a,get:function(t){for(var e=this._;!(e in t);)if(!(t=t.parentNode))return;return t[e]},set:function(t,e){return t[this._]=e},remove:function(t){return this._ in t&&delete t[this._]},toString:function(){return this._}}},function(t,e,n){"use strict";var r=n(98),a=n(72);e.a=function(t){var e=Object(r.a)();return e.changedTouches&&(e=e.changedTouches[0]),Object(a.a)(t,e)}},function(t,e,n){"use strict";var r=n(33);e.a=function(t){return"string"==typeof t?new r.a([[document.querySelector(t)]],[document.documentElement]):new r.a([[t]],r.b)}},function(t,e,n){"use strict";var r=n(33),a=n(100);e.a=function(t){"function"!=typeof t&&(t=Object(a.a)(t));for(var e=this._groups,n=e.length,o=new Array(n),i=0;i<n;++i)for(var c,s,u=e[i],l=u.length,f=o[i]=new Array(l),h=0;h<l;++h)(c=u[h])&&(s=t.call(c,c.__data__,h,u))&&("__data__"in c&&(s.__data__=c.__data__),f[h]=s);return new r.a(o,this._parents)}},function(t,e,n){"use strict";var r=n(33),a=n(159);e.a=function(t){"function"!=typeof t&&(t=Object(a.a)(t));for(var e=this._groups,n=e.length,o=[],i=[],c=0;c<n;++c)for(var s,u=e[c],l=u.length,f=0;f<l;++f)(s=u[f])&&(o.push(t.call(s,s.__data__,f,u)),i.push(s));return new r.a(o,i)}},function(t,e,n){"use strict";var r=n(33),a=n(158);e.a=function(t){"function"!=typeof t&&(t=Object(a.a)(t));for(var e=this._groups,n=e.length,o=new Array(n),i=0;i<n;++i)for(var c,s=e[i],u=s.length,l=o[i]=[],f=0;f<u;++f)(c=s[f])&&t.call(c,c.__data__,f,s)&&l.push(c);return new r.a(o,this._parents)}},function(t,e,n){"use strict";function r(t,e,n,r,a,o){for(var c,s=0,u=e.length,l=o.length;s<l;++s)(c=e[s])?(c.__data__=o[s],r[s]=c):n[s]=new i.a(t,o[s]);for(;s<u;++s)(c=e[s])&&(a[s]=c)}function a(t,e,n,r,a,o,c){var u,l,f,h={},p=e.length,d=o.length,b=new Array(p);for(u=0;u<p;++u)(l=e[u])&&(b[u]=f=s+c.call(l,l.__data__,u,e),f in h?a[u]=l:h[f]=l);for(u=0;u<d;++u)f=s+c.call(t,o[u],u,o),(l=h[f])?(r[u]=l,l.__data__=o[u],h[f]=null):n[u]=new i.a(t,o[u]);for(u=0;u<p;++u)(l=e[u])&&h[b[u]]===l&&(a[u]=l)}var o=n(33),i=n(160),c=n(313),s="$";e.a=function(t,e){if(!t)return v=new Array(this.size()),p=-1,this.each(function(t){v[++p]=t}),v;var n=e?a:r,i=this._parents,s=this._groups;"function"!=typeof t&&(t=Object(c.a)(t));for(var u=s.length,l=new Array(u),f=new Array(u),h=new Array(u),p=0;p<u;++p){var d=i[p],b=s[p],y=b.length,v=t.call(d,d&&d.__data__,p,i),g=v.length,m=f[p]=new Array(g),O=l[p]=new Array(g);n(d,b,m,O,h[p]=new Array(y),v,e);for(var w,x,k=0,_=0;k<g;++k)if(w=m[k]){for(k>=_&&(_=k+1);!(x=O[_])&&++_<g;);w._next=x||null}}return l=new o.a(l,i),l._enter=f,l._exit=h,l}},function(t,e,n){"use strict";e.a=function(t){return function(){return t}}},function(t,e,n){"use strict";var r=n(161),a=n(33);e.a=function(){return new a.a(this._exit||this._groups.map(r.a),this._parents)}},function(t,e,n){"use strict";var r=n(33);e.a=function(t){for(var e=this._groups,n=t._groups,a=e.length,o=n.length,i=Math.min(a,o),c=new Array(a),s=0;s<i;++s)for(var u,l=e[s],f=n[s],h=l.length,p=c[s]=new Array(h),d=0;d<h;++d)(u=l[d]||f[d])&&(p[d]=u);for(;s<a;++s)c[s]=e[s];return new r.a(c,this._parents)}},function(t,e,n){"use strict";e.a=function(){for(var t=this._groups,e=-1,n=t.length;++e<n;)for(var r,a=t[e],o=a.length-1,i=a[o];--o>=0;)(r=a[o])&&(i&&i!==r.nextSibling&&i.parentNode.insertBefore(r,i),i=r);return this}},function(t,e,n){"use strict";function r(t,e){return t<e?-1:t>e?1:t>=e?0:NaN}var a=n(33);e.a=function(t){function e(e,n){return e&&n?t(e.__data__,n.__data__):!e-!n}t||(t=r);for(var n=this._groups,o=n.length,i=new Array(o),c=0;c<o;++c){for(var s,u=n[c],l=u.length,f=i[c]=new Array(l),h=0;h<l;++h)(s=u[h])&&(f[h]=s);f.sort(e)}return new a.a(i,this._parents).order()}},function(t,e,n){"use strict";e.a=function(){var t=arguments[0];return arguments[0]=this,t.apply(null,arguments),this}},function(t,e,n){"use strict";e.a=function(){var t=new Array(this.size()),e=-1;return this.each(function(){t[++e]=this}),t}},function(t,e,n){"use strict";e.a=function(){for(var t=this._groups,e=0,n=t.length;e<n;++e)for(var r=t[e],a=0,o=r.length;a<o;++a){var i=r[a];if(i)return i}return null}},function(t,e,n){"use strict";e.a=function(){var t=0;return this.each(function(){++t}),t}},function(t,e,n){"use strict";e.a=function(){return!this.node()}},function(t,e,n){"use strict";e.a=function(t){for(var e=this._groups,n=0,r=e.length;n<r;++n)for(var a,o=e[n],i=0,c=o.length;i<c;++i)(a=o[i])&&t.call(a,a.__data__,i,o);return this}},function(t,e,n){"use strict";function r(t){return function(){this.removeAttribute(t)}}function a(t){return function(){this.removeAttributeNS(t.space,t.local)}}function o(t,e){return function(){this.setAttribute(t,e)}}function i(t,e){return function(){this.setAttributeNS(t.space,t.local,e)}}function c(t,e){return function(){var n=e.apply(this,arguments);null==n?this.removeAttribute(t):this.setAttribute(t,n)}}function s(t,e){return function(){var n=e.apply(this,arguments);null==n?this.removeAttributeNS(t.space,t.local):this.setAttributeNS(t.space,t.local,n)}}var u=n(96);e.a=function(t,e){var n=Object(u.a)(t);if(arguments.length<2){var l=this.node();return n.local?l.getAttributeNS(n.space,n.local):l.getAttribute(n)}return this.each((null==e?n.local?a:r:"function"==typeof e?n.local?s:c:n.local?i:o)(n,e))}},function(t,e,n){"use strict";function r(t){return function(){delete this[t]}}function a(t,e){return function(){this[t]=e}}function o(t,e){return function(){var n=e.apply(this,arguments);null==n?delete this[t]:this[t]=n}}e.a=function(t,e){return arguments.length>1?this.each((null==e?r:"function"==typeof e?o:a)(t,e)):this.node()[t]}},function(t,e,n){"use strict";function r(t){return t.trim().split(/^|\s+/)}function a(t){return t.classList||new o(t)}function o(t){this._node=t,this._names=r(t.getAttribute("class")||"")}function i(t,e){for(var n=a(t),r=-1,o=e.length;++r<o;)n.add(e[r])}function c(t,e){for(var n=a(t),r=-1,o=e.length;++r<o;)n.remove(e[r])}function s(t){return function(){i(this,t)}}function u(t){return function(){c(this,t)}}function l(t,e){return function(){(e.apply(this,arguments)?i:c)(this,t)}}o.prototype={add:function(t){this._names.indexOf(t)<0&&(this._names.push(t),this._node.setAttribute("class",this._names.join(" ")))},remove:function(t){var e=this._names.indexOf(t);e>=0&&(this._names.splice(e,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(t){return this._names.indexOf(t)>=0}},e.a=function(t,e){var n=r(t+"");if(arguments.length<2){for(var o=a(this.node()),i=-1,c=n.length;++i<c;)if(!o.contains(n[i]))return!1;return!0}return this.each(("function"==typeof e?l:e?s:u)(n,e))}},function(t,e,n){"use strict";function r(){this.textContent=""}function a(t){return function(){this.textContent=t}}function o(t){return function(){var e=t.apply(this,arguments);this.textContent=null==e?"":e}}e.a=function(t){return arguments.length?this.each(null==t?r:("function"==typeof t?o:a)(t)):this.node().textContent}},function(t,e,n){"use strict";function r(){this.innerHTML=""}function a(t){return function(){this.innerHTML=t}}function o(t){return function(){var e=t.apply(this,arguments);this.innerHTML=null==e?"":e}}e.a=function(t){return arguments.length?this.each(null==t?r:("function"==typeof t?o:a)(t)):this.node().innerHTML}},function(t,e,n){"use strict";function r(){this.nextSibling&&this.parentNode.appendChild(this)}e.a=function(){return this.each(r)}},function(t,e,n){"use strict";function r(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}e.a=function(){return this.each(r)}},function(t,e,n){"use strict";var r=n(95);e.a=function(t){var e="function"==typeof t?t:Object(r.a)(t);return this.select(function(){return this.appendChild(e.apply(this,arguments))})}},function(t,e,n){"use strict";function r(){return null}var a=n(95),o=n(100);e.a=function(t,e){var n="function"==typeof t?t:Object(a.a)(t),i=null==e?r:"function"==typeof e?e:Object(o.a)(e);return this.select(function(){return this.insertBefore(n.apply(this,arguments),i.apply(this,arguments)||null)})}},function(t,e,n){"use strict";function r(){var t=this.parentNode;t&&t.removeChild(this)}e.a=function(){return this.each(r)}},function(t,e,n){"use strict";e.a=function(t){return arguments.length?this.property("__data__",t):this.node().__data__}},function(t,e,n){"use strict";function r(t,e,n){var r=Object(i.a)(t),a=r.CustomEvent;"function"==typeof a?a=new a(e,n):(a=r.document.createEvent("Event"),n?(a.initEvent(e,n.bubbles,n.cancelable),a.detail=n.detail):a.initEvent(e,!1,!1)),t.dispatchEvent(a)}function a(t,e){return function(){return r(this,t,e)}}function o(t,e){return function(){return r(this,t,e.apply(this,arguments))}}var i=n(101);e.a=function(t,e){return this.each(("function"==typeof e?o:a)(t,e))}},function(t,e,n){"use strict";n(33)},function(t,e,n){"use strict";n(98),n(72)},function(t,e,n){"use strict";var r=n(98),a=n(72);e.a=function(t,e){null==e&&(e=Object(r.a)().touches);for(var n=0,o=e?e.length:0,i=new Array(o);n<o;++n)i[n]=Object(a.a)(t,e[n]);return i}},function(t,e,n){"use strict";function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function a(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function o(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var i=n(0),c=n.n(i),s=n(1),u=n.n(s),l=n(2),f=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),h=Object(l.p)("CanvasContainer"),p=function(t){function e(t){r(this,e);var n=a(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return n.setDrawCanvas=n.setDrawCanvas.bind(n),n.drawCanvas={},n}return o(e,t),f(e,[{key:"setDrawCanvas",value:function(t){Object(l.v)(t)?this.drawCanvas[t.id]=t.getContext("2d"):this.drawCanvas={}}},{key:"getCanvasContexts",value:function(){if(Object(l.v)(this.drawCanvas.axes))return this.drawCanvas}},{key:"render",value:function(){var t=this.props,e=t.height,n=t.width,r=t.type,a=t.zIndex,o=t.ratio;return"svg"===r?null:(h("using ratio ",o),c.a.createElement("div",{style:{position:"absolute",zIndex:a}},c.a.createElement("canvas",{id:"bg",ref:this.setDrawCanvas,width:n*o,height:e*o,style:{position:"absolute",width:n,height:e}}),c.a.createElement("canvas",{id:"axes",ref:this.setDrawCanvas,width:n*o,height:e*o,style:{position:"absolute",width:n,height:e}}),c.a.createElement("canvas",{id:"mouseCoord",ref:this.setDrawCanvas,width:n*o,height:e*o,style:{position:"absolute",width:n,height:e}})))}}]),e}(i.Component);p.propTypes={width:u.a.number.isRequired,height:u.a.number.isRequired,type:u.a.string.isRequired,zIndex:u.a.number,ratio:u.a.number.isRequired},e.a=p},function(t,e,n){"use strict";function r(t,e,n,r){var a=t.lastItem,o=t.lastItemX,i=e(a),c=n.range(),s=f(c,2),u=s[0];return(s[1]-u)/(o-u)*(i-r)+r}function a(t,e,n,a){function i(i,f,p,d){var b=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{},y=b.currentPlotData,v=b.currentDomain,g=b.fallbackStart,m=b.fallbackEnd;if(t)return{plotData:i,domain:f};var O=Object(l.s)(f),w=Object(l.y)(f),x=f,k=u(i,O,w,p);1===k.length&&Object(l.v)(g)&&(O=g,w=r(m,p,d,O),x=[O,w],k=u(i,O,w,p)),"left"!==e&&"both"!==e&&!0!==e||(x=[Math.max(O,p(Object(l.s)(i))),x[1]]),"right"!==e&&"both"!==e&&!0!==e||(x=[x[0],Math.min(w,p(Object(l.y)(i)))]);var _=x,j=d.copy().domain(_),S=Math.floor(j(p(Object(l.y)(k)))-j(p(Object(l.s)(k)))),C=void 0,E=void 0,P=Object(l.y)(j.range())-Object(l.s)(j.range());if(h("Trying to show "+k.length+" points in "+S+"px, I can show up to "+(c(S,n)-1)+" points in that width. Also FYI the entire chart width is "+P+"px and pointsPerPxThreshold is "+n),o(S,k.length,n,a))C=k,E=_,h("AND IT WORKED");else if(P>c(S,n)&&Object(l.v)(m)){C=k;var T=r(m,p,d,Object(l.s)(_));E=[Object(l.s)(_),T];var M=j.copy().domain(E),A=Math.floor(M(p(Object(l.y)(C)))-M(p(Object(l.s)(C))));h("and ouch, that is too much, so instead showing "+C.length+" in "+A+"px")}else{C=y||k.slice(k.length-s(S,n)),E=v||[p(Object(l.s)(C)),p(Object(l.y)(C))];var D=j.copy().domain(E),F=Math.floor(D(p(Object(l.y)(C)))-D(p(Object(l.s)(C))));h("and ouch, that is too much, so instead showing "+C.length+" in "+F+"px")}return{plotData:C,domain:E}}return{filterData:i}}function o(t,e,n,r){return e>i(t,r)&&e<c(t,n)}function i(t,e){return Math.max(1,Math.ceil(t*e))}function c(t,e){return Math.floor(t*e)}function s(t,e){return Math.floor(.97*c(t,e))}function u(t,e,n,r){var a=Object(l.n)(t,e,r).right,o=Object(l.n)(t,n,r).left;return t.slice(a,o+1)}var l=n(2),f=function(){function t(t,e){var n=[],r=!0,a=!1,o=void 0;try{for(var i,c=t[Symbol.iterator]();!(r=(i=c.next()).done)&&(n.push(i.value),!e||n.length!==e);r=!0);}catch(t){a=!0,o=t}finally{try{!r&&c.return&&c.return()}finally{if(a)throw o}}return n}return function(e,n){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return t(e,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),h=Object(l.p)("evaluator");e.a=function(t){var e=t.xScale,n=t.useWholeData,r=t.clamp,o=t.pointsPerPxThreshold,i=t.minPointsPerPxThreshold;return a(n||Object(l.w)(e.invert),r,o,i)}},function(t,e,n){"use strict";function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function a(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function o(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var i=n(0),c=n.n(i),s=n(1),u=n.n(s),l=n(94),f=n(2),h=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),p=function(t){function e(){return r(this,e),a(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return o(e,t),h(e,[{key:"componentDidMount",value:function(){if("svg"!==this.context.chartCanvasType&&Object(f.v)(this.context.getCanvasContexts)){var t=this.context.getCanvasContexts();t&&e.drawOnCanvas(t.bg,this.props,this.context,this.props.children)}}},{key:"componentDidUpdate",value:function(){this.componentDidMount()}},{key:"render",value:function(){if("svg"!==this.context.chartCanvasType)return null;var t=this.props,e=t.x,n=t.y,r=t.fill,a=t.opacity,o=t.stroke,i=t.strokeOpacity,s=t.fontFamily,u=t.fontSize,l=t.textAnchor,f={x:e,y:n,fill:r,opacity:a,stroke:o,strokeOpacity:i,fontFamily:s,fontSize:u,textAnchor:l};return c.a.createElement("text",f,"this.props.children(interval)")}}]),e}(l.a);p.drawOnCanvas=function(t,e,n,r){var a=n.interval;t.clearRect(-1,-1,t.canvas.width+2,t.canvas.height+2),t.save(),t.setTransform(1,0,0,1,0,0),t.translate(.5,.5);var o=e.x,i=e.y,c=e.fill,s=e.opacity,u=e.stroke,l=e.strokeOpacity,h=e.fontFamily,p=e.fontSize,d=e.textAnchor,b=r(a);t.strokeStyle=Object(f.t)(u,l),t.font=p+"px "+h,t.fillStyle=Object(f.t)(c,s),t.textAlign="middle"===d?"center":d,"none"!==u&&t.strokeText(b,o,i),t.fillText(b,o,i),t.restore()},p.propTypes={x:u.a.number.isRequired,y:u.a.number.isRequired,fontFamily:u.a.string,fontSize:u.a.number.isRequired,fill:u.a.string,stroke:u.a.string,opacity:u.a.number,strokeOpacity:u.a.number,textAnchor:u.a.string,children:u.a.func},p.defaultProps={opacity:.3,fill:"#9E7523",stroke:"#9E7523",strokeOpacity:1,fontFamily:"Helvetica Neue, Helvetica, Arial, sans-serif",fontSize:12,textAnchor:"middle"},p.contextTypes={interval:u.a.string.isRequired,getCanvasContexts:u.a.func,chartCanvasType:u.a.string}},function(t,e,n){"use strict";function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function a(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function o(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var i=n(0),c=n.n(i),s=n(1),u=n.n(s),l=n(40),f=n(49),h=n(2),p=function(){function t(t,e){var n=[],r=!0,a=!1,o=void 0;try{for(var i,c=t[Symbol.iterator]();!(r=(i=c.next()).done)&&(n.push(i.value),!e||n.length!==e);r=!0);}catch(t){a=!0,o=t}finally{try{!r&&c.return&&c.return()}finally{if(a)throw o}}return n}return function(e,n){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return t(e,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),d=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),b=function(t){function e(t){r(this,e);var n=a(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return n.handleZoomOut=n.handleZoomOut.bind(n),n.handleZoomIn=n.handleZoomIn.bind(n),n.zoom=n.zoom.bind(n),n}return o(e,t),d(e,[{key:"zoom",value:function(t){var e=this,n=this.context,r=n.xAxisZoom,a=n.xScale,o=n.plotData,i=n.xAccessor,c=a(i(Object(h.y)(o))),s=this.props.zoomMultiplier,u=t>0?1*s:1/s,l=a.domain(),d=p(l,2),b=d[0],y=d[1],v=a.range().map(function(t){return c+(t-c)*u}).map(a.invert),g=p(v,2),m=g[0],O=g[1],w=Object(f.c)(b,m),x=Object(f.c)(y,O),k=[.25,.3,.5,.6,.75,1].map(function(t){return[w(t),x(t)]});this.interval=setInterval(function(){r(k.shift()),0===k.length&&(clearInterval(e.interval),delete e.interval)},10)}},{key:"handleZoomOut",value:function(){this.interval||this.zoom(1)}},{key:"handleZoomIn",value:function(){this.interval||this.zoom(-1)}},{key:"render",value:function(){var t=this.context.chartConfig,e=t.width,n=t.height,r=this.props,a=r.size,o=r.heightFromBase,i=r.rx,s=r.ry,u=this.props,f=u.stroke,h=u.strokeOpacity,d=u.fill,b=u.strokeWidth,y=u.fillOpacity,v=this.props,g=v.textFill,m=v.textStrokeWidth,O=this.props.onReset,w=Math.round(e/2),x=n-o,k=p(a,2),_=k[0],j=k[1],S=Math.round(x+j/2),C=w,E=Object(l.a)(),P=w-_-2*b;E.moveTo(P-6,S),E.lineTo(P+6,S),E.closePath();var T=Object(l.a)(),M=w+_+2*b;return T.moveTo(M-6,S),T.lineTo(M+6,S),T.moveTo(M,S-5),T.lineTo(M,S+5),c.a.createElement("g",{className:"react-stockcharts-zoom-button"},c.a.createElement("rect",{x:P-_/2,y:x,rx:i,ry:s,height:j,width:_,fill:d,fillOpacity:y,stroke:f,strokeOpacity:h,strokeWidth:b}),c.a.createElement("path",{d:E.toString(),stroke:g,strokeWidth:m}),c.a.createElement("rect",{x:C-_/2,y:x,rx:i,ry:s,height:j,width:_,fill:d,fillOpacity:y,stroke:f,strokeOpacity:h,strokeWidth:b}),c.a.createElement("g",{transform:"translate ("+C+", "+(x+j/4)+") scale(.14)"},c.a.createElement("path",{d:"M31 13C23.4 5.3 12.8.5 1.1.5c-23.3 0-42.3 19-42.3 42.5s18.9 42.5 42.3 42.5c13.8 0 26-6.6 33.7-16.9l-16.5-1.8C13.5 70.4 7.5 72.5 1 72.5c-16.2 0-29.3-13.2-29.3-29.4S-15.2 13.7 1 13.7c8.1 0 15.4 3.3 20.7 8.6l-10.9 11h32.5V.5L31 13z",fill:g})),c.a.createElement("rect",{x:M-_/2,y:x,rx:i,ry:s,height:j,width:_,fill:d,fillOpacity:y,stroke:f,strokeOpacity:h,strokeWidth:b}),c.a.createElement("path",{d:T.toString(),stroke:g,strokeWidth:m}),c.a.createElement("rect",{className:"react-stockcharts-enable-interaction out",onClick:this.handleZoomOut,x:P-_/2,y:x,rx:i,ry:s,height:j,width:_,fill:"none"}),c.a.createElement("rect",{className:"react-stockcharts-enable-interaction reset",onClick:O,x:C-_/2,y:x,rx:i,ry:s,height:j,width:_,fill:"none"}),c.a.createElement("rect",{className:"react-stockcharts-enable-interaction in",onClick:this.handleZoomIn,x:M-_/2,y:x,rx:i,ry:s,height:j,width:_,fill:"none"}))}}]),e}(i.Component);b.propTypes={zoomMultiplier:u.a.number.isRequired,size:u.a.array.isRequired,heightFromBase:u.a.number.isRequired,rx:u.a.number.isRequired,ry:u.a.number.isRequired,stroke:u.a.string.isRequired,strokeWidth:u.a.number.isRequired,strokeOpacity:u.a.number.isRequired,fill:u.a.string.isRequired,fillOpacity:u.a.number.isRequired,fontSize:u.a.number.isRequired,textDy:u.a.string.isRequired,textFill:u.a.string.isRequired,textStrokeWidth:u.a.number.isRequired,onReset:u.a.func},b.defaultProps={size:[30,24],heightFromBase:50,rx:3,ry:3,stroke:"#000000",strokeOpacity:.3,strokeWidth:1,fill:"#D6D6D6",fillOpacity:.4,fontSize:16,textDy:".3em",textFill:"#000000",textStrokeWidth:2,zoomMultiplier:1.5,onReset:h.D},b.contextTypes={xScale:u.a.func.isRequired,chartConfig:u.a.object.isRequired,plotData:u.a.array.isRequired,xAccessor:u.a.func.isRequired,xAxisZoom:u.a.func.isRequired},e.a=b},function(t,e,n){"use strict";function r(){this._x0=this._y0=this._x1=this._y1=null,this._=""}function a(){return new r}var o=Math.PI,i=2*o,c=i-1e-6;r.prototype=a.prototype={constructor:r,moveTo:function(t,e){this._+="M"+(this._x0=this._x1=+t)+","+(this._y0=this._y1=+e)},closePath:function(){null!==this._x1&&(this._x1=this._x0,this._y1=this._y0,this._+="Z")},lineTo:function(t,e){this._+="L"+(this._x1=+t)+","+(this._y1=+e)},quadraticCurveTo:function(t,e,n,r){this._+="Q"+ +t+","+ +e+","+(this._x1=+n)+","+(this._y1=+r)},bezierCurveTo:function(t,e,n,r,a,o){this._+="C"+ +t+","+ +e+","+ +n+","+ +r+","+(this._x1=+a)+","+(this._y1=+o)},arcTo:function(t,e,n,r,a){t=+t,e=+e,n=+n,r=+r,a=+a;var i=this._x1,c=this._y1,s=n-t,u=r-e,l=i-t,f=c-e,h=l*l+f*f;if(a<0)throw new Error("negative radius: "+a);if(null===this._x1)this._+="M"+(this._x1=t)+","+(this._y1=e);else if(h>1e-6)if(Math.abs(f*s-u*l)>1e-6&&a){var p=n-i,d=r-c,b=s*s+u*u,y=p*p+d*d,v=Math.sqrt(b),g=Math.sqrt(h),m=a*Math.tan((o-Math.acos((b+h-y)/(2*v*g)))/2),O=m/g,w=m/v;Math.abs(O-1)>1e-6&&(this._+="L"+(t+O*l)+","+(e+O*f)),this._+="A"+a+","+a+",0,0,"+ +(f*p>l*d)+","+(this._x1=t+w*s)+","+(this._y1=e+w*u)}else this._+="L"+(this._x1=t)+","+(this._y1=e);else;},arc:function(t,e,n,r,a,s){t=+t,e=+e,n=+n;var u=n*Math.cos(r),l=n*Math.sin(r),f=t+u,h=e+l,p=1^s,d=s?r-a:a-r;if(n<0)throw new Error("negative radius: "+n);null===this._x1?this._+="M"+f+","+h:(Math.abs(this._x1-f)>1e-6||Math.abs(this._y1-h)>1e-6)&&(this._+="L"+f+","+h),n&&(d<0&&(d=d%i+i),d>c?this._+="A"+n+","+n+",0,1,"+p+","+(t-u)+","+(e-l)+"A"+n+","+n+",0,1,"+p+","+(this._x1=f)+","+(this._y1=h):d>1e-6&&(this._+="A"+n+","+n+",0,"+ +(d>=o)+","+p+","+(this._x1=t+n*Math.cos(a))+","+(this._y1=e+n*Math.sin(a))))},rect:function(t,e,n,r){this._+="M"+(this._x0=this._x1=+t)+","+(this._y0=this._y1=+e)+"h"+ +n+"v"+ +r+"h"+-n+"Z"},toString:function(){return this._}},e.a=a},function(t,e,n){"use strict";function r(t){var e=t.yAccessor,n=t.baseAt,r=t.className,a=t.opacity,i=t.stroke,c=t.strokeWidth,l=t.fill;return o.a.createElement("g",{className:r},o.a.createElement(s.a,{yAccessor:e,stroke:i,fill:"none",strokeWidth:c,hoverHighlight:!1}),o.a.createElement(u.a,{yAccessor:e,base:n,stroke:"none",fill:l,opacity:a}))}var a=n(0),o=n.n(a),i=n(1),c=n.n(i),s=n(52),u=n(106);r.propTypes={stroke:c.a.string,strokeWidth:c.a.number,fill:c.a.string.isRequired,opacity:c.a.number.isRequired,className:c.a.string,yAccessor:c.a.func.isRequired,baseAt:c.a.func},r.defaultProps={stroke:"#4682B4",strokeWidth:1,opacity:.5,fill:"#4682B4",className:"react-stockcharts-area"},e.a=r},function(t,e,n){"use strict";n(40),n(43),n(60)},function(t,e,n){"use strict";n(43),n(347),n(348),n(60)},function(t,e,n){"use strict";e.a=function(t,e){return e<t?-1:e>t?1:e>=t?0:NaN}},function(t,e,n){"use strict";e.a=function(t){return t}},function(t,e,n){"use strict";n(164),n(163),n(165)},function(t,e,n){"use strict";n(40),n(167),n(43),n(103),n(166)},function(t,e,n){"use strict";var r=(n(40),n(168)),a=n(169),o=n(170),i=n(171),c=n(172),s=n(173),u=n(174);n(43),r.a,a.a,o.a,c.a,i.a,s.a,u.a},function(t,e,n){"use strict";function r(t){this._context=t}var a=n(74),o=n(75);r.prototype={areaStart:a.a,areaEnd:a.a,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(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._x2=t,this._y2=e;break;case 1:this._point=2,this._x3=t,this._y3=e;break;case 2:this._point=3,this._x4=t,this._y4=e,this._context.moveTo((this._x0+4*this._x1+t)/6,(this._y0+4*this._y1+e)/6);break;default:Object(o.c)(this,t,e)}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}}},function(t,e,n){"use strict";function r(t){this._context=t}var a=n(75);r.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(t,e){switch(t=+t,e=+e,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+t)/6,r=(this._y0+4*this._y1+e)/6;this._line?this._context.lineTo(n,r):this._context.moveTo(n,r);break;case 3:this._point=4;default:Object(a.c)(this,t,e)}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}}},function(t,e,n){"use strict";function r(t,e){this._basis=new a.a(t),this._beta=e}var a=n(75);r.prototype={lineStart:function(){this._x=[],this._y=[],this._basis.lineStart()},lineEnd:function(){var t=this._x,e=this._y,n=t.length-1;if(n>0)for(var r,a=t[0],o=e[0],i=t[n]-a,c=e[n]-o,s=-1;++s<=n;)r=s/n,this._basis.point(this._beta*t[s]+(1-this._beta)*(a+r*i),this._beta*e[s]+(1-this._beta)*(o+r*c));this._x=this._y=null,this._basis.lineEnd()},point:function(t,e){this._x.push(+t),this._y.push(+e)}};!function t(e){function n(t){return 1===e?new a.a(t):new r(t,e)}return n.beta=function(e){return t(+e)},n}(.85)},function(t,e,n){"use strict";function r(t,e){this._context=t,this._alpha=e}var a=n(175),o=n(74),i=n(104);r.prototype={areaStart:o.a,areaEnd:o.a,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(t,e){if(t=+t,e=+e,this._point){var n=this._x2-t,r=this._y2-e;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=t,this._y3=e;break;case 1:this._point=2,this._context.moveTo(this._x4=t,this._y4=e);break;case 2:this._point=3,this._x5=t,this._y5=e;break;default:Object(i.b)(this,t,e)}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=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};!function t(e){function n(t){return e?new r(t,e):new a.a(t,0)}return n.alpha=function(e){return t(+e)},n}(.5)},function(t,e,n){"use strict";function r(t,e){this._context=t,this._alpha=e}var a=n(176),o=n(104);r.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(t,e){if(t=+t,e=+e,this._point){var n=this._x2-t,r=this._y2-e;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:Object(o.b)(this,t,e)}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=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};!function t(e){function n(t){return e?new r(t,e):new a.a(t,0)}return n.alpha=function(e){return t(+e)},n}(.5)},function(t,e,n){"use strict";function r(t){this._context=t}var a=n(74);r.prototype={areaStart:a.a,areaEnd:a.a,lineStart:function(){this._point=0},lineEnd:function(){this._point&&this._context.closePath()},point:function(t,e){t=+t,e=+e,this._point?this._context.lineTo(t,e):(this._point=1,this._context.moveTo(t,e))}}},function(t,e,n){"use strict";function r(t){return t<0?-1:1}function a(t,e,n){var a=t._x1-t._x0,o=e-t._x1,i=(t._y1-t._y0)/(a||o<0&&-0),c=(n-t._y1)/(o||a<0&&-0),s=(i*o+c*a)/(a+o);return(r(i)+r(c))*Math.min(Math.abs(i),Math.abs(c),.5*Math.abs(s))||0}function o(t,e){var n=t._x1-t._x0;return n?(3*(t._y1-t._y0)/n-e)/2:e}function i(t,e,n){var r=t._x0,a=t._y0,o=t._x1,i=t._y1,c=(o-r)/3;t._context.bezierCurveTo(r+c,a+c*e,o-c,i-c*n,o,i)}function c(t){this._context=t}function s(t){this._context=new u(t)}function u(t){this._context=t}function l(t){return new c(t)}e.a=l,c.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:i(this,this._t0,o(this,this._t0))}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){var n=NaN;if(t=+t,e=+e,t!==this._x1||e!==this._y1){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;break;case 2:this._point=3,i(this,o(this,n=a(this,t,e)),n);break;default:i(this,this._t0,n=a(this,t,e))}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e,this._t0=n}}},(s.prototype=Object.create(c.prototype)).point=function(t,e){c.prototype.point.call(this,e,t)},u.prototype={moveTo:function(t,e){this._context.moveTo(e,t)},closePath:function(){this._context.closePath()},lineTo:function(t,e){this._context.lineTo(e,t)},bezierCurveTo:function(t,e,n,r,a,o){this._context.bezierCurveTo(e,t,r,n,o,a)}}},function(t,e,n){"use strict";function r(t){this._context=t}function a(t){var e,n,r=t.length-1,a=new Array(r),o=new Array(r),i=new Array(r);for(a[0]=0,o[0]=2,i[0]=t[0]+2*t[1],e=1;e<r-1;++e)a[e]=1,o[e]=4,i[e]=4*t[e]+2*t[e+1];for(a[r-1]=2,o[r-1]=7,i[r-1]=8*t[r-1]+t[r],e=1;e<r;++e)n=a[e]/o[e-1],o[e]-=n,i[e]-=n*i[e-1];for(a[r-1]=i[r-1]/o[r-1],e=r-2;e>=0;--e)a[e]=(i[e]-a[e+1])/o[e];for(o[r-1]=(t[r]+a[r-1])/2,e=0;e<r-1;++e)o[e]=2*t[e+1]-a[e+1];return[a,o]}r.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=[],this._y=[]},lineEnd:function(){var t=this._x,e=this._y,n=t.length;if(n)if(this._line?this._context.lineTo(t[0],e[0]):this._context.moveTo(t[0],e[0]),2===n)this._context.lineTo(t[1],e[1]);else for(var r=a(t),o=a(e),i=0,c=1;c<n;++i,++c)this._context.bezierCurveTo(r[0][i],o[0][i],r[1][i],o[1][i],t[c],e[c]);(this._line||0!==this._line&&1===n)&&this._context.closePath(),this._line=1-this._line,this._x=this._y=null},point:function(t,e){this._x.push(+t),this._y.push(+e)}}},function(t,e,n){"use strict";function r(t,e){this._context=t,this._t=e}function a(t){return new r(t,0)}function o(t){return new r(t,1)}e.c=a,e.b=o,r.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>=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;default:if(this._t<=0)this._context.lineTo(this._x,e),this._context.lineTo(t,e);else{var n=this._x*(1-this._t)+t*this._t;this._context.lineTo(n,this._y),this._context.lineTo(n,e)}}this._x=t,this._y=e}},e.a=function(t){return new r(t,.5)}},function(t,e,n){"use strict";function r(t,e){return t[e]}var a=n(167),o=n(43),i=n(61),c=n(62);e.a=function(){function t(t){var r,a,o=e.apply(this,arguments),i=t.length,c=o.length,l=new Array(c);for(r=0;r<c;++r){for(var f,h=o[r],p=l[r]=new Array(i),d=0;d<i;++d)p[d]=f=[0,+u(t[d],h,d,t)],f.data=t[d];p.key=h}for(r=0,a=n(l);r<c;++r)l[a[r]].index=r;return s(l,a),l}var e=Object(o.a)([]),n=c.a,s=i.a,u=r;return t.keys=function(n){return arguments.length?(e="function"==typeof n?n:Object(o.a)(a.a.call(n)),t):e},t.value=function(e){return arguments.length?(u="function"==typeof e?e:Object(o.a)(+e),t):u},t.order=function(e){return arguments.length?(n=null==e?c.a:"function"==typeof e?e:Object(o.a)(a.a.call(e)),t):n},t.offset=function(e){return arguments.length?(s=null==e?i.a:e,t):s},t}},function(t,e,n){"use strict";n(61)},function(t,e,n){"use strict"},function(t,e,n){"use strict";n(61)},function(t,e,n){"use strict";n(61)},function(t,e,n){"use strict";n(105)},function(t,e,n){"use strict";n(62),n(105)},function(t,e,n){"use strict";n(62)},function(t,e,n){"use strict";function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function a(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function o(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}function i(t,e,n){var r=t.yAccessor,a=t.markerProvider,o=t.markerProps,i=t.marker,c=e.xScale,s=e.chartConfig.yScale,u=e.plotData;if(!a&&!i)throw new Error("required prop, either marker or markerProvider missing");return u.map(function(t){a&&(i=a(t));var e=y({},i.defaultProps,o),u=Object(b.l)(e.fill),l=Object(b.l)(e.stroke);return{x:c(n(t)),y:s(r(t)),fill:Object(b.t)(u(t),e.opacity),stroke:l(t),datum:t,marker:i}})}function c(t,e,n){var r=e.markerProps;Object(h.b)().key(function(t){return t.fill}).key(function(t){return t.stroke}).entries(n).forEach(function(e){var n=e.key,a=e.values;"none"!==n&&(t.fillStyle=n),a.forEach(function(e){e.values.forEach(function(e){var a=e.marker;a.drawOnCanvas(y({},a.defaultProps,r,{fill:n}),e,t)})})})}var s=n(0),u=n.n(s),l=n(1),f=n.n(l),h=n(31),p=n(10),d=n(13),b=n(2),y=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},v=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),g=function(t){function e(t){r(this,e);var n=a(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return n.renderSVG=n.renderSVG.bind(n),n.drawOnCanvas=n.drawOnCanvas.bind(n),n}return o(e,t),v(e,[{key:"drawOnCanvas",value:function(t,e){var n=e.xAccessor,r=i(this.props,e,n);c(t,this.props,r)}},{key:"renderSVG",value:function(t){var e=this.props,n=e.className,r=e.markerProps,a=t.xAccessor,o=i(this.props,t,a);return u.a.createElement("g",{className:n},o.map(function(t,e){var n=t.marker;return u.a.createElement(n,y({key:e},r,{point:t}))}))}},{key:"render",value:function(){return u.a.createElement(p.a,{svgDraw:this.renderSVG,canvasDraw:this.drawOnCanvas,canvasToDraw:d.b,drawOn:["pan"]})}}]),e}(s.Component);g.propTypes={className:f.a.string,yAccessor:f.a.func.isRequired,marker:f.a.func,markerProvider:f.a.func,markerProps:f.a.object},g.defaultProps={className:"react-stockcharts-scatter"},e.a=g},function(t,e,n){"use strict";function r(t){var e=t.className,n=t.stroke,r=t.strokeWidth,a=t.opacity,i=t.fill,c=t.point,u=t.r,l=Object(s.l)(u)(c.datum);return o.a.createElement("circle",{className:e,cx:c.x,cy:c.y,stroke:n,strokeWidth:r,fillOpacity:a,fill:i,r:l})}var a=n(0),o=n.n(a),i=n(1),c=n.n(i),s=n(2);r.propTypes={stroke:c.a.string,fill:c.a.string.isRequired,opacity:c.a.number.isRequired,point:c.a.shape({x:c.a.number.isRequired,y:c.a.number.isRequired,datum:c.a.object.isRequired}).isRequired,className:c.a.string,strokeWidth:c.a.number,r:c.a.oneOfType([c.a.number,c.a.func]).isRequired},r.defaultProps={stroke:"#4682B4",strokeWidth:1,opacity:.5,fill:"#4682B4",className:"react-stockcharts-marker-circle"},r.drawOnCanvas=function(t,e,n){var a=t.stroke,o=t.fill,i=t.opacity,c=t.strokeWidth;n.strokeStyle=a,n.lineWidth=c,"none"!==o&&(n.fillStyle=Object(s.t)(o,i)),r.drawOnCanvasWithNoStateChange(t,e,n)},r.drawOnCanvasWithNoStateChange=function(t,e,n){var r=t.r,a=Object(s.l)(r)(e.datum);n.moveTo(e.x,e.y),n.beginPath(),n.arc(e.x,e.y,a,0,2*Math.PI,!1),n.stroke(),n.fill()},e.a=r},function(t,e,n){"use strict";function r(t){var e=t.className,n=t.stroke,r=t.strokeWidth,o=t.opacity,c=t.fill,s=t.point,l=t.width,f=Object(u.l)(l)(s.datum),h=s.x,p=s.y,d=a(f),b=d.innerOpposite,y=d.innerHypotenuse,v="\n\t\t"+h+" "+(p-y)+",\n\t\t"+(h+f/2)+" "+(p+b)+",\n\t\t"+(h-f/2)+" "+(p+b)+"\n\t";return i.a.createElement("polygon",{className:e,points:v,stroke:n,strokeWidth:r,fillOpacity:o,fill:c})}function a(t){var e=t/2*(1/Math.cos(30*Math.PI/180));return{innerOpposite:t/2*(1/Math.tan(60*Math.PI/180)),innerHypotenuse:e}}var o=n(0),i=n.n(o),c=n(1),s=n.n(c),u=n(2);r.propTypes={stroke:s.a.string,fill:s.a.string.isRequired,opacity:s.a.number.isRequired,point:s.a.shape({x:s.a.number.isRequired,y:s.a.number.isRequired,datum:s.a.object.isRequired}).isRequired,className:s.a.string,strokeWidth:s.a.number,width:s.a.oneOfType([s.a.number,s.a.func]).isRequired},r.defaultProps={stroke:"#4682B4",strokeWidth:1,opacity:.5,fill:"#4682B4",className:"react-stockcharts-marker-triangle"},r.drawOnCanvas=function(t,e,n){var a=t.stroke,o=t.fill,i=t.opacity,c=t.strokeWidth;n.strokeStyle=a,n.lineWidth=c,"none"!==o&&(n.fillStyle=Object(u.t)(o,i)),r.drawOnCanvasWithNoStateChange(t,e,n)},r.drawOnCanvasWithNoStateChange=function(t,e,n){var r=t.width,o=Object(u.l)(r)(e.datum),i=e.x,c=e.y,s=a(o),l=s.innerOpposite,f=s.innerHypotenuse;n.beginPath(),n.moveTo(i,c-f),n.lineTo(i+o/2,c+l),n.lineTo(i-o/2,c+l),n.stroke(),n.fill()},e.a=r},function(t,e,n){"use strict";function r(t){var e=t.className,n=t.stroke,r=t.strokeWidth,a=t.opacity,i=t.fill,c=t.point,u=t.width,l=Object(s.l)(u)(c.datum),f=c.x-l/2,h=c.y-l/2;return o.a.createElement("rect",{className:e,x:f,y:h,stroke:n,strokeWidth:r,fillOpacity:a,fill:i,width:l,height:l})}var a=n(0),o=n.n(a),i=n(1),c=n.n(i),s=n(2);r.propTypes={stroke:c.a.string,fill:c.a.string.isRequired,opacity:c.a.number.isRequired,point:c.a.shape({x:c.a.number.isRequired,y:c.a.number.isRequired,datum:c.a.object.isRequired}).isRequired,className:c.a.string,strokeWidth:c.a.number,width:c.a.oneOfType([c.a.number,c.a.func]).isRequired},r.defaultProps={stroke:"#4682B4",strokeWidth:1,opacity:.5,fill:"#4682B4",className:"react-stockcharts-marker-rect"},r.drawOnCanvas=function(t,e,n){var a=t.stroke,o=t.fill,i=t.opacity,c=t.strokeWidth;n.strokeStyle=a,n.lineWidth=c,"none"!==o&&(n.fillStyle=Object(s.t)(o,i)),r.drawOnCanvasWithNoStateChange(t,e,n)},r.drawOnCanvasWithNoStateChange=function(t,e,n){var r=t.width,a=Object(s.l)(r)(e.datum),o=e.x-a/2,i=e.y-a/2;n.beginPath(),n.rect(o,i,a,a),n.stroke(),n.fill()},e.a=r},function(t,e,n){"use strict";function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function a(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function o(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}function i(t){return t.map(function(t,e){var n=t.wick;return h.a.createElement("path",{key:e,className:t.className,stroke:n.stroke,d:"M"+n.x+","+n.y1+" L"+n.x+","+n.y2+" M"+n.x+","+n.y3+" L"+n.x+","+n.y4})})}function c(t,e){var n=t.opacity,r=t.candleStrokeWidth;return e.map(function(t,e){return t.width<=1?h.a.createElement("line",{className:t.className,key:e,x1:t.x,y1:t.y,x2:t.x,y2:t.y+t.height,stroke:t.fill}):0===t.height?h.a.createElement("line",{key:e,x1:t.x,y1:t.y,x2:t.x+t.width,y2:t.y+t.height,stroke:t.fill}):h.a.createElement("rect",{key:e,className:t.className,fillOpacity:n,x:t.x,y:t.y,width:t.width,height:t.height,fill:t.fill,stroke:t.stroke,strokeWidth:r})})}function s(t,e,n){var r=e.opacity,a=e.candleStrokeWidth,o=n.xScale,i=n.chartConfig.yScale,c=n.plotData,s=n.xAccessor,f=u(e,s,o,i,c);Object(l.b)().key(function(t){return t.wick.stroke}).entries(f).forEach(function(e){var n=e.key,r=e.values;t.strokeStyle=n,t.fillStyle=n,r.forEach(function(e){var n=e.wick;t.fillRect(n.x-.5,n.y1,1,n.y2-n.y1),t.fillRect(n.x-.5,n.y3,1,n.y4-n.y3)})}),Object(l.b)().key(function(t){return t.stroke}).key(function(t){return t.fill}).entries(f).forEach(function(e){var n=e.key,o=e.values;"none"!==n&&(t.strokeStyle=n,t.lineWidth=a),o.forEach(function(e){var a=e.key,o=e.values,i=Object(v.s)(o).width<=1?a:Object(v.t)(a,r);t.fillStyle=i,o.forEach(function(e){e.width<=1?t.fillRect(e.x-.5,e.y,1,e.height):0===e.height?t.fillRect(e.x,e.y-.5,e.width,1):(t.fillRect(e.x,e.y,e.width,e.height),"none"!==n&&t.strokeRect(e.x,e.y,e.width,e.height))})})})}function u(t,e,n,r,a){for(var o=t.wickStroke,i=Object(v.l)(o),c=t.classNames,s=t.fill,u=t.stroke,l=t.yAccessor,f=Object(v.l)(c),h=Object(v.l)(s),p=Object(v.l)(u),d=Object(v.l)(t.width),b=d(t,{xScale:n,xAccessor:e,plotData:a}),y=.5*b,g=y>.7?Math.round(y):Math.floor(y),m=[],O=0;O<a.length;O++){var w=a[O];if(Object(v.v)(l(w).close)){var x=Math.round(n(e(w))),k=l(w),_=Math.round(r(Math.max(k.open,k.close))),j=Math.round(Math.abs(r(k.open)-r(k.close)));m.push({x:x-g,y:_,wick:{stroke:i(k),x:x,y1:Math.round(r(k.high)),y2:_,y3:_+j,y4:Math.round(r(k.low))},height:j,width:2*g,className:f(k),fill:h(k),stroke:p(k),direction:k.close-k.open})}}return m}var l=n(31),f=n(0),h=n.n(f),p=n(1),d=n.n(p),b=n(10),y=n(13),v=n(2),g=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),m=function(t){function e(t){r(this,e);var n=a(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return n.renderSVG=n.renderSVG.bind(n),n.drawOnCanvas=n.drawOnCanvas.bind(n),n}return o(e,t),g(e,[{key:"drawOnCanvas",value:function(t,e){s(t,this.props,e)}},{key:"renderSVG",value:function(t){var e=this.props,n=e.className,r=e.wickClassName,a=e.candleClassName,o=t.xScale,s=t.chartConfig.yScale,l=t.plotData,f=t.xAccessor,p=u(this.props,f,o,s,l);return h.a.createElement("g",{className:n},h.a.createElement("g",{className:r,key:"wicks"},i(p)),h.a.createElement("g",{className:a,key:"candles"},c(this.props,p)))}},{key:"render",value:function(){var t=this.props.clip;return h.a.createElement(b.a,{clip:t,svgDraw:this.renderSVG,canvasDraw:this.drawOnCanvas,canvasToDraw:y.b,drawOn:["pan"]})}}]),e}(f.Component);m.propTypes={className:d.a.string,wickClassName:d.a.string,candleClassName:d.a.string,widthRatio:d.a.number,width:d.a.oneOfType([d.a.number,d.a.func]),classNames:d.a.oneOfType([d.a.func,d.a.string]),fill:d.a.oneOfType([d.a.func,d.a.string]),stroke:d.a.oneOfType([d.a.func,d.a.string]),wickStroke:d.a.oneOfType([d.a.func,d.a.string]),yAccessor:d.a.func,clip:d.a.bool},m.defaultProps={className:"react-stockcharts-candlestick",wickClassName:"react-stockcharts-candlestick-wick",candleClassName:"react-stockcharts-candlestick-candle",yAccessor:function(t){return{open:t.open,high:t.high,low:t.low,close:t.close}},classNames:function(t){return t.close>t.open?"up":"down"},width:v.G,wickStroke:"#000000",fill:function(t){return t.close>t.open?"#6BA583":"#FF0000"},stroke:"#000000",candleStrokeWidth:.5,widthRatio:.8,opacity:.5,clip:!0},e.a=m},function(t,e,n){"use strict";function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function a(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function o(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}function i(t,e){var n=e.strokeWidth,r=e.bars,a=Object(s.b)().key(function(t){return t.stroke}).entries(r);t.lineWidth=n,a.forEach(function(e){var n=e.key,r=e.values;t.strokeStyle=n,r.forEach(function(e){t.beginPath(),t.moveTo(e.x,e.y1),t.lineTo(e.x,e.y2),t.moveTo(e.openX1,e.openY),t.lineTo(e.openX2,e.openY),t.moveTo(e.closeX1,e.closeY),t.lineTo(e.closeX2,e.closeY),t.stroke()})})}function c(t,e,n,r,a,o){var i=t.classNames,c=t.stroke,s=Object(b.l)(c),u=Object(b.l)(i),l=r(e(o[o.length-1]))-r(e(o[0])),f=Math.max(1,Math.round(l/(o.length-1)/2)-1.5),h=Math.min(f,6),p=o.filter(function(t){return Object(b.v)(n(t).close)}).map(function(t){var o=n(t),i=Math.round(r(e(t))),c=a(o.high),l=a(o.low),p=i-f,d=i+h/2,b=a(o.open),y=i-h/2,v=i+f,g=a(o.close),m=u(t);return{x:i,y1:c,y2:l,openX1:p,openX2:d,openY:b,closeX1:y,closeX2:v,closeY:g,stroke:s(t),className:m}});return{barWidth:f,strokeWidth:h,bars:p}}var s=n(31),u=n(0),l=n.n(u),f=n(1),h=n.n(f),p=n(10),d=n(13),b=n(2),y=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),v=function(t){function e(t){r(this,e);var n=a(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return n.renderSVG=n.renderSVG.bind(n),n.drawOnCanvas=n.drawOnCanvas.bind(n),n}return o(e,t),y(e,[{key:"drawOnCanvas",value:function(t,e){var n=this.props.yAccessor,r=e.xAccessor,a=e.xScale,o=e.chartConfig.yScale,s=e.plotData;i(t,c(this.props,r,n,a,o,s))}},{key:"render",value:function(){var t=this.props.clip;return l.a.createElement(p.a,{svgDraw:this.renderSVG,canvasToDraw:d.b,canvasDraw:this.drawOnCanvas,clip:t,drawOn:["pan"]})}},{key:"renderSVG",value:function(t){var e=this.props,n=e.className,r=e.yAccessor,a=t.xAccessor,o=t.xScale,i=t.chartConfig.yScale,s=t.plotData,u=c(this.props,a,r,o,i,s),f=u.strokeWidth,h=u.bars;return l.a.createElement("g",{className:n},h.map(function(t,e){return l.a.createElement("path",{key:e,className:t.className,stroke:t.stroke,strokeWidth:f,d:"M"+t.openX1+" "+t.openY+" L"+t.openX2+" "+t.openY+" M"+t.x+" "+t.y1+" L"+t.x+" "+t.y2+" M"+t.closeX1+" "+t.closeY+" L"+t.closeX2+" "+t.closeY})}))}}]),e}(u.Component);v.propTypes={className:h.a.string,classNames:h.a.oneOfType([h.a.func,h.a.string]).isRequired,stroke:h.a.oneOfType([h.a.func,h.a.string]).isRequired,yAccessor:h.a.func.isRequired,clip:h.a.bool.isRequired},v.defaultProps={className:"react-stockcharts-ohlc",yAccessor:function(t){return{open:t.open,high:t.high,low:t.low,close:t.close}},classNames:function(t){return Object(b.v)(t.absoluteChange)?t.absoluteChange>0?"up":"down":"firstbar"},stroke:function(t){return Object(b.v)(t.absoluteChange)?t.absoluteChange>0?"#6BA583":"#FF0000":"#000000"},clip:!0},e.a=v},function(t,e,n){"use strict";function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function a(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function o(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}function i(t){return t.map(function(t){return d({},t,{x:t.x+t.offset-t.groupOffset,width:t.groupWidth})})}var c=n(0),s=n.n(c),u=n(1),l=n.n(u),f=n(10),h=n(13),p=n(77),d=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},b=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),y=function(t){function e(t){r(this,e);var n=a(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return n.renderSVG=n.renderSVG.bind(n),n.drawOnCanvas=n.drawOnCanvas.bind(n),n}return o(e,t),b(e,[{key:"drawOnCanvas",value:function(t,e){var n=e.xAccessor;Object(p.c)(t,this.props,e,n,p.e,i)}},{key:"renderSVG",value:function(t){var e=t.xAccessor;return s.a.createElement("g",{className:"react-stockcharts-grouped-bar-series"},Object(p.f)(this.props,t,e,p.e,i))}},{key:"render",value:function(){return s.a.createElement(f.a,{svgDraw:this.renderSVG,canvasDraw:this.drawOnCanvas,canvasToDraw:h.b,drawOn:["pan"]})}}]),e}(c.Component);y.propTypes={baseAt:l.a.oneOfType([l.a.number,l.a.func]).isRequired,direction:l.a.oneOf(["up","down"]).isRequired,stroke:l.a.bool.isRequired,widthRatio:l.a.number.isRequired,opacity:l.a.number.isRequired,fill:l.a.oneOfType([l.a.func,l.a.string]).isRequired,className:l.a.oneOfType([l.a.func,l.a.string]).isRequired,yAccessor:l.a.arrayOf(l.a.func)},y.defaultProps=d({},p.a.defaultProps,{widthRatio:.8,spaceBetweenBar:5}),e.a=y},function(t,e,n){"use strict";function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function a(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function o(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}function i(t,e,n,r){var a=e.stroke,o=e.strokeWidth,i=e.currentValueStroke,s=n.xScale,u=n.chartConfig.yScale,l=n.plotData,f=c(l,r),h=!0;f.forEach(function(e){t.strokeStyle=a[e.type],t.lineWidth=o,t.beginPath();var n=void 0;e.plot.forEach(function(e){var r=[s(e[0]),u(e[1])],a=r[0],o=r[1];h?(t.moveTo(a,o),h=!1):(Object(b.v)(n)&&t.lineTo(n,o),t.lineTo(a,o)),n=a}),t.stroke()});var p=f[f.length-1].plot,d=p[p.length-1];t.beginPath(),t.lineWidth=1;var y=[s(d[0]),u(d[2]),u(d[3])],v=y[0],g=y[1],m=y[2];t.moveTo(v,g),t.lineTo(v+10,g),t.stroke(),t.beginPath(),t.strokeStyle=i,t.moveTo(v-10,m),t.lineTo(v,m),t.stroke()}function c(t,e){for(var n=[],r={},a=t[0],o=e(a),i=0;i<t.length;i++)a=t[i],Object(b.w)(a.close)||(Object(b.w)(r.type)&&(r.type=a.startAs),Object(b.w)(r.plot)&&(r.plot=[]),o=e(a),r.plot.push([o,a.open]),Object(b.v)(a.changeTo)&&(r.plot.push([o,a.changePoint]),r.added=!0,n.push(r),r={type:a.changeTo,plot:[],added:!1},r.plot.push([o,a.changePoint])));return r.added||(r.plot.push([o,a.close,a.current,a.reverseAt]),n.push(r)),n}var s=n(0),u=n.n(s),l=n(1),f=n.n(l),h=n(65),p=n(10),d=n(13),b=n(2),y=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),v=function(t){function e(t){r(this,e);var n=a(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return n.renderSVG=n.renderSVG.bind(n),n.drawOnCanvas=n.drawOnCanvas.bind(n),n}return o(e,t),y(e,[{key:"drawOnCanvas",value:function(t,e){var n=e.xAccessor;i(t,this.props,e,n)}},{key:"render",value:function(){return u.a.createElement(p.a,{svgDraw:this.renderSVG,canvasToDraw:d.b,canvasDraw:this.drawOnCanvas,drawOn:["pan"]})}},{key:"renderSVG",value:function(t){var e=t.xAccessor,n=t.xScale,r=t.chartConfig.yScale,a=t.plotData,o=this.props,i=o.className,s=o.stroke,l=o.fill,f=o.strokeWidth,p=c(a,e).map(function(t,e){var a=Object(h.j)().x(function(t){return n(t[0])}).y(function(t){return r(t[1])}).curve(h.i);return a(t.plot),u.a.createElement("path",{key:e,d:a(t.plot),className:t.type,stroke:s[t.type],fill:l[t.type],strokeWidth:f})});return u.a.createElement("g",{className:i},p)}}]),e}(s.Component);v.propTypes={className:f.a.string,stroke:f.a.object,fill:f.a.object,strokeWidth:f.a.number.isRequired},v.defaultProps={className:"react-stockcharts-kagi",strokeWidth:2,stroke:{yang:"#6BA583",yin:"#E60000"},fill:{yang:"none",yin:"none"},currentValueStroke:"#000000"},e.a=v},function(t,e,n){"use strict";function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function a(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function o(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}function i(t,e,n){var r=e.stroke,a=e.fill,o=e.strokeWidth;t.lineWidth=o,n.forEach(function(e){var n=b(e.offset,2),o=n[0],i=n[1];e.boxes.forEach(function(n){if(e.direction>0)t.fillStyle=a.up,t.strokeStyle=r.up,t.beginPath(),t.moveTo(o,i+n.open),t.lineTo(o+n.columnWidth,i+n.close),t.moveTo(o,i+n.close),t.lineTo(o+n.columnWidth,i+n.open),t.stroke();else{t.fillStyle=a.down,t.strokeStyle=r.down,t.beginPath();var c=o+n.columnWidth/2,s=i+n.open+n.boxHeight/2,u=n.columnWidth/2,l=n.boxHeight/2;t.ellipse(c,s,u,l,0,0,2*Math.PI),t.stroke()}})}),t.stroke()}function c(t,e,n,r){for(var a=t(e(r[r.length-1]))-t(e(r[0])),o=a/(r.length-1),i=void 0,c=0;Object(d.w)(i)&&Object(d.v)(r[c].close);)i=r[c].boxes[0],c++;var s=Math.abs(n(i.open)-n(i.close));return r.filter(function(t){return Object(d.v)(t.close)}).map(function(r){var a=r.boxes.map(function(t){return{columnWidth:o,boxHeight:s,open:n(t.open),close:n(t.close)}}),i=t(e(r))-o/2;return{boxes:a,direction:r.direction,offset:[i,0]}})}var s=n(0),u=n.n(s),l=n(1),f=n.n(l),h=n(10),p=n(13),d=n(2),b=function(){function t(t,e){var n=[],r=!0,a=!1,o=void 0;try{for(var i,c=t[Symbol.iterator]();!(r=(i=c.next()).done)&&(n.push(i.value),!e||n.length!==e);r=!0);}catch(t){a=!0,o=t}finally{try{!r&&c.return&&c.return()}finally{if(a)throw o}}return n}return function(e,n){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return t(e,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),y=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),v=function(t){function e(t){r(this,e);var n=a(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return n.renderSVG=n.renderSVG.bind(n),n.drawOnCanvas=n.drawOnCanvas.bind(n),n}return o(e,t),y(e,[{key:"drawOnCanvas",value:function(t,e){var n=e.xAccessor,r=e.xScale,a=e.chartConfig.yScale,o=e.plotData,s=c(r,n,a,o);i(t,this.props,s)}},{key:"render",value:function(){var t=this.props.clip;return u.a.createElement(h.a,{clip:t,svgDraw:this.renderSVG,canvasDraw:this.drawOnCanvas,canvasToDraw:p.b,drawOn:["pan"]})}},{key:"renderSVG",value:function(t){var e=t.xAccessor,n=t.xScale,r=t.chartConfig.yScale,a=t.plotData,o=this.props,i=o.stroke,s=o.fill,l=o.strokeWidth,f=o.className,h=c(n,e,r,a);return u.a.createElement("g",{className:f},h.map(function(t,e){return u.a.createElement("g",{key:e,className:t.className,transform:"translate("+t.offset[0]+", "+t.offset[1]+")"},t.boxes.map(function(n,r){return t.direction>0?u.a.createElement("g",{key:e+"-"+r},u.a.createElement("line",{className:"up",strokeWidth:l,stroke:i.up,fill:s.up,x1:0,y1:n.open,x2:n.columnWidth,y2:n.close}),u.a.createElement("line",{className:"up",strokeWidth:l,stroke:i.up,fill:s.up,x1:0,y1:n.close,x2:n.columnWidth,y2:n.open})):u.a.createElement("ellipse",{key:e+"-"+r,className:"down",strokeWidth:l,stroke:i.down,fill:s.down,cx:n.columnWidth/2,cy:(n.open+n.close)/2,rx:n.columnWidth/2,ry:n.boxHeight/2})}))}))}}]),e}(s.Component);v.propTypes={className:f.a.string,strokeWidth:f.a.number.isRequired,stroke:f.a.object.isRequired,fill:f.a.object.isRequired,clip:f.a.bool.isRequired},v.defaultProps={className:"react-stockcharts-point-and-figure",strokeWidth:1,stroke:{up:"#6BA583",down:"#FF0000"},fill:{up:"none",down:"none"},clip:!0},e.a=v},function(t,e,n){"use strict";function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function a(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function o(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}function i(t,e){e.forEach(function(e){t.beginPath(),t.strokeStyle=e.stroke,t.fillStyle=e.fill,t.rect(e.x,e.y,e.width,e.height),t.closePath(),t.fill()})}function c(t,e,n,r,a,o){var i=t.classNames,c=t.fill,s=n(r(e[e.length-1]))-n(r(e[0])),u=s/(e.length-1);return e.filter(function(t){return Object(d.v)(o(t).close)}).map(function(t){var e=o(t),s=n(r(t))-.5*u,l=a(Math.max(e.open,e.close)),f=Math.abs(a(e.open)-a(e.close));return{className:e.open<=e.close?i.up:i.down,fill:t.fullyFormed?e.open<=e.close?c.up:c.down:c.partial,x:s,y:l,height:f,width:u}})}var s=n(0),u=n.n(s),l=n(1),f=n.n(l),h=n(10),p=n(13),d=n(2),b=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),y=function(t){function e(t){r(this,e);var n=a(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return n.renderSVG=n.renderSVG.bind(n),n.drawOnCanvas=n.drawOnCanvas.bind(n),n}return o(e,t),b(e,[{key:"drawOnCanvas",value:function(t,e){var n=e.xAccessor,r=e.xScale,a=e.chartConfig.yScale,o=e.plotData,s=this.props.yAccessor;i(t,c(this.props,o,r,n,a,s))}},{key:"render",value:function(){var t=this.props.clip;return u.a.createElement(h.a,{clip:t,svgDraw:this.renderSVG,canvasDraw:this.drawOnCanvas,canvasToDraw:p.b,drawOn:["pan"]})}},{key:"renderSVG",value:function(t){var e=t.xAccessor,n=t.xScale,r=t.chartConfig.yScale,a=t.plotData,o=this.props.yAccessor,i=c(this.props,a,n,e,r,o).map(function(t,e){return u.a.createElement("rect",{key:e,className:t.className,fill:t.fill,x:t.x,y:t.y,width:t.width,height:t.height})});return u.a.createElement("g",null,u.a.createElement("g",{className:"candle"},i))}}]),e}(s.Component);y.propTypes={classNames:f.a.shape({up:f.a.string,down:f.a.string}),stroke:f.a.shape({up:f.a.string,down:f.a.string}),fill:f.a.shape({up:f.a.string,down:f.a.string,partial:f.a.string}),yAccessor:f.a.func.isRequired,clip:f.a.bool.isRequired},y.defaultProps={classNames:{up:"up",down:"down"},stroke:{up:"none",down:"none"},fill:{up:"#6BA583",down:"#E60000",partial:"#4682B4"},yAccessor:function(t){return{open:t.open,high:t.high,low:t.low,close:t.close}},clip:!0},e.a=y},function(t,e,n){"use strict";function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function a(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function o(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var i=n(0),c=n.n(i),s=n(1),u=n.n(s),l=n(177),f=n(52),h=n(63),p=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),d=function(t){function e(t){r(this,e);var n=a(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return n.yAccessorForMACD=n.yAccessorForMACD.bind(n),n.yAccessorForSignal=n.yAccessorForSignal.bind(n),n.yAccessorForDivergence=n.yAccessorForDivergence.bind(n),n.yAccessorForDivergenceBase=n.yAccessorForDivergenceBase.bind(n),n}return o(e,t),p(e,[{key:"yAccessorForMACD",value:function(t){var e=this.props.yAccessor;return e(t)&&e(t).macd}},{key:"yAccessorForSignal",value:function(t){var e=this.props.yAccessor;return e(t)&&e(t).signal}},{key:"yAccessorForDivergence",value:function(t){var e=this.props.yAccessor;return e(t)&&e(t).divergence}},{key:"yAccessorForDivergenceBase",value:function(t,e){return e(0)}},{key:"render",value:function(){var t=this.props,e=t.className,n=t.opacity,r=t.divergenceStroke,a=this.props,o=a.stroke,i=a.fill,s=this.props.clip,u=this.props,p=u.zeroLineStroke,d=u.zeroLineOpacity;return c.a.createElement("g",{className:e},c.a.createElement(l.a,{baseAt:this.yAccessorForDivergenceBase,className:"macd-divergence",widthRatio:.5,stroke:r,fill:i.divergence,opacity:n,clip:s,yAccessor:this.yAccessorForDivergence}),c.a.createElement(f.a,{yAccessor:this.yAccessorForMACD,stroke:o.macd,fill:"none"}),c.a.createElement(f.a,{yAccessor:this.yAccessorForSignal,stroke:o.signal,fill:"none"}),c.a.createElement(h.a,{stroke:p,opacity:d,yValue:0}))}}]),e}(i.Component);d.propTypes={className:u.a.string,yAccessor:u.a.func.isRequired,opacity:u.a.number,divergenceStroke:u.a.bool,zeroLineStroke:u.a.string,zeroLineOpacity:u.a.number,clip:u.a.bool.isRequired,stroke:u.a.shape({macd:u.a.string.isRequired,signal:u.a.string.isRequired}).isRequired,fill:u.a.shape({divergence:u.a.string.isRequired}).isRequired},d.defaultProps={className:"react-stockcharts-macd-series",zeroLineStroke:"#000000",zeroLineOpacity:.3,opacity:.6,divergenceStroke:!1,clip:!0},e.a=d},function(t,e,n){"use strict";function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function a(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function o(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var i=n(0),c=n.n(i),s=n(1),u=n.n(s),l=n(52),f=n(106),h=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),p=function(t){function e(t){r(this,e);var n=a(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return n.yAccessorForTop=n.yAccessorForTop.bind(n),n.yAccessorForMiddle=n.yAccessorForMiddle.bind(n),n.yAccessorForBottom=n.yAccessorForBottom.bind(n),n.yAccessorForScalledBottom=n.yAccessorForScalledBottom.bind(n),n}return o(e,t),h(e,[{key:"yAccessorForTop",value:function(t){var e=this.props.yAccessor;return e(t)&&e(t).top}},{key:"yAccessorForMiddle",value:function(t){var e=this.props.yAccessor;return e(t)&&e(t).middle}},{key:"yAccessorForBottom",value:function(t){var e=this.props.yAccessor;return e(t)&&e(t).bottom}},{key:"yAccessorForScalledBottom",value:function(t,e){var n=this.props.yAccessor;return t(n(e)&&n(e).bottom)}},{key:"render",value:function(){var t=this.props,e=t.areaClassName,n=t.className,r=t.opacity,a=this.props,o=a.stroke,i=a.fill;return c.a.createElement("g",{className:n},c.a.createElement(l.a,{yAccessor:this.yAccessorForTop,stroke:o.top,fill:"none"}),c.a.createElement(l.a,{yAccessor:this.yAccessorForMiddle,stroke:o.middle,fill:"none"}),c.a.createElement(l.a,{yAccessor:this.yAccessorForBottom,stroke:o.bottom,fill:"none"}),c.a.createElement(f.a,{className:e,yAccessor:this.yAccessorForTop,base:this.yAccessorForScalledBottom,stroke:"none",fill:i,opacity:r}))}}]),e}(i.Component);p.propTypes={yAccessor:u.a.func.isRequired,className:u.a.string,areaClassName:u.a.string,opacity:u.a.number,type:u.a.string,stroke:u.a.shape({top:u.a.string.isRequired,middle:u.a.string.isRequired,bottom:u.a.string.isRequired}).isRequired,fill:u.a.string.isRequired},p.defaultProps={className:"react-stockcharts-bollinger-band-series",areaClassName:"react-stockcharts-bollinger-band-series-area",opacity:.2},e.a=p},function(t,e,n){"use strict";function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function a(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function o(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var i=n(0),c=n.n(i),s=n(1),u=n.n(s),l=n(52),f=n(63),h=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),p=function(t){function e(){return r(this,e),a(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return o(e,t),h(e,[{key:"render",value:function(){var t=this.props,e=t.className,n=t.stroke,r=t.opacity,a=this.props.yAccessor,o=this.props,i=o.overSold,s=o.middle,u=o.overBought;return c.a.createElement("g",{className:e},c.a.createElement(l.a,{className:e,yAccessor:a,stroke:n.line,fill:"none"}),c.a.createElement(f.a,{stroke:n.top,opacity:r.top,yValue:i}),c.a.createElement(f.a,{stroke:n.middle,opacity:r.middle,yValue:s}),c.a.createElement(f.a,{stroke:n.bottom,opacity:r.bottom,yValue:u}))}}]),e}(i.Component);p.propTypes={className:u.a.string,yAccessor:u.a.func.isRequired,stroke:u.a.shape({line:u.a.string.isRequired,top:u.a.string.isRequired,middle:u.a.string.isRequired,bottom:u.a.string.isRequired}).isRequired,opacity:u.a.shape({top:u.a.number.isRequired,middle:u.a.number.isRequired,bottom:u.a.number.isRequired}).isRequired,overSold:u.a.number.isRequired,middle:u.a.number.isRequired,overBought:u.a.number.isRequired},p.defaultProps={className:"react-stockcharts-rsi-series",stroke:{line:"#000000",top:"#964B00",middle:"#000000",bottom:"#964B00"},opacity:{top:.3,middle:.3,bottom:.3},overSold:70,middle:50,overBought:30},e.a=p},function(t,e,n){"use strict";function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function a(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function o(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var i=n(0),c=n.n(i),s=n(1),u=n.n(s),l=n(52),f=n(63),h=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),p=function(t){function e(t){r(this,e);var n=a(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return n.yAccessorForD=n.yAccessorForD.bind(n),n.yAccessorForK=n.yAccessorForK.bind(n),n}return o(e,t),h(e,[{key:"yAccessorForD",value:function(t){var e=this.props.yAccessor;return e(t)&&e(t).D}},{key:"yAccessorForK",value:function(t){var e=this.props.yAccessor;return e(t)&&e(t).K}},{key:"render",value:function(){var t=this.props,e=t.className,n=t.stroke,r=t.refLineOpacity,a=this.props,o=a.overSold,i=a.middle,s=a.overBought;return c.a.createElement("g",{className:e},c.a.createElement(l.a,{yAccessor:this.yAccessorForD,stroke:n.dLine,fill:"none"}),c.a.createElement(l.a,{yAccessor:this.yAccessorForK,stroke:n.kLine,fill:"none"}),c.a.createElement(f.a,{stroke:n.top,opacity:r,yValue:o}),c.a.createElement(f.a,{stroke:n.middle,opacity:r,yValue:i}),c.a.createElement(f.a,{stroke:n.bottom,opacity:r,yValue:s}))}}]),e}(i.Component);p.propTypes={className:u.a.string,yAccessor:u.a.func.isRequired,stroke:u.a.shape({top:u.a.string.isRequired,middle:u.a.string.isRequired,bottom:u.a.string.isRequired,dLine:u.a.string.isRequired,kLine:u.a.string.isRequired}).isRequired,overSold:u.a.number.isRequired,middle:u.a.number.isRequired,overBought:u.a.number.isRequired,refLineOpacity:u.a.number.isRequired},p.defaultProps={className:"react-stockcharts-stochastic-series",stroke:{top:"#964B00",middle:"#000000",bottom:"#964B00",dLine:"#EA2BFF",kLine:"#74D400"},overSold:80,middle:50,overBought:20,refLineOpacity:.3},e.a=p},function(t,e,n){"use strict";function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function a(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function o(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var i=n(0),c=n.n(i),s=n(1),u=n.n(s),l=n(384),f=n(63),h=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),p=function(t){function e(t){r(this,e);var n=a(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return n.fillForEachBar=n.fillForEachBar.bind(n),n.yAccessorTop=n.yAccessorTop.bind(n),n.yAccessorBullTop=n.yAccessorBullTop.bind(n),n.yAccessorBearTop=n.yAccessorBearTop.bind(n),n.yAccessorBullBottom=n.yAccessorBullBottom.bind(n),n.yAccessorBearBottom=n.yAccessorBearBottom.bind(n),n.yAccessorForBarBase=n.yAccessorForBarBase.bind(n),n}return o(e,t),h(e,[{key:"yAccessorTop",value:function(t){var e=this.props.yAccessor;return e(t)&&Math.max(e(t).bullPower,0)}},{key:"yAccessorBullTop",value:function(t){var e=this.props.yAccessor;return e(t)&&(e(t).bullPower>0?e(t).bullPower:void 0)}},{key:"yAccessorBearTop",value:function(t){var e=this.props.yAccessor;return e(t)&&(e(t).bearPower>0?e(t).bearPower:void 0)}},{key:"yAccessorBullBottom",value:function(t){var e=this.props.yAccessor;return e(t)&&(e(t).bullPower<0?0:void 0)}},{key:"yAccessorBearBottom",value:function(t){var e=this.props.yAccessor;return e(t)&&(e(t).bullPower<0||e(t).bullPower*e(t).bearPower<0?Math.min(0,e(t).bullPower):void 0)}},{key:"yAccessorForBarBase",value:function(t,e,n){var r=this.props.yAccessor;return e(r(n)&&Math.min(r(n).bearPower,0))}},{key:"fillForEachBar",value:function(t,e){var n=this.props,r=n.bullPowerFill,a=n.bearPowerFill;return e%2==0?r:a}},{key:"render",value:function(){var t=this.props,e=t.className,n=t.opacity,r=t.stroke,a=t.straightLineStroke,o=t.straightLineOpacity,i=t.widthRatio,s=this.props.clip;return c.a.createElement("g",{className:e},c.a.createElement(l.a,{baseAt:this.yAccessorForBarBase,className:"react-stockcharts-elderray-bar",stroke:r,fill:this.fillForEachBar,opacity:n,widthRatio:i,clip:s,yAccessor:[this.yAccessorBullTop,this.yAccessorBearTop,this.yAccessorBullBottom,this.yAccessorBearBottom]}),c.a.createElement(f.a,{className:"react-stockcharts-elderray-straight-line",yValue:0,stroke:a,opacity:o}))}}]),e}(i.Component);p.propTypes={className:u.a.string,yAccessor:u.a.func,opacity:u.a.number,stroke:u.a.bool,bullPowerFill:u.a.string,bearPowerFill:u.a.string,straightLineStroke:u.a.string,straightLineOpacity:u.a.number,widthRatio:u.a.number,clip:u.a.bool.isRequired},p.defaultProps={className:"react-stockcharts-elderray-series",straightLineStroke:"#000000",straightLineOpacity:.3,opacity:.5,stroke:!0,bullPowerFill:"#6BA583",bearPowerFill:"#FF0000",widthRatio:.8,clip:!0},e.a=p},function(t,e,n){"use strict";function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function a(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function o(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}function i(t,e,n,r,a,o){var i=t.baseAt,s=t.className,u=t.fill,l=t.stroke,f=t.widthRatio,h=Object(b.l)(s),p=Object(b.l)(u),d=Object(b.l)(i),y=Math.abs(r(e(Object(b.y)(o)))-r(e(Object(b.k)(o)))),v=y/(o.length-1)*f,g=Math.round(v),m=1===g?0:.5*v,O=o.map(function(t){for(var o=n.map(function(n,o){var i=n(t);if(!Object(b.w)(i)){var c=e(t),s=Math.round(r(c))-m,u=a(i);return{width:g,x:s,y:u,className:h(t,o),stroke:l?p(t,o):"none",fill:p(t,o),i:o}}}).filter(function(t){return Object(b.v)(t)}),i=d(r,a,t),c=void 0,s=o.length-1;s>=0;s--)c=i-o[s].y,c<0&&(o[s].y=i,c*=-1),o[s].height=c,i=o[s].y;return o});return Object(c.j)(O)}var c=n(14),s=n(0),u=n.n(s),l=n(1),f=n.n(l),h=n(10),p=n(13),d=n(77),b=n(2),y=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),v=function(t){function e(t){r(this,e);var n=a(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return n.renderSVG=n.renderSVG.bind(n),n.drawOnCanvas=n.drawOnCanvas.bind(n),n}return o(e,t),y(e,[{key:"drawOnCanvas",value:function(t,e){var n=this.props.yAccessor,r=e.xAccessor,a=e.xScale,o=e.chartConfig.yScale,c=e.plotData,s=i(this.props,r,n,a,o,c);Object(d.b)(this.props,t,s)}},{key:"renderSVG",value:function(t){var e=this.props.yAccessor,n=t.xAccessor,r=t.xScale,a=t.chartConfig.yScale,o=t.plotData,c=i(this.props,n,e,r,a,o);return u.a.createElement("g",{className:"react-stockcharts-bar-series"},Object(d.d)(this.props,c))}},{key:"render",value:function(){var t=this.props.clip;return u.a.createElement(h.a,{svgDraw:this.renderSVG,canvasToDraw:p.b,canvasDraw:this.drawOnCanvas,clip:t,drawOn:["pan"]})}}]),e}(s.Component);v.propTypes={baseAt:f.a.oneOfType([f.a.number,f.a.func]).isRequired,direction:f.a.oneOf(["up","down"]).isRequired,stroke:f.a.bool.isRequired,widthRatio:f.a.number.isRequired,opacity:f.a.number.isRequired,fill:f.a.oneOfType([f.a.func,f.a.string]).isRequired,className:f.a.oneOfType([f.a.func,f.a.string]).isRequired,xAccessor:f.a.func,yAccessor:f.a.arrayOf(f.a.func),xScale:f.a.func,yScale:f.a.func,plotData:f.a.array,clip:f.a.bool.isRequired},v.defaultProps={baseAt:function(t,e){return Object(b.k)(e.range())},direction:"up",className:"bar",stroke:!1,fill:"#4682B4",opacity:1,widthRatio:.5,clip:!0},e.a=v},function(t,e,n){"use strict";function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function a(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function o(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}function i(t,e,n,r){var a=e.xScale,o=e.chartConfig.yScale,i=e.plotData,c=t.sessionStart,s=t.bySession,u=t.partialStartOK,l=t.partialEndOK,f=t.bins,b=t.maxProfileWidthPercent,y=t.source,m=t.volume,O=t.absoluteChange,w=t.orient,x=t.fill,k=t.stroke,_=Object(v.g)().discardTillStart(!u).discardTillEnd(!l).accumulateTill(function(t,e){return c({d:t,i:e,plotData:i})}).accumulator(v.u),j=i.length>1?a(n(i[1]))-a(n(Object(v.s)(i))):0,S=s?_(i):[i],C=S.map(function(t){var e=s?a(n(Object(v.s)(t))):0,i=s?a(n(Object(v.y)(t))):r,c=i-e+j,u=Object(h.g)().value(y).thresholds(f),l=Object(p.b)().key(function(t){return t.direction}).sortKeys("right"===w?h.d:h.a).rollup(function(t){return Object(h.o)(t,function(t){return t.volume})}),_=u(t),S=_.map(function(t){return t.map(function(t){return O(t)>0?{direction:"up",volume:m(t)}:{direction:"down",volume:m(t)}})}).map(function(t){return l.entries(t)}),C=S.map(function(t){return Object(h.o)(t.map(function(t){return t.value}))}),E=function(t){return Object(v.s)(t.range())},P="right"===w?[e,e+c*b/100]:[i,i-c*(100-b)/100],T=g(P,2),M=T[0],A=T[1],D=Object(d.a)().domain([0,Object(h.h)(C)]).range([M,A]),F=S.map(function(t){var e=Object(h.o)(t,function(t){return t.value}),n=D(e),r=E(D)-n;return{x:r<0?n+r:n,ws:t.map(function(t){return{type:t.key,width:t.value*Math.abs(r)/e}}),totalVolumeX:n}}),R=Object(h.s)(_,F).map(function(t){var e=g(t,2),n=e[0],a=e[1],i=a.x,c=a.ws,s=c[0]||{type:"up",width:0},u=c[1]||{type:"down",width:0};return{y:o(n.x1),height:o(n.x1)-o(n.x0),x:i,width:r,w1:s.width,w2:u.width,stroke1:Object(v.l)(k)(s),stroke2:Object(v.l)(k)(u),fill1:Object(v.l)(x)(s),fill2:Object(v.l)(x)(u)}});return{rects:R,sessionBg:{x:e,y:Object(v.y)(R).y,height:Object(v.s)(R).y-Object(v.y)(R).y+Object(v.s)(R).height,width:c}}});return{rects:Object(h.j)(C.map(function(t){return t.rects})),sessionBg:C.map(function(t){return t.sessionBg})}}function c(t,e,n,r){var a=e.opacity,o=e.sessionBackGround,i=e.sessionBackGroundOpacity;e.showSessionBackground&&(t.fillStyle=Object(v.t)(o,i),r.forEach(function(e){var n=e.x,r=e.y,a=e.height,o=e.width;t.beginPath(),t.rect(n,r,o,a),t.closePath(),t.fill()})),n.forEach(function(e){var n=e.x,r=e.y,o=e.height,i=e.w1,c=e.w2,s=e.stroke1,u=e.stroke2,l=e.fill1,f=e.fill2;i>0&&(t.fillStyle=Object(v.t)(l,a),"none"!==s&&(t.strokeStyle=s),t.beginPath(),t.rect(n,r,i,o),t.closePath(),t.fill(),"none"!==s&&t.stroke()),c>0&&(t.fillStyle=Object(v.t)(f,a),"none"!==u&&(t.strokeStyle=u),t.beginPath(),t.rect(n+i,r,c,o),t.closePath(),t.fill(),"none"!==u&&t.stroke())})}var s=n(0),u=n.n(s),l=n(1),f=n.n(l),h=n(14),p=n(31),d=n(35),b=n(10),y=n(13),v=n(2),g=function(){function t(t,e){var n=[],r=!0,a=!1,o=void 0;try{for(var i,c=t[Symbol.iterator]();!(r=(i=c.next()).done)&&(n.push(i.value),!e||n.length!==e);r=!0);}catch(t){a=!0,o=t}finally{try{!r&&c.return&&c.return()}finally{if(a)throw o}}return n}return function(e,n){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return t(e,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),m=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},O=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),w=function(t){function e(t){r(this,e);var n=a(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return n.renderSVG=n.renderSVG.bind(n),n.drawOnCanvas=n.drawOnCanvas.bind(n),n}return o(e,t),O(e,[{key:"drawOnCanvas",value:function(t,e){var n=e.xAccessor,r=e.width,a=i(this.props,e,n,r),o=a.rects,s=a.sessionBg;c(t,this.props,o,s)}},{key:"render",value:function(){return u.a.createElement(b.a,{svgDraw:this.renderSVG,canvasDraw:this.drawOnCanvas,canvasToDraw:y.b,drawOn:["pan"]})}},{key:"renderSVG",value:function(t){var e=this.props,n=e.className,r=e.opacity,a=this.props,o=a.showSessionBackground,c=a.sessionBackGround,s=a.sessionBackGroundOpacity,l=t.xAccessor,f=t.width,h=i(this.props,t,l,f),p=h.rects,d=h.sessionBg,b=o?d.map(function(t,e){return u.a.createElement("rect",m({key:e},t,{opacity:s,fill:c}))}):null;return u.a.createElement("g",{className:n},b,p.map(function(t,e){return u.a.createElement("g",{key:e},u.a.createElement("rect",{x:t.x,y:t.y,width:t.w1,height:t.height,fill:t.fill1,stroke:t.stroke1,fillOpacity:r}),u.a.createElement("rect",{x:t.x+t.w1,y:t.y,width:t.w2,height:t.height,fill:t.fill2,stroke:t.stroke2,fillOpacity:r}))}))}}]),e}(s.Component);w.propTypes={className:f.a.string,opacity:f.a.number,showSessionBackground:f.a.bool,sessionBackGround:f.a.string,sessionBackGroundOpacity:f.a.number},w.defaultProps={opacity:.5,className:"line ",bins:20,maxProfileWidthPercent:50,source:function(t){return t.close},volume:function(t){return t.volume},absoluteChange:function(t){return t.absoluteChange},bySession:!1,sessionStart:function(t){var e=t.d;t.i,t.plotData;return e.idx.startOfMonth},orient:"left",fill:function(t){return"up"===t.type?"#6BA583":"#FF0000"},stroke:"#FFFFFF",showSessionBackground:!1,sessionBackGround:"#4682B4",sessionBackGroundOpacity:.3,partialStartOK:!1,partialEndOK:!0},e.a=w},function(t,e,n){"use strict";function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function a(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function o(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var i=n(0),c=n.n(i),s=n(1),u=n.n(s),l=n(10),f=n(13),h=n(2),p=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},d=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),b=function(t){function e(t){r(this,e);var n=a(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return n.renderSVG=n.renderSVG.bind(n),n.drawOnCanvas=n.drawOnCanvas.bind(n),n.isHover=n.isHover.bind(n),n}return o(e,t),d(e,[{key:"isHover",value:function(t){var e=t.mouseXY,n=t.currentItem,r=t.chartConfig.yScale,a=this.props.yAccessor,o=e[1],i=r(a(n));return o<i+5&&o>i-5}},{key:"drawOnCanvas",value:function(t,e){var n=this.props,r=n.yAccessor,a=n.fill,o=n.opacity,i=e.xAccessor,c=e.plotData,s=e.xScale,u=e.chartConfig.yScale,l=e.hovering,f=s(i(Object(h.y)(c)))-s(i(Object(h.k)(c))),p=f/c.length*.5/2,d=Math.max(.5,p/2)+(l?2:0),b=Math.min(2,Math.max(.5,p))+0;c.forEach(function(e){var n=s(i(e)),c=u(r(e)),l=r(e)>e.close?a.falling:a.rising;t.fillStyle=Object(h.t)(l,o),t.strokeStyle=l,t.beginPath(),t.ellipse(n,c,d,b,0,0,2*Math.PI),t.closePath(),t.fill(),t.stroke()})}},{key:"renderSVG",value:function(t){var e=this.props,n=e.className,r=e.yAccessor,a=t.xAccessor,o=t.plotData,i=t.xScale,s=t.chartConfig.yScale;return c.a.createElement("g",{className:n},o.map(function(t,e){return c.a.createElement("circle",{key:e,cx:i(a(t)),cy:s(r(t)),r:3,fill:"green"})}))}},{key:"render",value:function(){var t=this.props.highlightOnHover,e=t?{isHover:this.isHover,drawOn:["mousemove","pan"],canvasToDraw:f.c}:{drawOn:["pan"],canvasToDraw:f.b};return c.a.createElement(l.a,p({svgDraw:this.renderSVG,canvasDraw:this.drawOnCanvas,onClickWhenHover:this.props.onClick,onDoubleClickWhenHover:this.props.onDoubleClick,onContextMenuWhenHover:this.props.onContextMenu},e))}}]),e}(i.Component);b.propTypes={className:u.a.string,fill:u.a.object.isRequired,yAccessor:u.a.func.isRequired,opacity:u.a.number.isRequired,onClick:u.a.func,onDoubleClick:u.a.func,onContextMenu:u.a.func,highlightOnHover:u.a.bool},b.defaultProps={className:"react-stockcharts-sar",fill:{falling:"#4682B4",rising:"#15EC2E"},highlightOnHover:!0,opacity:.2,onClick:function(t){},onDoubleClick:function(t){},onContextMenu:function(t){}},e.a=b},function(t,e,n){"use strict";function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function a(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function o(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}function i(t,e){var n=t.axisAt,r=t.xZoomHeight,a=t.orient,o=e.chartConfig,i=o.width,s=o.height,u=void 0,l=i,f=r;return u="top"===n?0:"bottom"===n?s:"middle"===n?s/2:n,{transform:[0,u],range:[0,i],getScale:c,bg:{x:0,y:"top"===a?-r:0,h:f,w:l}}}function c(t){var e=t.xScale,n=t.width;if(e.invert){var r=[0,n],a=r.map(e.invert);return e.copy().domain(a).range(r)}return e}var s=n(0),u=n.n(s),l=n(1),f=n.n(l),h=n(178),p=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},d=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),b=function(t){function e(t,n){r(this,e);var o=a(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t,n));return o.axisZoomCallback=o.axisZoomCallback.bind(o),o}return o(e,t),d(e,[{key:"axisZoomCallback",value:function(t){(0,this.context.xAxisZoom)(t)}},{key:"render",value:function(){var t=this.props.showTicks,e=i(this.props,this.context);return u.a.createElement(h.a,p({},this.props,e,{x:!0,zoomEnabled:this.props.zoomEnabled&&t,axisZoomCallback:this.axisZoomCallback,zoomCursorClassName:"react-stockcharts-ew-resize-cursor"}))}}]),e}(s.Component);b.propTypes={axisAt:f.a.oneOfType([f.a.oneOf(["top","bottom","middle"]),f.a.number]).isRequired,orient:f.a.oneOf(["top","bottom"]).isRequired,innerTickSize:f.a.number,outerTickSize:f.a.number,tickFormat:f.a.func,tickPadding:f.a.number,tickSize:f.a.number,ticks:f.a.number,tickValues:f.a.array,showTicks:f.a.bool,className:f.a.string,zoomEnabled:f.a.bool,onContextMenu:f.a.func,onDoubleClick:f.a.func},b.defaultProps={showGrid:!1,showTicks:!0,showDomain:!0,className:"react-stockcharts-x-axis",ticks:10,outerTickSize:0,fill:"none",stroke:"#000000",strokeWidth:1,opacity:1,domainClassName:"react-stockcharts-axis-domain",innerTickSize:5,tickPadding:6,tickStroke:"#000000",tickStrokeOpacity:1,fontFamily:"Helvetica Neue, Helvetica, Arial, sans-serif",fontSize:12,xZoomHeight:25,zoomEnabled:!0,getMouseDelta:function(t,e){return t[0]-e[0]}},b.contextTypes={chartConfig:f.a.object.isRequired,xAxisZoom:f.a.func.isRequired},e.a=b},function(t,e,n){"use strict";var r=(n(389),n(390));n.d(e,"a",function(){return r.a});var a=(n(404),n(405),n(411),n(180));n.d(e,"b",function(){return a.a});var o=n(412);n.d(e,"c",function(){return o.a});n(413)},function(t,e,n){"use strict"},function(t,e,n){"use strict";function r(t){return t.x+t.vx}function a(t){return t.y+t.vy}var o=n(53),i=n(107),c=n(179);e.a=function(t){function e(){function t(t,e,n,r,a){var o=t.data,c=t.r,u=b+c;{if(!o)return e>p+u||r<p-u||n>d+u||a<d-u;if(o.index>s.index){var l=p-o.x-o.vx,h=d-o.y-o.vy,v=l*l+h*h;v<u*u&&(0===l&&(l=Object(i.a)(),v+=l*l),0===h&&(h=Object(i.a)(),v+=h*h),v=(u-(v=Math.sqrt(v)))/v*f,s.vx+=(l*=v)*(u=(c*=c)/(y+c)),s.vy+=(h*=v)*u,o.vx-=l*(u=1-u),o.vy-=h*u)}}}for(var e,o,s,p,d,b,y,v=u.length,g=0;g<h;++g)for(o=Object(c.a)(u,r,a).visitAfter(n),e=0;e<v;++e)s=u[e],b=l[s.index],y=b*b,p=s.x+s.vx,d=s.y+s.vy,o.visit(t)}function n(t){if(t.data)return t.r=l[t.data.index];for(var e=t.r=0;e<4;++e)t[e]&&t[e].r>t.r&&(t.r=t[e].r)}function s(){if(u){var e,n,r=u.length;for(l=new Array(r),e=0;e<r;++e)n=u[e],l[n.index]=+t(n,e,u)}}var u,l,f=1,h=1;return"function"!=typeof t&&(t=Object(o.a)(null==t?1:+t)),e.initialize=function(t){u=t,s()},e.iterations=function(t){return arguments.length?(h=+t,e):h},e.strength=function(t){return arguments.length?(f=+t,e):f},e.radius=function(n){return arguments.length?(t="function"==typeof n?n:Object(o.a)(+n),s(),e):t},e}},function(t,e,n){"use strict";function r(t,e,n){var r=new a(null==e?y.b:e,null==n?v.b:n,NaN,NaN,NaN,NaN);return null==t?r:r.addAll(t)}function a(t,e,n,r,a,o){this._x=t,this._y=e,this._x0=n,this._y0=r,this._x1=a,this._y1=o,this._root=void 0}function o(t){for(var e={data:t.data},n=e;t=t.next;)n=n.next={data:t.data};return e}e.a=r;var i=n(392),c=n(393),s=n(394),u=n(395),l=n(396),f=n(397),h=n(398),p=n(399),d=n(400),b=n(401),y=n(402),v=n(403),g=r.prototype=a.prototype;g.copy=function(){var t,e,n=new a(this._x,this._y,this._x0,this._y0,this._x1,this._y1),r=this._root;if(!r)return n;if(!r.length)return n._root=o(r),n;for(t=[{source:r,target:n._root=new Array(4)}];r=t.pop();)for(var i=0;i<4;++i)(e=r.source[i])&&(e.length?t.push({source:e,target:r.target[i]=new Array(4)}):r.target[i]=o(e));return n},g.add=i.b,g.addAll=i.a,g.cover=c.a,g.data=s.a,g.extent=u.a,g.find=l.a,g.remove=f.a,g.removeAll=f.b,g.root=h.a,g.size=p.a,g.visit=d.a,g.visitAfter=b.a,g.x=y.a,g.y=v.a},function(t,e,n){"use strict";function r(t,e,n,r){if(isNaN(e)||isNaN(n))return t;var a,o,i,c,s,u,l,f,h,p=t._root,d={data:r},b=t._x0,y=t._y0,v=t._x1,g=t._y1;if(!p)return t._root=d,t;for(;p.length;)if((u=e>=(o=(b+v)/2))?b=o:v=o,(l=n>=(i=(y+g)/2))?y=i:g=i,a=p,!(p=p[f=l<<1|u]))return a[f]=d,t;if(c=+t._x.call(null,p.data),s=+t._y.call(null,p.data),e===c&&n===s)return d.next=p,a?a[f]=d:t._root=d,t;do{a=a?a[f]=new Array(4):t._root=new Array(4),(u=e>=(o=(b+v)/2))?b=o:v=o,(l=n>=(i=(y+g)/2))?y=i:g=i}while((f=l<<1|u)==(h=(s>=i)<<1|c>=o));return a[h]=p,a[f]=d,t}function a(t){var e,n,a,o,i=t.length,c=new Array(i),s=new Array(i),u=1/0,l=1/0,f=-1/0,h=-1/0;for(n=0;n<i;++n)isNaN(a=+this._x.call(null,e=t[n]))||isNaN(o=+this._y.call(null,e))||(c[n]=a,s[n]=o,a<u&&(u=a),a>f&&(f=a),o<l&&(l=o),o>h&&(h=o));for(f<u&&(u=this._x0,f=this._x1),h<l&&(l=this._y0,h=this._y1),this.cover(u,l).cover(f,h),n=0;n<i;++n)r(this,c[n],s[n],t[n]);return this}e.a=a,e.b=function(t){var e=+this._x.call(null,t),n=+this._y.call(null,t);return r(this.cover(e,n),e,n,t)}},function(t,e,n){"use strict";e.a=function(t,e){if(isNaN(t=+t)||isNaN(e=+e))return this;var n=this._x0,r=this._y0,a=this._x1,o=this._y1;if(isNaN(n))a=(n=Math.floor(t))+1,o=(r=Math.floor(e))+1;else{if(!(n>t||t>a||r>e||e>o))return this;var i,c,s=a-n,u=this._root;switch(c=(e<(r+o)/2)<<1|t<(n+a)/2){case 0:do{i=new Array(4),i[c]=u,u=i}while(s*=2,a=n+s,o=r+s,t>a||e>o);break;case 1:do{i=new Array(4),i[c]=u,u=i}while(s*=2,n=a-s,o=r+s,n>t||e>o);break;case 2:do{i=new Array(4),i[c]=u,u=i}while(s*=2,a=n+s,r=o-s,t>a||r>e);break;case 3:do{i=new Array(4),i[c]=u,u=i}while(s*=2,n=a-s,r=o-s,n>t||r>e)}this._root&&this._root.length&&(this._root=u)}return this._x0=n,this._y0=r,this._x1=a,this._y1=o,this}},function(t,e,n){"use strict";e.a=function(){var t=[];return this.visit(function(e){if(!e.length)do{t.push(e.data)}while(e=e.next)}),t}},function(t,e,n){"use strict";e.a=function(t){return arguments.length?this.cover(+t[0][0],+t[0][1]).cover(+t[1][0],+t[1][1]):isNaN(this._x0)?void 0:[[this._x0,this._y0],[this._x1,this._y1]]}},function(t,e,n){"use strict";var r=n(108);e.a=function(t,e,n){var a,o,i,c,s,u,l,f=this._x0,h=this._y0,p=this._x1,d=this._y1,b=[],y=this._root;for(y&&b.push(new r.a(y,f,h,p,d)),null==n?n=1/0:(f=t-n,h=e-n,p=t+n,d=e+n,n*=n);u=b.pop();)if(!(!(y=u.node)||(o=u.x0)>p||(i=u.y0)>d||(c=u.x1)<f||(s=u.y1)<h))if(y.length){var v=(o+c)/2,g=(i+s)/2;b.push(new r.a(y[3],v,g,c,s),new r.a(y[2],o,g,v,s),new r.a(y[1],v,i,c,g),new r.a(y[0],o,i,v,g)),(l=(e>=g)<<1|t>=v)&&(u=b[b.length-1],b[b.length-1]=b[b.length-1-l],b[b.length-1-l]=u)}else{var m=t-+this._x.call(null,y.data),O=e-+this._y.call(null,y.data),w=m*m+O*O;if(w<n){var x=Math.sqrt(n=w);f=t-x,h=e-x,p=t+x,d=e+x,a=y.data}}return a}},function(t,e,n){"use strict";function r(t){for(var e=0,n=t.length;e<n;++e)this.remove(t[e]);return this}e.b=r,e.a=function(t){if(isNaN(o=+this._x.call(null,t))||isNaN(i=+this._y.call(null,t)))return this;var e,n,r,a,o,i,c,s,u,l,f,h,p=this._root,d=this._x0,b=this._y0,y=this._x1,v=this._y1;if(!p)return this;if(p.length)for(;;){if((u=o>=(c=(d+y)/2))?d=c:y=c,(l=i>=(s=(b+v)/2))?b=s:v=s,e=p,!(p=p[f=l<<1|u]))return this;if(!p.length)break;(e[f+1&3]||e[f+2&3]||e[f+3&3])&&(n=e,h=f)}for(;p.data!==t;)if(r=p,!(p=p.next))return this;return(a=p.next)&&delete p.next,r?(a?r.next=a:delete r.next,this):e?(a?e[f]=a:delete e[f],(p=e[0]||e[1]||e[2]||e[3])&&p===(e[3]||e[2]||e[1]||e[0])&&!p.length&&(n?n[h]=p:this._root=p),this):(this._root=a,this)}},function(t,e,n){"use strict";e.a=function(){return this._root}},function(t,e,n){"use strict";e.a=function(){var t=0;return this.visit(function(e){if(!e.length)do{++t}while(e=e.next)}),t}},function(t,e,n){"use strict";var r=n(108);e.a=function(t){var e,n,a,o,i,c,s=[],u=this._root;for(u&&s.push(new r.a(u,this._x0,this._y0,this._x1,this._y1));e=s.pop();)if(!t(u=e.node,a=e.x0,o=e.y0,i=e.x1,c=e.y1)&&u.length){var l=(a+i)/2,f=(o+c)/2;(n=u[3])&&s.push(new r.a(n,l,f,i,c)),(n=u[2])&&s.push(new r.a(n,a,f,l,c)),(n=u[1])&&s.push(new r.a(n,l,o,i,f)),(n=u[0])&&s.push(new r.a(n,a,o,l,f))}return this}},function(t,e,n){"use strict";var r=n(108);e.a=function(t){var e,n=[],a=[];for(this._root&&n.push(new r.a(this._root,this._x0,this._y0,this._x1,this._y1));e=n.pop();){var o=e.node;if(o.length){var i,c=e.x0,s=e.y0,u=e.x1,l=e.y1,f=(c+u)/2,h=(s+l)/2;(i=o[0])&&n.push(new r.a(i,c,s,f,h)),(i=o[1])&&n.push(new r.a(i,f,s,u,h)),(i=o[2])&&n.push(new r.a(i,c,h,f,l)),(i=o[3])&&n.push(new r.a(i,f,h,u,l))}a.push(e)}for(;e=a.pop();)t(e.node,e.x0,e.y0,e.x1,e.y1);return this}},function(t,e,n){"use strict";function r(t){return t[0]}e.b=r,e.a=function(t){return arguments.length?(this._x=t,this):this._x}},function(t,e,n){"use strict";function r(t){return t[1]}e.b=r,e.a=function(t){return arguments.length?(this._y=t,this):this._y}},function(t,e,n){"use strict";n(53),n(107),n(31)},function(t,e,n){"use strict";n(53),n(107),n(179),n(180)},function(t,e,n){"use strict";var r=n(407);n.d(e,"a",function(){return r.a})},function(t,e,n){"use strict";function r(){for(var t,e=0,n=arguments.length,r={};e<n;++e){if(!(t=arguments[e]+"")||t in r)throw new Error("illegal type: "+t);r[t]=[]}return new a(r)}function a(t){this._=t}function o(t,e){return t.trim().split(/^|\s+/).map(function(t){var n="",r=t.indexOf(".");if(r>=0&&(n=t.slice(r+1),t=t.slice(0,r)),t&&!e.hasOwnProperty(t))throw new Error("unknown type: "+t);return{type:t,name:n}})}function i(t,e){for(var n,r=0,a=t.length;r<a;++r)if((n=t[r]).name===e)return n.value}function c(t,e,n){for(var r=0,a=t.length;r<a;++r)if(t[r].name===e){t[r]=s,t=t.slice(0,r).concat(t.slice(r+1));break}return null!=n&&t.push({name:e,value:n}),t}var s={value:function(){}};a.prototype=r.prototype={constructor:a,on:function(t,e){var n,r=this._,a=o(t+"",r),s=-1,u=a.length;{if(!(arguments.length<2)){if(null!=e&&"function"!=typeof e)throw new Error("invalid callback: "+e);for(;++s<u;)if(n=(t=a[s]).type)r[n]=c(r[n],t.name,e);else if(null==e)for(n in r)r[n]=c(r[n],t.name,null);return this}for(;++s<u;)if((n=(t=a[s]).type)&&(n=i(r[n],t.name)))return n}},copy:function(){var t={},e=this._;for(var n in e)t[n]=e[n].slice();return new a(t)},call:function(t,e){if((n=arguments.length-2)>0)for(var n,r,a=new Array(n),o=0;o<n;++o)a[o]=arguments[o+2];if(!this._.hasOwnProperty(t))throw new Error("unknown type: "+t);for(r=this._[t],o=0,n=r.length;o<n;++o)r[o].value.apply(e,a)},apply:function(t,e,n){if(!this._.hasOwnProperty(t))throw new Error("unknown type: "+t);for(var r=this._[t],a=0,o=r.length;a<o;++a)r[a].value.apply(e,n)}},e.a=r},function(t,e,n){"use strict";var r=n(109);n.d(e,"a",function(){return r.c});n(409),n(410)},function(t,e,n){"use strict";n(109)},function(t,e,n){"use strict";n(109)},function(t,e,n){"use strict";n(53)},function(t,e,n){"use strict";var r=n(53);e.a=function(t){function e(t){for(var e,n=0,r=a.length;n<r;++n)e=a[n],e.vx+=(i[n]-e.x)*o[n]*t}function n(){if(a){var e,n=a.length;for(o=new Array(n),i=new Array(n),e=0;e<n;++e)o[e]=isNaN(i[e]=+t(a[e],e,a))?0:+c(a[e],e,a)}}var a,o,i,c=Object(r.a)(.1);return"function"!=typeof t&&(t=Object(r.a)(null==t?0:+t)),e.initialize=function(t){a=t,n()},e.strength=function(t){return arguments.length?(c="function"==typeof t?t:Object(r.a)(+t),n(),e):c},e.x=function(a){return arguments.length?(t="function"==typeof a?a:Object(r.a)(+a),n(),e):t},e}},function(t,e,n){"use strict";n(53)},function(t,e,n){"use strict";function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function a(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function o(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var i=n(0),c=n.n(i),s=n(1),u=n.n(s),l=n(157),f=n(14),h=n(2),p=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),d=function(t){function e(t){r(this,e);var n=a(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return n.handleDragStartMouse=n.handleDragStartMouse.bind(n),n.handleDragStartTouch=n.handleDragStartTouch.bind(n),n.handleDrag=n.handleDrag.bind(n),n.handleDragEnd=n.handleDragEnd.bind(n),n.handleRightClick=n.handleRightClick.bind(n),n.saveNode=n.saveNode.bind(n),n.state={startPosition:null},n}return o(e,t),p(e,[{key:"saveNode",value:function(t){this.node=t}},{key:"handleRightClick",value:function(t){t.stopPropagation(),t.preventDefault();var e=this.props.onContextMenu,n=Object(h.C)(t,this.node.getBoundingClientRect());Object(l.c)(Object(h.i)(this.node)).on(h.c,null).on(h.d,null),this.setState({startPosition:null}),e(n,t),this.contextMenuClicked=!0}},{key:"handleDragStartMouse",value:function(t){this.mouseInteraction=!0;var e=this.props,n=e.getScale,r=e.getMoreProps,a=n(r());if(this.dragHappened=!1,a.invert){Object(l.c)(Object(h.i)(this.node)).on(h.c,this.handleDrag,!1).on(h.d,this.handleDragEnd,!1);var o=Object(h.C)(t);this.setState({startPosition:{startXY:o,startScale:a}})}t.preventDefault()}},{key:"handleDragStartTouch",value:function(t){this.mouseInteraction=!1;var e=this.props,n=e.getScale,r=e.getMoreProps,a=n(r());if(this.dragHappened=!1,1===t.touches.length&&a.invert){Object(l.c)(Object(h.i)(this.node)).on(h.f,this.handleDrag).on(h.e,this.handleDragEnd);var o=Object(h.O)(Object(h.r)(t.touches[0]),t);this.setState({startPosition:{startXY:o,startScale:a}})}}},{key:"handleDrag",value:function(){var t=this.state.startPosition,e=this.props,n=e.getMouseDelta,r=e.inverted;if(this.dragHappened=!0,Object(h.v)(t)){var a=t.startScale,o=t.startXY,i=this.mouseInteraction?Object(l.b)(this.node):Object(l.d)(this.node)[0],c=n(o,i),s=Object(f.i)(a.range()),u=a.range().map(function(t){return r?t-Object(h.J)(t-s)*c:t+Object(h.J)(t-s)*c}),p=u.map(a.invert);if(Object(h.J)(Object(h.y)(a.range())-Object(h.k)(a.range()))===Object(h.J)(Object(h.y)(u)-Object(h.k)(u))){(0,this.props.axisZoomCallback)(p)}}}},{key:"handleDragEnd",value:function(){var t=this;if(!this.dragHappened)if(this.clicked){var e=l.a,n=this.mouseInteraction?Object(l.b)(this.node):Object(l.d)(this.node)[0],r=this.props.onDoubleClick;r(n,e)}else this.clicked=!0,setTimeout(function(){t.clicked=!1},300);Object(l.c)(Object(h.i)(this.node)).on(h.c,null).on(h.d,null).on(h.f,null).on(h.e,null),this.setState({startPosition:null})}},{key:"render",value:function(){var t=this.props,e=t.bg,n=t.zoomCursorClassName,r=Object(h.v)(this.state.startPosition)?n:"react-stockcharts-default-cursor";return c.a.createElement("rect",{className:"react-stockcharts-enable-interaction "+r,ref:this.saveNode,x:e.x,y:e.y,opacity:0,height:e.h,width:e.w,onContextMenu:this.handleRightClick,onMouseDown:this.handleDragStartMouse,onTouchStart:this.handleDragStartTouch})}}]),e}(i.Component);d.propTypes={innerTickSize:u.a.number,outerTickSize:u.a.number,tickFormat:u.a.func,tickPadding:u.a.number,tickSize:u.a.number,ticks:u.a.number,tickValues:u.a.array,showDomain:u.a.bool,showTicks:u.a.bool,className:u.a.string,axisZoomCallback:u.a.func,inverted:u.a.bool,bg:u.a.object.isRequired,zoomCursorClassName:u.a.string.isRequired,getMoreProps:u.a.func.isRequired,getScale:u.a.func.isRequired,getMouseDelta:u.a.func.isRequired,onDoubleClick:u.a.func.isRequired,onContextMenu:u.a.func.isRequired},d.defaultProps={onDoubleClick:h.D,onContextMenu:h.D,inverted:!0},e.a=d},function(t,e,n){"use strict";function r(t,e){var n={};for(var r in t)e.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(t,r)&&(n[r]=t[r]);return n}function a(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function i(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}function c(t,e){var n=t.axisAt,r=t.yZoomWidth,a=t.orient,o=e.chartConfig,i=o.width,c=o.height,u=void 0,l=r,f=c;return u="left"===n?0:"right"===n?i:"middle"===n?i/2:n,{transform:[u,0],range:[0,c],getScale:s,bg:{x:"left"===a?-r:0,y:0,h:f,w:l},zoomEnabled:e.chartConfig.yPan}}function s(t){var e=t.chartConfig,n=e.yScale,r=e.flipYScale,a=e.height;if(n.invert){var o=r?[0,a]:[a,0],i=o.map(n.invert);return n.copy().domain(i).range(o)}return n}var u=n(0),l=n.n(u),f=n(1),h=n.n(f),p=n(178),d=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},b=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),y=function(t){function e(t,n){a(this,e);var r=o(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t,n));return r.axisZoomCallback=r.axisZoomCallback.bind(r),r}return i(e,t),b(e,[{key:"axisZoomCallback",value:function(t){var e=this.context,n=e.chartId;(0,e.yAxisZoom)(n,t)}},{key:"render",value:function(){var t=c(this.props,this.context),e=t.zoomEnabled,n=r(t,["zoomEnabled"]);return l.a.createElement(p.a,d({},this.props,n,{zoomEnabled:this.props.zoomEnabled&&e,edgeClip:!0,axisZoomCallback:this.axisZoomCallback,zoomCursorClassName:"react-stockcharts-ns-resize-cursor"}))}}]),e}(u.Component);y.propTypes={axisAt:h.a.oneOfType([h.a.oneOf(["left","right","middle"]),h.a.number]).isRequired,orient:h.a.oneOf(["left","right"]).isRequired,innerTickSize:h.a.number,outerTickSize:h.a.number,tickFormat:h.a.func,tickPadding:h.a.number,tickSize:h.a.number,ticks:h.a.number,yZoomWidth:h.a.number,tickValues:h.a.array,showTicks:h.a.bool,className:h.a.string,zoomEnabled:h.a.bool,onContextMenu:h.a.func,onDoubleClick:h.a.func},y.defaultProps={showGrid:!1,showTicks:!0,showDomain:!0,className:"react-stockcharts-y-axis",ticks:10,outerTickSize:0,domainClassName:"react-stockcharts-axis-domain",fill:"none",stroke:"#FFFFFF",strokeWidth:1,opacity:1,innerTickSize:5,tickPadding:6,tickStroke:"#000000",tickStrokeOpacity:1,fontFamily:"Helvetica Neue, Helvetica, Arial, sans-serif",fontSize:12,yZoomWidth:40,zoomEnabled:!0,getMouseDelta:function(t,e){return t[1]-e[1]}},y.contextTypes={yAxisZoom:h.a.func.isRequired,chartId:h.a.oneOfType([h.a.number,h.a.string]).isRequired,chartConfig:h.a.object.isRequired},e.a=y},function(t,e,n){"use strict";function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function a(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function o(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}function i(t,e){var n=t.itemType,r=t.yAccessor,a=e.plotData,o="first"===n?Object(y.k)(a,r):Object(y.y)(a,r);return Object(y.v)(o)?c(t,e,o):null}function c(t,e,n){var r=t.type,a=t.displayFormat,o=t.edgeAt,i=t.yAxisPad,c=t.orient,s=t.yAccessor,u=t.fill,l=t.textFill,f=t.rectHeight,h=t.rectWidth,p=t.arrowWidth,d=t.fontFamily,b=t.fontSize,g=e.xScale,m=e.chartConfig.yScale,O=e.xAccessor,w=s(n),x=O(n),k=Math.round(g(x)),_=Math.round(m(w)),j=g.range(),S=v(j,2),C=S[0],E=S[1],P="left"===o?C-i:E+i;return{coordinate:a(w),show:!0,type:r,orient:c,edgeAt:P,fill:Object(y.l)(u)(n),fontFamily:d,fontSize:b,textFill:Object(y.l)(l)(n),rectHeight:f,rectWidth:h,arrowWidth:p,x1:k,y1:_,x2:E,y2:_}}var s=n(0),u=n.n(s),l=n(1),f=n.n(l),h=n(12),p=n(78),d=n(10),b=n(13),y=n(2),v=function(){function t(t,e){var n=[],r=!0,a=!1,o=void 0;try{for(var i,c=t[Symbol.iterator]();!(r=(i=c.next()).done)&&(n.push(i.value),!e||n.length!==e);r=!0);}catch(t){a=!0,o=t}finally{try{!r&&c.return&&c.return()}finally{if(a)throw o}}return n}return function(e,n){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return t(e,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),g=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},m=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),O=function(t){function e(t){r(this,e);var n=a(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return n.renderSVG=n.renderSVG.bind(n),n.drawOnCanvas=n.drawOnCanvas.bind(n),n}return o(e,t),m(e,[{key:"drawOnCanvas",value:function(t,e){var n=i(this.props,e),r=g({},this.props,n);Object(p.a)(t,r)}},{key:"renderSVG",value:function(t){var e=i(this.props,t),n=g({},this.props,e);return Object(p.b)(n)}},{key:"render",value:function(){return u.a.createElement(d.a,{edgeClip:!0,clip:!1,svgDraw:this.renderSVG,canvasDraw:this.drawOnCanvas,canvasToDraw:b.b,drawOn:["pan"]})}}]),e}(s.Component);O.propTypes={yAccessor:f.a.func,type:f.a.oneOf(["horizontal"]),className:f.a.string,fill:f.a.oneOfType([f.a.string,f.a.func]),textFill:f.a.oneOfType([f.a.string,f.a.func]),itemType:f.a.oneOf(["first","last"]).isRequired,orient:f.a.oneOf(["left","right"]),edgeAt:f.a.oneOf(["left","right"]),displayFormat:f.a.func,rectHeight:f.a.number,rectWidth:f.a.number,arrowWidth:f.a.number,lineStrokeDasharray:f.a.oneOf(y.L)},O.defaultProps={className:"react-stockcharts-edgeindicator",type:"horizontal",orient:"left",edgeAt:"left",textFill:"#FFFFFF",displayFormat:Object(h.a)(".2f"),yAxisPad:0,rectHeight:20,rectWidth:50,arrowWidth:10,fontFamily:"Helvetica Neue, Helvetica, Arial, sans-serif",fontSize:13,dx:0,hideLine:!1,fill:"#8a8a8a",opacity:1,lineStroke:"#000000",lineOpacity:.3,lineStrokeDasharray:"ShortDash"},e.a=O},function(t,e,n){"use strict";function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function a(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function o(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}function i(t,e){var n=t.fill,r=t.yAccessor,a=t.r,o=e.show,i=e.xScale,c=e.chartConfig.yScale,s=e.currentItem,u=e.xAccessor;if(!o||Object(h.w)(s))return null;var l=u(s),f=r(s);return Object(h.w)(f)?null:{x:Math.round(i(l)),y:Math.round(c(f)),r:a,fill:n}}var c=n(0),s=n.n(c),u=n(1),l=n.n(u),f=n(10),h=n(2),p=n(13),d=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),b=function(t){function e(t){r(this,e);var n=a(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return n.renderSVG=n.renderSVG.bind(n),n.drawOnCanvas=n.drawOnCanvas.bind(n),n}return o(e,t),d(e,[{key:"drawOnCanvas",value:function(t,e){var n=i(this.props,e);if(!n)return null;t.fillStyle=n.fill,t.beginPath(),t.arc(n.x,n.y,n.r,0,2*Math.PI,!1),t.fill()}},{key:"renderSVG",value:function(t){var e=this.props.className,n=i(this.props,t);return n?s.a.createElement("circle",{className:e,cx:n.x,cy:n.y,r:n.r,fill:n.fill}):null}},{key:"render",value:function(){return s.a.createElement(f.a,{svgDraw:this.renderSVG,canvasDraw:this.drawOnCanvas,canvasToDraw:p.c,drawOn:["mousemove","pan"]})}}]),e}(c.Component);b.propTypes={yAccessor:l.a.func,r:l.a.number.isRequired,className:l.a.string},b.defaultProps={r:3,className:"react-stockcharts-current-coordinate"},e.a=b},function(t,e,n){"use strict";function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function a(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function o(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}function i(t,e){var n=e.xScale,r=e.xAccessor,a=e.currentItem,o=e.mouseXY,i=t.snapX,c=i?n(r(a)):o[0],s=e.displayXAccessor,u=t.displayFormat;return{x:c,coordinate:u(i?s(a):n.invert(c))}}function c(t,e){var n=e.show,r=e.currentItem,a=e.chartConfig.height;if(Object(b.w)(r))return null;var o=t.customX,i=t.orient,c=t.at,s=t.rectWidth,u=t.rectHeight,l=t.fill,f=t.opacity,h=t.fontFamily,p=t.fontSize,d=t.textFill,y="bottom"===c?a:0,v=o(t,e),g=v.x;return{coordinate:v.coordinate,show:n,type:"vertical",orient:i,edgeAt:y,hideLine:!0,fill:l,opacity:f,fontFamily:h,fontSize:p,textFill:d,rectWidth:s,rectHeight:u,arrowWidth:0,x1:g,x2:g,y1:0,y2:a}}var s=n(0),u=n.n(s),l=n(1),f=n.n(l),h=n(78),p=n(10),d=n(13),b=n(2),y=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),v=function(t){function e(t){r(this,e);var n=a(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return n.renderSVG=n.renderSVG.bind(n),n.drawOnCanvas=n.drawOnCanvas.bind(n),n}return o(e,t),y(e,[{key:"drawOnCanvas",value:function(t,e){var n=c(this.props,e);if(Object(b.w)(n))return null;Object(h.a)(t,n)}},{key:"renderSVG",value:function(t){var e=c(this.props,t);return Object(b.w)(e)?null:Object(h.b)(e)}},{key:"render",value:function(){return u.a.createElement(p.a,{svgDraw:this.renderSVG,clip:!1,canvasDraw:this.drawOnCanvas,canvasToDraw:d.c,drawOn:["mousemove","pan","drag"]})}}]),e}(s.Component);v.propTypes={displayFormat:f.a.func.isRequired,yAxisPad:f.a.number,rectWidth:f.a.number,rectHeight:f.a.number,orient:f.a.oneOf(["bottom","top","left","right"]),at:f.a.oneOf(["bottom","top","left","right"]),fill:f.a.string,opacity:f.a.number,fontFamily:f.a.string,fontSize:f.a.number,textFill:f.a.string,snapX:f.a.bool},v.defaultProps={yAxisPad:0,rectWidth:80,rectHeight:20,orient:"bottom",at:"bottom",fill:"#525252",opacity:1,fontFamily:"Helvetica Neue, Helvetica, Arial, sans-serif",fontSize:13,textFill:"#FFFFFF",snapX:!0,customX:i},e.a=v},function(t,e,n){"use strict";function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function a(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function o(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}function i(t,e){var n=e.chartId,r=e.width,a=e.show,o=e.currentCharts,i=e.chartConfig.yScale,c=e.mouseXY;if(Object(d.w)(c))return null;if(o.indexOf(n)<0)return null;var s=t.orient,u=t.at,l=t.rectWidth,f=t.rectHeight,h=t.displayFormat,p=t.dx,b=t.fill,y=t.opacity,v=t.fontFamily,g=t.fontSize,m=t.textFill,O=t.arrowWidth,w=r,x="right"===u?r:0,k=c[1];return{coordinate:h(i.invert(k)),show:a,type:"horizontal",orient:s,edgeAt:x,hideLine:!0,fill:b,opacity:y,fontFamily:v,fontSize:g,textFill:m,rectWidth:l,rectHeight:f,arrowWidth:O,dx:p,x1:0,x2:w,y1:k,y2:k}}var c=n(0),s=n.n(c),u=n(1),l=n.n(u),f=n(78),h=n(10),p=n(13),d=n(2),b=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),y=function(t){function e(t){r(this,e);var n=a(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return n.renderSVG=n.renderSVG.bind(n),n.drawOnCanvas=n.drawOnCanvas.bind(n),n}return o(e,t),b(e,[{key:"drawOnCanvas",value:function(t,e){var n=i(this.props,e);if(Object(d.w)(n))return null;Object(f.a)(t,n)}},{key:"renderSVG",value:function(t){var e=i(this.props,t);return Object(d.w)(e)?null:Object(f.b)(e)}},{key:"render",value:function(){return s.a.createElement(h.a,{clip:!1,svgDraw:this.renderSVG,canvasDraw:this.drawOnCanvas,canvasToDraw:p.c,drawOn:["mousemove","pan","drag"]})}}]),e}(c.Component);y.propTypes={displayFormat:l.a.func.isRequired,yAxisPad:l.a.number,rectWidth:l.a.number,rectHeight:l.a.number,orient:l.a.oneOf(["bottom","top","left","right"]),at:l.a.oneOf(["bottom","top","left","right"]),dx:l.a.number,fill:l.a.string,opacity:l.a.number,fontFamily:l.a.string,fontSize:l.a.number,textFill:l.a.string},y.defaultProps={yAxisPad:0,rectWidth:50,rectHeight:20,orient:"left",at:"left",dx:0,arrowWidth:10,fill:"#525252",opacity:1,fontFamily:"Helvetica Neue, Helvetica, Arial, sans-serif",fontSize:13,textFill:"#FFFFFF"},e.a=y},function(t,e,n){"use strict";function r(t,e){var n={};for(var r in t)e.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(t,r)&&(n[r]=t[r]);return n}function a(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function i(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}function c(t,e){var n=e.xScale,r=e.xAccessor,a=e.currentItem,o=e.mouseXY;return t.snapX?Math.round(n(r(a))):o[0]}function s(t,e){var n=e.mouseXY,r=e.currentItem,a=e.show,o=e.height,i=e.width,c=t.customX,s=t.stroke,u=t.opacity,l=t.strokeDasharray;if(!a||Object(d.w)(r))return null;var f={x1:0,x2:i,y1:n[1],y2:n[1],stroke:s,strokeDasharray:l,opacity:u},h=c(t,e);return[f,{x1:h,x2:h,y1:0,y2:o,stroke:s,strokeDasharray:l,opacity:u}]}var u=n(0),l=n.n(u),f=n(1),h=n.n(f),p=n(13),d=n(2),b=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},y=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),v=function(t){function e(t){a(this,e);var n=o(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return n.renderSVG=n.renderSVG.bind(n),n.drawOnCanvas=n.drawOnCanvas.bind(n),n}return i(e,t),y(e,[{key:"drawOnCanvas",value:function(t,e){var n=s(this.props,e);if(Object(d.v)(n)){var r=this.context,a=r.margin,o=r.ratio,i=.5*o+a.left,c=.5*o+a.top;t.save(),t.setTransform(1,0,0,1,0,0),t.scale(o,o),t.translate(i,c),n.forEach(function(e){var n=Object(d.q)(e.strokeDasharray).split(",").map(function(t){return+t});t.strokeStyle=Object(d.t)(e.stroke,e.opacity),t.setLineDash(n),t.beginPath(),t.moveTo(e.x1,e.y1),t.lineTo(e.x2,e.y2),t.stroke()}),t.restore()}}},{key:"renderSVG",value:function(t){var e=this.props.className,n=s(this.props,t);return Object(d.w)(n)?null:l.a.createElement("g",{className:"react-stockcharts-crosshair "+e},n.map(function(t,e){var n=t.strokeDasharray,a=r(t,["strokeDasharray"]);return l.a.createElement("line",b({key:e,strokeDasharray:Object(d.q)(n)},a))}))}},{key:"render",value:function(){return l.a.createElement(p.a,{svgDraw:this.renderSVG,clip:!1,canvasDraw:this.drawOnCanvas,canvasToDraw:p.c,drawOn:["mousemove","pan","drag"]})}}]),e}(u.Component);v.propTypes={className:h.a.string,strokeDasharray:h.a.oneOf(d.L)},v.contextTypes={margin:h.a.object.isRequired,ratio:h.a.number.isRequired},v.defaultProps={stroke:"#000000",opacity:.3,strokeDasharray:"ShortDash",snapX:!0,customX:c},e.a=v},function(t,e,n){"use strict";function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function a(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function o(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}function i(t,e){var n=e.width,r=e.chartConfig.yScale,a=r.domain()[0],o=r.domain()[1],i=r.range()[0],c=r.range()[1],s=(a-o)/(i-c),u=t.orient,l=t.at,f=t.rectWidth,h=t.rectHeight,p=t.displayFormat,b=t.dx,y=t.price,v=t.fill,g=t.opacity,m=t.fontFamily,O=t.fontSize,w=t.textFill,x=t.arrowWidth,k=t.lineOpacity,_=t.lineStroke,j=n,S="right"===l?n:0,C=0,E=void 0;y<o+5||y>a-5?(C=y/s+(i-a/s),E=!0):E=!1;return{coordinate:p(r.invert(C)),show:E,type:"horizontal",orient:u,edgeAt:S,hideLine:!1,lineOpacity:k,lineStroke:_,fill:Object(d.l)(v)(y),textFill:Object(d.l)(w)(y),opacity:g,fontFamily:m,fontSize:O,rectWidth:f,rectHeight:h,arrowWidth:x,dx:b,x1:0,x2:j,y1:C,y2:C}}var c=n(0),s=n.n(c),u=n(1),l=n.n(u),f=n(78),h=n(10),p=n(13),d=n(2),b=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),y=function(t){function e(t){r(this,e);var n=a(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return n.renderSVG=n.renderSVG.bind(n),n.drawOnCanvas=n.drawOnCanvas.bind(n),n}return o(e,t),b(e,[{key:"drawOnCanvas",value:function(t,e){var n=i(this.props,e);Object(f.a)(t,n)}},{key:"renderSVG",value:function(t){var e=i(this.props,t);return Object(f.b)(e)}},{key:"render",value:function(){return s.a.createElement(h.a,{clip:!1,svgDraw:this.renderSVG,canvasDraw:this.drawOnCanvas,canvasToDraw:p.b,drawOn:["pan"]})}}]),e}(c.Component);y.propTypes={displayFormat:l.a.func.isRequired,yAxisPad:l.a.number,rectWidth:l.a.number,rectHeight:l.a.number,orient:l.a.oneOf(["bottom","top","left","right"]),at:l.a.oneOf(["bottom","top","left","right"]),price:l.a.number,dx:l.a.number,arrowWidth:l.a.number,opacity:l.a.number,lineOpacity:l.a.number,lineStroke:l.a.string,fontFamily:l.a.string,fontSize:l.a.number,fill:l.a.oneOfType([l.a.string,l.a.func]),textFill:l.a.oneOfType([l.a.string,l.a.func])},y.defaultProps={yAxisPad:0,rectWidth:50,rectHeight:20,orient:"left",at:"left",price:0,dx:0,arrowWidth:0,fill:"#BAB8b8",opacity:1,lineOpacity:.2,lineStroke:"#000000",fontFamily:"Helvetica Neue, Helvetica, Arial, sans-serif",fontSize:13,textFill:"#FFFFFF"},e.a=y},function(t,e,n){"use strict";function r(t,e,n,r){return u.b.map(function(a,o){return{level:u.b.length-o-1,format:r[a(t,e,n)]}}).find(function(t){return!!t.format})}function a(t,e,n,r){return function(a){var o=t(e);return{index:p.source(o).misc({initialIndex:n,formatters:r})(a)}}}function o(){var t=0,e=s.u,n=function(t){return t.date},r=function(t){return t.idx},o=function(t,e){return f({},t,{idx:e})},l=void 0,h=u.a,p=function(u){var f=l;if(Object(s.w)(f)){f=a(e,n,t,h)(u).index}var p=f.map(function(t){var e=t.format;return{index:t.index,level:t.level,date:new Date(t.date),format:Object(i.a)(e)}}),d=Object(c.a)(p);return{data:Object(s.P)().combine(o)(u,p),xScale:d,xAccessor:function(t){return t&&r(t).index},displayXAccessor:e(n)}};return p.initialIndex=function(e){return arguments.length?(t=e,p):t},p.inputDateAccessor=function(t){return arguments.length?(n=t,p):n},p.indexAccessor=function(t){return arguments.length?(r=t,p):r},p.indexMutator=function(t){return arguments.length?(o=t,p):o},p.withIndex=function(t){return arguments.length?(l=t,p):l},p.utc=function(){return e=function(t){return function(e){var n=t(e),r=60*n.getTimezoneOffset()*1e3;return new Date(n.getTime()+r)}},p},p.setLocale=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return t&&Object(i.b)(t),e&&(h=e),p},p.indexCalculator=function(){return a(e,n,t,h)},p}e.b=o;var i=n(21),c=n(181),s=n(2),u=n(182),l=function(){function t(t,e){var n=[],r=!0,a=!1,o=void 0;try{for(var i,c=t[Symbol.iterator]();!(r=(i=c.next()).done)&&(n.push(i.value),!e||n.length!==e);r=!0);}catch(t){a=!0,o=t}finally{try{!r&&c.return&&c.return()}finally{if(a)throw o}}return n}return function(e,n){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return t(e,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),f=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},h=Object(s.K)().windowSize(2).undefinedValue(function(t,e,n){var a=n.initialIndex,o=n.formatters,i=a,c={date:t.getTime(),startOf30Seconds:!1,startOfMinute:!1,startOf5Minutes:!1,startOf15Minutes:!1,startOf30Minutes:!1,startOfHour:!1,startOfEighthOfADay:!1,startOfQuarterDay:!1,startOfHalfDay:!1,startOfDay:!0,startOfWeek:!1,startOfMonth:!1,startOfQuarter:!1,startOfYear:!1},s=r(c,t,i,o);return f({},c,{index:i},s)}),p=h.accumulator(function(t,e,n,a){var o=l(t,2),i=o[0],c=o[1],s=a.initialIndex,u=a.formatters,h=c.getSeconds()%30==0,p=c.getMinutes()!==i.getMinutes(),d=p&&c.getMinutes()%5<=i.getMinutes()%5,b=p&&c.getMinutes()%15<=i.getMinutes()%15,y=p&&c.getMinutes()%30<=i.getMinutes()%30,v=c.getHours()!==i.getHours(),g=v&&c.getHours()%3==0,m=v&&c.getHours()%6==0,O=v&&c.getHours()%12==0,w=c.getDay()!==i.getDay(),x=c.getDay()<i.getDay(),k=c.getMonth()!==i.getMonth(),_=k&&c.getMonth()%3<=i.getMonth()%3,j=c.getFullYear()!==i.getFullYear(),S={date:c.getTime(),startOf30Seconds:h,startOfMinute:p,startOf5Minutes:d,startOf15Minutes:b,startOf30Minutes:y,startOfHour:v,startOfEighthOfADay:g,startOfQuarterDay:m,startOfHalfDay:O,startOfDay:w,startOfWeek:x,startOfMonth:k,startOfQuarter:_,startOfYear:j},C=r(S,c,e,u);return f({},S,{index:e+s},C)});e.a=o()},function(t,e,n){"use strict";function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function a(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function o(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var i=n(12),c=n(0),s=n.n(c),u=n(1),l=n.n(u),f=n(44),h=n(10),p=n(38),d=n(39),b=n(2),y=function(){function t(t,e){var n=[],r=!0,a=!1,o=void 0;try{for(var i,c=t[Symbol.iterator]();!(r=(i=c.next()).done)&&(n.push(i.value),!e||n.length!==e);r=!0);}catch(t){a=!0,o=t}finally{try{!r&&c.return&&c.return()}finally{if(a)throw o}}return n}return function(e,n){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return t(e,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),v=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),g=function(t){function e(t){r(this,e);var n=a(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return n.renderSVG=n.renderSVG.bind(n),n}return o(e,t),v(e,[{key:"renderSVG",value:function(t){var e=this.props,n=e.onClick,r=e.fontFamily,a=e.fontSize,o=e.displayFormat,i=e.className,c=this.props,u=c.yAccessor,l=c.options,f=c.appearance,h=c.labelFill,v=this.props.displayValuesFor,g=t.chartConfig,m=g.width,O=g.height,w=v(this.props,t),x=w&&u(w),k=x&&x.macd&&o(x.macd)||"n/a",_=x&&x.signal&&o(x.signal)||"n/a",j=x&&x.divergence&&o(x.divergence)||"n/a",S=this.props.origin,C=Object(b.l)(S),E=C(m,O),P=y(E,2),T=P[0],M=P[1];return s.a.createElement("g",{className:i,transform:"translate("+T+", "+M+")",onClick:n},s.a.createElement(p.a,{x:0,y:0,fontFamily:r,fontSize:a},s.a.createElement(d.a,{fill:h},"MACD ("),s.a.createElement("tspan",{fill:f.stroke.macd},l.slow),s.a.createElement(d.a,{fill:h},", "),s.a.createElement("tspan",{fill:f.stroke.macd},l.fast),s.a.createElement(d.a,{fill:h},"): "),s.a.createElement("tspan",{fill:f.stroke.macd},k),s.a.createElement(d.a,{fill:h}," Signal ("),s.a.createElement("tspan",{fill:f.stroke.signal},l.signal),s.a.createElement(d.a,{fill:h},"): "),s.a.createElement("tspan",{fill:f.stroke.signal},_),s.a.createElement(d.a,{fill:h}," Divergence: "),s.a.createElement("tspan",{fill:f.fill.divergence},j)))}},{key:"render",value:function(){return s.a.createElement(h.a,{clip:!1,svgDraw:this.renderSVG,drawOn:["mousemove"]})}}]),e}(c.Component);g.propTypes={origin:l.a.oneOfType([l.a.array,l.a.func]).isRequired,className:l.a.string,fontFamily:l.a.string,fontSize:l.a.number,labelFill:l.a.string,yAccessor:l.a.func.isRequired,options:l.a.shape({slow:l.a.number.isRequired,fast:l.a.number.isRequired,signal:l.a.number.isRequired}).isRequired,appearance:l.a.shape({stroke:{macd:l.a.string.isRequired,signal:l.a.string.isRequired}.isRequired,fill:l.a.shape({divergence:l.a.string.isRequired}).isRequired}).isRequired,displayFormat:l.a.func.isRequired,displayValuesFor:l.a.func,onClick:l.a.func},g.defaultProps={origin:[0,0],displayFormat:Object(i.a)(".2f"),displayValuesFor:f.a,className:"react-stockcharts-tooltip"},e.a=g},function(t,e,n){"use strict";function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function a(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function o(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}function i(t,e,n){var r=t.className,a=t.textFill,o=t.labelFill,i=t.onClick,c=t.fontFamily,u=t.fontSize,l=t.displayTexts,f=n.displayDate,h=n.open,p=n.high,d=n.low,b=n.close,g=n.volume,m=n.x,O=n.y;return s.a.createElement("g",{className:"react-stockcharts-tooltip-hover "+r,transform:"translate("+m+", "+O+")",onClick:i},s.a.createElement(y.a,{x:0,y:0,fontFamily:c,fontSize:u},s.a.createElement(v.a,{fill:o,key:"label",x:0,dy:"5"},l.d),s.a.createElement("tspan",{key:"value",fill:a},f),s.a.createElement(v.a,{fill:o,key:"label_O"},l.o),s.a.createElement("tspan",{key:"value_O",fill:a},h),s.a.createElement(v.a,{fill:o,key:"label_H"},l.h),s.a.createElement("tspan",{key:"value_H",fill:a},p),s.a.createElement(v.a,{fill:o,key:"label_L"},l.l),s.a.createElement("tspan",{key:"value_L",fill:a},d),s.a.createElement(v.a,{fill:o,key:"label_C"},l.c),s.a.createElement("tspan",{key:"value_C",fill:a},b),s.a.createElement(v.a,{fill:o,key:"label_Vol"},l.v),s.a.createElement("tspan",{key:"value_Vol",fill:a},g)))}var c=n(0),s=n.n(c),u=n(1),l=n.n(u),f=n(12),h=n(21),p=n(44),d=n(10),b=n(2),y=n(38),v=n(39),g=function(){function t(t,e){var n=[],r=!0,a=!1,o=void 0;try{for(var i,c=t[Symbol.iterator]();!(r=(i=c.next()).done)&&(n.push(i.value),!e||n.length!==e);r=!0);}catch(t){a=!0,o=t}finally{try{!r&&c.return&&c.return()}finally{if(a)throw o}}return n}return function(e,n){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return t(e,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),m=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),O=function(t){function e(t){r(this,e);var n=a(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return n.renderSVG=n.renderSVG.bind(n),n}return o(e,t),m(e,[{key:"renderSVG",value:function(t){var e=this.props.displayValuesFor,n=this.props,r=n.xDisplayFormat,a=n.accessor,o=n.volumeFormat,i=n.ohlcFormat,c=n.percentFormat,s=n.displayTexts,u=t.chartConfig,l=u.width,f=u.height,h=t.displayXAccessor,p=e(this.props,t),d=void 0,y=void 0,v=void 0,m=void 0,O=void 0,w=void 0,x=void 0;if(d=y=v=m=O=w=x=s.na,Object(b.v)(p)&&Object(b.v)(a(p))){var k=a(p);w=Object(b.v)(k.volume)?o(k.volume):s.na,d=r(h(k)),y=i(k.open),v=i(k.high),m=i(k.low),O=i(k.close),x=c((k.close-k.open)/k.open)}var _=this.props.origin,j=Object(b.l)(_),S=j(l,f),C=g(S,2),E=C[0],P=C[1],T={displayDate:d,open:y,high:v,low:m,close:O,percent:x,volume:w,x:E,y:P};return this.props.children(this.props,t,T)}},{key:"render",value:function(){return s.a.createElement(d.a,{clip:!1,svgDraw:this.renderSVG,drawOn:["mousemove"]})}}]),e}(c.Component);O.propTypes={className:l.a.string,accessor:l.a.func,xDisplayFormat:l.a.func,children:l.a.func,volumeFormat:l.a.func,percentFormat:l.a.func,ohlcFormat:l.a.func,origin:l.a.oneOfType([l.a.array,l.a.func]),fontFamily:l.a.string,fontSize:l.a.number,onClick:l.a.func,displayValuesFor:l.a.func,textFill:l.a.string,labelFill:l.a.string,displayTexts:l.a.object};var w={d:"Date: ",o:" O: ",h:" H: ",l:" L: ",c:" C: ",v:" Vol: ",na:"n/a"};O.defaultProps={accessor:function(t){return{date:t.date,open:t.open,high:t.high,low:t.low,close:t.close,volume:t.volume}},xDisplayFormat:Object(h.a)("%Y-%m-%d"),volumeFormat:Object(f.a)(".4s"),percentFormat:Object(f.a)(".2%"),ohlcFormat:Object(f.a)(".2f"),displayValuesFor:p.a,origin:[0,0],children:i,displayTexts:w},e.a=O},function(t,e,n){"use strict";function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function a(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function o(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var i=n(0),c=n.n(i),s=n(1),u=n.n(s),l=n(12),f=n(44),h=n(10),p=n(38),d=n(39),b=n(2),y=function(){function t(t,e){var n=[],r=!0,a=!1,o=void 0;try{for(var i,c=t[Symbol.iterator]();!(r=(i=c.next()).done)&&(n.push(i.value),!e||n.length!==e);r=!0);}catch(t){a=!0,o=t}finally{try{!r&&c.return&&c.return()}finally{if(a)throw o}}return n}return function(e,n){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return t(e,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),v=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),g=function(t){function e(t){r(this,e);var n=a(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return n.renderSVG=n.renderSVG.bind(n),n}return o(e,t),v(e,[{key:"renderSVG",value:function(t){var e=this.props,n=e.onClick,r=e.fontFamily,a=e.fontSize,o=e.labelFill,i=e.valueFill,s=e.className,u=this.props,l=u.xDisplayFormat,f=u.yDisplayFormat,h=u.xLabel,v=u.yLabel,g=u.xAccessor,m=u.yAccessor,O=this.props.displayValuesFor,w=t.chartConfig,x=w.width,k=w.height,_=O(this.props,t),j=Object(b.v)(_)&&Object(b.v)(g(_))?l(g(_)):"n/a",S=Object(b.v)(_)&&Object(b.v)(m(_))?f(m(_)):"n/a",C=this.props.origin,E=Object(b.l)(C),P=E(x,k),T=y(P,2),M=T[0],A=T[1];return c.a.createElement("g",{className:s,transform:"translate("+M+", "+A+")",onClick:n},c.a.createElement(p.a,{x:0,y:0,fontFamily:r,fontSize:a},h?c.a.createElement(d.a,{x:0,dy:"5",fill:o},h+": "):null,h?c.a.createElement("tspan",{fill:i},j+" "):null,c.a.createElement(d.a,{fill:o},v+": "),c.a.createElement("tspan",{fill:i},S)))}},{key:"render",value:function(){return c.a.createElement(h.a,{clip:!1,svgDraw:this.renderSVG,drawOn:["mousemove"]})}}]),e}(i.Component);g.propTypes={xDisplayFormat:u.a.func,yDisplayFormat:u.a.func.isRequired,xLabel:u.a.string,yLabel:u.a.oneOfType([u.a.string,u.a.func]).isRequired,labelFill:u.a.string.isRequired,valueFill:u.a.string,origin:u.a.oneOfType([u.a.array,u.a.func]).isRequired,className:u.a.string,fontFamily:u.a.string,fontSize:u.a.number,onClick:u.a.func,displayValuesFor:u.a.func,xAccessor:u.a.func,yAccessor:u.a.func},g.defaultProps={origin:[0,0],labelFill:"#4682B4",valueFill:"#000000",yDisplayFormat:Object(l.a)(".2f"),displayValuesFor:f.a,xAccessor:b.D,yAccessor:b.u,className:"react-stockcharts-tooltip"},e.a=g},function(t,e,n){"use strict";function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function a(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function o(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var i=n(0),c=n.n(i),s=n(1),u=n.n(s),l=n(12),f=n(44),h=n(10),p=n(38),d=n(39),b=n(2),y=function(){function t(t,e){var n=[],r=!0,a=!1,o=void 0;try{for(var i,c=t[Symbol.iterator]();!(r=(i=c.next()).done)&&(n.push(i.value),!e||n.length!==e);r=!0);}catch(t){a=!0,o=t}finally{try{!r&&c.return&&c.return()}finally{if(a)throw o}}return n}return function(e,n){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return t(e,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),v=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},g=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),m=function(t){function e(t){r(this,e);var n=a(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return n.handleClick=n.handleClick.bind(n),n}return o(e,t),g(e,[{key:"handleClick",value:function(t){var e=this.props,n=e.onClick,r=e.forChart,a=e.options;n(v({chartId:r},a),t)}},{key:"render",value:function(){var t=this.props,e=t.textFill,n=t.labelFill,r="translate("+this.props.origin[0]+", "+this.props.origin[1]+")";return c.a.createElement("g",{transform:r},c.a.createElement("line",{x1:0,y1:2,x2:0,y2:28,stroke:this.props.color,strokeWidth:"4px"}),c.a.createElement(p.a,{x:5,y:11,fontFamily:this.props.fontFamily,fontSize:this.props.fontSize},c.a.createElement(d.a,{fill:n},this.props.displayName),c.a.createElement("tspan",{x:"5",dy:"15",fill:e},this.props.value)),c.a.createElement("rect",{x:0,y:0,width:55,height:30,onClick:this.handleClick,fill:"none",stroke:"none"}))}}]),e}(i.Component);m.propTypes={origin:u.a.array.isRequired,color:u.a.string.isRequired,displayName:u.a.string.isRequired,value:u.a.string.isRequired,onClick:u.a.func,fontFamily:u.a.string,textFill:u.a.string,labelFill:u.a.string,fontSize:u.a.number,forChart:u.a.oneOfType([u.a.number,u.a.string]).isRequired,options:u.a.object.isRequired};var O=function(t){function e(t){r(this,e);var n=a(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return n.renderSVG=n.renderSVG.bind(n),n}return o(e,t),g(e,[{key:"renderSVG",value:function(t){var e=this.props.displayValuesFor,n=t.chartId,r=t.chartConfig,a=this.props,o=a.className,i=a.onClick,s=a.width,u=a.fontFamily,l=a.fontSize,f=a.textFill,h=a.labelFill,p=this.props,d=p.origin,v=p.displayFormat,g=p.options,O=t.chartConfig.height,w=e(this.props,t),x=r,k=Object(b.l)(d),_=k(s,O),j=y(_,2),S=j[0],C=j[1],E=y(x.origin,2),P=E[0],T=E[1];return c.a.createElement("g",{transform:"translate("+(P+S)+", "+(T+C)+")",className:o},g.map(function(t,e){var r=w&&t.yAccessor(w),a=t.type+" ("+t.windowSize+")",o=r?v(r):"n/a";return c.a.createElement(m,{key:e,origin:[s*e,0],color:t.stroke,displayName:a,value:o,options:t,forChart:n,onClick:i,fontFamily:u,fontSize:l,textFill:f,labelFill:h})}))}},{key:"render",value:function(){return c.a.createElement(h.a,{clip:!1,svgDraw:this.renderSVG,drawOn:["mousemove"]})}}]),e}(i.Component);O.propTypes={className:u.a.string,displayFormat:u.a.func.isRequired,origin:u.a.array.isRequired,displayValuesFor:u.a.func,onClick:u.a.func,textFill:u.a.string,labelFill:u.a.string,fontFamily:u.a.string,fontSize:u.a.number,width:u.a.number,options:u.a.arrayOf(u.a.shape({yAccessor:u.a.func.isRequired,type:u.a.string.isRequired,stroke:u.a.string.isRequired,windowSize:u.a.number.isRequired,echo:u.a.any}))},O.defaultProps={className:"react-stockcharts-tooltip react-stockcharts-moving-average-tooltip",displayFormat:Object(l.a)(".2f"),displayValuesFor:f.a,origin:[0,10],width:65},e.a=O},function(t,e,n){"use strict";function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function a(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function o(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var i=n(0),c=n.n(i),s=n(1),u=n.n(s),l=n(12),f=n(44),h=n(10),p=n(2),d=n(38),b=n(39),y=function(){function t(t,e){var n=[],r=!0,a=!1,o=void 0;try{for(var i,c=t[Symbol.iterator]();!(r=(i=c.next()).done)&&(n.push(i.value),!e||n.length!==e);r=!0);}catch(t){a=!0,o=t}finally{try{!r&&c.return&&c.return()}finally{if(a)throw o}}return n}return function(e,n){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return t(e,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),v=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),g=function(t){function e(t){r(this,e);var n=a(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return n.renderSVG=n.renderSVG.bind(n),n}return o(e,t),v(e,[{key:"renderSVG",value:function(t){var e=this.props,n=e.onClick,r=e.displayFormat,a=e.yAccessor,o=e.options,i=e.textFill,s=e.labelFill,u=this.props.displayValuesFor,l=t.chartConfig,f=l.width,h=l.height,v=u(this.props,t),g=void 0,m=void 0,O=void 0;if(g=m=O="n/a",Object(p.v)(v)&&Object(p.v)(a(v))){var w=a(v);g=r(w.top),m=r(w.middle),O=r(w.bottom)}var x=this.props.origin,k=Object(p.l)(x),_=k(f,h),j=y(_,2),S=j[0],C=j[1],E=o.sourcePath,P=o.windowSize,T=o.multiplier,M=o.movingAverageType,A="BB("+E+", "+P+", "+T+", "+M+"): ",D=g+", "+m+", "+O;return c.a.createElement("g",{transform:"translate("+S+", "+C+")",className:this.props.className,onClick:n},c.a.createElement(d.a,{x:0,y:0,fontFamily:this.props.fontFamily,fontSize:this.props.fontSize},c.a.createElement(b.a,{fill:s},A),c.a.createElement("tspan",{fill:i},D)))}},{key:"render",value:function(){return c.a.createElement(h.a,{clip:!1,svgDraw:this.renderSVG,drawOn:["mousemove"]})}}]),e}(i.Component);g.propTypes={className:u.a.string,yAccessor:u.a.func.isRequired,displayValuesFor:u.a.func,displayFormat:u.a.func.isRequired,origin:u.a.array.isRequired,onClick:u.a.func,options:u.a.shape({sourcePath:u.a.string.isRequired,windowSize:u.a.number.isRequired,multiplier:u.a.number.isRequired,movingAverageType:u.a.string.isRequired}).isRequired,textFill:u.a.string,labelFill:u.a.string,fontFamily:u.a.string,fontSize:u.a.number},g.defaultProps={className:"react-stockcharts-tooltip react-stockcharts-bollingerband-tooltip",displayFormat:Object(l.a)(".2f"),displayValuesFor:f.a,origin:[0,10]},e.a=g},function(t,e,n){"use strict";function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function a(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function o(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var i=n(12),c=n(0),s=n.n(c),u=n(1),l=n.n(u),f=n(44),h=n(10),p=n(2),d=n(38),b=n(39),y=function(){function t(t,e){var n=[],r=!0,a=!1,o=void 0;try{for(var i,c=t[Symbol.iterator]();!(r=(i=c.next()).done)&&(n.push(i.value),!e||n.length!==e);r=!0);}catch(t){a=!0,o=t}finally{try{!r&&c.return&&c.return()}finally{if(a)throw o}}return n}return function(e,n){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return t(e,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),v=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),g=function(t){function e(t){r(this,e);var n=a(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return n.renderSVG=n.renderSVG.bind(n),n}return o(e,t),v(e,[{key:"renderSVG",value:function(t){var e=this.props,n=e.onClick,r=e.fontFamily,a=e.fontSize,o=e.yAccessor,i=e.displayFormat,c=e.className,u=this.props,l=u.options,f=u.labelFill,h=u.textFill,v=this.props.displayValuesFor,g=t.chartConfig,m=g.width,O=g.height,w=v(this.props,t),x=Object(p.v)(w)&&o(w),k=x&&i(x)||"n/a",_=this.props.origin,j=Object(p.l)(_),S=j(m,O),C=y(S,2),E=C[0],P=C[1],T="RSI ("+l.windowSize+"): ";return s.a.createElement("g",{className:c,transform:"translate("+E+", "+P+")",onClick:n},s.a.createElement(d.a,{x:0,y:0,fontFamily:r,fontSize:a},s.a.createElement(b.a,{fill:f},T),s.a.createElement("tspan",{fill:h},k)))}},{key:"render",value:function(){return s.a.createElement(h.a,{clip:!1,svgDraw:this.renderSVG,drawOn:["mousemove"]})}}]),e}(c.Component);g.propTypes={origin:l.a.oneOfType([l.a.array,l.a.func]).isRequired,options:l.a.shape({windowSize:l.a.number.isRequired}).isRequired,className:l.a.string,fontFamily:l.a.string,fontSize:l.a.number,onClick:l.a.func,yAccessor:l.a.func.isRequired,displayFormat:l.a.func.isRequired,displayValuesFor:l.a.func,textFill:l.a.string,labelFill:l.a.string},g.defaultProps={displayFormat:Object(i.a)(".2f"),displayValuesFor:f.a,origin:[0,0],className:"react-stockcharts-tooltip"},e.a=g},function(t,e,n){"use strict";function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function a(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function o(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var i=n(12),c=n(0),s=n.n(c),u=n(1),l=n.n(u),f=n(44),h=n(10),p=n(2),d=n(38),b=n(39),y=function(){function t(t,e){var n=[],r=!0,a=!1,o=void 0;try{for(var i,c=t[Symbol.iterator]();!(r=(i=c.next()).done)&&(n.push(i.value),!e||n.length!==e);r=!0);}catch(t){a=!0,o=t}finally{try{!r&&c.return&&c.return()}finally{if(a)throw o}}return n}return function(e,n){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return t(e,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),v=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),g=function(t){function e(t){r(this,e);var n=a(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return n.renderSVG=n.renderSVG.bind(n),n}return o(e,t),v(e,[{key:"renderSVG",value:function(t){var e=this.props,n=e.onClick,r=e.fontFamily,a=e.fontSize,o=e.yAccessor,i=e.displayFormat,c=e.label,u=this.props,l=u.className,f=u.options,h=u.appearance,v=u.labelFill,g=this.props.displayValuesFor,m=t.chartConfig,O=m.width,w=m.height,x=g(this.props,t),k=h.stroke,_=x&&o(x),j=_&&_.K&&i(_.K)||"n/a",S=_&&_.D&&i(_.D)||"n/a",C=this.props.origin,E=Object(p.l)(C),P=E(O,w),T=y(P,2),M=T[0],A=T[1];return s.a.createElement("g",{className:l,transform:"translate("+M+", "+A+")",onClick:n},s.a.createElement(d.a,{x:0,y:0,fontFamily:r,fontSize:a},s.a.createElement(b.a,{fill:v},c+" %K("),s.a.createElement("tspan",{fill:k.kLine},f.windowSize+", "+f.kWindowSize),s.a.createElement(b.a,{fill:v},"): "),s.a.createElement("tspan",{fill:k.kLine},j),s.a.createElement(b.a,{fill:v}," %D ("),s.a.createElement("tspan",{fill:k.dLine},f.dWindowSize),s.a.createElement(b.a,{fill:v},"): "),s.a.createElement("tspan",{fill:k.dLine},S)))}},{key:"render",value:function(){return s.a.createElement(h.a,{clip:!1,svgDraw:this.renderSVG,drawOn:["mousemove"]})}}]),e}(c.Component);g.propTypes={origin:l.a.oneOfType([l.a.array,l.a.func]).isRequired,className:l.a.string,fontFamily:l.a.string,fontSize:l.a.number,labelFill:l.a.string,onClick:l.a.func,yAccessor:l.a.func.isRequired,options:l.a.shape({windowSize:l.a.number.isRequired,kWindowSize:l.a.number.isRequired,dWindowSize:l.a.number.isRequired}).isRequired,appearance:l.a.shape({stroke:{dLine:l.a.string.isRequired,kLine:l.a.string.isRequired}.isRequired}).isRequired,displayFormat:l.a.func.isRequired,displayValuesFor:l.a.func,label:l.a.string.isRequired},g.defaultProps={displayFormat:Object(i.a)(".2f"),displayValuesFor:f.a,origin:[0,0],className:"react-stockcharts-tooltip",label:"STO"},e.a=g},function(t,e,n){"use strict";function r(t){if(Array.isArray(t)){for(var e=0,n=Array(t.length);e<t.length;e++)n[e]=t[e];return n}return Array.from(t)}function a(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function i(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}function c(t,e){var n=t.fill,r=t.stroke,a=t.opacity,o=e.height,i=e.width;return m.a.createElement("rect",{height:o,width:i,fill:n,opacity:a,stroke:r})}function s(t,e){for(var n=t.fontFamily,r=t.fontSize,a=t.fontFill,o=[],i=T+.9*r,c=0;c<e.y.length;c++){var s=e.y[c],u=i+r*(c+1);o.push(m.a.createElement("tspan",{key:"L-"+c,x:P,y:u,fill:s.stroke},s.label)),o.push(m.a.createElement("tspan",{key:c},": ")),o.push(m.a.createElement("tspan",{key:"V-"+c},s.value))}return m.a.createElement("text",{fontFamily:n,fontSize:r,fill:a},m.a.createElement("tspan",{x:P,y:i},e.x),o)}function u(t,e,n){var r=e.width,a=e.height,o=t.fill,i=t.stroke,c=t.opacity;n.fillStyle=Object(_.t)(o,c),n.strokeStyle=i,n.beginPath(),n.rect(0,0,r,a),n.fill(),n.stroke()}function l(t,e,n){var r=t.fontFamily,a=t.fontSize,o=t.fontFill,i=T+.9*a;n.font=a+"px "+r,n.fillStyle=o,n.textAlign="left",n.fillText(e.x,P,i);for(var c=0;c<e.y.length;c++){var s=e.y[c],u=i+a*(c+1);n.fillStyle=s.stroke||o,n.fillText(s.label,P,u),n.fillStyle=o,n.fillText(": "+s.value,P+n.measureText(s.label).width,u)}}function f(t,e,n,r,a){var o=n.margin,i=n.ratio,c=e.bgFill,s=e.bgOpacity,u=e.backgroundShapeCanvas,l=e.tooltipCanvas,f=.5*i+o.left,h=.5*i+o.top;t.save(),t.setTransform(1,0,0,1,0,0),t.scale(i,i),t.translate(f,h);var p=r.x,d=r.y,b=r.content,y=r.centerX,v=r.pointWidth,g=r.bgSize;t.fillStyle=Object(_.t)(c,s),t.beginPath(),t.rect(y-v/2,0,v,a),t.fill(),t.translate(p,d),u(e,g,t),l(e,b,t),t.restore()}function h(t,e,n){var r=t.fontFamily,a=t.fontSize,o=t.fontFill;if(Object(_.w)(n)){var i=document.createElement("canvas");n=i.getContext("2d")}n.font=a+"px "+r,n.fillStyle=o,n.textAlign="left";var c=function(t){return{width:n.measureText(t).width,height:a}},s=e.y.map(function(t){var e=t.label,n=t.value;return c(e+": "+n)}).reduce(function(t,e){return p(t,e)},c(String(e.x))),u=s.width,l=s.height;return{width:u+2*P,height:l+2*T}}function p(){for(var t=arguments.length,e=Array(t),n=0;n<t;n++)e[n]=arguments[n];return{width:Math.max.apply(Math,r(e.map(function(t){return t.width}))),height:Object(k.o)(e,function(t){return t.height})}}function d(t,e,n,r){return t<r/2?t+n/2+E:t-e.width-n/2-E}function b(t,e){return t-e.height<=0?t+E:t-e.height-E}function y(t,e,n,r){var a=t.chartId,o=t.yAccessor,i=e.mouseXY,c=e.xAccessor,s=e.currentItem,u=e.xScale,l=e.chartConfig,f=e.width,h=Object(_.y)(i),p=c(s),y=Math.round(u(p));if(Object(_.v)(a)&&Object(_.v)(o)&&Object(_.v)(l)&&Object(_.v)(l.findIndex)){var v=o(s),g=l.findIndex(function(t){return t.id===a});h=Math.round(l[g].yScale(v))}return y=d(y,n,r,f),h=b(h,n),[y,h]}function v(t,e,n){var r=e.show,a=e.xScale,o=e.currentItem,i=e.plotData,c=t.origin,s=t.tooltipContent,u=e.xAccessor,l=e.displayXAccessor;if(r&&!Object(_.w)(o)){var f=u(o);if(r&&!Object(_.w)(f)){var p=s({currentItem:o,xAccessor:l}),d=a(f),b=Math.abs(a(u(Object(_.y)(i)))-a(u(Object(_.k)(i))))/(i.length-1),y=h(t,p,n),v=c(t,e,y,b),g=j(v,2);return{x:g[0],y:g[1],content:p,centerX:d,pointWidth:b,bgSize:y}}}}var g=n(0),m=n.n(g),O=n(1),w=n.n(O),x=n(13),k=n(14),_=n(2),j=function(){function t(t,e){var n=[],r=!0,a=!1,o=void 0;try{for(var i,c=t[Symbol.iterator]();!(r=(i=c.next()).done)&&(n.push(i.value),!e||n.length!==e);r=!0);}catch(t){a=!0,o=t}finally{try{!r&&c.return&&c.return()}finally{if(a)throw o}}return n}return function(e,n){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return t(e,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),S=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),C=function(t){function e(t){a(this,e);var n=o(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return n.renderSVG=n.renderSVG.bind(n),n.drawOnCanvas=n.drawOnCanvas.bind(n),n}return i(e,t),S(e,[{key:"drawOnCanvas",value:function(t,e){var n=v(this.props,e,t),r=e.height;if(Object(_.w)(n))return null;f(t,this.props,this.context,n,r)}},{key:"render",value:function(){return m.a.createElement(x.a,{svgDraw:this.renderSVG,canvasDraw:this.drawOnCanvas,drawOn:["mousemove","pan"]})}},{key:"renderSVG",value:function(t){var e=v(this.props,t);if(Object(_.w)(e))return null;var n=this.props,r=n.bgFill,a=n.bgOpacity,o=n.backgroundShapeSVG,i=n.tooltipSVG,c=this.props,s=c.bgheight,u=c.bgwidth,l=t.height,f=e.x,h=e.y,p=e.content,d=e.centerX,b=e.pointWidth,y=e.bgSize,g=Object(_.v)(u)&&Object(_.v)(s)?{width:u,height:s}:y;return m.a.createElement("g",null,m.a.createElement("rect",{x:d-b/2,y:0,width:b,height:l,fill:r,opacity:a}),m.a.createElement("g",{className:"react-stockcharts-tooltip-content",transform:"translate("+f+", "+h+")"},o(this.props,g),i(this.props,p)))}}]),e}(g.Component);C.propTypes={chartId:w.a.oneOfType([w.a.number,w.a.string]),yAccessor:w.a.func,tooltipSVG:w.a.func,backgroundShapeSVG:w.a.func,bgwidth:w.a.number,bgheight:w.a.number,bgFill:w.a.string.isRequired,bgOpacity:w.a.number.isRequired,tooltipContent:w.a.func.isRequired,origin:w.a.oneOfType([w.a.array,w.a.func]).isRequired,fontFamily:w.a.string,fontSize:w.a.number},C.contextTypes={margin:w.a.object.isRequired,ratio:w.a.number.isRequired},C.defaultProps={tooltipSVG:s,tooltipCanvas:l,origin:y,fill:"#D4E2FD",bgFill:"#D4E2FD",bgOpacity:.5,stroke:"#9B9BFF",fontFill:"#000000",opacity:.8,backgroundShapeSVG:c,backgroundShapeCanvas:u,fontFamily:"Helvetica Neue, Helvetica, Arial, sans-serif",fontSize:12};var E=5,P=10,T=10;e.a=C},function(t,e,n){"use strict";var r=n(2),a=n(27),o=n(26);e.a=function(){var t=Object(o.a)().type("EMA").accessor(function(t){return t.ema}),e=Object(a.f)(),n=Object(r.B)().algorithm(e).merge(function(t,e){t.ema=e}),i=function(r){if((arguments.length>1&&void 0!==arguments[1]?arguments[1]:{merge:!0}).merge){if(!t.accessor())throw new Error("Set an accessor to EMA before calculating");return n(r)}return e(r)};return Object(r.H)(i,t,"id","accessor","stroke","fill","echo","type"),Object(r.H)(i,e,"options","undefinedLength"),Object(r.H)(i,n,"merge","skipUndefined"),i}},function(t,e,n){"use strict";var r=n(14),a=n(2),o=n(25),i=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t};e.a=function(){function t(t){var n=e,o=n.windowSize,i=n.sourcePath,c=o*(o+1)/2;return Object(a.K)().windowSize(o).sourcePath(i).accumulator(function(t){return Object(r.o)(t,function(t,e){return(e+1)*t})/c})(t)}var e=o.q;return t.undefinedLength=function(){return e.windowSize-1},t.options=function(n){return arguments.length?(e=i({},o.q,n),t):e},t}},function(t,e,n){"use strict";var r=n(14),a=n(2),o=n(25),i=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t};e.a=function(){function t(t){var n=e,o=n.windowSize,i=n.sourcePath,c=Math.floor(o/2),s=o%2==0?c*(c+1):(c+1)*(c+1);return Object(a.K)().windowSize(o).sourcePath(i).accumulator(function(t){return Object(r.o)(t,function(t,e){return e<c?(e+1)*t:(o-e)*t})/s})(t)}var e=o.p;return t.undefinedLength=function(){return e.windowSize-1},t.options=function(n){return arguments.length?(e=i({},o.p,n),t):e},t}},function(t,e,n){"use strict";var r=n(14),a=n(64),o=n(2),i=n(25),c=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t};e.a=function(){function t(t){var n=e,i=n.windowSize,c=n.multiplier,s=n.movingAverageType,u=n.sourcePath,l=Object(o.F)(u),f="ema"===s?Object(a.a)().options({windowSize:i,sourcePath:u}):Object(o.K)().windowSize(i).accumulator(function(t){return Object(r.i)(t)}).sourcePath(u);return Object(o.K)().windowSize(i).accumulator(function(t){var e=Object(o.y)(t).mean,n=Object(r.e)(t,function(t){return l(t.datum)});return{top:e+c*n,middle:e,bottom:e-c*n}})(Object(o.P)().combine(function(t,e){return{datum:t,mean:e}})(t,f(t)))}var e=i.b;return t.undefinedLength=function(){return e.windowSize-1},t.options=function(n){return arguments.length?(e=c({},i.b,n),t):e},t}},function(t,e,n){"use strict";var r=n(2),a=function(){function t(t,e){var n=[],r=!0,a=!1,o=void 0;try{for(var i,c=t[Symbol.iterator]();!(r=(i=c.next()).done)&&(n.push(i.value),!e||n.length!==e);r=!0);}catch(t){a=!0,o=t}finally{try{!r&&c.return&&c.return()}finally{if(a)throw o}}return n}return function(e,n){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return t(e,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}();e.a=function(){function t(t){return Object(r.A)().windowSize(2).undefinedValue(function(t){var e=t.open,n=t.high,r=t.low,a=t.close;return a=(e+n+r+a)/4,{open:e,high:n,low:r,close:a}}).accumulator(function(t){var e=a(t,2),n=e[0],r=e[1],o=r.date,i=r.volume,c=(r.open+r.high+r.low+r.close)/4,s=(n.open+n.close)/2;return{date:o,open:s,high:Math.max(s,r.high,c),low:Math.min(s,r.low,c),close:c,volume:i}})(t)}var e=r.u;return t.source=function(n){return arguments.length?(e=n,t):e},t}},function(t,e,n){"use strict";var r=n(2),a=n(110),o=n(25),i=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t};e.a=function(){function t(t){var o=e,s=o.reversalType,u=o.windowSize,l=o.reversal,f=o.sourcePath,h=Object(r.F)(f),p=void 0;if("ATR"===s){var d=Object(a.a)().options({windowSize:u});Object(r.B)().algorithm(d).merge(function(t,e){t["atr"+u]=e})(t),p=function(t){return t["atr"+u]}}else p=Object(r.l)(l);var b=[],y=void 0,v=void 0,g=void 0,m={};return t.forEach(function(t){Object(r.w)(m.from)&&(c(m,n(t)),m.from=n(t),m.open||(m.open=t.open),m.high=t.high,m.low=t.low,m.close||(m.close=h(t)),m.startOfYear=t.startOfYear,m.startOfQuarter=t.startOfQuarter,m.startOfMonth=t.startOfMonth,m.startOfWeek=t.startOfWeek),m.startOfYear||(m.startOfYear=t.startOfYear,m.startOfYear&&(m.date=t.date)),m.startOfQuarter||(m.startOfQuarter=t.startOfQuarter,m.startOfQuarter&&!m.startOfYear&&(m.date=t.date)),m.startOfMonth||(m.startOfMonth=t.startOfMonth,m.startOfMonth&&!m.startOfQuarter&&(m.date=t.date)),m.startOfWeek||(m.startOfWeek=t.startOfWeek,m.startOfWeek&&!m.startOfMonth&&(m.date=t.date)),m.volume=(m.volume||0)+t.volume,m.high=Math.max(m.high,t.high),m.low=Math.min(m.low,t.low),m.to=n(t);var e=h(t)-m.close;if(m.close>=m.open&&e>0||m.close<m.open&&e<0)m.close=h(t),v&&m.close<v&&(m.changePoint=v,"yin"!==m.startAs&&(m.changeTo="yin")),y&&m.close>y&&(m.changePoint=y,"yang"!==m.startAs&&(m.changeTo="yang"));else if(m.close>=m.open&&e<0&&Math.abs(e)>p(t)||m.close<m.open&&e>0&&Math.abs(e)>p(t)){var a=m.close;g=(m.close-m.open)/Math.abs(m.close-m.open);var o=void 0,s=void 0;g<0?(Object(r.w)(y)&&(y=m.open),v=m.close,h(t)>y&&(o=y,s="yang")):(Object(r.w)(v)&&(v=m.open),y=m.close,h(t)<v&&(o=v,s="yin")),Object(r.w)(m.startAs)&&(m.startAs=g>0?"yang":"yin");var u=m.changeTo||m.startAs;m.added=!0,b.push(m),g*=-1,m=i({},m),m.open=a,m.close=h(t),m.startAs=u,m.changePoint=o,m.changeTo=s,m.added=!1,m.from=void 0,m.volume=0}m.current=h(t);var l=m.close-m.open;l=0===l?1:l/Math.abs(l),m.reverseAt=l>0?m.close-p(t):m.open-p(t)}),m.added||b.push(m),b}var e=o.h,n=function(t){return t.date},c=function(t,e){t.date=e};return t.options=function(n){return arguments.length?(e=i({},o.h,n),t):e},t.dateMutator=function(e){return arguments.length?(c=e,t):c},t.dateAccessor=function(e){return arguments.length?(n=e,t):n},t}},function(t,e,n){"use strict";function r(t,e,n){var r={open:t.open,fromDate:e(t),toDate:e(t),startOfYear:t.startOfYear,startOfQuarter:t.startOfQuarter,startOfMonth:t.startOfMonth,startOfWeek:t.startOfWeek};return n(r,e(t)),r}function a(t,e,n){return t.forEach(function(t){t.startOfYear=!1,t.startOfQuarter=!1,t.startOfMonth=!1,t.startOfWeek=!1,t.boxes.forEach(function(r){Object(o.w)(t.open)&&(t.open=r.open),t.close=r.close,t.high=Math.max(t.open,t.close),t.low=Math.min(t.open,t.close),Object(o.w)(t.fromDate)&&(t.fromDate=r.fromDate),Object(o.w)(t.date)&&(t.date=r.date),t.toDate=r.toDate,r.startOfYear&&(t.startOfYear=t.startOfYear||r.startOfYear,t.startOfQuarter=r.startOfQuarter,t.startOfMonth=r.startOfMonth,t.startOfWeek=r.startOfWeek,n(t,e(r))),!0!==t.startOfQuarter&&r.startOfQuarter&&(t.startOfQuarter=r.startOfQuarter,t.startOfMonth=r.startOfMonth,t.startOfWeek=r.startOfWeek,n(t,e(r))),!0!==t.startOfMonth&&r.startOfMonth&&(t.startOfMonth=r.startOfMonth,t.startOfWeek=r.startOfWeek,n(t,e(r))),!0!==t.startOfWeek&&r.startOfWeek&&(t.startOfWeek=r.startOfWeek,n(t,e(r)))})}),t}var o=n(2),i=n(25),c=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t};e.a=function(){function t(t){var i=e,c=i.reversal,s=i.boxSize,u=i.sourcePath,l="high/low"===u?function(t){return{high:t.high,low:t.low}}:function(t){return{high:t.close,low:t.close}},f=l,h=[],p={boxes:[],open:t[0].open},d=r(t[0],n,o);return h.push(p),t.forEach(function(t){if(p.volume=(p.volume||0)+t.volume,d.startOfYear||(d.startOfYear=t.startOfYear,d.startOfYear&&o(d,n(t))),d.startOfYear||d.startOfQuarter||(d.startOfQuarter=t.startOfQuarter,d.startOfQuarter&&!d.startOfYear&&o(d,n(t))),d.startOfQuarter||d.startOfMonth||(d.startOfMonth=t.startOfMonth,d.startOfMonth&&!d.startOfQuarter&&o(d,n(t))),d.startOfMonth||d.startOfWeek||(d.startOfWeek=t.startOfWeek,d.startOfWeek&&!d.startOfMonth&&o(d,n(t))),1===h.length&&0===p.boxes.length){var e=Math.max(f(t).high-p.open,0),a=Math.abs(Math.min(p.open-f(t).low,0));if(p.direction=e>a?1:-1,s*c<e||s*c<a){d.toDate=n(t),d.open=p.open;for(var i=p.direction>0?Math.floor(e/s):Math.floor(a/s),u=0;u<i;u++){d.close=d.open+p.direction*s;var l=d.close;p.boxes.push(d),d=r(d,n,o),d.open=l}d.fromDate=n(t),d.date=n(t)}}else{var b=Math.max(f(t).high-d.open,0),y=Math.abs(Math.min(f(t).low-d.open,0));if(p.direction>0&&b>s||p.direction<0&&y>s){d.close=d.open+p.direction*s,d.toDate=n(t);var v=d.close;p.boxes.push(d),d=r(t,n,o),d.open=v,d.fromDate=n(t),o(d,n(t))}else if(p.direction>0&&y>s*c||p.direction<0&&b>s*c){d.open=d.open+-1*p.direction*s,d.toDate=n(t),o(d,n(t)),p={boxes:[],volume:0,direction:-1*p.direction};for(var g=p.direction>0?Math.floor(b/s):Math.floor(y/s),m=0;m<g;m++){d.close=d.open+p.direction*s;var O=d.close;p.boxes.push(d),d=r(t,n,o),d.open=O}h.push(p)}}}),a(h,n,o),h}var e=i.j,n=function(t){return t.date},o=function(t,e){t.date=e};return t.options=function(n){return arguments.length?(e=c({},i.j,n),t):e},t.dateMutator=function(e){return arguments.length?(o=e,t):o},t.dateAccessor=function(e){return arguments.length?(n=e,t):n},t}},function(t,e,n){"use strict";var r=n(2),a=n(110),o=n(25),i=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t};e.a=function(){function t(t){var o=e,i=o.reversalType,s=o.fixedBrickSize,u=o.sourcePath,l=o.windowSize,f="high/low"===u?function(t){return{high:t.high,low:t.low}}:function(t){return{high:t.close,low:t.close}},h=f,p=void 0;if("ATR"===i){var d=Object(a.a)().options({windowSize:l});Object(r.B)().algorithm(d).merge(function(t,e){t["atr"+l]=e})(t),p=function(t){return t["atr"+l]}}else p=Object(r.l)(s);var b=[],y=0,v=t[y].open,g=t[y].open,m={},O=0;return t.forEach(function(e,a){Object(r.w)(m.from)&&(m.high=e.high,m.low=e.low,m.startOfYear=e.startOfYear,m.startOfQuarter=e.startOfQuarter,m.startOfMonth=e.startOfMonth,m.startOfWeek=e.startOfWeek,m.from=a,m.fromDate=n(e),c(m,n(e))),m.volume=(m.volume||0)+e.volume;var o=v-h(e).high,i=v-h(e).low,s=g-h(e).high,u=g-h(e).low,l=Math.min(Math.abs(o),Math.abs(i),Math.abs(s),Math.abs(u));if(m.high=Math.max(m.high,e.high),m.low=Math.min(m.low,e.low),m.startOfYear||(m.startOfYear=e.startOfYear,m.startOfYear&&c(m,n(e))),m.startOfQuarter||(m.startOfQuarter=e.startOfQuarter,m.startOfQuarter&&!m.startOfYear&&c(m,n(e))),m.startOfMonth||(m.startOfMonth=e.startOfMonth,m.startOfMonth&&!m.startOfQuarter&&c(m,n(e))),m.startOfWeek||(m.startOfWeek=e.startOfWeek,m.startOfWeek&&!m.startOfMonth&&c(m,n(e))),p(e)){var f=Math.floor(l/p(e));if(m.open=Math.abs(o)<Math.abs(s)||Math.abs(i)<Math.abs(u)?v:g,f>=1){var d=0;for(d=0;d<f;d++){m.close=m.open<h(e).high?m.open+p(e):m.open-p(e),O=m.close>m.open?1:-1,m.direction=O,m.to=a,m.toDate=n(e),m.fullyFormed=!0,b.push(m),v=m.close,g=m.open;var w={high:m.high,low:m.low,open:m.close,startOfYear:!1,startOfMonth:!1,startOfQuarter:!1,startOfWeek:!1};m=w,m.from=a,m.fromDate=n(e),c(m,n(e)),m.volume=(m.volume||0)+e.volume}y=y+d-1,m={}}else a===t.length-1&&(m.close=O>0?h(e).high:h(e).low,m.to=a,m.toDate=n(e),c(m,n(e)),m.fullyFormed=!1,b.push(m))}}),b}var e=o.l,n=function(t){return t.date},c=function(t,e){t.date=e};return t.options=function(n){return arguments.length?(e=i({},o.l,n),t):e},t.dateMutator=function(e){return arguments.length?(c=e,t):c},t.dateAccessor=function(e){return arguments.length?(n=e,t):n},t}},function(t,e,n){"use strict";var r=n(64),a=n(2),o=n(25),i=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t};e.a=function(){function t(t){var n=e,o=n.fast,i=n.slow,c=n.signal,s=n.sourcePath,u=Object(r.a)().options({windowSize:o,sourcePath:s}),l=Object(r.a)().options({windowSize:i,sourcePath:s}),f=Object(r.a)().options({windowSize:c,sourcePath:void 0}),h=Object(a.P)().combine(function(t,e){return Object(a.v)(t)&&Object(a.v)(e)?t-e:void 0}),p=h(u(t),l(t)),d=new Array(i),b=d.concat(f(p.slice(i)));return Object(a.P)().combine(function(t,e){return{macd:t,signal:e,divergence:Object(a.v)(t)&&Object(a.v)(e)?t-e:void 0}})(p,b)}var e=o.i;return t.undefinedLength=function(){var t=e;return t.slow+t.signal-1},t.options=function(n){return arguments.length?(e=i({},o.i,n),t):e},t}},function(t,e,n){"use strict";var r=n(14),a=n(2),o=n(25),i=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t};e.a=function(){function t(t){var n=e,o=n.windowSize,i=n.sourcePath,c=Object(a.F)(i),s=void 0,u=void 0;return Object(a.K)().windowSize(o).accumulator(function(t){var e=Object(a.v)(s)?(s*(o-1)+Object(a.y)(t).gain)/o:Object(r.i)(t,function(t){return t.gain}),n=Object(a.v)(u)?(u*(o-1)+Object(a.y)(t).loss)/o:Object(r.i)(t,function(t){return t.loss}),i=e/n,c=100-100/(1+i);return s=e,u=n,c})(Object(a.K)().windowSize(2).undefinedValue(function(){return[0,0]}).accumulator(function(t){var e=t[0],n=t[1],r=c(n)-c(e);return{gain:Math.max(r,0),loss:Math.abs(Math.min(r,0))}})(t))}var e=o.k;return t.undefinedLength=function(){return e.windowSize-1},t.options=function(n){return arguments.length?(e=i({},o.k,n),t):e},t}},function(t,e,n){"use strict";var r=n(14),a=n(2),o=n(25),i=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t};e.a=function(){function t(t){var o=e,i=o.windowSize,c=o.kWindowSize,s=o.dWindowSize,u=function(t){return n(t).high},l=function(t){return n(t).low},f=function(t){return n(t).close},h=Object(a.K)().windowSize(i).accumulator(function(t){var e=Object(r.h)(t,u),n=Object(r.k)(t,l);return(f(Object(a.y)(t))-n)/(e-n)*100}),p=Object(a.K)().skipInitial(i-1).windowSize(c).accumulator(function(t){return Object(r.i)(t)}),d=Object(a.K)().skipInitial(i-1+c-1).windowSize(s).accumulator(function(t){return Object(r.i)(t)}),b=Object(a.P)().combine(function(t,e){return{K:t,D:e}}),y=p(h(t));return b(y,d(y))}var e=o.g,n=function(t){return{open:t.open,high:t.high,low:t.low,close:t.close}};return t.undefinedLength=function(){var t=e;return t.windowSize+t.kWindowSize+t.dWindowSize},t.source=function(e){return arguments.length?(n=e,t):n},t.options=function(n){return arguments.length?(e=i({},o.g,n),t):e},t}},function(t,e,n){"use strict";n(184),n(64),n(183),n(2),n(25),Object.assign},function(t,e,n){"use strict";var r=n(14),a=n(64),o=n(25),i=n(2),c=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t};e.a=function(){function t(t){var o=e,c=o.windowSize,s=o.sourcePath,u=o.movingAverageType,l="ema"===u?Object(a.a)().options({windowSize:c,sourcePath:s}):Object(i.K)().windowSize(c).accumulator(function(t){return Object(r.i)(t)}).sourcePath(s);return Object(i.P)().combine(function(t,e){return{bullPower:Object(i.v)(e)?n(t).high-e:void 0,bearPower:Object(i.v)(e)?n(t).low-e:void 0}})(t,l(t))}var e=o.e,n=function(t){return{open:t.open,high:t.high,low:t.low,close:t.close}};return t.undefinedLength=function(){return e.windowSize-1},t.ohlc=function(e){return arguments.length?(n=e,t):n},t.options=function(n){return arguments.length?(e=c({},o.e,n),t):e},t}},function(t,e,n){"use strict";function r(t,e){return{risingSar:t.risingSar+t.af*(t.risingEp-t.risingSar),fallingSar:t.fallingSar-t.af*(t.fallingSar-t.fallingEp),risingEp:Math.max(t.risingEp,e.high),fallingEp:Math.min(t.fallingEp,e.low)}}var a=n(2),o=n(25),i=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},c=function(){function t(t,e){var n=[],r=!0,a=!1,o=void 0;try{for(var i,c=t[Symbol.iterator]();!(r=(i=c.next()).done)&&(n.push(i.value),!e||n.length!==e);r=!0);}catch(t){a=!0,o=t}finally{try{!r&&c.return&&c.return()}finally{if(a)throw o}}return n}return function(e,n){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return t(e,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}();e.a=function(){function t(t){var n=e,o=n.accelerationFactor,s=n.maxAccelerationFactor;return Object(a.A)().windowSize(2).undefinedValue(function(t){var e=t.high,n=t.low;return{risingSar:n,risingEp:e,fallingSar:e,fallingEp:n,af:o}}).accumulator(function(t){var e=c(t,2),n=e[0],u=e[1],l=r(n,u),f=l.risingSar,h=l.fallingSar,p=l.risingEp,d=l.fallingEp;if(Object(a.w)(n.use)&&f>u.low&&h<u.high)return{risingSar:f,fallingSar:h,risingEp:p,fallingEp:d};var b=Object(a.v)(n.use)?"rising"===n.use?f>u.low?"falling":"rising":h<u.high?"rising":"falling":f>u.low?"falling":"rising",y=n.use===b?{af:Math.min(s,n.af+o),fallingEp:d,risingEp:p,fallingSar:h,risingSar:f}:{af:o,fallingEp:u.low,risingEp:u.high,fallingSar:Math.max(n.risingEp,u.high),risingSar:Math.min(n.fallingEp,u.low)},v=u.date,g=u.high,m=u.low;return i({date:v,high:g,low:m},y,{use:b,sar:"falling"===b?y.fallingSar:y.risingSar})})(t).map(function(t){return t.sar})}var e=o.m;return t.undefinedLength=function(){return 1},t.options=function(n){return arguments.length?(e=i({},o.m,n),t):e},t}},function(t,e,n){"use strict";var r=n(2),a=n(25),o=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t};e.a=function(){function t(t){var n=e,a=n.basePath,o=n.mainKeys,c=n.compareKeys,s=Object(r.F)(a),u=Object(r.s)(t),l=s(u),f={};return t.map(function(t){var e={};return o.forEach(function(n){"object"===i(t[n])?(e[n]={},Object.keys(t[n]).forEach(function(r){e[n][r]=(t[n][r]-l)/l})):e[n]=(t[n]-l)/l}),c.forEach(function(n){Object(r.v)(t[n])&&Object(r.w)(f[n])&&(f[n]=t[n]),Object(r.v)(t[n])&&Object(r.v)(f[n])&&(e[n]=(t[n]-f[n])/f[n])}),e})}var e=a.c;return t.options=function(n){return arguments.length?(e=o({},a.c,n),t):e},t}},function(t,e,n){"use strict";var r=n(2),a=n(25),o=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},i=function(){function t(t,e){var n=[],r=!0,a=!1,o=void 0;try{for(var i,c=t[Symbol.iterator]();!(r=(i=c.next()).done)&&(n.push(i.value),!e||n.length!==e);r=!0);}catch(t){a=!0,o=t}finally{try{!r&&c.return&&c.return()}finally{if(a)throw o}}return n}return function(e,n){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return t(e,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}();e.a=function(){function t(t){var n=e,a=n.sourcePath;return Object(r.K)().windowSize(2).sourcePath(a).accumulator(function(t){var e=i(t,2),n=e[0],r=e[1],a=r-n;return{absoluteChange:a,percentChange:100*a/n}})(t)}var e=a.c;return t.undefinedLength=function(){return 1},t.options=function(n){return arguments.length?(e=o({},a.c,n),t):e},t}},function(t,e,n){"use strict";var r=n(2),a=n(27),o=n(26);e.a=function(){var t=Object(o.a)().type("SMA").accessor(function(t){return t.sma}),e=Object(a.o)(),n=Object(r.B)().algorithm(e).merge(function(t,e){t.sma=e}),i=function(r){if((arguments.length>1&&void 0!==arguments[1]?arguments[1]:{merge:!0}).merge){if(!t.accessor())throw new Error("Set an accessor to SMA before calculating");return n(r)}return e(r)};return Object(r.H)(i,t,"id","accessor","stroke","fill","echo","type"),Object(r.H)(i,e,"undefinedLength"),Object(r.H)(i,e,"options"),Object(r.H)(i,n,"merge","skipUndefined"),i}},function(t,e,n){"use strict";var r=n(2),a=n(27),o=n(26);e.a=function(){var t=Object(o.a)().type("WMA").accessor(function(t){return t.wma}),e=Object(a.r)(),n=Object(r.B)().algorithm(e).merge(function(t,e){t.wma=e}),i=function(r){if((arguments.length>1&&void 0!==arguments[1]?arguments[1]:{merge:!0}).merge){if(!t.accessor())throw new Error("Set an accessor to WMA before calculating");return n(r)}return e(r)};return Object(r.H)(i,t,"id","accessor","stroke","fill","echo","type"),Object(r.H)(i,e,"undefinedLength"),Object(r.H)(i,e,"options"),Object(r.H)(i,n,"merge","skipUndefined"),i}},function(t,e,n){"use strict";var r=n(2),a=n(27),o=n(26);e.a=function(){var t=Object(o.a)().type("TMA").accessor(function(t){return t.tma}),e=Object(a.q)(),n=Object(r.B)().algorithm(e).merge(function(t,e){t.tma=e}),i=function(r){if((arguments.length>1&&void 0!==arguments[1]?arguments[1]:{merge:!0}).merge){if(!t.accessor())throw new Error("Set an accessor to TMA before calculating");return n(r)}return e(r)};return Object(r.H)(i,t,"id","accessor","stroke","fill","echo","type"),Object(r.H)(i,e,"undefinedLength"),Object(r.H)(i,e,"options"),Object(r.H)(i,n,"merge","skipUndefined"),i}},function(t,e,n){"use strict";var r=n(2),a=n(26),o=n(27);e.a=function(){var t=Object(a.a)().type("BollingerBand"),e=Object(o.b)(),n=Object(r.B)().algorithm(e).merge(function(t,e){t.bollingerBand=e}),i=function(r){if((arguments.length>1&&void 0!==arguments[1]?arguments[1]:{merge:!0}).merge){if(!t.accessor())throw new Error("Set an accessor to BollingerBand before calculating");return n(r)}return e(r)};return Object(r.H)(i,t,"id","accessor","stroke","fill","echo","type"),Object(r.H)(i,e,"options"),Object(r.H)(i,n,"merge","skipUndefined"),i}},function(t,e,n){"use strict";var r=n(27),a=n(26),o=n(2),i=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t};e.a=function(){var t=Object(a.a)().type("HeikinAshi").accessor(function(t){return t.ha}),e=Object(r.h)(),n=Object(o.B)().algorithm(e).merge(function(t,e){return i({},t,e)}),c=function(r){if((arguments.length>1&&void 0!==arguments[1]?arguments[1]:{merge:!0}).merge){if(!t.accessor())throw new Error("Set an accessor to HeikinAshi before calculating");return n(r)}return e(r)};return Object(o.H)(c,t,"accessor","stroke","fill","echo","type"),Object(o.H)(c,n,"merge"),c}},function(t,e,n){"use strict";var r=n(2),a=n(27),o=n(26);e.a=function(){var t=Object(o.a)().type("Kagi"),e=Object(a.i)(),n=e;return Object(r.H)(n,t,"id","stroke","fill","echo","type"),Object(r.H)(n,e,"dateAccessor","dateMutator"),Object(r.H)(n,e,"options"),n}},function(t,e,n){"use strict";var r=n(2),a=n(27),o=n(26);e.a=function(){var t=Object(o.a)().type("PointAndFigure"),e=Object(a.k)(),n=e;return Object(r.H)(n,t,"id","stroke","fill","echo","type"),Object(r.H)(n,e,"dateAccessor","dateMutator"),Object(r.H)(n,e,"options"),n}},function(t,e,n){"use strict";var r=n(2),a=n(27),o=n(26);e.a=function(){var t=Object(o.a)().type("Renko"),e=Object(a.l)(),n=e;return Object(r.H)(n,t,"id","stroke","fill","echo","type"),Object(r.H)(n,e,"dateAccessor","dateMutator"),Object(r.H)(n,e,"options"),n}},function(t,e,n){"use strict";var r=n(2),a=n(27),o=n(26),i=n(111);e.a=function(){var t=Object(o.a)().type("MACD").fill(i.b.fill).stroke(i.b.stroke).accessor(function(t){return t.macd}),e=Object(a.j)(),n=Object(r.B)().algorithm(e).merge(function(t,e){t.macd=e}),c=function(r){if((arguments.length>1&&void 0!==arguments[1]?arguments[1]:{merge:!0}).merge){if(!t.accessor())throw new Error("Set an accessor to MACD before calculating");return n(r)}return e(r)};return Object(r.H)(c,t,"id","accessor","stroke","fill","echo","type"),Object(r.H)(c,e,"options","undefinedLength"),Object(r.H)(c,n,"merge","skipUndefined"),c}},function(t,e,n){"use strict";var r=n(2),a=n(27),o=n(26);e.a=function(){var t=Object(o.a)().type("RSI").accessor(function(t){return t.rsi}),e=Object(a.m)(),n=Object(r.B)().algorithm(e).merge(function(t,e){t.rsi=e}),i=function(r){if((arguments.length>1&&void 0!==arguments[1]?arguments[1]:{merge:!0}).merge){if(!t.accessor())throw new Error("Set an accessor to RSI before calculating");return n(r)}return e(r)};return Object(r.H)(i,t,"id","accessor","stroke","fill","echo","type"),Object(r.H)(i,e,"options","undefinedLength"),Object(r.H)(i,n,"merge","skipUndefined"),i}},function(t,e,n){"use strict";var r=n(2),a=n(27),o=n(26);e.a=function(){var t=Object(o.a)().type("ATR"),e=Object(a.a)(),n=Object(r.B)().algorithm(e).merge(function(t,e){t.atr=e}),i=function(r){if((arguments.length>1&&void 0!==arguments[1]?arguments[1]:{merge:!0}).merge){if(!t.accessor())throw new Error("Set an accessor to ATR before calculating");return n(r)}return e(r)};return Object(r.H)(i,t,"id","accessor","stroke","fill","echo","type"),Object(r.H)(i,e,"options"),Object(r.H)(i,n,"merge","skipUndefined"),i}},function(t,e,n){"use strict";var r=n(2),a=n(27),o=n(26);e.a=function(){var t=Object(o.a)().type("STO"),e=Object(a.p)(),n=Object(r.B)().algorithm(e).merge(function(t,e){t.sto=e}),i=function(r){if((arguments.length>1&&void 0!==arguments[1]?arguments[1]:{merge:!0}).merge){if(!t.accessor())throw new Error("Set an accessor to STO before calculating");return n(r)}return e(r)};return Object(r.H)(i,t,"id","accessor","stroke","fill","echo","type"),Object(r.H)(i,e,"options","undefinedLength"),Object(r.H)(i,n,"merge","skipUndefined"),i}},function(t,e,n){"use strict";var r=n(2),a=n(27),o=n(26);e.a=function(){var t=Object(o.a)().type("ForceIndex").accessor(function(t){return t.forceIndex}),e=Object(a.g)(),n=Object(r.B)().algorithm(e).merge(function(t,e){t.forceIndex=e}),i=function(r){if((arguments.length>1&&void 0!==arguments[1]?arguments[1]:{merge:!0}).merge){if(!t.accessor())throw new Error("Set an accessor to ForceIndex before calculating");return n(r)}return e(r)};return Object(r.H)(i,t,"id","accessor","stroke","fill","echo","type"),Object(r.H)(i,e,"options"),Object(r.H)(i,n,"merge","skipUndefined"),i}},function(t,e,n){"use strict";var r=n(2),a=n(27),o=n(26);e.a=function(){var t=Object(o.a)().type("SMA").accessor(function(t){return t.sar}),e=Object(a.n)(),n=Object(r.B)().algorithm(e).merge(function(t,e){t.sar=e}),i=function(r){if((arguments.length>1&&void 0!==arguments[1]?arguments[1]:{merge:!0}).merge){if(!t.accessor())throw new Error("Set an accessor to SMA before calculating");return n(r)}return e(r)};return Object(r.H)(i,t,"id","accessor","stroke","echo","type"),Object(r.H)(i,e,"undefinedLength"),Object(r.H)(i,e,"options"),Object(r.H)(i,n,"merge"),i}},function(t,e,n){"use strict";var r=n(2),a=n(27),o=n(26);e.a=function(){var t=Object(o.a)().type("ElderRay").accessor(function(t){return t.elderRay}),e=Object(a.e)(),n=Object(r.B)().algorithm(e).merge(function(t,e){t.elderRay=e}),i=function(r){if((arguments.length>1&&void 0!==arguments[1]?arguments[1]:{merge:!0}).merge){if(!t.accessor())throw new Error("Set an accessor to ElderRay before calculating");return n(r)}return e(r)};return Object(r.H)(i,t,"id","accessor","stroke","fill","echo","type"),Object(r.H)(i,e,"options"),Object(r.H)(i,n,"merge","skipUndefined"),i}},function(t,e,n){"use strict";var r=n(2),a=n(27),o=n(26);e.a=function(){var t=Object(o.a)().type("Change"),e=Object(a.c)(),n=Object(r.B)().algorithm(e).merge(function(t,e){t.absoluteChange=e.absoluteChange,t.percentChange=e.percentChange}),i=function(t){return(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{merge:!0}).merge?n(t):e(t)};return Object(r.H)(i,t,"id","accessor","stroke","fill","echo","type"),Object(r.H)(i,e,"options"),Object(r.H)(i,n,"merge","skipUndefined"),i}},function(t,e,n){"use strict";var r=n(2),a=n(111),o=n(26),i=function(){function t(t,e){var n=[],r=!0,a=!1,o=void 0;try{for(var i,c=t[Symbol.iterator]();!(r=(i=c.next()).done)&&(n.push(i.value),!e||n.length!==e);r=!0);}catch(t){a=!0,o=t}finally{try{!r&&c.return&&c.return()}finally{if(a)throw o}}return n}return function(e,n){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return t(e,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}();e.a=function(){var t=void 0,e=void 0,n=Object(o.a)().type("ElderImpulse").stroke(a.a.stroke).fill(void 0),c=Object(r.K)().windowSize(2).undefinedValue("neutral").accumulator(function(n){var a=i(n,2),o=a[0],c=a[1];if(Object(r.w)(t))throw new Error("macdSource not defined for ElderImpulse calculator");if(Object(r.w)(e))throw new Error("emaSource not defined for ElderImpulse calculator");if(Object(r.v)(t(o))&&Object(r.v)(e(o))){var s=t(o).divergence,u=t(c).divergence,l=e(o),f=e(c);if(u>=s&&f>=l)return"up";if(u<=s&&f<=l)return"down"}return"neutral"}),s=Object(r.B)().algorithm(c).merge(function(t,e){t.elderImpulse=e}),u=function(t){return(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{merge:!0}).merge?s(t):c(t)};return u.macdSource=function(e){return arguments.length?(t=e,u):t},u.emaSource=function(t){return arguments.length?(e=t,u):e},Object(r.H)(u,n,"id","echo","type","stroke"),Object(r.H)(u,s,"merge","skipUndefined"),u}},function(t,e,n){"use strict";var r=n(2),a=n(27),o=n(26);e.a=function(){var t=Object(o.a)().type("Compare").accessor(function(t){return t.compare}),e=Object(a.d)(),n=Object(r.B)().algorithm(e).merge(function(t,e){t.compare=e}),i=function(r){if((arguments.length>1&&void 0!==arguments[1]?arguments[1]:{merge:!0}).merge){if(!t.accessor())throw new Error("Set an accessor to Compare before calculating");return n(r)}return e(r)};return Object(r.H)(i,t,"id","accessor","stroke","fill","echo","type"),Object(r.H)(i,e,"options"),Object(r.H)(i,n,"merge"),i}},function(t,e,n){"use strict";function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function a(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function o(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var i=n(0),c=n.n(i),s=n(1),u=n.n(s),l=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),f=function(t){function e(t){r(this,e);var n=a(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return n.state={type:n.props.type},n.handleTypeChange=n.handleTypeChange.bind(n),n}return o(e,t),l(e,[{key:"handleTypeChange",value:function(t){this.setState({type:t.target.value})}},{key:"render",value:function(){return c.a.createElement("div",null,c.a.createElement("label",null,"Type: "),c.a.createElement("select",{name:"type",id:"type",onChange:this.handleTypeChange,value:this.state.type},c.a.createElement("option",{value:"svg"},"svg"),c.a.createElement("option",{value:"hybrid"},"canvas + svg")),c.a.createElement("div",{style:this.props.style},this.props.children(this.state.type)))}}]),e}(i.Component);f.propTypes={type:u.a.oneOf(["svg","hybrid"]),children:u.a.func.isRequired,style:u.a.object.isRequired},f.defaultProps={type:"hybrid",style:{}},e.a=f},function(t,e,n){"use strict";var r=n(467),a=n.n(r),o=n(2),i={save:function(t,e,n,r){a.a.svgAsDataUri(e.getElementsByTagName("svg")[0],{},function(a){var i=new Image;i.onload=function(){var a=t.createElement("canvas");a.width=i.width,a.height=i.height;var c=a.getContext("2d");Object(o.v)(n)&&(c.fillStyle=n,c.fillRect(0,0,a.width,a.height));for(var s=e.getElementsByTagName("canvas"),u=0;u<s.length;u++){var l=s[u];if(Object(o.v)(l)){var f=l.parentNode.parentNode.getBoundingClientRect(),h=l.getBoundingClientRect();c.drawImage(l,h.left-f.left+0,h.top-f.top+0)}}c.drawImage(i,0,0),r(a.toDataURL("image/png"))},i.src=a})},saveWithWhiteBG:function(t,e,n){return this.saveWithBG(t,e,"white",n)},saveWithDarkBG:function(t,e,n){return this.saveWithBG(t,e,"#303030",n)},saveWithBG:function(t,e,n,r){return this.save(t,e,n,r)},saveChartAsImage:function(t){this.saveWithWhiteBG(document,t,function(t){var e=document.createElement("a");e.setAttribute("href",t),e.setAttribute("download","Chart.png"),document.body.appendChild(e),e.addEventListener("click",function(){e.parentNode.removeChild(e)}),e.click()})}};e.a=i},function(t,e,n){var r;!function(){function a(t){return t instanceof HTMLElement||t instanceof SVGElement}function o(t){if(!a(t))throw new Error("an HTMLElement or SVGElement is required; got "+t)}function i(t){return t&&0==t.lastIndexOf("http",0)&&-1==t.lastIndexOf(window.location.host)}function c(t,e){o(t);var n=t.querySelectorAll("image"),r=n.length,a=function(){0===r&&e()};a();for(var c=0;c<n.length;c++)!function(t){var e=t.getAttributeNS("http://www.w3.org/1999/xlink","href");if(!e||!i(e.value)){var n=document.createElement("canvas"),o=n.getContext("2d"),c=new Image;c.crossOrigin="anonymous",e=e||t.getAttribute("href"),e?(c.src=e,c.onload=function(){n.width=c.width,n.height=c.height,o.drawImage(c,0,0),t.setAttributeNS("http://www.w3.org/1999/xlink","href",n.toDataURL("image/png")),r--,a()},c.onerror=function(){r--,a()}):(r--,a())}}(n[c])}function s(t,e,n){function r(t){if(t.length>0){var e=t.pop();!function(e){function n(){var t=s.response,n=a(t);i(e,n)}function o(t){c+=e.text+"\n",r()}function i(e,n){var a='url("data:'+e.format+";base64,"+n+'")';c+=e.text.replace(e.fontUrlRegexp,a)+"\n",setTimeout(function(){r(t)},0)}var s=new XMLHttpRequest;s.addEventListener("load",n),s.addEventListener("error",o),s.addEventListener("abort",o),s.open("GET",e.url),s.responseType="arraybuffer",s.send()}(e)}else n(c)}function a(t){for(var e="",n=new Uint8Array(t),r=n.byteLength,a=0;a<r;a++)e+=String.fromCharCode(n[a]);return window.btoa(e)}for(var o=e.selectorRemap,i=e.modifyStyle,c="",s=[],u=document.styleSheets,l=0;l<u.length;l++){try{var f=u[l].cssRules}catch(t){continue}if(null!=f)for(var h,p=0;p<f.length;p++,h=null){var d=f[p];if(void 0!==d.style){var b;try{b=d.selectorText}catch(t){}try{b&&(h=t.querySelector(b)||t.parentNode.querySelector(b))}catch(t){}if(h){var y=o?o(d.selectorText):d.selectorText,v=i?i(d.style.cssText):d.style.cssText;c+=y+" { "+v+" }\n"}else if(d.cssText.match(/^@font-face/)){var g=/url\(["']?(.+?)["']?\)/,m=d.cssText.match(g),O=m&&m[1]||"",w=O.match(/^data:/);w&&(O=""),O?(O.startsWith("../")?O=u[l].href+"/../"+O:O.startsWith("./")&&(O=u[l].href+"/."+O),s.push({text:d.cssText,fontUrlRegexp:g,format:function(t){for(var e={woff2:"font/woff2",woff:"font/woff",otf:"application/x-font-opentype",ttf:"application/x-font-ttf",eot:"application/vnd.ms-fontobject",sfnt:"application/font-sfnt",svg:"image/svg+xml"},n=Object.keys(e),r=0;r<n.length;++r){var a=n[r];if(t.indexOf("."+a)>0)return e[a]}return"application/octet-stream"}(O),url:O})):c+=d.cssText+"\n"}}}}r(s)}function u(t,e,n){var r=t.viewBox&&t.viewBox.baseVal&&t.viewBox.baseVal[n]||null!==e.getAttribute(n)&&!e.getAttribute(n).match(/%$/)&&parseInt(e.getAttribute(n))||t.getBoundingClientRect()[n]||parseInt(e.style[n])||parseInt(window.getComputedStyle(t).getPropertyValue(n));return void 0===r||null===r||isNaN(parseFloat(r))?0:r}function l(t){return t=encodeURIComponent(t),t=t.replace(/%([0-9A-F]{2})/g,function(t,e){var n=String.fromCharCode("0x"+e);return"%"===n?"%25":n}),decodeURIComponent(t)}function f(t){for(var e=window.atob(t.split(",")[1]),n=t.split(",")[0].split(":")[1].split(";")[0],r=new ArrayBuffer(e.length),a=new Uint8Array(r),o=0;o<e.length;o++)a[o]=e.charCodeAt(o);return new Blob([r],{type:n})}var h=void 0!==e&&e||{}||this;h.prepareSvg=function(t,e,n){o(t),e=e||{},e.scale=e.scale||1,e.responsive=e.responsive||!1;var r="http://www.w3.org/2000/xmlns/";c(t,function(){function a(t){var e=document.createElement("style");e.setAttribute("type","text/css"),e.innerHTML="<![CDATA[\n"+t+"\n]]>";var r=document.createElement("defs");if(r.appendChild(e),l.insertBefore(r,l.firstChild),n){var a=c.innerHTML;a=a.replace(/NS\d+:href/gi,'xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href'),n(a,o,i)}}var o,i,c=document.createElement("div"),l=t.cloneNode(!0);if("svg"==t.tagName)o=e.width||u(t,l,"width"),i=e.height||u(t,l,"height");else{if(!t.getBBox)return;var f=t.getBBox();o=f.x+f.width,i=f.y+f.height,l.setAttribute("transform",l.getAttribute("transform").replace(/translate\(.*?\)/,""));var h=document.createElementNS("http://www.w3.org/2000/svg","svg");h.appendChild(l),l=h}l.setAttribute("version","1.1"),l.getAttribute("xmlns")||l.setAttributeNS(r,"xmlns","http://www.w3.org/2000/svg"),l.getAttribute("xmlns:xlink")||l.setAttributeNS(r,"xmlns:xlink","http://www.w3.org/1999/xlink"),e.responsive?(l.removeAttribute("width"),l.removeAttribute("height"),l.setAttribute("preserveAspectRatio","xMinYMin meet")):(l.setAttribute("width",o*e.scale),l.setAttribute("height",i*e.scale)),l.setAttribute("viewBox",[e.left||0,e.top||0,o,i].join(" "));for(var p=l.querySelectorAll("foreignObject > *"),d=0;d<p.length;d++)p[d].getAttribute("xmlns")||p[d].setAttributeNS(r,"xmlns","http://www.w3.org/1999/xhtml");c.appendChild(l),s(t,e,a)})},h.svgAsDataUri=function(t,e,n){h.prepareSvg(t,e,function(t){var e="data:image/svg+xml;base64,"+window.btoa(l('<?xml version="1.0" standalone="no"?><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd" [<!ENTITY nbsp "&#160;">]>'+t));n&&n(e)})},h.svgAsPngUri=function(t,e,n){o(t),e=e||{},e.encoderType=e.encoderType||"image/png",e.encoderOptions=e.encoderOptions||.8;var r=function(t,r,a){var o=document.createElement("canvas"),i=o.getContext("2d");o.width=r,o.height=a,e.canvg?e.canvg(o,t):i.drawImage(t,0,0),e.backgroundColor&&(i.globalCompositeOperation="destination-over",i.fillStyle=e.backgroundColor,i.fillRect(0,0,o.width,o.height));var c;try{c=o.toDataURL(e.encoderType,e.encoderOptions)}catch(t){if("undefined"!=typeof SecurityError&&t instanceof SecurityError||"SecurityError"==t.name)return;throw t}n(c)};e.canvg?h.prepareSvg(t,e,r):h.svgAsDataUri(t,e,function(t){var e=new Image;e.onload=function(){r(e,e.width,e.height)},e.onerror=function(){},e.src=t})},h.download=function(t,e){if(navigator.msSaveOrOpenBlob)navigator.msSaveOrOpenBlob(f(e),t);else{var n=document.createElement("a");if("download"in n){n.download=t,n.style.display="none",document.body.appendChild(n);try{var r=f(e),a=URL.createObjectURL(r);n.href=a,n.onclick=function(){requestAnimationFrame(function(){URL.revokeObjectURL(a)})}}catch(t){n.href=e}n.click(),document.body.removeChild(n)}else window.open(e,"_temp","menubar=no,toolbar=no,status=no")}},h.saveSvg=function(t,e,n){o(t),n=n||{},h.svgAsDataUri(t,n,function(t){h.download(e,t)})},h.saveSvgAsPng=function(t,e,n){o(t),n=n||{},h.svgAsPngUri(t,n,function(t){h.download(e,t)})},void 0!==(r=function(){return h}.call(e,n,e,t))&&(t.exports=r)}()},function(t,e,n){"use strict";function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function a(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function o(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}function i(t){return t.displayName||t.name||"Series"}function c(t){var e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:100,c=function(i){function c(t){r(this,c);var e=a(this,(c.__proto__||Object.getPrototypeOf(c)).call(this,t));return e.handleWindowResize=e.handleWindowResize.bind(e),e.getWrappedInstance=e.getWrappedInstance.bind(e),e.saveNode=e.saveNode.bind(e),e.setTestCanvas=e.setTestCanvas.bind(e),e.state={},e}return o(c,i),d(c,[{key:"saveNode",value:function(t){this.node=t}},{key:"setTestCanvas",value:function(t){this.testCanvas=t}},{key:"getRatio",value:function(){if(Object(h.v)(this.testCanvas)){var t=this.testCanvas.getContext("2d");return(window.devicePixelRatio||1)/(t.webkitBackingStorePixelRatio||t.mozBackingStorePixelRatio||t.msBackingStorePixelRatio||t.oBackingStorePixelRatio||t.backingStorePixelRatio||1)}return 1}},{key:"componentDidMount",value:function(){window.addEventListener("resize",this.handleWindowResize);var t=this.node,e=t.parentNode.clientWidth;this.setState({width:Math.max(e,n),ratio:this.getRatio()})}},{key:"componentWillUnmount",value:function(){window.removeEventListener("resize",this.handleWindowResize)}},{key:"handleWindowResize",value:function(){var t=f.a.findDOMNode(this.node),e=t.parentNode.clientWidth;e>n&&this.setState({width:e})}},{key:"getWrappedInstance",value:function(){return this.node}},{key:"render",value:function(){var n=e?{ref:this.saveNode}:{};return this.state.width?u.a.createElement(t,p({width:this.state.width,ratio:this.state.ratio},this.props,n)):u.a.createElement("div",n,u.a.createElement("canvas",{ref:this.setTestCanvas}))}}]),c}(s.Component);return c.displayName="fitWidth("+i(t)+")",c}e.a=c;var s=n(0),u=n.n(s),l=n(32),f=n.n(l),h=n(2),p=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},d=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}()},function(t,e,n){"use strict";var r=n(0),a=(n.n(r),n(32));n.n(a),n(2),Object.assign,function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}}()},function(t,e,n){var r=n(471);"string"==typeof r&&(r=[[t.i,r,""]]);var a={hmr:!0};a.transform=void 0;n(474)(r,a);r.locals&&(t.exports=r.locals)},function(t,e,n){e=t.exports=n(472)(void 0),e.push([t.i,"/* Move down content because we have a fixed navbar that is 50px tall */\n/*! normalize.css v3.0.2 | MIT License | git.io/normalize */\n/* #MainContainer {\n   position: fixed;\n   top: 50px;\n   padding-left: 100px;\n} */\naside table {\n  border: 1;\n  border-spacing: 1px;\n  border-collapse: collapse;\n  max-width: 100%;\n  margin-bottom: 20px;\n}\n\naside table tbody > tr > td,\naside table tbody > tr > th,\naside table tfoot > tr > td,\naside table tfoot > tr > th,\naside table thead > tr > td,\naside table thead > tr > th {\n  padding: 8px;\n  line-height: 1.42857;\n  vertical-align: top;\n  border-top: 1px solid #DDD;\n}\n\na.button {\n  background: transparent url("+n(473)+') 0 0 no-repeat;\n  width: 203px;\n  height: 80px;\n  padding-left: 60px;\n  color: #fff !important;\n}\n\na.button small {\n  display: inline;\n  font-size: 13px;\n  margin-top: 15px;\n}\n\n.dark {\n  background: #303030;\n}\n\n.dark .react-stockcharts-tooltip {\n  fill: white;\n}\n\n.dark .react-stockcharts-tooltip-label {\n  fill: yellow;\n}\n\n.jumbotron {\n  background: steelblue;\n  padding: 0px;\n  color: white;\n}\n\n.jumbotron a {\n  color: yellow;\n}\n\n.top-spacing {\n  padding-top: 10px;\n}\n\n.navbar {\n  background-color: steelblue;\n}\n\n.navbar a {\n  color: white;\n}\n\n/*\n * Top navigation\n * Hide default border to remove 1px line.\n */\n.navbar-fixed-top {\n  border: 0;\n}\n\n/*\n * Sidebar\n */\n/* Hide for mobile, show later */\n.sidebar {\n  display: none;\n}\n\n@media (min-width: 768px) {\n  .sidebar {\n    position: fixed;\n    top: 51px;\n    bottom: 0;\n    left: 0;\n    z-index: 1000;\n    display: block;\n    padding: 5px 20px;\n    overflow-x: hidden;\n    overflow-y: auto;\n    /* Scrollable contents if viewport is shorter than content. */\n    background-color: #f5f5f5;\n    border-right: 1px solid #eee;\n  }\n}\n\n/* Sidebar navigation */\n.nav-sidebar {\n  margin-right: -21px;\n  /* 20px padding + 1px border */\n  margin-bottom: 20px;\n  margin-left: -20px;\n}\n\n.nav-sidebar > li > a {\n  padding-right: 20px;\n  padding-left: 20px;\n  padding-top: 2px;\n  padding-bottom: 2px;\n  font-size: 13px;\n}\n\n.nav-sidebar > .active a, .nav-sidebar > .active a:hover, .nav-sidebar > .active a:focus {\n  color: #fff;\n  background-color: #428bca;\n}\n\n/*\n * Main content\n */\n.main {\n  top: 51px;\n}\n\n@media (min-width: 768px) {\n  .main {\n    padding-right: 40px;\n    padding-left: 40px;\n  }\n}\n\n.main .page-header {\n  margin-top: 0;\n}\n\nimg[alt="Done"] {\n  max-width: 20px;\n  max-height: 20px;\n  padding-bottom: 4px;\n}\n',""])},function(t,e){function n(t,e){var n=t[1]||"",a=t[3];if(!a)return n;if(e&&"function"==typeof btoa){var o=r(a);return[n].concat(a.sources.map(function(t){return"/*# sourceURL="+a.sourceRoot+t+" */"})).concat([o]).join("\n")}return[n].join("\n")}function r(t){return"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(t))))+" */"}t.exports=function(t){var e=[];return e.toString=function(){return this.map(function(e){var r=n(e,t);return e[2]?"@media "+e[2]+"{"+r+"}":r}).join("")},e.i=function(t,n){"string"==typeof t&&(t=[[null,t,""]]);for(var r={},a=0;a<this.length;a++){var o=this[a][0];"number"==typeof o&&(r[o]=!0)}for(a=0;a<t.length;a++){var i=t[a];"number"==typeof i[0]&&r[i[0]]||(n&&!i[2]?i[2]=n:n&&(i[2]="("+i[2]+") and ("+n+")"),e.push(i))}},e}},function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAMoAAABQCAQAAADykSIGAAAF1UlEQVR4Ae3df4zXdR3A8cfnvnccd7i7gwMiCCE6BzlwImVFpqgnykANZ66RawHTQJrnVizJymwENKUcJSBjsEqyJrIEQiHQSoutWBA4BYwLGCi/Tu7O7pDv/fj0R2vfHdx9J3ef7925vR9/v/577j6/vrfXO9IjgrhYkb4K0OR9jc4BEMUATHe7z/mEAkF3anLI3/3e85rbRvm4VSr1pOAV9zmUiXK17cq96+de8IbzChQrkdLihLQgSfmGSmlwRiug0Bh3qjJAjZvsJYoZ5W/KbfZVZ2XkGaifFm9rFiTnI4o1OOVCJdaZ5owJjkYx291sszvELjRYP41OCpJSZIgWx7S6WMomU2x1WxTfbqMaFWpdLM/HpJzUKEhGuRJn1WrfcLuVmxrFq822yCPaV6a/ejWCZAzTx3Fp7etjoflWRPEbPunTdnU4NkzacUEyRoocFmtf5FYv2hfFaQWKvN/h2Eixw4LuiJKnwgFNURwjL8vYCK2OCLrn8jVMNf+LUijdCy5f4UZfpn8mSn+14Ubfk4/EmWfdTJQRmbHwSNwjL4+Zt8IT/48yKuvYSUEuP7O0/X7SlPlLyTbWLElBH0OktKjXqIkLvjTGmRt9trGkBfkGKtLWOWc0k4kSZR0LcqFYscJ2fuTKRMk6FnSnTBQfWiHKEP9W7y+e95y0D6LUvab5jGbDnZcDIcr9nga8bYkVmmVzmW97UAngVtvkQIiy2mwZ/1Sl3kRjXWGoQVJa1Kl1yn67xX5sqIzvWSgHQpQtpuisp82RAyHKq67TWevcKwdClM2m6qxlquRAiLLIAp31davkQIgy0xqd9QdTNUlYiDLCHmU67wnzBQlHedFtuqLFp+wRJBjls3bqqvW+JEgwymqzdVXaEGcFiUU5ariuu9NGQUJRStVKwncsFiQUpcJbkrDUtwQJRRltvyQsN0+QUJThjkrCEgsECUXp65wkPOqHgoSi8I4huu4BKwSJRdlqsq4Lvz8mGuVhi3XdYKcFlxylwGilWuRpViCtSKMydQbbKE/XHDRDpEytYucUapKvRUqdg9KCDqOMV60OQLFhykGeRW7QNcs9q1mk1buOawRQapTdgg6jEBmjVEqMBu84BRjpdf103ikV3gMMMlQpYk1qHRDLKvylcFCD9txlvUjnxKZ7QXv6GS22W9DJ/5D8srX6unSt5lkpyEkUxllpoktz2GwvCxKNUmCsY04DmOwbJiv0Qeyy0q+kBQlHqfQSfukh9QBK3WCiq1UYKaWtFsdUe9NOrzksyEkUbvQbg+11vTptPWSpPG21+qYnBTmOwpV2Krno/xwne0nkYrEptgpyHIW5lqPKMhk73KR9fzJJkPMo+Q65HL/wU3vFRrvHo1IAjuJyAK1KNAhyHIUqTwLS6ANIe8YsrJYyE8+6RwpjHBDkPEqBLSpd6BXbLMYKzMUCU12Hq+wT5DwKhR43RwEyfm3fBVHGmdF9UUIU+KhbXKHASc2W9Y4oIUrGOHtDlA9/lCBECVGe0uLBEKWno3zBn7HO6xZjCR7GAmN9Bdd7VdCx9o8gyETJMpTNGjMxX6nvYoG0pVio1hNYa5b2BfnKFWurUY1mmShZhjpymcfNwT9MskElrhLbhx2m+6NrsNJ8/3Epwsav813Z9zXej5ywzQaft12e5ebhKQ9odYvXzHCjQR6x26UIu/GOJLMZ73cq/MwqMSL3qfKWL+qcsEWyuvftkAz7Vo/0vm2rYTPx2d63lzjs8D7f+zZ4hyMIWgkHEPSuKCXqNETxm8YYb084gKBXXL4m2GV/FK/1NY/5Qa+4fIUb/WO+b00U3+05p1Wo7/EbfXgkLvMv5e6K4iJbTLLB3eIefSQOL4+RjabZoTKKucY25dab5b0ee3kMn1lKPWOaGteqjmLyTfJbA5zxE5sc0BQOIOjWD5L9XOkOcw1Qo9Ieohj6mGCRSYKe9LL7M8fUQr6BprjZtUZJCbrTOdX+apNNkIkiHEDQm/wXb4bZSIeJkMcAAAAASUVORK5CYII="},function(t,e,n){function r(t,e){for(var n=0;n<t.length;n++){var r=t[n],a=d[r.id];if(a){a.refs++;for(var o=0;o<a.parts.length;o++)a.parts[o](r.parts[o]);for(;o<r.parts.length;o++)a.parts.push(l(r.parts[o],e))}else{for(var i=[],o=0;o<r.parts.length;o++)i.push(l(r.parts[o],e));d[r.id]={id:r.id,refs:1,parts:i}}}}function a(t,e){for(var n=[],r={},a=0;a<t.length;a++){var o=t[a],i=e.base?o[0]+e.base:o[0],c=o[1],s=o[2],u=o[3],l={css:c,media:s,sourceMap:u};r[i]?r[i].parts.push(l):n.push(r[i]={id:i,parts:[l]})}return n}function o(t,e){var n=y(t.insertInto);if(!n)throw new Error("Couldn't find a style target. This probably means that the value for the 'insertInto' parameter is invalid.");var r=m[m.length-1];if("top"===t.insertAt)r?r.nextSibling?n.insertBefore(e,r.nextSibling):n.appendChild(e):n.insertBefore(e,n.firstChild),m.push(e);else if("bottom"===t.insertAt)n.appendChild(e);else{if("object"!=typeof t.insertAt||!t.insertAt.before)throw new Error("[Style Loader]\n\n Invalid value for parameter 'insertAt' ('options.insertAt') found.\n Must be 'top', 'bottom', or Object.\n (https://github.com/webpack-contrib/style-loader#insertat)\n");var a=y(t.insertInto+" "+t.insertAt.before);n.insertBefore(e,a)}}function i(t){if(null===t.parentNode)return!1;t.parentNode.removeChild(t);var e=m.indexOf(t);e>=0&&m.splice(e,1)}function c(t){var e=document.createElement("style");return t.attrs.type="text/css",u(e,t.attrs),o(t,e),e}function s(t){var e=document.createElement("link");return t.attrs.type="text/css",t.attrs.rel="stylesheet",u(e,t.attrs),o(t,e),e}function u(t,e){Object.keys(e).forEach(function(n){t.setAttribute(n,e[n])})}function l(t,e){var n,r,a,o;if(e.transform&&t.css){if(!(o=e.transform(t.css)))return function(){};t.css=o}if(e.singleton){var u=g++;n=v||(v=c(e)),r=f.bind(null,n,u,!1),a=f.bind(null,n,u,!0)}else t.sourceMap&&"function"==typeof URL&&"function"==typeof URL.createObjectURL&&"function"==typeof URL.revokeObjectURL&&"function"==typeof Blob&&"function"==typeof btoa?(n=s(e),r=p.bind(null,n,e),a=function(){i(n),n.href&&URL.revokeObjectURL(n.href)}):(n=c(e),r=h.bind(null,n),a=function(){i(n)});return r(t),function(e){if(e){if(e.css===t.css&&e.media===t.media&&e.sourceMap===t.sourceMap)return;r(t=e)}else a()}}function f(t,e,n,r){var a=n?"":r.css;if(t.styleSheet)t.styleSheet.cssText=w(e,a);else{var o=document.createTextNode(a),i=t.childNodes;i[e]&&t.removeChild(i[e]),i.length?t.insertBefore(o,i[e]):t.appendChild(o)}}function h(t,e){var n=e.css,r=e.media;if(r&&t.setAttribute("media",r),t.styleSheet)t.styleSheet.cssText=n;else{for(;t.firstChild;)t.removeChild(t.firstChild);t.appendChild(document.createTextNode(n))}}function p(t,e,n){var r=n.css,a=n.sourceMap,o=void 0===e.convertToAbsoluteUrls&&a;(e.convertToAbsoluteUrls||o)&&(r=O(r)),a&&(r+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(a))))+" */");var i=new Blob([r],{type:"text/css"}),c=t.href;t.href=URL.createObjectURL(i),c&&URL.revokeObjectURL(c)}var d={},b=function(t){var e;return function(){return void 0===e&&(e=t.apply(this,arguments)),e}}(function(){return window&&document&&document.all&&!window.atob}),y=function(t){var e={};return function(n){if(void 0===e[n]){var r=t.call(this,n);if(r instanceof window.HTMLIFrameElement)try{r=r.contentDocument.head}catch(t){r=null}e[n]=r}return e[n]}}(function(t){return document.querySelector(t)}),v=null,g=0,m=[],O=n(475);t.exports=function(t,e){if("undefined"!=typeof DEBUG&&DEBUG&&"object"!=typeof document)throw new Error("The style-loader cannot be used in a non-browser environment");e=e||{},e.attrs="object"==typeof e.attrs?e.attrs:{},e.singleton||(e.singleton=b()),e.insertInto||(e.insertInto="head"),e.insertAt||(e.insertAt="bottom");var n=a(t,e);return r(n,e),function(t){for(var o=[],i=0;i<n.length;i++){var c=n[i],s=d[c.id];s.refs--,o.push(s)}if(t){r(a(t,e),e)}for(var i=0;i<o.length;i++){var s=o[i];if(0===s.refs){for(var u=0;u<s.parts.length;u++)s.parts[u]();delete d[s.id]}}}};var w=function(){var t=[];return function(e,n){return t[e]=n,t.filter(Boolean).join("\n")}}()},function(t,e){t.exports=function(t){var e="undefined"!=typeof window&&window.location;if(!e)throw new Error("fixUrls requires window.location");if(!t||"string"!=typeof t)return t;var n=e.protocol+"//"+e.host,r=n+e.pathname.replace(/\/[^\/]*$/,"/");return t.replace(/url\s*\(((?:[^)(]|\((?:[^)(]+|\([^)(]*\))*\))*)\)/gi,function(t,e){var a=e.trim().replace(/^"(.*)"$/,function(t,e){return e}).replace(/^'(.*)'$/,function(t,e){return e});if(/^(#|data:|http:\/\/|https:\/\/|file:\/\/\/)/i.test(a))return t;var o;return o=0===a.indexOf("//")?a:0===a.indexOf("/")?n+a:r+a.replace(/^\.\//,""),"url("+JSON.stringify(o)+")"})}},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(t,e,n){"use strict";function r(){fetch("data/MSFT.tsv").then(function(t){return t.text()}).then(function(t){return Object(a.b)(t,function(t){return t.date=new Date(h(t.date).getTime()),t.open=+t.open,t.high=+t.high,t.low=+t.low,t.close=+t.close,t.volume=+t.volume,t})}).then(function(t){u.a.render(c.a.createElement(l.a,{data:t,type:"hybrid"}),document.getElementById("chart"))})}Object.defineProperty(e,"__esModule",{value:!0});var a=n(214),o=n(21),i=n(0),c=n.n(i),s=n(32),u=n.n(s),l=n(232),f=n(556);n(470),document.getElementById("content").innerHTML=f;var h=Object(o.c)("%Y-%m-%d");window.Modernizr.fetch&&window.Modernizr.promises?r():n.e(0).then(function(t){n(213),n(212),r()}.bind(null,n)).catch(n.oe)},function(t,e){t.exports='<h1>React Stockcharts</h1>\n<p>Highly customizable stock charts built with <a href="http://facebook.github.io/react/">React JS</a> and <a href="http://d3js.org/">d3</a></p>\n'}])});
  //# sourceMappingURL=react-stockcharts-home.31e6340e4a7096afd7a6.js.map