UNPKG

fusioncharts

Version:

FusionCharts JavaScript charting framework

1 lines 557 kB
!function(e){"object"==typeof module&&"undefined"!=typeof module.exports?module.exports=e:e()}((function(){(window.webpackJsonpFusionCharts=window.webpackJsonpFusionCharts||[]).push([[4],{1311:function(e,t,a){"use strict";var o=a(273);t.__esModule=!0,t["default"]=void 0;var r=o(a(786));t.Spline=r["default"];var i=o(a(1312));t.Logmscolumn2d=i["default"];var n=o(a(1317));t.Logmsline=n["default"];var l=o(a(1319));t.LogStackedColumn2d=l["default"];var s=o(a(789));t.Splinearea=s["default"];var c=o(a(791));t.Msspline=c["default"];var d=o(a(794));t.MSSplineDy=d["default"];var h=o(a(796));t.Mssplinearea=h["default"];var u=o(a(1321));t.Errorbar2d=u["default"];var p=o(a(1325));t.Errorline=p["default"];var g=o(a(1330));t.Errorscatter=g["default"];var f=o(a(1335));t.Inversemsarea=f["default"];var m=o(a(1337));t.Inversemscolumn2d=m["default"];var v=o(a(1339));t.Inversemsline=v["default"];var b=o(a(1341));t.Dragcolumn2d=b["default"];var x=o(a(1353));t.Dragline=x["default"];var k=o(a(1360));t.Kagi=k["default"];var y=o(a(1367));t.WaterFall2D=y["default"];var C=o(a(1368));t.SelectScatter=C["default"];var w=o(a(1372));t.MultilevelPie=w["default"];var A=o(a(1377));t.Sunburst=A["default"];var S=o(a(1382));t.MultiAxisLine=S["default"];var N=o(a(1390));t.MSStepLine=N["default"];var L=o(a(1394));t.DragNode=L["default"];var D=o(a(1405));t.CandleStick=D["default"];var E=o(a(1418));t.BoxAndWhisker2D=E["default"];var T=o(a(1427));t.Sankey=T["default"];var F=o(a(1438));t.HeatMap=F["default"];var P=o(a(1450));t.Radar=P["default"];var _=o(a(1463));t.Chord=_["default"];var V=o(a(1473));t.DragArea=V["default"];var I=o(a(1474)),B=o(a(1475)),M={name:"powercharts",type:"package",requiresFusionCharts:!0,extension:function(e){e.addDep(I["default"]),e.addDep(B["default"]),e.addDep(r["default"]),e.addDep(i["default"]),e.addDep(l["default"]),e.addDep(n["default"]),e.addDep(s["default"]),e.addDep(d["default"]),e.addDep(c["default"]),e.addDep(h["default"]),e.addDep(u["default"]),e.addDep(p["default"]),e.addDep(g["default"]),e.addDep(f["default"]),e.addDep(m["default"]),e.addDep(v["default"]),e.addDep(b["default"]),e.addDep(x["default"]),e.addDep(k["default"]),e.addDep(y["default"]),e.addDep(C["default"]),e.addDep(w["default"]),e.addDep(A["default"]),e.addDep(S["default"]),e.addDep(N["default"]),e.addDep(L["default"]),e.addDep(D["default"]),e.addDep(E["default"]),e.addDep(T["default"]),e.addDep(F["default"]),e.addDep(P["default"]),e.addDep(_["default"]),e.addDep(V["default"])}};t["default"]=M},1312:function(e,t,a){"use strict";var o=a(273);t.__esModule=!0,t["default"]=void 0;var r=o(a(1313))["default"];t["default"]=r},1313:function(e,t,a){"use strict";var o=a(273);t.__esModule=!0,t["default"]=void 0;var r=o(a(292)),i=o(a(1314)),n=o(a(689)),l=o(a(599)),s=function(e){function t(){return e.apply(this,arguments)||this}(0,r["default"])(t,e),t.getName=function(){return"LogMSColumn2d"};var a=t.prototype;return a.getName=function(){return"LogMSColumn2d"},a.__setDefaultConfig=function(){e.prototype.__setDefaultConfig.call(this);var t=this.config;t.defaultDatasetType="column",t.enablemousetracking=!0},a.getDSGroupdef=function(){return n["default"]},a.getDSdef=function(){return l["default"]},t}(i["default"]);t["default"]=s},1314:function(e,t,a){"use strict";var o=a(273);t.__esModule=!0,t["default"]=void 0;var r=o(a(292)),i=o(a(626)),n=o(a(1315)),l=a(278),s=o(a(422)),c=function(e){function t(){var t;return(t=e.call(this)||this).registerFactory("axis",n["default"],["canvas"]),t}(0,r["default"])(t,e),t.getName=function(){return"MsLog"};var a=t.prototype;return a._feedAxesRawData=function(){var e,t,a=this.getFromEnv("dataSource"),o=this.getFromEnv("chart-attrib");return e=this.getSpecificxAxisConf(),"1"===(t=this.getSpecificyAxisConf()).base&&(t.base=10,t.logBase=10),t.minorDivlinecolor=(0,l.pluck)(o.minordivlinecolor,t.divLineColor),t.minorDivLineThickness=(0,l.pluck)(o.minordivlinethickness,1),t.minorDivLineAlpha=(0,l.pluck)(o.minordivlinealpha,t.divLineAlpha/2),e.vtrendlines=a.vtrendlines,t.trendlines=a.trendlines,{yAxisConf:[t],xAxisConf:[e]}},a.getSpecificxAxisConf=function(){var e=this.getFromEnv("chart-attrib"),t=this.getBasexAxisConf();return t.showZeroPlane=e.showvzeroplane,t.zeroPlaneThickness=e.vzeroplanethickness,t.zeroPlaneAlpha=e.vzeroplanealpha,t.showAxisLine=(0,l.pluckNumber)(e.showxaxisline,e.showaxislines,e.drawAxisLines,0),t.axisLineColor=(0,l.pluck)(e.xaxislinecolor,e.axislinecolor,"#000000"),t.isReverse=!1,t.showAlternateGridColor=(0,l.pluckNumber)(e.showalternatevgridcolor,0),t.numDivLines=e.numvdivlines,t.maxLabelHeight=e.maxlabelheight,t.axisName=e.xaxisname,t.setAdaptiveMin=e.setadaptivexmin,t.showLimits=e.showvlimits,t.showDivLineValues=(0,l.pluckNumber)(e.showvdivlinevalues,e.showvdivlinevalues),t},a.getSpecificyAxisConf=function(){var e=this.getFromEnv("chart-attrib"),t=this.config.is3D?l.chartPaletteStr.chart3D:l.chartPaletteStr.chart2D,a=!!(0,l.pluckNumber)(e.invertyaxis,0),o=this.getFromEnv("color-manager"),r=(0,l.pluckFontSizeMaintainUnit)(e.outcnvbasefontsize,e.basefontsize,10);return{isVertical:!0,isReverse:!a,isOpposit:(0,s["default"])(e.yaxisposition,"right"),outCanfontFamily:(0,l.pluck)(e.outcnvbasefont,e.basefont,"Verdana,sans"),outCanfontSize:this.computeFontSize(r),outCanfontSizeWithUnit:r,outCancolor:(0,l.pluck)(e.outcnvbasefontcolor,e.basefontcolor,o.getColor(t.baseFontColor)).replace(/^#? ([a-f0-9]+)/gi,"#$1"),axisNamePadding:e.yaxisnamepadding,axisValuePadding:e.yaxisvaluespadding,axisNameFont:e.yaxisnamefont,axisNameFontSize:this.computeFontSize(e.yaxisnamefontsize),axisNameFontSizeWithUnit:e.yaxisnamefontsize,axisNameFontColor:e.yaxisnamefontcolor,axisNameFontBold:e.yaxisnamefontbold,axisNameFontItalic:e.yaxisnamefontitalic,axisNameBgColor:e.yaxisnamebgcolor,axisNameBorderColor:e.yaxisnamebordercolor,axisNameAlpha:e.yaxisnamealpha,axisNameFontAlpha:e.yaxisnamefontalpha,axisNameBgAlpha:e.yaxisnamebgalpha,axisNameBorderAlpha:e.yaxisnameborderalpha,axisNameBorderPadding:e.yaxisnameborderpadding,axisNameBorderRadius:e.yaxisnameborderradius,axisNameBorderThickness:e.yaxisnameborderthickness,axisNameBorderDashed:e.yaxisnameborderdashed,axisNameBorderDashLen:e.yaxisnameborderdashlen,axisNameBorderDashGap:e.yaxisnameborderdashgap,axisNameWidth:e.yaxisnamewidth,useEllipsesWhenOverflow:e.useellipseswhenoverflow,rotateAxisName:(0,l.pluckNumber)(e.rotateyaxisname,1),axisName:e.yaxisname,divLineColor:(0,l.pluck)(e.divlinecolor,o.getColor(t.divLineColor)),divLineAlpha:(0,l.pluck)(e.divlinealpha,o.getColor("divLineAlpha")),divLineThickness:(0,l.pluckNumber)(e.divlinethickness,2),divLineIsDashed:Boolean((0,l.pluckNumber)(e.divlinedashed,e.divlineisdashed,0)),divLineDashLen:(0,l.pluckNumber)(e.divlinedashlen,4),divLineDashGap:(0,l.pluckNumber)(e.divlinedashgap,2),showAlternateGridColor:(0,l.pluckNumber)(e.showalternatehgridcolor,1),alternateGridColor:(0,l.pluck)(e.alternatehgridcolor,o.getColor("altHGridColor")),alternateGridAlpha:(0,l.pluck)(e.alternatehgridalpha,o.getColor("altHGridAlpha")),numDivLines:e.numdivlines,axisMinValue:e.yaxisminvalue,axisMaxValue:e.yaxismaxvalue,setAdaptiveMin:e.setadaptiveymin,adjustDiv:e.adjustdiv,labelStep:e.yaxisvaluesstep,showAxisValues:(0,l.pluckNumber)(e.showyaxisvalues,e.showyaxisvalue),showLimits:(0,l.pluckNumber)(e.showyaxislimits,e.showlimits,this.showLimits),showDivLineValues:(0,l.pluckNumber)(e.showdivlinevalues,e.showdivlinevalue),showZeroPlane:e.showzeroplane,zeroPlaneColor:e.zeroplanecolor,zeroPlaneThickness:e.zeroplanethickness,zeroPlaneAlpha:e.zeroplanealpha,showZeroPlaneValue:e.showzeroplanevalue,trendlineColor:e.trendlinecolor,trendlineToolText:e.trendlinetooltext,trendlineThickness:e.trendlinethickness,trendlineAlpha:e.trendlinealpha,showTrendlinesOnTop:e.showtrendlinesontop,showAxisLine:(0,l.pluckNumber)(e.showyaxisline,e.showaxislines,e.drawAxisLines,0),axisLineThickness:(0,l.pluckNumber)(e.yaxislinethickness,e.axislinethickness,1),axisLineAlpha:(0,l.pluckNumber)(e.yaxislinealpha,e.axislinealpha,100),base:e.base,logBase:e.logbase,axisLineColor:(0,l.pluck)(e.yaxislinecolor,e.axislinecolor,"#000000"),showMinorDivLineValues:(0,l.pluckNumber)(e.showminordivlinevalues,0),numMinorDivLines:e.numminordivlines,labelFont:e.yaxisvaluefont,labelFontSize:this.computeFontSize(e.yaxisvaluefontsize),labelFontSizeWithUnit:e.yaxisvaluefontsize,labelFontColor:e.yaxisvaluefontcolor,labelAlpha:e.yaxisvaluealpha,labelFontBold:e.yaxisvaluefontbold,labelFontItalic:e.yaxisvaluefontitalic,labelBdrColor:e.yaxisvaluebordercolor,labelBdrAlpha:e.yaxisvalueborderalpha,labelBgAlpha:e.yaxisvaluebgalpha,labelLink:e.yaxisvaluelink,labelBgColor:e.yaxisvaluebgcolor,labelBdrThickness:e.yaxisvalueborderthickness,labelBdrPadding:e.yaxisvalueborderpadding,labelBdrRadius:e.yaxisvalueborderradius,labelBdrDashed:e.yaxisvalueborderdashed,labelBdrDashLen:e.yaxisvalueborderdashlen,labelBdrDashGap:e.yaxisvalueborderdashgap}},t}(i["default"]);t["default"]=c},1315:function(e,t,a){"use strict";var o=a(273);t.__esModule=!0,t["default"]=function(e){var t,a,o=e.getChildren("canvas")[0],l=o.getChildren("axisRefVisualCartesian")[0],s={zoomable:!0,pannable:!0},c=e._feedAxesRawData(),d=function(){return l.asyncDraw()};(0,r.componentFactory)(e,i["default"],"yAxis",1,c.yAxisConf),(0,r.componentFactory)(e,n["default"],"xAxis",1,c.xAxisConf),t=e.getChildren("yAxis")[0],a=e.getChildren("xAxis")[0],t.setLinkedItem("canvas",o),a.setLinkedItem("canvas",o),l.setLinkedItem(t.getId(),t),l.setLinkedItem(a.getId(),a),l.addExtEventListener("visiblerangeset",d,a),l.addExtEventListener("visiblerangeset",d,t),o.attachAxis(a,!1,e.zoomX?s:{}),o.attachAxis(t,!0,e.zoomY?s:{}),e._setCategories()};var r=a(278),i=o(a(1316)),n=o(a(589))},1316:function(e,t,a){"use strict";var o=a(273);t.__esModule=!0,t["default"]=void 0;var r=o(a(292)),i=o(a(866)),n=o(a(573)),l=o(a(542)),s=o(a(570)),c=a(278),d=a(576),h=function(e){return null!==e&&e!==c.UNDEF&&""!==e&&!isNaN(e)},u={wrtVisible:!0},p=c.preDefStr.POSITION_START,g=c.preDefStr.POSITION_TOP,f=c.preDefStr.POSITION_BOTTOM,m=c.preDefStr.POSITION_END,v=function(e,t){if(void 0===e&&(e=[]),void 0===t&&(t=[]),0===e.length)return[];var a=e.length-1,o=t.length-1,r=[e[a]];for(a--;a>=0;)t[o]>e[a]?(r.push(t[o]),o--):(r.push(e[a]),a--);return r},b=function(e){function t(){var t;return(t=e.call(this)||this).config.scale=new i["default"],t.config.labelMap=[],t}(0,r["default"])(t,e);var a=t.prototype;return a.__setDefaultConfig=function(){e.prototype.__setDefaultConfig.call(this);var t=this.config;t.base=10,t.showMinorDivLineValues=1,t.numMinorDivLines=c.UNDEF},a.getName=function(){return"log"},a.configureAttributes=function(t){var a,o=this.config,r=this.getFromEnv("number-formatter"),i=this.getFromEnv("color-manager");e.prototype.configureAttributes.call(this,t),a=o.rawAttr,o.minorDivlinecolor=(0,c.convertColor)((0,c.pluck)(a.minorDivlinecolor,i.getColor("divLineColor")),(0,c.pluckNumber)(a.minorDivLineAlpha,i.getColor("divLineAlpha")/2)),o.axisMinValue=r.getCleanValue(a.axisMinValue),o.axisMaxValue=r.getCleanValue(a.axisMaxValue),o.minorTicks=[],o.axisMinValue<=0&&(o.axisMinValue=c.UNDEF),o.axisMaxValue<=0&&(o.axisMaxValue=c.UNDEF),this.getScale().setBase(o.base),o.minorDivLineThickness=(0,c.pluckNumber)(a.minorDivLineThickness,1),o.band.isDraw=0},a.generateTicks=function(){var e=this.getScale().ticks();return this.config._allTicks=e.slice(),e},a.generateMinorTicks=function(){return this.getScale().minorTicks(this.config.numMinorDivLines)},a._setAxisRange=function(e){var t=e.min,a=void 0===t?.1:t,o=e.max,r=void 0===o?1:o,i=this.getScale().setDomain([a,r]).nice(),n=this.config,l=n.axisRange;n.ticks=this.generateTicks(),n.minorTicks=this.generateMinorTicks();var s=i.getDomain();a=s[0],r=s[1],l.max=r,l.min=a,this.setVisibleConfig(a,r)},a.setDataLimit=function(e,t){var a,o,r=e,i=t,n=this.config,s=n.axisMaxValue,c=n.axisMinValue;h(c)&&Number(c)<=i&&(i=c),h(s)&&Number(s)>=r&&(r=s),0===i&&(i=1),0===r&&(r=n.base);var d=this.getTrendLineLimits();a=d[0],o=d[1];var u=(0,l["default"])([a,o,i,r],(function(e){return Number(e)}));i=u[0],r=u[1],this._setAxisRange({min:i,max:r})},a._parseLabel=function(){var e,t,a,o,r,i,n,l,s,d,h,b,x,k,y,C,w=this.config,A=this.getFromEnv("chart").config,S=w.axisRange,N=w.isOpposit,L=w.labels,D=L.style,E=w.isVertical,T=S.max,F=S.min,P=A.canvasBottom,_=A.canvasLeft,V=A.canvasRight,I=A.canvasTop,B=w.labelPadding,M=this.getFromEnv("number-formatter"),O=w.labelMaxH,R=w.labelMaxW,G=w.axisStartPosition,H=this.components,z=w.minorTicks;if(D.lineHeight&&-1!==(i=D.lineHeight).indexOf("px")&&(i=i.replace("px",""),i=parseFloat(i)),w.labels.isDraw)for(C=1!==this.getZoom(),y=H.labels,e=w.labels.step?S.tickInterval*w.labels.step:S.tickInterval,r=w.labels.rotation,o=this.getVisibleConfig(),H.labelIndexArr=[],w.allTicks=s=v(w.ticks,w.minorTicks),k=E?O:R,d=s.length,t=0;t<d;t++)if(h=s[t],b=this.getPixel(h,u),(!(z.indexOf(h)>=0)||w.showMinorDivLineValues)&&!(x&&b>x-k&&b<x+k)&&(!C||!(h<o.minValue||h>o.maxValue))&&(w.labels.drawNormalVal||w.labels.drawLimitVal&&(h===F||h===T))&&(w.labels.drawNormalVal||h===F||h===T)&&(w.labels.drawLimitVal||h!==F&&h!==T)&&(0!==w.showZeroPlaneValue||0!==w.showZeroPlane||0!==h)){if(1===w.showZeroPlane&&1===w.showZeroPlaneValue&&(h<0&&h+e>0||h>0&&h-e<0))if(E){if(b+O>=this.getPixel(0,u)&&this.getPixel(0,u)>=b-O)continue}else if(b+R>=this.getPixel(0,u)&&this.getPixel(0,u)>=b-R)continue;l={fill:D.color,"font-size":D.fontSize,cursor:D.labelLink?"pointer":""},E?(a=""+(w.numberFormatterFn?M[w.numberFormatterFn]:w.isPercent?M.percentValue:M.yAxis).call(M,h),n=w.hasCategory&&w.categories.category[t].labelPadding||0,l["text-anchor"]=N?p:m,l.text=a,l.x=N?(G||V)+B:(G||_)-B,l.y=n?b+n:b,x=l.y):(a=""+(w.numberFormatterFn?M[w.numberFormatterFn]:w.isPercent?M.percentValue:M.xAxis).call(M,h),n=w.hasCategory&&Number(w.categories.category[t].labelPadding)||0,l.text=a,l.x=b,l.y=N?(G||I)-B:(G||P)+B,n&&(l.y+=n),r?(l["text-anchor"]=N?p:m,l["vertical-align"]="middle"):l["vertical-align"]=N?f:g,x=l.x),L.shiftX&&(l.x+=L.shiftX),L.shiftY&&(l.y+=L.shiftY),l.transform=(0,c.getSuggestiveRotation)(r,l.x,l.y),H.labelIndexArr.push(t),y[t]=y[t]||{config:{props:{label:{}}}},l["text-bound"]=void 0===h?[]:[(0,c.pluck)(D.backgroundColor,""),(0,c.pluck)(D.borderColor,""),(0,c.pluck)(D.borderThickness,""),(0,c.pluck)(D.borderPadding,0),(0,c.pluck)(D.borderRadius,0),(0,c.pluck)(D.borderDash,"none")],y[t].config.props.label.attr=l,y[t].config.props.label.css=a.css,y[t].config.value=h}},a._drawLabel=function(){var e,t,a,o,r,i,l,s,c,d=this,h=d.config,u=d.getFromEnv("animationManager"),p=d.getFromEnv("chart"),g=h.labels.style,f=h.axisContainer,m=[],v=d.components,b=v.labelIndexArr,x={fontFamily:g.fontFamily,fontSize:g.fontSize,fontWeight:g.fontWeight,fontStyle:g.fontStyle,lineHeight:g.lineHeight},k=function(e){return function(t){p.plotEventHandler(this,t,e)}};if(h.labels.isDraw){for(c=v.labels,f.css(x),l=b.length,t=0;t<l;t++)a=(s=c[e=b[t]].config.value)+"_label",i=d.getGraphicalElement(a),m.push(a),(i=this.addGraphicalElement(a,u.setAnimation({container:f,el:i||"text",attr:c[e].config.props.label.attr,data:{value:s},component:this,label:"text",css:c[e].config.props.label.css}))).on("fc-click",k("dataLabelClick")).hover(k("dataLabelRollOver"),k("dataLabelRollOut")),i.data("eventArgs",{link:g.labelLink,text:c[e].config.props.label.attr.text,index:e});o=(0,n["default"])(h.labelMap,m)}else o=h.labelMap;h.labelMap=m,function(t){for(e=0;e<t.length;++e)(r=d.getGraphicalElement(t[e]))&&d.removeGraphicalElement(r)}(o)},a._getVMaxLabelDimention=function(){var e,t,a,o,r,i,n,l,s=this.config,c=this.getFromEnv("chart"),d=this.getFromEnv("smartLabel"),h=this.getFromEnv("number-formatter"),u=s.labels.style,p=0;for(d.useEllipsesOnOverflow(c.config.useEllipsesWhenOverflow),d.setStyle({fontSize:u.fontSize,fontFamily:u.fontFamily,lineHeight:u.lineHeight,fontWeight:u.fontWeight}),n=s.isPercent?h.percentValue:h.xAxis,s.allTicks=e=v(s.ticks,s.minorTicks),t=e.length,o=0;o<t;o++)l=e[o],r=""+n.call(h,l),i=d.getOriSize(r),this.components.labels[o]={config:{width:i.width,height:i.height,props:{label:{}}}},r.length>p&&(a=i,p=r.length);return a},a._getHMaxLabelDimention=function(){return this._getVMaxLabelDimention()},a.getCleanValue=function(e){var t=e,a=null;return(t=Math.abs(t))>0&&(a=this.getFromEnv("number-formatter").getCleanValue(t)),a},t}(s["default"]);b.prototype.getTrendLineLimits=d.getTrendLineLimits;var x=b;t["default"]=x},1317:function(e,t,a){"use strict";var o=a(273);t.__esModule=!0,t["default"]=void 0;var r=o(a(1318))["default"];t["default"]=r},1318:function(e,t,a){"use strict";var o=a(273);t.__esModule=!0,t["default"]=void 0;var r=o(a(292)),i=o(a(1314)),n=o(a(616)),l=a(740),s=function(e){function t(){var t;return(t=e.call(this)||this).defaultPlotShadow=1,t}(0,r["default"])(t,e),t.getName=function(){return"LogMSLine"};var a=t.prototype;return a.getName=function(){return"LogMSLine"},a.__setDefaultConfig=function(){e.prototype.__setDefaultConfig.call(this);var t=this.config;t.defaultDatasetType="line",t.zeroplanethickness=1,t.enablemousetracking=!0,t.zeroplanealpha=40,t.showzeroplaneontop=0,t.enablemousetracking=!0,t.defaultcrosslinethickness=1,l._setDefaultConfig.call(this)},a.getDSGroupdef=function(){},a.getDSdef=function(){return n["default"]},t}(i["default"]);t["default"]=s},1319:function(e,t,a){"use strict";var o=a(273);t.__esModule=!0,t["default"]=void 0;var r=o(a(1320))["default"];t["default"]=r},1320:function(e,t,a){"use strict";var o=a(273);t.__esModule=!0,t["default"]=void 0;var r=o(a(292)),i=o(a(1313)),n=o(a(698)),l=function(e){function t(){return e.apply(this,arguments)||this}(0,r["default"])(t,e),t.getName=function(){return"LogStackedColumn2d"};var a=t.prototype;return a.getName=function(){return"LogStackedColumn2d"},a.__setDefaultConfig=function(){e.prototype.__setDefaultConfig.call(this),this.config.isstacked=!0},a.getDSGroupdef=function(){return n["default"]},t}(i["default"]);t["default"]=l},1321:function(e,t,a){"use strict";var o=a(273);t.__esModule=!0,t["default"]=void 0;var r=o(a(1322))["default"];t["default"]=r},1322:function(e,t,a){"use strict";var o=a(273);t.__esModule=!0,t["default"]=void 0;var r=o(a(292)),i=o(a(626)),n=o(a(689)),l=o(a(1323)),s=function(e){function t(){var t;return(t=e.call(this)||this).showValues=0,t.isErrorChart=!0,t.eiMethods={},t}(0,r["default"])(t,e),t.getName=function(){return"ErrorBar2D"};var a=t.prototype;return a.getName=function(){return"ErrorBar2D"},a.__setDefaultConfig=function(){e.prototype.__setDefaultConfig.call(this);var t=this.config;t.hasLegend=!0,t.defaultDatasetType="errorbar2d",t.enablemousetracking=!0},a.getDSGroupdef=function(){return n["default"]},a.getDSdef=function(){return l["default"]},t}(i["default"]);t["default"]=s},1323:function(e,t,a){"use strict";var o=a(273);t.__esModule=!0,t["default"]=t._checkPointerOverPlot=t._checkPointerOverErrorBar=t._firePlotEvent=t._rolloutResponseSetter=t._rolloverResponseSetter=t.removePlots=t._getHoveredPlot=void 0;var r,i,n,l,s,c=o(a(292)),d=a(278),h=o(a(599)),u=a(286),p=o(a(1324)),g=d.preDefStr.colors.AAAAAA,f=d.preDefStr.ROUND,m=d.preDefStr.PERCENTAGESTRING,v=d.preDefStr.pStr,b=d.preDefStr.sStr,x=function(e,t,a,o){var r=t.graphics,i=r&&r.element,n=e.getFromEnv("animationManager");!t.errorBarHovered&&i&&0!==i.getData().showHoverEffect&&(n.setAnimationState("mouseOver"),n.setAnimation({el:i,label:"rect",component:o,attr:i.getData().setRolloverAttr,doNotRemove:!0})),i&&e.plotEventHandler(i,a,"DataPlotRollOver")},k=function(e,t,a,o){var r=t.graphics,i=r&&r.element,n=e.getFromEnv("animationManager");!t.errorBarHovered&&i&&0!==i.getData().showHoverEffect&&(n.setAnimationState("mouseOut"),n.setAnimation({el:i,label:"rect",component:o,attr:i.getData().setRolloutAttr,doNotRemove:!0})),i&&e.plotEventHandler(i,a,"DataPlotRollOut")};t._rolloutResponseSetter=k,t._rolloverResponseSetter=x,t._checkPointerOverErrorBar=s,t._checkPointerOverPlot=l,t._firePlotEvent=n,t._getHoveredPlot=i,t.removePlots=r,(0,u.addDep)({name:"errorbar2DColumnAnimation",type:"animationRule",extension:p["default"].column}),(0,u.addDep)({name:"errorbar2DErrorAnimation",type:"animationRule",extension:p["default"].error});var y=function(e){function t(){var t;return(t=e.call(this)||this).drawCallBackFn=function(e){return function(){"disappearing"===e?this.hide():this.show()}},t}(0,c["default"])(t,e);var a=t.prototype;return a.getType=function(){return"dataset"},a.getName=function(){return"errorBar2D"},a.ErrorValueConfigure=function(){var e,t,a,o,r,i,n,l,s,c,h,u,p,f,x,k,y,C,w,A,S,N,L,D,E,T,F,P,_,V,I=this.config,B=I.JSONData,M=B.data,O=this.getFromEnv("chart-attrib"),R=this.components.data,G=(0,d.pluckNumber)(O.seriesnameintooltip,1),H=(0,d.parseUnsafeString)((0,d.pluck)(O.tooltipsepchar,", ")),z=this.getFromEnv("number-formatter"),W=-Infinity,U=Infinity,j=this.getFromEnv("xAxis").getTicksLen(),J=Math.min(j,M&&M.length),K=function(t){var o;return I.showTooltip?null===f?o=!1:void 0!==t?(n=[1,2,3,4,5,6,7,99,100,101,102,120,121,131,132],l={yaxisName:(0,d.parseUnsafeString)(O.yaxisname),xaxisName:(0,d.parseUnsafeString)(O.xaxisname),formattedValue:a.toolTipValue,errorValue:h,errorDataValue:a.errorToolTipValue,errorPercentValue:a.errorPercentValue,errorPercentDataValue:a.errorPercentValue,positiveErrorValue:u,negativeErrorValue:p,positiveErrorDataValue:a.positiveErrorToolTipValue,negativeErrorDataValue:a.negativeErrorToolTipValue,label:a.label},o=(0,d.parseTooltext)(t,n,l,e,O,B)):(G&&(r=(0,d.getFirstValue)(B&&B.seriesname)),o=r?r+H:"",o+=a.label?a.label+H:""):o=!1,o};for(I.showTooltip=(0,d.pluckNumber)(O.showtooltip,1),I.errorInPercent=i=(0,d.pluckNumber)(B.errorinpercent,O.errorinpercent),I.showValues=(0,d.pluckNumber)(B.showvalues,O.showvalues,0),I.errorBarShadow=k=(0,d.pluckNumber)(O.errorbarshadow,O.showshadow,1),I.ignoreEmptyDatasets=(0,d.pluckNumber)(B.ignoreemptydatasets,0),N=(0,d.pluckNumber)(O.halferrorbar,1),I.notHalfErrorBar=!(0,d.pluckNumber)(O.halferrorbar,1),c=(0,d.getFirstAlpha)((0,d.pluck)(B.errorbaralpha,O.errorbaralpha,I.plotfillalpha)),I.errorBarWidthPercent=(0,d.pluckNumber)(B.errorbarwidthpercent,O.errorbarwidthpercent,70),I.errorBarColor=(0,d.convertColor)((0,d.getFirstColor)((0,d.pluck)(B.errorbarcolor,O.errorbarcolor,g)),c),I.errorBarThickness=(0,d.pluckNumber)(B.errorbarthickness,O.errorbarthickness,1),I.shadowOpacity=k?c/250:0,I.parentYAxis=y=(0,d.pluck)(B.parentyaxis&&B.parentyaxis.toLowerCase(),v)===b?1:0,I.cumulativeValueOnErrorBar=(0,d.pluckNumber)(B.cumulativevalueonerrorbar,O.cumulativevalueonerrorbar,1),V=0;V<J;V++)(t=R[V])&&(e=M&&M[V],a=t&&t.config,P=void 0,_=void 0,void 0!==(0,d.pluckNumber)(e.value)&&(t||(t=R[V]={graphics:{}}),t.config||(a=R[V].config={}),C=a.setValue,a.setErrorValue=h=z.getCleanValue(e.errorvalue),a.errorInPercent=(0,d.pluckNumber)(e.errorinpercent,i,0),u=z.getCleanValue((0,d.pluckNumber)(e.positiveerrorvalue,h)),p=z.getCleanValue((0,d.pluckNumber)(e.negativeerrorvalue,h)),a.errorInPercent&&(a.setErrorValue=h=(0,d.pluckNumber)((h/100*C).toFixed(2))),a.cumulativeValueOnErrorBar=(0,d.pluckNumber)(e.cumulativevalueonerrorbar,I.cumulativeValueOnErrorBar,1),a.positiveErrorValue=z.getCleanValue((0,d.pluckNumber)(e.positiveerrorvalue,e.errorvalue)),a.errorInPercent&&a.positiveErrorValue&&(a.positiveErrorValue=(0,d.pluckNumber)((a.positiveErrorValue/100*C).toFixed(2))),a.positiveCumulativeErrorValue=C+(0,d.pluckNumber)(a.positiveErrorValue,a.setErrorValue),a.negativeErrorValue=z.getCleanValue((0,d.pluckNumber)(e.negativeerrorvalue,e.errorvalue)),a.errorInPercent&&a.negativeErrorValue&&(a.negativeErrorValue=(0,d.pluckNumber)((a.negativeErrorValue/100*C).toFixed(2))),a.negativeCumulativeErrorValue=C-(0,d.pluckNumber)(a.negativeErrorValue,a.setErrorValue),a.errorToolTipValue=z.dataLabels(h,y),a.negativeErrorToolTipValue=z.dataLabels(a.negativeErrorValue,y),a.negativeCumulativeErrorTooltipValue=z.dataLabels(a.negativeCumulativeErrorValue,y),a.positiveErrorToolTipValue=z.dataLabels(a.positiveErrorValue,y),a.positiveCumulativeErrorTooltipValue=z.dataLabels(a.positiveCumulativeErrorValue,y),a.errorPercentValue=Math.round(h/C*d.HUNDREDSTRING*d.HUNDREDSTRING)/d.HUNDREDSTRING+m,E=a.cumulativeValueOnErrorBar,a.notHalfErrorBar=I.notHalfErrorBar,a.halfErrorBar=N,a.showValue=(0,d.pluckNumber)(e.showvalue,I.showValues),a.hasErrorValue=void 0!==(0,d.pluckNumber)(e.errorvalue)?1:0,w=a.errorValue=h,s=a.errorToolTipValue,f=s,o=K(x=(0,d.getValidValue)((0,d.parseUnsafeString)((0,d.pluck)(e.errorplottooltext,B.errorplottooltext,O.errorplottooltext,f),!1))),P=_=void 0,(x=(0,d.getValidValue)((0,d.parseUnsafeString)((0,d.pluck)(e.errorplottooltext,B.errorplottooltext,O.errorplottooltext,a.positiveErrorToolTipValue),!1)))&&a.positiveErrorToolTipValue&&(P=K(x)),(x=(0,d.getValidValue)((0,d.parseUnsafeString)((0,d.pluck)(e.errorplottooltext,B.errorplottooltext,O.errorplottooltext,a.negativeErrorToolTipValue),!1)))&&a.negativeErrorToolTipValue&&(_=K(x)),E&&((x=(0,d.getValidValue)((0,d.parseUnsafeString)((0,d.pluck)(e.errorplottooltext,B.errorplottooltext,O.errorplottooltext,a.positiveCumulativeErrorTooltipValue),!1)))&&a.positiveCumulativeErrorTooltipValue&&(T=K(x)),(x=(0,d.getValidValue)((0,d.parseUnsafeString)((0,d.pluck)(e.errorplottooltext,B.errorplottooltext,O.errorplottooltext,a.negativeCumulativeErrorTooltipValue),!1)))&&a.negativeCumulativeErrorTooltipValue&&(F=K(x))),L=a.positiveErrorValue,D=a.negativeErrorValue,(e.positiveerrorvalue||e.negativeerrorvalue)&&(a.halfErrorBar=0,a.notHalfErrorBar=!0),A=C+(null!==L?L:h),S=C-(a.halfErrorBar||D<0&&C<0?0:null!==D?D:h),W=Math.max(W,A,S),U=Math.min(U,A,S),a.errorValueArr=[],null===a.positiveErrorValue&&(a.positiveErrorValue=void 0),w=-a.positiveErrorValue,a.errorValueArr.push({errorValue:w,tooltext:E?T:P||o,errorEdgeBar:!0}),a.errorValueArr.push({errorValue:w,tooltext:P||o}),a.notHalfErrorBar&&(w=a.negativeErrorValue,a.errorValueArr.push({errorValue:w,tooltext:E?F:_||o,errorEdgeBar:!0}),a.errorValueArr.push({errorValue:w,tooltext:_||o})),a.toolText=K(a.setTooltext)));I.maxValue=W,I.minValue=U},a.drawErrorValue=function(){var e,t,a,o,r,i,n,l,s,c,h,u,p,g,m,v,b,x,k,y,C,w,A,S,N,L,D,E,T,F,P,_,V=this.config,I=this.getState("visible"),B=this.getFromEnv("yAxis"),M=V.errorBarThickness,O=V.errorBarColor,R=V.scrollMaxVal,G=this.getFromEnv("animationManager");for(t=V.scrollMinVal;t<R;t++)if((n=this.components.data[t])&&(F=n.trackerConfig,(_=n.errorTrackerConfig={}).errorTrackerArr=[],l=(s=n&&n.config)&&s.setValue,void 0!==n))if(n&&(null==l||""===s.errorValue||void 0===s.errorValue||null===s.errorValue&&null===s.positiveErrorValue&&null===s.negativeErrorValue))for(y=n.graphics.error&&n.graphics.error.length,a=0;a<y;a++)n.graphics.error&&n.graphics.error[a]&&(G.setAnimation({el:n.graphics.error[a],label:"path",callback:this.drawCallBackFn("disappearing")}),n.graphics.error[a].shadow({opacity:0}));else{for(n.errorBar&&delete n.errorBar,v=s.errorValueArr,_.errorLen=y=v.length,!n.graphics.error&&(n.graphics.error=[]),w=this.getJSONIndex()+"_"+t,o=s.setLink,S=l<0,N=n._xPos,L=n._yPos,D=n._width,E=n._height,i=S?L+E:L,r=N+D/2,n.errorBar||(n.errorBar=[]);y--;)A=null,_.errorTrackerArr[y]={},b=v[y],_.errorTrackerArr[y].tooltext=b.tooltext,T=b.errorStartValue,k=isNaN(T)?i:B.getPixel(T),null===(x=b.errorValue)||isNaN(x)?n.graphics.error&&n.graphics.error[y]&&G.setAnimation({el:n.graphics.error[y],label:"path",doNotRemove:!0,callback:this.drawCallBackFn("disappearing")}).shadow({opacity:0}):(C=D*(V.errorBarWidthPercent/100)/2,m=I?-1:0,g=B.getPixel(B.getValue(isNaN(T)?L:k)+x*m,{wrtVisible:!0}),S&&(g+=E),g,r,P=(M=(0,d.pluckNumber)(b.errorBarThickness,M))>5?M/2:2.5,h=Math.round(g)+M%2/2,u=Math.round(r)+M%2/2,n.errorBar[y]||(n.errorBar[y]=[]),b.errorEdgeBar?(p=["M",u-C,h,"H",u+C],n.errorBar[y][1]={_xPos:u-C-P,_yPos:h-P,_height:2*P,_width:2*(C+P),_toolText:b.tooltext}):(p=["M",u,k,"V",h],n.errorBar[y][0]={_xPos:u-P,_yPos:h<k?h:k,_height:Math.abs(k-h),_width:2*P,_toolText:b.tooltext}),e={path:p,stroke:O=(0,d.pluck)(b.errorBarColor,O),"stroke-width":M,cursor:o?"pointer":"","stroke-linecap":f},c=!n.graphics.error[y]&&I?"appearing":I?"updating":"disappearing",A=n.graphics.error[y]=G.setAnimation({el:n.graphics.error[y]||"path",container:this.getContainer("errorPlotGroup"),component:this,attr:e,label:"path",state:c,callback:this.drawCallBackFn(c)}).shadow({opacity:V.shadowOpacity},this.getContainer("errorShadowGroup")),this.getFromEnv("chartConfig").enablemousetracking&&A.data("groupId",w).data("eventArgs",F.eventArgs));if(!s.notHalfErrorBar)for(a=2;a<4;a++)n.graphics.error&&n.graphics.error[a]&&G.setAnimation({el:n.graphics.error[a],label:"path",doNotRemove:!0,callback:this.drawCallBackFn("disappearing")}).shadow({opacity:0})}},a._firePlotEvent=function(e,t,a){var o=this.getFromEnv("chart"),r=this.components.data[t],i=r.graphics.element,n=r.graphics.label,l=r.errorBarHovered,s=r.config.setLink;if(i)switch(e){case"fc-mouseover":this._decideTooltipType(t,a),x(o,r,a,this),s&&(i.css({cursor:"pointer"}),n&&n.css({cursor:"pointer"}));break;case"fc-mouseout":this.getFromEnv("toolTipController").hide(this.config.currentToolTip),k(o,r,a,this),s&&(i.css({cursor:"default"}),n&&n.css({cursor:"default"}));break;case"fc-click":o.plotEventHandler(i,a);break;case"fc-mousemove":this._decideTooltipType(t,a),l&&!r._isRollover?(0!==i.showHoverEffect&&i.attr(i.getData().setRolloutAttr),r._isRollover=!0,r._isRollout=!1):l||r._isRollout||(0!==i.showHoverEffect&&i.attr(i.getData().setRolloverAttr),r._isRollover=!1,r._isRollout=!0)}},a._checkPointerOverErrorBar=function(e,t,a){var o,r,i,n,l,s,c,d,h,u,p=this.components.data,g=p[e];if(g&&(r=g.errorBar))for(n=r&&r.length;n--;)for(l=(i=r[n])&&i.length;l--;)if(i[l]&&i[l]._xPos&&(c=i[l]._xPos,d=i[l]._yPos,h=i[l]._height,u=i[l]._width,s=i[l]._toolText,o=t>=c&&t<=c+u&&a>=d&&a<=d+h))return{pointIndex:e,hovered:o,pointObj:p[e],toolText:s}},a._checkPointerOverPlot=function(e,t,a){var o,r,i=this.components.data[e],n=i&&i.config;if(i)return o=this.config.JSONData.plottooltext||this.getFromEnv("chart-attrib").plottooltext?"":n.toolTipValue,(r=this._checkPointerOverErrorBar(e,t,a))?(i.errorBarHovered=!0,n.finalTooltext=r.toolText):(r=this._checkPointerOverColumn(e,t,a),i.errorBarHovered=!1,r&&(n.finalTooltext=!1!==n.toolText&&n.toolText+o)),r},a._getHoveredPlot=function(e,t){var a,o;return a=this.getFromEnv("xAxis").getValue(e),(o=Math.round(a))-a>0?this._checkPointerOverPlot(o,e,t)||this._checkPointerOverPlot(o-1,e,t):this._checkPointerOverPlot(o+1,e,t)||this._checkPointerOverPlot(o,e,t)},a.removePlots=function(){var e,t,a,o,r=this.components,i=r.removeDataArr,n=r.pool||(r.pool={element:[],hotElement:[],label:[]}),l=i.length;for(a=0;a<l;a++)if(e=i[0],i.splice(0,1),e&&e.graphics){for((t=e.graphics).element&&t.element.hide()&&t.element.shadow({opacity:0}),o=0;o<4;o++)t.error&&t.error[o]&&this.getFromEnv("animationManager").setAnimation({el:t.error[o],label:"path"});e.graphics.element&&(n.element=n.element.concat(e.graphics.element)),e.graphics.hotElement&&(n.hotElement=n.hotElement.concat(e.graphics.hotElement)),e.graphics.label&&(n.label=n.label.concat(e.graphics.label))}r.pool=n},t}(h["default"]);t.removePlots=r=y.prototype.removePlots,t._getHoveredPlot=i=y.prototype._getHoveredPlot,t._firePlotEvent=n=y.prototype._firePlotEvent,t._checkPointerOverPlot=l=y.prototype._checkPointerOverPlot,t._checkPointerOverErrorBar=s=y.prototype._checkPointerOverErrorBar;var C=y;t["default"]=C},1324:function(e,t,a){"use strict";var o=a(273);t.__esModule=!0,t["default"]=void 0;var r={column:{"initial.dataset.errorBar2D":o(a(600))["default"]["initial.dataset.column"]},error:{"initial.dataset.errorBar2D":function(){return{"path.appearing":[{initialAttr:{opacity:0},finalAttr:{opacity:1},slot:"final"}]}}}};t["default"]=r},1325:function(e,t,a){"use strict";var o=a(273);t.__esModule=!0,t["default"]=void 0;var r=o(a(1326))["default"];t["default"]=r},1326:function(e,t,a){"use strict";var o=a(273);t.__esModule=!0,t["default"]=void 0;var r=o(a(292)),i=o(a(626)),n=a(740),l=o(a(1327)),s=function(e){function t(){var t;return(t=e.call(this)||this).useErrorGroup=!0,t.isErrorChart=!0,t.hasAnchor=!0,t.defaultPlotShadow=1,t.axisPaddingLeft=0,t.axisPaddingRight=0,t.canvasPaddingModifiers=["anchor","errorbar"],t}(0,r["default"])(t,e),t.getName=function(){return"ErrorLine"};var a=t.prototype;return a.getName=function(){return"ErrorLine"},a.__setDefaultConfig=function(){e.prototype.__setDefaultConfig.call(this);var t=this.config;t.defaultDatasetType="errorline",n._setDefaultConfig.call(this),this.zeroplanethickness=1,this.zeroplanealpha=40,t.showzeroplaneontop=0,t.defaultcrosslinethickness=1,t.enablemousetracking=!0},a.getDSGroupdef=function(){},a.getDSdef=function(){return l["default"]},t}(i["default"]);t["default"]=s},1327:function(e,t,a){"use strict";var o=a(273);t.__esModule=!0,t["default"]=void 0;var r=o(a(292)),i=a(278),n=a(1323),l=o(a(616)),s=a(286),c=o(a(1328)),d=o(a(1329)),h=i.preDefStr.colors.AAAAAA,u=i.preDefStr.ROUND,p=i.preDefStr.PERCENTAGESTRING,g="rgba(192,192,192,"+(i.isIE?.002:1e-6)+")",f=Math,m=f.round,v=f.min,b=f.max,x=f.abs,k=i.hasTouch?i.TOUCH_THRESHOLD_PIXELS:i.CLICK_THRESHOLD_PIXELS;(0,s.addDep)({name:"errorlineErrorAnimation",type:"animationRule",extension:c["default"]}),(0,s.addDep)({name:"errorlineLineAnimation",type:"animationRule",extension:d["default"]});var y=function(e){function t(){var t;return(t=e.call(this)||this).drawCallbackFn=function(e){return function(){"disappearing"===e&&this.hide()}},t}(0,r["default"])(t,e);var a=t.prototype;return a.getType=function(){return"dataset"},a.getName=function(){return"errorLine"},a.ErrorValueConfigure=function(){var e,t,a,o,r,n,l,s,c,d,u,g,f,x,k,y,C,w,A,S,N,L,D,E,T,F,P,_=this.getFromEnv("chart"),V=this.config,I=V.parentYAxis,B=V.JSONData,M=B.data,O=_.getFromEnv("dataSource").chart,R=this.getFromEnv("xAxis").getTicksLen(),G=this.components.data,H=this.getFromEnv("number-formatter"),z=V.linethickness,W=-Infinity,U=Infinity,j=(0,i.pluck)(O.tooltipsepchar,", "),J=(0,i.pluckNumber)(O.seriesnameintooltip,1),K=function(t){var o;return _.config.showtooltip?null===s?o=!1:void 0!==t?(L=[1,2,3,4,5,6,7,99,100,101,102,120,121,131,132],D={yaxisName:(0,i.parseUnsafeString)(O.yaxisname),xaxisName:(0,i.parseUnsafeString)(O.xaxisname),formattedValue:a.toolTipValue,errorValue:l,errorDataValue:a.errorToolTipValue,errorPercentValue:a.errorPercentValue,errorPercentDataValue:a.errorPercentValue,positiveErrorValue:u,negativeErrorValue:d,positiveErrorDataValue:a.positiveErrorToolTipValue,negativeErrorDataValue:a.negativeErrorToolTipValue,label:a.label},o=(0,i.parseTooltext)(t,L,D,e,O,B)):(J&&(E=(0,i.getFirstValue)(B&&B.seriesname)),o=E?E+j:"",o+=a.label?a.label+j:""):o=!1,o};for(V.errorBarShadow=y=(0,i.pluckNumber)(O.errorbarshadow,O.showshadow,1),V.ignoreEmptyDatasets=(0,i.pluckNumber)(B.ignoreemptydatasets,0),V.notHalfErrorBar=!(0,i.pluckNumber)(O.halferrorbar,1),r=(0,i.getFirstAlpha)((0,i.pluck)(B.errorbaralpha,O.errorbaralpha,V.alpha)),V.errorBarWidth=(0,i.pluckNumber)(B.errorbarwidth,O.errorbarwidth,5),V.errorBarColor=(0,i.convertColor)((0,i.getFirstColor)((0,i.pluck)(B.errorbarcolor,O.errorbarcolor,h)),r),n=(0,i.pluckNumber)(B.errorbarthickness,O.errorbarthickness,1),V.errorBarThickness=n>z?z:n,V.shadowOpacity=y?r/250:0,V.errorInPercent=T=(0,i.pluckNumber)(B.errorinpercent,O.errorinpercent),V.cumulativeValueOnErrorBar=(0,i.pluckNumber)(B.cumulativevalueonerrorbar,O.cumulativevalueonerrorbar,1),P=0;P<R;P++)e=M&&M[P],M&&e&&(t=G[P],a=t&&t.config,t||(t=G[P]={graphics:{}}),t.config||(a=G[P].config={}),A=a.setValue,a.notHalfErrorBar=V.notHalfErrorBar,l=H.getCleanValue(e.errorvalue),a.errorToolTipValue=H.dataLabels(l,I),u=H.getCleanValue((0,i.pluckNumber)(e.positiveerrorvalue,l)),d=H.getCleanValue((0,i.pluckNumber)(e.negativeerrorvalue,l)),a.setErrorValue=a.errorValue=S=l,a.hasErrorValue=void 0!==(0,i.pluckNumber)(e.errorvalue)?1:0,o=a.errorToolTipValue,s=o,F=K(c=(0,i.getValidValue)((0,i.parseUnsafeString)((0,i.pluck)(e.errorplottooltext,B.errorplottooltext,O.errorplottooltext,s),!1))),a.errorInPercent=(0,i.pluckNumber)(e.errorinpercent,T,0),a.errorInPercent&&(a.setErrorValue=l=(0,i.pluckNumber)((l/100*A).toFixed(2))),a.cumulativeValueOnErrorBar=N=(0,i.pluckNumber)(e.cumulativevalueonerrorbar,V.cumulativeValueOnErrorBar,1),a.positiveErrorValue=H.getCleanValue((0,i.pluckNumber)(e.positiveerrorvalue,e.errorvalue)),a.errorInPercent&&a.positiveErrorValue&&(a.positiveErrorValue=(0,i.pluckNumber)((a.positiveErrorValue/100*A).toFixed(2))),a.positiveCumulativeErrorValue=A+(0,i.pluckNumber)(a.positiveErrorValue,a.setErrorValue),a.negativeErrorValue=H.getCleanValue((0,i.pluckNumber)(e.negativeerrorvalue,e.errorvalue)),a.errorInPercent&&a.negativeErrorValue&&(a.negativeErrorValue=(0,i.pluckNumber)((a.negativeErrorValue/100*A).toFixed(2))),a.negativeCumulativeErrorValue=A-(0,i.pluckNumber)(a.negativeErrorValue,a.setErrorValue),a.errorToolTipValue=H.dataLabels(l,I),a.negativeErrorToolTipValue=H.dataLabels(a.negativeErrorValue,I),a.negativeCumulativeErrorTooltipValue=H.dataLabels(a.negativeCumulativeErrorValue,I),a.positiveErrorToolTipValue=H.dataLabels(a.positiveErrorValue,I),a.positiveCumulativeErrorTooltipValue=H.dataLabels(a.positiveCumulativeErrorValue,I),a.errorPercentValue=m(l/A*i.HUNDREDSTRING*i.HUNDREDSTRING)/i.HUNDREDSTRING+p,x=k=void 0,(c=(0,i.getValidValue)((0,i.parseUnsafeString)((0,i.pluck)(e.errorplottooltext,B.errorplottooltext,O.errorplottooltext,a.positiveErrorToolTipValue),!1)))&&a.positiveErrorToolTipValue&&(x=K(c)),(c=(0,i.getValidValue)((0,i.parseUnsafeString)((0,i.pluck)(e.errorplottooltext,B.errorplottooltext,O.errorplottooltext,a.negativeErrorToolTipValue),!1)))&&a.negativeErrorToolTipValue&&(k=K(c)),(e.positiveerrorvalue||e.negativeerrorvalue)&&(a.halfErrorBar=0,a.notHalfErrorBar=!0),N&&((c=(0,i.getValidValue)((0,i.parseUnsafeString)((0,i.pluck)(e.errorplottooltext,B.errorplottooltext,O.errorplottooltext,a.positiveCumulativeErrorTooltipValue),!1)))&&a.positiveCumulativeErrorTooltipValue&&(g=K(c)),(c=(0,i.getValidValue)((0,i.parseUnsafeString)((0,i.pluck)(e.errorplottooltext,B.errorplottooltext,O.errorplottooltext,a.negativeCumulativeErrorTooltipValue),!1)))&&a.negativeCumulativeErrorTooltipValue&&(f=K(c))),C=A+(null!==a.positiveErrorValue?a.positiveErrorValue:l),w=A-(a.halfErrorBar||a.negativeErrorValue<0&&A<0?0:null!==a.negativeErrorValue?a.negativeErrorValue:l),W=b(W,C,w),U=v(U,C,w),null===l&&(l=void 0),a.errorValueArr=[],null===a.positiveErrorValue&&(a.positiveErrorValue=void 0),S=-a.positiveErrorValue,a.errorValueArr.push({errorValue:S,tooltext:N?g:x||F,errorEdgeBar:!0}),a.errorValueArr.push({errorValue:S,tooltext:x||F}),a.notHalfErrorBar&&(S=a.negativeErrorValue,a.errorValueArr.push({errorValue:S,tooltext:N?f:k||F,errorEdgeBar:!0}),a.errorValueArr.push({errorValue:S,tooltext:k||F})),a.toolText=K(a.setTooltext));V.maxValue=W,V.minValue=U},a._show=function(){var e=this.chart,t=this.graphics&&this.graphics.container,a=this.graphics&&this.graphics.dataLabelContainer,o=this.graphics&&this.graphics.errorGroupContainer,r=this.graphics&&this.graphics.errorShadowContainer;e._chartAnimation(),t.lineGroup.show(),t.anchorGroup.show(),t.anchorShadowGroup.show(),t.lineShadowGroup.show(),a.show(),this.setState("visible",!0),o&&o.show(),r&&r.show(),this._conatinerHidden=!1,e._setAxisLimits(),this.yAxis.draw(),e._drawDataset()},a._hide=function(){var e=this.chart;e._chartAnimation(),this.setState("visible",!1),e._setAxisLimits(),this.yAxis.draw(),e._drawDataset()},a.draw=function(){e.prototype.draw.call(this),this.drawErrorValue()},a.drawErrorValue=function(){var e,t,a,o,r,i,n,l,s,c,d,h,p,f,v,b,y,C,w,A,S,N,L,D,E,T,F=this.config,P=this.getFromEnv("xAxis").getTicksLen(),_=this.getState("visible"),V=this.getFromEnv("yAxis"),I=this.components.data,B=F.errorBarThickness,M=B>5?B/2:2.5,O=this.getFromEnv("animationManager");for(t=0;t<P;t++)if(c=(d=(s=I[t])&&s.config)&&d.setValue,void 0!==s&&null!=c)if((T=s.errorTrackerConfig={}).errorTrackerArr=[],y=d.errorValueArr,T.errorLen=S=y.length,!s.graphics.error&&(s.graphics.error=[]),!s.graphics.errorTracker&&(s.graphics.errorTracker=[]),""===d.errorValue||void 0===d.errorValue||null===d.errorValue&&null===d.positiveErrorValue&&null===d.negativeErrorValue)for(o=0;o<S;o++)s.graphics.error&&s.graphics.error[o]&&O.setAnimation({el:s.graphics.error[o]||"path",label:"path",component:this,callback:this.drawCallbackFn("disappearing")}).shadow({opacity:0});else{for(i=d.setLink,D=s._xPos,l=E=s._yPos,n=D,s.errorBar&&delete s.errorBar,s.errorBar=[];S--;)L=null,T.errorTrackerArr[S]={},C=y[S],T.errorTrackerArr[S].tooltext=C.tooltext,A=l,null===(w=C.errorValue)||isNaN(w)?s.graphics.error&&s.graphics.error[S]&&(s.graphics.error[S].hide(),s.graphics.error[S].shadow({opacity:0})):(N=F.errorBarWidth/2,b=_?1:0,v=E+(V.getPixel(0)-V.getPixel(1))*w*b,n,h=m(v)+B%2/2,p=m(n)+B%2/2,s.errorBar[S]||(s.errorBar[S]=[]),C.errorEdgeBar?(f=["M",p-N,h,"H",p+N],s.errorBar[S][1]={_xPos:p-N-M,_yPos:h-M,_height:2*M,_width:2*(N+M),_toolText:C.tooltext}):(f=["M",p,A,"V",h],s.errorBar[S][0]={_xPos:p-M,_yPos:h<A?h:A,_height:x(A-h),_width:2*M,_toolText:C.tooltext}),e={path:f,stroke:F.errorBarColor,"stroke-width":B,cursor:i?"pointer":"","stroke-linecap":u},r=!s.graphics.error[S]&&_?"appearing":_?"updating":"disappearing",L=s.graphics.error[S]=O.setAnimation({el:s.graphics.error[S]||"path",state:r,attr:e,label:"path",component:this,container:this.getContainer("errorPlotGroup"),callback:this.drawCallbackFn(r)}),"disappearing"!==r&&L.show(),L&&L.shadow({opacity:F.shadowOpacity},this.getContainer("errorShadowGroup")),T.errorTrackerArr[S].attr={path:f,stroke:g,"stroke-width":B<k?k:B,cursor:i?"pointer":""});if(!d.notHalfErrorBar)for(o=2;o<4;o++)s.graphics.error&&s.graphics.error[o]&&O.setAnimation({el:s.graphics.error[o]||"path",label:"path",component:this,doNotRemove:!0,callback:this.drawCallbackFn("disappearing")}).shadow({opacity:0})}else if(s&&s.graphics.error)for(a=0;a<s.graphics.error.length;a++)s.graphics.error&&s.graphics.error[a]&&O.setAnimation({el:s.graphics.error[a]||"path",label:"path",component:this,doNotRemove:!0,callback:this.drawCallbackFn("disappearing")}).shadow({opacity:0})},a._firePlotEvent=function(e,t,a){n._firePlotEvent.call(this,e,t,a)},a._checkPointerOverErrorBar=function(e,t,a){return n._checkPointerOverErrorBar.call(this,e,t,a)},a._checkPointerOverPlot=function(e,t,a){var o,r=this.components.data[e],i=r&&r.config;if(r)return(o=this.isWithinShape(r,e,t,a))?(r.errorBarHovered=!1,i.finalTooltext=!1!==i.toolText&&i.toolText):(o=this._checkPointerOverErrorBar(e,t,a))&&(r.errorBarHovered=!0,i.finalTooltext=o.toolText),o},a._getHoveredPlot=function(e,t){return n._getHoveredPlot.call(this,e,t)},a.getCanvasPadding=function(){var e,t,a,o,r,n,l=.5*this.config.errorBarWidth,s=this.getFromEnv("chart"),c=s.config.dataLabelStyle,d=this.components&&this.components.data||[],h=d[0],u=d[d.length-1],p={},g=s.getFromEnv("smartLabel"),f={paddingLeft:0,paddingRight:0};return h&&(n=(e=h.config).showValue,a=e&&e.anchorProps||{},n&&(t=e.displayValue,g.useEllipsesOnOverflow(s.config.useEllipsesWhenOverflow),g.setStyle(c),p=g.getOriSize(t)),e.setValue&&(o=b((0,i.pluckNumber)(a.radius,0),l)+(0,i.pluckNumber)(a.borderThickness,0),r=(p.width||0)/2),f.paddingLeft=b(o,r)),u&&(n=(e=u.config).showValue,a=e&&e.anchorProps||{},n&&(t=e.displayValue,g.setStyle(c),p=g.getOriSize(t)),e.setValue&&(o=b((0,i.pluckNumber)(a.radius,0),l)+(0,i.pluckNumber)(a.borderThickness,0),r=(p.width||0)/2),f.paddingRight=b(o,r)),f},a.removePlots=function(){n.removePlots.call(this)},t}(l["default"]);t["default"]=y},1328:function(e,t,a){"use strict";t.__esModule=!0,t["default"]=void 0;t["default"]={"initial.dataset.errorLine":function(){return{"path.appearing":function(){return[{initialAttr:{opacity:0},finalAttr:{opacity:1},startEnd:{start:.5,end:1},slot:"plot"}]},"*":null}}}},1329:function(e,t,a){"use strict";var o=a(273);t.__esModule=!0,t["default"]=void 0;var r={"*.dataset.errorLine":o(a(619))["default"]["*.dataset.line"]};t["default"]=r},1330:function(e,t,a){"use strict";var o=a(273);t.__esModule=!0,t["default"]=void 0;var r=o(a(1331))["default"];t["default"]=r},1331:function(e,t,a){"use strict";var o=a(273);t.__esModule=!0,t["default"]=void 0;var r=o(a(292)),i=o(a(719)),n=o(a(1332)),l=function(e){function t(){var t;return(t=e.call(this)||this).isXY=!0,t.defaultZeroPlaneHighlighted=!1,t.useErrorGroup=!0,t.isErrorChart=!0,t.hasAnchor=!0,t.initAnimation=!0,t}(0,r["default"])(t,e),t.getName=function(){return"ErrorScatter"};var a=t.prototype;return a.getName=function(){return"ErrorScatter"},a.__setDefaultConfig=function(){e.prototype.__setDefaultConfig.call(this);var t=this.config;t.defaultDatasetType="errorscatter",t.enablemousetracking=!0},a.getDSGroupdef=function(){},a.getDSdef=function(){return n["default"]},t}(i["default"]);t["default"]=l},1332:function(e,t,a){"use strict";var o=a(273);t.__esModule=!0,t["default"]=void 0;var r,i=o(a(292)),n=o(a(723)),l=a(278),s=o(a(724)),c=a(286),d=o(a(1333)),h=o(a(1334)),u=l.preDefStr.colors.AAAAAA,p=l.preDefStr.ROUND,g=l.preDefStr.PERCENTAGESTRING,f="M";(0,c.addDep)({name:"errorscatterAnimation",type:"animationRule",extension:d["default"]}),(0,c.addDep)({name:"errorscatterErrorAnimation",type:"animationRule",extension:h["default"]});var m=function(e){function t(){var t;return(t=e.call(this)||this).drawCallbackFn=function(e){return function(){"disappearing"===e&&this.hide()}},t.removeCallbackFn=function(){this.hide(),this.shadow({opacity:0})},t}(0,i["default"])(t,e);var a=t.prototype;return a.getType=function(){return"dataset"},a.getName=function(){return"errorScatter"},a.ErrorValueConfigure=function(){var e,t,a,o,i,n,s,c,d,h,p,f,m,v,b,x,k,y,C,w,A,S,N,L,D,E,T,F,P,_,V,I,B,M,O,R,G,H,z,W,U,j,J,K,q,Y,X,Q,Z,$,ee,te,ae,oe=this.config,re=oe.JSONData,ie=this.getFromEnv("dataSource").categories&&this.getFromEnv("dataSource").categories[0].category,ne=this.getFromEnv("chart-attrib"),le=re.data,se=le&&le.length||0,ce=this.components.data,de=this.getFromEnv("number-formatter"),he=(0,l.pluck)(ne.tooltipsepchar,", "),ue=(0,l.parseUnsafeString)(ne.yaxisname),pe=(0,l.parseUnsafeString)(ne.xaxisname),ge=oe.parentYAxis,fe=-Infinity,me=+Infinity,ve=fe,be=me,xe=me,ke=fe,ye=function(t,o){var i;return oe.showTooltip?null===A?i=!1:t!==r?(D=[1,2,3,4,5,6,7,8,9,10,11,99,100,101,102,103,104,105,106,107,109,120,121,123,124,125,126,127,128,129,130],E={yaxisName:ue,xaxisName:pe,yDataValue:A,xDataValue:a.label,formattedValue:a.toolTipValue,horizontalErrorValue:x,horizontalErrorDataValue:y,verticalErrorValue:k,verticalErrorDataValue:C,horizontalErrorPercentValue:N,verticalErrorPercentValue:L,label:a.label,horizontalPositiveErrorValue:a.useHorizontalErrorBar?M:r,horizontalPositiveErrorDataValue:a.useHorizontalErrorBar?R:r,horizontalNegativeErrorValue:c?r:B,horizontalNegativeErrorDataValue:c?r:z,verticalPositiveErrorValue:a.useVerticalErrorBar?I:r,verticalPositiveErrorDataValue:a.useVerticalErrorBar?U:r,verticalNegativeErrorValue:d?r:K,verticalNegativeErrorDataValue:d?r:te,errorValue:o,errorDataValue:o,errorPercentValue:a.errorPercentValue,errorPercentDataValue:a.errorPercentValue},i=(0,l.parseTooltext)(t,D,E,e,ne,re)):null===A?i=!1:(oe.seriesNameInTooltip&&(T=(0,l.getFirstValue)(re&&re.seriesname)),i=T?T+he:"",i+=w.x?de.xAxis(w.x)+he:"",i+=a.toolTipValue):i=!1,i};for(oe.errorBarShadow=i=(0,l.pluckNumber)(ne.errorbarshadow,ne.showshadow,0),oe.ignoreEmptyDatasets=(0,l.pluckNumber)(re.ignoreemptydatasets,0),oe.notHalfErrorBar=!(0,l.pluckNumber)(ne.halferrorbar,1),oe.errorBarAlpha=(0,l.getFirstAlpha)((0,l.pluck)(re.errorbaralpha,ne.errorbaralpha)),oe.errorBarWidth=n=(0,l.pluckNumber)(re.errorbarwidth,ne.errorbarwidth,5),oe.errorBarColor=s=(0,l.convertColor)((0,l.getFirstColor)((0,l.pluck)(re.errorbarcolor,ne.errorbarcolor,u)),void 0),oe.errorBarThickness=o=(0,l.pluckNumber)(re.errorbarthickness,ne.errorbarthickness,1),oe.shadowOpacity=i?NaN:0,oe.halfHorizontalErrorBar=c=(0,l.pluckNumber)(ne.halfhorizontalerrorbar,1),oe.halfVerticalErrorBar=d=(0,l.pluckNumber)(ne.halfverticalerrorbar,1),oe.initAnimation===r&&(oe.initAnimation=this.getFromEnv("chart").initAnimation),h=(0,l.pluck)(re.horizontalerrorbaralpha,re.errorbaralpha,ne.horizontalerrorbaralpha,void 0),p=(0,l.pluckNumber)(re.verticalerrorbaralpha,re.errorbaralpha,ne.verticalerrorbaralpha,void 0),f=(0,l.convertColor)((0,l.pluck)(re.horizontalerrorbarcolor,re.errorbarcolor,ne.horizontalerrorbarcolor,s),h),m=(0,l.convertColor)((0,l.pluck)(re.verticalerrorbarcolor,re.errorbarcolor,ne.verticalerrorbarcolor,s),p),v=(0,l.pluckNumber)(re.horizontalerrorbarthickness,re.errorbarthickness,ne.horizontalerrorbarthickness,o),b=(0,l.pluckNumber)(re.verticalerrorbarthickness,re.errorbarthickness,ne.verticalerrorbarthickness,o),oe.horizontalErrorBarWidth=(0,l.pluckNumber)(re.horizontalerrorbarwidth,ne.horizontalerrorbarwidth,n),oe.verticalErrorBarWidth=(0,l.pluckNumber)(re.verticalerrorbarwidth,ne.verticalerrorbarwidth,n),oe.cumulativeValueOnErrorBar=(0,l.pluckNumber)(re.cumulativevalueonerrorbar,ne.cumulativevalueonerrorbar,1),ae=0;ae<se;ae++)le&&(e=le&&le[ae],t=ce[ae],a=t&&t.config,t||(t=ce[ae]={graphics:{}}),t.config||(a=ce[ae].config={}),w=a.setValue,a.errorValue=e.errorvalue,a.cumulativeValueOnErrorBar=$=(0,l.pluckNumber)(e.cumulativevalueonerrorbar,oe.cumulativeValueOnErrorBar,1),a.hErrorValue=x=de.getCleanValue((0,l.pluck)(e.horizontalerrorvalue,e.errorvalue)),y=de.xAxis(x),a.vErrorValue=k=de.getCleanValue((0,l.pluck)(e.verticalerrorvalue,e.errorvalue)),C=de.dataLabels(k),a.hPositiveErrorValue=M=de.getCleanValue((0,l.pluck)(e.horizontalpositiveerrorvalue,e.positiveerrorvalue,x)),a.hNegativeErrorValue=B=de.getCleanValue((0,l.pluck)(e.horizontalnegativeerrorvalue,e.negativeerrorvalue,x)),a.vPositiveErrorValue=I=de.getCleanValue((0,l.pluck)(e.verticalpositiveerrorvalue,e.positiveerrorvalue,k)),a.vNegativeErrorValue=K=de.getCleanValue((0,l.pluck)(e.verticalnegativeerrorvalue,e.negativeerrorvalue,k)),N=Math.round(x/w.x*l.HUNDREDSTRING*l.HUNDREDSTRING)/l.HUNDREDSTRING+g,L=Math.round(k/w.y*l.HUNDREDSTRING*l.HUNDREDSTRING)/l.HUNDREDSTRING+g,R=de.dataLabels(M,ge),O=(0,l.getValidValue)((0,l.parseUnsafe