Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

react-jsx-highstock

Package Overview
Dependencies
Maintainers
2
Versions
70
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-jsx-highstock - npm Package Compare versions

Comparing version 4.3.1 to 4.3.2

14

dist/es/components/RangeSelector/RangeSelectorInput.js

@@ -6,3 +6,2 @@ import _objectSpread from "@babel/runtime/helpers/esm/objectSpread2";

import PropTypes from 'prop-types';
import { mapKeys, upperFirst } from 'lodash-es';
import { useModifiedProps, useChart } from 'react-jsx-highcharts';

@@ -37,6 +36,13 @@

var upperFirst = function upperFirst(str) {
return str.charAt(0).toUpperCase() + str.slice(1);
};
var prefixPropsWithInput = function prefixPropsWithInput(config) {
return mapKeys(config, function (value, key) {
return key.indexOf('input') === 0 ? key : "input".concat(upperFirst(key));
var prefixedConfig = {};
Object.keys(config).forEach(function (key) {
var newKey = key.indexOf('input') === 0 ? key : "input".concat(upperFirst(key));
prefixedConfig[newKey] = config[key];
});
return prefixedConfig;
};

@@ -54,4 +60,4 @@

// Provided by ChartProvider
enabled: PropTypes.bool.isRequired
enabled: PropTypes.bool
};
export default RangeSelectorInput;

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

!function(e,n){"object"==typeof exports&&"object"==typeof module?module.exports=n(require("react")):"function"==typeof define&&define.amd?define(["react"],n):"object"==typeof exports?exports.ReactHighcharts=n(require("react")):e.ReactHighcharts=n(e.React)}("undefined"!=typeof self?self:this,(function(e){return function(){var n={703:function(e,n,t){"use strict";var r=t(414);function i(){}function o(){}o.resetWarningCache=i,e.exports=function(){function e(e,n,t,i,o,u){if(u!==r){var a=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw a.name="Invariant Violation",a}}function n(){return e}e.isRequired=e;var t={array:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:n,element:e,elementType:e,instanceOf:n,node:e,objectOf:n,oneOf:n,oneOfType:n,shape:n,exact:n,checkPropTypes:o,resetWarningCache:i};return t.PropTypes=t,t}},697:function(e,n,t){e.exports=t(703)()},414:function(e){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},888:function(n){"use strict";n.exports=e}},t={};function r(e){var i=t[e];if(void 0!==i)return i.exports;var o=t[e]={exports:{}};return n[e](o,o.exports,r),o.exports}r.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(n,{a:n}),n},r.d=function(e,n){for(var t in n)r.o(n,t)&&!r.o(e,t)&&Object.defineProperty(e,t,{enumerable:!0,get:n[t]})},r.o=function(e,n){return Object.prototype.hasOwnProperty.call(e,n)},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var i={};return function(){"use strict";function e(){return(e=Object.assign||function(e){for(var n=1;n<arguments.length;n++){var t=arguments[n];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])}return e}).apply(this,arguments)}r.r(i),r.d(i,{Annotation:function(){return Ge},AreaRangeSeries:function(){return nt},AreaSeries:function(){return tt},AreaSplineRangeSeries:function(){return rt},AreaSplineSeries:function(){return it},Axis:function(){return he},BarSeries:function(){return Zn},BaseChart:function(){return re},BellCurveSeries:function(){return ot},BoxPlotSeries:function(){return ut},BubbleSeries:function(){return at},BulletSeries:function(){return ct},CandlestickSeries:function(){return Vr},Caption:function(){return Ye},Chart:function(){return le},ColorAxis:function(){return Je},ColumnPyramidSeries:function(){return lt},ColumnRangeSeries:function(){return ft},ColumnSeries:function(){return st},Credits:function(){return nn},CylinderSeries:function(){return dt},Debug:function(){return Kn},DependencyWheelSeries:function(){return pt},ErrorBarSeries:function(){return vt},FlagsSeries:function(){return _r},Funnel3dSeries:function(){return mt},FunnelSeries:function(){return bt},GaugeSeries:function(){return ht},HeatmapSeries:function(){return yt},Highcharts3dChart:function(){return _e},HighchartsChart:function(){return ie},HighchartsProvider:function(){return Q},HighchartsSparkline:function(){return Re},HighchartsStockChart:function(){return Ut},HistogramSeries:function(){return gt},ItemSeries:function(){return xt},Legend:function(){return bn},LineSeries:function(){return St},Loading:function(){return un},Navigator:function(){return or},NetworkGraphSeries:function(){return Et},OHLCSeries:function(){return Fr},OrganizationSeries:function(){return Lt},PackedBubbleSeries:function(){return Ot},Pane:function(){return gn},ParetoSeries:function(){return Pt},PieSeries:function(){return wt},PlotBand:function(){return Bn},PlotLine:function(){return Dn},PolygonSeries:function(){return Ct},Pyramid3dSeries:function(){return Tt},PyramidSeries:function(){return At},RangeSelector:function(){return Br},SankeySeries:function(){return jt},Scatter3dSeries:function(){return kt},ScatterSeries:function(){return Rt},Scrollbar:function(){return Hr},Series:function(){return $},SolidGaugeSeries:function(){return Nt},SplineSeries:function(){return Bt},StreamGraphSeries:function(){return Dt},Subtitle:function(){return Hn},SunburstSeries:function(){return It},TilemapSeries:function(){return Mt},TimelineSeries:function(){return Ht},Title:function(){return Fn},Tooltip:function(){return zn},TreemapSeries:function(){return Vt},VariablePieSeries:function(){return _t},VariwideSeries:function(){return Ft},VectorSeries:function(){return Gt},VennSeries:function(){return qt},WaterfallSeries:function(){return Wt},WindBarbSeries:function(){return zt},XAxis:function(){return xe},XRangeSeries:function(){return Xt},YAxis:function(){return Oe},ZAxis:function(){return Yn},getEventsConfig:function(){return w},getNonEventHandlerProps:function(){return P},useAxis:function(){return V},useChart:function(){return D},useHighcharts:function(){return k},useModifiedProps:function(){return oe},usePlotBandLine:function(){return Tn},useSeries:function(){return $n},withHighcharts:function(){return K},withSeriesType:function(){return J}});var n,t=r(888),o=r(697),u=r.n(o);function a(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,r=new Array(n);t<n;t++)r[t]=e[t];return r}function c(e,n){if(e){if("string"==typeof e)return a(e,n);var t=Object.prototype.toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(e):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?a(e,n):void 0}}function l(e,n){return function(e){if(Array.isArray(e))return e}(e)||function(e,n){var t=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=t){var r,i,o=[],u=!0,a=!1;try{for(t=t.call(e);!(u=(r=t.next()).done)&&(o.push(r.value),!n||o.length!==n);u=!0);}catch(e){a=!0,i=e}finally{try{u||null==t.return||t.return()}finally{if(a)throw i}}return o}}(e,n)||c(e,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function f(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}function s(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function d(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?s(Object(t),!0).forEach((function(n){f(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):s(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}function p(e,n){if(null==e)return{};var t,r,i=function(e,n){if(null==e)return{};var t,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)t=o[r],n.indexOf(t)>=0||(i[t]=e[t]);return i}(e,n);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)t=o[r],n.indexOf(t)>=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(i[t]=e[t])}return i}var v=new Uint8Array(16);function b(){if(!n&&!(n="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto)))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return n(v)}for(var m=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i,h=function(e){return"string"==typeof e&&m.test(e)},y=[],g=0;g<256;++g)y.push((g+256).toString(16).substr(1));var x=function(e,n,t){var r=(e=e||{}).random||(e.rng||b)();if(r[6]=15&r[6]|64,r[8]=63&r[8]|128,n){t=t||0;for(var i=0;i<16;++i)n[t+i]=r[i];return n}return function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,t=(y[e[n+0]]+y[e[n+1]]+y[e[n+2]]+y[e[n+3]]+"-"+y[e[n+4]]+y[e[n+5]]+"-"+y[e[n+6]]+y[e[n+7]]+"-"+y[e[n+8]]+y[e[n+9]]+"-"+y[e[n+10]]+y[e[n+11]]+y[e[n+12]]+y[e[n+13]]+y[e[n+14]]+y[e[n+15]]).toLowerCase();if(!h(t))throw TypeError("Stringified UUID is invalid");return t}(r)},S=(0,t.createContext)();S.displayName="SeriesContext";var E=S;function O(e,n){var t={};return e&&Object.keys(e).filter((function(t){return n(t,e[t])})).forEach((function(n){t[n]=e[n]})),t}var P=function(e){return O(e,(function(e,n){return!C(e,n)}))},w=function(e){var n=function(e){return O(e,C)}(e),t={};return Object.keys(n).forEach((function(e){var r=e.slice(2)[0].toLowerCase()+e.slice(3);t[r]=n[e]})),t},C=function(e,n){return 0===e.indexOf("on")&&e.length>2&&"function"==typeof n},A=["children"];function T(e,n){var t=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=n.children,i=p(n,A),o=O(i,(function(n,t){return!e||!1===Object.is(t,e[n])}));return!t||e&&!1!==Object.is(e.children,r)||(o.text=r),Object.keys(o).length>0&&o}function j(e){var n=(0,t.useRef)();return(0,t.useEffect)((function(){n.current=e})),n.current}var L=(0,t.createContext)();L.displayName="HighchartsContext";var R=L;function k(){return(0,t.useContext)(R)}var N=(0,t.createContext)();N.displayName="ChartContext";var B=N;function D(){return(0,t.useContext)(B)}var I=(0,t.createContext)();I.displayName="AxisContext";var M=I,H=function(e){return e?{object:e,id:e.userOptions&&e.userOptions.id,type:e.coll,update:e.update.bind(e),remove:e.remove.bind(e),addPlotBandOrLine:e.addPlotBandOrLine.bind(e),removePlotBandOrLine:e.removePlotBandOrLine.bind(e),getExtremes:e.getExtremes.bind(e),setExtremes:e.setExtremes.bind(e),setTitle:e.setTitle.bind(e)}:null};function V(e){var n=D(),r=(0,t.useContext)(M),i=function(){if(r)return r;if(e){var t=n.get(e);return H(t)}return null},o=l((0,t.useState)(i),2),u=o[0],a=o[1];return(0,t.useEffect)((function(){u||a(i())}),[]),(0,t.useDebugValue)(u?u.id:null),u}var _=(0,t.createContext)();_.displayName="ColorAxisContext";var F=_,q=function(e){return e?{object:e,id:e.userOptions&&e.userOptions.id}:null};function G(e){return e?{object:e,id:e.userOptions&&e.userOptions.id,type:e.type,update:e.update.bind(e),remove:e.remove.bind(e),setData:e.setData.bind(e),setVisible:e.setVisible.bind(e)}:null}var W=["id","data","isDataEqual","type","visible","children","axisId","requiresAxis","jsxOptions"],z=["visible","data"],X=["id","data"],U=[],Y=(0,t.memo)((function(e){var n=e.id,r=void 0===n?x:n,i=e.data,o=void 0===i?U:i,u=e.isDataEqual,a=void 0===u?Object.is:u,c=e.type,f=void 0===c?"line":c,s=e.visible,v=void 0===s||s,b=e.children,m=void 0===b?null:b,h=e.axisId,y=e.requiresAxis,g=void 0===y||y,S=e.jsxOptions,O=d({id:r,data:o,type:f,visible:v},p(e,W)),C=k(),A=D(),L=A.addSeries,R=A.needsRedraw,N=(0,t.useRef)(null),B=l((0,t.useState)(!1),2)[1],I=(0,t.useRef)(null),M=V(h),H=function(e){D();var n=(0,t.useContext)(F),r=function(){return n||null},i=l((0,t.useState)(r),2),o=i[0],u=i[1];return(0,t.useEffect)((function(){o||u(r())}),[]),(0,t.useDebugValue)(o?o.id:null),o}();(0,t.useEffect)((function(){if(!g||M){var e=Z(O,M,H,g),n=L(e,!1);return N.current=n,I.current=G(N.current),B(!0),R(),function(){if(n&&n.remove){try{n.remove.bind(n)(!1),N.current=null}catch(e){}R()}}}}),[M]);var _=j(O);return(0,t.useEffect)((function(){if(_&&N.current){var e=N.current,n=O.visible,t=O.data,r=p(O,z),i=!1;if(!1===a(t,_.data)){var o=S&&S.animation,u=S&&S.updatePoints;e.setData(t,!1,o,u),i=!0}n!==_.visible&&(e.setVisible(n,!1),i=!0);var c=T(_,r);if(!1!==c){var l=P(c);e.update(l,!1);var f=w(c),s=w(_);Object.keys(f).forEach((function(n){var t=s[n];t&&C.removeEvent(e,n,t);var r=f[n];r&&C.addEvent(e,n,r)})),i=!0}i&&R()}})),N.current?t.createElement(E.Provider,{value:I.current},m):null}));Y.displayName="Series";var Z=function(e,n,t,r){var i=e.id,o=e.data,u=p(e,X),a="function"==typeof i?i():i,c=P(u),l=d({id:a,data:o,events:w(u)},c);return t&&(l.colorAxis=t.id),r&&(l[n.type]=n.id),l},$=Y;function J(n){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=function(i){return t.createElement($,e({},i,r,{type:n.toLowerCase()}))};return i.displayName="".concat(n,"Series"),i}function K(e,n){return function(r){return t.createElement(Q,{Highcharts:n},t.createElement(e,r))}}var Q=function(e){var n=e.Highcharts,r=e.children;return t.createElement(R.Provider,{value:n},r)},ee=["children","callback","className","containerProps"],ne=["chartCreationFunc","callback","chart","polar","gauge","styledMode","children"],te=function(e){return e},re=function(n){var r=n.children,i=void 0===r?null:r,o=n.callback,u=void 0===o?te:o,a=n.className,c=void 0===a?"":a,f=n.containerProps,s=void 0===f?null:f,v=p(n,ee),b=l((0,t.useState)(!1),2),m=b[0],h=b[1],y=(0,t.useRef)(null),g=(0,t.useRef)(null),x=(0,t.useRef)(null);(0,t.useLayoutEffect)((function(){var e,n,t,r,i,o,a=function(e,n){if(n){var t=e.chartCreationFunc,r=(e.callback,e.chart),i=e.polar,o=e.gauge,u=e.styledMode,a=void 0!==u&&u,c=(e.children,p(e,ne)),l=t(n,d({chart:d({styledMode:a},r),title:{text:null},subtitle:{text:null},legend:{enabled:!1},rangeSelector:{enabled:!1},navigator:{enabled:!1},scrollbar:{enabled:!1},tooltip:{enabled:!1},credits:{enabled:!1},series:[],xAxis:[],yAxis:[]},c));return l.polar=i,l.angular=o,l}}(v,y.current);g.current=a,x.current=(e=a,n=v.chartType,{object:e,type:n,get:e.get.bind(e),setSize:e.setSize.bind(e),update:e.update.bind(e),addAxis:e.addAxis.bind(e),addColorAxis:e.addColorAxis.bind(e),addSeries:e.addSeries.bind(e),setTitle:e.setTitle.bind(e),setCaption:e.setCaption.bind(e),showLoading:e.showLoading.bind(e),hideLoading:e.hideLoading.bind(e),addCredits:e.addCredits.bind(e),addAnnotation:e.addAnnotation?e.addAnnotation.bind(e):null,removeAnnotation:e.removeAnnotation?e.removeAnnotation.bind(e):null,needsRedraw:(t=function(){if(!e.__destroyed)try{e.redraw.bind(e)()}catch(e){}},i=window.cancelAnimationFrame,o=window.requestAnimationFrame,function(){r&&i(r);for(var e=arguments.length,n=new Array(e),u=0;u<e;u++)n[u]=arguments[u];r=o(t.bind.apply(t,[t].concat(n)))})}),u(a),h(!0)}),[]),(0,t.useEffect)((function(){var e=g.current;return function(){e&&(window.requestAnimationFrame(e.destroy.bind(e)),e.__destroyed=!0)}}),[]);var S=j(v);return(0,t.useEffect)((function(){if(m){var e=v.plotOptions,n=g.current;!1===Object.is(S.plotOptions,e)&&n&&(n.update({plotOptions:e},!1),x.current.needsRedraw())}})),t.createElement("div",e({},s,{className:"chart ".concat(c),ref:y}),m&&t.createElement(B.Provider,{value:x.current},i))},ie=function(n){var r=k();return t.createElement(re,e({},n,{chartCreationFunc:r.chart,chartType:"chart"}))};function oe(e){var n=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=(0,t.useRef)();(0,t.useEffect)((function(){r.current=e}));var i=T(r.current,e,n);return(0,t.useDebugValue)(i?"Modified":"Not modified"),i}var ue=["type","width","height"],ae=(0,t.memo)((function(e){var n,r,i,o,u,a,c=e.type,l=void 0===c?"line":c,f=e.width,s=e.height,v=p(e,ue),b=D(),m=(0,t.useRef)(!1),h=oe(d({type:l},v));return(0,t.useEffect)((function(){void 0===f&&void 0===s||b.setSize(f,s)}),[f,s]),(0,t.useEffect)((function(){if(!1!==h&&m.current){var e=P(h);Object.getOwnPropertyNames(e).length>0&&ce(h,b,b.needsRedraw)}})),(0,t.useEffect)((function(){var e=P(d({type:l},v));ce(e,b),m.current=!0}),[]),n=v,r=b.object,i=k(),o=w(n),u=j(o),!1!==(a=T(u,o))&&Object.keys(a).forEach((function(e){if(u){var n=u[e];n&&i.removeEvent(r,e,n)}var t=a[e];t&&i.addEvent(r,e,t)})),null})),ce=function(e,n){n.update({chart:e},!1),n.needsRedraw()};ae.propTypes={type:u().string,width:u().oneOfType([u().string,u().number]),height:u().oneOfType([u().string,u().number]),onAddSeries:u().func,onAfterPrint:u().func,onBeforePrint:u().func,onClick:u().func,onLoad:u().func,onRedraw:u().func,onRender:u().func,onSelection:u().func},ae.displayName="Chart";var le=ae,fe=["children","dynamicAxis"],se=["id"],de=["children","axisId"],pe=(0,t.memo)((function(e){var n=e.children,r=e.axisId,i=p(e,de),o=V(r);return(0,t.useEffect)((function(){o&&ve(d({text:n},i),o)})),(0,t.useEffect)((function(){return function(){if(o)try{ve({text:null},o)}catch(e){}}}),[o]),null})),ve=function(e,n){n.setTitle(e,!0)};pe.displayName="AxisTitle";var be=pe,me=function(e){var n=e.children,r=void 0===n?null:n,i=e.dynamicAxis,o=void 0===i||i,u=p(e,fe),a=D(),c=(0,t.useRef)(null),f=(0,t.useRef)(null),s=l((0,t.useState)(!1),2),v=s[0],b=s[1];(0,t.useEffect)((function(){var e=function(e,n,t){var r,i=n.id,o=void 0===i?x:i,u=n.isX,a=function(e){var n=e.id,t=void 0===n?x:n,r=p(e,se),i="function"==typeof t?t():t,o=P(r);return d({id:i,title:{text:null},events:w(r)},o)}(n);if(t)r=e.addAxis(a,u,!1);else{var c="function"==typeof o?o():o;(r=e.get(c)).update.call(r,a,!1)}return r}(a,u,o);return c.current=e,f.current=H(c.current),b(!0),a.needsRedraw(),function(){if(e.remove&&o){try{e.remove.bind(e)(!1)}catch(e){}a.needsRedraw()}}}),[]);var m=oe(u);return(0,t.useEffect)((function(){if(v&&!1!==m){var e=c.current;e.plotLinesAndBands&&e.plotLinesAndBands.length>0?e.update(m,!0):(e.update(m,!1),a.needsRedraw())}})),v?t.createElement(M.Provider,{value:f.current},r):null};me.Title=be;var he=me,ye=["id"],ge=function(n){var r=n.id,i=p(n,ye),o="stockChart"===D().type,u=o?"datetime":"linear",a=o?"xAxis":r;return t.createElement(he,e({type:u},i,{id:a,isX:!0}))};ge.Title=he.Title;var xe=ge,Se=["type"],Ee=function(n){var r=n.type,i=void 0===r?"linear":r,o=p(n,Se);return t.createElement(he,e({type:i},o,{isX:!1}))};Ee.displayName="YAxis",Ee.Title=he.Title;var Oe=Ee,Pe=["height","width","margin","style","series","children","plotOptions"],we={series:{animation:!1,lineWidth:1,shadow:!1,states:{hover:{lineWidth:1}},marker:{radius:1,states:{hover:{radius:2}}},fillOpacity:.25}},Ce=[],Ae={},Te=[0],je={enabled:!1},Le=[2,0,2,0],Re=function(n){var r=n.height,i=void 0===r?20:r,o=n.width,u=void 0===o?120:o,a=n.margin,c=void 0===a?Le:a,l=n.style,f=void 0===l?Ae:l,s=n.series,v=n.children,b=n.plotOptions,m=void 0===b?we:b,h=p(n,Pe),y=(0,t.useMemo)((function(){return d({overflow:"visible"},f)}),[f]),g=!!s,x=g?s:v;return t.createElement(ie,e({plotOptions:m},h),t.createElement(le,{height:i,width:u,animation:!1,backgroundColor:null,borderWidth:0,margin:c,style:y,skipClone:!0}),t.createElement(xe,{labels:je,startOnTick:!1,endOnTick:!1,tickPositions:Ce}),t.createElement(Oe,{id:"sparkline",labels:je,startOnTick:!1,endOnTick:!1,tickPositions:Te},x),g&&t.createElement(t.Fragment,null,v))},ke=["enabled","alpha","beta","depth","fitToPlot","viewDistance","axisLabelPosition","frame"],Ne={visible:"default",size:1,bottom:{},top:{},left:{},right:{},back:{},front:{}},Be=(0,t.memo)((function(e){var n=e.enabled,r=void 0!==n&&n,i=e.alpha,o=void 0===i?0:i,u=e.beta,a=void 0===u?0:u,c=e.depth,l=void 0===c?100:c,f=e.fitToPlot,s=void 0===f||f,v=e.viewDistance,b=void 0===v?25:v,m=e.axisLabelPosition,h=void 0===m?"default":m,y=e.frame,g=d({enabled:r,alpha:o,beta:a,depth:l,fitToPlot:s,viewDistance:b,axisLabelPosition:h,frame:void 0===y?Ne:y},p(e,ke)),x=(k(),D());return(0,t.useEffect)((function(){De(x,g)})),null})),De=function(e,n){var t={chart:{options3d:{enabled:!0,alpha:n.alpha,axisLabelPosition:n.axisLabelPosition,beta:n.beta,depth:n.depth,fitToPlot:n.fitToPlot,frame:n.frame,viewDistance:n.viewDistance}}};e.update(t,!0)};Be.propTypes={alpha:u().number,axisLabelPosition:u().string,beta:u().number,depth:u().number,fitToPlot:u().bool,frame:u().object,viewDistance:u().number},Be.displayName="Options3d";var Ie=Be,Me=["children","alpha","axisLabelPosition","beta","depth","fitToPlot","frame","viewDistance"],He={options3d:{enabled:!0}},Ve={id:"zAxis"},_e=function(n){var r=n.children,i=n.alpha,o=n.axisLabelPosition,u=n.beta,a=n.depth,c=n.fitToPlot,l=n.frame,f=n.viewDistance,s=p(n,Me);return t.createElement(ie,e({chart:He,zAxis:Ve},s),t.createElement(Ie,{alpha:i,axisLabelPosition:o,beta:u,depth:a,fitToPlot:c,frame:l,viewDistance:f}),r)},Fe=["id","children"],qe=(0,t.memo)((function(e){var n=e.id,r=void 0===n?x:n,i=(e.children,p(e,Fe)),o=D(),u=o.addAnnotation,a=o.removeAnnotation,c=(0,t.useRef)();return(0,t.useEffect)((function(){c.current="function"==typeof r?r():r;var e=c.current,n=d({id:e},i);return u(n),function(){try{a(e)}catch(e){}}})),null}));qe.propTypes={id:u().oneOfType([u().string,u().func])},qe.displayName="Annotation";var Ge=qe,We=function(e){return e},ze=function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:We,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:We,i=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],o=D(),u=oe(e,i);(0,t.useEffect)((function(){!1!==u&&(n(o,u),o.needsRedraw())})),(0,t.useEffect)((function(){return function(){try{r(o)}catch(e){}o.needsRedraw()}}),[])},Xe=(0,t.memo)((function(e){return ze(e,Ue,(function(e){return Ue(e,{text:null})})),null})),Ue=function(e,n){e.setCaption(n)};Xe.displayName="Caption";var Ye=Xe,Ze=["children"],$e=["id"],Je=function(e){var n=e.children,r=void 0===n?null:n,i=p(e,Ze),o=D(),u=(0,t.useRef)(null),a=(0,t.useRef)(null),c=l((0,t.useState)(!1),2),f=c[0],s=c[1];(0,t.useEffect)((function(){var e=function(e,n){var t=function(e){var n=e.id,t=void 0===n?x:n,r=p(e,$e),i="function"==typeof t?t():t,o=P(r);return d({id:i,events:w(r)},o)}(n);return e.addColorAxis(t,!1)}(o,i);return u.current=e,a.current=q(u.current),s(!0),o.needsRedraw(),function(){if(e&&e.remove){try{e.remove.bind(e)(!1)}catch(e){}o.needsRedraw()}}}),[]);var v=oe(i);return(0,t.useEffect)((function(){null!==u.current&&!1!==v&&(u.current.update(v,!1),o.needsRedraw())})),f?t.createElement(F.Provider,{value:a.current},r):null},Ke=["enabled"],Qe=function(e){var n=e.enabled,t=void 0===n||n,r=p(e,Ke);return ze(d({enabled:t},r),en,(function(e){return en(e,{enabled:!1})})),null},en=function(e,n){"text"in n&&!n.text&&delete n.text,e.addCredits(n,!0)};Qe.propTypes={enabled:u().bool};var nn=Qe,tn=["children","isLoading"],rn=(0,t.memo)((function(e){var n=e.children,r=e.isLoading,i=void 0===r||r,o=p(e,tn),u=D(),a=oe(o);return(0,t.useEffect)((function(){!1!==a&&on(a,u),i?u.showLoading(n):u.hideLoading()})),(0,t.useEffect)((function(){return function(){try{u.hideLoading()}catch(e){}}}),[]),null})),on=function(e,n){n.update({loading:e},!0)};rn.propTypes={isLoading:u().bool,hideDuration:u().number,labelStyle:u().object,showDuration:u().number,style:u().object},rn.displayName="Loading";var un=rn,an=["children","enabled"],cn=(0,t.memo)((function(e){var n=e.children,t=void 0===n?null:n,r=e.enabled,i=void 0===r||r,o=p(e,an);return ze(d({enabled:i},o),ln,(function(e){return ln(e,{enabled:!1})}),!1),t})),ln=function(e,n){e.update({legend:n},!1)};cn.propTypes={enabled:u().bool},cn.displayName="Legend";var fn=cn,sn=(0,t.memo)((function(e){return ze(e,dn,(function(e){return dn(e,{text:null})})),null})),dn=function(e,n){e.update({legend:{title:n}},!1)};sn.displayName="LegendTitle";var pn=sn,vn=fn;vn.Title=pn;var bn=vn,mn=["children"],hn=(0,t.memo)((function(e){e.children;var n=p(e,mn);return ze(n,yn,(function(e){return yn(e,{})}),!1),null})),yn=function(e,n){e.update({pane:n},!1)};hn.displayName="Pane";var gn=hn,xn=(0,t.createContext)();xn.displayName="PlotBandLineContext";var Sn=xn,En=["id","axisId","children"];function On(e,n){var r=e.id,i=void 0===r?x:r,o=e.axisId,u=(e.children,p(e,En)),a=V(o),c=(0,t.useRef)(),f=l((0,t.useState)(null),2),s=f[0],v=f[1],b=oe(u);return(0,t.useEffect)((function(){if(a&&(!s||!1!==b)){s||(c.current="function"==typeof i?i():i);var e=c.current,t=d({id:e},u);s&&a.removePlotBandOrLine(c.current),a.addPlotBandOrLine(t,n),v({id:e,get object(){return a&&a.object&&a.object.plotLinesAndBands?a.object.plotLinesAndBands.find((function(n){return n.id===e})):null}})}})),(0,t.useEffect)((function(){return function(){try{a.removePlotBandOrLine(c.current)}catch(e){}}}),[]),s}var Pn=(0,t.memo)((function(e){var n=On(e,"plotBands"),r=e.children;return r||n?t.createElement(Sn.Provider,{value:n},r):null}));Pn.displayName="PlotBand";var wn=Pn,Cn=(0,t.memo)((function(e){var n=On(e,"plotLines"),r=e.children;return r||n?t.createElement(Sn.Provider,{value:n},r):null}));Cn.displayName="PlotLine";var An=Cn;function Tn(){return(0,t.useContext)(Sn)}var jn=["children","id"],Ln=(0,t.memo)((function(e){var n=Tn();return(0,t.useEffect)((function(){if(n){var t=e.children,r=(e.id,p(e,jn));Rn(n.object,d({text:t},r))}})),(0,t.useEffect)((function(){return function(){if(n)try{Rn(n.object,{text:null})}catch(e){}}}),[]),null})),Rn=function(e,n){e&&(e.options.label=kn(n),e.render())},kn=function(e){return{text:e.text,formatter:e.formatter,align:e.align,rotation:e.rotation,style:e.style,textAlign:e.textAlign,useHTML:e.useHTML,verticalAlign:e.verticalAlign,x:e.x,y:e.y}};Ln.displayName="PlotBandLineLabel";var Nn=Ln,Bn=wn;Bn.Label=Nn;var Dn=An;Dn.Label=Nn;var In=(0,t.memo)((function(e){return ze(e,Mn,(function(e){return Mn(e,{text:null})})),null})),Mn=function(e,n){e.setTitle(void 0,n,!1)};In.displayName="Subtitle";var Hn=In,Vn=(0,t.memo)((function(e){return ze(e,_n,(function(e){return _n(e,{text:null})})),null})),_n=function(e,n){e.setTitle(n,null,!1)};Vn.displayName="Title";var Fn=Vn,qn=["children"],Gn=(0,t.memo)((function(e){e.children;var n,r=p(e,qn),i=D(),o=k();r.enabled=null===(n=e.enabled)||void 0===n||n,(0,t.useEffect)((function(){return Wn(i,d(d({},o.defaultOptions&&o.defaultOptions.tooltip),r)),function(){try{Wn(i,{enabled:!1})}catch(e){}}}),[]);var u=oe(r);return(0,t.useEffect)((function(){!1!==u&&Wn(i,u)})),null})),Wn=function(e,n){e.update({tooltip:n})};Gn.displayName="Tooltip",Gn.propTypes={enabled:u().bool};var zn=Gn,Xn=["type"],Un=function(n){var r=n.type,i=void 0===r?"linear":r,o=p(n,Xn);return t.createElement(he,e({type:i},o,{id:"zAxis",isX:!1,dynamicAxis:!1}))};Un.displayName="ZAxis",Un.Title=he.Title;var Yn=Un,Zn=function(n){var r=D();return(0,t.useEffect)((function(){r.update({chart:{inverted:!0}})}),[]),t.createElement($,e({},n,{type:"bar"}))};function $n(e){var n=(0,t.useContext)(E),r=D(),i=function(){return n||(e?G(r.get(e)):null)},o=l((0,t.useState)(i),2),u=o[0],a=o[1];return(0,t.useEffect)((function(){u||a(i())}),[]),(0,t.useDebugValue)(u?u.id:null),u}var Jn=function(e){var n=e.varName,r=void 0===n?"chart":n,i=D();return(0,t.useEffect)((function(){return window[r]=i.object,console.log("Chart instance available as global variable as window.".concat(r)),function(){window[r]=void 0}}),[r]),null};Jn.propTypes={varName:u().string};var Kn=Jn,Qn={requiresAxis:!1},et={baseSeries:u().string.isRequired},nt=J("AreaRange"),tt=J("Area"),rt=J("AreaSplineRange"),it=J("AreaSpline"),ot=J("BellCurve",{},et),ut=J("BoxPlot"),at=J("Bubble"),ct=J("Bullet"),lt=J("ColumnPyramid"),ft=J("ColumnRange"),st=J("Column"),dt=J("Cylinder"),pt=J("DependencyWheel"),vt=J("ErrorBar"),bt=J("Funnel",Qn),mt=J("Funnel3d"),ht=J("Gauge"),yt=J("Heatmap"),gt=J("Histogram",{},et),xt=J("Item"),St=J("Line"),Et=J("NetworkGraph"),Ot=J("PackedBubble",Qn),Pt=J("Pareto",{},et),wt=J("Pie",Qn),Ct=J("Polygon"),At=J("Pyramid",Qn),Tt=J("Pyramid3d"),jt=J("Sankey"),Lt=J("Organization"),Rt=J("Scatter"),kt=J("Scatter3d"),Nt=J("SolidGauge"),Bt=J("Spline"),Dt=J("StreamGraph"),It=J("Sunburst"),Mt=J("Tilemap"),Ht=J("Timeline"),Vt=J("Treemap"),_t=J("VariablePie",Qn),Ft=J("Variwide"),qt=J("Venn",Qn),Gt=J("Vector"),Wt=J("Waterfall"),zt=J("WindBarb"),Xt=J("XRange"),Ut=function(n){var r=k();return t.createElement(re,e({},n,{chartCreationFunc:r.stockChart,chartType:"stockChart"}))},Yt=["children","axisId"],Zt=function(e,n){n.update(e)},$t=function(e){var n=e.children,r=e.axisId,i=p(e,Yt),o=V(r),u=(0,t.useRef)(!1);(0,t.useEffect)((function(){o&&Zt(P(i),o)}),[o]);var a=oe(i);if((0,t.useEffect)((function(){u.current?o&&!1!==a&&Zt(a,o):u.current=!0})),!n)return null;var c=t.Children.map(n,(function(e){return!1===(0,t.isValidElement)(e)?e:(0,t.cloneElement)(e,{axisId:r})}));return t.createElement(t.Fragment,null,c)},Jt=function(n){return t.createElement($t,e({},n,{axisId:"navigator-x-axis"}))},Kt=["enabled"],Qt=["children"],er=function(e,n){n.update({navigator:e},!0)},nr=function(e){var n=$n(e.seriesId);return(0,t.useEffect)((function(){if(n)return tr(n,{showInNavigator:!0}),function(){try{tr(n,{showInNavigator:!1})}catch(e){}}}),[n]),null},tr=function(e,n){e.update(n)};nr.propTypes={seriesId:u().string};var rr=nr,ir=function(e){var n=e.enabled,r=d({enabled:void 0===n||n},p(e,Kt)),i=l((0,t.useState)(!1),2),o=i[0],u=i[1],a=D(),c=k();(0,t.useEffect)((function(){r.children;var e=p(r,Qt),n=a.object;return n.options.navigator.enabled=!0,c.fireEvent(n,"beforeRender"),er(e,a),u(!0),function(){try{er({enabled:!1},a)}catch(e){}}}),[]);var f=oe(r);(0,t.useEffect)((function(){!1!==f&&er(f,a)}));var s=r.children;return s&&o?t.createElement(Jt,null,s):null};ir.Series=rr,ir.XAxis=Jt,ir.YAxis=function(n){return t.createElement($t,e({},n,{axisId:"navigator-y-axis"}))};var or=ir,ur=["enabled","children"],ar=function(e){var n=e.enabled,r=void 0===n||n,i=e.children,o=d({enabled:r},p(e,ur)),u=l((0,t.useState)(!1),2),a=u[0],c=u[1],f=k(),s=D(),v=V("xAxis");(0,t.useEffect)((function(){if(v){var e=s.object;e.options.rangeSelector.enabled=!0,f.fireEvent(e,"afterGetContainer");var n=cr(o,f);lr(n,s);var t=fr(s,v),r=v.object;return f.addEvent(r,"afterSetExtremes",t),c(!0),function(){var e=v.object;f.removeEvent(e,"afterSetExtremes",t);try{lr({enabled:!1},s)}catch(e){}}}}),[v]);var b=oe(o);return(0,t.useEffect)((function(){v&&a&&!1!==b&&lr(b,s)})),i&&a?t.createElement(t.Fragment,null,i):null},cr=function(e,n){return d(d(d({},n.defaultOptions&&n.defaultOptions.rangeSelector),e),{},{inputEnabled:!1,buttons:[]})},lr=function(e,n){n.update({rangeSelector:e},!0)},fr=function(e,n){return function(){var t=e.object,r=n.getExtremes();t.rangeSelector.render.call(t.rangeSelector,r.min,r.max)}};ar.propTypes={enabled:u().bool};var sr=ar;function dr(e){return function(e){if(Array.isArray(e))return a(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||c(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var pr=["count","offsetMin","offsetMax"],vr=["count","type","offsetMin","offsetMax","dataGrouping","children"],br=function(e){var n=e.count,r=void 0===n?1:n,i=e.offsetMin,o=void 0===i?0:i,u=e.offsetMax,a=d({count:r,offsetMin:o,offsetMax:void 0===u?0:u},p(e,pr)),c=D();return(0,t.useEffect)((function(){if(!(hr(a,c)>-1)){var e=a.count,n=a.type,t=a.offsetMin,r=a.offsetMax,i=a.dataGrouping,o=a.children,u=p(a,vr),l={count:e,type:n,offsetMin:t,offsetMax:r,dataGrouping:i,text:o,events:w(u)};return yr(l,c),function(){try{gr(a,c)}catch(e){}}}}),[]),null},mr=function(e){var n=e.object;if(n&&n.options){var t=n.options.rangeSelector.buttons;return void 0===t?[]:t}return[]},hr=function(e,n){var t=e.count,r=e.type;return mr(n).findIndex((function(e){return e.count===t&&e.type===r}))},yr=function(e,n){var t=[].concat(dr(mr(n)),[e]);xr(t,n)},gr=function(e,n){var t=hr(e);if(-1!==t){var r=dr(mr());r.splice(t,1),xr(r,n)}},xr=function(e,n){n.update({rangeSelector:{buttons:e}})};br.propTypes={count:u().number,type:u().oneOf(["millisecond","second","minute","hour","day","week","month","ytd","all"]),offsetMin:u().number.isRequired,offsetMax:u().number.isRequired,dataGrouping:u().object};var Sr,Er,Or=br,Pr=function(){try{var e=(t="defineProperty",null==(n=Object)?void 0:n[t]);return e({},"",{}),e}catch(e){}var n,t}(),wr=function(e,n,t){for(var r=-1,i=Object(e),o=t(e),u=o.length;u--;){var a=o[++r];if(!1===n(i[a],a,i))break}return e},Cr=(Sr=Object.keys,Er=Object,function(e){return Sr(Er(e))}),Ar=function(e,n){var t={};return n=n,function(e,n){e&&wr(e,n,Cr)}(e,(function(e,r,i){!function(e,n,t){"__proto__"==n&&Pr?Pr(e,n,{configurable:!0,enumerable:!0,value:t,writable:!0}):e[n]=t}(t,n(e,r,i),e)})),t},Tr=function(e){var n=(e=e).charAt(0),t=e.slice(1);return n.toUpperCase()+t},jr=["enabled"],Lr=function(e){var n=e.enabled,r=void 0===n||n,i=p(e,jr),o=D();(0,t.useEffect)((function(){return function(){try{Rr({enabled:!1},o)}catch(e){}}}),[]);var u=oe(d({enabled:r},i));return(0,t.useEffect)((function(){!1!==u&&Rr(u,o)})),null},Rr=function(e,n){var t=function(e){return Ar(e,(function(e,n){return 0===n.indexOf("input")?n:"input".concat(Tr(n))}))}(e);n.update({rangeSelector:d({},t)})};Lr.propTypes={update:u().func,enabled:u().bool.isRequired};var kr=Lr,Nr=sr;Nr.Button=Or,Nr.Input=kr;var Br=Nr,Dr=["children","enabled"],Ir=function(e){var n=e.children,r=e.enabled,i=void 0===r||r,o=p(e,Dr),u=D();(0,t.useEffect)((function(){return function(){try{Mr({enabled:!1},u)}catch(e){}}}),[]);var a=oe(d({enabled:i},o));return(0,t.useEffect)((function(){!1!==a&&Mr(a,u)})),n?t.createElement(t.Fragment,null,n):null},Mr=function(e,n){n.update({scrollbar:e},!0)};Ir.propTypes={enabled:u().bool};var Hr=Ir,Vr=J("Candlestick"),_r=J("Flags"),Fr=J("OHLC")}(),i}()}));
!function(e,n){"object"==typeof exports&&"object"==typeof module?module.exports=n(require("react")):"function"==typeof define&&define.amd?define(["react"],n):"object"==typeof exports?exports.ReactHighcharts=n(require("react")):e.ReactHighcharts=n(e.React)}("undefined"!=typeof self?self:this,(function(e){return function(){var n={262:function(e,n,t){"use strict";var r=t(586);function i(){}function o(){}o.resetWarningCache=i,e.exports=function(){function e(e,n,t,i,o,a){if(a!==r){var u=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw u.name="Invariant Violation",u}}function n(){return e}e.isRequired=e;var t={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:n,element:e,elementType:e,instanceOf:n,node:e,objectOf:n,oneOf:n,oneOfType:n,shape:n,exact:n,checkPropTypes:o,resetWarningCache:i};return t.PropTypes=t,t}},980:function(e,n,t){e.exports=t(262)()},586:function(e){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},359:function(n){"use strict";n.exports=e}},t={};function r(e){var i=t[e];if(void 0!==i)return i.exports;var o=t[e]={exports:{}};return n[e](o,o.exports,r),o.exports}r.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(n,{a:n}),n},r.d=function(e,n){for(var t in n)r.o(n,t)&&!r.o(e,t)&&Object.defineProperty(e,t,{enumerable:!0,get:n[t]})},r.o=function(e,n){return Object.prototype.hasOwnProperty.call(e,n)},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var i={};return function(){"use strict";function e(){return e=Object.assign||function(e){for(var n=1;n<arguments.length;n++){var t=arguments[n];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])}return e},e.apply(this,arguments)}r.r(i),r.d(i,{Annotation:function(){return Ge},AreaRangeSeries:function(){return nt},AreaSeries:function(){return tt},AreaSplineRangeSeries:function(){return rt},AreaSplineSeries:function(){return it},Axis:function(){return he},BarSeries:function(){return Zn},BaseChart:function(){return re},BellCurveSeries:function(){return ot},BoxPlotSeries:function(){return at},BubbleSeries:function(){return ut},BulletSeries:function(){return ct},CandlestickSeries:function(){return kr},Caption:function(){return Ye},Chart:function(){return le},ColorAxis:function(){return Je},ColumnPyramidSeries:function(){return lt},ColumnRangeSeries:function(){return ft},ColumnSeries:function(){return st},Credits:function(){return nn},CylinderSeries:function(){return dt},Debug:function(){return Kn},DependencyWheelSeries:function(){return pt},ErrorBarSeries:function(){return vt},FlagsSeries:function(){return Nr},Funnel3dSeries:function(){return mt},FunnelSeries:function(){return bt},GaugeSeries:function(){return ht},HeatmapSeries:function(){return yt},Highcharts3dChart:function(){return Fe},HighchartsChart:function(){return ie},HighchartsProvider:function(){return Q},HighchartsSparkline:function(){return Re},HighchartsStockChart:function(){return Ut},HistogramSeries:function(){return gt},ItemSeries:function(){return xt},Legend:function(){return bn},LineSeries:function(){return St},Loading:function(){return an},Navigator:function(){return or},NetworkGraphSeries:function(){return Et},OHLCSeries:function(){return Br},OrganizationSeries:function(){return Lt},PackedBubbleSeries:function(){return Ot},Pane:function(){return gn},ParetoSeries:function(){return Pt},PieSeries:function(){return wt},PlotBand:function(){return Bn},PlotLine:function(){return Dn},PolygonSeries:function(){return Ct},Pyramid3dSeries:function(){return Tt},PyramidSeries:function(){return At},RangeSelector:function(){return Ar},SankeySeries:function(){return jt},Scatter3dSeries:function(){return kt},ScatterSeries:function(){return Rt},Scrollbar:function(){return Rr},Series:function(){return Y},SolidGaugeSeries:function(){return Nt},SplineSeries:function(){return Bt},StreamGraphSeries:function(){return Dt},Subtitle:function(){return Hn},SunburstSeries:function(){return It},TilemapSeries:function(){return Mt},TimelineSeries:function(){return Ht},Title:function(){return _n},Tooltip:function(){return zn},TreemapSeries:function(){return Vt},VariablePieSeries:function(){return Ft},VariwideSeries:function(){return _t},VectorSeries:function(){return Gt},VennSeries:function(){return qt},WaterfallSeries:function(){return Wt},WindBarbSeries:function(){return zt},XAxis:function(){return xe},XRangeSeries:function(){return Xt},YAxis:function(){return Oe},ZAxis:function(){return Yn},getEventsConfig:function(){return O},getNonEventHandlerProps:function(){return E},useAxis:function(){return M},useChart:function(){return N},useHighcharts:function(){return L},useModifiedProps:function(){return oe},usePlotBandLine:function(){return Tn},useSeries:function(){return $n},withHighcharts:function(){return K},withSeriesType:function(){return Z}});var n,t=r(359);function o(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,r=new Array(n);t<n;t++)r[t]=e[t];return r}function a(e,n){if(e){if("string"==typeof e)return o(e,n);var t=Object.prototype.toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(e):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?o(e,n):void 0}}function u(e,n){return function(e){if(Array.isArray(e))return e}(e)||function(e,n){var t=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=t){var r,i,o=[],a=!0,u=!1;try{for(t=t.call(e);!(a=(r=t.next()).done)&&(o.push(r.value),!n||o.length!==n);a=!0);}catch(e){u=!0,i=e}finally{try{a||null==t.return||t.return()}finally{if(u)throw i}}return o}}(e,n)||a(e,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function c(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}function l(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function f(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?l(Object(t),!0).forEach((function(n){c(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):l(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}function s(e,n){if(null==e)return{};var t,r,i=function(e,n){if(null==e)return{};var t,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)t=o[r],n.indexOf(t)>=0||(i[t]=e[t]);return i}(e,n);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)t=o[r],n.indexOf(t)>=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(i[t]=e[t])}return i}var d=new Uint8Array(16);function p(){if(!n&&!(n="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto)))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return n(d)}for(var v=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i,b=function(e){return"string"==typeof e&&v.test(e)},m=[],h=0;h<256;++h)m.push((h+256).toString(16).substr(1));var y=function(e,n,t){var r=(e=e||{}).random||(e.rng||p)();if(r[6]=15&r[6]|64,r[8]=63&r[8]|128,n){t=t||0;for(var i=0;i<16;++i)n[t+i]=r[i];return n}return function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,t=(m[e[n+0]]+m[e[n+1]]+m[e[n+2]]+m[e[n+3]]+"-"+m[e[n+4]]+m[e[n+5]]+"-"+m[e[n+6]]+m[e[n+7]]+"-"+m[e[n+8]]+m[e[n+9]]+"-"+m[e[n+10]]+m[e[n+11]]+m[e[n+12]]+m[e[n+13]]+m[e[n+14]]+m[e[n+15]]).toLowerCase();if(!b(t))throw TypeError("Stringified UUID is invalid");return t}(r)},g=(0,t.createContext)();g.displayName="SeriesContext";var x=g;function S(e,n){var t={};return e&&Object.keys(e).filter((function(t){return n(t,e[t])})).forEach((function(n){t[n]=e[n]})),t}var E=function(e){return S(e,(function(e,n){return!P(e,n)}))},O=function(e){var n=function(e){return S(e,P)}(e),t={};return Object.keys(n).forEach((function(e){var r=e.slice(2)[0].toLowerCase()+e.slice(3);t[r]=n[e]})),t},P=function(e,n){return 0===e.indexOf("on")&&e.length>2&&"function"==typeof n},w=["children"];function C(e,n){var t=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=n.children,i=s(n,w),o=S(i,(function(n,t){return!e||!1===Object.is(t,e[n])}));return!t||e&&!1!==Object.is(e.children,r)||(o.text=r),Object.keys(o).length>0&&o}function A(e){var n=(0,t.useRef)();return(0,t.useEffect)((function(){n.current=e})),n.current}var T=(0,t.createContext)();T.displayName="HighchartsContext";var j=T;function L(){return(0,t.useContext)(j)}var R=(0,t.createContext)();R.displayName="ChartContext";var k=R;function N(){return(0,t.useContext)(k)}var B=(0,t.createContext)();B.displayName="AxisContext";var D=B,I=function(e){return e?{object:e,id:e.userOptions&&e.userOptions.id,type:e.coll,update:e.update.bind(e),remove:e.remove.bind(e),addPlotBandOrLine:e.addPlotBandOrLine.bind(e),removePlotBandOrLine:e.removePlotBandOrLine.bind(e),getExtremes:e.getExtremes.bind(e),setExtremes:e.setExtremes.bind(e),setTitle:e.setTitle.bind(e)}:null};function M(e){var n=N(),r=(0,t.useContext)(D),i=function(){if(r)return r;if(e){var t=n.get(e);return I(t)}return null},o=u((0,t.useState)(i),2),a=o[0],c=o[1];return(0,t.useEffect)((function(){a||c(i())}),[]),(0,t.useDebugValue)(a?a.id:null),a}var H=(0,t.createContext)();H.displayName="ColorAxisContext";var V=H,F=function(e){return e?{object:e,id:e.userOptions&&e.userOptions.id}:null};function _(e){return e?{object:e,id:e.userOptions&&e.userOptions.id,type:e.type,update:e.update.bind(e),remove:e.remove.bind(e),setData:e.setData.bind(e),setVisible:e.setVisible.bind(e)}:null}var q=["id","data","isDataEqual","type","visible","children","axisId","requiresAxis","jsxOptions"],G=["visible","data"],W=["id","data"],z=[],X=(0,t.memo)((function(e){var n=e.id,r=void 0===n?y:n,i=e.data,o=void 0===i?z:i,a=e.isDataEqual,c=void 0===a?Object.is:a,l=e.type,d=void 0===l?"line":l,p=e.visible,v=void 0===p||p,b=e.children,m=void 0===b?null:b,h=e.axisId,g=e.requiresAxis,S=void 0===g||g,P=e.jsxOptions,w=f({id:r,data:o,type:d,visible:v},s(e,q)),T=L(),j=N(),R=j.addSeries,k=j.needsRedraw,B=(0,t.useRef)(null),D=u((0,t.useState)(!1),2)[1],I=(0,t.useRef)(null),H=M(h),F=function(e){N();var n=(0,t.useContext)(V),r=function(){return n||null},i=u((0,t.useState)(r),2),o=i[0],a=i[1];return(0,t.useEffect)((function(){o||a(r())}),[]),(0,t.useDebugValue)(o?o.id:null),o}();(0,t.useEffect)((function(){if(!S||H){var e=U(w,H,F,S),n=R(e,!1);return B.current=n,I.current=_(B.current),D(!0),k(),function(){if(n&&n.remove){try{n.remove.bind(n)(!1),B.current=null}catch(e){}k()}}}}),[H]);var W=A(w);return(0,t.useEffect)((function(){if(W&&B.current){var e=B.current,n=w.visible,t=w.data,r=s(w,G),i=!1;if(!1===c(t,W.data)){var o=P&&P.animation,a=P&&P.updatePoints;e.setData(t,!1,o,a),i=!0}n!==W.visible&&(e.setVisible(n,!1),i=!0);var u=C(W,r);if(!1!==u){var l=E(u);e.update(l,!1);var f=O(u),d=O(W);Object.keys(f).forEach((function(n){var t=d[n];t&&T.removeEvent(e,n,t);var r=f[n];r&&T.addEvent(e,n,r)})),i=!0}i&&k()}})),B.current?t.createElement(x.Provider,{value:I.current},m):null}));X.displayName="Series";var U=function(e,n,t,r){var i=e.id,o=e.data,a=s(e,W),u="function"==typeof i?i():i,c=E(a),l=f({id:u,data:o,events:O(a)},c);return t&&(l.colorAxis=t.id),r&&(l[n.type]=n.id),l},Y=X;function Z(n){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=function(i){return t.createElement(Y,e({},i,r,{type:n.toLowerCase()}))};return i.displayName="".concat(n,"Series"),i}var $=r(980),J=r.n($);function K(e,n){return function(r){return t.createElement(Q,{Highcharts:n},t.createElement(e,r))}}var Q=function(e){var n=e.Highcharts,r=e.children;return t.createElement(j.Provider,{value:n},r)},ee=["children","callback","className","containerProps"],ne=["chartCreationFunc","callback","chart","polar","gauge","styledMode","children"],te=function(e){return e},re=function(n){var r=n.children,i=void 0===r?null:r,o=n.callback,a=void 0===o?te:o,c=n.className,l=void 0===c?"":c,d=n.containerProps,p=void 0===d?null:d,v=s(n,ee),b=u((0,t.useState)(!1),2),m=b[0],h=b[1],y=(0,t.useRef)(null),g=(0,t.useRef)(null),x=(0,t.useRef)(null);(0,t.useLayoutEffect)((function(){var e,n,t,r,i,o,u=function(e,n){if(n){var t=e.chartCreationFunc,r=(e.callback,e.chart),i=e.polar,o=e.gauge,a=e.styledMode,u=void 0!==a&&a,c=(e.children,s(e,ne)),l=t(n,f({chart:f({styledMode:u},r),title:{text:null},subtitle:{text:null},legend:{enabled:!1},rangeSelector:{enabled:!1},navigator:{enabled:!1},scrollbar:{enabled:!1},tooltip:{enabled:!1},credits:{enabled:!1},series:[],xAxis:[],yAxis:[]},c));return l.polar=i,l.angular=o,l}}(v,y.current);g.current=u,x.current=(e=u,n=v.chartType,{object:e,type:n,get:e.get.bind(e),setSize:e.setSize.bind(e),update:e.update.bind(e),addAxis:e.addAxis.bind(e),addColorAxis:e.addColorAxis.bind(e),addSeries:e.addSeries.bind(e),setTitle:e.setTitle.bind(e),setCaption:e.setCaption.bind(e),showLoading:e.showLoading.bind(e),hideLoading:e.hideLoading.bind(e),addCredits:e.addCredits.bind(e),addAnnotation:e.addAnnotation?e.addAnnotation.bind(e):null,removeAnnotation:e.removeAnnotation?e.removeAnnotation.bind(e):null,needsRedraw:(t=function(){if(!e.__destroyed)try{e.redraw.bind(e)()}catch(e){}},i=window.cancelAnimationFrame,o=window.requestAnimationFrame,function(){r&&i(r);for(var e=arguments.length,n=new Array(e),a=0;a<e;a++)n[a]=arguments[a];r=o(t.bind.apply(t,[t].concat(n)))})}),a(u),h(!0)}),[]),(0,t.useEffect)((function(){var e=g.current;return function(){e&&(window.requestAnimationFrame(e.destroy.bind(e)),e.__destroyed=!0)}}),[]);var S=A(v);return(0,t.useEffect)((function(){if(m){var e=v.plotOptions,n=g.current;!1===Object.is(S.plotOptions,e)&&n&&(n.update({plotOptions:e},!1),x.current.needsRedraw())}})),t.createElement("div",e({},p,{className:"chart ".concat(l),ref:y}),m&&t.createElement(k.Provider,{value:x.current},i))},ie=function(n){var r=L();return t.createElement(re,e({},n,{chartCreationFunc:r.chart,chartType:"chart"}))};function oe(e){var n=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=(0,t.useRef)();(0,t.useEffect)((function(){r.current=e}));var i=C(r.current,e,n);return(0,t.useDebugValue)(i?"Modified":"Not modified"),i}var ae=["type","width","height"],ue=(0,t.memo)((function(e){var n,r,i,o,a,u,c=e.type,l=void 0===c?"line":c,d=e.width,p=e.height,v=s(e,ae),b=N(),m=(0,t.useRef)(!1),h=oe(f({type:l},v));return(0,t.useEffect)((function(){void 0===d&&void 0===p||b.setSize(d,p)}),[d,p]),(0,t.useEffect)((function(){if(!1!==h&&m.current){var e=E(h);Object.getOwnPropertyNames(e).length>0&&ce(h,b,b.needsRedraw)}})),(0,t.useEffect)((function(){var e=E(f({type:l},v));ce(e,b),m.current=!0}),[]),n=v,r=b.object,i=L(),o=O(n),a=A(o),!1!==(u=C(a,o))&&Object.keys(u).forEach((function(e){if(a){var n=a[e];n&&i.removeEvent(r,e,n)}var t=u[e];t&&i.addEvent(r,e,t)})),null})),ce=function(e,n){n.update({chart:e},!1),n.needsRedraw()};ue.propTypes={type:J().string,width:J().oneOfType([J().string,J().number]),height:J().oneOfType([J().string,J().number]),onAddSeries:J().func,onAfterPrint:J().func,onBeforePrint:J().func,onClick:J().func,onLoad:J().func,onRedraw:J().func,onRender:J().func,onSelection:J().func},ue.displayName="Chart";var le=ue,fe=["children","dynamicAxis"],se=["id"],de=["children","axisId"],pe=(0,t.memo)((function(e){var n=e.children,r=e.axisId,i=s(e,de),o=M(r);return(0,t.useEffect)((function(){o&&ve(f({text:n},i),o)})),(0,t.useEffect)((function(){return function(){if(o)try{ve({text:null},o)}catch(e){}}}),[o]),null})),ve=function(e,n){n.setTitle(e,!0)};pe.displayName="AxisTitle";var be=pe,me=function(e){var n=e.children,r=void 0===n?null:n,i=e.dynamicAxis,o=void 0===i||i,a=s(e,fe),c=N(),l=(0,t.useRef)(null),d=(0,t.useRef)(null),p=u((0,t.useState)(!1),2),v=p[0],b=p[1];(0,t.useEffect)((function(){var e=function(e,n,t){var r,i=n.id,o=void 0===i?y:i,a=n.isX,u=function(e){var n=e.id,t=void 0===n?y:n,r=s(e,se),i="function"==typeof t?t():t,o=E(r);return f({id:i,title:{text:null},events:O(r)},o)}(n);if(t)r=e.addAxis(u,a,!1);else{var c="function"==typeof o?o():o;(r=e.get(c)).update.call(r,u,!1)}return r}(c,a,o);return l.current=e,d.current=I(l.current),b(!0),c.needsRedraw(),function(){if(e.remove&&o){try{e.remove.bind(e)(!1)}catch(e){}c.needsRedraw()}}}),[]);var m=oe(a);return(0,t.useEffect)((function(){if(v&&!1!==m){var e=l.current;e.plotLinesAndBands&&e.plotLinesAndBands.length>0?e.update(m,!0):(e.update(m,!1),c.needsRedraw())}})),v?t.createElement(D.Provider,{value:d.current},r):null};me.Title=be;var he=me,ye=["id"],ge=function(n){var r=n.id,i=s(n,ye),o="stockChart"===N().type,a=o?"datetime":"linear",u=o?"xAxis":r;return t.createElement(he,e({type:a},i,{id:u,isX:!0}))};ge.Title=he.Title;var xe=ge,Se=["type"],Ee=function(n){var r=n.type,i=void 0===r?"linear":r,o=s(n,Se);return t.createElement(he,e({type:i},o,{isX:!1}))};Ee.displayName="YAxis",Ee.Title=he.Title;var Oe=Ee,Pe=["height","width","margin","style","series","children","plotOptions"],we={series:{animation:!1,lineWidth:1,shadow:!1,states:{hover:{lineWidth:1}},marker:{radius:1,states:{hover:{radius:2}}},fillOpacity:.25}},Ce=[],Ae={},Te=[0],je={enabled:!1},Le=[2,0,2,0],Re=function(n){var r=n.height,i=void 0===r?20:r,o=n.width,a=void 0===o?120:o,u=n.margin,c=void 0===u?Le:u,l=n.style,d=void 0===l?Ae:l,p=n.series,v=n.children,b=n.plotOptions,m=void 0===b?we:b,h=s(n,Pe),y=(0,t.useMemo)((function(){return f({overflow:"visible"},d)}),[d]),g=!!p,x=g?p:v;return t.createElement(ie,e({plotOptions:m},h),t.createElement(le,{height:i,width:a,animation:!1,backgroundColor:null,borderWidth:0,margin:c,style:y,skipClone:!0}),t.createElement(xe,{labels:je,startOnTick:!1,endOnTick:!1,tickPositions:Ce}),t.createElement(Oe,{id:"sparkline",labels:je,startOnTick:!1,endOnTick:!1,tickPositions:Te},x),g&&t.createElement(t.Fragment,null,v))},ke=["enabled","alpha","beta","depth","fitToPlot","viewDistance","axisLabelPosition","frame"],Ne={visible:"default",size:1,bottom:{},top:{},left:{},right:{},back:{},front:{}},Be=(0,t.memo)((function(e){var n=e.enabled,r=void 0!==n&&n,i=e.alpha,o=void 0===i?0:i,a=e.beta,u=void 0===a?0:a,c=e.depth,l=void 0===c?100:c,d=e.fitToPlot,p=void 0===d||d,v=e.viewDistance,b=void 0===v?25:v,m=e.axisLabelPosition,h=void 0===m?"default":m,y=e.frame,g=f({enabled:r,alpha:o,beta:u,depth:l,fitToPlot:p,viewDistance:b,axisLabelPosition:h,frame:void 0===y?Ne:y},s(e,ke)),x=(L(),N());return(0,t.useEffect)((function(){De(x,g)})),null})),De=function(e,n){var t={chart:{options3d:{enabled:!0,alpha:n.alpha,axisLabelPosition:n.axisLabelPosition,beta:n.beta,depth:n.depth,fitToPlot:n.fitToPlot,frame:n.frame,viewDistance:n.viewDistance}}};e.update(t,!0)};Be.propTypes={alpha:J().number,axisLabelPosition:J().string,beta:J().number,depth:J().number,fitToPlot:J().bool,frame:J().object,viewDistance:J().number},Be.displayName="Options3d";var Ie=Be,Me=["children","alpha","axisLabelPosition","beta","depth","fitToPlot","frame","viewDistance"],He={options3d:{enabled:!0}},Ve={id:"zAxis"},Fe=function(n){var r=n.children,i=n.alpha,o=n.axisLabelPosition,a=n.beta,u=n.depth,c=n.fitToPlot,l=n.frame,f=n.viewDistance,d=s(n,Me);return t.createElement(ie,e({chart:He,zAxis:Ve},d),t.createElement(Ie,{alpha:i,axisLabelPosition:o,beta:a,depth:u,fitToPlot:c,frame:l,viewDistance:f}),r)},_e=["id","children"],qe=(0,t.memo)((function(e){var n=e.id,r=void 0===n?y:n,i=(e.children,s(e,_e)),o=N(),a=o.addAnnotation,u=o.removeAnnotation,c=(0,t.useRef)();return(0,t.useEffect)((function(){c.current="function"==typeof r?r():r;var e=c.current,n=f({id:e},i);return a(n),function(){try{u(e)}catch(e){}}})),null}));qe.propTypes={id:J().oneOfType([J().string,J().func])},qe.displayName="Annotation";var Ge=qe,We=function(e){return e},ze=function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:We,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:We,i=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],o=N(),a=oe(e,i);(0,t.useEffect)((function(){!1!==a&&(n(o,a),o.needsRedraw())})),(0,t.useEffect)((function(){return function(){try{r(o)}catch(e){}o.needsRedraw()}}),[])},Xe=(0,t.memo)((function(e){return ze(e,Ue,(function(e){return Ue(e,{text:null})})),null})),Ue=function(e,n){e.setCaption(n)};Xe.displayName="Caption";var Ye=Xe,Ze=["children"],$e=["id"],Je=function(e){var n=e.children,r=void 0===n?null:n,i=s(e,Ze),o=N(),a=(0,t.useRef)(null),c=(0,t.useRef)(null),l=u((0,t.useState)(!1),2),d=l[0],p=l[1];(0,t.useEffect)((function(){var e=function(e,n){var t=function(e){var n=e.id,t=void 0===n?y:n,r=s(e,$e),i="function"==typeof t?t():t,o=E(r);return f({id:i,events:O(r)},o)}(n);return e.addColorAxis(t,!1)}(o,i);return a.current=e,c.current=F(a.current),p(!0),o.needsRedraw(),function(){if(e&&e.remove){try{e.remove.bind(e)(!1)}catch(e){}o.needsRedraw()}}}),[]);var v=oe(i);return(0,t.useEffect)((function(){null!==a.current&&!1!==v&&(a.current.update(v,!1),o.needsRedraw())})),d?t.createElement(V.Provider,{value:c.current},r):null},Ke=["enabled"],Qe=function(e){var n=e.enabled,t=void 0===n||n,r=s(e,Ke);return ze(f({enabled:t},r),en,(function(e){return en(e,{enabled:!1})})),null},en=function(e,n){"text"in n&&!n.text&&delete n.text,e.addCredits(n,!0)};Qe.propTypes={enabled:J().bool};var nn=Qe,tn=["children","isLoading"],rn=(0,t.memo)((function(e){var n=e.children,r=e.isLoading,i=void 0===r||r,o=s(e,tn),a=N(),u=oe(o);return(0,t.useEffect)((function(){!1!==u&&on(u,a),i?a.showLoading(n):a.hideLoading()})),(0,t.useEffect)((function(){return function(){try{a.hideLoading()}catch(e){}}}),[]),null})),on=function(e,n){n.update({loading:e},!0)};rn.propTypes={isLoading:J().bool,hideDuration:J().number,labelStyle:J().object,showDuration:J().number,style:J().object},rn.displayName="Loading";var an=rn,un=["children","enabled"],cn=(0,t.memo)((function(e){var n=e.children,t=void 0===n?null:n,r=e.enabled,i=void 0===r||r,o=s(e,un);return ze(f({enabled:i},o),ln,(function(e){return ln(e,{enabled:!1})}),!1),t})),ln=function(e,n){e.update({legend:n},!1)};cn.propTypes={enabled:J().bool},cn.displayName="Legend";var fn=cn,sn=(0,t.memo)((function(e){return ze(e,dn,(function(e){return dn(e,{text:null})})),null})),dn=function(e,n){e.update({legend:{title:n}},!1)};sn.displayName="LegendTitle";var pn=sn,vn=fn;vn.Title=pn;var bn=vn,mn=["children"],hn=(0,t.memo)((function(e){e.children;var n=s(e,mn);return ze(n,yn,(function(e){return yn(e,{})}),!1),null})),yn=function(e,n){e.update({pane:n},!1)};hn.displayName="Pane";var gn=hn,xn=(0,t.createContext)();xn.displayName="PlotBandLineContext";var Sn=xn,En=["id","axisId","children"];function On(e,n){var r=e.id,i=void 0===r?y:r,o=e.axisId,a=(e.children,s(e,En)),c=M(o),l=(0,t.useRef)(),d=u((0,t.useState)(null),2),p=d[0],v=d[1],b=oe(a);return(0,t.useEffect)((function(){if(c&&(!p||!1!==b)){p||(l.current="function"==typeof i?i():i);var e=l.current,t=f({id:e},a);p&&c.removePlotBandOrLine(l.current),c.addPlotBandOrLine(t,n),v({id:e,get object(){return c&&c.object&&c.object.plotLinesAndBands?c.object.plotLinesAndBands.find((function(n){return n.id===e})):null}})}})),(0,t.useEffect)((function(){return function(){try{c.removePlotBandOrLine(l.current)}catch(e){}}}),[]),p}var Pn=(0,t.memo)((function(e){var n=On(e,"plotBands"),r=e.children;return r||n?t.createElement(Sn.Provider,{value:n},r):null}));Pn.displayName="PlotBand";var wn=Pn,Cn=(0,t.memo)((function(e){var n=On(e,"plotLines"),r=e.children;return r||n?t.createElement(Sn.Provider,{value:n},r):null}));Cn.displayName="PlotLine";var An=Cn;function Tn(){return(0,t.useContext)(Sn)}var jn=["children","id"],Ln=(0,t.memo)((function(e){var n=Tn();return(0,t.useEffect)((function(){if(n){var t=e.children,r=(e.id,s(e,jn));Rn(n.object,f({text:t},r))}})),(0,t.useEffect)((function(){return function(){if(n)try{Rn(n.object,{text:null})}catch(e){}}}),[]),null})),Rn=function(e,n){e&&(e.options.label=kn(n),e.render())},kn=function(e){return{text:e.text,formatter:e.formatter,align:e.align,rotation:e.rotation,style:e.style,textAlign:e.textAlign,useHTML:e.useHTML,verticalAlign:e.verticalAlign,x:e.x,y:e.y}};Ln.displayName="PlotBandLineLabel";var Nn=Ln,Bn=wn;Bn.Label=Nn;var Dn=An;Dn.Label=Nn;var In=(0,t.memo)((function(e){return ze(e,Mn,(function(e){return Mn(e,{text:null})})),null})),Mn=function(e,n){e.setTitle(void 0,n,!1)};In.displayName="Subtitle";var Hn=In,Vn=(0,t.memo)((function(e){return ze(e,Fn,(function(e){return Fn(e,{text:null})})),null})),Fn=function(e,n){e.setTitle(n,null,!1)};Vn.displayName="Title";var _n=Vn,qn=["children"],Gn=(0,t.memo)((function(e){e.children;var n,r=s(e,qn),i=N(),o=L();r.enabled=null===(n=e.enabled)||void 0===n||n,(0,t.useEffect)((function(){return Wn(i,f(f({},o.defaultOptions&&o.defaultOptions.tooltip),r)),function(){try{Wn(i,{enabled:!1})}catch(e){}}}),[]);var a=oe(r);return(0,t.useEffect)((function(){!1!==a&&Wn(i,a)})),null})),Wn=function(e,n){e.update({tooltip:n})};Gn.displayName="Tooltip",Gn.propTypes={enabled:J().bool};var zn=Gn,Xn=["type"],Un=function(n){var r=n.type,i=void 0===r?"linear":r,o=s(n,Xn);return t.createElement(he,e({type:i},o,{id:"zAxis",isX:!1,dynamicAxis:!1}))};Un.displayName="ZAxis",Un.Title=he.Title;var Yn=Un,Zn=function(n){var r=N();return(0,t.useEffect)((function(){r.update({chart:{inverted:!0}})}),[]),t.createElement(Y,e({},n,{type:"bar"}))};function $n(e){var n=(0,t.useContext)(x),r=N(),i=function(){return n||(e?_(r.get(e)):null)},o=u((0,t.useState)(i),2),a=o[0],c=o[1];return(0,t.useEffect)((function(){a||c(i())}),[]),(0,t.useDebugValue)(a?a.id:null),a}var Jn=function(e){var n=e.varName,r=void 0===n?"chart":n,i=N();return(0,t.useEffect)((function(){return window[r]=i.object,console.log("Chart instance available as global variable as window.".concat(r)),function(){window[r]=void 0}}),[r]),null};Jn.propTypes={varName:J().string};var Kn=Jn,Qn={requiresAxis:!1},et={baseSeries:J().string.isRequired},nt=Z("AreaRange"),tt=Z("Area"),rt=Z("AreaSplineRange"),it=Z("AreaSpline"),ot=Z("BellCurve",{},et),at=Z("BoxPlot"),ut=Z("Bubble"),ct=Z("Bullet"),lt=Z("ColumnPyramid"),ft=Z("ColumnRange"),st=Z("Column"),dt=Z("Cylinder"),pt=Z("DependencyWheel"),vt=Z("ErrorBar"),bt=Z("Funnel",Qn),mt=Z("Funnel3d"),ht=Z("Gauge"),yt=Z("Heatmap"),gt=Z("Histogram",{},et),xt=Z("Item"),St=Z("Line"),Et=Z("NetworkGraph"),Ot=Z("PackedBubble",Qn),Pt=Z("Pareto",{},et),wt=Z("Pie",Qn),Ct=Z("Polygon"),At=Z("Pyramid",Qn),Tt=Z("Pyramid3d"),jt=Z("Sankey"),Lt=Z("Organization"),Rt=Z("Scatter"),kt=Z("Scatter3d"),Nt=Z("SolidGauge"),Bt=Z("Spline"),Dt=Z("StreamGraph"),It=Z("Sunburst"),Mt=Z("Tilemap"),Ht=Z("Timeline"),Vt=Z("Treemap"),Ft=Z("VariablePie",Qn),_t=Z("Variwide"),qt=Z("Venn",Qn),Gt=Z("Vector"),Wt=Z("Waterfall"),zt=Z("WindBarb"),Xt=Z("XRange"),Ut=function(n){var r=L();return t.createElement(re,e({},n,{chartCreationFunc:r.stockChart,chartType:"stockChart"}))},Yt=["children","axisId"],Zt=function(e,n){n.update(e)},$t=function(e){var n=e.children,r=e.axisId,i=s(e,Yt),o=M(r),a=(0,t.useRef)(!1);(0,t.useEffect)((function(){o&&Zt(E(i),o)}),[o]);var u=oe(i);if((0,t.useEffect)((function(){a.current?o&&!1!==u&&Zt(u,o):a.current=!0})),!n)return null;var c=t.Children.map(n,(function(e){return!1===(0,t.isValidElement)(e)?e:(0,t.cloneElement)(e,{axisId:r})}));return t.createElement(t.Fragment,null,c)},Jt=function(n){return t.createElement($t,e({},n,{axisId:"navigator-x-axis"}))},Kt=["enabled"],Qt=["children"],er=function(e,n){n.update({navigator:e},!0)},nr=function(e){var n=$n(e.seriesId);return(0,t.useEffect)((function(){if(n)return tr(n,{showInNavigator:!0}),function(){try{tr(n,{showInNavigator:!1})}catch(e){}}}),[n]),null},tr=function(e,n){e.update(n)};nr.propTypes={seriesId:J().string};var rr=nr,ir=function(e){var n=e.enabled,r=f({enabled:void 0===n||n},s(e,Kt)),i=u((0,t.useState)(!1),2),o=i[0],a=i[1],c=N(),l=L();(0,t.useEffect)((function(){r.children;var e=s(r,Qt),n=c.object;return n.options.navigator.enabled=!0,l.fireEvent(n,"beforeRender"),er(e,c),a(!0),function(){try{er({enabled:!1},c)}catch(e){}}}),[]);var d=oe(r);(0,t.useEffect)((function(){!1!==d&&er(d,c)}));var p=r.children;return p&&o?t.createElement(Jt,null,p):null};ir.Series=rr,ir.XAxis=Jt,ir.YAxis=function(n){return t.createElement($t,e({},n,{axisId:"navigator-y-axis"}))};var or=ir,ar=["enabled","children"],ur=function(e){var n=e.enabled,r=void 0===n||n,i=e.children,o=f({enabled:r},s(e,ar)),a=u((0,t.useState)(!1),2),c=a[0],l=a[1],d=L(),p=N(),v=M("xAxis");(0,t.useEffect)((function(){if(v){var e=p.object;e.options.rangeSelector.enabled=!0,d.fireEvent(e,"afterGetContainer");var n=cr(o,d);lr(n,p);var t=fr(p,v),r=v.object;return d.addEvent(r,"afterSetExtremes",t),l(!0),function(){var e=v.object;d.removeEvent(e,"afterSetExtremes",t);try{lr({enabled:!1},p)}catch(e){}}}}),[v]);var b=oe(o);return(0,t.useEffect)((function(){v&&c&&!1!==b&&lr(b,p)})),i&&c?t.createElement(t.Fragment,null,i):null},cr=function(e,n){return f(f(f({},n.defaultOptions&&n.defaultOptions.rangeSelector),e),{},{inputEnabled:!1,buttons:[]})},lr=function(e,n){n.update({rangeSelector:e},!0)},fr=function(e,n){return function(){var t=e.object,r=n.getExtremes();t.rangeSelector.render.call(t.rangeSelector,r.min,r.max)}};ur.propTypes={enabled:J().bool};var sr=ur;function dr(e){return function(e){if(Array.isArray(e))return o(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||a(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var pr=["count","offsetMin","offsetMax"],vr=["count","type","offsetMin","offsetMax","dataGrouping","children"],br=function(e){var n=e.count,r=void 0===n?1:n,i=e.offsetMin,o=void 0===i?0:i,a=e.offsetMax,u=f({count:r,offsetMin:o,offsetMax:void 0===a?0:a},s(e,pr)),c=N();return(0,t.useEffect)((function(){if(!(hr(u,c)>-1)){var e=u.count,n=u.type,t=u.offsetMin,r=u.offsetMax,i=u.dataGrouping,o=u.children,a=s(u,vr),l={count:e,type:n,offsetMin:t,offsetMax:r,dataGrouping:i,text:o,events:O(a)};return yr(l,c),function(){try{gr(u,c)}catch(e){}}}}),[]),null},mr=function(e){var n=e.object;if(n&&n.options){var t=n.options.rangeSelector.buttons;return void 0===t?[]:t}return[]},hr=function(e,n){var t=e.count,r=e.type;return mr(n).findIndex((function(e){return e.count===t&&e.type===r}))},yr=function(e,n){var t=[].concat(dr(mr(n)),[e]);xr(t,n)},gr=function(e,n){var t=hr(e);if(-1!==t){var r=dr(mr());r.splice(t,1),xr(r,n)}},xr=function(e,n){n.update({rangeSelector:{buttons:e}})};br.propTypes={count:J().number,type:J().oneOf(["millisecond","second","minute","hour","day","week","month","ytd","all"]),offsetMin:J().number.isRequired,offsetMax:J().number.isRequired,dataGrouping:J().object};var Sr=br,Er=["enabled"],Or=function(e){var n=e.enabled,r=void 0===n||n,i=s(e,Er),o=N();(0,t.useEffect)((function(){return function(){try{Pr({enabled:!1},o)}catch(e){}}}),[]);var a=oe(f({enabled:r},i));return(0,t.useEffect)((function(){!1!==a&&Pr(a,o)})),null},Pr=function(e,n){var t=function(e){var n={};return Object.keys(e).forEach((function(t){var r,i=0===t.indexOf("input")?t:"input".concat((r=t).charAt(0).toUpperCase()+r.slice(1));n[i]=e[t]})),n}(e);n.update({rangeSelector:f({},t)})};Or.propTypes={update:J().func,enabled:J().bool};var wr=Or,Cr=sr;Cr.Button=Sr,Cr.Input=wr;var Ar=Cr,Tr=["children","enabled"],jr=function(e){var n=e.children,r=e.enabled,i=void 0===r||r,o=s(e,Tr),a=N();(0,t.useEffect)((function(){return function(){try{Lr({enabled:!1},a)}catch(e){}}}),[]);var u=oe(f({enabled:i},o));return(0,t.useEffect)((function(){!1!==u&&Lr(u,a)})),n?t.createElement(t.Fragment,null,n):null},Lr=function(e,n){n.update({scrollbar:e},!0)};jr.propTypes={enabled:J().bool};var Rr=jr,kr=Z("Candlestick"),Nr=Z("Flags"),Br=Z("OHLC")}(),i}()}));
{
"name": "react-jsx-highstock",
"version": "4.3.1",
"version": "4.3.2",
"description": "Highcharts (including Highstock) charts built using React components",

@@ -65,39 +65,7 @@ "main": "dist/react-jsx-highstock.min.js",

"dependencies": {
"@babel/runtime": "^7.14.6",
"lodash-es": "^4.17.21",
"react-jsx-highcharts": "4.3.1"
"@babel/runtime": "^7.15.4",
"react-jsx-highcharts": "4.3.2"
},
"devDependencies": {
"@babel/cli": "^7.14.5",
"@babel/core": "^7.14.6",
"@babel/plugin-transform-runtime": "^7.14.5",
"@babel/preset-env": "^7.14.7",
"@babel/preset-react": "^7.14.5",
"@testing-library/react": "^11.2.7",
"@types/react": "^17.0.14",
"babel-eslint": "^10.1.0",
"babel-loader": "^8.2.2",
"babel-plugin-transform-react-remove-prop-types": "^0.4.24",
"cross-env": "^7.0.3",
"eslint": "^5.16.0",
"eslint-config-prettier": "^6.15.0",
"eslint-plugin-import": "^2.23.4",
"eslint-plugin-prettier": "^3.4.0",
"eslint-plugin-react": "^7.24.0",
"eslint-plugin-react-hooks": "^4.2.0",
"eslint-plugin-react-perf": "^3.3.0",
"highcharts": "^9.1.2",
"jest": "^27.0.6",
"lodash-webpack-plugin": "^0.11.6",
"prettier": "^2.3.2",
"prop-types": "^15.7.2",
"react": "^17.0.2",
"react-dom": "^17.0.2",
"rimraf": "^3.0.2",
"typescript": "^4.3.5",
"webpack": "^5.44.0",
"webpack-cli": "^4.7.2"
},
"peerDependencies": {
"highcharts": "^8.0.0 || ^9.0.0",
"highcharts": "^8.0.0 || ^9.0.0 || ^10.0.0",
"prop-types": "^15.0.0",

@@ -104,0 +72,0 @@ "react": "^16.8.6 || ^17.0.0",

@@ -166,3 +166,3 @@ ![React JSX Highstock](https://user-images.githubusercontent.com/2003804/40682476-c1ea6be4-6383-11e8-826c-a617db5ef726.png)

[See here](https://whawker.github.io/react-jsx-highcharts/examples/index.html)
[See here](https://codesandbox.io/s/github/whawker/react-jsx-highcharts-examples)

@@ -169,0 +169,0 @@ ## Documentation

import { useEffect } from 'react';
import PropTypes from 'prop-types';
import { mapKeys, upperFirst } from 'lodash-es';
import { useModifiedProps, useChart } from 'react-jsx-highcharts';

@@ -30,7 +29,16 @@

const upperFirst = str => {
return str.charAt(0).toUpperCase() + str.slice(1);
};
const prefixPropsWithInput = config => {
return mapKeys(config, (value, key) => {
return key.indexOf('input') === 0 ? key : `input${upperFirst(key)}`;
const prefixedConfig = {};
Object.keys(config).forEach(key => {
const newKey = key.indexOf('input') === 0 ? key : `input${upperFirst(key)}`;
prefixedConfig[newKey] = config[key];
});
return prefixedConfig;
};
const updateRangeSelectorInputs = (config, chart) => {

@@ -48,5 +56,5 @@ const inputProps = prefixPropsWithInput(config);

update: PropTypes.func, // Provided by ChartProvider
enabled: PropTypes.bool.isRequired
enabled: PropTypes.bool
};
export default RangeSelectorInput;
SocketSocket SOC 2 Logo

Product

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc