-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathfusioncharts.powercharts.js
2 lines (2 loc) · 544 KB
/
fusioncharts.powercharts.js
1
2
!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.parseUnsafeString)((0,l.pluck)(e.errorplottooltext,re.errorplottooltext,ne.errorplottooltext,R),!1)),z=de.dataLabels(B,ge),j=(0,l.getValidValue)((0,l.parseUnsafeString)((0,l.pluck)(e.errorplottooltext,re.errorplottooltext,ne.errorplottooltext,z),!1)),U=de.dataLabels(I,ge),X=(0,l.getValidValue)((0,l.parseUnsafeString)((0,l.pluck)(e.errorplottooltext,re.errorplottooltext,ne.errorplottooltext,U),!1)),te=de.dataLabels(K,ge),ee=(0,l.getValidValue)((0,l.parseUnsafeString)((0,l.pluck)(e.errorplottooltext,re.errorplottooltext,ne.errorplottooltext,te),!1)),G=Q=Z=q=r,$&&(H=de.dataLabels(w.x+M,ge),G=(0,l.getValidValue)((0,l.parseUnsafeString)((0,l.pluck)(e.errorplottooltext,re.errorplottooltext,ne.errorplottooltext,H),!1)),W=de.dataLabels(w.x-B,ge),Q=(0,l.getValidValue)((0,l.parseUnsafeString)((0,l.pluck)(e.errorplottooltext,re.errorplottooltext,ne.errorplottooltext,W),!1)),J=de.dataLabels(w.y+I,ge),Z=(0,l.getValidValue)((0,l.parseUnsafeString)((0,l.pluck)(e.errorplottooltext,re.errorplottooltext,ne.errorplottooltext,J),!1)),Y=de.dataLabels(w.y-K,ge),q=(0,l.getValidValue)((0,l.parseUnsafeString)((0,l.pluck)(e.errorplottooltext,re.errorplottooltext,ne.errorplottooltext,Y),!1))),ie&&ie[ae]&&(a.label=(0,l.getValidValue)((0,l.parseUnsafeString)((0,l.pluck)(ie[ae].tooltext,ie[ae].label)))),e.horizontalpositiveerrorvalue||e.positiveerrorvalue||e.horizontalnegativeerrorvalue||e.negativeerrorvalue?a.halfHorizontalErrorBar=c=0:a.halfHorizontalErrorBar=c=oe.halfHorizontalErrorBar,e.verticalpositiveerrorvalue||e.positiveerrorvalue||e.verticalnegativeerrorvalue||e.negativeerrorvalue?a.halfVerticalErrorBar=d=0:a.halfVerticalErrorBar=d=oe.halfVerticalErrorBar,null!==w.x&&(F=w.x+Number(M),P=w.x-(c?0:Number(B)),ke=Math.max(ke,F,P),xe=Math.min(xe,F,P)),null!==w.y&&(F=w.y+Number(I),P=w.y-(d?0:Number(K)),ve=Math.max(ve,F,P),be=Math.min(be,F,P)),a.useHorizontalErrorBar=(0,l.pluckNumber)(e.usehorizontalerrorbar,re.usehorizontalerrorbar,ne.usehorizontalerrorbar,0),a.useVerticalErrorBar=(0,l.pluckNumber)(e.useverticalerrorbar,re.useverticalerrorbar,ne.useverticalerrorbar,1),a.errorValueConf={},(_=a.errorValueConf.horizontal={}).mandatory={},_.mandatory.marker={errorValue:-(null===M?r:M),tooltext:ye(O,R),errorBarColor:f,isHorizontal:!0,errorBarThickness:v,shadowOpacity:i?h/250:0},_.mandatory.limit={errorValue:-(null===M?r:M),tooltext:$?ye(G,H):ye(O,R),errorBarColor:f,isHorizontal:!0,errorBarThickness:v,shadowOpacity:i?h/250:0,errorEdgeBar:!0},_.optional={},_.optional.marker={errorValue:B,tooltext:ye(j,z),errorBarColor:f,isHorizontal:!0,errorBarThickness:v,shadowOpacity:i?h/250:0},_.optional.limit={errorValue:B,tooltext:$?ye(Q,W):ye(j,z),errorBarColor:f,isHorizontal:!0,errorBarThickness:v,shadowOpacity:i?h/250:0,errorEdgeBar:!0},(V=a.errorValueConf.vertical={}).mandatory={},V.mandatory.marker={errorValue:-(null===I?r:I),tooltext:ye(X,U),errorBarColor:m,errorBarThickness:b,shadowOpacity:i?p/250:0},V.mandatory.limit={errorValue:-(null===I?r:I),tooltext:$?ye(Z,J):ye(X,U),errorBarColor:m,errorBarThickness:b,shadowOpacity:i?p/250:0,errorEdgeBar:!0},V.optional={},V.optional.marker={errorValue:K,tooltext:ye(ee,te),errorBarColor:m,errorBarThickness:b,shadowOpacity:i?p/250:0},V.optional.limit={errorValue:K,tooltext:$?ye(q,Y):ye(ee,te),errorBarColor:m,errorBarThickness:b,shadowOpacity:i?p/250:0,errorEdgeBar:!0},w=a.setValue,A=a.formatedVal,oe.showTooltip?a.setTooltext!==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:a.errorValue,errorDataValue:de.dataLabels(a.errorValue,oe.parentYAxis)},S=(0,l.parseTooltext)(a.setTooltext,D,E,e,ne,re)):null===A?S=!1:(oe.seriesNameInTooltip&&(T=(0,l.getFirstValue)(re&&re.seriesname)),S=T?T+he:"",S+=w.x?de.xAxis(w.x)+he:"",S+=a.toolTipValue):S=!1,a.toolText=S);oe.xMax=ke,oe.xMin=xe,oe.yMin=be,oe.yMax=ve},a.drawErrorValue=function(){var e,t,a,o,i,n,l,c,d,h,u,g,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=this.config,q=this.config.JSONData.data,Y=q&&q.length,X=this.getState("visible"),Q=this.components.data,Z=this.getFromEnv("animationManager"),$=[];for(t=0;t<Y;t++)if((J=(g=Q[t]).errorTrackerConfig={}).errorTrackerArr=[],m=(b=g&&g.config)&&b.setValue,z=b.errorValueConf,g!==r&&m!==r&&null!==m&&z){if(j=Object.keys(o=g.graphics),null===b.vErrorValue&&null===b.vPositiveErrorValue&&null===b.vNegativeErrorValue)for(H=0;H<j.length;H++)j[H].match(/error-horizontal-/)&&(Z.setAnimation({el:o[j[H]],state:"disappearing",callback:this.drawCallbackFn("disappearing")}),o[j[H]].shadow({opacity:0}));if(null===b.hErrorValue&&null===b.hPositiveErrorValue&&null===b.vPositiveErrorValue)for(H=0;H<j.length;H++)j[H].match(/error-vertical-/)&&(Z.setAnimation({el:o[j[H]],state:"disappearing",callback:this.drawCallbackFn("disappearing")}),o[j[H]].shadow({opacity:0}));if(!(null===b.hErrorValue&&null===b.vErrorValue&&b.hPositiveErrorValue&&b.hNegativeErrorValue&&b.vPositiveErrorValue&&b.vNegativeErrorValue))for(W in d=b.setLink,M=g._xPos,u=g._yPos,h=M,z)if(z.hasOwnProperty(W))for(D in E=z[W])if(E.hasOwnProperty(D))for(P in T=E[D])if(T.hasOwnProperty(P)){if(v=r,F=T[P],e={},B=null,(J.errorTrackerArr[0]={}).tooltext=F.tooltext,V=u,_=F.errorValue,x=!b.useHorizontalErrorBar&&"horizontal"===W,k=!b.useVerticalErrorBar&&"vertical"===W,y=b.halfHorizontalErrorBar&&"horizontal"===W&&"optional"===D,C=b.halfVerticalErrorBar&&"vertical"===W&&"optional"===D,x||k||y||C)v="disappearing";else if(null===_||_===r||isNaN(_))v="disappearing";else{if(c=F.errorBarColor,i=F.isHorizontal,n=F.errorBarThickness,l=i?K.horizontalErrorBarWidth:K.verticalErrorBarWidth,I=X?l/2:0,L=X?-1:0,U=n>5?n/2+.5:2.75,i)if(w=N=this.getFromEnv("xAxis").getPixel(g.config._x+_*L),A=h,w=Math.round(V)+n%2/2,A=Math.round(N)+n%2/2,F.errorEdgeBar)for(S=[f,A,w-I,"V",w+I],O=2*I,R=w-I,G=U;G<O;G+=2*U)$.push({x:A,y:R+G,r:U,index:t,data:g,toolText:F.tooltext,barType:"h"});else for(S=[f,h,w,"H",A],O=Math.abs(h-A),R=h>A?A:h,G=U;G<O;G+=2*U)$.push({x:R+G,y:w,r:U,index:t,data:g,toolText:F.tooltext,barType:"h"});else if(w=N=this.getFromEnv("yAxis").getPixel(g.config._y+_*L),A=h,w=Math.round(N)+n%2/2,A=Math.round(h)+n%2/2,F.errorEdgeBar)for(S=[f,A-I,w,"H",A+I],O=2*I,R=A-I,G=U;G<=O;G+=2*U)$.push({x:R+G,y:w,r:U,index:t,data:g,toolText:F.tooltext,barType:"v"});else for(S=[f,A,V,"V",w],O=Math.abs(V-w),R=V>w?w:V,G=U;G<=O;G+=2*U)$.push({x:A,y:R+G,r:U,index:t,data:g,toolText:F.tooltext,barType:"v"});e={path:S,"stroke-width":X?n:0,stroke:c,cursor:d?"pointer":"","stroke-linecap":p}}a=["error",W,D,P].join("-"),v||(v=o[a]?"updating":"appearing"),(o[a]||"disappearing"!==v)&&(B=o[a]=Z.setAnimation({el:o[a]||"path",container:this.getContainer("errorPlotGroup"),component:this,attr:e,state:v,label:"path",callback:this.drawCallbackFn(v)}),"disappearing"!==v&&B.show(),B.shadow({opacity:"disappearing"===v?0:K.shadowOpacity},this.getContainer("errorShadowGroup")))}}$.length&&(this.config.dataTreeB=(new s["default"]).buildKdTree($)),K.initAnimation=!1},a._getHoveredPlot=function(e,t){var a,o,r,i,n,l;return(a=this.config.dataTree.getNeighbour({x:e,y:t},!0))?(r=a.data.config.toolText,a.data.config.finalTooltext=r,n=a.data.config.hoverEffects,(l=a.data.graphics.element).data("hoverEnabled",n.enabled),n.enabled&&l.attr(l.getData().setRolloverAttr),{pointIndex:a.index,hovered:!0,pointObj:a.data}):(o=this.config.dataTreeB&&this.config.dataTreeB.getNeighbour({x:e,y:t},!0))?(("h"===o.barType||"v"===o.barType)&&(i=o.toolText),o.data.config.finalTooltext=i,(l=o.data.graphics.element).data("hoverEnabled",!1),l.attr(l.getData().setRolloutAttr),{pointIndex:o.index,hovered:!0,pointObj:o.data}):void 0},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(o in t=e.graphics)t.hasOwnProperty(o)&&this.getFromEnv("animationManager").setAnimation({el:t[o],component:this,attr:{},state:"disappering",callback:this.removeCallbackFn});e.graphics.element&&(n.element=n.element.concat(e.graphics.element)),e.graphics.label&&(n.label=n.label.concat(e.graphics.label))}r.pool=n},t}(n["default"]);t["default"]=m},1333:function(e,t,a){"use strict";var o=a(273);t.__esModule=!0,t["default"]=void 0;var r={"initial.dataset.errorScatter":o(a(619))["default"]["initial.dataset.line"]};t["default"]=r},1334:function(e,t,a){"use strict";var o=a(273);t.__esModule=!0,t["default"]=void 0;var r={"initial.dataset.errorScatter":o(a(1329))["default"]["initial.dataset.errorLine"]};t["default"]=r},1335:function(e,t,a){"use strict";var o=a(273);t.__esModule=!0,t["default"]=void 0;var r=o(a(1336))["default"];t["default"]=r},1336: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(617)),l=a(740),s=function(e){function t(){return e.apply(this,arguments)||this}(0,r["default"])(t,e),t.getName=function(){return"InverseMSArea"};var a=t.prototype;return a.getName=function(){return"InverseMSArea"},a.__setDefaultConfig=function(){e.prototype.__setDefaultConfig.call(this);var t=this.config;t.defaultDatasetType="area",t.isInverse=!0,t.zeroplanethickness=2,t.zeroplanealpha=80,t.showzeroplaneontop=1,t.enablemousetracking=!0,t.defaultcrosslinethickness=1,l._setDefaultConfig.call(this)},a.getDSdef=function(){return n["default"]},a.getDSGroupdef=function(){},t}(i["default"]);t["default"]=s},1337:function(e,t,a){"use strict";var o=a(273);t.__esModule=!0,t["default"]=void 0;var r=o(a(1338))["default"];t["default"]=r},1338: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(599)),l=o(a(689)),s=function(e){function t(){return e.apply(this,arguments)||this}(0,r["default"])(t,e),t.getName=function(){return"InverseMSColumn2d"};var a=t.prototype;return a.getName=function(){return"InverseMSColumn2d"},a.__setDefaultConfig=function(){e.prototype.__setDefaultConfig.call(this);var t=this.config;t.defaultDatasetType="column",t.isInverse=!0,t.enablemousetracking=!0},a.getDSdef=function(){return n["default"]},a.getDSGroupdef=function(){return l["default"]},t}(i["default"]);t["default"]=s},1339:function(e,t,a){"use strict";var o=a(273);t.__esModule=!0,t["default"]=void 0;var r=o(a(1340))["default"];t["default"]=r},1340: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(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"InverseMSLine"};var a=t.prototype;return a.getName=function(){return"InverseMSLine"},a.__setDefaultConfig=function(){e.prototype.__setDefaultConfig.call(this);var t=this.config;t.defaultDatasetType="line",t.isInverse=!0,t.zeroplanethickness=1,t.zeroplanealpha=4,t.showzeroplaneontop=0,t.enablemousetracking=!0,t.defaultcrosslinethickness=1,l._setDefaultConfig.call(this)},a.getDSdef=function(){return n["default"]},a.getDSGroupdef=function(){},t}(i["default"]);t["default"]=s},1341:function(e,t,a){"use strict";var o=a(273);t.__esModule=!0,t["default"]=void 0;var r=o(a(1342))["default"];t["default"]=r},1342: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(1343)),n=o(a(1346)),l=o(a(1348)),s=o(a(1349)),c=o(a(1351)),d=function(e){function t(){var t;return(t=e.call(this)||this).registerFactory("limitUpdater",s["default"],["axis"]),t.registerFactory("dragTracker",c["default"],["canvas"]),t}(0,r["default"])(t,e);var a=t.prototype;return a.getName=function(){return"DragColumn2D"},t.getName=function(){return"DragColumn2D"},a.getDSGroupdef=function(){return l["default"]},a.__setDefaultConfig=function(){e.prototype.__setDefaultConfig.call(this),this.config.isDrag=!0},a.getDSdef=function(){return n["default"]},t}(i["default"]);t["default"]=d},1343: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=o(a(544)),l=o(a(543)),s=a(290),c=o(a(695)),d=o(a(1344)),h=a(286),u=a(1345),p=(0,h.getDepsByType)("transcoder"),g=i.preDefStr.UNDERSCORE,f=i.BLANKSTRING,m=0,v=function(e){var t,a=e.sender.apiInstance,o=a.getChildren("canvas")[0].getChildren("vCanvas")[0],r=a.config,i=e.data,n=i&&i.endValue,l=i&&i.startValue;(n>r.yMax||n<r.yMin||l===r.yMin||l===r.yMax)&&(t=o.getDataLimits(),r.yMax=t.max,r.yMin=t.min)},b=function(e){function t(){var t;return(t=e.call(this)||this).eiMethods.getDataWithId=function(){for(var e,t,a,o,r,i,n,l,s,c,d=this.apiInstance&&this.apiInstance.getJSONData(),h=[[f]],u=d.dataset,p=d.categories&&d.categories[0]&&d.categories[0].category,m=u&&u.length||0,v=0;m--;)if(r=u[m])for(h[0][m+1]=r.id||r.seriesname,n=r.id||m+1,c=(o=r.data)&&o.length||0,s=0;s<c;s+=1){if(!h[i=s+1]){for(a=p&&p[s+v]||{};a.vline;)a=p[s+(v+=1)]||{};t=a.label||a.name||f,h[i]=[t]}e=h[i],l=o[s].id||i+g+n,e[m+1]=[l,Number(o[s].value)]}return h},t.eiMethods.getData=function(e){var t,a,o=this.apiInstance&&this.apiInstance.getJSONData(),r=o.dataset,i=r&&r.length||0,n=0;if(e)a=e.toString().toLowerCase(),t=/^json$/gi.test(a)?o:p[a]().fromJSON(o,this).data;else for((t=d["default"].call(this.apiInstance)).unshift([f]);n<i;)t[0][n+1]=r[n++].seriesname;return t},t.eiMethods.setUpperLimit=function(e,t){var a,o=this.apiInstance;if(!t)return o.changeUpperLimits(e);o.addJob("setUpperLimitId"+m++,(function(){a=o.changeUpperLimits(e),"function"==typeof t&&t(a)}),s.priorityList.postRender)},t.eiMethods.setLowerLimit=function(e,t){var a,o=this.apiInstance;if(!t)return o.changeLowerLimits(e);o.addJob("setLowerLimitId"+m++,(function(){a=o.changeLowerLimits(e),"function"==typeof t&&t(a)}),s.priorityList.postRender)},t.eiMethods.getLowerLimit=function(e){var t=this.apiInstance,a=t.getChildren("yAxis")[0];if(a){if(!e)return a.config.axisRange.min;t.addJob("getLowerLimitId"+m++,(function(){"function"==typeof e&&e(a.config.axisRange.min)}),s.priorityList.postRender)}},t.eiMethods.getUpperLimit=function(e){var t=this.apiInstance,a=t.getChildren("yAxis")[0];if(a){if(!e)return a.config.axisRange.max;t.addJob("getUpperLimitId"+m++,(function(){"function"==typeof e&&e(a.config.axisRange.max)}),s.priorityList.postRender)}},t}(0,r["default"])(t,e);var a=t.prototype;return a.getName=function(){return"DragBase"},a.configureAttributes=function(t){e.prototype.configureAttributes.call(this,t),"DragNode"!==this.getName()&&this.getFromEnv("chartInstance").addEventListener("dataplotdragend",v)},a.mouseoutHandler=function(e,t,a){var o=this.config.datasetOrder||this.getDatasets(),r=this.getChildren("mouseTracker")[0];o[t]&&o[t].components.data[a]?o[t]._firePlotEvent(i.MOUSEOUT,a,e):this.getFromEnv("toolTipController").hideAll(),delete r._lastDatasetIndex,delete r._lastPointIndex},t.getName=function(){return"DragBase"},a._mouseEvtHandler=function(e,t){var a,o,r,n,l,s,c,d=this,h=t.mouseTracker,u=d.config.datasetOrder||d.getDatasets(),p=(0,i.getMouseCoordinate)(d.getFromEnv("chart-container"),e.originalEvent,d),g=!1,f=u.length,m=h._lastDatasetIndex,v=h._lastPointIndex;if(void 0!==v&&u[m]&&u[m].components.data[v]&&(s=u[m].components.data[v].config.dragStart),!s)for(;f--&&!g;)(a=u[f])&&a.getState("visible")&&(o=a._getHoveredPlot&&a._getHoveredPlot(p.chartX,p.chartY))&&o.hovered&&(g=!0,o.datasetIndex=f,l=h.getMouseEvents(e,o.datasetIndex,o.pointIndex));if(s&&void 0!==m&&(c=e.type===i.MOUSEOUT?i.MOUSEMOVE:e.type,u[m]&&u[m]._firePlotEvent&&u[m]._firePlotEvent(c,v,e)),!s&&(!g||l&&l.fireOut)&&void 0!==m&&u[m]&&u[m]._firePlotEvent&&(l&&!l.events.length?h.mouseoutTimer=setTimeout((function(){d.mouseoutHandler(e,m,v)}),20):(d.mouseoutHandler(e,m,v),clearTimeout(h.mouseoutTimer))),g)for((n=l.events&&l.events.length)&&(h._lastDatasetIndex=o.datasetIndex,v=h._lastPointIndex=o.pointIndex),r=0;r<n;r+=1)a&&a._firePlotEvent&&a._firePlotEvent(l.events[r],v,e)},a.parseChartAttr=function(t){e.prototype.parseChartAttr.call(this,t);var a,o=this.getFromEnv("dataSource").chart;(a=this.config).formAction=(0,i.getValidValue)(o.formaction),o.submitdataasxml!==i.ZEROSTRING||o.formdataformat||(o.formdataformat=p.csv().format),a.formDataFormat=(0,i.pluck)(o.formdataformat,p.xml().format),a.formTarget=(0,i.pluck)(o.formtarget,"_self"),a.formMethod=(0,i.pluck)(o.formmethod,"POST"),a.submitFormAsAjax=(0,i.pluckNumber)(o.submitformusingajax,1),a.restoreBtnTitle=(0,i.pluck)(o.restoretext,o.restorebtntitle,"Restore"),a.submitBtnTitle=(0,i.pluck)(o.submittext,o.formbtntitle,"Submit"),a.showFormBtn=(0,i.pluckNumber)(o.enablesubmit,o.showformbtn,1)&&a.formAction,a.showRestoreBtn=(0,i.pluckNumber)(o.enablerestore,o.showrestorebtn,1),a.formBtnTitle=(0,i.pluck)(o.formbtntitle,"Submit"),a.formBtnStyle={fontSize:a.style.outCanfontSize,fontFamily:a.style.outCanfontFamily,fontWeight:"bold"},a.restoreBtnWidth=(0,i.pluckNumber)(o.restorebtnwidth,0),a.allowAxisChange=(0,i.pluckNumber)(o.allowaxischange,1),o.toolbary||o.toolbarx?a.spaceHardCoded=!0:delete a.spaceHardCoded,a.drawTrendRegion=(0,i.pluckNumber)(o.drawcrossline,0)},a._storeIntialLimit=function(e,t){this.config.axisInitialLimit={min:e,max:t}},a.attachMenuButtons=function(){e.prototype.attachMenuButtons.call(this),this.addConfigureOptions()},a.addConfigureOptions=function(){var e,t,a=this,o=a.getFromEnv("toolbar"),r=o.getChild("hamburgerMenu-"+o.getId()+"-"+a.getId()+"-0"),i=a.config,n=[{name:"Increase Upper Limit",handler:function(){var e=a.getChildren("yAxis")[0].getLimit();a.changeUpperLimits(e.max+e.tickInterval)},action:"click"},{name:"Increase Lower Limit",handler:function(){var e=a.getChildren("yAxis")[0].getLimit();a.changeLowerLimits(e.min+e.tickInterval)},action:"click"},{name:"Decrease Upper Limit",handler:function(){var e=a.getChildren("yAxis")[0].getLimit();a.changeUpperLimits(e.max-e.tickInterval)},action:"click"},{name:"Decrease Lower Limit",handler:function(){var e=a.getChildren("yAxis")[0].getLimit();a.changeLowerLimits(e.min-e.tickInterval)},action:"click"}];i.showFormBtn&&(t={name:i.submitBtnTitle,handler:function(){u.submitData.call(a)},action:"click"},n.push(t)),i.showRestoreBtn&&(e={name:i.restoreBtnTitle,handler:function(){a.restoreData()},action:"click"},n.push(e)),i.allowAxisChange&&r.appendInMenu(n)},a.restoreData=function(){var e=this.getChildren("yAxis")[0],t=this.getFromEnv("chart-attrib"),a=this.config.axisInitialLimit;this.iterateComponents((function(e){var t;(t=e.getChildren("dataset"))&&t.forEach((function(e){e.restore()}))})),e.resetStoredLimits(),e.setAxisConfig({axisMaxValue:t.yaxismaxvalue,axisMinValue:t.yaxisminvalue}),e.setDataLimit(a.max,a.min),this.fireChartInstanceEvent("dataRestored",{}),this._manageInteractiveSpace()},a.changeLowerLimits=function(e){var t=this.getChildren("yAxis")[0],a=t.getLimit(),o=a.min,r=this.config,i=(0,l["default"])([r.yMin,t.getTrendLineLimits()[0]]),n=!1,s=a.max;return this.getFromEnv("animationManager").setAnimationState("update"),void 0!==e&&e<i&&e!==a.min&&r.allowAxisChange&&(o=e,n=!0),n&&(t.resetStoredLimits(),t.setAxisConfig({axisMaxValue:s,axisMinValue:o,showLowerLimit:!0}),t.setDataLimit(s,o),this._manageInteractiveSpace()),n},a.changeUpperLimits=function(e){var t,a=this.getChildren("yAxis")[0],o=a.getLimit(),r=o.min,i=this.config,l=(0,n["default"])([i.yMax,a.getTrendLineLimits()[1]]),s=!1;return this.getFromEnv("animationManager").setAnimationState("update"),void 0!==e&&e>l&&e!==o.max&&i.allowAxisChange&&(t=e,s=!0),s&&(a.resetStoredLimits(),a.setAxisConfig({axisMaxValue:t,axisMinValue:r,showUpperLimit:!0}),a.setDataLimit(t,r),this._manageInteractiveSpace()),s},a.getJSONData=function(){var e,t,a,o,r,n,l,s=this.getChildren("canvas")[0].getChildren("vCanvas")[0],c=this.getFromEnv("dataSource"),d=[];if(s.iterateComponents((function(t){"group"===t.getType()&&(e=t)})),e)d=e.getJSONData&&e.getJSONData();else for(n=(a=this.getDatasets()).length,r=0;r<n;r++)o={seriesname:(t=a[r]).config.seriesname,data:t.getJSONData().data},d.push(o);return(l=(0,i.extend2)({},c)).dataset=d,l},t}(c["default"]);b.prototype._manageInteractiveSpace=i._manageInteractiveSpace;var x=b;t["default"]=x},1345:function(e,t,a){"use strict";var o=a(273);t.__esModule=!0,t.submitData=function(){var e,t,a,o,i,s=this,c=new r["default"],d=s.config,h=l.json(),u=l.csv&&l.csv()||"csv",p=l.xml(),g=d.formAction,f=s.getFromEnv("chartInstance");d.formDataFormat===h.format?(e=h.format,s.getJSONData&&(t=JSON.stringify(s.getJSONData())),s.getCollatedData&&(t=JSON.stringify(s.getCollatedData()))):d.formDataFormat&&d.formDataFormat===u.format?(e=u.format,void 0!==(t=s.getCSVString&&s.getCSVString())&&""!==t||(s.getJSONData&&(t=u.fromJSON(s.getJSONData()).data),s.getCollatedData&&(t=u.fromJSON(s.getCollatedData()).data))):(e=p.format,s.getCollatedData&&(t=p.fromJSON(s.getCollatedData()).data),s.getJSONData&&(t=p.fromJSON(s.getJSONData()).data));s.fireChartInstanceEvent("beforeDataSubmit",{data:t},void 0,(function(){d.submitFormAsAjax?(c.onError=function(e,a,o,r){s.fireChartInstanceEvent("dataSubmitError",{xhrObject:a.xmlhttp,url:r,statusText:e,httpStatus:a.xmlhttp&&a.xmlhttp.status?a.xmlhttp.status:-1,data:t},[f.id,e,a.xmlhttp&&a.xmlhttp.status])},c.onSuccess=function(e,a,o,r){s.fireChartInstanceEvent("dataSubmitted",{xhrObject:c,response:e,url:r,data:t},[f.id,e])},(a={})["str"+e.toUpperCase()]=t,c.open&&c.abort(),c.post(g,a)):((o=window.document.createElement("span")).innerHTML='<form style="display:none" action="'+g+'" method="'+d.formMethod+'" target="'+d.formTarget+'"> <input type="hidden" name="strXML" value="'+(0,n.xssEncode)(t)+'"><input type="hidden" name="dataFormat" value="'+e.toUpperCase()+'" /></form>',i=o.removeChild(o.firstChild),window.document.body.appendChild(i),i.submit&&i.submit(),i.parentNode.removeChild(i),o=i=null)}),(function(){s.fireChartInstanceEvent("dataSubmitCancelled",{data:t})}))};var r=o(a(371)),i=a(286),n=a(278),l=(0,i.getDepsByType)("transcoder")},1346:function(e,t,a){"use strict";var o=a(273);t.__esModule=!0,t.updateDataValue=t._restore=t._getJSONData=t["default"]=void 0;var r,i,n=o(a(292)),l=o(a(599)),s=a(278),c=o(a(1347)),d=a(286),h=s.preDefStr.setRolloverAttrStr,u=s.preDefStr.setRolloutAttrStr,p=s.preDefStr.DATAPLOTCLICK,g=s.hasSVG?"ns-resize":"n-resize",f=function(e,t){var a,o=t.getChildren("yAxis")[0],r=t.getFromEnv("chart-container"),i=this.data("eventArgs");a=(0,s.getMouseCoordinate)(r,e,t),i.value=o.getValue(a.chartY),this.data("eventArgs",i)};t.updateDataValue=f,t._restore=i,t._getJSONData=r,(0,d.addDep)({name:"dragColumnAnimation",type:"animationRule",extension:c["default"]});var m=function(e){function t(){return e.apply(this,arguments)||this}(0,n["default"])(t,e);var a=t.prototype;return a.getType=function(){return"dataset"},a.getName=function(){return"dragColumn"},a.configureAttributes=function(t){var a=this.config,o=this.getFromEnv("chart-attrib"),r=a.JSONData;a.allowDrag=(0,s.pluckNumber)(r.allowdrag,1),a.allowNegDrag=(0,s.pluckNumber)(r.allownegativedrag,1),a.allowAxisChange=(0,s.pluckNumber)(o.allowaxischange,1),a.snapToDivOnly=(0,s.pluckNumber)(o.snaptodivonly,0),a.snapToDiv=a.snapToDivOnly?1:(0,s.pluckNumber)(o.snaptodiv,1),a.doNotSnap=(0,s.pluckNumber)(o.donotsnap,0),a.snapToDivRelaxation=(0,s.pluckNumber)(o.snaptodivrelaxation,10),a.doNotSnap&&(a.snapToDiv=a.snapToDivOnly=0),e.prototype.configureAttributes.call(this,t)},a._plotConfigure=function(t,a){var o,r=this.config,i=this.components.data;e.prototype._plotConfigure.call(this,t,a),(o=i[t].config).allowDrag=(0,s.pluckNumber)(a.allowdrag,r.allowDrag),o.allowNegDrag=(0,s.pluckNumber)(a.allownegativedrag,r.allowNegDrag)},a.drag=function(e,t,a,o){var r,i,n,l,c,d,p,m,v,b,x,k,y,C,w,A,S,N,L,D,E=o,T=this.config,F=this.getFromEnv("chart"),P=F.config,_=P.canvasTop,V=P.canvasBottom,I=this.getFromEnv("toolTipController"),B=this.getFromEnv("number-formatter"),M=this.components.data,O=this.getFromEnv("paper").canvas.style,R=this.getFromEnv("yAxis"),G=R.yBasePos,H=P.yaxisname,z={xaxisName:P.xaxisname,yaxisName:H},W=R.getTicks(),U=P.dragTolerance+1,j=T.JSONData,J=this.getFromEnv("chart-attrib"),K=P.useplotgradientcolor,q=P.useroundedges,Y=this.getFromEnv("chart-container"),X=(0,s.mathAbs)(R.getValue(R.getPixel(0)-T.snapToDivRelaxation)),Q=T.snapToDivOnly?.5*(0,s.mathAbs)(W[1]-W[0]):X;switch(E=E||(0,s.getMouseCoordinate)(Y,t,F),e){case"dragstart":i=(S=M[a]).config,r=S.graphics.element,d=S._yPos,m=S._height,n=i.setValue<0?d+m:d,D=i.allowDrag,x=E.chartY,D&&x>=n-U&&x<=n+U?(i.dragStart=!0,i._pointerDy=0,i._dragStartY=x,i._dragBuffer=n-x,S.startValue=i.setValue,S.name=T.seriesname,S.datasetIndex=T.index,S.dragged=!0):i.dragStart=!1;break;case"dragmove":(i=(S=M[a]).config).dragStart&&(r=S.graphics.element,C=i.plotIndex,b=i.allowNegDrag?V:G,x=E.chartY,i._rollOverResponseSetterFire=!1,O.cursor=g,i._pointerDy++,(x+=i._dragBuffer)<_?x=_:x>b&&(x=b),d=G<x?G:x,m=(0,s.mathAbs)(G-x),S._yPos=d,S._height=m,n=d>=G?d+m:d,i._y=l=i.setValue=R.getValue(n),c=B.dataLabels(l),i.toolTipValue=c,i.displayValue=(0,s.pluck)(i.setDisplayValue,c),K&&!q&&(i.colorArr[0].FCcolor.angle=p=d<G?90:270),r.attr({y:S._yPos,height:S._height}),this.parseLabelAttributes(S),this.drawLabel(C,C+1),S.graphics.element=r,I.hide(T.currentToolTip),1===i._pointerDy&&(w={index:a,dataIndex:a,datasetIndex:S.datasetIndex,startValue:S.startValue,datasetName:S.name,color:i.originalPlotColor,gradientColor:T.plotgradientcolor,alpha:i.plotFillAlpha,borderColor:T.plotbordercolor,borderAlpha:i.plotBorderAlpha,borderThickness:P.plotborderthickness,borderDashed:i.dashed,hoverColor:i.hoverColor,hoverAlpha:i.hoverAlpha,borderHoverColor:i.hoverBorderColor,borderHoverAlpha:i.hoverBorderAlpha},F.fireChartInstanceEvent("dataplotDragStart",w)));break;case"dragend":var Z;i=(S=M[a]).config,Z=S._height,i.dragStart&&(d=S._yPos,r=S.graphics.element,N=(0,s.getValidValue)((0,s.parseUnsafeString)((0,s.pluck)(S.tooltext,j.plottooltext,J.plottooltext),!1)),x=E.chartY,this.setMaxMin(S),0===i.givenPlotShowValue?i.showValue=0:1===i.givenPlotShowValue?i.showValue=1:1!==i.givenPlotShowValue&&T.showValues&&(Math.sqrt(Z*Z)<i.minplotheightforvalue?i.showValue=0:i.showValue=1),(T.snapToDiv||T.snapToDivOnly)&&(i.setValue=(0,s.snapPoint)({snapPixel:Q,datasetConf:T},W,S),d=G<(x=R.getPixel(i.setValue))?G:x,m=(0,s.mathAbs)(G-x),S._yPos=d,S._height=m,r.attr({y:d,height:m}),c=B.dataLabels(i.setValue),i.toolTipValue=c,i.displayValue=(0,s.pluck)(i.setDisplayValue,c),this.parseLabelAttributes(S),this.drawLabel(C,C+1)),w={index:a,dataIndex:a,datasetIndex:S.datasetIndex,startValue:S.startValue,endValue:i.setValue,datasetName:S.name,color:i.originalPlotColor,gradientColor:T.plotgradientcolor,alpha:i.plotFillAlpha,borderColor:T.plotbordercolor,borderAlpha:i.plotBorderAlpha,borderThickness:P.plotborderthickness,borderDashed:i.dashed,hoverColor:i.hoverColor,hoverAlpha:i.hoverAlpha,borderHoverColor:i.hoverBorderColor,borderHoverAlpha:i.hoverBorderAlpha,id:i.id},A=[F.getFromEnv("chartInstance").id,w.dataIndex,w.datasetIndex,w.datasetName,w.startValue,w.endValue],f.call(r,t,F),i._pointerDy&&(F.fireChartInstanceEvent("dataplotDragEnd",w),F.fireChartInstanceEvent("chartupdated",w,A)),K&&!q&&(p=d>=G?90:270,(v=r.data(h))&&v.fill&&((k=(k=v.fill).split("-"))[0]=p,v.fill=k.join("-")),(y=r.data(u))&&y.fill&&((k=(k=y.fill).split("-"))[0]=p,y.fill=k.join("-"))),i._dragBuffer=0,i._pointerDy=0,void 0!==N&&(z.formattedValue=i.toolTipValue,z.label=i.label,L=(0,s.parseTooltext)(N,[1,2,3,4,5,6,7],z,{value:i.toolTipValue},void 0,j),i.setTooltext=L,N=L,i.toolText=L),L=i.finalTooltext=!1!==i.toolText?i.toolText+(N?"":i.toolTipValue):"",x>=n-U&&x<=n+U||(O.cursor="default"),i.dragStart=!1)}},a._firePlotEvent=function(e,a,o){var r,i,n=this.getFromEnv("chart"),l=this.config,c=l.currentToolTip,d=this.getFromEnv("chartConfig"),h=d.drawTrendRegion,u=this.getFromEnv("paper").canvas.style,f=this.getFromEnv("toolTipController"),m=this.components.data[a],v=m.config,b=m.graphics.element,x=v.finalTooltext||v.toolText,k=o.originalEvent,y=(0,s.getMouseCoordinate)(this.getFromEnv("chart-container"),k,n).chartY,C=m._yPos,w=m._height,A=this.getFromEnv("yAxis").yBasePos,S=v.allowDrag,N=C,L=C+w;if(r=d.dragTolerance+1,i=C>=A?C+w:C,b)switch(e){case"fc-mouseover":y<=L-r&&y>=N+r&&!h&&x&&(c?f.draw(k,x,c):c=l.currentToolTip=f.draw(k,x)),!v._rollOverResponseSetterFire&&y<=L&&y>=N&&(t._rolloverResponseSetter(n,b,o,this),v._rollOverResponseSetterFire=!0);break;case"fc-mouseout":u.cursor="default",v._rollOverResponseSetterFire&&t._rolloutResponseSetter(n,b,o,this),v._rollOverResponseSetterFire=!1,f.hide(l.currentToolTip);break;case"fc-click":n.plotEventHandler(b,o,p);break;case"fc-mousemove":v.dragStart||(i=v.setValue<0?C+w:C,S&&y>=i-r&&y<=i+r?(u.cursor=g,f.hide(l.currentToolTip)):(u.cursor="default",v._rollOverResponseSetterFire&&!h&&x&&(c?f.draw(k,x,c):c=l.currentToolTip=f.draw(k,x))),!v._rollOverResponseSetterFire&&y<=L&&y>=N?(t._rolloverResponseSetter(n,b,o),v._rollOverResponseSetterFire=!0):!v._rollOverResponseSetterFire||y<=L&&y>=N||(f.hide(l.currentToolTip),v._rollOverResponseSetterFire=!1,t._rolloutResponseSetter(n,b,o,this)))}},t._rolloverResponseSetter=function(e,t,a,o){var r=t&&t.getData(),i=e.getFromEnv("animationManager");t&&0!==r.showHoverEffect&&!0!==r.draged&&t&&(i.setAnimationState("mouseOver"),i.setAnimation({el:t,label:"rect",component:o,attr:t.getData().setRolloverAttr}),e.plotEventHandler(t,a,"DataPlotRollOver"))},t._rolloutResponseSetter=function(e,t,a,o){var r=t&&t.getData(),i=e.getFromEnv("animationManager");t&&0!==r.showHoverEffect&&!0!==r.draged&&(i.setAnimationState("mouseOut"),i.setAnimation({el:t,label:"rect",component:o,attr:t.getData().setRolloutAttr}),e.plotEventHandler(t,a,"DataPlotRollOut"))},a.getJSONData=function(){var e,t,a,o,r,i=this.config.JSONData.data,n=this.components.data,l=[],s={};for(r=0,o=i.length;r<o;r++){for(a in t=i[r],e=n[r],s={},t)s[a]="value"===a?e.config.setValue:t[a];l.push(s)}return{data:l}},a.restore=function(){this.setData(this.config.JSONData,!0)},t}(l["default"]);t._getJSONData=r=m.prototype.getJSONData,t._restore=i=m.prototype.restore;var v=m;t["default"]=v},1347:function(e,t,a){"use strict";var o=a(273);t.__esModule=!0,t["default"]=void 0;var r={"initial.dataset.dragColumn":o(a(600))["default"]["initial.dataset.column"]};t["default"]=r},1348: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(689)),n=a(278),l=function(e){function t(){return e.apply(this,arguments)||this}return(0,r["default"])(t,e),t.prototype.getJSONData=function(){var e,t,a,o,r=this.getChildren("dataset"),i=[],l=r.length;for(o=0;o<l;o++)e=r[o],delete(a=(0,n.extend2)({},this.getFromEnv("dataSource").dataset[o])).data,t=e.getJSONData(),i.push((0,n.extend2)(a,t));return i},t}(i["default"]);t["default"]=l},1349:function(e,t,a){"use strict";var o=a(273);t.__esModule=!0,t["default"]=function(e){var t,a,o=e.getChildren("yAxis")[0];(0,r.componentFactory)(o,i["default"],"limitUpdater",e.config.allowAxisChange?1:0),t=o.getChildren("limitUpdater"),(a=t&&t[0])&&a.configure()};var r=a(278),i=o(a(1350))},1350:function(e,t,a){"use strict";var o=a(273);t.__esModule=!0,t["default"]=void 0;var r,i=o(a(292)),n=a(294),l=o(a(280)),s=a(278);function c(e){var t=e.target;t.justFocussed&&(t.justFocussed=!1,s.hasTouch||t.select())}function d(e,t,a){var o=this.config.linkedAxis.getLinkedParent();if(e!==t+"")return a?o.changeUpperLimits&&o.changeUpperLimits(Number(e)):o.changeLowerLimits&&o.changeLowerLimits(Number(e))}function h(e){var t,a=e.target,o={opacity:1,filter:"alpha(opacity=100)",color:(0,s.rgbaToHex)(a.axisLabel.attr("fill"))};for(t in o)a.style[t]=o[t];a.value=a.dataValue,a.justFocussed=!0,a.hasFocus=!0,a.axisLabel&&a.axisLabel.hide()}function u(e){var t=e.target,a=t.value,o=t.oldValue,r=t.isMaxLabel;d.call(this,a,o,r),t.style.opacity=0,t.style.filter="alpha(opacity=0)",t.axisLabel&&t.axisLabel.show(),s.isIE&&document.getElementsByTagName("body")[0].focus&&document.getElementsByTagName("body")[0].focus(),t.justFocussed=!1,t.hasFocus=!1}function p(e){var t=e.target,a=function(e){return"number"==typeof e.which?e.which:e.keyCode}(e.originalEvent),o=t.value,r=t.oldValue,i=t.isMaxLabel;13===a?!1===d.call(this,o,r,i)?t.style.color="#dd0000":l["default"].fire(t,"blur",e):27===a&&(t.value=r,l["default"].fire(t,"blur",e))}function g(e){return function(t){e.parentNode&&l["default"].fire(e,"blur",t)}}function f(e){return function(t){t.target!==e&&e.hasFocus&&l["default"].fire(e,"blur",t)}}function m(e,t){l["default"].unlisten(this.config.linkedAxis.getLinkedParent(),"defaultprevented",t),e.parentNode.removeChild(e)}function v(e,t){return function(){l["default"].unlisten(r.getLinkedParent().getLinkedItem("container"),"mousedown",t),e.parentNode.removeChild(e)}}var b=function(e){function t(){return e.apply(this,arguments)||this}(0,i["default"])(t,e);var a=t.prototype;return a.configureAttributes=function(){this.config.linkedAxis=this.getLinkedParent(),r=this.config.linkedAxis,this.config.onKeyUp=p.bind(this),this.config.onBlur=u.bind(this),this.config.onFocus=h.bind(this),this.config.onMouseUp=c.bind(this)},a.getType=function(){return"helper"},a.getName=function(){return"limitUpdater"},a.draw=function(){var e,t,a,o,r,i,n,c,d,h,u,p,b=this.getFromEnv("chartConfig"),x=this.config.linkedAxis,k=x.getAxisConfig("extremeLabels"),y=x.getLimit(),C=this.getFromEnv("chart-container"),w=this.getFromEnv("style").inCanvasStyle,A=(0,s.extend2)({outline:"none","-webkit-appearance":"none",filter:"alpha(opacity=0)",position:"absolute",background:"transparent",border:"1px solid #cccccc",textAlign:"right",top:0,left:0,width:50,zIndex:20,opacity:0,borderRadius:0,display:"block"},w),S={max:{element:k.lastLabel.graphic,value:y.max},min:{element:k.firstLabel.graphic,value:y.min}};for(o in A.color=(0,s.hashify)(A.color),A.fontSize=A.fontSize+"px",S)if(S.hasOwnProperty(o)){if(i=(a=S[o].element)&&a.getBBox(),c=S[o].value,n="max"===o,t=o+"Input",e=this.getGraphicalElement(t),!i||!a){e&&(e.style.display="none");continue}for(r in e||(e=this.addGraphicalElement(t,(0,s.createElement)("input",{type:"text",value:c,id:"fc-updater-"+o},C))),l["default"].listen(e,["focus","mouseup","blur","keyup"],[this.config.onFocus,this.config.onMouseUp,this.config.onBlur,this.config.onKeyUp]),s.hasSVG?(l["default"].listen(C,"defaultprevented",d=g(e)),l["default"].listen(C,"destroy",m.bind(this,e,d))):(l["default"].listen(C,"mousedown",p=f(e)),l["default"].listen(C,"destroy",v(e,p))),h=i.x+i.width-b.marginLeft,u=b.marginLeft,A.top=i.y+"px",A.left=u+"px",A.width=h+"px",A)A.hasOwnProperty(r)&&(e.style[r]=A[r]);e.dataValue=c,e.value=c,e.oldValue=c,e.name=c||"",e.axisLabel=a,e.isMaxLabel=n}},a.removingDraw=function(){var e,t,a=this.getGraphicalElement();for(e in a)a.hasOwnProperty(e)&&((t=a[e])&&t.parentNode&&t.parentNode.removeChild(t),delete a[e])},t}(n.ComponentInterface);t["default"]=b},1351:function(e,t,a){"use strict";var o=a(273);t.__esModule=!0,t["default"]=function(e){(0,i.componentFactory)(e,r["default"],"dragTracker"),e.getChildren("dragTracker")[0].addEvents()};var r=o(a(1352)),i=a(278)},1352:function(e,t,a){"use strict";var o=a(273);t.__esModule=!0,t["default"]=void 0;var r=o(a(296)),i=o(a(292)),n=a(294),l=a(278),s=function(e){return function(t){var a=e.config;a.dragStart&&a.hoveredDS.drag("dragmove",t,a.hoveredInfo.pointIndex)}},c=function(e){return function(t){var a=e.config;a.dragStart&&a.hoveredDS.drag("dragend",t,a.hoveredInfo.pointIndex),a.dragStart=!1}},d=["fc-dragstart","fc-dragmove","fc-dragend"],h=function(e){function t(){var t,a;return(t=e.call(this)||this).config.eventCb={"fc-dragstart":(a=(0,r["default"])(t),function(e){for(var t,o,r,i=a.getFromEnv("chart"),n=a.config,s=i.config.datasetOrder||i.getDatasets(),c=(0,l.getMouseCoordinate)(i.getFromEnv("chart-container"),e,i),d=s.length;d--&&!t;)(r=s[d])&&r.getState("visible")&&(o=r._getHoveredPlot&&r._getHoveredPlot(c.chartX,c.chartY))&&o.hovered&&(t=!0,n.dragStart=!0,n.hoveredInfo=o,n.hoveredDS=r,r.drag("dragstart",e,o.pointIndex,c))}),"fc-dragmove":s((0,r["default"])(t)),"fc-dragend":c((0,r["default"])(t))},t}(0,i["default"])(t,e);var a=t.prototype;return a.addEvents=function(){var e=this,t=e.getFromEnv("chart").getChildren("canvas");e.removeEvents(),t.forEach((function(t){d.forEach((function(a){t.addEventListener(a,e.config.eventCb[a])}))}))},a.removeEvents=function(){var e=this;e.getFromEnv("chart").getChildren("canvas").forEach((function(t){d.forEach((function(a){t.removeEventListener(a,e.config.eventCb[a])}))}))},a._dispose=function(){this.removeEvents(),e.prototype._dispose.call(this)},t}(n.ComponentInterface);t["default"]=h},1353:function(e,t,a){"use strict";var o=a(273);t.__esModule=!0,t["default"]=void 0;var r=o(a(1354))["default"];t["default"]=r},1354: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(1355)),n=function(e){function t(){var t;return(t=e.call(this)||this).defaultPlotShadow=1,t}(0,r["default"])(t,e);var a=t.prototype;return a.getName=function(){return"DragLine"},t.getName=function(){return"DragLine"},a.__setDefaultConfig=function(){e.prototype.__setDefaultConfig.call(this);var t=this.config;t.isDrag=!0,t.zeroplanethickness=1,t.zeroplanealpha=40,t.showzeroplaneontop=0,t.enablemousetracking=!0,t.defaultcrosslinethickness=1},a.getDSdef=function(){return i["default"]},t}(o(a(1359))["default"]);t["default"]=n},1355: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(616)),n=a(1356),l=a(278),s=a(1346),c=a(286),d=o(a(1358));(0,c.addDep)({name:"dragLineAnimation",type:"animationRule",extension:d["default"]});var h=function(e){function t(){return e.apply(this,arguments)||this}(0,r["default"])(t,e);var a=t.prototype;return a._firePlotEvent=function(){n.__firePlotEvent.apply(this,arguments)},a.updateImage=function(e){n._updateImage.call(this,e)},a.drag=function(){n._drag.apply(this,arguments)},a.configureAttributes=function(){n.configurer.apply(this,arguments)},a._plotConfigure=function(t,a){var o,r=this.config,i=this.components.data;e.prototype._plotConfigure.call(this,t,a),(o=i[t].config).allowDrag=(0,l.pluckNumber)(a.allowdrag,r.allowDrag),o.allowNegDrag=(0,l.pluckNumber)(a.allownegativedrag,r.allowNegDrag)},a.getType=function(){return"dataset"},a.getName=function(){return"dragLine"},a.restore=function(){s._restore.call(this)},a.getJSONData=function(){return s._getJSONData.call(this)},t}(i["default"]);t["default"]=h},1356:function(e,t,a){"use strict";var o=a(273);t.__esModule=!0,t["default"]=t._drag=t._updateImage=t.configurer=t.__firePlotEvent=void 0;var r,i,n,l,s=o(a(292)),c=o(a(617)),d=a(278),h=a(1346),u=o(a(1357)),p=a(286),g="DataPlotRollOut",f=d.hasSVG?"ns-resize":"n-resize",m=Math.min,v=Math.max;t._drag=l,t.__firePlotEvent=n,t.configurer=i,t._updateImage=r,(0,p.addDep)({name:"dragAreaAnimation",type:"animationRule",extension:u["default"]});var b=function(e){function t(){return e.apply(this,arguments)||this}(0,s["default"])(t,e);var a=t.prototype;return a.getType=function(){return"dataset"},a.getName=function(){return"dragArea"},a.configureAttributes=function(t){var a=this.config,o=this.getFromEnv("chart-attrib"),r=a.JSONData;a.allowDrag=(0,d.pluckNumber)(r.allowdrag,1),a.allowNegDrag=(0,d.pluckNumber)(r.allownegativedrag,1),a.allowAxisChange=(0,d.pluckNumber)(o.allowaxischange,1),a.snapToDivOnly=(0,d.pluckNumber)(o.snaptodivonly,0),a.doNotSnap=(0,d.pluckNumber)(o.donotsnap,0),a.snapToDiv=(0,d.pluckNumber)(o.snaptodiv,1),a.snapToDivRelaxation=(0,d.pluckNumber)(o.snaptodivrelaxation,10),a.doNotSnap&&(a.snapToDiv=a.snapToDivOnly=0),e.prototype.configureAttributes.call(this,t)},a._plotConfigure=function(t,a){var o,r=this.config;e.prototype._plotConfigure.call(this,t,a),(o=this.components.data[t].config).allowDrag=(0,d.pluckNumber)(a.allowdrag,r.allowDrag),o.allowNegDrag=(0,d.pluckNumber)(a.allownegativedrag,r.allowNegDrag)},t.updateImage=function(e){var t,a=e.graphics,o=a.image||a.element,r=e.config,i=r.anchorProps,n=r.hoverEffects,l=o&&o.data("imgRef"),s=i.imageScale,c=l.height*s*.01,h=l.width*s*.01,u=e._xPos,p=e._yPos,g=n.imageHoverScale,f=l.width*g*.01,v=l.height*g*.01,b=i.radius=i.isAnchorRadius?i.radius:m(h,c)/2,x=i.imagePadding,k=b-x-.5*i.borderThickness,y=n.radius-x-.5*n.anchorBorderThickness,C=i.symbol[1],w=(0,d.polyPathToPath)([C||2,u,p,y>0?y:0,n.startAngle,n.dip]),A=(0,d.polyPathToPath)([C||2,u,p,k>0?k:0,i.startAngle,0]),S={x:u-l.width*s*.005,y:p-l.height*s*.005,width:h,height:c,alpha:100};S["clip-path"]=A,(t={x:u-l.width*g*.005,y:p-l.height*g*.005,width:f,height:v,alpha:100})["clip-path"]=w,o.attr(S),o.data("setRolloverAttr",t),o.data("setRolloutAttr",S)},a.drag=function(e,a,o,r){var i,n,l,s,c,u,p,g,m,v,b,x,k,y,C,w,A,S,N,L,D,E,T,F,P,_,V=r,I=this.config,B=I.index,M=this.getFromEnv("chart"),O=M.config,R=O.canvasTop,G=this.components.data,H=this.getFromEnv("paper").canvas.style,z=this.getFromEnv("yAxis"),W=z.getTicks(),U=(0,d.mathAbs)(z.getValue(z.getPixel(0)-I.snapToDivRelaxation)),j=I.snapToDivOnly?.5*(0,d.mathAbs)(W[1]-W[0]):U,J={xaxisName:O.xaxisname,yaxisName:O.yaxisname},K=this.getGraphicalElement().lineElement,q=O.dragTolerance+1,Y=this.getName(),X="dragLine"===Y||"dragArea"===Y,Q=I.JSONData,Z=this.getFromEnv("chart-container");switch(V=V||(0,d.getMouseCoordinate)(Z,a,M),e){case"dragstart":l=(i=G[o]).config,u=i._yPos,w=i._xPos,C=l.allowDrag,m=V.chartY,x=V.chartX,C&&m>=u-q&&m<=u+q&&x<=w+q&&x>=w-q?(l.dragStart=!0,l._pointerDy=0,l._dragStartY=m,l._dragBuffer=u-m,i.dragged=!0,i.startValue=l.setValue,i.name=I.seriesname,i.datasetIndex=I.index,b=l.anchorProps,F=l.hoverEffects,v={index:NaN,dataIndex:NaN,datasetIndex:i.datasetIndex,startValue:i.startValue,datasetName:i.name,color:l.color,alpha:l.alpha,anchorBgColor:b.bgColor,anchorBgAlpha:b.anchorBgAlpha,anchorAlpha:b.anchorAlpha,anchorBorderColor:b.borderColor,anchorBorderThickness:b.borderThickness,anchorRadius:b.radius,anchorSides:b.sides,anchorStartAngle:b.startAngle,anchorHoverColor:F.anchorColor,anchorHoverAlpha:F.anchorAlpha,anchorHoverSides:F.anchorSides,dashed:l.dashed,valuePosition:l.valuePosition,id:l.id},l.dragStart=!0):l.dragStart=!1;break;case"dragmove":(l=(i=G[o]).config).dragStart&&(m=V.chartY,l.allowDrag&&(H.cursor=f),n=i.graphics.element,l._pointerDy++,S=i.graphics.image,w=i._xPos,E=n,m+=l._dragBuffer,g=l.allowNegDrag?O.canvasBottom:z.yBasePos,P=(b=l.anchorProps).startAngle||90,F=l.hoverEffects,T=l.hoverEffects&&l.hoverEffects.enabled,b.imageUrl,m<R?m=R:m>g&&(m=g),i._yPos=u=m,l._y=s=l.setValue=z.getValue(u),l._Py=z.getPixel(l._y),c=this.getFromEnv("number-formatter").dataLabels(s),l.toolTipValue=c,l.displayValue=c,this.parseLabelAttributes(i,void 0),this.drawLabel(void 0,NaN),i.graphics.element=n,this.getFromEnv("toolTipController").hide(I.currentToolTip),T&&(p=E.data("setRolloverAttr"))&&(p.path=(0,d.polyPathToPath)([F.anchorSides||2,w,u,F.anchorRadius,F.startAngle,F.dip])),T&&(A=E.data("setRolloutAttr"))&&(A.path=(0,d.polyPathToPath)([b.symbol[1]||2,w,u,b.radius,b.startAngle,l.dip||0])),E&&E.attr(A||{path:(0,d.polyPathToPath)([b.symbol[1]||2,w,u,b.radius,P,0])}),S&&t.updateImage(i),X&&this.drawCommonElements(),K&&(I=this.config,N=l.pathStartIndex,L=l.pathEndIndex,D=l.lastPath,D=this.getLinePath(G,{begin:N,end:L}),K.attr({path:D.getPathArr()})),1===l._pointerDy&&(v={index:o,dataIndex:o,datasetIndex:B,startValue:i.startValue,datasetName:i.name,color:l.color,alpha:l.alpha,anchorBgColor:b.bgColor,anchorBgAlpha:b.anchorBgAlpha,anchorAlpha:b.anchorAlpha,anchorBorderColor:b.borderColor,anchorBorderThickness:b.borderThickness,anchorRadius:b.radius,anchorSides:b.sides,anchorStartAngle:b.startAngle,anchorHoverColor:F.anchorColor,anchorHoverAlpha:F.anchorAlpha,anchorHoverSides:F.anchorSides,dashed:l.dashed,valuePosition:l.valuePosition,id:l.id},M.fireChartInstanceEvent("dataplotDragStart",v)));break;case"dragend":(l=(i=G[o]).config).dragStart&&(this.setMaxMin(i),(I.snapToDiv||I.snapToDivOnly)&&(n=i.graphics.element,S=i.graphics.image,w=i._xPos,E=n,P=(b=l.anchorProps).startAngle||90,F=l.hoverEffects,T=l.hoverEffects&&l.hoverEffects.enabled,b.imageUrl,l.setValue=(0,d.snapPoint)({snapPixel:j,datasetConf:I},W,i),m=z.getPixel(l.setValue),i._yPos=u=m,l._y=s=l.setValue,l._Py=z.getPixel(l._y),c=this.getFromEnv("number-formatter").dataLabels(s),l.toolTipValue=c,l.displayValue=c,this.parseLabelAttributes(i,void 0),this.drawLabel(void 0,NaN),i.graphics.element=n,T&&(p=E.data("setRolloverAttr"))&&(p.path=(0,d.polyPathToPath)([F.anchorSides||2,w,u,F.anchorRadius,F.startAngle,F.dip])),T&&(A=E.data("setRolloutAttr"))&&(A.path=(0,d.polyPathToPath)([b.symbol[1]||2,w,u,b.radius,b.startAngle,l.dip||0])),E&&E.attr(A||{path:(0,d.polyPathToPath)([b.symbol[1]||2,w,u,b.radius,P,0])}),S&&t.updateImage(i),X&&this.drawCommonElements(),K&&(I=this.config,N=l.pathStartIndex,L=l.pathEndIndex,D=l.lastPath,D=this.getLinePath(G,{begin:N,end:L}),K.attr({path:D.getPathArr()}))),v={index:o,dataIndex:o,datasetIndex:B,startValue:i.startValue,endValue:l.setValue,datasetName:i.name,color:l.color,alpha:l.alpha,anchorBgColor:b.bgColor,anchorBgAlpha:b.anchorBgAlpha,anchorAlpha:b.anchorAlpha,anchorBorderColor:b.borderColor,anchorBorderThickness:b.borderThickness,anchorRadius:b.radius,anchorSides:b.sides,anchorStartAngle:b.startAngle,anchorHoverColor:F.anchorColor,anchorHoverAlpha:F.anchorAlpha,anchorHoverSides:F.anchorSides,dashed:l.dashed,valuePosition:l.valuePosition,id:l.id},_=[M.getFromEnv("chartInstance").id,v.dataIndex,v.datasetIndex,v.datasetName,v.startValue,v.endValue],n&&h.updateDataValue.call(n,a,M),l._pointerDy&&(M.fireChartInstanceEvent("dataplotDragEnd",v),M.fireChartInstanceEvent("chartupdated",v,_)),void 0!==(k=(0,d.getValidValue)((0,d.parseUnsafeString)((0,d.pluck)(i.tooltext,Q.plottooltext,this.getFromEnv("chart-attrib").plottooltext),!1)))&&(J.formattedValue=l.toolTipValue,J.label=l.label,y=(0,d.parseTooltext)(k,[1,2,3,4,5,6,7],J,{value:l.toolTipValue},void 0,Q),l.setTooltext=y,k=y,l.toolText=y),y=l.finalTooltext=!1!==l.toolText?k||l.toolText.substring(0,l.toolText.indexOf(l.formatedVal))+l.toolTipValue:"",m>=u-q&&m<=u+q&&x<=w+q&&x>=w-q||(H.cursor="default"),l._dragBuffer=0,l._pointerDy=0,l.dragStart=!1)}},a._firePlotEvent=function(e,t,a){var o,r,i,n,l,s,c,h,u,p,m,b,x,k=this.config,y=this.getFromEnv("chart"),C=this.getFromEnv("chartConfig").drawTrendRegion,w=this.getFromEnv("paper"),A=this.getFromEnv("toolTipController"),S=w.canvas.style,N=this.components.data[t],L=k.currentToolTip,D=a.originalEvent;if("touchend"===e&&(b=D.changedTouches[0],D.pageX=b&&b.pageX,D.pageY=b&&b.pageY),i=(r=(0,d.getMouseCoordinate)(y.getFromEnv("chart-container"),D,y)).chartY,n=r.chartX,N)switch(c=N.graphics.element,x=(m=N.config).anchorProps,u=m.finalTooltext,h=m.hoverEffects.enabled,p=m.eventArgs,l=N._yPos,s=N._xPos,m.dragTolerance=m.dragTolerance<x.markerRadius?x.markerRadius+.5:m.dragTolerance,o=v(m.dragTolerance,m.hoverEffects.anchorRadius||0)+1,e){case"fc-mouseover":m.allowDrag&&(S.cursor=f),m.dragStart||!u||m.dragStart||C||(L?A.draw(D,u,L):L=k.currentToolTip=A.draw(D,u)),m.dragStart||(h&&this._hoverPlotAnchor(N,"DataPlotRollOver"),c&&y.plotEventHandler(c,a,"DataPlotRollOver",p));break;case"fc-mouseout":S.cursor="default",h&&this._hoverPlotAnchor(N,g),c&&y.plotEventHandler(c,a,g,p),A.hide(k.currentToolTip);break;case"fc-mousemove":!m.dragStart&&u&&i>=l-o&&i<=l+o&&n<=s+o&&n>=s-o?(m.allowDrag&&(S.cursor=f),L?A.draw(D,u,L):L=k.currentToolTip=A.draw(D,u)):A.hide(k.currentToolTip);break;case"fc-click":c&&y.plotEventHandler(c,a,"dataplotclick",p)}},a.restore=function(){h._restore.call(this)},a.getJSONData=function(){return h._getJSONData.call(this)},t}(c["default"]);t._updateImage=r=b.prototype.updateImage,t.__firePlotEvent=n=b.prototype._firePlotEvent,t.configurer=i=b.prototype.configureAttributes,t._drag=l=b.prototype.drag;var x=b;t["default"]=x},1357:function(e,t,a){"use strict";var o=a(273);t.__esModule=!0,t["default"]=void 0;var r={"*.dataset.dragArea":o(a(618))["default"]["*.dataset.area"]};t["default"]=r},1358:function(e,t,a){"use strict";var o=a(273);t.__esModule=!0,t["default"]=void 0;var r={"*.dataset.dragLine":o(a(619))["default"]["*.dataset.line"]};t["default"]=r},1359: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(1342)),n=o(a(1356)),l=a(278),s=a(740),c=function(e){function t(){return e.apply(this,arguments)||this}(0,r["default"])(t,e);var a=t.prototype;return a.getName=function(){return"DragArea"},t.getName=function(){return"DragArea"},a.getDSGroupdef=function(){},a.__setDefaultConfig=function(){e.prototype.__setDefaultConfig.call(this);var t=this.config;s._setDefaultConfig.call(this),t.isDrag=!0,t.anchoralpha=l.HUNDREDSTRING,t.enablemousetracking=!0,t.defaultcrosslinethickness=1},a.getDSdef=function(){return n["default"]},t}(i["default"]);t["default"]=c},1360:function(e,t,a){"use strict";var o=a(273);t.__esModule=!0,t["default"]=void 0;var r=o(a(1361))["default"];t["default"]=r},1361: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(1362)),n=o(a(1365)),l=a(278),s=function(e){function t(){return e.apply(this,arguments)||this}(0,r["default"])(t,e),t.getName=function(){return"Kagi"};var a=t.prototype;return a.getName=function(){return"Kagi"},a.__setDefaultConfig=function(){e.prototype.__setDefaultConfig.call(this);var t=this.config;t.singleseries=!0,t.hasLegend=!1,t.defaultDatasetType="kagi",t.setAdaptiveMin=!0,t.anchorborderthickness=1,t.anchorimageurl=void 0,t.anchorimagepadding=1,t.anchorsides=1,t.anchoralpha=void 0,t.anchorbgalpha="100",t.anchorimagealpha="100",t.anchorimagescale=100,t.anchorstartangle=90,t.anchorshadow=0,t.anchorbgcolor=void 0,t.anchorbordercolor=void 0,t.anchorradius=3,t.showvalues=1,t.plotfillalpha="70",t.linedashlen=5,t.linedashgap=4,t.linedashed=void 0,t.linealpha="100",t.linethickness=2,t.drawfullareaborder=1,t.connectnulldata=0,t.zeroplanethickness=1,t.enablemousetracking=!0,t.zeroplanealpha=40,t.showzeroplaneontop=0},a._getDataset=function(){var e=[];return this.iterateComponents((function(t){t.getType&&"dataset"===t.getType()&&e.push(t)})),e},a._postSpaceManagement=function(){var e,t=this.config,a=this.getChildren("xAxis")[0],o=this.getChildren("yAxis")[0],r=this.getChildren("canvas")[0],i=r.config,n=i.canvasBorderWidth,s=(0,l.pluckNumber)(i.canvasPadding,15),c=i.canvasPaddingTop,d=i.canvasPaddingBottom,h=i.canvasPaddingLeft,u=i.canvasPaddingRight,p=this.getFromEnv("dataSource").chart,g=this._getDataset()[0].config,f=g&&g.shiftCount,m=(0,l.pluckNumber)(a.getAxisConfig("axisMinValue"),0),v=(0,l.pluckNumber)(a.getAxisConfig("axisMaxValue"),f-1),b=(0,l.pluckNumber)(p.maxhshiftpercent,10),x=this.config.canvasWidth-2*s,k=t.shift||0;o&&o.setAxisDimention({x:o.config.isOpposit?t.canvasRight+n:t.canvasLeft-n,y:t.canvasTop+c,opposite:o.config.isOpposit?t.canvasLeft-n:t.canvasRight+n,axisLength:t.canvasHeight-c-d}),this._setPosition(),g&&(b=b<=0?10:b,e=g.xShiftLength=Math.min(x/f,b*x/100),v=Math.max(v,1)),r.setCanvasPadding(),a&&a.setAxisConfig({canvasPaddingLeft:Math.max(h,s)+e/2,canvasPaddingRight:Math.max(u,s)+e/2}),a&&a.setAxisDimention({x:this.config.canvasLeft+s+e/2,axisLength:e*(v-m),y:a.config.isOpposit?t.canvasTop-n:t.canvasBottom+k+n,opposite:a.config.isOpposit?t.canvasBottom+k+n:t.canvasTop-n}),this.allocateDimensionOfChartMenuBar()},a._setPosition=function(){var e,t,a,o,r,i,n,s,c=this.getFromEnv("dataSource"),d=this._getDataset()[0],h=c.data||d&&d[0]&&d[0].data,u=d.components.data,p=u&&u.length,g=this.getChildren("yAxis")[0],f=0,m=f,v=[];for(e=0;e<p;e++)a=(t=u[e].config).setValue,(c=u[e])||(c=u[e]={graphics:{}}),t.isDefined||(a=t.plotValue),a=(0,l.pluck)(t.plotValue,a),t.plotY=(0,l.toPrecision)(g.getPixel(t.setValue),2),t.graphY=a&&(0,l.toPrecision)(g.getPixel(a),2),t.plotX=m,t.isShift?(m=f+=1,h&&v.push(h[e])):e===p-1&&h&&v.push(h[e]),e&&(s=u[e-1].config,o=t&&t.objParams&&t.objParams.isRally,r=t&&t.objParams&&t.objParams.lastHigh,i=t&&t.objParams&&t.objParams.lastLow,n=t&&t.objParams&&t.objParams.isRallyInitialised,s&&n&&s.isRally!==t.isRally?(t.isChanged=!0,t.ty=(0,l.toPrecision)(g.getPixel(o?r:i),2)):t.isChanged=!1)},a.getDSdef=function(){return n["default"]},t}(i["default"]);t["default"]=s},1362: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(521)),n=o(a(1363)),l=function(e){function t(){return e.apply(this,arguments)||this}(0,r["default"])(t,e),t.getName=function(){return"WaterFall2D"};var a=t.prototype;return a.getName=function(){return"WaterFall2D"},a.__setDefaultConfig=function(){e.prototype.__setDefaultConfig.call(this);var t=this.config;t.singleseries=!0,t.hasLegend=!1,t.defaultDatasetType="Waterfall2D",t.enablemousetracking=!0},a.getDSdef=function(){return n["default"]},t}(i["default"]);t["default"]=l},1363: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=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{"default":e};var a=c(t);if(a&&a.has(e))return a.get(e);var o={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if("default"!==i&&Object.prototype.hasOwnProperty.call(e,i)){var n=r?Object.getOwnPropertyDescriptor(e,i):null;n&&(n.get||n.set)?Object.defineProperty(o,i,n):o[i]=e[i]}o["default"]=e,a&&a.set(e,o);return o}(a(599)),l=a(286),s=o(a(1364));function c(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,a=new WeakMap;return(c=function(e){return e?a:t})(e)}(0,l.addDep)({name:"waterFall2DAnimation",type:"animationRule",extension:s["default"]});var d=function(e){function t(){return e.apply(this,arguments)||this}(0,r["default"])(t,e);var a=t.prototype;return a.getType=function(){return"dataset"},a.getName=function(){return"waterFall2D"},a.configure=function(e){if(!e)return!1;this.trimData(e),this.config.JSONData=e;var t,a,o,r,l,s,c,d,h,u,p,g,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,re,ie,ne,le=this.getFromEnv("chart"),se=this.config,ce=this.config.JSONData,de=ce.data,he=de&&de.length,ue=this.getFromEnv("xAxis").getTicksLen(),pe=Math.min(ue,he),ge=le.getFromEnv("dataSource").chart,fe=this.getFromEnv("color-manager"),me=fe.getPlotColor(this.index||this.positionIndex),ve=(0,i.pluckNumber)(ce.dashed,ge.plotborderdashed,0),be=le.config,xe=be.useplotgradientcolor,ke=(0,i.pluckNumber)(ge.showtooltip,1),ye=(0,i.parseUnsafeString)((0,i.pluck)(ge.tooltipsepchar,", ")),Ce=this.components.data,we=this.getFromEnv("number-formatter"),Ae={},Se=Ae.dataObj||(Ae.dataObj={}),Ne=Se.chart||(Se.chart={}),Le=(0,i.pluck)(ge.connectorthickness,1),De=-Infinity,Ee=Infinity,Te=0,Fe=0,Pe=0;for(se.minAbsNonZeroValue=Infinity,se.minAbsNonZeroData={},this.setState("visible",1===(0,i.pluckNumber)(ce.visible,!Number(ce.initiallyhidden),1)),o=se.showplotborder=(0,i.pluckNumber)(ge.showplotborder,1),se.plotBorderThickness=p=o?(0,i.pluckNumber)(ge.plotborderthickness,1):0,se.isRoundEdges=g=(0,i.pluckNumber)(ge.useroundedges,0),se.plotBorderAlpha=k=o?(0,i.pluck)(ge.plotborderalpha,v,"100"):0,se.plotbordercolor=y=(0,i.pluck)(ge.plotbordercolor,fe.getColor("plotBorderColor").split(",")[0]),se.plotgradientcolor=x=xe?(0,i.getDefinedColor)(ge.plotgradientcolor,fe.getColor("plotGradientColor")):"",se.plotDashLen=h=(0,i.pluckNumber)(ge.plotborderdashlen,6),se.showTextOutline=(0,i.pluckNumber)(ge.textoutline,0),se.plotDashGap=u=(0,i.pluckNumber)(ge.plotborderdashgap,3),se.use3DLighting=(0,i.pluckNumber)(ge.use3dlighting,1),se.showSum=X=(0,i.pluckNumber)(ge.showsumatend,1),se.plotColor=me=(0,i.pluck)(ce.color,me),se.plotfillAngle=m=(0,i.pluckNumber)(360-ge.plotfillangle,90),se.showShadow=g?(0,i.pluckNumber)(ge.showshadow,1):(0,i.pluckNumber)(ge.showshadow,fe.getColor("showShadow")),se.usePattern=(0,i.pluckNumber)(be.usePattern,0),se.patternType=n.PATTERN_TYPES.includes(ce.patterntype)?ce.patterntype:be.patternType,se.patternDensity=(0,i.pluckNumber)(ce.patterndensity,be.patternDensity),se.patternAlpha=(0,i.pluckNumber)(ce.patternalpha,be.patternAlpha),se.patternBgColor=(0,i.pluck)(ce.patternbgcolor,se.patternBgColor),se.showHoverEffect=f=(0,i.pluckNumber)(ge.plothovereffect,ge.showhovereffect,void 0),se.usePattern&&(se.showHoverEffect=f=0),se.plotFillAlpha=v=(0,i.pluck)(ce.alpha,ge.plotfillalpha,"100"),se.plotRadius=(0,i.pluckNumber)(ge.useRoundEdges,se.isRoundEdges?1:0),se.plotFillRatio=b=(0,i.pluck)(ce.ratio,ge.plotfillratio),se.dashed=ve,se.plotBorderDashStyle=w=ve?(0,i.getDashStyle)(h,u):"none",se.showValues=(0,i.pluckNumber)(ce.showvalues,ge.showvalues,1),se.valuePadding=(0,i.pluckNumber)(ge.valuepadding,2),se.enableAnimation=U=(0,i.pluckNumber)(ge.animation,ge.defaultanimation,1),se.animation=!!U&&{duration:1e3*(0,i.pluckNumber)(ge.animationduration,1)},Ne.transposeAnimation=se.transposeAnimation=(0,i.pluckNumber)(ge.transposeanimation,Ne.transposeAnimation,U),se.transposeAnimDuration=1e3*(0,i.pluckNumber)(ge.transposeanimduration,.2),se.showTooltip=(0,i.pluckNumber)(ge.showtooltip,1),se.stack100Percent=(0,i.pluckNumber)(le.stack100percent,ge.stack100percent,0),se.definedGroupPadding=Math.max((0,i.pluckNumber)(ge.plotspacepercent),0),se.plotSpacePercent=Math.max((0,i.pluckNumber)(ge.plotspacepercent,20)%100,0),se.maxColWidth=(0,i.pluckNumber)(ge.maxcolwidth,50),se.showPercentValues=(0,i.pluckNumber)(ge.showpercentvalues,0),se.showPercentInToolTip=(0,i.pluckNumber)(ge.showpercentintooltip,0),se.plotPaddingPercent=(0,i.pluckNumber)(ge.plotpaddingpercent),se.rotateValues=(0,i.pluckNumber)(ge.rotatevalues)?270:0,se.placeValuesInside=(0,i.pluckNumber)(ge.placevaluesinside,0),se.parentYAxis=j="s"===(0,i.pluck)(ce.parentyaxis&&ce.parentyaxis.toLowerCase(),"p")?1:0,se.defaultPadding={left:.5,right:.5},this.setState("dirty",!0),Ce||(Ce=this.components.data=[]),se.zLine=te={step:!0,data:[],dashStyle:"1"===ge.connectordashed?(0,i.getDashStyle)((0,i.pluckNumber)(ge.connectordashlen,2),(0,i.pluckNumber)(ge.connectordashgap,2)):"none",useForwardSteps:!0,color:(0,i.convertColor)((0,i.pluck)(ge.connectorcolor,"000000"),(0,i.pluck)(ge.connectoralpha,100)),lineWidth:Le},Y=0;Y<pe;Y+=1)A=de[Y],$=we.getCleanValue(A.value),ee=(0,i.pluckNumber)(A.issum,0),A.vline||ee?delete A._value:(Te+=$,A._value=$);for(X&&(X=!0,pe+=1,re={label:(0,i.getFirstValue)(ge.sumlabel,"Total"),_value:Te,value:Te,issum:1,cumulative:1}),Y=0,ie=0;Y<pe;Y+=1)A=de[Y],L=(N=Ce[Y])&&N.config,N||(N=Ce[Y]={graphics:{}}),N.config||(L=Ce[Y].config={}),!A&&X&&(A=de[Y]=re),me=(0,i.pluck)(A.color,fe.getPlotColor(Y)),N.vline||($=A._value,delete A._value,L.issum=ee=(0,i.pluckNumber)(A.issum,0),oe=L.isCumulative=(0,i.pluckNumber)(A.cumulative,1),ee?($=oe||Fe===Pe?Fe:Fe-Pe,L.lastComTotal=Pe,Pe=Fe,te.data.push({y:null,x:ie-.5})):Fe+=$,L.valuePadding=(0,i.pluckNumber)(A.valuepadding,se.valuePadding),De=Math.max(De,Fe),Ee=Math.min(Ee,Fe),0!==$&&se.minAbsNonZeroValue>Math.abs($)&&(se.minAbsNonZeroValue=Math.abs($),se.minAbsNonZeroData=L),L.total=Fe,Z=L.showLabel=(0,i.pluckNumber)(A.showlabel,ge.showlabels,1),Q=L.dataLabel=(0,i.parseUnsafeString)(Z?(0,i.getFirstValue)(A.label,A.name):""),$>0?(ae=(0,i.pluck)(A.color,ge.positivecolor,me),0!==f&&(E=(0,i.pluck)(A.positivehovercolor,ge.positivehovercolor,ge.plotfillhovercolor,ge.columnhovercolor,ae))):(ae=(0,i.pluck)(A.color,ge.negativecolor,me),0!==f&&(E=(0,i.pluck)(A.negativehovercolor,ge.negativehovercolor,ge.plotfillhovercolor,ge.columnhovercolor,ae))),ne=$<0?360-m:m,v=(0,i.pluck)(A.alpha,se.plotFillAlpha),L.dashed=J=(0,i.pluckNumber)(A.dashed,se.dashed),K=(0,i.pluckNumber)(A.dashlen,h),q=u=(0,i.pluckNumber)(A.dashgap,u),L.plotFillAlpha=v,L.plotBorderAlpha=k,L.showValue=(0,i.pluckNumber)(A.showvalue,se.showValues),L.setValue=S=$,L.setLink=(0,i.pluck)(A.link),L.toolTipValue=z=we.dataLabels(S,j),L.setDisplayValue=W=(0,i.getValidValue)((0,i.parseUnsafeString)(A.displayvalue)),L.displayValue=(0,i.pluck)(W,z),L.plotBorderDashStyle=C=1===J?(0,i.getDashStyle)(K,q):0===J?"none":w,L.shadow={opacity:se.showShadow?v/100:0},L.dataLabelStyle=this._configureDataLabelStyle(A),L.patternType=n.PATTERN_TYPES.includes(A.patterntype)?A.patterntype:se.patternType,L.patternAngle=(0,i.pluckNumber)(A.patternangle,ce.patternangle,ge.patternangle,L.patternType===n.PATTERN_TYPES[0]?40:0),L.patternDensity=(0,i.pluckNumber)(A.patterndensity,se.patternDensity),L.patternSize=(0,i.pluckNumber)(A.patternsize,ce.patternsize,L.patternType===n.PATTERN_TYPES[0]?2:4),L.patternAlpha=(0,i.pluckNumber)(A.patternalpha,se.patternAlpha),L.patternBgColor=(0,i.pluck)(A.patternbgcolor,se.patternBgColor),L.colorArr=D=(0,i.getColumnColor)(ae+","+x.replace(/,+?$/,""),v,b,ne,g,y,k.toString(),0,!1),0!==f&&(T=(0,i.pluck)(A.alpha,A.hoveralpha,ce.hoveralpha,ge.plotfillhoveralpha,ge.columnhoveralpha,v),!(F=(0,i.pluck)(A.hovergradientcolor,ce.hovergradientcolor,ge.plothovergradientcolor,x))&&(F=""),P=(0,i.pluck)(A.hoverratio,ce.hoverratio,A.ratio,ge.plothoverratio,b),_=(0,i.pluckNumber)(360-A.hoverangle,360-ce.hoverangle,360-ge.plothoverangle,ne),V=(0,i.pluck)(A.borderhovercolor,ce.borderhovercolor,ge.plotborderhovercolor,y),I=(0,i.pluck)(A.borderhoveralpha,ce.borderhoveralpha,ge.plotborderhoveralpha,k,v),B=(0,i.pluckNumber)(A.borderhoverthickness,ce.borderhoverthickness,ge.plotborderhoverthickness,p),M=(0,i.pluckNumber)(A.borderhoverdashed,ce.borderhoverdashed,ge.plotborderhoverdashed),O=(0,i.pluckNumber)(A.borderhoverdashgap,ce.borderhoverdashgap,ge.plotborderhoverdashgap,h),R=(0,i.pluckNumber)(A.borderhoverdashlen,ce.borderhoverdashlen,ge.plotborderhoverdashlen,u),G=M?(0,i.getDashStyle)(R,O):C,1===f&&E===me&&(E=(0,i.getLightColor)(E,70)),L.hoverColor=E,L.hoverAlpha=T,L.hoverBorderColor=V,L.hoverBorderAlpha=I,H=(0,i.getColumnColor)(E+","+F,T,P,_,g,V,I.toString(),0,!1),L.setRolloutAttr={fill:(0,i.toRaphaelColor)(D[0]),stroke:o&&(0,i.toRaphaelColor)(D[1]),"stroke-width":p,"stroke-dasharray":C},L.setRolloverAttr={fill:(0,i.toRaphaelColor)(H[0]),stroke:o&&(0,i.toRaphaelColor)(H[1]),"stroke-width":B,"stroke-dasharray":G}),r=L.toolTipValue,L.origToolText=s=(0,i.getValidValue)((0,i.parseUnsafeString)((0,i.pluck)(A.tooltext,ce.plottooltext,ge.plottooltext),!1)),ke?void 0!==s?(c=[1,2,3,5,6,7,20,21,24,25],l={formattedValue:r,label:Q,yaxisName:(0,i.parseUnsafeString)(ge.yaxisname),xaxisName:(0,i.parseUnsafeString)(ge.xaxisname),cumulativeValue:Fe,cumulativeDataValue:we.dataLabels(Fe),sum:we.dataLabels(Te),unformattedSum:Te},d=(0,i.parseTooltext)(s,c,l,A,ge,ce)):d=null!==r&&(""!==Q?Q+ye:""):d=!1,te.data.push({y:null===$?null:Fe,x:ie}),ie+=1,L.originalPlotColor=(0,i.hashify)(me),L.toolText=d,L.setTooltext=d,L._x=Y,L._y=S);for(se.maxValue=De,se.minValue=Ee,se.connectNullData=(0,i.pluckNumber)(ge.connectnulldata,0),se.showConnectors=(0,i.pluckNumber)(ge.showconnectors,1),t=ce.catData,Y=0;Y<t.length;Y+=1)a=t[Y],de.splice(a.index,0,a.data);this.getFromEnv("xAxis").setTickValues(de),this.config.maxminFlag=!1},a.createCoordinates=function(){var e,t,a,o,r,i,n,l,s=this.getFromEnv("chart").isBar,c=this.getFromEnv("yAxis"),d=this.getFromEnv("xAxis"),h=c.getAxisBase(),u=c.getPixel(h),p=this.getFromEnv("chartConfig"),g=p.xDepth||0,f=p.yDepth||0,m=this.components.data.length,v=this.groupManager,b=v&&v.stackConf,x=this.components.data;for(!s&&(g=-g),s&&(f=-f),o=0;o<m;o++)t=(e=x[o])&&e.config,void 0!==e&&(l=t._y,t.issum?t.isCumulative?a=null:(a=t.lastComTotal,l+=t.lastComTotal):(a=x[o-1]&&x[o-1].config.total)&&(l+=a),r=d.getPixel(b&&b[o].x||t._x)+g,i=c.getPixel(l)+f,n=(a?c.getPixel(a):u)+f,d.config.isVertical?(t._Px=i,t._Py=r,t._Pby=r,t._Pbx=n):(t._Px=r,t._Py=i,t._Pby=n,t._Pbx=r))},a.getDataLimits=function(){var e,t,a=this.components.data,o=this.config,r=a.length,i=-Infinity,n=+Infinity;for(e=0;e<r;e++)a[e]&&void 0!==(t=a[e].config.total)&&(i=Math.max(i,t),n=Math.min(n,t));return o.maxValue=i,o.minValue=n,{max:o.maxValue,min:o.minValue}},a.drawPlots=function(t){e.prototype.drawPlots.call(this,t),this.config.showConnectors?this.drawLine():this.getContainer("commonElemsGroup").hide()},a.drawLine=function(){var e,t,a,o,r,n,l,s,c=this.config,d=this.getFromEnv("yAxis"),h=d.getAxisBase(),u=d.getPixel(h),p=this.getContainer("commonElemsGroup"),g=this.getFromEnv("columnWidth")/2,f=c.zLine,m=f.data,v=m.length,b=f.lineWidth,x=this._graphics.zLine,k=null,y=[],C=[];for(d.yBasePos=u,p.toFront().show(),e=0;e<v;e+=1)null===(r=(o=m[e]).y)?(C.length=0,0===c.connectNullData&&(k=null)):(n=(0,i.pluckNumber)(o.x,e),t=d.getPixel(r),a=this.getFromEnv("xAxis").getPixel(n),a=(0,i.getCrispValue)(a,b,b).position,t=(0,i.getCrispValue)(t,b,b).position,null!==k?(C.length&&(y=y.concat(C),C.length=0),y.push("M",l,k,"m",-g,0,"H",a,"h",g,"m",0,t-k)):C.push("M",a,t),l=a,k=t);s=this.getFromEnv("animationManager").setAnimation({el:x||"path",attr:{path:y,"stroke-linecap":"round","stroke-opacity":1,"stroke-dasharray":f.dashStyle,stroke:f.color,"stroke-linejoin":b>=2?"round":"miter","stroke-width":b},container:p,component:this,label:"path"}),x||this.addGraphicalElement("zLine",s)},t}(n["default"]);t["default"]=d},1364:function(e,t,a){"use strict";var o=a(273);t.__esModule=!0,t["default"]=void 0;var r={"initial.dataset.waterFall2D":o(a(600))["default"]["initial.dataset.column"]};t["default"]=r},1365: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(616)),n=a(278),l=a(286),s=o(a(1366)),c=function(e){return null!=e},d="M",h=n.hasTouch?n.TOUCH_THRESHOLD_PIXELS:n.CLICK_THRESHOLD_PIXELS;(0,l.addDep)({name:"kagiAnimation",type:"animationRule",extension:s["default"]});var u=function(e){function t(){var t;return(t=e.call(this)||this).manageSpace=n.stubFN,t.drawCommonElements=n.stubFN,t}(0,r["default"])(t,e);var a=t.prototype;return a.getType=function(){return"dataset"},a.getName=function(){return"kagi"},a._parseShadowOptions=function(){var e=this.getFromEnv("chart").getFromEnv("dataSource").chart;return{opacity:(0,n.pluckNumber)(e.showshadow,1)?this.config.alpha/100:0}},a.configureAttributes=function(t){e.prototype.configureAttributes.call(this,t);var a,o,r,i,l,s,d,h,u,p,g,f,m,v,b,x,k,y,C,w,A,S,N,L,D,E,T,F,P,_,V,I,B,M,O,R=this.getFromEnv("chart"),G=0,H=[],z=0;for(a=this.components,r=a.data,i=this.config,l=this.config.JSONData.data,s=R.getFromEnv("dataSource").chart,o=a.removeDataArr||(a.removeDataArr=[]),d=!1,h=0,u=(0,n.pluckNumber)(s.reversalvalue,-1),p=(0,n.pluckNumber)(s.reversalpercentage,5),y=0;y<r.length;y+=1)r[y].config.__nullCount=z,null===r[y].config.setValue&&(o.push(r.splice(y,1)[0]),z++,y-=1);if(r.length){for(i.rallyColor=(0,n.pluck)(s.rallycolor,"FF0000"),i.rallyAlpha=(0,n.pluckNumber)(s.rallyalpha,s.linealpha,100),i.declineColor=(0,n.pluck)(s.declinecolor,"0000FF"),i.declineAlpha=(0,n.pluckNumber)(s.declinealpha,s.linealpha,100),i.canvasPadding=(0,n.pluckNumber)(s.canvaspadding,15),i.maxHShiftPercent=(0,n.pluckNumber)(s.maxhshiftpercent,10),i.rallyThickness=(0,n.pluckNumber)(s.rallythickness,s.linethickness,2),g=(0,n.pluckNumber)(s.rallydashlen,s.linedashlen,5),f=(0,n.pluckNumber)(s.rallydashgap,s.linedashgap,4),i.declineThickness=(0,n.pluckNumber)(s.declinethickness,s.linethickness,2),m=(0,n.pluckNumber)(s.declinedashlen,s.linedashlen,5),v=(0,n.pluckNumber)(s.declinedashgap,s.linedashgap,4),i.lineDashed={"true":(0,n.pluckNumber)(s.rallydashed,s.linedashed,0),"false":(0,n.pluckNumber)(s.declinedashed,s.linedashed,0)},i.rallyDashed=(0,n.pluckNumber)(s.rallydashed,s.linedashed,0)?(0,n.getDashStyle)(g,f):"none",i.declineDashed=(0,n.pluckNumber)(s.declinedashed,s.linedashed,0)?(0,n.getDashStyle)(m,v):"none",i.canvasPadding=(0,n.pluckNumber)(s.canvaspadding,this.canvasPadding,15),u=u>0?u:p*(i.maxValue-i.minValue)/100,b=r[0].config.setValue,x=function(e,t){for(var a,o=1,i=r[0].config.setValue;o<e;)a=r[o].config.setValue,t?a<=i&&(r[o].config.isDefined=!1):a>=i&&(r[o].config.isDefined=!1),o+=1;r[0].config.vAlign=t?"bottom":"top",r[0].config.align="center"},k=l.length,y=0,C=0;C<k;C+=1,y+=1)if((!(w=l[C])||!w.vline)&&(A&&(A=!1),(L=r[y]&&r[y].config)&&(L.isDefined=!0),y&&L)){if(L.isShift=void 0,S=r[y-1].config,L.vAlign="middle",L.align="right",L.showLabel=!1,N=null,T=L.setValue,D=r[y+1]&&r[y+1].config.setValue,E=Math.abs(b-T),d?T<P&&F?F=!1:T>_&&!F&&(F=!0):(T>b&&E>u?(P=b,_=null,V=!0,d=!0,x(y,F=!0)):T<b&&E>u?(P=null,_=b,V=!1,d=!0,x(y,F=!1)):(F=null,V=null,d=!1),c(S)&&(S.isRally=F),null!==F&&(r[0].config.isRally=F)),L.isRally=F,(V&&T<b||!V&&T>b)&&(N=b),B=N||T,E=Math.abs(B-D),I=null===V?null:V?B>D&&E>=u:B<D&&E>=u,S&&S.isShift)for(V?(P=b,O="bottom"):V||(_=b,O="top"),"center",M=y;M>1;M-=1)if(r[M].y===b){r[M].vAlign=O,r[M].align="center",r[M].showLabel=!0;break}I?(h+=1,A=!0,V=!V,L.isShift=!0,b=B,H.push(l[y+L.__nullCount]),G=this._appendCategory(G,y,H,0)):V&&T>b||!V&&T<b?b=T:N=b,L.plotValue=N,L.objParams={isRally:F,lastHigh:_,lastLow:P,isRallyInitialised:d}}this._appendCategory(G,y,H,1),H.push(w),this.getFromEnv("xAxis").setTickValues(H),i.shiftCount=h+1}},a._appendCategory=function(e,t,a,o){var r,i,l,s,c=e,d=this.config.JSONData.catData;if(c<d.length)for(r=c;r<d.length;c=r+=1){if(l=(i=d[r]).data,(s=i.index-(r+1))<t)l.lineposition=(0,n.pluckNumber)(l.lineposition,o);else if(s>t)break;a.push(l)}return c},a._getHoveredPlot=function(e,t){var a,o,r,i,n,l,s=e,c=t,d=this.getFromEnv("xAxis"),h=this.config,u=h.trackIndex,p=this.components.data,g=p.length;for(s+=d.getTranslation(),n=Math.floor(Math.max(d.getValue(s-h.maxRadius),0)),o=Math.ceil(Math.min(d.getValue(s+h.maxRadius),g-1));o>=n;o--)for(a=g=(l=u[o])&&l.length;a>=0;a--)if(r=l[a],i=this.isWithinShape(p[r],r,s,c))return i},a.getClip=function(e){var t=this.getFromEnv("chart").getChildren("canvas")[0].config,a=[t.canvasLeft,t.canvasTop,0,t.canvasTop+t.canvasHeight];return a[2]+="init"===e?0:t.canvasLeft+t.canvasWidth,a},a.parsePlotAttributes=function(e,t){var a,o,r,i,l,s,c,d,u,p,g,f,m=t,v=e,b={},x=this.getState("visible");v=v.config,g=(l=this.components.data[m]).config,a=v.trackerConfig={},u=g.hoverEffects,o=l._xPos=this.getFromEnv("xAxis").getPixel(v.plotX),r=l._yPos=v.plotY,l._index=v.plotX,p=(b=g.anchorProps).symbol,v.finalTooltext=v.toolText,void 0!==r&&!isNaN(r)&&v.isDefined&&(i=v.eventArgs=v.eventArgs||{},Object.assign(i,{index:m,link:g.setLink,value:g.setValue,displayValue:g.displayValue,categoryLabel:g.label,toolText:v.finalTooltext,id:this.config.userID,datasetIndex:0,datasetName:this.config.JSONData.seriesname,visible:x,color:g.color,alpha:g.alpha,anchorBgColor:b.bgColor,anchorBgAlpha:b.anchorBgAlpha,anchorAlpha:b.anchorAlpha,anchorBorderColor:b.borderColor,anchorBorderThickness:b.borderThickness,anchorRadius:b.radius,anchorSides:b.sides,anchorStartAngle:b.startAngle,anchorHoverColor:u.anchorColor,anchorHoverAlpha:u.anchorAlpha,anchorHoverSides:u.anchorSides,dashed:g.dashed,valuePosition:g.valuePosition}),s=c={},b.imageUrl&&(g.anchorImageLoaded=!1),f={path:(0,n.polyPathToPath)([p[1]||2,o,r,b.radius,b.startAngle,0]),fill:(0,n.toRaphaelColor)({color:b.bgColor,alpha:b.bgAlpha}),stroke:(0,n.toRaphaelColor)({color:b.borderColor,alpha:b.borderAlpha}),"stroke-width":b.borderThickness,visibility:b.radius?x:"hidden"},d=Math.max(b.radius,u&&u.anchorRadius||0,h)+b.borderThickness/2,a.trackerRadius=d,u.enabled&&(c={path:(0,n.polyPathToPath)([u.anchorSides||2,o,r,u.anchorRadius,u.startAngle,u.dip]),fill:(0,n.toRaphaelColor)({color:u.anchorColor,alpha:u.anchorBgAlpha}),stroke:(0,n.toRaphaelColor)({color:u.anchorBorderColor,alpha:u.anchorBorderAlpha}),"stroke-width":u.anchorBorderThickness},s={path:(0,n.polyPathToPath)([b.sides,o,r,b.radius,b.startAngle,0]),fill:(0,n.toRaphaelColor)({color:b.bgColor,alpha:b.bgAlpha}),stroke:(0,n.toRaphaelColor)({color:b.borderColor,alpha:b.borderAlpha}),"stroke-width":b.borderThickness},u.attrs={hoverEnabled:u.enabled,anchorRadius:b.radius,anchorHoverRadius:u.anchorRadius},u.attrs.setRolloverAttr=c,u.attrs.setRolloutAttr=s,b.isAnchorHoverRadius=u.attrs.anchorRadius)),v.props={element:{attr:f}}},a.parseLabelAttributes=function(e,t){var a,o,r,i,l,s,d,h,u,p,g,f,m,v,b,x,k=this.getFromEnv("chart"),y=k.config,C=k.config.dataLabelStyle,w=n.BLANKSTRING,A=y.rotatevalues?270:0,S=y.canvasTop,N=S+y.canvasHeight,L={},D={},E=t,T=this.components.data.length;b=(u=e&&e.config)&&u.setValue,void 0!==e&&null!=b&&!0!==u.labelSkip?(t>0&&(D={x:this.components.data[E-1]._xPos,y:this.components.data[E-1]._yPos}),t<T-1&&(L={x:this.components.data[E+1]._xPos,y:this.components.data[E+1]._yPos}),r=e.graphics,f=e._yPos||e.config._Py,g=e._xPos||e.config._Px,m=r.element?r.image&&.5*r.element.attr("height")||u.anchorProps.radius-3:0,a=u.valuePadding+2+m,w=u.displayValue,c(w)&&""!==w&&u.showValue&&(x={text:w,fill:(v=u.dataLabelStyle).color,"text-bound":[v.backgroundColor,v.borderColor,C.borderThickness,C.borderPadding,C.borderRadius,C.borderDash]},o=this.getFromEnv("smartLabel").getOriSize(w),A?(u._state={labelWidth:o.height,labelHeight:o.width},u._rotated=!0):(u._state={labelWidth:o.width,labelHeight:o.height},u._rotated=!1),i=l=A?o.width:o.height,i+=a,h=.5*l+a,s=f,d=g,i+=4,p=Number(A)>=1?o.height:o.width,u._valueBelowPoint=0,L.y>s?D.y<s?d-=a+3+.5*p:f-i<S?(d-=a+3+.5*p,s=S+i/2):s-=h:D.y>s?d-=a+3+.5*p:f+i>N?(d-=a+3+.5*p,s=N-i/2):(s+=h+2,u._valueBelowPoint=1),x.x=d,x.y=s),u.props=u.props||{},u.props.label={attr:x}):u&&delete u.labelSkip},a.allocatePosition=function(){var e,t,a,o,r,i,l,s,c,h=this,u=h.config,p=h.components.data,g=p&&p.length,f=h.getFromEnv("xAxis"),m=h.components.data,v=f.getPixel(0),b=f.getPixel(1)-v,x={"true":u.rallyThickness,"false":u.declineThickness},k=f.getPixel(0),y=p[0]&&!!p[0].isRally,C=v-b/2;if(u.imagesLoaded=0,p.length){if(a=u.rallyPath=[],o=u.declinePath=[],m=h.components.data=m||[],p[0].config.setValue)i=p[0].config.plotY;else for(e=1;e<g;e+=1)if(p[e].config.setValue){i=p[e].config.plotY;break}for(y=!!p[0].config.isRally,l=Math.round(i)+x[y]%2/2,y?a.push(d,C,l,"H",k):o.push(d,C,l,"H",k),(0,n.fcEach)(p,(function(e,n){var l=e;l=l.config,t=m[n],t.config.setValue,(s=p[n+1]&&p[n+1].config||{})&&(c=[d,k,i],y=l.isRally,l.isShift&&(k+=b,i=l.graphY,c.push("H",k),c[2]=Math.round(c[2])+x[y]%2/2,c=c.toString(),y?a.push(c):o.push(c),c=[d,k,i]),s.isChanged&&(i=s.ty,c.push("V",i),c[1]=Math.round(c[1])+x[!!y]%2/2,c=c.toString(),y?a.push(c):o.push(c),c=[d,k,i]),r=s.isRally,s.graphY!==c[2]&&void 0!==s.graphY&&(c.push("V",s.graphY),c[1]=Math.round(c[1])+x[!!r]%2/2,c=c.toString(),r?a.push(c):o.push(c)),s.graphY&&(i=s.graphY)),h.parsePlotAttributes(t,n)})),e=0;e<p.length;e++)h.parseLabelAttributes(m[e],e)}},a.drawPlots=function(){var e,t,a,o,r,i,l,s,c,d,h=this,u=h.getGraphicalElement(),p=h.getFromEnv("animationManager"),g=h.config,f=g.trackIndex={},m=h.components.data,v=h.components.data,b=g.shadow,x={},k=g.rallyThickness,y=g.declineThickness,C={stroke:(0,n.toRaphaelColor)({color:g.rallyColor,alpha:g.rallyAlpha}),"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":k,"stroke-dasharray":g.rallyDashed},w={stroke:(0,n.toRaphaelColor)({color:g.declineColor,alpha:g.declineAlpha}),"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":y,"stroke-dasharray":g.declineDashed},A=u.rallyElem,S=u.declineElem,N=h.getContainer("commonElemsGroup"),L=h.getContainer("plotGroup"),D=h.getContainer("shadowGroup");if(!m.length)return l&&l.hide(),void(s&&s.hide());l&&l.show(),s&&s.show(),(0,n.fcEach)(m,(function(n,l){var s=n;s=s.config,o=v[l],i=o.config,e=o.graphics,d=e.image,r=i.hoverEffects,t=o._yPos,f[s.plotX]||(f[s.plotX]=[]),f[s.plotX].push(l),o._index=s.plotX,x=i.anchorProps,void 0!==t&&!isNaN(t)&&s.isDefined?(x.imageUrl?h.drawAnchorImage(o):(d&&d.hide(),a=e.element,c=s.props.element.attr,(a=e.element=p.setAnimation({el:a||"path",attr:c,container:L,component:h,label:"anchor"})).show().shadow(x.shadow,D).data("anchorRadius",x.radius).data("anchorHoverRadius",r.anchorRadius).data("hoverEnabled",r.enabled).data("eventArgs",s.eventArgs)),r.enabled&&a&&a.data("anchorRadius",x.radius).data("anchorHoverRadius",r.anchorRadius).data("hoverEnabled",r.enabled).data("setRolloverAttr",r.attrs.setRolloverAttr).data("setRolloutAttr",r.attrs.setRolloutAttr).data("eventArgs",s.eventArgs)):(e.element&&e.element.hide(),d&&d.hide())})),C.path=g.rallyPath,(l=p.setAnimation({el:A||"path",attr:C,container:N,component:h,label:"line"})).shadow(k&&b,D),A||h.addGraphicalElement("rallyElem",l),w.path=g.declinePath,(s=p.setAnimation({el:S||"path",attr:w,container:N,component:h,label:"line"})).shadow(y&&b,D),S||h.addGraphicalElement("declineElem",s)},t}(i["default"]);t["default"]=u},1366:function(e,t,a){"use strict";var o=a(273);t.__esModule=!0,t["default"]=void 0;var r={"*.dataset.kagi":o(a(619))["default"]["*.dataset.line"]};t["default"]=r},1367:function(e,t,a){"use strict";var o=a(273);t.__esModule=!0,t["default"]=void 0;var r=o(a(1362))["default"];t["default"]=r},1368:function(e,t,a){"use strict";var o=a(273);t.__esModule=!0,t["default"]=void 0;var r=o(a(1369))["default"];t["default"]=r},1369:function(e,t,a){"use strict";(function(e){var o=a(273);t.__esModule=!0,t["default"]=void 0;var r=o(a(292)),i=a(278),n=o(a(719)),l=o(a(1370)),s=a(286),c=a(1345),d=o(a(443)),h=(0,s.getDep)("redraphael","plugin"),u="rgba(192,192,192,"+(i.isIE?.002:1e-6)+")",p=Math.PI/180,g=function(e){return Object.keys(e).length},f="M",m="L",v="t";function b(e){var t,a=e.chart,o=a.getFromEnv("paper"),r=a.config,n=a.getChildren("yAxis")[0],l=a.getChildren("xAxis")[0],s=e.selectionLeft,c=e.selectionTop,d=e.selectionWidth,h=e.selectionHeight,p=s+d,g=c+h,f=d>15&&h>15,m={resizeEleRadius:15,canvasTop:r.canvasTop,canvasRight:r.canvasLeft+r.canvasWidth,canvasLeft:r.canvasLeft,canvasBottom:r.canvasTop+r.canvasHeight},b=r._selectEleArr||(r._selectEleArr=[]);m.index=b.length,m.id="SELECT_"+m.index,m.selectBoxG=t=o.group("selection-box",a.getChildContainer("trackerGroup")).toFront(),m.selectBoxTracker=o.rect(s,c,d,h,t).attr({"stroke-width":1,stroke:(0,i.toRaphaelColor)(r.selectBorderColor),fill:r.selectFillColor}).css({cursor:"move"}),m.selectBoxTracker.node._isTrackerElem=!0,m.selectBoxTracker.data("config",{position:6,selectEleObj:m,chart:a,xChange:!0,yChange:!0}),m.topTracker=o.rect(s,c-6,d,12,t).attr({"stroke-width":0,fill:u}).css("cursor",i.hasSVG?"ns-resize":"n-resize"),m.topTracker.node._isTrackerElem=!0,m.topTracker.data("config",{position:1,selectEleObj:m,yChange:!0,chart:a}),m.rightTracker=o.rect(s+d-6,c,12,h,t).attr({"stroke-width":0,fill:u}).css("cursor",i.hasSVG?"ew-resize":"w-resize"),m.rightTracker.node._isTrackerElem=!0,m.rightTracker.data("config",{position:2,chart:a,selectEleObj:m,xChange:!0}),m.bottomTracker=o.rect(s,c+h-6,d,12,t).attr({"stroke-width":0,fill:u}).css("cursor",i.hasSVG?"ns-resize":"n-resize"),m.bottomTracker.node._isTrackerElem=!0,m.bottomTracker.data("config",{position:3,chart:a,selectEleObj:m,yChange:!0}),m.leftTracker=o.rect(s-6,c,12,h,t).attr({"stroke-width":0,fill:u}).css("cursor",i.hasSVG?"ew-resize":"e-resize"),m.leftTracker.node._isTrackerElem=!0,m.leftTracker.data("config",{position:4,chart:a,selectEleObj:m,xChange:!0}),m.cornerInnerSymbol=o.symbol("resizeIcon",0,0,15,t).attr({transform:v+p+","+g,"stroke-width":1,visibility:f?"visible":"hidden",stroke:"#999999"}),m.cornerInnerSymbol.node._isTrackerElem=!0,m.cornerOuterSymbol=o.symbol("resizeIcon",0,0,-12,t).attr({transform:v+p+","+g,strokeWidth:1,visibility:f?"hidden":"visible",stroke:"#777777"}),m.cornerOuterSymbol.node._isTrackerElem=!0,m.resizeTracker=o.circle(p,g,12,t).attr({"stroke-width":1,stroke:u,fill:u}).css("cursor",i.hasSVG?"nwse-resize":"nw-resize"),m.resizeTracker.node._isTrackerElem=!0,m.resizeTracker.data("config",{position:5,chart:a,selectEleObj:m,yChange:!0,xChange:!0}),m.closeButton=o.symbol("closeIcon",0,0,6,t).attr({transform:"t"+p+","+c,"stroke-width":2,stroke:r.selectionCancelButtonBorderColor,fill:r.selectionCancelButtonFillColor,"stroke-linecap":"round","stroke-linejoin":"round"}).css({cursor:"pointer",_cursor:"hand"}).on("fc-click",(function(){a.deleteSelection(this,a)})),m.closeButton.node._isTrackerElem=!0,m.closeButton.data("config",{chart:a,index:m.index}),m.startX=l.getValue(s),m.startY=n.getValue(c),m.endX=l.getValue(p),m.endY=n.getValue(g),m.isVisible=!0,b.push(m),a.bindDragEvent(m)}function x(e,t){var a,o,r,i,n,l=e.data("config").index,s=t.config._selectEleArr,c=t.getChildren("xAxis")[0],d=t.getChildren("yAxis")[0];for(r in n={selectionLeft:(i=(a=s.find((function(e){return e.index===l}))).selectBoxTracker.getBBox()).x,selectionTop:i.y,selectionWidth:i.width,selectionHeight:i.height,startXValue:c.getValue(i.x,1),startYValue:d.getValue(i.y,1),endXValue:c.getValue(i.x+i.width,1),endYValue:d.getValue(i.y+i.height,1),data:t.getCollatedData(),id:a.id},a)a.hasOwnProperty(r)&&((o=a[r]).remove&&o.remove(),delete a[r]);s=s.filter(g),t.fireChartInstanceEvent("selectionRemoved",n)}(0,d["default"])(h),h.addSymbol({resizeIcon:function(e,t,a){var o,r=a,n=e,l=t,s=(0,i.pluckNumber)(r,15)/3,c=[];for(s<0&&(n+=(r=-r)-(s=-s)/2,l+=r-s/2),o=3;o>0;o-=1)c.push(f,n-s*o,l-3,m,n-3,l-s*o);return c},closeIcon:function(e,t,a){var o=e,r=t,i=1.3*a,n=43*p,l=48*p,s=o+i*Math.cos(n),c=r+i*Math.sin(n),d=.71*(a-2),h=.71*(a-2),u=function(e,t,a,o,r,i){return["A",a,o,0,i,r,e,t]}(o+i*Math.cos(l),r+i*Math.sin(l),i,i,0,1);return[f,s,c].concat(u).concat([f,e+d,t-h,m,e-d,t+h,f,e-d,t-h,m,e+d,t+h])},configureIcon:function(e,t,a){var o=.5,r=a-1,i=.25,n=.71*r,l=.71*(r+2),s=e-r,c=t-r,d=e+r,h=t+r,u=e+o,p=t+o,g=e-o,v=t-o,b=s-2,x=c-2,k=d+2,y=h+2,C=e+n,w=t+n,A=e-n,S=t-n,N=e+l,L=t+l,D=e-l,E=t-l;return[f,s,p,m,b,p,b,v,s,v,A-i,S+i,D-i,E+i,D+i,E-i,A+i,S-i,g,c,g,x,u,x,u,c,C-i,S-i,N-i,E-i,N+i,E+i,C+i,S+i,d,v,k,v,k,p,d,p,C+i,w-i,N+i,L-i,N-i,L+i,C-i,w+i,u,h,u,y,g,y,g,h,A+i,w+i,D+i,L+i,D-i,L-i,A-i,w-i,"Z"]},axisIcon:function(e,t,a){var o=a-1,r=.33*o,i=o/2,n=e-o,l=t-o,s=e+i,c=t+o,d=e-i,h=t+r,u=t-r;return[f,n,l,m,s,l,s,c,n,c,f,d,h,m,s,h,f,d,u,m,s,u]},loggerIcon:function(e,t,a){var o=a-1,r=t-o,i=e-o,n=i+2*o,l=i+2,s=n-2,c=r+2,d=c+o,h=d+2;return[f,i,r,m,n,r,n,c,s,c,s,d,n,d,n,h,i,h,i,d,l,d,l,c,i,c,i,r]}});var k=function(t){(0,r["default"])(o,t),o.getName=function(){return"SelectScatter"};var a=o.prototype;function o(){var e;return(e=t.call(this)||this).isXY=!0,e.defaultZeroPlaneHighlighted=!1,e.eiMethods={getData:function(e){var t=this.apiInstance;return t&&t.getData(e)},restoreData:function(){var e=this.apiInstance;return e&&e.restoreData()},submitData:function(){var e=this.apiInstance;return e&&e.submitData()}},e}return a.parseChartAttr=function(e){t.prototype.parseChartAttr.call(this,e),this.config.formBtnTitle=(0,i.pluck)(e.chart.submittext,e.chart.formbtntitle,"Submit"),this.config.restoreBtnTitle=(0,i.pluck)(e.chart.restoretext,e.chart.restorebtntitle,"Restore")},a.getName=function(){return"SelectScatter"},a.configureAttributes=function(e){var a=this.getFromEnv("chart").config,o=this.getFromEnv("dataSource").chart||{};a.formAction=(0,i.getValidValue)(o.formaction),a.enableSubmit=(0,i.pluckNumber)(o.enablesubmit,o.showformbtn,1)&&a.formAction,a.enableRestore=(0,i.pluckNumber)(o.enablerestore,o.showrestorebtn,1),t.prototype.configureAttributes.call(this,e)},a.__setDefaultConfig=function(){t.prototype.__setDefaultConfig.call(this);var e=this.config;e.hasLegend=!0,e.defaultDatasetType="selectScatter",e.allowreversexaxis=!0,e.enablemousetracking=!0},a.attachMenuButtons=function(){t.prototype.attachMenuButtons.call(this);var e,a=this,o=a.getFromEnv("chartConfig"),r=a.getFromEnv("toolbar"),i=r.getChild("hamburgerMenu-"+r.getId()+"-"+a.getId()+"-0"),n=[];o.enableRestore&&n.push({name:o.restoreBtnTitle,handler:function(){a.restoreData()},action:"click"}),o.enableSubmit&&(e={name:o.formBtnTitle,handler:function(){c.submitData.call(a)},action:"click"},n.push(e)),n.length>0&&i.appendInMenu(n)},a.getData=function(t){var a,o,r,n=this.getCollatedData(),l=[],s=n.dataset,c=s&&s.length||0,d=0,h=0;if(t)l=/^json$/gi.test(t)?n:/^csv$/gi.test(t)?this.getCSVString():e.core.transcodeData(n,"json",t);else for(;d<c;d+=1)if(o=s[d]){for((r=a=(o=s[d]&&s[d].data)&&o.length||0)&&(l[h]||(l[h]=[(0,i.getValidValue)(s[d].id,"null")]));r--;)l[h][r+1]=(0,i.getValidValue)(o[r].id,"null");a&&(h+=1)}return l},a.getCSVString=function(){for(var e=this.getData(),t=e.length;t--;)e[t]=e[t].join(",");return e.join("|")},a.getCollatedData=function(e){var t,a,o,r,n,l,s,c,d,h,u,p=this.getDatasets(),g=this.config._selectEleArr,f=g&&g.length||0,m=e||this.getFromEnv("dataSource"),v=(0,i.extend2)({},m),b=v.dataset,x=b&&b.length,k=!1,y=[];if(!f||!x)return m;for(;f--;)if(r=g[f])for(c=r.startX,d=r.endX,h=r.startY,u=r.endY,n=x;n--;)if(p[n].getState("visible"))for(y[n]||(y[n]={data:[]}),s=(o=b[n].data)&&o.length;s--;)t=(l=o[s]).x,a=l.y,t>c&&t<d&&a<h&&a>u&&(y[n].data[s]=k=!0);for(;x--;)for(s=(o=b[x].data)&&o.length;s--;)y[x]&&y[x].data[s]||o.splice(s,1);return k?v:m},a.createSelectionBox=function(e){b.call(this,e)},a._deleteAllSelection=function(){var e,t,a,o,r,i=this.config._selectEleArr;if(i){for(t=0,a=i.length;t<a;t++)for(r in e=i[t])e.hasOwnProperty(r)&&((o=e[r]).remove&&o.remove(),delete e[r]);delete this.config._selectEleArr}},a.deleteSelection=function(e,t){x.call(this,e,t)},a.bindDragEvent=function(e){var t;for(t in e)/Tracker/.test(t)&&e[t].drag(this.move,this.start,this.up)},a.start=function(){var e=this.data("config").selectEleObj,t=e.topTracker,a=e.rightTracker,o=e.bottomTracker,r=e.leftTracker,i=e.resizeTracker,n=t.data("config"),l=a.data("config"),s=o.data("config"),c=r.data("config"),d=i.data("config"),h=e.selectBoxTracker.data("config"),u=e.selectBoxTracker.getBBox();n.ox=u.x,n.oy=u.y,l.ox=u.x2,l.oy=u.y,s.ox=u.x,s.oy=u.y2,c.ox=u.x,c.oy=u.y,n.ox=u.x,n.oy=u.y,d.ox=u.x2,d.oy=u.y2,h.ox=u.x,h.oy=u.y,h.ow=u.width,h.oh=u.height,h.ox2=u.x2,h.oy2=u.y2,e.selectBoxG.toFront(),t.hide(),a.hide(),o.hide(),r.hide(),i.hide(),this.show()},a.move=function(e){var t,a,o,r,i=this.data("config"),n=i.selectEleObj,l=i.chart,s=n.topTracker,c=n.rightTracker,d=n.bottomTracker,h=n.leftTracker,u=n.resizeTracker,p=n.selectBoxTracker,g=n.canvasLeft,f=n.canvasRight,m=n.canvasTop,v=n.canvasBottom,b=l.getChildren("xAxis")[0],x=l.getChildren("yAxis")[0],k=p.data("config"),y={},C=e.data[0],w=e.data[1];switch(C=i.xChange?C:0,w=i.yChange?w:0,o=C+i.ox,r=w+i.oy,o=Math.min(f-(i.ow||0),Math.max(o,g)),r=Math.min(v-(i.oh||0),Math.max(r,m)),i.position){case 1:y.y=Math.min(k.oy2,r),y.height=Math.abs(k.oy2-r)||1,s.attr({y:r+-6});break;case 2:y.x=Math.min(k.ox,o),y.width=Math.abs(k.ox-o)||1,c.attr({x:o+-6});break;case 3:y.y=Math.min(k.oy,r),y.height=Math.abs(k.oy-r)||1,d.attr({y:r+-6});break;case 4:y.x=Math.min(k.ox2,o),y.width=Math.abs(k.ox2-o)||1,h.attr({x:o+-6});break;case 5:y.x=Math.min(k.ox,o),y.width=Math.abs(k.ox-o)||1,y.y=Math.min(k.oy,r),y.height=Math.abs(k.oy-r)||1,u.attr({cx:o,cy:r});break;default:y.x=o,y.y=r}this.data("dragStarted")||(a={selectionLeft:(t=p.getBBox()).x,selectionTop:t.y,selectionWidth:t.width,selectionHeight:t.height,startXValue:b.getValue(t.x),startYValue:x.getValue(t.y),endXValue:b.getValue(t.x+t.width),endYValue:x.getValue(t.y+t.height),id:n.id},l.fireChartInstanceEvent("BeforeSelectionUpdate",a),this.data("dragStarted",1)),p.animate(y),n.isVisible&&(n.closeButton.hide(),n.cornerInnerSymbol.hide(),n.cornerOuterSymbol.hide(),n.isVisible=!1)},a.up=function(){var e,t,a=this,o=a.data("config"),r=o.selectEleObj,i=o.chart,n=i.getChildren("xAxis")[0],l=i.getChildren("yAxis")[0],s=r.topTracker,c=r.rightTracker,d=r.bottomTracker,h=r.leftTracker,u=r.resizeTracker,p=r.selectBoxTracker;setTimeout((function(){e=p.getBBox(),r.startX=n.getValue(e.x),r.startY=l.getValue(e.y),r.endX=n.getValue(e.x2),r.endY=l.getValue(e.y2),s.attr({x:e.x,y:e.y+-6,width:e.width}),c.attr({x:e.x2+-6,y:e.y,height:e.height}),d.attr({x:e.x,y:e.y2+-6,width:e.width}),h.attr({x:e.x+-6,y:e.y,height:e.height}),u.attr({cx:e.x2,cy:e.y2}),r.closeButton.transform(v+e.x2+","+e.y),r.cornerInnerSymbol.transform(v+e.x2+","+e.y2),r.cornerOuterSymbol.transform(v+e.x2+","+e.y2),r.closeButton.show(),e.width<15||e.height<15?(r.cornerInnerSymbol.hide(),r.cornerOuterSymbol.show()):(r.cornerInnerSymbol.show(),r.cornerOuterSymbol.hide()),r.isVisible=!0,s.show(),c.show(),d.show(),h.show(),u.show(),a.data("dragStarted")&&(t={selectionLeft:e.x,selectionTop:e.y,selectionWidth:e.width,selectionHeight:e.height,startXValue:n.getValue(e.x),startYValue:l.getValue(e.y),endXValue:n.getValue(e.x+e.width),endYValue:l.getValue(e.y+e.height),data:i.getCollatedData(),id:r.id},i.fireChartInstanceEvent("SelectionUpdated",t),a.data("dragStarted",0))}),100)},a.restoreData=function(){var e,t=[];for(this.iterateComponents((function(e){e.getType&&"dataset"===e.getType()&&t.push(e)})),this._deleteAllSelection(),e=0;e<t.length;e++)t[e].asyncDraw();return this.fireChartInstanceEvent("dataRestored",{}),!0},a._postSpaceManagement=function(){t.prototype._postSpaceManagement.call(this),this._deleteAllSelection()},a.getDSdef=function(){return l["default"]},a.getDSGroupdef=function(){},o}(n["default"]);t["default"]=k}).call(this,a(6))},1370: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(723)),n=a(278),l=a(286),s=o(a(1371)),c=n.preDefStr.altHGridColorStr,d=n.preDefStr.altHGridAlphaStr;(0,l.addDep)({name:"selectScatterAnimation",type:"animationRule",extension:s["default"]});var h=function(e){function t(){return e.apply(this,arguments)||this}(0,r["default"])(t,e);var a=t.prototype;return a.getType=function(){return"dataset"},a.getName=function(){return"selectScatter"},a.configure=function(t){e.prototype.configure.call(this,t);var a=this.getFromEnv("chart"),o=a.config,r=a.getFromEnv("dataSource").chart,i=this.getFromEnv("color-manager"),s=(0,n.pluck)(r.selectbordercolor,i.getColor("canvasBorderColor")),h=(0,n.pluckNumber)(r.selectborderalpha,i.getColor("canvasBorderAlpha"));o.selectBorderColor={FCcolor:{color:s,alpha:h}},o.selectFillColor=(0,n.convertColor)((0,n.pluck)(r.selectfillcolor,i.getColor(c)),(0,n.pluckNumber)(r.selectfillalpha,i.getColor(d))),o.selectionCancelButtonBorderColor=(0,n.convertColor)((0,n.pluck)(r.selectioncancelbuttonbordercolor,s),(0,n.pluckNumber)(r.selectioncancelbuttonborderalpha,h)),o.selectionCancelButtonFillColor=(0,n.convertColor)((0,n.pluck)(r.selectioncancelbuttonfillcolor,"FFFFFF"),(0,n.pluckNumber)(r.selectioncancelbuttonfillalpha,100)),o.connativeZoom=!1,o.zoomType="xy",r.submitdataasxml!==n.ZEROSTRING||r.formdataformat||(r.formdataformat=(0,l.getDepsByType)("transcoder").csv&&"csv"),o.formDataFormat=(0,n.pluck)(r.formdataformat),o.formTarget=(0,n.pluck)(r.formtarget,"_self"),o.formMethod=(0,n.pluck)(r.formmethod,"POST"),o.submitFormAsAjax=(0,n.pluckNumber)(r.submitformusingajax,1)},a.draw=function(){e.prototype.draw.call(this);var t=this.getFromEnv("chart"),a=t.getFromEnv("chart-container"),o=this.getFromEnv("xAxis"),r=this.getFromEnv("yAxis");(0,n.bindSelectionEvent)(t,{selectionStart:function(e){var i=(0,n.getMouseCoordinate)(a,e.originalEvent,t),l=(0,n.extend2)({selectionLeft:e.selectionLeft,selectionTop:e.selectionTop,selectionWidth:e.selectionWidth,selectionHeight:e.selectionHeight,startXValue:o.getValue(e.selectionLeft,1),startYValue:r.getValue(e.selectionTop,1)},i);e.chart.fireChartInstanceEvent("selectionStart",l)},selectionEnd:function(e){var i=(0,n.getMouseCoordinate)(a,e.originalEvent,t),l=(0,n.extend2)({selectionLeft:e.selectionLeft,selectionTop:e.selectionTop,selectionWidth:e.selectionWidth,selectionHeight:e.selectionHeight,startXValue:o.getValue(e.selectionLeft,1),startYValue:r.getValue(e.selectionTop,1),endXValue:o.getValue(e.selectionLeft+e.selectionWidth,1),endYValue:r.getValue(e.selectionTop+e.selectionHeight,1)},i);e.chart.fireChartInstanceEvent("selectionEnd",l),e.chart.createSelectionBox(e)}})},t}(i["default"]);t["default"]=h},1371:function(e,t,a){"use strict";var o=a(273);t.__esModule=!0,t["default"]=void 0;var r={"*.dataset.selectScatter":o(a(619))["default"]["*.dataset.line"]};t["default"]=r},1372:function(e,t,a){"use strict";var o=a(273);t.__esModule=!0,t["default"]=void 0;var r=o(a(1373))["default"];t["default"]=r},1373: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(524)),n=o(a(1374)),l=function(e){function t(){var t;return(t=e.call(this)||this).defaultPaletteOptions=null,t.registerFactory("dataset",n["default"],["canvas"]),t}(0,r["default"])(t,e),t.getName=function(){return"MultilevelPie"};var a=t.prototype;return a.getName=function(){return"MultilevelPie"},a.__setDefaultConfig=function(){e.prototype.__setDefaultConfig.call(this);var t=this.config;t.is3D=!1,t.hasLegend=!1,t.defaultDatasetType="multiLevelPie",t.valuefontbold=0,t.skipCanvasDrawing=!0},a._checkInvalidSpecificData=function(){var e=this.getFromEnv("dataSource").category;if(!e||!e[0]||!Array.isArray(e))return!0},a._spaceManager=function(){var e,t=this.config;this._allocateSpace(this._manageActionBarSpace&&this._manageActionBarSpace(.225*t.availableHeight)||{}),e=.7*t.canvasHeight,this._manageChartMenuBar(e),this.allocateDimensionOfChartMenuBar()},t}(i["default"]);t["default"]=l},1374:function(e,t,a){"use strict";var o=a(273);t.__esModule=!0,t["default"]=function(e){var t,a,o,n={};t=e.config.categories=e.getFromEnv("dataSource").category||[],a=t.length,!o&&a&&(n=t,o=a);if(!a)return void e.setChartMessage();(0,r.datasetFactory)(e,i["default"],"dataset",o,[n])};var r=a(278),i=o(a(1375))},1375: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(649)),n=a(599),l=a(278),s=a(286),c=o(a(1376)),d=a(290),h=o(a(391)),u=(0,s.getDep)("redraphael","plugin"),p=/^[0-9]+\%?$|^([0-9]+[.][0-9]+)\%?$/;(0,s.addDep)({name:"multilevelpieAnimation",type:"animationRule",extension:c["default"]}),(0,h["default"])(u);var g=function(e){function t(){var t;return(t=e.call(this)||this).components={data:[]},t.graphics={},t}(0,r["default"])(t,e);var a=t.prototype;return a.getType=function(){return"dataset"},a.getName=function(){return"multiLevelPie"},a.configureAttributes=function(e){if(!e)return!1;this.config.JSONData=e;var t,a,o,r=this.getFromEnv("chart"),i=r.config,s=this.config||(this.config={}),c=s.dataLabelOptions||(s.dataLabelOptions={}),d=s.piePlotOptions,h=r.config.style,u=r.getFromEnv("dataSource").chart,g=(0,l.pluckNumber)(-u.centerangle,180),f=(0,l.pluckNumber)(u.totalangle,360),m=function(e,t){for(var a=e;a.graphics.element;)a.graphics.element.attr({fill:"mouseover"===t?s.hoverFillColor:(a.config||this.data("plotItem")).color}),a=a.config.parent},v=function x(e,t){var a;for(e.graphics.element.attr({fill:"mouseover"===t?s.hoverFillColor:(e.config||this.data("plotItem")).color}),a=0;a<(e.components.data&&e.components.data.length);a++)x.call(this,e.components.data[a],t)},b=function(e){if(s.useHoverColor){var t=this.data("plotItem"),a=t.selfRef;s.highlightParentPieSlices||s.highlightChildPieSlices?!s.highlightParentPieSlices&&s.highlightChildPieSlices?v.call(this,a,e):s.highlightParentPieSlices&&!s.highlightChildPieSlices?m.call(this,a,e):s.highlightParentPieSlices&&s.highlightChildPieSlices&&(m.call(this,a,e),v.call(this,a,e)):a.graphics.element.attr({fill:"mouseover"===e?s.hoverFillColor:(a.config||t).color})}};s.usePattern=(0,l.pluckNumber)(i.usePattern,0),s.patternType=n.PATTERN_TYPES.includes(e.patterntype)?e.patterntype:i.patternType,s.patternDensity=(0,l.pluckNumber)(e.patterndensity,i.patternDensity),s.patternAlpha=(0,l.pluckNumber)(e.patternalpha,i.patternAlpha),s.patternBgColor=(0,l.pluck)(e.patternbgcolor,s.patternBgColor),s.enableAnimation=(0,l.pluckNumber)(u.animation,u.defaultanimation,1),s.animation=!!s.enableAnimation&&{duration:1e3*(0,l.pluckNumber)(u.animationduration,u.moveduration,1)},s.showShadow=(0,l.pluckNumber)(u.showshadow,0),s.useHoverColor=Boolean((0,l.pluckNumber)(u.usehovercolor,1)),s.usePattern&&(s.useHoverColor=0),s.showTextOutline=Boolean((0,l.pluckNumber)(u.textoutline,0)),s.hoverFillColor=(0,l.convertColor)((0,l.pluck)(u.hoverfillcolor,"FF5904"),(0,l.pluckNumber)(u.hoverfillalpha,100)),t=(t=(0,l.getFirstValue)(u.valuebordercolor,""))?(0,l.convertColor)(t,(0,l.pluckNumber)(u.valueborderalpha,u.valuebgalpha,u.valuealpha,100)):"",!c.style&&(c.style={fontFamily:(0,l.pluck)(u.valuefont,h.fontFamily),fontSize:(0,l.pluckNumber)(this.computeFontSize(u.valuefontsize),(a=h.fontSize,o=10,parseInt(a,o||10)))+"px",color:(0,l.convertColor)((0,l.pluck)(u.valuefontcolor,h.color),(0,l.pluckNumber)(u.valuefontalpha,u.valuealpha,100)),fontWeight:(0,l.pluckNumber)(u.valuefontbold)?"bold":"normal",fontStyle:(0,l.pluckNumber)(u.valuefontitalic)?"italic":"normal",backgroundColor:u.valuebgcolor?(0,l.convertColor)(u.valuebgcolor,(0,l.pluckNumber)(u.valuebgalpha,u.valuealpha,100)):"",border:t||u.valuebgcolor?(0,l.pluckNumber)(u.valueborderthickness,1)+"px solid":"",borderPadding:(0,l.pluckNumber)(u.valueborderpadding,2),borderThickness:(0,l.pluckNumber)(u.valueborderthickness,h.borderThickness,1),borderRadius:(0,l.pluckNumber)(u.valueborderradius,h.borderRadius,0),borderColor:t,borderDash:(0,l.pluckNumber)(u.valueborderdashed,0)?(0,l.getDashStyle)((0,l.pluckNumber)(u.valueborderdashlen,4),(0,l.pluckNumber)(u.valueborderdashgap,2)):"none"}),!d&&(d=s.piePlotOptions={}),d.allowPointSelect=!1,s.borderAlpha=(0,l.pluck)(u.plotborderalpha,u.pieborderalpha,100),s.borderColor=(0,l.convertColor)((0,l.pluck)(u.plotbordercolor,u.piebordercolor,"FFFFFF"),u.showplotborder!==l.ZEROSTRING?(0,l.pluck)(u.plotborderalpha,u.pieborderalpha,100):0),s.rawborderColor=(0,l.pluck)(u.plotbordercolor,u.piebordercolor,"FFFFFF"),s.showplotborder=(0,l.pluckNumber)(u.showplotborder,1),s.showTooltip=(0,l.pluckNumber)(u.showtooltip,1),s.borderWidth=(0,l.pluckNumber)(u.pieborderthickness,u.plotborderthickness,1),d.startingAngle=0,d.size="100%",s.highlightParentPieSlices=(0,l.pluckNumber)(u.highlightparentpieslices,u.highlightparentpienodes,1),s.highlightChildPieSlices=(0,l.pluckNumber)(u.highlightchildpieslices,u.highlightchildpienodes,0),s.showLabels=(0,l.pluckNumber)(u.showlabels,1),s.showValues=(0,l.pluckNumber)(u.showvalues,0),s.showValuesInTooltip=(0,l.pluckNumber)(u.showvaluesintooltip,u.showvalues,0),s.showPercentValues=(0,l.pluckNumber)(u.showpercentvalues,u.showpercentagevalues,0),s.showPercentInTooltip=(0,l.pluckNumber)(u.showpercentintooltip,0),s.toolTipSepChar=(0,l.pluck)(u.tooltipsepchar,u.hovercapsepchar,l.COMMASPACE),s.labelSepChar=(0,l.parseUnsafeString)((0,l.pluck)(u.labelsepchar,s.toolTipSepChar)),s.tooltext=u.plottooltext,s.alpha=(0,l.pluck)(u.plotfillalpha,u.piefillalpha,100),s.startAngle=(g-f/2)*(Math.PI/180),s.endtAngle=(g+f/2)*(Math.PI/180),s.initialAngle=s.endtAngle,s.originX=(0,l.pluckNumber)(u.originx),s.originY=(0,l.pluckNumber)(u.originy),s.events={mouseOver:function(){b.call(this,"mouseover")},mouseOut:function(){b.call(this,"mouseout")}},i.plotBorderWidth=0,s.autoRotateLabels=i.autorotatelabels?(0,l.pluckNumber)(i.autorotatelabels):0,s.useEllipsesWhenOverflow=i.useellipseswhenoverflow?(0,l.pluckNumber)(i.useellipseswhenoverflow):1,s.skipOverlapLabels=i.skipoverlaplabels?(0,l.pluckNumber)(i.skipoverlaplabels):0,i.plotBorderWidth=0,s.maxLevel=this.addMSPieCat(this.config.JSONData,1,this,s.startAngle,s.endtAngle),s.pieRadius=parseInt(u.pieradius,10),s.innerRadius="0",p.test(u.innerradius)&&(s.innerRadius=(0,l.pluck)(u.innerradius)),c.distance=0,c.placeLabelsInside=!0},a.removalFn=function(e,t){this.getFromEnv("animationManager").setAnimation({el:e,label:"element"===t?"ringpath":"label",component:this,callback:function(){this.remove()}})},a.removeGraphics=function(e){var t,a,o,r=e.components&&e.components.data,i=e.graphics;if(r)for(o=r.length,t=0;t<o;t+=1)this.removeGraphics(r[t]);if(e.graphics)for(a in i)i.hasOwnProperty(a)&&this.removalFn(e.graphics[a],a)},a.removeChild=function(e,t,a){var o,r;if(e.length)for(o=0;o<e.length;o+=1)r=e[o],a?this.removalFn(r,t,a):this.removeGraphics(r,t);else for(o in e)this.removeChild(e[o],t,o)},a.addMSPieCat=function(e,t,a,o,r){var i,s,c,d,h,u,p,g,f,m,v,b,x,k,y,C,w,A,S,N,L,D,E,T,F=(0,l.extend2)([],e),P=F.length,_=this,V=a.components.data,I=_.config,B=_.getFromEnv("number-formatter"),M=0,O=I.labelSepChar,R=t,G=V.length,H=function(){_.removeChild.apply(_,arguments)},z=F.length,W=r-o,U=0;for(p=0;p<P;p+=1)(h=F[p])._userValue=B.getCleanValue(h.value,!0),h._value=(0,l.pluckNumber)(h._userValue,1),M+=h._value;for(d=W/(M=M||1),p=P-1;p>=0;p-=1)u=d*(h=F[p])._value,g=(0,l.parseUnsafeString)((0,l.pluck)(h.label,h.name)),m=null!==h._userValue?B.dataLabels(h._userValue):"",v=B.percentValue(h._value/M*100),f=(0,l.pluckNumber)(h.alpha,I.alpha),y=(0,l.pluckNumber)(h.showlabel,I.showLabels),D=(0,l.pluckNumber)(I.showplotborder,1),x=1===y?g:"",1===(0,l.pluckNumber)(h.showvalue,I.showValues)&&(I.showPercentValues?x+=""!==x?O+v:v:void 0!==m&&""!==m&&(x+=""!==x?O+m:m)),""===(b=I.showTooltip?(0,l.parseUnsafeString)((0,l.pluck)(h.tooltext,h.hovertext,I.tooltext),!1):void 0)?(b=g,I.showValuesInTooltip&&(I.showPercentInTooltip?b+=""!==b?O+v:v:void 0!==m&&""!==m&&(b+=""!==b?O+m:m))):b=(0,l.parseTooltext)(b,[1,2,3,14],{percentValue:v,label:g,formattedValue:m},h),E=o+U,U+=u,(i=V[p])||(i=V[p]={components:{data:[]},config:{},graphics:{}}),i.graphics.element&&(T=i.config.startAngle+i.config.angleStrech),C=n.PATTERN_TYPES.includes(h.patterntype)?h.patterntype:I.patternType,w=(0,l.pluckNumber)(h.patternangle,_.getFromEnv("chart-attrib").patternangle,C===n.PATTERN_TYPES[0]?40:0),A=(0,l.pluckNumber)(h.patterndensity,I.patternDensity),S=(0,l.pluckNumber)(h.patternsize,C===n.PATTERN_TYPES[0]?2:4),N=(0,l.pluckNumber)(h.patternalpha,I.patternAlpha),L=(0,l.pluck)(h.patternbgcolor,I.patternBgColor),k=h.color||_.getFromEnv("color-manager").getPlotColor(),i.config={patternType:C,patternAngle:w,patternDensity:A,patternSize:S,patternAlpha:N,patternBgColor:L,initialAngle:T||(a.config||a.config).initialAngle,startAngle:E,alpha:f,angleStrech:u,level:t,displayValue:x,showLabel:y,showPlotBorder:D,toolText:b,link:(0,l.getValidValue)(h.link),rawColor:k,doNotSlice:!0,color:(0,l.convertColor)(k,f),borderAlpha:(0,l.pluck)(h.plotborderalpha,I.borderAlpha),borderWidth:(0,l.pluckNumber)(h.borderwidth,I.borderWidth),borderColor:(0,l.pluck)(h.bordercolor,I.borderColor),rawborderColor:(0,l.pluck)(h.bordercolor,I.rawborderColor),dashStyle:(0,l.pluckNumber)(h.valueborderdashed,0)?(0,l.getDashStyle)((0,l.pluckNumber)(h.borderdashlen,4),(0,l.pluckNumber)(h.borderdashgap,2)):"none",shadow:{opacity:.01*Math.round(f>50?f*f*f*1e-4:f*f*.01)},isSingleTon:!(P>1)},I.usePattern&&(i.config.borderColor=i.config.color,i.config.rawborderColor=(0,l.hashify)(k)),i.config.parent=a,i.config.dataLabelStyle=_._configureDataLabelStyle(h),h.category?(R=Math.max(R,_.addMSPieCat(h.category,t+1,i,E,u+E)),(s=i.components.data.length)>(c=h.category.length)&&H(i.components.data.splice(s-1,c))):(s=i.components.data.length)&&H(i.components.data.splice(0,s));return G>z&&H(V.splice(z)),R},a.parsePlotAttributes=function(e){var t,a,o,r,i,n,s,c,d,h,u,p,g,f,m,v,b,x=e,k=this.config||{},y=this.getFromEnv("chart"),C=y.config,w=this.components.data.length,A=C.dataLabelStyle,S=C.canvasWidth,N=C.canvasHeight,L=(0,l.pluckNumber)(k.originX,C.canvasLeft+.5*S),D=(0,l.pluckNumber)(k.originY,C.canvasTop+.5*N),E=(0,l.pluckNumber)(2*k.pieRadius,Math.min(S,N)),T=function(e,t){var a,o=e&&e.length;return e&&(a="%"===e.charAt(o-1)?(0,l.pluckNumber)(t)*((0,l.pluckNumber)(e.split("%")[0])/100):(0,l.pluckNumber)(e))<t?a:0}(k.innerRadius,E/2),F=this.config.pool||(this.config.pool={}),P=(E-2*T)/(2*k.maxLevel);for(k.innerSize=2*T,x||(x=this),w=x.components.data.length,f=0;f<w;f+=1)this.parsePlotAttributes(x.components.data[f]);(r=(v=x.config).level)&&(n=r*P+T,s=(r-1)*P+T,v.outerRadius=n,v.innerRadius=s,m=x.graphics,d=v.angleStrech,h=v.displayValue,u=!!v.link,c=v.color,g=(p=v.startAngle)+v.angleStrech,b=m.element,F.element&&F.element.length&&(b=m.element=b||F.element.shift()),v.plotItem={chart:y,link:v.link,value:d,color:c,labelText:h,graphics:{element:b},selfRef:x},v.eventArgs={alpha:v.alpha,borderAlpha:v.borderAlpha,link:v.link,label:v.displayValue,showLabel:v.showLabel,toolText:v.toolText,color:v.rawColor,borderColor:v.rawborderColor,borderThickness:v.borderWidth,showPlotBorder:v.showPlotBorder},k.usePattern&&(v.eventArgs.pattern={patternType:v.patternType,patternColor:v.rawColor,patternBgColor:v.patternBgColor===l.TRACKER_FILL?void 0:v.patternBgColor},delete v.eventArgs.color),v.props={element:{attr:{ringpath:[L,D,n,s,p,g],"stroke-width":v.borderWidth,stroke:v.borderColor,fill:(0,l.toRaphaelColor)(v.color),"stroke-dasharray":v.dashStyle,cursor:u?"pointer":l.BLANKSTRING}}},v.props.element.patternAttr={patternType:v.patternType,patternAngle:v.patternAngle,patternDensity:v.patternDensity,patternSize:v.patternSize,color:v.color,patternAlpha:v.patternAlpha,patternBgColor:v.patternBgColor,alpha:v.alpha,x:L,y:D},void 0!==h&&h!==l.BLANKSTRING&&(t=(p+g)/2,o=0===s&&v.isSingleTon?0:s+(n-s)/2,(a=v._textAttrs)||(a=v._textAttrs={}),i=v.dataLabelStyle,a.text=h,a.fill=i.color||"000000",a.direction=C.textDirection,a.cursor=u?"pointer":l.BLANKSTRING,a.x=L+o*Math.cos(t),a.y=D+o*Math.sin(t),a["line-height"]=A.lineHeight,a["text-bound"]=[i.backgroundColor,i.borderColor,A.borderThickness,A.borderPadding,A.borderRadius,A.borderDash]))},a.parseLabelAttributes=function(e){var t,a,o,r=e,i=this.components.data.length;for(!r&&(r=this),i=r.components.data.length,a=0;a<i;a+=1)this.parseLabelAttributes(r.components.data[a]);t=(o=r.config).displayValue,o.level&&void 0!==t&&t!==l.BLANKSTRING&&(o.props.label={attr:o._textAttrs})},a.draw=function(e){var t,a,o,r,i=e,n=this.config,l=this.getFromEnv("chart"),s=this.components,c=s.data.length,h=l.getChildContainer("datalabelsGroup"),u=n.events||{},p=this.config.pool||(this.config.pool={}),g=s.removeDataArr;for(g&&g.length&&this.removeElement(),i||(i=this,h.css(l.config.dataLabelStyle)),c=i.components.data.length,t=0;t<c;t+=1)this.draw(i.components.data[t]);(o=i.config).level?(r=(a=i.graphics).element,p.element&&p.element.length&&(r=a.element=r||p.element.shift()),(r=a.element=this.getFromEnv("animationManager").setAnimation({el:a.element||"ringpath",attr:o.props.element.attr,container:l.getChildContainer("plotGroup"),component:this,state:"appearing",label:"ringpath"})).addPattern(o.props.element.patternAttr,n.usePattern),r.shadow(n.showShadow&&!!o.shadow).data("plotItem",o.plotItem).data("eventArgs",o.eventArgs).on("fc-mouseover",(function(e){var t=this,a=u.mouseOver,r=t.plotItem||t.data("plotItem"),i=r.chart.getDatasets()[0];l.plotEventHandler(t,e,"DataPlotRollOver"),a&&a.call(t),i.fireEvent("datasetrollover",{pValue:r.pValue,value:r.value,displayValue:o.displayValue})})).on("fc-mouseout",(function(e){var t=this,a=u.mouseOut,r=t.plotItem||t.data("plotItem"),i=r.chart,n=i.getDatasets()[0];i.plotEventHandler(t,e,"DataPlotRollOut"),a&&a.call(t),n.fireEvent("datasetrollout",{pValue:r.pValue,value:r.value,displayValue:o.displayValue})})).on("fc-click",(function(e){l.plotEventHandler(this,e)})),this.getFromEnv("toolTipController").enableToolTip(r,o.toolText),t||n._drawn||(n._drawn=!0,h.show(),this.addJob("labelJob",this.drawLabel.bind(this),d.priorityList.label))):(n._drawn&&this.drawLabel(),this.removeChild(this.config.pool,!0))},a.drawLabel=function(e){var t,a,o,r,i,n,s,c,d,h,u=this.config,p=e,g=this.getFromEnv("chart"),f=this.getFromEnv("smartLabel"),m=this.getFromEnv("animationManager"),v=g.config,b=this.components.data.length,x=v.tooltip||{},k=x&&!1!==x.enabled,y=(u||{}).events||{},C=u.pool||(u.pool={}),w=g.getChildContainer("datalabelsGroup");for(w.show(),!p&&(p=this),b=p.components.data.length,s=0;s<b;s+=1)this.drawLabel(p.components.data[s]);i=(d=p.config).displayValue,d.level?(n=(c=p.graphics).label,o=d.angleStrech,void 0!==i&&i!==l.BLANKSTRING&&(!u.skipOverlapLabels||u.skipOverlapLabels&&o>.1)?(h=c.label,C.label&&C.label.length&&(h=c.label=h||C.label.shift()),r=d.props.label.attr,u.autoRotateLabels?(a=180*(d.startAngle+o/2)/Math.PI,Math.abs(a)>90&&Math.abs(a)<180&&(a=-(180-a)),360===Math.floor(180*o/Math.PI)&&(a=0),f.useEllipsesOnOverflow(u.useEllipsesWhenOverflow),f.setStyle(v.dataLabelStyle),t=f.getSmartText(i,d.outerRadius-d.innerRadius-10,f._lineHeight),r.text=t.text,r.transform=(0,l.getSuggestiveRotation)(parseFloat(a),r.x,r.y)):r.transform=(0,l.getSuggestiveRotation)(0,r.x,r.y),(h=c.label=m.setAnimation({el:n||"text",attr:r,container:w,component:this,state:"appearing",label:"text"})).outlineText(u.showTextOutline,r.fill),n||h.on("fc-click",(function(e){g.plotEventHandler(this,e)})).on("fc-mouseout",(function(e){var t=y.mouseOut;g.plotEventHandler(this,e,"DataPlotRollOut"),t&&t.call(this)})).on("fc-mouseover",(function(e){var t=y.mouseOver;g.plotEventHandler(this,e,"DataPlotRollOver"),t&&t.call(this)})),h.data("plotItem",d.plotItem).data("eventArgs",d.eventArgs),k&&this.getFromEnv("toolTipController").enableToolTip(h,void 0)):(n&&m.setAnimation({el:n,component:this,label:"text"}),delete c.label)):this.removeChild(this.config.pool,!0)},t}(i["default"]);t["default"]=g},1376:function(e,t,a){"use strict";t.__esModule=!0,t["default"]=void 0;t["default"]={"initial.dataset.multiLevelPie":function(){var e,t=this.config;return{"ringpath.appearing":function(a){return[{initialAttr:{ringpath:[(e=a.attr.ringpath)[0],e[1],e[2],e[3],t.initialAngle,t.initialAngle]},slot:"plot"}]},"text.appearing":function(){return[{initialAttr:{opacity:0},finalAttr:{opacity:1},slot:"final"}]}}}}},1377:function(e,t,a){"use strict";var o=a(273);t.__esModule=!0,t["default"]=void 0;var r=o(a(1378))["default"];t["default"]=r},1378: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(1379)),n=o(a(1373)),l=a(278),s=["1E77B4","FF7F0E","2BA02C","D62728","9466BD","8C564B","E376C2","7F7F7F","BCBD22","17BECF"],c=function(e){function t(){var t;return(t=e.call(this)||this).defaultPaletteOptions={paletteColors:[s,s,s,s,s],bgColor:["FFFFFF,FFFFFF","FFFFFF,FFFFFF","FFFFFF,FFFFFF","FFFFFF,FFFFFF","FFFFFF,FFFFFF"]},t.registerFactory("dataset",i["default"],["canvas"]),t}(0,r["default"])(t,e),t.getName=function(){return"Sunburst"};var a=t.prototype;return a.__setDefaultConfig=function(){e.prototype.__setDefaultConfig.call(this),this.config.allowdrilltonode=1,this.config.showvaluesintooltip=1},a.configureAttributes=function(t){e.prototype.configureAttributes.call(this,t);this.config.allowdrilltonode=(0,l.pluckNumber)(t.chart.allowdrilltonode,1),this.config.allowdrilltonode&&this.addToEnv("linkClickFN",(function(){return null}))},a.getName=function(){return"Sunburst"},a._checkInvalidSpecificData=function(){var e=this.parseAndSanitizeData(),t=0;if(!e||!Array.isArray(e)||0===e.length)return!0;for(;t<e.length;t++)if(e[t].category&&0===e[t].category.length&&!e[t].value)return!0},a.parseAndSanitizeData=function(){var e=[],t=[],a={},o=(0,l.extend2)({},this.getFromEnv("dataSource"));if(o&&o.data&&Array.isArray(o.data)){for(var r in t=o.data.map((function(e){return a[e.id]=e,!e.parent&&(e.isRootNode=!0),!e.categories&&(e.category=[]),e})).filter((function(e){return!(!e.id||e.value&&isNaN(+e.value)||!(!e.parent||e.parent&&a[e.parent]))||(delete a[e.id],!1)})),a)if(a.hasOwnProperty(r)){var i=a[r];i.parent&&a[i.parent].category.push(i),i.isRootNode&&e.push(i)}this.addToEnv("parsedDataSource",e)}return t},t}(n["default"]);t["default"]=c},1379:function(e,t,a){"use strict";var o=a(273);t.__esModule=!0,t["default"]=void 0;var r=a(278),i=o(a(1380));t["default"]=function(e){var t,a=e.getFromEnv("parsedDataSource")||[];a.forEach((function(e){var t=function a(e){var t=0;return e.forEach((function(e){var o=e.value?+e.value:0,r=e.category.length>0?a(e.category):o;r>o?e.value=r:(e.value=o,r=o),t+=r})),t}(e.category);!e.value&&(e.value=0),t>+e.value&&(e.value=t)})),e.config.categories=a,(t=a.length)?(0,r.datasetFactory)(e,i["default"],"dataset",t,[{inputTree:a}]):e.setChartMessage()}},1380:function(e,t,a){"use strict";var o=a(273);t.__esModule=!0,t["default"]=void 0;var r=o(a(296)),i=o(a(292)),n=a(278),l=a(286),s=o(a(1381)),c=a(290),d=o(a(391)),h=o(a(1375)),u=(0,l.getDep)("redraphael","plugin"),p=/^[0-9]+\%?$|^([0-9]+[.][0-9]+)\%?$/;(0,l.addDep)({name:"sunburstAnimation",type:"animationRule",extension:s["default"]}),(0,d["default"])(u);var g=function(e){function t(){var t;t=e.call(this)||this;var a=(0,r["default"])(t);return a.components={data:[]},a.graphics={},a.elementClickedFn=function(e){var t=a.getFromEnv("chart"),o=this.data("eventArgs");t.plotEventHandler(this,e),t.config.allowdrilltonode&&a.chartDrillDown(o.nodeId,o.nodeParentId,o.childrenCount)},a.drillDownToId=void 0,a.nodeColorMap={},t}(0,i["default"])(t,e);var a=t.prototype;return a.getType=function(){return"dataset"},a.getName=function(){return"multiLevelPie"},a.configureAttributes=function(e){if(!e)return!1;this.config.JSONData=e,this.config.inputTree=e.inputTree||[],this.config.isDrilledDown=e.isDrilledDown;var t,a,o,r=this,i=r.getFromEnv("chart"),l=i.config,s=r.config||(r.config={}),c=s.dataLabelOptions||(s.dataLabelOptions={}),d=s.piePlotOptions,h=i.config.style,u=i.getFromEnv("dataSource").chart,g=(0,n.pluckNumber)(-u.centerangle,180),f=(0,n.pluckNumber)(u.totalangle,360),m=function(e,t){var a=e;for(v(r,t);a.graphics.element;)a.graphics.element.attr({fill:"mouseover"===t&&s.hoverFillColor?(0,n.convertColor)(s.hoverFillColor):(a.config||this.data("plotItem")).color,"fill-opacity":"mouseover"===t?s.hoverFillAlpha:(a.config||this.data("plotItem")).alpha}),a=a.config.parent},v=function k(e,t){var a=e.components.data;if(a)for(var o=0;o<a.length;o++)a[o].graphics&&a[o].graphics.element&&a[o].graphics.element.attr({fill:(a[o].config||this.data("plotItem")).color,"fill-opacity":"mouseover"===t?s.unFocussedAlpha:(a[o].config||this.data("plotItem")).alpha});if(e.components&&a)for(var r=0;r<a.length;r++)k(a[r],t)},b=function y(e,t){var a;for(e.graphics.element.attr({fill:"mouseover"===t?s.hoverFillColor:(e.config||this.data("plotItem")).color}),a=0;a<(e.components.data&&e.components.data.length);a++)y.call(this,e.components.data[a],t)},x=function(e){if(s.useHoverColor){var t=this.data("plotItem"),a=t.selfRef;s.highlightParentPieSlices||s.highlightChildPieSlices?!s.highlightParentPieSlices&&s.highlightChildPieSlices?b.call(this,a,e):s.highlightParentPieSlices&&!s.highlightChildPieSlices?m.call(this,a,e):s.highlightParentPieSlices&&s.highlightChildPieSlices&&(m.call(this,a,e),b.call(this,a,e)):a.graphics.element.attr({fill:"mouseover"===e?s.hoverFillColor:(a.config||t).color})}};s.isSingleRootNode=1===s.inputTree.length,s.enableAnimation=(0,n.pluckNumber)(u.animation,u.defaultanimation,1),s.animation=!!s.enableAnimation&&{duration:1e3*(0,n.pluckNumber)(u.animationduration,u.moveduration,1)},s.showShadow=(0,n.pluckNumber)(u.showshadow,0),s.useHoverColor=Boolean((0,n.pluckNumber)(u.usehovercolor,1)),s.showTextOutline=Boolean((0,n.pluckNumber)(u.textoutline,0)),s.hoverFillAlpha=(0,n.pluckNumber)(u.hoverfillalpha,80),s.hoverFillColor=u.hoverfillcolor,s.unFocussedAlpha=(0,n.pluck)(u.unfocussedalpha,"0.35"),t=(t=(0,n.getFirstValue)(u.valuebordercolor,""))?(0,n.convertColor)(t,(0,n.pluckNumber)(u.valueborderalpha,u.valuebgalpha,u.valuealpha,100)):"",!c.style&&(c.style={fontFamily:(0,n.pluck)(u.valuefont,h.fontFamily),fontSize:(0,n.pluckNumber)(this.computeFontSize(u.valuefontsize),(a=h.fontSize,o=10,parseInt(a,o||10)))+"px",color:(0,n.convertColor)((0,n.pluck)(u.valuefontcolor,h.color),(0,n.pluckNumber)(u.valuefontalpha,u.valuealpha,100)),fontWeight:(0,n.pluckNumber)(u.valuefontbold)?"bold":"normal",fontStyle:(0,n.pluckNumber)(u.valuefontitalic)?"italic":"normal",backgroundColor:u.valuebgcolor?(0,n.convertColor)(u.valuebgcolor,(0,n.pluckNumber)(u.valuebgalpha,u.valuealpha,100)):"",border:t||u.valuebgcolor?(0,n.pluckNumber)(u.valueborderthickness,1)+"px solid":"",borderPadding:(0,n.pluckNumber)(u.valueborderpadding,2),borderThickness:(0,n.pluckNumber)(u.valueborderthickness,h.borderThickness,1),borderRadius:(0,n.pluckNumber)(u.valueborderradius,h.borderRadius,0),borderColor:t,borderDash:(0,n.pluckNumber)(u.valueborderdashed,0)?(0,n.getDashStyle)((0,n.pluckNumber)(u.valueborderdashlen,4),(0,n.pluckNumber)(u.valueborderdashgap,2)):"none"}),!d&&(d=s.piePlotOptions={}),d.allowPointSelect=!1,s.borderAlpha=(0,n.pluck)(u.plotborderalpha,u.pieborderalpha,100),s.borderColor=(0,n.convertColor)((0,n.pluck)(u.plotbordercolor,u.piebordercolor,"FFFFFF"),0!=+u.showplotborder?(0,n.pluck)(u.plotborderalpha,u.pieborderalpha,100):0),s.rawborderColor=(0,n.pluck)(u.plotbordercolor,u.piebordercolor,"FFFFFF"),s.showplotborder=(0,n.pluckNumber)(u.showplotborder,1),s.showTooltip=(0,n.pluckNumber)(u.showtooltip,1),s.borderWidth=(0,n.pluckNumber)(u.pieborderthickness,u.plotborderthickness,1),d.startingAngle=0,d.size="100%",s.highlightParentPieSlices=(0,n.pluckNumber)(u.highlightparentpieslices,u.highlightparentpienodes,1),s.highlightChildPieSlices=(0,n.pluckNumber)(u.highlightchildpieslices,u.highlightchildpienodes,0),s.showLabels=(0,n.pluckNumber)(u.showlabels,1),s.showValues=(0,n.pluckNumber)(u.showvalues,0),s.showValuesInTooltip=(0,n.pluckNumber)(l.showvaluesintooltip,u.showvaluesintooltip,u.showvalues,0),s.showPercentValues=(0,n.pluckNumber)(u.showpercentvalues,u.showpercentagevalues,0),s.showPercentInTooltip=(0,n.pluckNumber)(u.showpercentintooltip,0),s.toolTipSepChar=(0,n.pluck)(u.tooltipsepchar,u.hovercapsepchar,n.COMMASPACE),s.labelSepChar=(0,n.parseUnsafeString)((0,n.pluck)(u.labelsepchar,s.toolTipSepChar)),s.tooltext=u.plottooltext,s.alpha=(0,n.pluck)(u.plotfillalpha,u.piefillalpha,100),s.startAngle=(g-f/2)*(Math.PI/180),s.endtAngle=(g+f/2)*(Math.PI/180),s.initialAngle=s.endtAngle,s.originX=(0,n.pluckNumber)(u.originx),s.originY=(0,n.pluckNumber)(u.originy),s.events={mouseOver:function(){x.call(this,"mouseover")},mouseOut:function(){x.call(this,"mouseout")}},l.plotBorderWidth=0,l.plotBorderWidth=0,s.maxLevel=r.addMSPieCat(r.config.inputTree,1,r,s.startAngle,s.endtAngle),s.pieRadius=parseInt(u.pieradius,10),s.innerRadius=s.isSingleRootNode?"0":"30",p.test(u.innerradius)&&(s.isSingleRootNode||+s.innerRadius<+u.innerradius)&&(s.innerRadius=(0,n.pluck)(u.innerradius)),c.distance=0,c.placeLabelsInside=!0},a.removalFn=function(e,t){this.getFromEnv("animationManager").setAnimation({el:e,label:"element"===t?"ringpath":"label",component:this,callback:function(){this.remove()}})},a.removeGraphics=function(e){var t,a,o,r=e.components&&e.components.data,i=e.graphics;if(r)for(o=r.length,t=0;t<o;t+=1)this.removeGraphics(r[t]);if(e.graphics)for(a in i)i.hasOwnProperty(a)&&this.removalFn(e.graphics[a],a)},a.removeChild=function(e,t,a){var o,r;if(e.length)for(o=0;o<e.length;o+=1)r=e[o],a?this.removalFn(r,t,a):this.removeGraphics(r,t);else for(o in e)this.removeChild(e[o],t,o)},a.addMSPieCat=function(e,t,a,o,r,i){void 0===i&&(i=null);var l,s,c,d,h,u,p,g,f,m,v,b,x,k,y,C,w,A,S,N,L=(0,n.extend2)([],e),D=L.length,E=this,T=a.components.data,F=E.config,P=E.getFromEnv("number-formatter"),_=0,V=F.labelSepChar,I=t,B=T.length,M=function(){E.removeChild.apply(E,arguments)},O=L.length,R=r-o,G=0;for(g=0;g<D;g+=1)(u=L[g])._userValue=P.getCleanValue(u.value,!0),u._value=(0,n.pluckNumber)(u._userValue,1),_+=u._value;for(d=R/(h=i||_||1),g=D-1;g>=0;g-=1)p=d*(u=L[g])._value,f=(0,n.parseUnsafeString)((0,n.pluck)(u.label,u.name)),v=null!==u._userValue?P.dataLabels(u._userValue):"",b=P.percentValue(u._value/h*100),m=(0,n.pluckNumber)(u.alpha,F.alpha),w=(0,n.pluckNumber)(u.showlabel,F.showLabels),A=(0,n.pluckNumber)(F.showplotborder,1),k=1===w?f:"",y=(0,n.pluckNumber)(u.showlabelvalue,""),1===(0,n.pluckNumber)(u.showvalue,F.showValues)&&(F.showPercentValues?k+=""!==k?V+b:b:void 0!==v&&""!==v&&(k+=""!==k?V+v:v)),""===(x=F.showTooltip?(0,n.parseUnsafeString)((0,n.pluck)(u.tooltext,u.hovertext,F.tooltext),!1):void 0)?(x=f,F.showValuesInTooltip&&(F.showPercentInTooltip?x+=""!==x?V+b:b:void 0!==v&&""!==v&&(x+=""!==x?V+v:v))):x=(0,n.parseTooltext)(x,[1,2,3,14],{percentValue:b,label:f,formattedValue:v},u),S=o+G,G+=p,(l=T[g])||(l=T[g]={components:{data:[]},config:{},graphics:{}}),l.graphics.element&&(N=l.config.startAngle+l.config.angleStrech),C=u.color?u.color:t>(F.isSingleRootNode?2:1)?a.config.rawColor:E.config.isDrilledDown&&E.nodeColorMap[u.id]?E.nodeColorMap[u.id]:E.getFromEnv("color-manager").getPlotColor(),E.nodeColorMap[u.id]=C,l.config={initialAngle:N||(a.config||a.config).initialAngle,startAngle:S,alpha:m,angleStrech:p,level:t,displayValue:k,showLabel:w,showPlotBorder:A,toolText:x,link:(0,n.getValidValue)(u.link),drillDownToId:u.id,drillDownParent:u.parent,childrenCount:u.category?u.category.length:0,rawColor:C,doNotSlice:!0,color:(0,n.convertColor)(C,m),borderAlpha:(0,n.pluck)(u.plotborderalpha,F.borderAlpha),borderWidth:(0,n.pluckNumber)(u.borderwidth,F.borderWidth),borderColor:(0,n.pluck)(u.bordercolor,F.borderColor),rawborderColor:(0,n.pluck)(u.bordercolor,F.rawborderColor),dashStyle:(0,n.pluckNumber)(u.valueborderdashed,0)?(0,n.getDashStyle)((0,n.pluckNumber)(u.borderdashlen,4),(0,n.pluckNumber)(u.borderdashgap,2)):"none",shadow:{opacity:.01*Math.round(m>50?m*m*m*1e-4:m*m*.01)},isSingleTon:!(D>1),showLabelValue:y},l.config.parent=a,l.config.dataLabelStyle=E._configureDataLabelStyle(u),u.category&&u.category.length>0?(I=Math.max(I,E.addMSPieCat(u.category,t+1,l,S,p+S,u._value)),(s=l.components.data.length)>(c=u.category.length)&&M(l.components.data.splice(s-1,c))):(s=l.components.data.length)&&M(l.components.data.splice(0,s));return B>O&&M(T.splice(O)),I},a.chartDrillDown=function(e,t,a){var o=this.getFromEnv("chart").getFromEnv("parsedDataSource"),r=[].concat(o),i=this.getFromEnv("toolTipController"),n=this.drillDownToId===e?t:e,l=null;if(a>0){if(!n)return this.setData({isDrilledDown:!0,inputTree:o},!0),this.drillDownToId=void 0,void i.hideAll();for(;r.length>0;){var s=r.pop();s.id!==n?r.push.apply(r,s.category):l=s}(l.length>0||l.category.length>0)&&(this.drillDownToId=n,this.setData({isDrilledDown:!0,inputTree:[l]},!0),i.hideAll())}},a.parsePlotAttributes=function(e){var t,a,o,r,i,l,s,c,d,h,u,p,g,f,m,v,b,x=e,k=this.config||{},y=this.getFromEnv("chart"),C=y.config,w=this.components.data.length,A=C.dataLabelStyle,S=C.canvasWidth,N=C.canvasHeight,L=(0,n.pluckNumber)(k.originX,C.canvasLeft+.5*S),D=(0,n.pluckNumber)(k.originY,C.canvasTop+.5*N),E=(0,n.pluckNumber)(2*k.pieRadius,Math.min(S,N)),T=function(e,t){var a,o=e&&e.length;return e&&(a="%"===e.charAt(o-1)?(0,n.pluckNumber)(t)*((0,n.pluckNumber)(e.split("%")[0])/100):(0,n.pluckNumber)(e))<t?a:0}(k.innerRadius,E/2),F=this.config.pool||(this.config.pool={}),P=(E-2*T)/(2*k.maxLevel);for(k.innerSize=2*T,x||(x=this),w=x.components.data.length,f=0;f<w;f+=1)this.parsePlotAttributes(x.components.data[f]);(r=(v=x.config).level)&&(l=r*P+T,s=(r-1)*P+T,v.outerRadius=l,v.innerRadius=s,m=x.graphics,d=v.angleStrech,h=v.displayValue,u=!!y.config.allowdrilltonode&&v.childrenCount>0||!!v.link,c=v.color,g=(p=v.startAngle)+v.angleStrech,b=m.element,F.element&&F.element.length&&(b=m.element=b||F.element.shift()),v.plotItem={chart:y,link:v.link,value:d,color:c,labelText:h,graphics:{element:b},selfRef:x},v.eventArgs={alpha:v.alpha,borderAlpha:v.borderAlpha,link:v.link,label:v.displayValue,showLabel:v.showLabel,toolText:v.toolText,color:v.rawColor,borderColor:v.rawborderColor,borderThickness:v.borderWidth,showPlotBorder:v.showPlotBorder,nodeId:v.drillDownToId,nodeParentId:v.drillDownParent,childrenCount:v.childrenCount},v.props={element:{attr:{ringpath:[L,D,l,s,p,g],"stroke-width":v.borderWidth,stroke:v.borderColor,fill:(0,n.toRaphaelColor)(v.color),"stroke-dasharray":v.dashStyle,cursor:u?"pointer":"initial"}}},void 0!==h&&h!==n.BLANKSTRING&&(t=(p+g)/2,o=0===s&&v.isSingleTon?0:s+(l-s)/2,(a=v._textAttrs)||(a=v._textAttrs={}),i=v.dataLabelStyle,a.text=h,a.fill=i.color||"000000",a.direction=C.textDirection,a.cursor=u?"pointer":"initial",a.x=L+o*Math.cos(t),a.y=D+o*Math.sin(t),a["line-height"]=A.lineHeight,a["text-bound"]=[i.backgroundColor,i.borderColor,A.borderThickness,A.borderPadding,A.borderRadius,A.borderDash]))},a.parseLabelAttributes=function(e){var t,a,o,r=e,i=this.components.data.length;for(!r&&(r=this),i=r.components.data.length,a=0;a<i;a+=1)this.parseLabelAttributes(r.components.data[a]);t=(o=r.config).displayValue,o.level&&void 0!==t&&t!==n.BLANKSTRING&&(o.props.label={attr:o._textAttrs})},a.draw=function(e){var t,a,o,r,i,n=e,l=this.config||{},s=this.getFromEnv("chart"),d=this.components,h=d.data.length,u=s.getChildContainer("datalabelsGroup"),p=l.events||{},g=d.removeDataArr;for(g&&g.length&&this.removeElement(),n||(n=this,u.css(s.config.dataLabelStyle)),h=n.components.data.length,t=0;t<h;t+=1)this.draw(n.components.data[t]);(o=n.config).level?(i=(a=n.graphics).element,r=a.element=this.getFromEnv("animationManager").setAnimation({el:i||"ringpath",attr:o.props.element.attr,container:s.getChildContainer("plotGroup"),component:this,state:"appearing",label:"ringpath"}),i||r.on("fc-mouseover",(function(e){var t=this,a=p.mouseOver,r=t.plotItem||t.data("plotItem"),i=r.chart.getDatasets()[0];s.plotEventHandler(t,e,"DataPlotRollOver"),a&&a.call(t),i.fireEvent("datasetrollover",{pValue:r.pValue,value:r.value,displayValue:o.displayValue})})).on("fc-mouseout",(function(e){var t=this,a=p.mouseOut,r=t.plotItem||t.data("plotItem"),i=r.chart,n=i.getDatasets()[0];i.plotEventHandler(t,e,"DataPlotRollOut"),a&&a.call(t),n.fireEvent("datasetrollout",{pValue:r.pValue,value:r.value,displayValue:o.displayValue})})),r.shadow(l.showShadow&&!!o.shadow).data("plotItem",o.plotItem).data("eventArgs",o.eventArgs),r.off("fc-click",this.elementClickedFn),r.on("fc-click",this.elementClickedFn),this.getFromEnv("toolTipController").enableToolTip(r,o.toolText),t||l._drawn||(l._drawn=!0,u.show(),this.addJob("labelJob",this.drawLabel.bind(this),c.priorityList.label))):l._drawn&&this.drawLabel()},a.drawLabel=function(e){var t,a,o,r,i,l,s,c,d,h,u=this.config,p=e,g=this.getFromEnv("chart"),f=this.getFromEnv("animationManager"),m=this.getFromEnv("smartLabel"),v=g.config,b=this.components.data.length,x=v.tooltip||{},k=x&&!1!==x.enabled,y=(u||{}).events||{},C=g.getChildContainer("datalabelsGroup");for(C.show(),!p&&(p=this),b=p.components.data.length,s=0;s<b;s+=1)this.drawLabel(p.components.data[s]);a=(d=p.config).angleStrech,t=180*(d.startAngle+a/2)/Math.PI,Math.abs(t)>90&&Math.abs(t)<270&&(t=-(180-t)),360===Math.floor(180*a/Math.PI)&&(t=0),i=d.displayValue,m.useEllipsesOnOverflow(!0),m.setStyle(v.dataLabelStyle),o=m.getSmartText(i,d.outerRadius-d.innerRadius-10,m._lineHeight),d.level&&(l=(c=p.graphics).label,void 0!==i&&i!==n.BLANKSTRING&&(a>.1||1===d.showLabelValue)&&0!==d.showLabelValue?(h=c.label,(r=d.props.label.attr).text=o.text,r.transform=(0,n.getSuggestiveRotation)(parseFloat(t),r.x,r.y),(h=c.label=f.setAnimation({el:l||"text",attr:r,container:C,component:this,state:"appearing",label:"text"})).outlineText(u.showTextOutline,r.fill),l||(h.on("fc-mouseout",(function(e){var t=y.mouseOut;g.plotEventHandler(this,e,"DataPlotRollOut"),t&&t.call(this)})).on("fc-mouseover",(function(e){var t=y.mouseOver;g.plotEventHandler(this,e,"DataPlotRollOver"),t&&t.call(this)})),h.off("fc-click",this.elementClickedFn),h.on("fc-click",this.elementClickedFn)),h.data("plotItem",d.plotItem).data("eventArgs",d.eventArgs),k&&this.getFromEnv("toolTipController").enableToolTip(h,void 0)):(l&&f.setAnimation({el:l,component:this,label:"text"}),delete c.label))},t}(h["default"]);t["default"]=g},1381:function(e,t,a){"use strict";t.__esModule=!0,t["default"]=void 0;t["default"]={"initial.dataset.multiLevelPie":function(){var e,t=this.config;return{"ringpath.appearing":function(a){return[{initialAttr:{ringpath:[(e=a.attr.ringpath)[0],e[1],e[2],e[3],t.initialAngle,t.initialAngle]},slot:"plot"}]},"text.appearing":function(){return[{initialAttr:{opacity:0},finalAttr:{opacity:1},slot:"final"}]}}}}},1382:function(e,t,a){"use strict";var o=a(273);t.__esModule=!0,t["default"]=void 0;var r=o(a(1383))["default"];t["default"]=r},1383:function(e,t,a){"use strict";var o=a(273);t.__esModule=!0,t["default"]=void 0;var r=o(a(296)),i=o(a(292)),n=o(a(740)),l=o(a(1384)),s=o(a(1386)),c=o(a(1387)),d=a(286),h=o(a(443)),u=a(278),p=o(a(422)),g=u.preDefStr.defaultFontStr,f=u.preDefStr.divLineAlphaStr,m=u.preDefStr.altVGridColorStr,v=u.preDefStr.altVGridAlphaStr,b=u.preDefStr.colors.c000000,x=u.preDefStr.POSITION_BOTTOM,k=u.preDefStr.divLineAlpha3DStr,y=(0,d.getDep)("redraphael","plugin");(0,h["default"])(y);var C=function(e){function t(){var t;t=e.call(this)||this;var a=(0,r["default"])(t);return a.defaultPlotShadow=1,a.axisPaddingLeft=0,a.axisPaddingRight=0,t.registerFactory("axis",l["default"],["canvas"]),t.registerFactory("vCanvas",s["default"],["axis"]),t.registerFactory("dataset",c["default"],["vCanvas"]),t}(0,i["default"])(t,e),t.getName=function(){return"MultiAxisLine"};var a=t.prototype;return a.__setDefaultConfig=function(){e.prototype.__setDefaultConfig.call(this);var t=this.config;t.defaultDatasetType="multiaxisline",t.defaultcrosslinethickness=1},a.getName=function(){return"MultiAxisLine"},a._checkInvalidSpecificData=function(){var e=this.getFromEnv("dataSource");if(!e.axis||!e.categories)return!0},a._feedAxesRawData=function(){var e,t,a,o,r,i,n,l,s,c,d,h,x,y,C,w,A=this.config,S=this.getFromEnv("color-manager"),N=this.getFromEnv("number-formatter"),L=this.getFromEnv("dataSource"),D=L.chart,E=this.config.is3D,T=E?u.chartPaletteStr.chart3D:u.chartPaletteStr.chart2D,F=(0,u.pluckFontSizeMaintainUnit)(D.outcnvbasefontsize,D.basefontsize,10),P=[],_={},V=[];for(e={isVertical:!1,isReverse:!1,isOpposit:(0,p["default"])(D.xaxisposition,"top"),outCanfontFamily:(0,u.pluck)(D.outcnvbasefont,D.basefont,g),outCanfontSize:this.computeFontSize(F),outCanfontSizeWithUnit:F,outCancolor:(0,u.pluck)(D.outcnvbasefontcolor,D.basefontcolor,S.getColor(T.baseFontColor)).replace(/^#? ([a-f0-9]+)/gi,"#$1"),axisNamePadding:D.xaxisnamepadding,axisValuePadding:D.labelpadding,axisNameFont:D.xaxisnamefont,axisNameFontSize:this.computeFontSize(D.xaxisnamefontsize),axisNameFontSizeWithUnit:D.xaxisnamefontsize,axisNameFontColor:D.xaxisnamefontcolor,axisNameFontBold:D.xaxisnamefontbold,axisNameFontItalic:D.xaxisnamefontitalic,axisNameBgColor:D.xaxisnamebgcolor,axisNameBorderColor:D.xaxisnamebordercolor,axisNameAlpha:D.xaxisnamealpha,axisNameFontAlpha:D.xaxisnamefontalpha,axisNameBgAlpha:D.xaxisnamebgalpha,axisNameBorderAlpha:D.xaxisnameborderalpha,axisNameBorderPadding:D.xaxisnameborderpadding,axisNameBorderRadius:D.xaxisnameborderradius,axisNameBorderThickness:D.xaxisnameborderthickness,axisNameBorderDashed:D.xaxisnameborderdashed,axisNameBorderDashLen:D.xaxisnameborderdashlen,axisNameBorderDashGap:D.xaxisnameborderdashgap,useEllipsesWhenOverflow:D.useellipseswhenoverflow,divLineColor:(0,u.pluck)(D.vdivlinecolor,D.divlinecolor,S.getColor(T.divLineColor)),divLineAlpha:(0,u.pluck)(D.vdivlinealpha,D.divlinealpha,E?S.getColor(k):S.getColor(f)),divLineThickness:(0,u.pluckNumber)(D.vdivlinethickness,D.divlinethickness,1),divLineIsDashed:Boolean((0,u.pluckNumber)(D.vdivlinedashed,D.vdivlineisdashed,D.divlinedashed,D.divlineisdashed,0)),divLineDashLen:(0,u.pluckNumber)(D.vdivlinedashlen,D.divlinedashlen,4),divLineDashGap:(0,u.pluckNumber)(D.vdivlinedashgap,D.divlinedashgap,2),showAlternateGridColor:(0,u.pluckNumber)(D.showalternatevgridcolor,0),alternateGridColor:(0,u.pluck)(D.alternatevgridcolor,S.getColor(m)),alternateGridAlpha:(0,u.pluck)(D.alternatevgridalpha,S.getColor(v)),numDivLines:D.numvdivlines,labelFont:D.labelfont,labelFontSize:this.computeFontSize(D.labelfontsize),labelFontSizeWithUnit:D.labelfontsize,labelFontColor:D.labelfontcolor,labelAlpha:D.labelalpha,labelFontBold:D.labelfontbold,labelFontItalic:D.labelfontitalic,labelBdrColor:D.labelbordercolor,labelBdrAlpha:D.labelborderalpha,labelLink:D.labellink,labelBgColor:D.labelbgcolor,labelBgAlpha:D.labelbgalpha,labelBdrThickness:D.labelborderthickness,labelBdrPadding:D.labelborderpadding,labelBdrRadius:D.labelborderradius,labelBdrDashed:D.labelborderdashed,labelBdrDashLen:D.labelborderdashlen,labelBdrDashGap:D.labelborderdashgap,maxLabelHeight:D.maxlabelheight,axisName:D.xaxisname,axisMinValue:D.xaxisminvalue,axisMaxValue:D.xaxismaxvalue,setAdaptiveMin:D.setadaptivexmin,adjustDiv:D.adjustvdiv,labelDisplay:D.labeldisplay,showLabels:D.showlabels,rotateLabels:D.rotatelabels,slantLabel:(0,u.pluckNumber)(D.slantlabels,D.slantlabel),labelStep:(0,u.pluckNumber)(D.labelstep,D.xaxisvaluesstep),showAxisValues:(0,u.pluckNumber)(D.showxaxisvalues,D.showxaxisvalue),showLimits:D.showvlimits,showDivLineValues:(0,u.pluckNumber)(D.showvdivlinevalues,D.showvdivlinevalues),showZeroPlane:D.showvzeroplane,zeroPlaneColor:D.vzeroplanecolor,zeroPlaneThickness:D.vzeroplanethickness,zeroPlaneAlpha:D.vzeroplanealpha,showZeroPlaneValue:D.showvzeroplanevalue,trendlineColor:D.trendlinecolor,trendlineToolText:D.trendlinetooltext,trendlineThickness:D.trendlinethickness,trendlineAlpha:D.trendlinealpha,showTrendlinesOnTop:D.showtrendlinesontop,showAxisLine:(0,u.pluckNumber)(D.showxaxisline,D.showaxislines,D.drawAxisLines,0),axisLineThickness:(0,u.pluckNumber)(D.xaxislinethickness,D.axislinethickness,1),axisLineAlpha:(0,u.pluckNumber)(D.xaxislinealpha,D.axislinealpha,100),axisLineColor:(0,u.pluck)(D.xaxislinecolor,D.axislinecolor,b)},V.push(e),t={outCanfontFamily:(0,u.pluck)(D.outcnvbasefont,D.basefont,g),outCanfontSize:this.computeFontSize(F),outCanfontSizeWithUnit:F,outCancolor:(0,u.pluck)(D.outcnvbasefontcolor,D.basefontcolor,S.getColor(T.baseFontColor)).replace(/^#? ([a-f0-9]+)/gi,"#$1"),useEllipsesWhenOverflow:D.useellipseswhenoverflow,showAlternateGridColor:0,axisNameFont:D.yaxisnamefont,axisNameFontSize:this.computeFontSize(D.yaxisnamefontsize),axisNameFontSizeWithUnit:D.yaxisnamefontsize,axisNameFontColor:D.yaxisnamefontcolor,axisNameFontBold:D.yaxisnamefontbold,axisNameFontItalic:D.yaxisnamefontitalic,axisNameBgColor:D.yaxisnamebgcolor,axisNameBorderColor:D.yaxisnamebordercolor,axisNameAlpha:D.yaxisnamealpha,axisNameFontAlpha:D.yaxisnamefontalpha,axisNameBgAlpha:D.yaxisnamebgalpha,axisNameBorderAlpha:D.yaxisnameborderalpha,axisNameBorderPadding:D.yaxisnameborderpadding,axisNameBorderRadius:D.yaxisnameborderradius,axisNameBorderThickness:D.yaxisnameborderthickness,axisNameBorderDashed:D.yaxisnameborderdashed,axisNameBorderDashLen:D.yaxisnameborderdashlen,axisNameBorderDashGap:D.yaxisnameborderdashgap,labelFont:D.yaxisvaluefont,labelFontSize:this.computeFontSize(D.yaxisvaluefontsize),labelFontSizeWithUnit:D.yaxisvaluefontsize,labelFontColor:D.yaxisvaluefontcolor,labelAlpha:D.yaxisvaluealpha,labelFontBold:D.yaxisvaluefontbold,labelFontItalic:D.yaxisvaluefontitalic,labelBdrColor:D.yaxisvaluebordercolor,labelBdrAlpha:D.yaxisvalueborderalpha,labelLink:D.yaxisvaluelink,labelBgColor:D.yaxisvaluebgcolor,labelBgAlpha:D.yaxisvaluebgalpha,labelBdrThickness:D.yaxisvalueborderthickness,labelBdrPadding:D.yaxisvalueborderpadding,labelBdrRadius:D.yaxisvalueborderradius,labelBdrDashed:D.yaxisvalueborderdashed,labelBdrDashLen:D.yaxisvalueborderdashlen,labelBdrDashGap:D.yaxisvalueborderdashgap},s={side:"l",axesConf:[]},c={side:"r",axesConf:[]},o=0,r=(a=L.axis||[]).length;o<r;o++){for(_={},n=a[o],_.checkBoxChecked=!1,C=0,w=n.dataset?n.dataset.length:0;C<w;C+=1)0!==Number(n.dataset[C].visible)&&(_.checkBoxChecked=!0);l=S.getPlotColor(o),d=(0,u.pluck)(n.color,D.axiscolor,l),h=(0,u.pluckNumber)(n.divlinethickness,D.divlinethickness,1),x=(0,u.pluckNumber)(n.tickwidth,D.axistickwidth,2),y=(0,u.pluckNumber)(n.axislinethickness,D.axislinethickness,2),i=!(0,u.pluckNumber)(n.axisonleft,1),t.isVertical=!0,t.isReverse=!0,t.isOpposit=i,t.labelStep=(0,u.pluckNumber)(n.yaxisvaluesstep,n.yaxisvaluestep,D.yaxisvaluesstep,D.yaxisvaluestep),t.axisMaxValue=n.maxvalue,t.axisMinValue=n.minvalue,t.setAdaptiveMin=(0,u.pluckNumber)(n.setadaptiveymin,D.setadaptiveymin),t.numDivLines=(0,u.pluckNumber)(n.numdivlines,D.numdivlines,4),t.adjustDiv=(0,u.pluckNumber)(n.adjustdiv,D.adjustdiv),t.showAxisValues=(0,u.pluckNumber)(n.showyaxisvalues,n.showyaxisvalue,D.showyaxisvalues,D.showyaxisvalue,1),t.showLimits=(0,u.pluckNumber)(n.showlimits,D.showyaxislimits,D.showlimits,t.showAxisValues),t.showDivLineValues=(0,u.pluckNumber)(n.showdivlinevalue,D.showdivlinevalues,n.showdivlinevalues,t.showAxisValues),t.showZeroPlane=(0,u.pluckNumber)(n.showzeroplane,D.showzeroplane),t.showZeroPlaneValue=(0,u.pluckNumber)(n.showzeroplanevalue,D.showzeroplanevalue),t.zeroPlaneColor=n.zeroplanecolor,t.zeroPlaneThickness=(0,u.pluckNumber)(n.zeroplanethickness,n.divlinethickness,A.zeroplanethickness,2),t.zeroPlaneAlpha=(0,u.pluckNumber)(n.zeroplanealpha,n.divlinealpha,A.zeroplanealpha),t.showZeroPlaneOnTop=A.showzeroplaneontop,t.divLineColor=(0,u.pluck)(n.divlinecolor,d),t.divLineAlpha=(0,u.pluckNumber)(n.divlinealpha,D.divlinealpha,S.getColor(f),100),t.divLineThickness=h,t.divLineIsDashed=Boolean((0,u.pluckNumber)(n.divlinedashed,n.divlineisdashed,D.divlinedashed,D.divlineisdashed,0)),t.divLineDashLen=(0,u.pluckNumber)(n.divlinedashlen,D.divlinedashlen,4),t.divLineDashGap=(0,u.pluckNumber)(n.divlinedashgap,D.divlinedashgap,2),t.showAxisLine=1,t.axisLineThickness=y,t.axisLineAlpha=100,t.axisLineColor=d,t.tickLength=x,t.tickColor=d,t.tickAlpha=100,t.tickWidth=y,t.axisName=n.title,t.rotateAxisName=1,t.axisNameAlignCanvas=!0,t.drawAxisNameFromBottom=!0,(0,u.extend2)(_,t),N.parseMLAxisConf(n,o),0===(0,u.pluckNumber)(n.showaxis)?(0,u.extend2)(_,{axisIndex:o,drawAxisLineWRTCanvas:!1,drawLabels:!1,drawPlotlines:!1,drawAxisLine:!1,drawPlotBands:!1,drawAxisName:!1,drawTrendLines:!1,drawTrendLabels:!1,drawTick:!1,drawTickMinor:!1,showAxis:0}):(0,u.extend2)(_,{axisIndex:o,drawAxisLineWRTCanvas:!1,drawLabels:!0,drawPlotlines:!0,drawAxisLine:!0,drawPlotBands:!0,drawAxisName:!0,drawTrendLines:!0,drawTrendLabels:!0,drawTick:!0,drawTickMinor:!0,showAxis:1}),i?c.axesConf.push(_):s.axesConf.push(_)}return s.axesConf.length&&P.push(s),c.axesConf.length&&P.push(c),{xAxisConfigure:V,yAxisConfigure:P}},a._postSpaceManagement=function(){var e=this.getFromEnv("legend"),t=e&&e.config&&e.config.legendPos?e.config.legendPos.split("-"):[];this.setAxisDimention(),t[0]===u.POSITION_LEFT?this._allocateSpace({left:5}):t[0]===u.POSITION_RIGHT&&this._allocateSpace({right:5}),this.getChildren("yAxisSelectorUI").forEach((function(e){e.setAxisDimention()})),this.getChildren("canvas")[0].setCanvasPadding(),this.setAxisDimention(),this.config.showLegend&&e.postSpaceManager(),this.allocateDimensionOfChartMenuBar()},a.setAxisDimention=function(){var e=this.config,t=this.getChildren("xAxis")[0],a=e.xDepth||0,o=this.getChildren("canvas")[0].config,r=o.canvasBorderWidth,i=o.canvasPadding,n=o.canvasPaddingLeft,l=e.shift||0,s=o.canvasPaddingRight;t&&t.setAxisDimention({x:e.canvasLeft+a+Math.max(n,i),y:t.config.isOpposit?e.canvasTop-r:e.canvasBottom+l+r,opposite:t.config.isOpposit?e.canvasBottom+l+r:e.canvasTop-r,axisLength:e.canvasWidth-a-Math.max(n,i)-Math.max(s,i)})},a._spaceManager=function(){var e,t,a,o,r,i,n,l,s,c,d=this.getChildren("canvas")[0],h=this.config,p=h.legendPosition?h.legendPosition.split("-"):[],g=this.getChildren("xAxis"),f=this.getChildren("yAxisSelectorUI"),m=h.yDepth,v=this.getFromEnv("legend"),b=0,k=0,y=f.length||0,C=this.getFromEnv("dataSource").chart,w=(0,u.pluckNumber)(C.showborder,this.config.is3D?0:1),A=d.config.canvasBorderWidth,S=h.borderWidth=w?(0,u.pluckNumber)(C.borderthickness,1):0,N=h.canvasMarginTop,L=h.canvasMarginBottom,D=h.canvasMarginLeft,E=h.canvasMarginRight,T=(h.minCanvasHeight,h.minCanvasWidth,h.height),F=h.width;h.origCanvasTopMargin,h.origCanvasBottomMargin,h.origCanvasLeftMargin,h.origCanvasRightMargin;for(this._allocateSpace({top:S,bottom:S,left:S,right:S}),this._allocateSpace({left:h.canvasMarginLeft,right:h.canvasMarginRight}),i="left"===p[0]||"right"===p[0]?.3*h.canvasWidth:.3*h.canvasHeight,!1!==h.hasLegend&&g&&h.showLegend&&this._allocateSpace(v._manageLegendPosition(i)),o=0;o<y;o++)b+=(r=f[o].placeAxis(h.canvasWidth)).rightPadding,k+=r.leftPadding,this._allocateSpace(r.dimension);e=.225*h.availableHeight,t=this._manageActionBarSpace&&this._manageActionBarSpace(e)||{},this._allocateSpace(t),a=p[0]===u.POSITION_TOP||p[0]===x?.6*h.canvasHeight:.6*h.canvasWidth,this._manageChartMenuBar(a),.7*h.canvasWidth>b+k&&this._allocateSpace({left:k,right:b}),a=.6*h.canvasHeight,g[0]&&this._allocateSpace(g[0].placeAxis(a)),a=.325*h.canvasHeight,this._getDSspace&&this._allocateSpace(this._getDSspace(a)),m&&this._allocateSpace({bottom:m}),this._allocateSpace({top:A,bottom:A,left:A,right:A}),n=N>h.canvasTop?N-h.canvasTop:0,l=L>T-h.canvasBottom?L+h.canvasBottom-T:0,s=D>h.canvasLeft?D-h.canvasLeft:0,c=E>F-h.canvasRight?E+h.canvasRight-F:0,this._allocateSpace({top:n,bottom:l,left:s,right:c}),h.actualCanvasMarginTop=n,h.actualCanvasMarginLeft=s,h.actualCanvasMarginRight=c,h.actualCanvasMarginBottom=l,d.setDimension({top:h.canvasTop,left:h.canvasLeft,width:h.canvasWidth,height:h.canvasHeight})},a.configure=function(t){e.prototype.configure.call(this,t);var a=this.config,o=this.getFromEnv("dataSource").chart;a.axesPadding=5,a.allowAxisShift=(0,u.pluckNumber)(o.allowaxisshift,1),a.allowSelection=(0,u.pluckNumber)(o.allowselection,1),a.checkBoxColor=(0,u.pluck)(o.checkboxcolor,"#2196f3"),a.axisConfigured=!0},t}(n["default"]);t["default"]=C},1384: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];t=e._feedAxesRawData(),n["default"].resetAxisCount(),(0,r.componentFactory)(e,n["default"],"yAxisSelectorUI",t.yAxisConfigure&&t.yAxisConfigure.length,t.yAxisConfigure),(0,r.componentFactory)(e,i["default"],"xAxis",1,t.xAxisConfigure),(a=e.getChildren("xAxis")[0]).setLinkedItem("canvas",o),l.setLinkedItem(a.getId(),a),l.addExtEventListener("visiblerangeset",(function(){return l.asyncDraw()}),a),o.attachAxis(a,!1),o.setPrimaryAxis("xAxis",a),e._setCategories()};var r=a(278),i=o(a(589)),n=o(a(1385))},1385:function(e,t,a){"use strict";var o=a(273);t.__esModule=!0,t["default"]=void 0;var r=o(a(292)),i=a(294),n=a(278),l=o(a(541)),s=o(a(428)),c=function(e){var t,a,o,r,i,s=e.config.axesConf,c=e.config.axisMapById,h=c&&Array.from(c.keys())||[],u=!0,p=e.getFromEnv("chart").getChildren("canvas")[0],g=p.getChildren("axisRefVisualCartesian")[0],f=function(){return g.asyncDraw()};(0,n.componentFactory)(e,l["default"],"yAxis",s.length,s),t=(e.getChildren("yAxis")||[]).slice(0),a=e.config.axisMapById=new Map,("l"===e.config.side?t.reverse():t).forEach((function(t){if(!t.getState("removed")&&0!==t.config.showaxis){var n,l,s=t.getId();(i={}).axis=t,r=c&&c.get(s),i.checkbox=r&&r.checkbox,a.set(s,i),0===t.config.showaxis?t.hide():t.show(),p.attachAxis(t,!0),u&&(e.config.besideCanvas=s),u=!1,d||(o=t),t.setLinkedItem("canvas",p),g.setLinkedItem(t.getId(),t),g.addExtEventListener("visiblerangeset",f,t),d++,n=s,-1!==(l=h.indexOf(n))&&h.splice(l,1)}})),o&&p.setPrimaryAxis("yAxis",o),function(e,t){var a,o,r;for(r=e.length-1;r>-1;r--)a=e[r],(o=t.get(a)).checkbox&&o.checkbox.remove(),o.axis&&o.axis.remove(),t["delete"](a)}(h,c)},d=0,h=function(e){function t(){var t;return(t=e.call(this)||this).registerFactory("axis",c),t}(0,r["default"])(t,e),t.resetAxisCount=function(){d=0};var a=t.prototype;return a.configureAttributes=function(e){void 0===e&&(e={});var t=this.config;t.axesConf=e.axesConf||[],t.checkboxesConf=e.checkboxesConf||[],t.side=e.side},a.placeAxis=function(e){var t,a=e,o=this.config.side,r=this.getAxesDetails(),i=this.getFromEnv("chartConfig").axesPadding,n=0,l=0,s={right:0,left:0};return r.forEach((function(e){var r=e.value||(e.value={}),c=e.axis;c.getState("removed")||0===c.config.showaxis||(t=c.placeAxis(.7*a),"r"===o?(a-=r.width=t.right,s.right+=t.right,n+=i):(a-=r.width=t.left,s.left+=t.left,l+=i))})),{dimension:s,rightPadding:n,leftPadding:l}},a.setAxisDimention=function(){var e=this.config,t=this.getAxesDetails(),a=this.getFromEnv("chartConfig").axesPadding,o=this.getFromEnv("chart").getChildren("canvas")[0].config,r=o.canvasBorderWidth,i=o.canvasPaddingTop,n=o.canvasPaddingBottom,l=o.canvasLeft,s=o.canvasTop,c=o.canvasHeight,d=l+o.canvasWidth,h="r"===e.side,u="r"===e.side?l-r:d+r,p=0;t.forEach((function(e){var t=e.value||(e.value={}),o=e.axis;0===o.config.showaxis||o.getState("removed")||(t.x=h?d+r+p+a:l-r-p-a,t.y=s+i,t.height=c-i-n,t.opposite=u,p+=t.width+a,o.setAxisDimention({x:t.x,y:t.y,opposite:t.opposite,axisLength:t.height}))}))},a.drawHotElements=function(){var e,t,a=this,o=a.config,r="r"===o.side,i=a.getFromEnv("chartConfig").allowAxisShift,l=a.getFromEnv("chart"),s=o.axisMapById,c=a.getGraphicalElement("axisHotElement")||[],d=-1,h={cursor:"col-resize",stroke:n.TRACKER_FILL,fill:n.TRACKER_FILL,visibility:!0};for(i&&s.forEach((function(e,t){var o,i=e.value;h.x=i.x+(r?0:-i.width),h.y=i.y,h.width=i.width,h.height=i.height,(o=c[++d])||(o=a.addGraphicalElement("axisHotElement",a.getFromEnv("paper").rect(l.getChildContainer("trackerGroup")),!0)).on("fc-click",a._resuffelAxis),o.attr(h).data("axisDetails",{axisSelectorUI:a,canvas:l.getChildren("canvas")[0],axisId:t})})),e=d+1,t=c.length;e<t;e++)a.removeGraphicalElement(c[e])},a.drawCheckBoxes=function(){var e=this,t=e.config,a=e.getFromEnv("chartConfig"),o="r"===t.side,r=t.axisMapById;a.allowSelection?r.forEach((function(t,r){var i=t.value,n=t.checkbox,l=t.axis.config,c=o?t.axis.getAxisConfig("axisNamePadding"):-i.width;n||(n=t.checkbox=new s["default"],e.attachChild(n,"checkbox",!0),n.configure({isChecked:!0,text:"",stroke:a.checkBoxColor,symbolStroke:a.checkBoxColor,strokeWidth:1,symbolStrokeWidth:1,containerInfo:{id:"buttonGroup",label:"group",isParent:!0}}),n.addEventListener("fc-click",(function(){this.toggle(),e._dolegendInteraction.call(this,r,this.getFromEnv("chart")),l.checkBoxChecked=!l.checkBoxChecked}))),n.setDimension({x:i.x+c,y:i.y+i.height+4})})):r.forEach((function(e,t){e.checkbox&&e.checkbox.remove(),delete e.checkbox}))},a._createLayers=function(){var e=this.getFromEnv("chart").getChildContainer("selectorGroup");this.createContainer("axisBottomGroup",{name:"axis-bottom-group"},e),this.createContainer("axisTopGroup",{name:"axis-top-group"},e),this.createContainer("buttonGroup",{name:"buttons"},e)},a.createContainer=function(e,t,a){return this.addChildContainer(e,this.getFromEnv("animationManager").setAnimation({container:a,attr:t,el:this.getChildContainer(e)||"group",component:this,label:"group"}))},a.draw=function(){this._createLayers(),this.drawHotElements(),this.drawCheckBoxes()},a._resuffelAxis=function(){var e,t,a,o,r,i,n=this.data("axisDetails"),l=n.axisSelectorUI,s=l.config,c=n.canvas,d=n.axisId,h=l.getAxesDetails();s.besideCanvas!==d&&(h=l.config.axisMapById=(e=s.besideCanvas,t=d,o=[e,(a=h).get(e)],r=[t,a.get(t)],i=Array.from(a.entries()).map((function(a){var i=a[0],n=a[1];return i===e?r:i===t?o:[i,n]})),new Map(i))),s.besideCanvas=d,c.setPrimaryAxis("yAxis",h.get(d).axis),l.setAxisDimention(),l.asyncDraw(),c.getChildren("axisRefVisualCartesian")[0].asyncDraw()},a._dolegendInteraction=function(e,t){var a,o,r=[];for(a in t.iterateComponents((function(e){"dataset"===e.getType()&&r.push(e)})),r)r.hasOwnProperty(a)&&(o=r[a]).getFromEnv("yAxis").getId()===e&&(!o.getState("visible")&&this.config.checked?(o.config.legendInteractivity=!0,o.show()):o.getState("visible")&&!this.config.checked&&(o.config.legendInteractivity=!0,o.hide()))},a.manipulateCheckBox=function(e){var t,a,o,r=e.data,i=r.dataset,n=i.getFromEnv("yAxis").getId(),l=i.getLinkedParent().getChildren().dataset,s=!0;if(o=this.getAxesDetails().get(n))if("hide"===r.state){for(t=0,a=l.length;t<a;t++)l[t].getState("visible")&&(s=!1);s&&o.checkbox&&o.checkbox.uncheck()}else o.checkbox&&o.checkbox.check()},a.getAxesDetails=function(){return this.config.axisMapById},a.getType=function(){return"customAxisUI"},a.getName=function(){return"multiAxisSelectorUI"},a.getAxes=function(){return Array.from(this.config.axisMapById.values()).map((function(e){return e.axis}))},t}(i.ComponentInterface);t["default"]=h},1386:function(e,t,a){"use strict";var o=a(273);t.__esModule=!0,t["default"]=function(e){var t,a,o,n,l,s,c=e.getChildren("canvas")[0],d=e.getChildren("yAxisSelectorUI"),h=e.getFromEnv("dataSource").axis,u=[],p=[];for(a=e.getChildren("xAxis"),l=0;l<(a&&a.length);l++)a[l].getState("removed")||u.push(a[l]);for(d.forEach((function(e){for(a=e.getChildren("yAxis"),l=0;l<(a&&a.length);l++)a[l].getState("removed")||p.push(a[l])})),(0,i.componentFactory)(c,r["default"],"vCanvas",u.length*p.length),t=c.getChildren("vCanvas"),n=0,l=0;n<(u&&u.length);n++)for(s=0;s<(p&&p.length);s++,l++)(o=t[l]).configure(),o.xAxis(u[n]).yAxis(p[s]).canvas(c),o.addToEnv("axisData",h[l]),o.addToEnv("vCanvas",t[l])};var r=o(a(595)),i=a(278)},1387:function(e,t,a){"use strict";var o=a(273);t.__esModule=!0,t["default"]=function(e){for(var t,a,o,n,l=e.getChildren(),s=l.yAxisSelectorUI,c=l.canvas[0],d=(a+"").length,h=c.getChildren("vCanvas"),u=function(e){s.forEach((function(t){t.manipulateCheckBox(e)}))},p=function(e){e.addEventListener("datasetVisibilityChanged",u)},g=0,f=h.length;g<f;g++)(n=h[g]).getState("removed")||(t=n.getFromEnv("axisData").dataset)&&(a=t.length,o=Array(a).fill(n.getFromEnv("yAxis").config.axisIndex).map((function(e,t){return e+(t+1)*(1/Math.pow(10,d))})),(0,r.datasetFactory)(n,i["default"],"dataset",a,t,o),(l=n.getChildren("dataset")).forEach(p))};var r=a(278),i=o(a(1388))},1388: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(616)),n=a(278),l=a(286),s=o(a(1389));(0,l.addDep)({name:"multiAxislineAnimation",type:"animationRule",extension:s["default"]});var c=function(e){function t(){return e.apply(this,arguments)||this}(0,r["default"])(t,e);var a=t.prototype;return a.getType=function(){return"dataset"},a.getName=function(){return"multiaxisline"},a.configure=function(t){if(!t)return!1;this.trimData(t),this.config.JSONData=t,e.prototype.configure.call(this,t)},a.parseAttributes=function(){var t,a,o=this.config.JSONData,r=this.config,i=this.getFromEnv("chart-attrib"),l=this.getFromEnv("axisData");e.prototype.parseAttributes.call(this),r.linethickness=(0,n.pluckNumber)(o.linethickness,l.linethickness,i.linethickness,2),r.lineDashLen=(0,n.pluckNumber)(o.linedashlen,l.linedashlen,i.linedashlen,5),r.lineDashGap=(0,n.pluckNumber)(o.linedashgap,l.linedashgap,i.linedashgap,4),r.alpha=(0,n.pluckNumber)(o.alpha,l.linealpha,i.linealpha,n.HUNDREDSTRING),r.linecolor=(0,n.pluck)(o.color,l.linecolor,l.color,i.linecolor,r.plotColor),r.legendSymbolColor="line"===this.getName()?r.lineColor:r.plotFillColor,a=(0,n.pluckNumber)(o.dashed,l.linedashed,i.linedashed),t=(0,n.getDashStyle)(r.lineDashLen,r.lineDashGap),r.anchorbordercolor=(0,n.pluck)(o.anchorbordercolor,o.color,l.color,i.anchorbordercolor,r.lineColor,r.plotColor),r.lineDashStyle=a?t:"none"},t}(i["default"]);t["default"]=c},1389:function(e,t,a){"use strict";var o=a(273);t.__esModule=!0,t["default"]=void 0;var r={"*.dataset.multiaxisline":o(a(619))["default"]["*.dataset.line"]};t["default"]=r},1390:function(e,t,a){"use strict";var o=a(273);t.__esModule=!0,t["default"]=void 0;var r=o(a(1391))["default"];t["default"]=r},1391: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(1392)),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"MSStepLine"};var a=t.prototype;return a.getName=function(){return"MSStepLine"},a.__setDefaultConfig=function(){e.prototype.__setDefaultConfig.call(this);var t=this.config;t.defaultDatasetType="msstepline",t.drawverticaljoins=1,t.useforwardsteps=1,t.zeroplanethickness=1,t.zeroplanealpha=40,t.showzeroplaneontop=0,t.enablemousetracking=!0,t.defaultcrosslinethickness=1,n._setDefaultConfig.call(this)},a.getDSGroupdef=function(){},a.getDSdef=function(){return l["default"]},t}(i["default"]);t["default"]=s},1392: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=o(a(616)),l=a(286),s=o(a(1393));(0,l.addDep)({name:"stepLineAnimation",type:"animationRule",extension:s["default"]});var c=function(e){function t(){var t;return(t=e.call(this)||this).getPathArr=function(){var e=this.pathArr,t=this.path2Arr;return e.length||t.length?e.concat(t):[]},t}(0,r["default"])(t,e);var a=t.prototype;return a.getType=function(){return"dataset"},a.getName=function(){return"stepLine"},a.__setDefaultConfig=function(){e.prototype.__setDefaultConfig.call(this);var t=this.config;t.drawverticaljoins=void 0,t.useforwardsteps=void 0},a._addLegend=function(){var e,t=this.config,a=this.getFromEnv("legend"),o=this.getFromEnv("chart-attrib"),r=(0,i.pluckNumber)(t.drawanchors,1),n=this.config.JSONData||{},l={enabled:t.includeinlegend,type:"line",drawLine:(0,i.pluck)(t.drawLine,!0),anchorSide:r?t.anchorsides:0,label:(0,i.getFirstValue)(this.config.JSONData.seriesname),legendIconAlpha:(0,i.pluckNumber)(n.legendiconalpha)};t.includeinlegend?((e=a.getItem(this.config.legendItemId))||(this.config.legendItemId=a.createItem(this),e=a.getItem(this.config.legendItemId),this.addExtEventListener("fc-click",(function(){e.itemClickFn()}),e)),e.configure(l),e.setStateCosmetics("default",{symbol:{fill:(0,i.toRaphaelColor)({color:t.anchorbgcolor,alpha:t.anchorbgalpha}),bgAlpha:(0,i.pluckNumber)(n.legendiconbgalpha,n.legendiconalpha,o.legendiconbgalpha,o.legendiconalpha,t.anchorbgalpha),borderAlpha:(0,i.pluckNumber)(n.legendiconborderalpha,n.legendiconalpha,o.legendiconborderalpha,o.legendiconalpha,"100"),rawFillColor:t.anchorbgcolor,rawStrokeColor:t.anchorbordercolor,stroke:(0,i.toRaphaelColor)({color:t.anchorbordercolor,alpha:"100"}),"stroke-width":t.anchorborderthickness}}),this.getState("visible")?e.removeLegendState("hidden"):e.setLegendState("hidden")):this.config.legendItemId&&a.disposeItem(this.config.legendItemId)},a.getLinePath=function(e,t){var a,o,r,n,l,s,c,d=this.config,h=this.getFromEnv("chartConfig"),u=(0,i.pluckNumber)(h.connectnulldata),p={},g=(0,i.pluckNumber)(d.drawverticaljoins),f=(0,i.pluckNumber)(h.stepatmiddle)?.5*this.getFromEnv("xAxis").getPVR():0,m=p.lastValidValue||!1,v=p.temp||[],b=p.temp2||[],x=p.pathArr||[],k=p.path2Arr||[],y=p.pointsJoined||0,C=t&&t.begin||0,w=t&&t.end||e.length,A=h.viewPortConfig.step||1,S=[];for(S=S.concat(e),o=C;o<w;o+=A)(s=S[o])&&(void 0===(c=(r=s.config).setValue)||r&&!0===r.isSkipped?r&&delete r.isSkipped:(n=r._Px,l=r._Py,null===c||c.isNull?u||(v=[],b=[],m=!1):m?(v.length&&(x=x.concat(v),v=[],y++),(0,i.pluckNumber)(d.useforwardsteps)?(x.push(["H",n-f]),g?x.push(["V",l]):x.push(["M",n-f,l]),f&&x.push(["H",n])):(g?x.push(["V",l]):x.push(["M",a,l]),x.push(["H",n]),a=n)):(v.push(["M",n,l]),a=n,y=0,m=!0)));return{pathArr:x,path2Arr:k,lastValidValue:m,pointsJoined:y,temp:v,temp2:b,getPathArr:this.getPathArr}},t}(n["default"]);t["default"]=c},1393:function(e,t,a){"use strict";var o=a(273);t.__esModule=!0,t["default"]=void 0;var r={"*.dataset.stepLine":o(a(619))["default"]["*.dataset.line"]};t["default"]=r},1394:function(e,t,a){"use strict";var o=a(273);t.__esModule=!0,t["default"]=void 0;var r=o(a(1395))["default"];t["default"]=r},1395:function(e,t,a){"use strict";var o=a(273);t.__esModule=!0,t.configurer=t["default"]=void 0;var r,i=o(a(296)),n=o(a(292)),l=o(a(1343)),s=a(1396),c=a(278),d=a(286),h=o(a(1404)),u=a(1345),p=o(a(722)),g=a(330);t.configurer=r;var f=function(e){function t(){var t;t=e.call(this)||this;var a=(0,i["default"])(t);return a.fireGroupEvent=!0,a.usesXYinCategory=!0,a.dontShowLegendByDefault=!0,t.registerFactory("dataset",h["default"],["vCanvas"]),t.registerFactory("axis",p["default"],["canvas"]),t}(0,n["default"])(t,e),t.getName=function(){return"DragNode"};var a=t.prototype;return a.getName=function(){return"DragNode"},a._checkInvalidSpecificData=function(){if(!this.getFromEnv("dataSource").dataset)return!0},a._mouseEvtHandler=function(e,t){(0,g._mouseEvtHandler)(this,e,t)},a.parseChartAttr=function(t){var a,o=this.getFromEnv("dataSource").chart,r=(0,d.getDepsByType)("transcoder");e.prototype.parseChartAttr.call(this,t),(a=this.config).formAction=(0,c.getValidValue)(o.formaction),a.showLegend=(0,c.pluckNumber)(o.showlegend,0),o.submitdataasxml!==c.ZEROSTRING||o.formdataformat||(o.formdataformat=r.csv().format),a.formDataFormat=(0,c.pluck)(o.formdataformat,r.xml().format),a.formTarget=(0,c.pluck)(o.formtarget,"_self"),a.formMethod=(0,c.pluck)(o.formmethod,"POST"),a.submitFormAsAjax=(0,c.pluckNumber)(o.submitformusingajax,1),a.viewMode=(0,c.pluckNumber)(o.viewmode,0),a.drawTrendRegion=0},a.__setDefaultConfig=function(){e.prototype.__setDefaultConfig.call(this);var t=this.config;t.hasLegend=!0,t.defaultDatasetType="dragnode",t.limitUpdaterEnabled=!1,t.skipClipping=!0,t.numVDivLines=0,t.numDivLines=0,t.setadaptivexmin=1,t.showLimits=0,t.showdivlinevalues=0,t.showzeroplane=0,t.showyaxisvalues=0,t.enablemousetracking=!0,t.showzeroplaneontop=0},a.addConfigureOptions=function(){var e,t,a=this,o=a.config,r=a.getFromEnv("toolbar"),i=r.getChild("hamburgerMenu-"+r.getId()+"-"+a.getId()+"-0"),n=[{name:"Add Node",handler:function(){a.getChildren("canvas")[0].getChildren("vCanvas")[0].getChildren("datasetGroup_dragNode")[0].showNodeAddUI()},action:"click"},{name:"Add Connector",handler:function(){a.getChildren("canvas")[0].getChildren("vCanvas")[0].getChildren("datasetGroup_dragNode")[0].showConnectorAddUI()},action:"click"},{name:"Add Label",handler:function(){a.getChildren("canvas")[0].getChildren("vCanvas")[0].getChildren("datasetGroup_dragNode")[0].showLabelUpdateUI()},action:"click"}];o.showRestoreBtn&&(e={name:o.restoreBtnTitle,handler:function(){a.getChildren("canvas")[0].getChildren("vCanvas")[0].getChildren("datasetGroup_dragNode")[0].restoreData()},action:"click"},n.push(e)),o.showFormBtn&&(t={name:o.submitBtnTitle,handler:function(){u.submitData.call(a)},action:"click"},n.push(t)),a.config.viewMode||i.appendInMenu(n)},a.getDSdef=function(e){switch(e){case"connector":return s.DragNodeConnector;case"dragnode":return s.DragNodeDataset;case"dragableLabels":return s.DragNodeLabels}},a.getDSGroupdef=function(){return s.DragNodeGroup},a._setCategories=function(){var e,t,a=this.getFromEnv("dataSource"),o=this.getChildren("xAxis"),r=a.categories&&a.categories[0].category||[],i=r.length,n=[];for(e=0;e<i;e++)void 0!==(t=r[e]||{}).x&&n.push(t);o&&o[0].setTickValues(n)},a.getJSONData=function(){var e,t=this.getChildren("canvas")[0].getChildren("vCanvas")[0].getChildren("datasetGroup_dragNode")[0],a={};return t&&(a=t.getJSONData()),(e=(0,c.extend2)({},this.getFromEnv("dataSource"))).dataset=a.dataset,e.connectors=a.connectors,e.labels=a.labels,e},t}(l["default"]);t.configurer=r=f.prototype.configure;var m=f;t["default"]=m},1396:function(e,t,a){"use strict";var o=a(273);t.__esModule=!0;var r=o(a(1397));t.DragNodeDataset=r["default"];var i=o(a(1399));t.DragNodeLabels=i["default"];var n=o(a(1401));t.DragNodeConnector=n["default"];var l=o(a(1403));t.DragNodeGroup=l["default"]},1397: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(617)),n=a(278),l=a(286),s=o(a(1398)),c=o(a(391)),d=o(a(724)),h=(0,l.getDep)("redraphael","plugin"),u=Math.max,p=Math.min,g=n.preDefStr.CIRCLE,f=n.preDefStr.POLYGON,m=n.preDefStr.RECTANGLE,v=n.preDefStr.UNDERSCORE,b=n.preDefStr.GROUPID,x=n.preDefStr.EVENTARGS,k=n.preDefStr.OBJECTBOUNDINGBOX,y=n.preDefStr.DEFAULT,C=n.preDefStr.COMMA,w=n.preDefStr.POSITION_TOP,A=!!n.hasSVG,S=function(){this.hide()},N=function(e){return null!=e},L=function(e,t,a,o){return t.setAnimation({el:"group",attr:{name:e},container:a,component:o})},D=function(e,t,a){var o,r,i,l=e,s=t;return l=(0,n.getFirstColor)(l),s=(0,n.getFirstAlpha)(s),r=(0,n.getLightColor)(l,80),i=(0,n.getDarkColor)(l,65),o={FCcolor:{gradientUnits:k,color:r+C+i,alpha:s+C+s,ratio:n.BGRATIOSTRING}},a?o.FCcolor.angle=1===a?0:180:(o.FCcolor.cx=.4,o.FCcolor.cy=.4,o.FCcolor.r="50%",o.FCcolor.radialGradient=!0),o},E=function(e,t,a){var o,r=e.setTooltext,i=e.formatedVal,l=t.seriesname,s=e.label,c=e.xValue,d=e.pointLabel,h=t.tooltipSepChar;return void 0!==r?o=(0,n.parseTooltext)(r,[3,4,5,6,8,9,10,11],{yaxisName:(0,n.parseUnsafeString)(a.yaxisname),xaxisName:(0,n.parseUnsafeString)(a.xaxisname),yDataValue:i,xDataValue:c,label:s},e,a,t):void 0!==d?o=s:null===i?o=!1:(t.seriesNameInToolTip&&(l=(0,n.getFirstValue)(t.seriesname)),o=l?l+h:n.BLANK,o+=c?c+h:n.BLANK,o+=i),o};(0,l.addDep)({name:"dragNodeAnimation",type:"animationRule",extension:s["default"]}),(0,c["default"])(h);var T=function(e){function t(){return e.apply(this,arguments)||this}(0,r["default"])(t,e);var a=t.prototype;return a.getName=function(){return"dragNode"},a.getType=function(){return"dataset"},a.hide=function(){var e=this.getLinkedParent(),t={hide:!0};this.setState("dirty",!0),this.setState("visible",!1),e.childChanged(t),this.getFromEnv("chart").getChildren("legend")[0].getItem(this.config.legendItemId).setLegendState("hidden"),this.asyncDraw()},a.show=function(){var e=this.getLinkedParent(),t=this.getFromEnv("legend").getItem(this.config.legendItemId),a={show:!0};this.setState("visible",!0),this.setState("dirty",!0),e.childChanged(a),t&&t.removeLegendState("hidden"),this.asyncDraw()},a._setDatasetIndex=function(){var e=this.getLinkedParent().getChildren("dataset");this.config.datasetIndex=e.indexOf(this)},a.pointInShape=function(e,t,a){var o,r,i,n,l,s=this.getFromEnv("chart").getChildren("canvas")[0].config,c=a.symbol,d=a._xPos,h=a._yPos;return!(e<s.canvasLeft||e>s.canvasLeft+s.canvasWidth||t<s.canvasTop||t>s.canvasTop+s.canvasHeight)&&("rectangle"===c?(n=a._plotWidth,h-=(l=a._plotHeight)/2,e>=(d-=n/2)&&t>=h&&e<=d+n&&t<=h+l):(o=(e-d)*(e-d),r=(t-h)*(t-h),i=Number(a.radius),o+r<=(i*=i)))},a._firePlotEvent=function(e,t,a){var o,r,i,l=this.getFromEnv("chart"),s=this.components,c=this.getFromEnv("toolTipController"),d=s.data[t]||{},h=this.getGraphicalElement("sharedAnchor"),u=d.graphics&&d.graphics.element||void 0!==(d.config&&d.config.setValue)&&h,p=this.config.currentToolTip,g=this.config.viewMode,f=this.getLinkedParent(),m=d.graphics.element;if(u)switch(i=(o=d.config).setLink,r=o.eventArgs,e){case"fc-mouseover":this._decideTooltipType(t,a),this._rolloverResponseSetter(l,d,a),i&&(u.node.style.cursor=n.POINTER);break;case"fc-mouseout":c.hide(p),this._rolloutResponseSetter(l,d,a),i&&(u.node.style.cursor=y);break;case"fc-click":m.data("fire_click_event")&&l.plotEventHandler(u,a,"dataplotclick",r);break;case"fc-mousemove":f.hideWaitElem(),this._decideTooltipType(t,a);break;case"fc-mousedown":clearTimeout(m._longpressactive),m.data("fire_click_event",1),g||f.drawWaitingRing(d,this.config.datasetIndex);break;case"fc-mouseup":f.hideWaitElem(),f.clearLongPress()}},a.dragUp=function(e){this.data("drag-options").dataset._dragUp.call(this,e)},a.dragMove=function(e,t){var a=this.data("drag-options").dataset,o=t[0],r=t[1],i=t[2],n=t[3];a._dragMove.call(this,o,r,i,n)},a.dragStart=function(e){this.data("drag-options").dataset._dragStart.call(this,e)},a._dragStart=function(){var e,t=this.data("drag-options"),a=t.dataObj,o=a.graphics.element,r=o.getBBox(),i=a.config,n=t.dataset,l=n.getFromEnv("chart"),s=i.dragStart||(i.dragStart={}),c=a.graphics.cloneGraphic,d=n.getContainer("cloneGraphicGroup"),h=a.graphics.cloneText,u=a.graphics.image,p=a.graphics.cloneImage,g=a.graphics.label;A&&(o._.dirty=1),i.allowDrag&&(!c&&a.graphics.element&&(c=a.graphics.cloneGraphic=a.graphics.element.clone(),d.appendChild(c)),g&&!h&&((h=a.graphics.cloneText=a.graphics.label.clone()).followers[0]&&h.followers[0].el&&d.appendChild(h.followers[0].el),d.appendChild(h)),u&&!p&&(p=a.graphics.cloneImage=a.graphics.image.clone(),d.appendChild(p)),h&&h.show(),p&&p.show(),c&&c.show()),s.xPos=i._xPos,s.yPos=i._yPos,s.x=i.x,s.y=i.y,s.bBox=r,s.origX=s.lastDx||(s.lastDx=0),s.origY=s.lastDy||(s.lastDy=0),e=o.data(x),l.fireChartInstanceEvent("dataplotdragstart",e),c&&c.show(),h&&h.show(),p&&p.show()},a._dragMove=function(e,t){var a,o=e,r=t,i=this.data("drag-options"),n=i.dataObj,l=n.graphics.element,s=n.graphics.cloneGraphic,c=n.graphics.cloneImage,d=n.graphics.cloneText,h=n.config,u=h.dragStart,p=u.bBox.x+o,g=u.bBox.x2+o,f=u.bBox.y+r,m=u.bBox.y2+r,v=i.dataset,b=v.getFromEnv("animationManager"),x=v.getLinkedParent(),k=v.getFromEnv("chartConfig"),y=k.canvasLeft,w=k.canvasRight,A=k.canvasTop,S=k.canvasBottom;p<y&&(o+=y-p),g>w&&(o-=g-w),f<A&&(r+=A-f),m>S&&(r-=m-S),(o||r)&&(l.data("fire_click_event",0),x.hideWaitElem(),x.clearLongPress()),h.allowDrag&&(u.draged=!0,u.lastDx=o,u.lastDy=r,a=i._transformObj={transform:"t"+(u.origX+o)+C+(u.origY+r)},s&&b.setAnimation({el:s,attr:a,component:v}),c&&b.setAnimation({el:c,attr:a,component:v}),d&&b.setAnimation({el:d,attr:{x:h._xPos+o,y:h._yPos+r},component:v}))},a._getHoveredPlot=function(e,t){var a=this.config.tree.getNeighbour({x:e,y:t},!1);if(a)return{pointIndex:a.index||a.i,hovered:!0,pointObj:a.data}},a._rolloutResponseSetter=function(e,t,a){var o=this.getFromEnv("animationManager"),r=t.config,i=t.graphics.element,l=r.dragStart,s=i.data("unHoverAttr");l&&Object.keys(l).length||("poly"!==r.shapeType&&r.shapeType!==g||(s.path=(0,n.polyPathToPath)([r.shapeArg.sides,r._xPos,r._yPos,s.r,r.startAngle,0])),r.rollOverProperties.enabled&&o.setAnimation({el:i,attr:s,component:this}),e&&e.plotEventHandler(i,a,"DataPlotRollOut"))},a._rolloverResponseSetter=function(e,t,a){var o=this.getFromEnv("animationManager"),r=t.config,i=t.graphics.element,l=r.dragStart,s=i.data("hoverAttr");l&&Object.keys(l).length||("poly"!==r.shapeType&&r.shapeType!==g||(s.path=(0,n.polyPathToPath)([r.shapeArg.sides,r._xPos,r._yPos,s.r,r.startAngle,0])),r.rollOverProperties.enabled&&o.setAnimation({el:i,attr:s,component:this}),e&&e.plotEventHandler(i,a,"DataPlotRollOver"))},a._dragUp=function(e){var t,a,o,r,i,l,s=this.data("drag-options"),c=s.dataset,d=c.getFromEnv("chart"),h=c.components.data,u=s.dataObj,p=u.graphics.element,g=c.getLinkedParent(),f=u.config,m=u.config.dragStart||{},v=c.getFromEnv("yAxis"),b=u.graphics.cloneText,k=c.getFromEnv("xAxis"),y={},C=c.config.datasetIndex,w=u.graphics.cloneGraphic,A=u.graphics.cloneImage;if(g.hideWaitElem(),g.clearLongPress(),m.draged){for(m.origX+=m.lastDx,m.origY+=m.lastDy,u.config._xPos=m.xPos+m.lastDx,u.config._yPos=m.yPos+m.lastDy,y.x=k.getValue(u.config._xPos),y.y=v.getValue(u.config._yPos),y.update=!0,o=0,i=h.length;o<i&&(r=h[o],u.config.id!==r.config.id);o++);c.updatePointConfig(y,o),(l=p.data(x)).x=y.x,l.y=y.y,c.parsePlotAttributes(o),c._drawNode(o),t=u.config.startConnectors,a=u.config.endConnectors,g.drawNodeConnectors(t,C),g.drawNodeConnectors(a,C),(0,n.getMouseCoordinate)(d.getFromEnv("chart-container"),e,d).sourceEvent="dataplotdragend",d.fireChartInstanceEvent("chartupdated",(0,n.extend2)({sourceEvent:"dataplotdragend"},l),e),d.fireChartInstanceEvent("dataplotdragend",l,e),m.draged=!1,c._setupKdTree()}b&&b.hide(),w&&w.hide(),A&&A.hide(),delete f.dragStart},a.updatePointConfig=function(e,t){var a,o=this.components.data,r=this.config,i=(o[t]||{}).config,l=this.getFromEnv("number-formatter"),s=this.getFromEnv("chart-attrib");void 0!==i&&(i.y=l.getCleanValue((0,n.pluck)(e.y)),i.x=l.getCleanValue((0,n.pluck)(e.x)),i._options.x=i.x,i._options.y=i.y,a=l.xAxis(i.x),i.formatedVal=null===i.y?i.y:l.dataLabels(i.y),i.xValue=a,r.showTooltip?i.toolText=E(i,r,s):i.toolText=!1,i.update=e.update)},a.getNode=function(e){return e?this.components.nodes[e]:this.components.nodes},a.configureAttributes=function(e){if(e)this.trimData(e),this.config.JSONData=e;else if(!e&&!this.config.JSONData)return!1;var t,a,o,r,i,l,s,c=this.config.datasetIndex,d=this.config.JSONData,h=d.data||[],u=this.getFromEnv("chart-attrib"),p=this.getFromEnv("chartConfig"),g=h.length,f=this.config,m=n.ZEROSTRING,v=this.getFromEnv("color-manager"),b=n.HUNDREDSTRING;for(f.context={},this.components.nodes={},f.showValues=(0,n.pluckNumber)(d.showvalues,u.showvalues,1),s=f.useRoundEdges=(0,n.pluckNumber)(u.useroundedges),f.zIndex=1,f.name=(0,n.getValidValue)(d.seriesname),f.viewMode=(0,n.pluckNumber)(u.viewmode,0),f.id=(0,n.pluck)(d.id,this.index),0!==(0,n.pluckNumber)(d.includeinlegend)&&void 0!==f.name||(f.showInLegend=!1),f.seriesname=(0,n.parseUnsafeString)(d.seriesname),f.includeinlegend=(0,n.pluckNumber)(d.includeinlegend,f.seriesname?1:0),f.showTooltip=(0,n.pluckNumber)(u.showtooltip,1),f.seriesNameInTooltip=(0,n.pluckNumber)(u.seriesnameintooltip,1),f.showTextOutline=(0,n.pluckNumber)(u.textoutline,0),f.tooltipSepChar=(0,n.pluck)(u.tooltipsepchar," - "),a=f.plotFillAlpha=(0,n.pluck)(u.plotfillalpha,b),o=f.showPlotBorder=(0,n.pluckNumber)(u.showplotborder,1),r=f.plotBorderColor=(0,n.getFirstColor)((0,n.pluck)(u.plotbordercolor,"666666")),i=f.plotBorderThickness=(0,n.pluckNumber)(u.plotborderthickness,s?2:1),l=f.plotBorderAlpha=(0,n.pluck)(u.plotborderalpha,u.plotfillalpha,s?"35":"95"),f.use3DLighting=Boolean((0,n.pluckNumber)(u.use3dlighting,u.is3d,s?1:0)),f.color=(0,n.getFirstColor)((0,n.pluck)(d.color,v.getPlotColor(c))),f.alpha=(0,n.pluck)(d.plotfillalpha,d.nodeFillAlpha,d.alpha,a),f.datasetShowPlotBorder=Boolean((0,n.pluckNumber)(d.showplotborder,o)),f.datasetPlotBorderColor=(0,n.getFirstColor)((0,n.pluck)(d.plotbordercolor,d.nodebordercolor,r)),f.datasetPlotBorderThickness=(0,n.pluckNumber)(d.plotborderthickness,d.nodeborderthickness,i),f.datasetPlotBorderAlpha=f.datasetShowPlotBorder?(0,n.pluck)(d.plotborderalpha,d.nodeborderalpha,d.alpha,l):m,f.datasetAllowDrag=Boolean((0,n.pluckNumber)(d.allowdrag,1)),f.colorObj={fillColor:(0,n.convertColor)(f.color,f.alpha),lineColor:{FCcolor:{color:f.datasetPlotBorderColor,alpha:f.datasetPlotBorderAlpha}}},f.lineWidth=void 0,f.symbol="poly_4",this.components.data||(this.components.data=[]),this.setState("visible",1===(0,n.pluckNumber)(d.visible,!Number(d.initiallyhidden),1)),f.yMin=f.yMax=f.xMax=f.xMin=0,this._refreshData=!0,t=0;t<g;t+=1)this._setConfigure(t);this._refreshData=!1,p.showLegend&&this._addLegend(),this._setDatasetIndex(),this.setState("dirty",!0)},a._setConfigure=function(e,t){var a,o,r,i,l,s,c=this.config.JSONData,d=c.data,h=t||d[e],m=this.components.data,v=this.config,b=m[e]=m[e]||(m[e]={}),x=b.config=b.config||(b.config={}),k=v.id,y=v.yMin||+Infinity,C=v.yMax||-Infinity,A=v.xMax||-Infinity,S=v.xMin||+Infinity,L=v.use3DLighting,T=v.datasetPlotBorderThickness,F=v.datasetPlotBorderColor,P=v.datasetPlotBorderAlpha,_=this.getFromEnv("chart-attrib"),V=v.color,I=v.alpha,B=v.datasetAllowDrag,M=this.getFromEnv("number-formatter");if(!b.graphics&&(b.graphics={}),x._options=(0,n.extend2)({},h),h||t){if(o=x.y=M.getCleanValue((0,n.pluck)(h.y)),r=x.x=M.getCleanValue((0,n.pluck)(h.x)),x.index=e,x.dragStart||(x.dragStart={}),C=u(C,x.y),y=p(y,x.y),A=u(A,x.x),S=p(S,x.x),null===o)x.value=null;else{switch(i=M.xAxis(r),x.formatedVal=null===o?o:M.dataLabels(o),x.setTooltext=(0,n.getValidValue)((0,n.parseUnsafeString)((0,n.pluck)(h.tooltext,c.plottooltext,_.plottooltext),!1)),x.pointLabel=(0,n.pluck)(h.label,h.name),l=(0,n.parseUnsafeString)(x.pointLabel),x.label=l,x.name=l,x.displayValue=l,x.xValue=i,t||(x.startConnectors={},x.endConnectors={}),v.showTooltip?x.toolText=E(x,v,_):x.toolText=!1,x.link=h.link,x.id=(0,n.pluck)(h.id,k+n.preDefStr.UNDERSCORE+e),x.allowDrag=Boolean((0,n.pluckNumber)(h.allowdrag,B)),a=x.shape=(0,n.getValidValue)((0,n.pluck)(h.shape),n.preDefStr.RECTANGLE).toLowerCase(),x.height=(0,n.getValidValue)((0,n.pluck)(h.height),10),x.width=(0,n.getValidValue)((0,n.pluck)(h.width),10),x.radius=(0,n.getValidValue)((0,n.pluck)(h.radius),10),x.numSides=(0,n.getValidValue)((0,n.pluck)(h.numsides),4),x.color=(0,n.getFirstColor)((0,n.pluck)(h.color,V)),x.borderColor=(0,n.getFirstColor)((0,n.pluck)(h.bordercolor,F)),x.alpha=(0,n.pluck)(h.alpha,I),x.imageURL=(0,n.getValidValue)(h.imageurl),x.imageNode=Boolean((0,n.pluckNumber)(h.imagenode)),x.imageWidth=h.imagewidth,x.imageHeight=h.imageheight,x.imageAlign=(0,n.getValidValue)(h.imagealign,n.BLANK).toLowerCase(),x.labelAlign=(0,n.pluck)(h.labelalign,x.imageNode&&N(x.imageURL)?w:n.preDefStr.POSITION_MIDDLE),x.hovercolor=(0,n.pluck)(h.hovercolor,c.hovercolor),x.borderhoveralpha=(0,n.pluck)(h.borderhoveralpha,c.borderhoveralpha),x.borderhovercolor=(0,n.pluck)(h.borderhovercolor,c.borderhovercolor),x.borderhoverthickness=(0,n.pluck)(h.borderhoverthickness,c.borderhoverthickness),x.hoveralpha=(0,n.pluck)(h.hoveralpha,c.hoveralpha),x.hoverheight=(0,n.pluck)(h.hoverheight,c.hoverheight),x.hoverradius=(0,n.pluck)(h.hoverradius,c.hoverradius),x.hoverwidth=(0,n.pluck)(h.hoverwidth,c.hoverwidth),x.dataLabelStyle=this._configureDataLabelStyle(h),x.shape){case g:s=0;break;case f:s=2,a=(0,n.mapSymbolName)(x.numSides);break;default:s=1}x.symbol=a,L?(x.fillColor=D(x.color,x.alpha,s),x.cloneFillColor=D(x.color,50,s)):(x.fillColor={color:x.color,alpha:x.alpha},x.cloneFillColor=(0,n.convertColor)(x.color,50)),x.colorArr=[{FCcolor:{color:x.color,alpha:x.alpha}},{FCcolor:{color:x.borderColor,alpha:P}}],x.rollOverProperties=this.pointHoverOptions(b,_,{shapeType:s,use3D:L,height:x.height,width:x.width,radius:x.radius,color:x.color,alpha:x.alpha,borderColor:x.borderColor,borderAlpha:P,borderThickness:T})}!x.update&&t&&(x.update=t.update),!x.add&&t&&(x.add=t.add),!0===this._refreshData&&delete b.removed}b.dataset=this,v.xMax=A,v.xMin=S,v.yMin=y,v.yMax=C},a.pointHoverOptions=function(e,t,a){var o,r,i,l,s=(0,n.pluckNumber)(e.config.showhovereffect,this.config.showhovereffect,t.plothovereffect,t.showhovereffect),c={},d=!!(0,n.pluck)(e.config.hovercolor,this.config.hovercolor,t.plotfillhovercolor,e.config.hoveralpha,this.config.hoveralpha,t.plotfillhoveralpha,e.config.borderhovercolor,this.config.borderhovercolor,t.plotborderhovercolor,e.config.borderhoveralpha,this.config.borderhoveralpha,t.plotborderhoveralpha,e.config.borderhoverthickness,this.config.borderhoverthickness,t.plotborderhoverthickness,e.config.hoverheight,this.config.hoverheight,t.plothoverheight,e.config.hoverwidth,this.config.hoverwidth,t.plothoverwidth,e.config.hoverradius,this.config.hoverradius,t.plothoverradius,s),h=!1;return(void 0===s&&d||s)&&(h=!0,o=(0,n.pluck)(e.config.hovercolor,this.config.hovercolor,t.plotfillhovercolor,(0,n.getLightColor)(a.color,70)),c={rawhoverAlpha:r=(0,n.pluck)(e.config.hoveralpha,this.config.hoveralpha,t.plotfillhoveralpha,a.alpha),rawhoverColor:o,rawhoverBorderColor:i=(0,n.pluck)(e.config.borderhovercolor,this.config.borderhovercolor,t.plotborderhovercolor,a.borderColor),rawhoverBorderAlpha:(0,n.pluckNumber)(e.config.borderhoveralpha,this.config.borderhoveralpha,t.plotborderhoveralpha,r,a.borderAlpha),stroke:(0,n.convertColor)(i,(0,n.pluckNumber)(e.config.borderhoveralpha,this.config.borderhoveralpha,t.plotborderhoveralpha,r,a.borderAlpha)),"stroke-width":(0,n.pluckNumber)(e.config.borderhoverthickness,this.config.borderhoverthickness,t.plotborderhoverthickness,a.borderThickness),height:(0,n.pluckNumber)(e.config.hoverheight,this.config.hoverheight,t.plothoverheight,a.height),width:(0,n.pluckNumber)(e.config.hoverwidth,this.config.hoverwidth,t.plothoverwidth,a.width),r:(0,n.pluckNumber)(e.config.hoverradius,this.config.hoverradius,t.plothoverradius,a.radius)},l=a.use3D?D((0,n.getFirstColor)((0,n.pluck)(e.config.hovercolor,this.config.hovercolor,t.plotfillhovercolor,(0,n.getLightColor)(a.color,70))),(0,n.pluck)(e.config.hoveralpha,this.config.hoveralpha,t.plotfillhoveralpha,a.alpha),a.shapeType):(0,n.convertColor)(o,r),c.fill=(0,n.toRaphaelColor)(l)),{enabled:h,rollOverAttrs:c}},a._addLegend=function(){var e,t=this.config,a=this.getFromEnv("legend"),o={enabled:t.includeInLegend,type:this.type,anchorSide:4,label:(0,n.getFirstValue)(this.config.JSONData.seriesname)};t.includeinlegend?((e=a.getItem(this.config.legendItemId))?e.configure({style:a.config.itemStyle,hiddenStyle:a.config.itemHiddenStyle,datasetVisible:a.config.datasetVisible,hoverStyle:a.config.itemHoverStyle}):(this.config.legendItemId=a.createItem(this),e=a.getItem(this.config.legendItemId),this.addExtEventListener("fc-click",(function(){e.itemClickFn()}),e)),e.configure(o),e.setStateCosmetics("default",{symbol:{fill:(0,n.toRaphaelColor)({color:t.color,alpha:t.alpha}),rawFillColor:t.color,stroke:(0,n.toRaphaelColor)({color:t.plotBorderColor,alpha:n.HUNDREDSTRING}),"stroke-width":t.anchorBorderThickness}}),this.getState("visible")?e.removeLegendState("hidden"):e.setLegendState("hidden")):this.config.legendItemId&&a.disposeItem(this.config.legendItemId)},a.createContainer=function(){var e=this.getFromEnv("animationManager"),t=this.getLinkedParent().getChildContainer();!this.getContainer("nodesGroup")&&this.addContainer("nodesGroup",L("nodesGroup",e,t.defaultVcanvasGroup,this)),!this.getContainer("dataLabelsGroup")&&this.addContainer("dataLabelsGroup",L("dataLabelsGroup",e,t.vcanvasLabelGroup,this)),!this.getContainer("cloneGraphicGroup")&&this.addContainer("cloneGraphicGroup",L("cloneGraphicGroup",e,t.defaultVcanvasGroup,this))},a.draw=function(){var e,t,a,o=this.components,r=this.getFromEnv("smartLabel"),i=o.data,n=this.components.removeDataArr||[],l=n.length,s=this.getFromEnv("dataLabelStyle"),c={fontFamily:s.fontFamily,fontSize:s.fontSize,lineHeight:s.lineHeight,fontWeight:s.fontWeight,fontStyle:s.fontStyle};if(this.getState("dirty")||this._contextChanged()){for(this.createContainer(),a=this.getContainer("nodesGroup"),this.getFromEnv("animationManager").setAnimation({el:this.getContainer("cloneGraphicGroup"),attr:{opacity:.3},component:this}),a.css(c),r.useEllipsesOnOverflow(this.getFromEnv("chartConfig").useEllipsesWhenOverflow),e=0,t=i.length;e<t;e+=1)!i[e].removed&&this._drawNode(e);for(this.config.drawn=!0,e=0;e<l;e++)this._removeDataVisuals(n.shift());this._setupKdTree()}},a._setupKdTree=function(){var e,t,a,o,r,i=this.config,l=this.components.data,s=-Infinity;for(r=i.searchDataArr=[],e=l.length,t=0;t<e;t++)a=l[t].config,l[t].removed||void 0===a._yPos||isNaN(a._yPos)||(o=a.props.element.attr,s=Math.max(s,(0,n.pluckNumber)(a.radius,0)),r.push({x:(0,n.pluckNumber)(o.x,a._xPos),y:(0,n.pluckNumber)(o.y,a._yPos),index:t,data:l[t],shapeInfo:{type:a.shape,radius:(0,n.pluck)(a.radius,0),width:(0,n.pluckNumber)(a.width),height:(0,n.pluckNumber)(a.height),sides:(0,n.pluckNumber)(a.numSides)}}));i.tree=new d["default"](!0).buildKdTree(r),i.tree._setSearchLimit(s,s)},a.drawLabel=function(e){var t,a,o,r,i,l,s,c,d,h,u,p,g,f,m,v,k,y,C,A,S,L,D,E,T=this.getFromEnv("chart"),F=this.config,P=F.datasetIndex,_=this.getFromEnv("animationManager"),V=this.components.data,I=V.length,B=this.getContainer("nodesGroup"),M=this.getFromEnv("chartConfig"),O=this.getFromEnv("dataLabelStyle"),R=this.dragUp,G=this.dragMove,H=this.dragStart,z=this.getFromEnv("smartLabel"),W=this.getState("visible");for(z.setStyle(O),void 0!==e?I=(t=e)+1:t=0;t<I;t++)if(k=(i=(u=V[t]).config)._plotWidth,y=i._plotHeight,l=i.displayValue,C=i.labelAlign,v=(A=u.graphics).cloneText,S=u.config.rollOverProperties,L=i.shapeType,W&&N(l)&&l!==n.BLANK){switch(z.useEllipsesOnOverflow(M.useEllipsesWhenOverflow),d=.5*y-.5*(c=z.getSmartText(l,k-1,y-1)).height,C){case w:d=-d;break;case n.POSITION_BOTTOM:break;default:d=0}g=i._xPos,D=i._yPos,u._yAdjustment=p=d,f=D+p,s=i.link?n.POINTER:i.allowDrag?"move":n.BLANKSTRING,r=i.dataLabelStyle,a={text:c.text,title:c.tooltext||n.BLANKSTRING,fill:r.color,"text-bound":[r.backgroundColor,r.borderColor,O.borderThickness,O.borderPadding,O.borderRadius,O.borderDash],x:g,y:f,cursor:s},o=A.label,(o=_.setAnimation({el:o||"text",attr:a,container:B,component:this})).outlineText(F.showTextOutline,a.fill),A.label?o.show():(o=this.addGraphicalElement("plotLabel",o,!0),A.label=o,o.drag(G,H,R)),E=A&&(A.image||A.element),v&&_.setAnimation({el:v,attr:{transform:n.BLANKSTRING,x:g,y:f,text:c.text,title:c.tooltext||n.BLANKSTRING,fill:O.color,"text-bound":[O.backgroundColor,O.borderColor,O.borderThickness,O.borderPadding,O.borderRadius,O.borderDash]},component:this}),o.data("drag-options",{dataObj:u,dataset:this,datasetIndex:P,pointIndex:u.config.index,cursor:s,chart:T,link:u.link}),h={index:t,link:i.link,y:i.y,x:i.x,shape:(0,n.pluck)(L,"rect"),width:i.width,height:i.height,radius:i.radius,sides:i.numSides,label:i.displayValue,toolText:i.toolText,id:i.id,datasetIndex:P,datasetName:this.config.JSONData.seriesname,sourceType:"dataplot",allowDrag:i.allowDrag,numSides:i.numSides,imageNode:i.imageNode,imageAlign:i.imageAlign,imageWidth:i.imageWidth,imageHeight:i.imageHeight,labelAlign:i.labelAlign,color:i.color,alpha:i.alpha,hoverColor:i.rollOverProperties.rollOverAttrs.rawhoverColor,hoverAlpha:i.rollOverProperties.rollOverAttrs.rawhoverAlpha,borderHoverColor:i.rollOverProperties.rollOverAttrs.rawhoverBorderColor,borderHoverAlpha:i.rollOverProperties.rollOverAttrs.rawhoverBorderAlpha,borderHoverThickness:i.rollOverProperties.rollOverAttrs["stroke-width"],hoverHeight:i.rollOverProperties.rollOverAttrs.height,hoverWidth:i.rollOverProperties.rollOverAttrs.width,hoverRadius:i.rollOverProperties.rollOverAttrs.r},m=P+"_"+t,o.data(b,m),o.data(x,h),o.data("hoverAttr",S&&S.rollOverAttrs),o.data("unHoverAttr",E.data("unHoverAttr"))}else A.label&&A.label.hide()},a.parsePlotAttributes=function(e){var t,a,o,r,i,l,s,c,d,h,u,p,f,b,x,k,y,C,w,A,S,N,L,D=this.config.datasetIndex,E=this.components,T=E.nodes,F=this.getFromEnv("xAxis"),P=this.getFromEnv("yAxis"),_=E.data[e],V=_.config,I=this.config,B=_.graphics||(_.graphics={}),M=V.symbol,O=I.colorObj.lineColor,R=I.datasetPlotBorderThickness,G=_.config.rollOverProperties,H=V.shape,z=V.link?n.POINTER:V.allowDrag?"move":n.BLANKSTRING,W=B.cloneImage;if(V._yPos=a=P.getPixel(V.y),V._xPos=t=F.getPixel(V.x),void 0!==a&&!isNaN(a)){if(V.shapeArg={},c=V.shapeArg,r=(0,n.pluckNumber)(V.height),o=(0,n.pluckNumber)(V.width),i=(0,n.pluckNumber)(V.radius),f=M===m,l=V.id,s=V.imageNode,d=V.imageURL,h=V.imageAlign,u=f?o:1.4*i,b=(0,n.pluckNumber)(V.imageWidth,u),p=f?r:1.4*i,x=(0,n.pluckNumber)(V.imageHeight,p),C=(0,n.toRaphaelColor)(V.fillColor),V._plotWidth=u,V._plotHeight=p,y={fill:C,"stroke-width":R,stroke:(0,n.toRaphaelColor)(O)},A=[(M=(M=c.symbol=(0,n.pluck)(V.symbol,I.symbol,n.BLANK)).split(v))[1],t,a,V.radius,V.startAngle,0],"poly"===M[0]||M[0]===g?(V.shapeType=M[0],V.elemType="path",S={path:(0,n.polyPathToPath)(A)},c.x=t,c.y=a,c.radius=V.radius,c.sides=M[1],y.r=V.radius,delete y.width,delete y.x,delete y.y,delete y.height,G&&G.enabled&&(delete(w=G.rollOverAttrs).x,delete w.y,delete w.width,delete w.height)):(V.shapeType=n.SHAPE_RECT,V.elemType=n.SHAPE_RECT,c.x=t-o/2,c.y=a-r/2,c.r=0,c.width=o,c.height=r,S={x:c.x,y:c.y,width:o,height:r,r:0},y.width=o,y.height=r,y.x=t-o/2,y.y=a-r/2,G&&G.enabled&&((w=G.rollOverAttrs).x=t-w.width/2,w.y=a-w.height/2,delete w.r)),S.fill=C,S["stroke-width"]=R,S.stroke=(0,n.toRaphaelColor)(O),V.eventArgs={index:e,link:V.link,y:V.y,x:V.x,shape:(0,n.pluck)(H,"rect"),width:o,height:r,radius:i,sides:V.numSides,label:V.displayValue,toolText:V.toolText,id:V.id,datasetIndex:D,datasetName:this.config.JSONData.seriesname,sourceType:"dataplot",allowDrag:V.allowDrag,numSides:V.numSides,imageNode:V.imageNode,imageAlign:V.imageAlign,imageWidth:V.imageWidth,imageHeight:V.imageHeight,labelAlign:V.labelAlign,color:V.color,alpha:V.alpha,hoverColor:V.rollOverProperties.rollOverAttrs.rawhoverColor,hoverAlpha:V.rollOverProperties.rollOverAttrs.rawhoverAlpha,borderHoverColor:V.rollOverProperties.rollOverAttrs.rawhoverBorderColor,borderHoverAlpha:V.rollOverProperties.rollOverAttrs.rawhoverBorderAlpha,borderHoverThickness:V.rollOverProperties.rollOverAttrs["stroke-width"],hoverHeight:V.rollOverProperties.rollOverAttrs.height,hoverWidth:V.rollOverProperties.rollOverAttrs.width,hoverRadius:V.rollOverProperties.rollOverAttrs.r},s&&d){switch(x>p&&(x=p),b>u&&(b=u),h){case n.POSITION_MIDDLE:k=a-x/2;break;case n.POSITION_BOTTOM:k=p>x?a+p/2-x:a-x/2;break;default:k=p>x?a-.5*p:a-x/2}V.imageX=t-b/2,V.imageY=k,V.imageWidth=b,V.imageHeight=x,L={src:d,x:V.imageX,y:k,width:b,height:x,cursor:z},W&&(N={transform:n.BLANKSTRING,src:d,x:V.imageX,y:k,width:b,height:x})}V.pointAttr=y,T[l]=_,V.props={element:{attr:S},imageElement:{attr:L},cloneImage:{attr:N},cloneGraphic:{attr:S}}}},a.allocatePosition=function(e){var t,a;if(a=this.components.data.length,void 0!==e)this.parsePlotAttributes(e);else for(t=0;t<a;t++)this.parsePlotAttributes(t)},a._drawNode=function(e){var t,a,o=this.getFromEnv("chart"),r=this.config.datasetIndex,i=this.getLinkedParent(),l=this.components,s=this.getFromEnv("animationManager"),c=l.data[e],d=c.config,h=c.graphics||(c.graphics={}),u=d.imageNode,p=d.imageURL,g=this.getContainer("nodesGroup"),f=c.config.rollOverProperties,m=this.dragUp,v=this.dragMove,k=this.dragStart,y=d.link?n.POINTER:d.allowDrag?"move":n.BLANKSTRING,C=h.graphic,w=h.cloneText,A=h.cloneGraphic,N=h.cloneImage,L=h.image,D=h.label,E=this.getState("visible");void 0===d._yPos||isNaN(d._yPos)?(h.element&&(h.element=s.setAnimation({el:h.element,component:this})),h.image&&(h.image=s.setAnimation({el:h.image,component:this})),h.label&&(h.label=s.setAnimation({el:h.label,component:this}))):(a=(C=h.element)&&C.type,-1===d.elemType.indexOf(a)&&C&&(C.remove(),C=h.element=null,D&&D.remove(),L&&L.remove(),delete h.label,delete h.image,L=null,D=null),C=s.setAnimation({el:C||d.elemType,label:"node",attr:d.props.element.attr,container:g,component:this}),h.graphic||C.drag(v,k,m),h.element=C,C.show(),i.animationDone=!0,t=r+"_"+e,A&&(A.type===C.type?s.setAnimation({el:A,attr:d.props.element.attr,component:this}).transform(n.BLANKSTRING):(A.remove(),delete c.graphics.cloneGraphic,w&&(w.remove(),delete c.graphics.cloneText))),u&&p?(L=s.setAnimation({el:h.image||"image",attr:E&&d.props.imageElement.attr,doNotRemove:!0,container:g,component:this,callback:!E&&S}),!h.image&&L&&L.drag(v,k,m),h.image=L,E&&L.show(),L.data("drag-options",{dataObj:c,dataset:this,datasetIndex:this.index,pointIndex:c.config.index,cursor:y,link:c.link}),L.data(b,t),L.data(x,d.eventArgs),L.data("hoverAttr",f&&f.rollOverAttrs),L.data("unHoverAttr",d.pointAttr),N&&s.setAnimation({el:N,attr:d.props.cloneImage.attr,component:this})):h.image&&(h.image=s.setAnimation({el:h.image,component:this})),this.drawLabel(e),s.setAnimation({el:C,attr:{cursor:y},component:this}),C.data("drag-options",{dataObj:c,dataset:this,datasetIndex:this.index,pointIndex:c.config.index,cursor:y,chart:o,link:c.link}),C.data(b,t),C.data(x,d.eventArgs),C.data("hoverAttr",f&&f.rollOverAttrs),C.data("unHoverAttr",d.pointAttr),E?C.show():C.hide())},a.trimData=function(e){if(this.config.JSONData){var t=this.components,a=t.data&&t.data.length,o=e.data&&e.data.length||0,r=a-o;r>0&&this.removeData(o,r)}},a.removeData=function(e,t){var a=e,o=t,r=this.components,i=this.getLinkedParent(),n=r.data,l=r.removeDataArr||(r.removeDataArr=[]);o=o||1,(a=a||0)<0&&(a=0),r.removeDataArr=l=l.concat(n.splice(a,o)),i._clearConnectors()},a._removeDataVisuals=function(e){var t,a,o;if(e)for(t in a=e.graphics)(o=a[t]).hide&&"function"==typeof o.hide&&(this.getFromEnv("animationManager").setAnimation({el:o,attr:{"text-bound":[]},component:this}),o.hide(),o.transform&&o.transform(n.BLANKSTRING))},a.getJSONData=function(){var e,t,a=this.components.data,o=a.length,r=[];for(t=0;t<o;t++)(e=a[t]).removed||e.config._options&&(delete e.config._options.update,delete e.config._options.add,r.push(e.config._options));return r},t}(i["default"]);t["default"]=T},1398:function(e,t,a){"use strict";t.__esModule=!0,t["default"]=void 0;t["default"]={"initial.dataset.dragNode":function(){return{"node.appearing":function(){return[{initialAttr:{opacity:0},finalAttr:{opacity:1},slot:"axis"}]}}}}},1399: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(1397)),n=a(278),l=a(286),s=o(a(1400)),c=n.preDefStr.PX,d="rgba(192,192,192,"+(n.isIE?.002:1e-6)+")",h=function(e){function t(){var t;return t=e.call(this)||this,(0,l.addDep)({name:"draggablelabelAnimation",type:"animationRule",extension:s["default"]}),t}(0,r["default"])(t,e);var a=t.prototype;return a.getType=function(){return"dataset"},a.getName=function(){return"dragNodeLabels"},a.configure=function(e){if(e)this.trimData(e),this.config.JSONData=e.label;else if(!e&&!this.config.JSONData)return!1;var t,a=this.getFromEnv("chart-attrib"),o=this.config,r=(this.config.JSONData||[]).length,i=this.components.data;for(o.viewMode=(0,n.pluckNumber)(a.viewmode,0),i||(i=this.components.data=[]),t=0;t<r;t++)this._setConfigure(t)},a._setConfigure=function(e,t){var a,o,r,i,l=this.config.JSONData,s=t||l[e],d=this.components.data,h=this.getFromEnv("style").inCanvasStyle,u=h.fontSize;!(a=d[e])&&(a=d[e]={}),!a.graphics&&(a.graphics={}),r=a.config=a.config||(a.config={}),o=(0,n.parseUnsafeString)((0,n.pluck)(s.text,s.label)),r._options=s,r.add=s.add,o&&(r.text=o,r.x=s.x||0,r.y=s.y||0,r.labelFontSize=i=(0,n.pluckNumber)(s.fontsize,u),r.labelColor=(0,n.hashify)((0,n.pluck)(s.color,h.color)),r.alpha=(0,n.pluckNumber)(s.alpha,100)/100,r.allowDrag=(0,n.pluckNumber)(s.allowdrag,1),r.padding=(0,n.pluckNumber)(s.padding,5),s.fontsize?r.labelCSS={fontSize:i+c}:r.labelCSS={},r.labelBGColor=(0,n.pluck)(s.bgcolor&&s.bgcolor.replace(n.dropHash,n.HASHSTRING)),r.labelBDColor=(0,n.pluck)(s.bordercolor&&s.bordercolor.replace(n.dropHash,n.HASHSTRING)),r.link=s.link,r.borderThickness=s.borderthickness,r.dashLen=s.dashlen,r.dashGap=s.dashgap,r.dashed=s.dashed,r.radius=s.radius)},a.getJSONData=function(){var e,t,a=this.components.data,o=a.length,r=[];for(t=0;t<o;t++)(e=a[t]).removed||e.config._options&&r.push(e.config._options);return r},a.createContainer=function(){var e=this.getFromEnv("animationManager"),t=this.getLinkedParent().getChildContainer();!this.getContainer("dragLabelGroup")&&this.addContainer("dragLabelGroup",e.setAnimation({el:"group",attr:{name:"dragLabelGroup"},label:"group",component:this,container:t.defaultVcanvasGroup}))},a.allocatePosition=function(){this.parsePlotAttributes()},a.parsePlotAttributes=function(){var e,t,a,o,r,i,l,s,c,d,h,u,p,g,f,m,v,b,x,k,y,C=this.components.data,w=this.getFromEnv("yAxis"),A=this.getFromEnv("xAxis"),S=this.getFromEnv("smartLabel"),N=this.getFromEnv("dataLabelStyle"),L=C&&C.length,D=this.getFromEnv("chartConfig");for(k=0;k<L;k++)(p=C[k]).removed||(h=p.config,!p.graphics&&(p.graphics={}),h.index=k,o=A.getPixel(h.x),r=w.getPixel(h.y),l=h.text,s=h.labelBGColor,c=h.labelBDColor,d=h.padding,g=h.allowDrag,f=h.labelFontSize,i=h.labelColor,m=h.radius,a=h.dashed,h.borderThickness,e=h.dashLen,t=h.dashGap,b=h.borderThickness,y=h.labelCSS,u={x:o,y:r,text:l,align:n.POSITION_CENTER,fill:i,"text-bound":[s||n.BLANKSTRING,c||n.BLANKSTRING,(0,n.pluckNumber)(b,1),d,(0,n.pluckNumber)(m,0),(0,n.pluckNumber)(a,0)?(0,n.getDashStyle)((0,n.pluckNumber)(e,5),(0,n.pluckNumber)(t,4)):n.DASH_DEF],visibility:n.visibleStr},x={backgroundColor:s,borderColor:c,borderPadding:d,fontSize:f+n.PXSTRING,fontStyle:N.fontStyle,fontWeight:N.fontWeight,borderRadius:0,borderDash:n.DASH_DEF,fontFamily:N.fontFamily},(0,n.setLineHeight)(x),S.useEllipsesOnOverflow(D.useEllipsesWhenOverflow),S.setStyle(x),y["line-height"]=x.lineHeight,h.eventArgs={link:h.link,text:l,x:o,y:r,allowdrag:g,sourceType:"labelnode"},h.props={element:{attr:u}},h.labelCSSApplied=y,v=S.getOriSize(l),h.width=v.width,h.height=v.height,h.xPos=o,h.yPos=r)},a.draw=function(){var e,t,a,o,r,i,n=this.components.data,l=this.getFromEnv("animationManager"),s=this.getFromEnv("dataLabelStyle"),c=n&&n.length,d=this.components.removeDataArr||[],h=d.length;for(this.createContainer(),(i=this.getContainer("dragLabelGroup")).css({"font-weight":s.fontWeight,"font-style":s.fontStyle,"font-size":s.fontSize,"font-family":s.fontFamily}),r=0;r<c;r++)(t=n[r]).removed||(e=t.config,o=t.graphics.element,a=l.setAnimation({el:o||"text",container:i,css:e.labelCSS,attr:e.props.element.attr,component:this}),o?(e.labelCSSApplied&&a.removeCSS(),a.show().css(e.labelCSS)):t.graphics.element=a,a.data("eventArgs",e.eventArgs));for(this.drawTracker(),r=0;r<h;r++)this._removeDataVisuals(d.shift())},a.drawTracker=function(){var e,t,a,o,r,i,l,s,c,h,u,p,g,f,m=this,v=m.components.data,b=m.getFromEnv("animationManager"),x=m.getFromEnv("chart"),k=m.getLinkedParent(),y=m.config,C=m.getContainer("dragLabelGroup"),w=v&&v.length,A=function(){var e=this.data("drag-options"),t=e.dataset,a=e.index,o=t.components.data[a];this.data("fire_click_event",1),k.clearLongPress(),k.triggerLabelUI(this,o)},S=function(){this.data("fire_click_event")&&(this.data("fire_click_event",0),k.clearLongPress())},N=function(e){var t=this.data("fire_click_event");k.clearLongPress(),t&&x.plotEventHandler(this,e,"LabelClick")},L=function(e){x.plotEventHandler(this,e,"LabelRollover")},D=function(e){x.plotEventHandler(this,e,"LabelRollout")},E=function(e,t){m._labelDragMove.call(this,e,t,x)},T=function(e){m._labelDragStart.call(this,e,x)},F=function(e){m._labelDragUp.call(this,e)};for(f=0;f<w;f++)(e=v[f]).removed||(a=(t=e.config).padding||0,p=t.width,g=t.height,h=t.xPos-p/2,u=t.yPos-g/2,i=t.allowDrag,l=t.text,c=e.graphics.trackerElement,r={x:h-a,y:u-a,width:p+2*a,height:g+2*a,cursor:t.allowDrag?"move":n.BLANKSTRING,fill:d,stroke:d},o={link:t.link,text:l,x:h,y:u,allowdrag:i,sourceType:"labelnode"},s=b.setAnimation({el:c||"rect",container:C,attr:r,component:m}),c||(e.graphics.trackerElement=s,s.on("fc-mousedown",A).on("fc-mousemove",S).on("fc-mouseup",N).data("viewMode",y.viewMode).data(n.preDefStr.EVENTARGS,o).hover(L,D),t.allowDrag&&s.drag(E,T,F)),s.data("drag-options",{index:f,dataset:m}))},a._labelDragStart=function(){var e=this.getBBox(),t=this.data("drag-options"),a=t.dataset,o=a.getLinkedParent(),r=t.index,i=a.components.data[r],n=i.graphics.element,l=i.dragStart=i.dragStart||(i.dragStart={});t.ox=n.attr("x"),t.oy=n.attr("y"),t.bBox=e,l.xPos=i.config.xPos,l.yPos=i.config.yPos,l.bBox=e,this.data("fire_click_event",1),this.data("fire_dragend",0),o.clearLongPress(),o.triggerLabelUI(this,i)},a._labelDragMove=function(e,t){var a,o,r=this.data("drag-options"),i=r.index,n=r.dataset,l=n.getFromEnv("chart"),s=n.getFromEnv("chartConfig"),c=s.canvasLeft,d=s.canvasRight,h=s.canvasBottom,u=s.canvasTop,p=n.getLinkedParent(),g=n.components.data[i],f=g.graphics.element,m=g.dragStart,v=m.bBox,b=t[0],x=t[1],k=m.bBox.x+b,y=m.bBox.x2+b,C=m.bBox.y+x,w=m.bBox.y2+x,A=n.getFromEnv("yAxis"),S=n.getFromEnv("xAxis");k<c&&(b+=c-k),y>d&&(b-=y-d),C<u&&(x+=u-C),w>h&&(x-=w-h),m.draged=!0,this.attr({x:v.x+b,y:v.y+x}),a=r.ox+b,o=r.oy+x,f.attr({x:r.ox+b,y:r.oy+x}),g.config.x=S.getValue(a),g.config.y=A.getValue(o),this.data("fire_dragend")||(l.plotEventHandler(this,e,"LabelDragStart"),this.data("fire_dragend",1)),this.data("fire_click_event")&&(this.data("fire_click_event",0),p.clearLongPress())},a._labelDragUp=function(e){var t=this.data("drag-options"),a=t.index,o=t.dataset,r=o.getFromEnv("chart"),i=r.getChildren("xAxis")[0],l=r.getChildren("yAxis")[0],s=o.getLinkedParent(),c=o.components.data[a].dragStart,d=this.data("eventArgs");d.x=i.getValue(this.attr("x")),d.y=l.getValue(this.attr("y")),c.draged=!1,this.data("fire_dragend")&&(r.fireChartInstanceEvent("chartupdated",(0,n.extend2)({sourceEvent:"labeldragend"},d),e),r.fireChartInstanceEvent("chartupdated",d,e),r.plotEventHandler(this,e,"labeldragend")),s.clearLongPress()},a.removeData=function(e,t){var a=this.components,o=a.data;a.removeDataArr=o.splice(e,t)},a.trimData=function(e){if(this.config.JSONData){var t=this.config.JSONData,a=t&&t.length,o=e.label&&e.label.length||0,r=a-o;r>0&&this.removeData(o,r)}},t}(i["default"]);t["default"]=h},1400:function(e,t,a){"use strict";t.__esModule=!0,t["default"]=void 0;t["default"]={"initial.dataset.dragNodeLabels":function(){return{"group.appearing":function(){return[{initialAttr:{opacity:0},finalAttr:{opacity:1},slot:"plot"}]}}}}},1401: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(1397)),n=a(278),l=a(286),s=o(a(1402)),c=n.preDefStr.EVENTARGS,d=n.preDefStr.configStr,h=function(e){var t,a=e.config,o=a.fromPointObj,r=a.toPointObj,i=a.fromX,l=a.fromY,s=a.toX,c=a.toY,d=["M",i,l];return a.arrowAtStart&&(d=(t=o.config).shapeType===n.SHAPE_RECT?d.concat(p._drawArrow(i,l,s,c,t.shapeArg.width,t.shapeArg.height)):d.concat(p._drawArrow(i,l,s,c,t.shapeArg.radius))),a.arrowAtEnd&&(d=(t=r.config).shapeType===n.SHAPE_RECT?d.concat(p._drawArrow(s,c,i,l,t.shapeArg.width,t.shapeArg.height)):d.concat(p._drawArrow(s,c,i,l,t.shapeArg.radius))),d.push("L",s,c),d},u=function(e,t,a){return a.getFromEnv("animationManager").setAnimation({el:"group",attr:{name:e},container:t,component:a,label:"group"})};(0,l.addDep)({name:"connectorAnimation",type:"animationRule",extension:s["default"]});var p=function(e){function t(){return e.apply(this,arguments)||this}(0,r["default"])(t,e);var a=t.prototype;return a.getType=function(){return"dataset"},a.getName=function(){return"dragNodeConnector"},a._setDatasetIndex=function(){var e=this.getLinkedParent().getChildren("connector");this.config.datasetIndex=e.indexOf(this)},a.configureAttributes=function(e){if(e)this.trimData(e),this.config.JSONData=e;else if(!e&&!this.config.JSONData)return!1;var t,a=this.getFromEnv("chart-attrib"),o=this.config,r=this.config.JSONData,i=r.connector,l=i&&i.length,s=n.HUNDREDSTRING;for(o.connectorsTooltext=(0,n.getValidValue)((0,n.parseUnsafeString)((0,n.pluck)(r.connectortooltext,a.connectortooltext),!1)),o.stdThickness=(0,n.pluckNumber)(r.stdthickness,1),o.conColor=(0,n.getFirstColor)((0,n.pluck)(r.color,"FF5904")),o.conAlpha=(0,n.pluck)(r.alpha,s),o.conDashGap=(0,n.pluckNumber)(r.dashgap,5),o.conDashLen=(0,n.pluckNumber)(r.dashlen,5),o.conDashed=Boolean((0,n.pluckNumber)(r.dashed,0)),o.arrowAtStart=Boolean((0,n.pluckNumber)(r.arrowatstart,1)),o.arrowAtEnd=Boolean((0,n.pluckNumber)(r.arrowatend,1)),o.conStrength=(0,n.pluckNumber)(r.strength,1),o.toolTipSepChar=(0,n.pluck)(a.tooltipsepchar," - "),o.showTooltip=(0,n.pluckNumber)(a.showtooltip,1),o.showTextOutline=(0,n.pluckNumber)(a.textoutline,0),o.viewMode=(0,n.pluckNumber)(a.viewmode,1),o._refreshData=!0,this._setDatasetIndex("connector"),t=0;t<l;t+=1)this._setConfigure(t,i[t]);o._refreshData=!0},a._setConfigure=function(e,t){var a,o,r,i=this.components.data||(this.components.data=[]),l=i[e]||(i[e]=i[e]={}),s=this.config,c=(0,n.parseUnsafeString)((0,n.pluck)(t.label,t.name)),d=(0,n.pluck)(t.alpha,s.conAlpha),h=this.getFromEnv("smartLabel"),u="$fromLabel"+s.toolTipSepChar+"$toLabel",p={FCcolor:{color:(0,n.getFirstColor)((0,n.pluck)(t.color,s.conColor)),alpha:d}},g=s.connectorsTooltext,f=(0,n.getValidValue)((0,n.parseUnsafeString)((0,n.pluck)(t.tooltext,g),!1)),m=Boolean((0,n.pluckNumber)(t.dashed,s.conDashed));h.setStyle(this.getFromEnv("dataLabelStyle")),h.useEllipsesOnOverflow(this.getFromEnv("chartConfig").useEllipsesWhenOverflow),r=h.getOriSize(c),o=l.config=l.config||(l.config={}),!l.graphics&&(l.graphics={}),a=!!s.showTooltip&&(0,n.pluck)(f,c?"$label":u),(o=l.config={_options:t,id:(0,n.pluck)(t.id,e).toString(),from:(0,n.pluck)(t.from,n.BLANK),to:(0,n.pluck)(t.to,n.BLANK),label:c,toolText:a,customToolText:f,color:p,index:e,dashStyle:m?(0,n.getDashStyle)((0,n.pluckNumber)(t.dashlen,s.conDashLen),(0,n.pluckNumber)(t.dashgap,s.conDashGap)):n.DASH_DEF,dashed:t.dashed,dashlen:t.dashlen,dashgap:t.dashgap,arrowAtStart:Boolean((0,n.pluckNumber)(t.arrowatstart,s.arrowAtStart)),arrowAtEnd:Boolean((0,n.pluckNumber)(t.arrowatend,s.arrowAtEnd)),conStrength:(0,n.pluckNumber)(t.strength,s.conStrength),link:t.link,stdThickness:s.stdThickness,labelWidth:r.widht,labelHeight:r.height}).datasetIndex=this.config.datasetIndex,o.add=t.add,o.update=t.update,o.dataLabelStyle=this._configureDataLabelStyle(t),s._refreshData&&delete l.removed},a.createContainer=function(){var e=this.getLinkedParent().getChildContainer();!this.getContainer("connectorGroup")&&this.addContainer("connectorGroup",u("connectorGroup",e.connectorGroup,this)),!this.getContainer("connectorDataLabelGroup")&&this.addContainer("connectorDataLabelGroup",u("connectorDataLabelGroup",e.connectorGroup,this))},a.draw=function(){var e,t,a,o,r,i,n,l=this.getLinkedParent(),s=this.config,c=this.components.data,d=this.getFromEnv("dataLabelStyle"),h=c.length,u=this.components.removeDataArr||[],p=u.length;for(this.createContainer(),s.cleared=!1,this.getContainer("connectorDataLabelGroup").css(d),i=0;i<h;i++)t=(n=(e=c[i]).config).from,a=n.to,o=l.getNode(t),r=l.getNode(a),o&&r&&!0!==n.deleted&&this.drawConnector(e,o,r,i);for(this.config.drawn=!0,i=0;i<p;i++)this._removeDataVisuals(u.shift())},a.parsePlotAttributes=function(e,t,a){var o,r,i,l,s,c,d,u,p,g,f,m,v=this.getFromEnv("number-formatter"),b=e.config,x=b.eventArgs||(b.eventArgs={});b.fromPointObj=t,b.toPointObj=a,p=t.config,g=a.config,b.fromX=o=p._xPos,b.fromY=i=p._yPos,b.toX=r=g._xPos,b.toY=l=g._yPos,b._labelX=(o+r)/2,b._labelY=(i+l)/2,b.strokeWidth=s=b.conStrength*b.stdThickness,f=b.color,b.textBgColor=f&&f.FCcolor&&f.FCcolor.color,x.label=b.label,x.arrowAtStart=b.arrowAtStart,x.arrowAtEnd=b.arrowAtEnd,x.link=b.link,x.id=b.id,x.fromNodeId=p.id,x.toNodeId=g.id,b.toolText=(0,n.parseTooltext)(b.toolText,[3,83,84,85,86,87,88,89,90,91,92],{label:b.label,fromXValue:v.dataLabels(t.config.x),fromYValue:v.dataLabels(t.config.y),fromXDataValue:t.config.x,fromYDataValue:t.config.y,fromLabel:(0,n.pluck)(t.config.displayValue,t.config.id),toXValue:v.dataLabels(a.config.x),toYValue:v.dataLabels(a.config.y),toXDataValue:a.config.x,toYDataValue:a.config.y,toLabel:(0,n.pluck)(a.config.displayValue,a.config.id)}),p=t.config,g=a.config,d=p.startConnectors||(p.startConnectors={}),u=g.endConnectors||(g.endConnectors={}),d[m=e.config.id+"-"+p.id+"-"+g.id]=e,u[m]=e,c=h(e),b.props={element:{attr:{path:c,"stroke-width":s,"stroke-dasharray":b.dashStyle,cursor:b.link?n.POINTER:n.BLANKSTRING,stroke:(0,n.toRaphaelColor)(f)}}}},a.allocatePosition=function(){var e,t,a,o,r,i,n,l=this.getLinkedParent(),s=this.components.data,c=s.length;for(e=0;e<c;e++)o=(a=(t=s[e]).config).from,r=a.to,i=l.getNode(o),n=l.getNode(r),i&&n&&!0!==a.deleted&&this.parsePlotAttributes(t,i,n,e)},a.drawConnector=function(e){var t,a,o=this.getFromEnv("toolTipController"),r=this.getFromEnv("animationManager"),i=e.graphics,n=this.getContainer("connectorGroup"),l=e.config,s=l.toolText,h=l.eventArgs||(l.eventArgs={}),u=this.config,p=this.components.pool||{};e.removed||(t=a=i.graphic,i.graphic||p.graphic&&p.graphic.path&&p.graphic.path.length&&(a=i.graphic=p.graphic.path.shift()),t=r.setAnimation({el:a||"path",container:n,attr:l.props.element.attr,label:"path",component:this}),a||(i.graphic=t,t.on("fc-mousedown",this.mouseDown).on("fc-mousemove",this.mousemove).on("fc-mouseup",this.mouseup).hover(this.hoverIn,this.hoverOut)),t.show().data(c,h).data("viewMode",u.viewMode).data(d,l).data("dataset",this),u.showTooltip?o.enableToolTip(t,s):o.disableToolTip(t),this.drawLabel(e))},a.drawLabel=function(e){var t,a,o,r,i,l,s,h,u,p,g,f,m=this,v=m.getFromEnv("toolTipController"),b=m.config,x=m.getFromEnv("animationManager"),k=m.getContainer("connectorDataLabelGroup"),y=m.getFromEnv("dataLabelStyle"),C=m.components.data,w=m.components.pool||{},A=C.length,S=function(e){t=e.config,o=t.toolText,h=e.graphics,a=t.label,p=t._labelX,g=t._labelY,i=t.dataLabelStyle||y,f=t.textBgColor,a?(s=h.text=h.text||w.element&&w.element.text&&w.element.text.shift(),r={text:a,fill:i.color,direction:n.BLANKSTRING,cursor:t.link?n.POINTER:n.BLANKSTRING,"text-bound":[(0,n.pluck)(i.backgroundColor,f),(0,n.pluck)(i.borderColor,f),1,"2"],x:p,y:g},(l=x.setAnimation({el:s||"text",attr:r,container:k,label:"text",component:m})).show(),l.outlineText(b.showTextOutline,r.fill),s||(h.text=l,l.on("fc-mousedown",m.mouseDown).on("fc-mousemove",m.mousemove).on("fc-mouseup",m.mouseup).hover(m.hoverIn,m.hoverOut)),l.data(c,t.eventArgs).data("viewMode",b.viewMode).data(d,t).data("dataset",m),b.showTooltip?v.enableToolTip(l,o):v.disableToolTip(l)):h.text&&h.text.hide()};if(e)S(e);else for(u=0;u<A;u++)S(C[u])},a.mouseDown=function(){var e=this.data("dataset").getLinkedParent();e.clearLongPress(),this.data("fire_click_event",1),e.triggerConnectorUI(this)},a.mousemove=function(){var e=this.data("dataset").getLinkedParent();this.data("fire_click_event",0),e.clearLongPress()},a.mouseup=function(){this.data("dataset").getLinkedParent().clearLongPress()},a.hoverIn=function(e){this.data("dataset").getFromEnv("chart").plotEventHandler(this,e,"ConnectorRollover")},a.hoverOut=function(e){this.data("dataset").getFromEnv("chart").plotEventHandler(this,e,"ConnectorRollout")},t._drawArrow=function(e,t,a,o,r,i){var n,l,s,c,d=(t-o)/(e-a),h=Math.atan(d),u=[];return h<0&&(h=2*Math.PI+h),o>t?(a>=e&&h>Math.PI||a<e&&h>Math.PI)&&(h-=Math.PI):(a>=e&&h<Math.PI&&0!==h||a<e&&h<Math.PI)&&(h+=Math.PI),void 0===i?(n=e+r*Math.cos(h),l=t+r*Math.sin(h)):(s=Math.abs(r)/2,c=Math.abs(i)/2,n=e+(s=e<a?s:-s),l=t+s*Math.tan(h),Math.abs(t-l)>Math.abs(c)&&(l=t+(c=t<o?c:-c),n=e+c/Math.tan(h))),u.push("L",n,l,n+10*Math.cos(h+.79),l+10*Math.sin(h+.79),"M",n+10*Math.cos(h-.79),l+10*Math.sin(h-.79),"L",n,l),u},a.removeData=function(e,t){var a=e,o=this.components,r=o.data;a<0&&(a=0),o.removeDataArr=r.splice(a,t)},a.trimData=function(e){if(this.config.JSONData){var t=this.components,a=t.data&&t.data.length,o=e.connector&&e.connector.length||0,r=a-o;r>0&&this.removeData(o,r)}},t}(i["default"]),g=p;t["default"]=g},1402:function(e,t,a){"use strict";t.__esModule=!0,t["default"]=void 0;t["default"]={"initial.dataset.dragNodeConnector":function(){return{"path.appearing":function(){return[{initialAttr:{opacity:0},finalAttr:{opacity:1},slot:"plot"}]},"text.appearing":function(){return[{initialAttr:{opacity:0,"text-bound":"none"},finalAttr:{opacity:1},slot:"final"}]},"*":null}}}},1403:function(e,t,a){"use strict";var o=a(273);t.__esModule=!0,t["default"]=void 0;var r,i,n,l,s=o(a(296)),c=o(a(292)),d=a(294),h=o(a(1399)),u=a(278),p={circle:"circ",rectangle:"rect",polygon:"poly"},g=u.preDefStr.INPUT,f=u.preDefStr.BLANKSPACE,m=u.preDefStr.BLANK,v=u.preDefStr.PX,b=u.preDefStr.LABEL,x=u.preDefStr.DATASET,k=u.preDefStr.COMMA,y="appearing",C=function(e){for(var t in e)e[t].remove()},w=function(e){return e!==r&&null!==e},A=function(e,t){switch(e.shape){case u.preDefStr.CIRCLE:e.radius=t.radius;break;case u.preDefStr.POLYGON:e.radius=t.radius,e.sides=t.numsides;break;default:e.width=t.width,e.height=t.height}},S=(i=function(){for(var e,t=this.getGraphicalElement("cacheUpdateUI"),a=t.fields.shape,o=["rectWidth","rectHeight","circPolyRadius","polySides"],r=o.length;r--;)/rect|poly|circ/gi.test(e=o[r])&&(t.labels[e].hide(),t.fields[e].hide()),new RegExp((0,u.pluck)(a.val(),"rect"),"ig").test(e)&&(t.labels[e].show(),t.fields[e].show())},n=function(){var e=this.getGraphicalElement("cacheUpdateUI").fields,t=(0,u.getValidColor)(e.color.val());t&&e.colorOut.css({background:(0,u.parseColor)(t)})},l=function(e){var t,a,o,r=this.getGraphicalElement("cacheUpdateUI"),i=this.getFromEnv("animationManager"),n=this.getFromEnv("chartConfig").height,l=r.fields.image.val(),s=["imgWidth","imgHeight","imgAlign","imgUrl"];for(t=l?250:215,e&&(r.ok.hide(),r.cancel.hide(),r.removeItem.hide(),r.error.hide()),a=s.length;!l&&a--;)o=s[a],r.labels[o].hide(),r.fields[o].hide();e&&i.setAnimationState("uichange"),i.setAnimation({el:r.dialog,state:"updating",attr:{top:(n-t)/2,height:t},component:this,label:"uidialog",callback:function(){for(a=s.length;a--&&l;)o=s[a],r.labels[o].show(),r.fields[o].show();r.ok.attr({y:t-23-5}).show(),r.cancel.attr({y:t-23-5}).show(),r.removeItem.attr({y:t-23-5}),r.error.attr({y:t-23-5+4}).show(),r.edit?r.removeItem.show():r.removeItem.hide()}})},function(e,t){var a,o,s=this,c=s.getGraphicalElement("cacheUpdateUI"),d=s.getFromEnv("paper"),h={width:80+v,border:"1px solid #cccccc",fontSize:10+v,lineHeight:15+v,padding:2+v,fontFamily:(s.getFromEnv("style").inCanvasStyle||{}).fontFamily},p={textAlign:"right"},g=c&&c.fields,f=c&&c.labels;s.getFromEnv("animationManager").setAnimationState("uichange"),c||(a=!0),c=s.addGraphicalElement("cacheUpdateUI",s.createHtmlDialog(350,215,(function(e){e.stopPropagation();var t,a,o,i=c&&c.fields,n=c.edit;if(g){switch(o={x:(0,u.getFirstValue)(g.x.val(),s.getFromEnv("xAxis").getLimit().min),y:(0,u.getFirstValue)(g.y.val(),s.getFromEnv("yAxis").getLimit().min),id:a=g.id.val(),datasetId:g.dataset.val(),name:g.label.val(),tooltext:g.tooltip.val(),color:g.color.val(),alpha:g.alpha.val(),labelalign:g.labelalign.val(),allowdrag:g.draggable.val(),imagenode:g.image.val(),imagewidth:g.imgWidth.val(),imageheight:g.imgHeight.val(),imagealign:g.imgAlign.val(),imageurl:g.imgUrl.val(),link:g.link.val()},i.shape.val()){case"circ":o.shape=u.preDefStr.CIRCLE,o.radius=g.circPolyRadius.val();break;case"poly":o.shape=u.preDefStr.POLYGON,o.radius=g.circPolyRadius.val(),o.numsides=g.polySides.val();break;default:o.shape=u.preDefStr.RECTANGLE,o.width=g.rectWidth.val(),o.height=g.rectHeight.val()}if(s.getNode(o.id)&&(t=!0),!t||n!==r)return void(((a=o.datasetId)!==u.BLANKSTRING||n)&&(a=Number(a),n?s.updateNode(o):s.addNode(o),c.hide(),c.visible=!1));c.error.attr({text:"ID already exist."}),g.label.focus()}c.enableFields()}),(function(e){e.stopPropagation(),c.hide(),c.visible=!1,c.enableFields(),c.error.attr({text:m}),c.visible=!1}),(function(e){e.stopPropagation(),s.deleteNode(c.fields.id.val()),c.hide(),c.visible=!1}),c)),a&&(o=c.dialog,f=c.labels={},g=c.fields={}),c.config=e,c.edit=t,c.error||(c.error=d.html("span",{color:"ff0000",x:30,y:228},r,o)),c.enableFields||(c.enableFields=function(){var t;for(t in e)e[t]&&e[t].disabled&&g[t]&&g[t].element.removeAttribute("disabled")}),c.clearFields||(c.clearFields=function(){var e;for(e in c.fields)g[e].element.disabled||(g[e].element.value=u.BLANKSTRING)}),(0,u.fcEach)(this.nodeUpdateUIDefinition,(function(t){var a,r,v,x=t.key,k={},y=e[x]||{};!f[x]&&(f[x]=d.html(b,{x:t.x,y:t.y,width:t.labelWidth||45,text:t.text},p,o)),t.noInput||((a=g[x])||(h.border="checkbox"===t.type?m:"1px solid #cccccc",a=g[x]=d.html(t.inputType||"input",{x:t.labelWidth&&t.labelWidth+5||50,y:-2+(t.inputPaddingTop||0),width:t.inputWidth||50,name:x||u.BLANKSTRING},h),"select"!==t.inputType&&a.attr({type:t.type||"text"}).on("keyup",c.handleKeyPress),a.add(f[x])),w(r=(0,u.getFirstValue)(y.innerHTML,t.innerHTML))&&(k.innerHTML=r),y.disabled?k.disabled="disabled":a.element&&(a.element.disabled=!1),a.attr(k),w(v=(0,u.getFirstValue)(y.value,t.value))&&a.val(v),"shape"===x&&a.on("change",(function(){i.call(s)})),"image"===x&&a.on("fc-click",(function(){l.call(s,!0)})),"color"===x&&a.on("keyup",(function(){n.call(s)})))})),n.call(this),l.call(this),i.call(this),c.visible=!0,c.fields[t?b:"id"].focus()}),N=function(e){function t(){var t;t=e.call(this)||this;var a=(0,s["default"])(t);return a.setState("visible",!0),a.connectorUpdateUIDefinition=[{key:"fromid",text:"Connect From",inputType:"select",x:10,y:15,labelWidth:80,inputWidth:100},{key:"toid",text:"Connect To",inputType:"select",x:10,y:40,labelWidth:80,inputWidth:100},{key:"arratstart",text:"Arrow At Start",x:200,y:15,type:"checkbox",inputPaddingTop:3,labelWidth:80,inputWidth:15},{key:"arratend",text:"Arrow At End",x:200,y:40,type:"checkbox",inputPaddingTop:3,labelWidth:80,inputWidth:15},{key:b,text:"Label",x:10,y:75,labelWidth:40,inputWidth:120},{key:"id",text:"Node ID",x:190,y:75,inputWidth:55},{key:"color",text:"Color",x:10,y:100,labelWidth:40,inputWidth:35},{key:"alpha",text:"Alpha",x:110,y:100,inputWidth:25,labelWidth:35},{key:"strength",text:"Strength",x:190,y:100,inputWidth:55,val:"0.1"},{key:"url",text:"Link",x:10,y:125,labelWidth:40,inputWidth:120},{key:"tooltext",text:"Tooltip",x:190,y:125,labelWidth:40,inputWidth:60},{key:"dashed",text:"Dashed",x:10,y:150,type:"checkbox",inputPaddingTop:3,inputWidth:15,labelWidth:40},{key:"dashgap",text:"Dash Gap",x:85,y:150,labelWidth:60,inputWidth:25},{key:"dashlen",text:"Dash Length",x:190,y:150,labelWidth:70,inputWidth:30}],a.nodeUpdateUIDefinition=[{key:"id",text:"Id",inputWidth:60,x:10,y:15},{key:x,text:x,inputType:"select",inputWidth:110,innerHTML:r,x:170,y:15},{key:"x",text:"Value",x:10,y:40,inputWidth:21},{key:"y",text:k,x:88,y:40,inputWidth:21,labelWidth:5},{text:"(x, y)",x:125,y:40,labelWidth:33,noInput:!0},{key:"tooltip",text:"Tooltip",inputWidth:105,x:170,y:40},{key:b,text:"Label",inputWidth:92,x:10,y:65},{key:"labelalign",text:"Align",labelWidth:70,inputWidth:110,inputType:"select",innerHTML:'<option></option><option value="top">Top</option><option value="middle">Middle</option><option value="bottom">Bottom</option>',x:145,y:63},{key:"color",text:"Color",x:10,y:90,inputWidth:60},{key:"colorOut",innerHTML:" ",x:85,y:90,inputWidth:15,inputType:"span"},{key:"alpha",text:"Alpha",x:170,y:90,inputWidth:20},{key:"draggable",text:"Allow Drag",value:!0,inputWidth:20,x:250,y:90,labelWidth:58,inputPaddingTop:3,type:"checkbox"},{key:"shape",text:"Shape",inputType:"select",inputWidth:97,innerHTML:'<option value="rect">Rectangle</option><option value="circ">Circle</option><option value="poly">Polygon</option>',x:10,y:115},{key:"rectHeight",text:"Height",x:170,y:115,inputWidth:20},{key:"rectWidth",text:"Width",x:255,y:115,inputWidth:20},{key:"circPolyRadius",text:"Radius",x:170,y:115,inputWidth:20},{key:"polySides",text:"Sides",x:255,y:115,inputWidth:20},{key:"link",text:"Link",x:10,y:140,inputWidth:92},{key:"image",text:"Image",type:"checkbox",inputPaddingTop:4,inputWidth:20,x:10,y:170},{key:"imgUrl",text:"URL",inputWidth:105,x:170,y:170},{key:"imgWidth",text:"Width",inputWidth:20,x:10,y:195},{key:"imgHeight",text:"Height",inputWidth:20,x:82,y:195},{key:"imgAlign",text:"Align",inputType:"select",inputWidth:75,innerHTML:'<option value="top">Top</option><option value="middle">Middle</option><option value="bottom">Bottom</option>',x:170,y:195}],a.labelUpdateUIDefinition=[{key:b,text:"Label*",x:10,y:15,inputWidth:235},{key:"size",text:"Size",x:10,y:40},{key:"padding",text:"Padding",x:10,y:65},{key:"x",text:"Position",x:120,y:65,labelWidth:70,inputWidth:25},{key:"y",text:k,x:225,y:65,labelWidth:10,inputWidth:25},{key:"xy",text:"(x, y)",x:260,y:65,noInput:!0},{key:"allowdrag",text:"Allow Drag",x:120,y:40,inputType:"checkbox",inputPaddingTop:3,inputWidth:15,labelWidth:70,val:1},{key:"color",text:"Color",x:10,y:90},{key:"alpha",text:"Alpha",x:145,y:90,inputWidth:30,val:u.preDefStr.HUNDREDSTRING},{key:"bordercolor",text:"Border Color",x:10,y:125,labelWidth:100},{key:"bgcolor",text:"Background Color",x:10,y:150,labelWidth:100}],t}(0,c["default"])(t,e);var a=t.prototype;return a.configure=function(){this.setState("configured",!0)},a.getType=function(){return"group"},a.getName=function(){return"dragNodeGroup"},a.showLabelUpdateUI=function(e){void 0===e&&(e={});var t,a,o,i,n=this,l=n.getFromEnv("paper"),s=n.getGraphicalElement("cacheLabelUpdateUI"),c={border:"1px solid #cccccc",fontSize:10+v,lineHeight:15+v,fontFamily:(n.getFromEnv("style").inCanvasStyle||{}).fontFamily,padding:2+v},d={textAlign:"right"},h=s&&s.fields,p=s&&s.labels;n.getFromEnv("animationManager").setAnimationState("uichange"),s||(t=!0),s=n.addGraphicalElement("cacheLabelUpdateUI",n.createHtmlDialog(315,205,(function(){var e,t=s&&s.fields;t&&((e={text:t.label.val(),x:t.x.val(),y:t.y.val(),color:t.color.val(),alpha:t.alpha.val(),bgcolor:t.bgcolor.val(),bordercolor:t.bordercolor.val(),fontsize:t.size.val(),allowdrag:t.allowdrag.val(),padding:t.padding.val()}).text?(n.addLabel&&n.addLabel(e),s.hide()):(s.error.attr({text:"Label cannot be blank."}),h.label.focus()))}),(function(){s.error.attr({text:u.BLANKSTRING}),s.hide()}),r,s)),t&&(i=s.dialog,p=s.labels={},h=s.fields={}),(0,u.fcEach)(n.labelUpdateUIDefinition,(function(t){var r=t.key;p[r]||(p[r]=l.html(b,{x:t.x,y:t.y,width:t.labelWidth||45,text:t.text},d,i)),t.noInput||((a=h[r])||(a=h[r]=l.html(g,{y:-2+(t.inputPaddingTop||0),x:t.labelWidth&&t.labelWidth+5||50,width:t.inputWidth||50,type:t.inputType||"text",name:r||u.BLANKSTRING},c,p[r]).on("keyup",s.handleKeyPress)),w(o=(0,u.getFirstValue)(e[r],t.val))&&a.val(o))})),s.error||(s.error=l.html("span",{color:"ff0000",x:10,y:180},r,i)),s.fields.label.focus()},a.restoreData=function(){var e,t,a,o,r,i,n,l=this.getChildren("dataset"),s=this.getFromEnv("chart"),c=(0,u.pluckNumber)(s.config.showlegend,0),d=this.getChildren("connector"),h=s.getFromEnv("dataSource"),p=this.getChildren("labels"),g=function(e){var t,a;for(t=0;t<(e&&e.length);t++)if(delete(o=e[t]).removed,o.config.add){for(a in r=e[t].graphics)r[a].remove();e.splice(t,1),t--}},f=function(e,o,r){t=o[e],a=t.components.data,g(a),t.drawn=!1,t.configure(r[e])};for(e=0,n=l&&l.length;e<n;e++)f(e,l,h.dataset);for(e=0,n=d&&d.length;e<n;e++)f(e,d,h.connectors);p&&p.length&&(i=p[0],(a=i.components.data)&&g(a),i.configure(h.labels)),s.fireChartInstanceEvent("dataRestored"),this.asyncDraw(),c&&this.getFromEnv("legend").asyncDraw()},a.addLabel=function(e){var t,a,o=this.getChildren("labels"),r=this.getFromEnv("chart");e.add=!0,o&&o[0]?o=o[0]:((0,u.componentFactory)(this,h["default"],"labels",1,[{}]),o=this.getChildren("labels")[0]),a=(o.components.data||(o.components.data=[])).length,o._setConfigure(a,e),t={text:e.text,x:e.x,y:e.y,allowdrag:e.allowdrag,sourceType:"labelnode",link:e.link},r.fireChartInstanceEvent("chartupdated",(0,u.extend2)({sourceEvent:"labeladded"},t)),r.fireChartInstanceEvent("labeladded",t),o.asyncDraw()},a.showNodeAddUI=function(){var e,t,a,o=this.getChildren("dataset"),i=u.BLANKSTRING;for(a=0;a<o.length;a++)e=(t=o[a]||{}).config,"dragNode"===t.getName()&&(i+='<option value="'+t.config.datasetIndex+'">'+(e.name!==m&&e.name!==r&&e.name+u.COMMASTRING+f||m)+t.config.datasetIndex+"</option>");this.showNodeUpdateUI({dataset:{innerHTML:i}})},a.showConnectorAddUI=function(){var e,t,a=this.getNode(),o=u.BLANKSTRING;for(t in a)o+='<option value="'+(e=a[t].config.id)+'">'+e+"</option>";this.showConnectorUpdateUI({fromid:{innerHTML:o},toid:{innerHTML:o}})},a.showConnectorUpdateUI=function(e,t){var a,o,i,n,l,s=this,c=s.getFromEnv("paper"),d="cacheConnectorUpdateUI"+(t?"edit":"new"),h=s.getGraphicalElement(d),p={border:"1px solid #cccccc",fontSize:10+v,lineHeight:15+v,fontFamily:(s.getFromEnv("style").inCanvasStyle||{}).fontFamily,padding:2+v},f={textAlign:"right"},m=h&&h.fields,x=h&&h.labels;s.getFromEnv("animationManager").setAnimationState("uichange"),h||(a=!0),h=s.addGraphicalElement(d,s.createHtmlDialog(315,215,(function(){var e,a=h&&h.fields;a&&((e={from:a.fromid.val(),to:a.toid.val(),id:a.id.val(),label:a.label.val(),color:a.color.val(),alpha:a.alpha.val(),link:a.url.val(),tooltext:a.tooltext.val(),strength:a.strength.val(),arrowatstart:a.arratstart.val(),arrowatend:a.arratend.val(),dashed:a.dashed.val(),dashlen:a.dashlen.val(),dashgap:a.dashgap.val()}).from?e.to?e.from!==e.to?(t?s.editConnector(e):s.addConnector(e),h.enableFields(),h.hide(),h.clearFields()):(h.error.attr({text:"Connector cannot start and end at the same node!"}),m.fromid.focus()):(h.error.attr({text:"Please select a valid connector end."}),m.toid.focus()):(h.error.attr({text:"Please select a valid connector start."}),m.fromid.focus()))}),(function(){h.error.attr({text:u.BLANKSTRING}),h.enableFields(),h.hide()}),(function(){var e=h&&h.fields;s.deleteConnector({from:e.fromid.val(),to:e.toid.val(),id:e.id.val()}),h.hide()}),h)),a&&(l=h.dialog,x=h.labels={},m=h.fields={}),h.config=e,h.enableFields||(h.enableFields=function(){var t;for(t in e)e[t]&&e[t].disabled&&m[t]&&m[t].element.removeAttribute("disabled")}),h.clearFields||(h.clearFields=function(){var e,t=h.fields;for(e in t)t[e].element.disabled||(t[e].element.value=u.BLANKSTRING)}),(0,u.fcEach)(s.connectorUpdateUIDefinition,(function(t){var a=t.key,s=e[a]||{};x[a]||(x[a]=c.html(b,{x:t.x,y:t.y,width:t.labelWidth||45,text:t.text},f,l)),t.noInput||((i=m[a])||(i=m[a]=c.html(t.inputType||g,{y:-2+(t.inputPaddingTop||0),x:t.labelWidth&&t.labelWidth+5||50,width:t.inputWidth||50,name:a||u.BLANKSTRING},p),"select"!==t.inputType&&i.attr({type:t.type||"text"}).on("keyup",h.handleKeyPress),i.add(x[a])),(o=(0,u.pluck)(s.innerHTML,t.innerHTML))&&i.attr({innerHTML:o}),(n=(0,u.pluck)(s.val,t.val))!==r&&i.val(n),s.disabled?i.attr({disabled:"disabled"}):i.element&&(i.element.disabled=!1))})),h.checkDash=function(){var e=m.dashed&&m.dashed.val()?"show":"hide";x.dashgap&&x.dashgap[e](),m.dashgap&&m.dashgap[e](),x.dashlen&&x.dashlen[e](),m.dashlen&&m.dashlen[e]()},h.checkDash(),m.dashed.on("fc-click",h.checkDash),h.error||(h.error=c.html("span",{color:"ff0000",x:10,y:170},r,l)),h.removeItem[t?"show":"hide"]()},a.showNodeUpdateUI=function(){return S.apply(this,arguments)},a.addNode=function(e){var t,a,o,i,n,l,s,c=this.getChildren("dataset"),d=c.length,h=this.getFromEnv("chart");for(n=0;n<d;n++)if((i=(t=c[n]||{}).config.datasetIndex)!==r&&(i=i.toString()),i===e.datasetId){o=!0;break}t&&o&&(s=t.components.data,e.add=!0,l={index:a=s.length,dataIndex:a,link:e.link,y:e.y,x:e.x,shape:e.shape,label:e.name,toolText:e.tooltext,id:e.id,datasetIndex:t.config.datasetIndex,datasetName:t.config.seriesname,sourceType:"dataplot"},A(l,e),t._setConfigure(a,e),t.parsePlotAttributes(a),t._drawNode(a),t.setState("dirty",!0),h.fireChartInstanceEvent("chartupdated",(0,u.extend2)({sourceEvent:"nodeAdded"},l)),h.fireChartInstanceEvent("nodeAdded",l),t._setupKdTree())},a.updateNode=function(e){var t,a,o,r,i,n,l,s=this.getChildren("dataset"),c=s.length,d=this.getFromEnv("chart");for(e.update=!0,r=0;r<c;r++)for(t=(i=(o=s[r]).components.data||[]).length,l=0;l<t;l++)if(i[l].config.id===e.id){a=!0;break}o&&a&&(n={index:l,dataIndex:l,link:e.link,y:e.y,x:e.x,shape:e.shape,label:e.name,toolText:e.tooltext,id:e.id,datasetIndex:o.config.datasetIndex,datasetName:o.config.seriesname,sourceType:"dataplot"},A(n,e),o._setConfigure(l,e),o.parsePlotAttributes(l),o._drawNode(l),o.setState("dirty",!0),d.fireChartInstanceEvent("chartupdated",(0,u.extend2)({sourceEvent:"nodeupdated"},n)),d.fireChartInstanceEvent("nodeupdated",n),o._setupKdTree())},a.deleteNode=function(e){var t,a,o,r,i,n,l,s,c,d,h,p,g,f=this.getNode(e),m=this.getFromEnv("chart");if(f){for(a=(t=f.dataset).components.data,o=f.config.startConnectors,r=f.config.endConnectors,d=a.length,i=0;i<d;i++)if((s=a[i]).config.id===e){g=!0;break}if(!0===g){for(c in n=s.graphics,C(n),o)n=(l=o[c]||{}).graphics,C(n),delete l.graphics,l.removed=!0;for(c in r)n=(l=r[c]||{}).graphics,C(n),delete l.graphics,l.removed=!0;s.removed=!0,h={index:i,dataIndex:i,link:(p=s.config||{}).link,y:p.y,x:p.x,shape:p.shape,label:p.displayValue,toolText:p.toolText,id:p.id,datasetIndex:t.config.datasetIndex,datasetName:t.config.seriesname,sourceType:"dataplot"},A(h,{width:p.width,height:p.height,radius:p.radius,numsides:p.numSides}),m.fireChartInstanceEvent("chartupdated",(0,u.extend2)({sourceEvent:"nodedeleted"},h)),m.fireChartInstanceEvent("nodedeleted",h),t._setupKdTree()}}},a.addConnector=function(e){var t,a=this.getChildren("connector")[0],o=this.getFromEnv("chart");e.add=!0,a._setConfigure(a.components.data.length,e),t={arrowAtEnd:Boolean(e.arrowatend),arrowAtStart:Boolean(e.arrowatstart),fromNodeId:e.from,id:e.id,label:e.label,link:e.connectorLink,sourceType:"connector",toNodeId:e.to},o.fireChartInstanceEvent("chartupdated",(0,u.extend2)({sourceEvent:"connectoradded"},t)),o.fireChartInstanceEvent("connectoradded",t),a.asyncDraw()},a.editConnector=function(e){var t,a,o,r,i,n,l,s,c,d,h=this.getChildren("connector"),p=this.getFromEnv("chart"),g=h.length;for(t=0;t<g;t++)for(a=(o=(s=h[t])&&s.components.data||[]).length,n=0;n<a;n++)if(r=(c=o[n].config).from,i=c.to,r===e.from&&i===e.to){l=!0;break}e.update=!0,l&&(s._setConfigure(n,e),d={arrowAtEnd:Boolean(e.arrowatend),arrowAtStart:Boolean(e.arrowatstart),fromNodeId:e.from,id:e.id,label:e.label,link:e.link,sourceType:"connector",toNodeId:e.to},p.fireChartInstanceEvent("chartupdated",(0,u.extend2)({sourceEvent:"connectorupdated"},d)),p.fireChartInstanceEvent("connectorupdated",d),s.asyncDraw())},a.deleteConnector=function(e){var t,a,o,r,i,n,l,s=this.getChildren("connector"),c=!1,d=s.length,h=this.getFromEnv("chart");for(t=0;t<d;t++)for(i=(r=s[t].components.data).length,a=0;a<i;a++)if((o=r[a]).config.from===e.from&&o.config.to===e.to){c=!0;break}c&&(n={arrowAtEnd:(l=o.config||{}).arrowAtEnd,arrowAtStart:l.arrowAtStart,fromNodeId:l.from,id:l.id,label:l.label,link:l.connectorLink,sourceType:"connector",toNodeId:l.to},C(o.graphics),delete o.graphics,o.removed=!0,h.fireChartInstanceEvent("chartupdated",(0,u.extend2)({sourceEvent:"connectordeleted"},n)),h.fireChartInstanceEvent("connectordeleted",n))},a.createHtmlDialog=function(e,t,a,o,r,i){var n,l,s,c,d,h,p,g,f=this.getFromEnv("chartConfig"),m=this.getFromEnv("style").inCanvasStyle||{},b=Number(f.width),x=Number(f.height),k=this.getFromEnv("animationManager"),C={color:(0,u.hashify)(m.color),textAlign:"center",paddingTop:1+v,border:"1px solid #cccccc",borderRadius:4+v,cursor:u.preDefStr.POINTER,_cursor:"hand",backgroundColor:u.HASHSTRING+"ffffff",zIndex:21,"-webkit-border-radius":4+v},w=i;return g={width:b,height:x},i||(g.fill="transparent",g.type="div"),w=k.setAnimation({el:i||"html",attr:g,component:this,label:"ui",state:y,css:{fontSize:10+v,lineHeight:15+v,fontFamily:m.fontFamily,display:"block"},container:!i&&this.getFromEnv("chart-container")}),g={width:b,height:x,opacity:.3},w.veil||(g.fill="000000",g.type="div"),w.veil=k.setAnimation({el:w.veil||"html",attr:g,component:this,state:y,label:"uiveil",container:!w.veil&&w}),c={x:(b-e)/2,y:(x-t)/2,width:e,height:t},w.dialog||(c.fill="efefef",c.strokeWidth=1,c.stroke="000000",c.type="div"),w.dialog=k.setAnimation({el:w.dialog||"html",attr:c,component:this,state:y,label:"uidialog",container:!w.dialog&&w,css:{borderRadius:5+v,boxShadow:"1px 1px 3px #000000","-webkit-border-radius":5+v,"-webkit-box-shadow":"1px 1px 3px #000000",filter:'progid:DXImageTransform.Microsoft.Shadow(Strength=4, Direction=135, Color="#000000")'}}),d={x:e-70-5,y:t-23-5,width:65,height:17},w.ok||(d.text="Submit",d.tabIndex=1,d.type="div"),n=k.setAnimation({el:w.ok||"html",state:y,attr:d,component:this,label:"uiok",css:C,container:!w.ok&&w.dialog}),!w.ok&&(w.ok=n)&&n.on("fc-mousedown",a),h={x:e-140-5,y:t-23-5,width:65,height:17},w.cancel||(h.text="Cancel",h.tabIndex=2,h.type="div"),l=k.setAnimation({el:w.cancel||"html",state:y,attr:h,component:this,label:"uicancel",css:C,container:!w.cancel&&w.dialog}),!w.cancel&&(w.cancel=l)&&l.on("fc-mousedown",o),p={x:e-210-5,y:t-23-5,width:65,height:17},w.removeItem||(p.text="Delete",p.tabIndex=3,p.type="div"),s=k.setAnimation({el:w.removeItem||"html",state:y,attr:p,component:this,label:"uiremove",css:C,container:!w.removeItem&&w.dialog}),!w.removeItem&&(w.removeItem=s)&&s.on("fc-mousedown",r),w.handleKeyPress||(w.handleKeyPress=function(e){13===e.keyCode?w.ok.element&&a(e):27===e.keyCode&&w.cancel.element&&o(e)}),w},a.getNode=function(e){for(var t,a={},o=this.getChildren("dataset"),r=0,i=o.length;r<i;r++)if(e){if(t=o[r].getNode(e))return t}else Object.assign(a,o[r].getNode());return!e&&a},a.createContainer=function(){var e=this,t=e.getFromEnv("animationManager"),a=e.getLinkedParent().getChildContainer();["connectorGroup","defaultVcanvasGroup","vcanvasLabelGroup","cloneGroup"].forEach((function(o){!e.getChildContainer(o)&&e.addChildContainer(o,t.setAnimation({el:"group",attr:{name:"manager-"+o},component:e,container:a[o]||a.defaultVcanvasGroup}))})),!e.getContainer("waitContainer")&&e.addContainer("waitContainer",t.setAnimation({el:"group",attr:{name:"manager-waitContainer"},container:a.defaultVcanvasGroup,component:e}))},a.draw=function(){var e,t,a={cacheUpdateUI:[350,215],cacheLabelDeleteUI:[250,100],cacheLabelUpdateUI:[350,205],cacheConnectorUpdateUIedit:[315,215],cacheConnectorUpdateUInew:[315,215]};if(!this.getState("configured")){for(e in y="update",a)if((t=this.getGraphicalElement(e))&&t.isVisible()){if("cacheUpdateUI"===e){var o=t.fields.image.val();a[e][1]=o?250:215}this.createHtmlDialog(a[e][0],a[e][1],r,r,r,t)}y="appearing"}this.setState("configured",!1),this.createContainer()},a.getDataLimits=function(){var e,t,a=this.getChildren("dataset"),o=+Infinity,r=-Infinity,i=-Infinity,n=+Infinity;for(e=0;e<a.length;e++)t=a[e].config,r=Math.max(r,t.yMax),o=Math.min(o,t.yMin),i=Math.max(i,t.xMax),n=Math.min(n,t.xMin);return{max:r,min:o,xMax:i,xMin:n}},a.isVisible=function(){return!this.isNotVisible},a.childChanged=function(){return this},a.hideWaitElem=function(){this.getGraphicalElement("waitElement")&&this.getGraphicalElement("waitElement").hide()},a.clearLongPress=function(){clearTimeout(this.config._longpressactive),delete this.config._longpressactive},a.triggerLabelUI=function(e,t){var a=this;a.config._longpressactive=setTimeout((function(){e.data("fire_click_event",0),e.data("viewMode")||a.showLabelDeleteUI(t)}),1e3)},a.triggerConnectorUI=function(e){var t=this,a=e.data("dataset"),o=e.data(u.preDefStr.configStr),r=o||{};t.config._longpressactive=setTimeout((function(){e.data("fire_click_event",0),e.data("viewMode")||t.showConnectorUpdateUI({fromid:{val:r.from,innerHTML:"<option>"+r.from+"</option>",disabled:!0},toid:{val:r.to,innerHTML:"<option>"+r.to+"</option>",disabled:!0},datasetIndex:a.config.datasetIndex,index:o.index,arratstart:{val:Boolean((0,u.pluckNumber)(r.arrowatstart,1))},arratend:{val:Boolean((0,u.pluckNumber)(r.arrowatend,1))},dashed:{val:(0,u.pluckNumber)(r.dashed)},dashgap:{val:r.dashgap},dashlen:{val:r.dashlen},label:{val:r.label},tooltext:{val:r.tooltext},id:{val:a.config.id,disabled:!0},strength:{val:r.conStrength},alpha:{val:r.alpha},color:{val:r.color.FCcolor.color}},!0)}),1e3)},a.deleteLabel=function(e){var t,a,o,r=this.getChildren("labels")[0],i=(0,u.pluckNumber)(e,r.config.lastTappedLabelIndex),n=r.components.data[i],l=this.getFromEnv("chart");t=n.graphics.element,a=n.graphics.trackerElement,t&&(o=t.data("eventArgs"),t.remove(),a&&a.remove(),delete n.graphics),l.fireChartInstanceEvent("chartupdated",(0,u.extend2)({sourceEvent:"labeldeleted"},o)),l.fireChartInstanceEvent("labeldeleted",o),n.removed=!0},a.showLabelDeleteUI=function(e){var t=this,a=t.getGraphicalElement("cacheLabelDeleteUI");t.getChildren("labels")[0].config.lastTappedLabelIndex=e.config.index,a?a.show():((a=t.addGraphicalElement("cacheLabelDeleteUI",t.createHtmlDialog(250,100,r,(function(){a.hide()}),(function(){t.deleteLabel(),a.hide()})))).message=t.getFromEnv("paper").html("span",{x:10,y:10,width:230,height:80}).add(a.dialog),a.ok.hide(),a.removeItem.translate(175).show()),a.message.attr({text:'Would you really like to delete the label: "'+e.config.text+'"?'})},a.drawWaitingRing=function(e,t){var a=this,o=e.config,i=a.getChildren("dataset")[t].config,n=a.getGraphicalElement("waitElement");a.clearLongPress(),n=a.getFromEnv("animationManager").setAnimation({el:n||"ringpath",attr:{ringpath:[o._xPos,o._yPos,8,11,0,0],fill:(0,u.toRaphaelColor)({alpha:"100,100",angle:120,color:"CCCCCC,FFFFFF",ratio:"30,50"}),"stroke-width":0},container:a.getContainer("waitContainer"),component:a}),a.getGraphicalElement("waitElement")||a.addGraphicalElement("waitElement",n),n.show().animate({ringpath:[o._xPos,o._yPos,8,11,0,6.28]},1e3),a.config._longpressactive=setTimeout((function(){var e=i.name!==m&&i.name!==r?i.name+u.preDefStr.BLANKSPACE:m,l=i.id!==r?(e?u.COMMASTRING:e)+i.id:m;n&&n.hide(),a.showNodeUpdateUI({x:{value:o.x},y:{value:o.y},draggable:{value:(0,u.getFirstValue)(o.allowdrag,1)},color:{value:o.color},alpha:{value:o.alpha},label:{value:(0,u.getFirstValue)(o.label,o.name)},tooltip:{value:o.toolText},shape:{value:p[o.shape]},rectWidth:{value:o.width},rectHeight:{value:o.height},circPolyRadius:{value:o.radius},polySides:{value:o.numsides},image:{value:o.imageNode},imgWidth:{value:o.imageWidth},imgHeight:{value:o.imageHeight},imgAlign:{value:o.imageAlign},imgUrl:{value:o.imageURL},id:{value:o.id,disabled:!0},link:{value:o.link},dataset:{innerHTML:'<option value="'+l+'">'+e+l+"</option>",disabled:!0},datasetIndex:t},!0)}),1e3)},a.drawNodeConnectors=function(e){var t,a,o,r,i,n;if(e)for(t in e)(r=e[t])&&(a=r.config.datasetIndex,i=r.config.fromPointObj,n=r.config.toPointObj,(o=this.getChildren("connector")[a])&&(o&&o.parsePlotAttributes(r,i,n),o&&o.drawConnector(r,i,n)))},a._clearConnectors=function(){var e,t,a,o,r,i,n=this.getNode();for(e in n)if(i=n[e]){for(r in t=i.config.startConnectors||{},a=i.config.endConnectors||{},t)o={graphics:t[r].graphics||{}},u.componentDispose.call(o);for(r in a)o={graphics:a[r].graphics||{}},u.componentDispose.call(o)}},a.getJSONData=function(){var e,t,a,o=this.getChildren(),r=o.dataset,i=o.connector,n=o.labels,l={};for(l.dataset=[],l.connectors=[],l.labels=[],e=0,t=r&&r.length;e<t;e++)a=r[e],l.dataset[e]||(l.dataset[e]=(0,u.extend2)({},a.JSONData)),l.dataset[e].data=a.getJSONData();for(e=0,t=i&&i.length;e<t;e++)a=i[e],l.connectors[e]||(l.connectors[e]=(0,u.extend2)({},a.JSONData)),l.connectors[e].connector=a.getJSONData();for(e=0,t=n&&n.length;e<t;e++)a=n[e],l.labels[e]||(l.labels[e]={label:[]}),l.labels[e].label=a.getJSONData();return l},t}(d.ComponentInterface);t["default"]=N},1404:function(e,t,a){"use strict";t.__esModule=!0,t["default"]=function(e){var t,a,r=e.getFromEnv("dataSource"),i=r.dataset,n=r.connectors,l=r.labels,s=e.getChildren("canvas")[0],c=t=s.getChildren("vCanvas")[0],d=[];if(l&&(l=[l]),!i&&!n&&!l)return void e.setChartMessage();(0,o.componentFactory)(t,e.getDSGroupdef(),"datasetGroup_dragNode"),(a=t.getChildren("datasetGroup_dragNode"))&&(c=a[0]),i&&i.length?(0,o.componentFactory)(c,e.getDSdef("dragnode"),"dataset",i.length,i):d.push("dataset");n&&n.length?(0,o.componentFactory)(c,e.getDSdef("connector"),"connector",n.length,n):d.push("connector");l&&l.length?(0,o.componentFactory)(c,e.getDSdef("dragableLabels"),"labels",l.length,l):d.push("labels");d.length&&function(e,t){var a,o,r,i=e.getChildren();if(t&&t.length)for(r=t.length-1;r>-1;r--)for(o=(a=i[t[r]])&&a.length-1;o>-1;a[o].remove(),o--);}(c,d)};var o=a(278)},1405:function(e,t,a){"use strict";var o=a(273);t.__esModule=!0,t["default"]=void 0;var r=o(a(1406))["default"];t["default"]=r},1406: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=o(a(626)),l=o(a(594)),s=o(a(1407)),c=o(a(1417)),d=a(1408),h=o(a(422)),u=i.preDefStr.altHGridColorStr,p=i.preDefStr.altHGridAlphaStr,g=Math,f=g.max,m=g.round,v=i.preDefStr.POSITION_BOTTOM,b=i.preDefStr.divLineAlpha3DStr,x=i.preDefStr.defaultFontStr,k=i.preDefStr.divLineAlphaStr,y=i.preDefStr.altVGridColorStr,C=i.preDefStr.altVGridAlphaStr,w=i.preDefStr.colors.c000000,A={chart2D:{bgColor:"bgColor",bgAlpha:"bgAlpha",bgAngle:"bgAngle",bgRatio:"bgRatio",canvasBgColor:"canvasBgColor",canvasBaseColor:"canvasBaseColor",divLineColor:"divLineColor",legendBgColor:"legendBgColor",legendBorderColor:"legendBorderColor",toolTipbgColor:"toolTipbgColor",toolTipBorderColor:"toolTipBorderColor",baseFontColor:"baseFontColor",anchorBgColor:"anchorBgColor"},chart3D:{bgColor:"bgColor3D",bgAlpha:"bgAlpha3D",bgAngle:"bgAngle3D",bgRatio:"bgRatio3D",canvasBgColor:"canvasBgColor3D",canvasBaseColor:"canvasBaseColor3D",divLineColor:"divLineColor3D",divLineAlpha:b,legendBgColor:"legendBgColor3D",legendBorderColor:"legendBorderColor3D",toolTipbgColor:"toolTipbgColor3D",toolTipBorderColor:"toolTipBorderColor3D",baseFontColor:"baseFontColor3D",anchorBgColor:"anchorBgColor3D"}},S=function(e){function t(){var t;return(t=e.call(this)||this).isDual=!0,t.paletteIndex=3,t.hasInteractiveLegend=!1,t.numOfCanvas=2,t.registerFactory("vCanvas",l["default"],["axis"]),t.registerFactory("axis",c["default"],["canvas"]),t.registerFactory("dataset",s["default"],["vCanvas"]),t}(0,r["default"])(t,e);var a=t.prototype;return a.getName=function(){return"candlestick"},t.getName=function(){return"candlestick"},a.getDSdef=function(e){return"bar"===e?d.CandleStickBarDataset:"line"===e?d.CandleStickLineDataset:d.CandleStickDataset},a.__setDefaultConfig=function(){e.prototype.__setDefaultConfig.call(this);var t=this.config;t.hasLegend=!0,t.defaultDatasetType="candlestick",t.drawanchors=0,t.enablemousetracking=!0,t.iscandlestick=!0,t.canvasborderthickness=1},a.configureAttributes=function(t){e.prototype.configureAttributes.call(this,t)},a.parseChartAttr=function(t){e.prototype.parseChartAttr.call(this,t);var a,o=this.config,r=this.getFromEnv("chart-attrib"),n=this.getFromEnv("color-manager");o.showVolumeChart=(0,i.pluckNumber)(r.showvolumechart,function(e){if(!e||!e.dataset)return 0;var t=e.dataset[0].data;return!!(Array.isArray(t)&&t.filter((function(e){return e.volume}))||[]).length}(t),1),o.rollOverBandColor=(0,i.convertColor)((0,i.pluck)(r.rolloverbandcolor,n.getColor(u)),(0,i.pluck)(r.rolloverbandalpha,n.getColor(p))),o.crosslinecolor=(0,i.pluck)(r.crosslinecolor,r.rolloverbandcolor,n.getColor(u)),o.drawcrosslineontop=0,o.crosslinealpha=(0,i.pluckNumber)(r.crosslinealpha,r.rolloverbandalpha,n.getColor(p)),o.drawcrossline=1,o.skipClipping=!0,r=this.getFromEnv("chart-attrib"),o.vplotbordercolor=(0,i.getFirstValue)(r.vplotbordercolor,i.BLANKSTRING),o.vplotborderalpha=(0,i.getFirstValue)(r.vplotborderalpha,i.BLANKSTRING),o.vplotborderthickness=(0,i.pluckNumber)(r.vplotborderthickness,1),o.showplotborder=(0,i.pluckNumber)(r.showvplotborder,1),a=(0,i.pluckNumber)(r.volumeheightpercent,40),o.volumeHeightPercent=a<20?20:a>80?80:a,o.canvasBorderWidth=(0,i.pluckNumber)(r.canvasborderthickness,1)},a._spaceManager=function(){var e,t,a,o,r,n,l,s,c,d,h,u,p,g,b,x,k,y,C,w,A,S,N=this.config,L=this.getChildren(),D=N.legendPosition?N.legendPosition.split("-"):[],E=L.xAxis&&L.xAxis[0],T=L.yAxis&&L.yAxis[0],F=L.yAxis&&L.yAxis[1],P=this.getFromEnv("legend"),_=this.config.showVolumeChart,V=_?N.volumeHeightPercent:0,I=L.canvas[0],B=I.config,M=N.width,O=N.height,R={},G=N.chartBorderWidth,H=B.canvasBorderWidth,z=N.minCanvasHeight,W=N.minCanvasWidth,U=N.canvasMarginLeft,j=N.canvasMarginRight,J=N.canvasMarginTop,K=N.canvasMarginBottom,q=N.origCanvasTopMargin,Y=N.origCanvasBottomMargin,X=N.origCanvasLeftMargin,Q=N.origCanvasRightMargin;this._allocateSpace({top:G,bottom:G,left:G,right:G}),e=.225*N.availableHeight,t=this._manageActionBarSpace&&this._manageActionBarSpace(e)||{},this._allocateSpace(t),u=D[0]===i.POSITION_LEFT||D[0]===i.POSITION_RIGHT?.225*N.canvasWidth:.3*N.canvasHeight,!1!==N.hasLegend&&E&&N.showLegend&&this._allocateSpace(P._manageLegendPosition(u)),a=.7*N.canvasWidth,d=T.placeAxis(a),h=_?F.placeAxis(a):{},R.left=f(d.left,h.left||0),R.right=f(d.right,h.right||0),this._allocateSpace(R),W>M-U-j&&(A=!0,p=N.canvasWidth-W,S=U+j,U=N.canvasMarginLeft=p*U/S,j=N.canvasMarginRight=p*j/S),k=U>N.canvasLeft?U-N.canvasLeft:0,y=j>M-N.canvasRight?j+N.canvasRight-M:0,this._allocateSpace({left:k,right:y}),A&&(S=X+Q,(b=N.canvasWidth)>W&&(k=(p=b-W)*X/S,y=p*Q/S),this._allocateSpace({left:k,right:y})),o=.225*N.canvasHeight,o=D[0]===i.POSITION_TOP||D[0]===v?.6*N.canvasHeight:.6*N.canvasWidth,this._manageChartMenuBar(o),this._allocateSpace({top:N.canvasMarginTop,bottom:N.canvasMarginBottom}),o=.3*N.canvasHeight,n=E.placeAxis(o),E&&this._allocateSpace(n),n.bottom+=6,B.intermediarySpace=n.bottom,_&&this._allocateSpace({bottom:10}),this._allocateSpace({top:H,bottom:2*H,left:H,right:H}),z>O-J-K&&(x=!0,p=N.canvasHeight-z,S=J+K,J=N.canvasMarginTop=p*J/S,K=N.canvasMarginBottom=p*K/S),C=J>N.canvasTop?J-N.canvasTop:0,w=K>O-N.canvasBottom?K+N.canvasBottom-O:0,this._allocateSpace({top:C,bottom:w}),x&&(S=q+Y,(g=N.canvasHeight)>z&&(C=(p=g-z)*q/S,w=p*Y/S),this._allocateSpace({top:C,bottom:w})),r=N.canvasHeight,B.canvasHeight=m((100-V)/100*r),B.canvasTop=N.canvasTop,B.canvasLeft=N.canvasLeft,B.canvasBottom=B.canvasTop+B.canvasHeight,B.canvasWidth=N.canvasWidth,B.canvasRight=N.canvasRight,B.canvasY=N.canvasTop+B.canvasHeight+H,I.setDimension({top:B.canvasTop,left:B.canvasLeft,width:B.canvasWidth,height:B.canvasHeight}),_&&((s=(l=L.canvas[1]).config).canvasHeight=V/100*r,s.canvasTop=B.canvasBottom+n.bottom+2*H,s.canvasLeft=N.canvasLeft,s.canvasBottom=s.canvasTop+s.canvasHeight+2*H,s.canvasRight=N.canvasRight,s.canvasWidth=N.canvasWidth,c=N.canvasTop+B.canvasHeight+n.bottom+2*H,s.canvasY=c,l.setDimension({top:s.canvasTop,left:s.canvasLeft,width:s.canvasWidth,height:s.canvasHeight}))},a._postSpaceManagement=function(){e.prototype._postSpaceManagement.call(this)},a.setAxisDimention=function(){var e,t=this.getChildren(),a=t.xAxis&&t.xAxis[0],o=t.yAxis&&t.yAxis[0],r=t.yAxis&&t.yAxis[1],i=t.canvas,n=i[0].config,l=n.canvasBorderWidth,s=n.canvasLeft-l;a&&a.setAxisDimention({x:n.canvasLeft,y:a.config.isOpposit?n.canvasTop-l:n.canvasY,opposite:a.config.isOpposit?n.canvasY:n.canvasTop-l,axisLength:n.canvasWidth}),o&&o.setAxisDimention({x:o.config.isOpposit?n.canvasRight+l:s,y:n.canvasTop,opposite:o.config.isOpposit?s:n.canvasRight+l,axisLength:n.canvasHeight}),a.setCanvas(n),o.setCanvas(n),this.config.showVolumeChart&&(e=i[1].config,r&&r.setAxisDimention({x:o.config.isOpposit?e.canvasRight+l:s,y:e.canvasTop,opposite:o.config.isOpposit?s:e.canvasRight+l,axisLength:e.canvasHeight}),r&&r.setCanvas(e))},a._feedAxesRawData=function(){var e,t,a,o=this.getFromEnv("color-manager"),r=this.getFromEnv("dataSource"),n=this.getFromEnv("chart-attrib"),l=[],s=[],c=this.config.is3D,d=c?A.chart3D:A.chart2D,g=(0,i.pluckFontSizeMaintainUnit)(n.outcnvbasefontsize,n.basefontsize,10);return(e={isVertical:!1,isReverse:!1,isOpposit:(0,h["default"])(n.xaxisposition,"top"),drawTrendLabels:!0,outCanfontFamily:(0,i.pluck)(n.outcnvbasefont,n.basefont,x),outCanfontSize:this.computeFontSize(g),outCanfontSizeWithUnit:g,outCancolor:(0,i.pluck)(n.outcnvbasefontcolor,n.basefontcolor,o.getColor(d.baseFontColor)).replace(/^#?([a-f0-9]+)/gi,"#$1"),axisNamePadding:n.xaxisnamepadding,axisValuePadding:n.labelpadding,axisNameFont:n.xaxisnamefont,axisNameFontSize:this.computeFontSize(n.xaxisnamefontsize),axisNameFontSizeWithUnit:n.xaxisnamefontsize,axisNameFontColor:n.xaxisnamefontcolor,axisNameFontBold:n.xaxisnamefontbold,axisNameFontItalic:n.xaxisnamefontitalic,axisNameBgColor:n.xaxisnamebgcolor,axisNameBorderColor:n.xaxisnamebordercolor,axisNameAlpha:n.xaxisnamealpha,axisNameFontAlpha:n.xaxisnamefontalpha,axisNameBgAlpha:n.xaxisnamebgalpha,axisNameBorderAlpha:n.xaxisnameborderalpha,axisNameBorderPadding:n.xaxisnameborderpadding,axisNameBorderRadius:n.xaxisnameborderradius,axisNameBorderThickness:n.xaxisnameborderthickness,axisNameBorderDashed:n.xaxisnameborderdashed,axisNameBorderDashLen:n.xaxisnameborderdashlen,axisNameBorderDashGap:n.xaxisnameborderdashgap,useEllipsesWhenOverflow:n.useellipseswhenoverflow,divLineColor:(0,i.pluck)(n.vdivlinecolor,n.divlinecolor,o.getColor(d.divLineColor)),divLineAlpha:(0,i.pluck)(n.vdivlinealpha,n.divlinealpha,c?o.getColor(b):o.getColor(k)),divLineThickness:(0,i.pluckNumber)(n.vdivlinethickness,n.divlinethickness,1),divLineIsDashed:Boolean((0,i.pluckNumber)(n.vdivlinedashed,n.vdivlineisdashed,n.divlinedashed,n.divlineisdashed,0)),divLineDashLen:(0,i.pluckNumber)(n.vdivlinedashlen,n.divlinedashlen,4),divLineDashGap:(0,i.pluckNumber)(n.vdivlinedashgap,n.divlinedashgap,2),showAlternateGridColor:(0,i.pluckNumber)(n.showalternatevgridcolor,0),alternateGridColor:(0,i.pluck)(n.alternatevgridcolor,o.getColor(y)),alternateGridAlpha:(0,i.pluck)(n.alternatevgridalpha,o.getColor(C)),numDivLines:n.numvdivlines,labelFont:n.labelfont,labelFontSize:this.computeFontSize(n.labelfontsize),labelFontSizeWithUnit:n.labelfontsize,labelFontColor:n.labelfontcolor,labelAlpha:n.labelalpha,labelFontBold:n.labelfontbold,labelFontItalic:n.labelfontitalic,labelBdrColor:n.labelbordercolor,labelBdrAlpha:n.labelborderalpha,labelLink:n.labellink,labelBgAlpha:n.labelbgalpha,labelBgColor:n.labelbgcolor,labelBdrThickness:n.labelborderthickness,labelBdrPadding:n.labelborderpadding,labelBdrRadius:n.labelborderradius,labelBdrDashed:n.labelborderdashed,labelBdrDashLen:n.labelborderdashlen,labelBdrDashGap:n.labelborderdashgap,axisName:n.xaxisname,axisMinValue:n.xaxisminvalue,axisMaxValue:n.xaxismaxvalue,setAdaptiveMin:n.setadaptivexmin,adjustDiv:n.adjustvdiv,labelDisplay:n.labeldisplay,showLabels:n.showlabels,rotateLabels:n.rotatelabels,slantLabel:(0,i.pluckNumber)(n.slantlabels,n.slantlabel),labelStep:(0,i.pluckNumber)(n.labelstep,n.xaxisvaluesstep),showAxisValues:(0,i.pluckNumber)(n.showxaxisvalues,n.showxaxisvalue),showLimits:n.showvlimits,showDivLineValues:(0,i.pluckNumber)(n.showvdivlinevalues,n.showvdivlinevalues),showZeroPlane:n.showvzeroplane,zeroPlaneColor:n.vzeroplanecolor,zeroPlaneThickness:n.vzeroplanethickness,zeroPlaneAlpha:n.vzeroplanealpha,showZeroPlaneValue:n.showvzeroplanevalue,trendlineColor:n.trendlinecolor,trendlineToolText:n.trendlinetooltext,trendlineThickness:n.trendlinethickness,trendlineAlpha:n.trendlinealpha,showTrendlinesOnTop:n.showtrendlinesontop,showAxisLine:(0,i.pluckNumber)(n.showxaxisline,n.showaxislines,n.drawAxisLines,0),axisLineThickness:(0,i.pluckNumber)(n.xaxislinethickness,n.axislinethickness,1),axisLineAlpha:(0,i.pluckNumber)(n.xaxislinealpha,n.axislinealpha,100),axisLineColor:(0,i.pluck)(n.xaxislinecolor,n.axislinecolor,w),freezeLimit:!0}).vtrendlines=r.vtrendlines,s.push(e),(t={isVertical:!0,isReverse:!0,isOpposit:(0,h["default"])(n.yaxisposition,"left"),drawLabelsOpposit:1,axisNameAlignCanvas:1,outCanfontFamily:(0,i.pluck)(n.outcnvbasefont,n.basefont,x),outCanfontSize:this.computeFontSize(g),outCanfontSizeWithUnit:g,outCancolor:(0,i.pluck)(n.outcnvbasefontcolor,n.basefontcolor,o.getColor(d.baseFontColor)).replace(/^#?([a-f0-9]+)/gi,"#$1"),axisNamePadding:n.yaxisnamepadding,axisValuePadding:n.yaxisvaluespadding,axisNameFont:n.pyaxisnamefont,axisNameFontSize:n.pyaxisnamefontsize,axisNameFontSizeWithUnit:n.pyaxisnamefontsize,axisNameFontColor:n.pyaxisnamefontcolor,axisNameFontBold:n.pyaxisnamefontbold,axisNameFontItalic:n.pyaxisnamefontitalic,axisNameBgColor:n.pyaxisnamebgcolor,axisNameBorderColor:n.pyaxisnamebordercolor,axisNameAlpha:n.pyaxisnamealpha,axisNameFontAlpha:n.pyaxisnamefontalpha,axisNameBgAlpha:n.pyaxisnamebgalpha,axisNameBorderAlpha:n.pyaxisnameborderalpha,axisNameBorderPadding:n.pyaxisnameborderpadding,axisNameBorderRadius:n.pyaxisnameborderradius,axisNameBorderThickness:n.pyaxisnameborderthickness,axisNameBorderDashed:n.pyaxisnameborderdashed,axisNameBorderDashLen:n.pyaxisnameborderdashlen,axisNameBorderDashGap:n.pyaxisnameborderdashgap,axisNameWidth:n.yaxisnamewidth,useEllipsesWhenOverflow:n.useellipseswhenoverflow,rotateAxisName:(0,i.pluckNumber)(n.rotateyaxisname,1),axisName:n.pyaxisname,divLineColor:(0,i.pluck)(n.divlinecolor,o.getColor(d.divLineColor)),divLineAlpha:(0,i.pluck)(n.divlinealpha,o.getColor(k)),divLineThickness:(0,i.pluckNumber)(n.divlinethickness,1),divLineIsDashed:Boolean((0,i.pluckNumber)(n.divlinedashed,n.divlineisdashed,1)),divLineDashLen:(0,i.pluckNumber)(n.divlinedashlen,4),divLineDashGap:(0,i.pluckNumber)(n.divlinedashgap,2),showAlternateGridColor:(0,i.pluckNumber)(n.showalternatehgridcolor,1),alternateGridColor:(0,i.pluck)(n.alternatehgridcolor,o.getColor(u)),alternateGridAlpha:(0,i.pluck)(n.alternatehgridalpha,o.getColor(p)),numDivLines:(0,i.pluckNumber)(n.numpdivlines,5),axisMinValue:n.pyaxisminvalue,axisMaxValue:n.pyaxismaxvalue,setAdaptiveMin:(0,i.pluckNumber)(n.setadaptiveymin,1),adjustDiv:n.adjustdiv,labelStep:n.yaxisvaluesstep,showAxisValues:(0,i.pluckNumber)(n.showyaxisvalues,n.showyaxisvalue),showLimits:(0,i.pluckNumber)(n.showyaxislimits,n.showlimits,this.showLimits),showDivLineValues:(0,i.pluckNumber)(n.showdivlinevalues,n.showdivlinevalue),showZeroPlane:n.showzeroplane,zeroPlaneColor:n.zeroplanecolor,zeroPlaneThickness:n.zeroplanethickness,zeroPlaneAlpha:n.zeroplanealpha,showZeroPlaneValue:n.showzeroplanevalue,trendlineColor:n.trendlinecolor,trendlineToolText:n.trendlinetooltext,trendlineThickness:n.trendlinethickness,trendlineAlpha:n.trendlinealpha,showTrendlinesOnTop:n.showtrendlinesontop,showAxisLine:(0,i.pluckNumber)(n.showyaxisline,n.showaxislines,n.drawAxisLines,0),axisLineThickness:(0,i.pluckNumber)(n.yaxislinethickness,n.axislinethickness,1),axisLineAlpha:(0,i.pluckNumber)(n.yaxislinealpha,n.axislinealpha,100),axisLineColor:(0,i.pluck)(n.yaxislinecolor,n.axislinecolor,w),labelFont:n.yaxisvaluefont,labelFontSize:this.computeFontSize(n.yaxisvaluefontsize),labelFontSizeWithUnit:n.yaxisvaluefontsize,labelFontColor:n.yaxisvaluefontcolor,labelAlpha:n.yaxisvaluealpha,labelFontBold:n.yaxisvaluefontbold,labelFontItalic:n.yaxisvaluefontitalic,labelBdrColor:n.yaxisvaluebordercolor,labelBgAlpha:n.yaxisvaluebgalpha,labelBdrAlpha:n.yaxisvalueborderalpha,labelLink:n.yaxisvaluelink,labelBgColor:n.yaxisvaluebgcolor,labelBdrThickness:n.yaxisvalueborderthickness,labelBdrPadding:n.yaxisvalueborderpadding,labelBdrRadius:n.yaxisvalueborderradius,labelBdrDashed:n.yaxisvalueborderdashed,labelBdrDashLen:n.yaxisvalueborderdashlen,labelBdrDashGap:n.yaxisvalueborderdashgap}).trendlines=r.trendlines,l.push(t),this.config.showVolumeChart&&(a={isVertical:!0,isReverse:!0,isOpposit:(0,h["default"])(n.yaxisposition,"left"),axisIndex:1,drawLabelsOpposit:1,axisNameAlignCanvas:1,uniqueClassName:1,outCanfontFamily:(0,i.pluck)(n.outcnvbasefont,n.basefont,x),outCanfontSize:this.computeFontSize(g),outCanfontSizeWithUnit:g,outCancolor:(0,i.pluck)(n.outcnvbasefontcolor,n.basefontcolor,o.getColor(d.baseFontColor)).replace(/^#?([a-f0-9]+)/gi,"#$1"),axisNamePadding:n.yaxisnamepadding,axisValuePadding:n.yaxisvaluespadding,axisNameFont:n.vyaxisnamefont,axisNameFontSize:n.vyaxisnamefontsize,axisNameFontSizeWithUnit:n.vyaxisnamefontsize,axisNameFontColor:n.vyaxisnamefontcolor,axisNameFontBold:n.vyaxisnamefontbold,axisNameFontItalic:n.vyaxisnamefontitalic,axisNameBgColor:n.vyaxisnamebgcolor,axisNameBorderColor:n.vyaxisnamebordercolor,axisNameAlpha:n.vyaxisnamealpha,axisNameFontAlpha:n.vyaxisnamefontalpha,axisNameBgAlpha:n.vyaxisnamebgalpha,axisNameBorderAlpha:n.vyaxisnameborderalpha,axisNameBorderPadding:n.vyaxisnameborderpadding,axisNameBorderRadius:n.vyaxisnameborderradius,axisNameBorderThickness:n.vyaxisnameborderthickness,axisNameBorderDashed:n.vyaxisnameborderdashed,axisNameBorderDashLen:n.vyaxisnameborderdashlen,axisNameBorderDashGap:n.vyaxisnameborderdashgap,axisNameWidth:n.yaxisnamewidth,useEllipsesWhenOverflow:n.useellipseswhenoverflow,rotateAxisName:(0,i.pluckNumber)(n.rotateyaxisname,1),axisName:n.vyaxisname,divLineColor:(0,i.pluck)(n.divlinecolor,o.getColor(d.divLineColor)),divLineAlpha:(0,i.pluck)(n.divlinealpha,o.getColor(k)),divLineThickness:(0,i.pluckNumber)(n.divlinethickness,1),divLineIsDashed:Boolean((0,i.pluckNumber)(n.divlinedashed,n.divlineisdashed,1)),divLineDashLen:(0,i.pluckNumber)(n.divlinedashlen,4),divLineDashGap:(0,i.pluckNumber)(n.divlinedashgap,2),showAlternateGridColor:(0,i.pluckNumber)(n.showalternatehgridcolor,1),alternateGridColor:(0,i.pluck)(n.alternatehgridcolor,o.getColor(u)),alternateGridAlpha:(0,i.pluck)(n.alternatehgridalpha,o.getColor(p)),numDivLines:n.numdivlines,axisMinValue:n.vyaxisminvalue,axisMaxValue:n.vyaxismaxvalue,setAdaptiveMin:n.setadaptiveymin,adjustDiv:n.adjustdiv,labelStep:n.yaxisvaluesstep,showAxisValues:(0,i.pluckNumber)(n.showyaxisvalues,n.showyaxisvalue),showLimits:(0,i.pluckNumber)(n.showsecondarylimits,n.showlimits),showDivLineValues:(0,i.pluckNumber)(n.showdivlinevalues,n.showdivlinevalue),showZeroPlane:n.showzeroplane,zeroPlaneColor:n.zeroplanecolor,zeroPlaneThickness:n.zeroplanethickness,zeroPlaneAlpha:n.zeroplanealpha,showZeroPlaneValue:n.showzeroplanevalue,trendlineColor:n.trendlinecolor,trendlineToolText:n.trendlinetooltext,trendlineThickness:n.trendlinethickness,trendlineAlpha:n.trendlinealpha,showTrendlinesOnTop:n.showtrendlinesontop,showAxisLine:(0,i.pluckNumber)(n.showyaxisline,n.showaxislines,n.drawAxisLines,0),axisLineThickness:(0,i.pluckNumber)(n.yaxislinethickness,n.axislinethickness,1),axisLineAlpha:(0,i.pluckNumber)(n.yaxislinealpha,n.axislinealpha,100),axisLineColor:(0,i.pluck)(n.yaxislinecolor,n.axislinecolor,w),labelFont:n.yaxisvaluefont,labelFontSize:this.computeFontSize(n.yaxisvaluefontsize),labelFontSizeWithUnit:n.yaxisvaluefontsize,labelFontColor:n.yaxisvaluefontcolor,labelAlpha:n.yaxisvaluealpha,labelFontBold:n.yaxisvaluefontbold,labelFontItalic:n.yaxisvaluefontitalic,labelBdrColor:n.yaxisvaluebordercolor,labelBgAlpha:n.yaxisvaluebgalpha,labelBdrAlpha:n.yaxisvalueborderalpha,labelLink:n.yaxisvaluelink,labelBgColor:n.yaxisvaluebgcolor,labelBdrThickness:n.yaxisvalueborderthickness,labelBdrPadding:n.yaxisvalueborderpadding,labelBdrRadius:n.yaxisvalueborderradius,labelBdrDashed:n.yaxisvalueborderdashed,labelBdrDashLen:n.yaxisvalueborderdashlen,labelBdrDashGap:n.yaxisvalueborderdashgap},l.push(a)),{xAxisConfigure:s,yAxisConfigure:l}},a.mouseoutHandler=function(e,t,a){var o=this.config.datasetOrder||this.getDatasets(),r=this.getChildren("mouseTracker")[0];o[t]&&o[t].components.data[a]?o[t]._firePlotEvent("fc-mouseout",a,e):this.getFromEnv("toolTipController").hideAll(),delete r._lastDatasetIndex,delete r._lastPointIndex},a._mouseEvtHandler=function(e,t){var a,o,r,n,l,s,c,d=this,h=t.mouseTracker,u=e.originalEvent,p=d.getChildren("canvas").length,g=u&&(0,i.getMouseCoordinate)(d.getFromEnv("chart-container"),u,d),f=g&&g.chartX||0,m=g&&g.chartY||0,v=!1,b=h._lastDatasetIndex,x=h._lastPointIndex;for(n=0;n<p;n++)for(l=(a=d.getDatasets()).length;l--&&!v;)(o=a[l])&&o.getState("visible")&&(r=o._getHoveredPlot&&o._getHoveredPlot(f,m))&&r.hovered&&(v=!0,r.datasetIndex=l,c=h.getMouseEvents(e,r.datasetIndex,r.pointIndex));if((!v||c&&c.fireOut)&&void 0!==b&&a[b]&&a[b]._firePlotEvent&&(c&&!c.events.length?h.mouseoutTimer=setTimeout((function(){d.mouseoutHandler(e,b,x)}),20):(d.mouseoutHandler(e,b,x),clearTimeout(h.mouseoutTimer))),v)for((s=c.events&&c.events.length)&&(h._lastDatasetIndex=r.datasetIndex,x=h._lastPointIndex=r.pointIndex),l=0;l<s;l+=1)o&&o._firePlotEvent&&o._firePlotEvent(c.events[l],x,e,r.datasetIndex)},a._allocateSpace=function(e){var t,a,o=this.getChildren("canvas"),r=o&&o[0].config,i=this.config,n=i.canvasHeight,l=i.canvasWidth;a=i.canvasLeft+=e.left||0,t=i.canvasTop+=e.top||0,l=i.canvasWidth=f(l-((e.left||0)+(e.right||0)),0),n=i.canvasHeight=f(n-((e.top||0)+(e.bottom||0)),0),i.availableHeight=f(i.availableHeight-((e.top||0)+(e.bottom||0)),0),i.availableWidth=f(i.availableWidth-((e.left||0)+(e.right||0)),0),i.canvasRight=a+l,i.canvasBottom=t+n,r&&(r.canvasPaddingLeft=f(r.canvasPaddingLeft,e.paddingLeft||0),r.canvasPaddingRight=f(r.canvasPaddingRight,e.paddingRight||0),r.canvasPaddingTop=f(r.canvasPaddingTop,e.paddingTop||0),r.canvasPaddingBottom=f(r.canvasPaddingBottom,e.paddingBottom||0))},a._checkInvalidSpecificData=function(){var e=this.getFromEnv("dataSource").dataset,t=e&&e[0]&&e[0].data;if(!e||!t||!Array.isArray(t))return!0},t}(n["default"]);t["default"]=S},1407:function(e,t,a){"use strict";t.__esModule=!0,t["default"]=function(e){var t,a,n,l=e.getFromEnv("dataSource"),s=l.dataset,c=l.trendset,d=e.getFromEnv("chartConfig").showVolumeChart,h=(0,o.pluck)((0,o.parseUnsafeString)(e.getFromEnv("chart-attrib").plotpriceas).toLowerCase(),"candlestick"),u=e.getChildren("canvas")[0].getChildren("vCanvas")[0],p=["candlestick","candlestickbar","candlestickline","trendset"];if(!s)return void e.setChartMessage();(n=s.slice(0))[0]&&n[0].data&&n[0].data.sort((function(e,t){return e.x-t.x})),(0,o.datasetFactory)(u,e.getDSdef(h),"dataset_"+h,s.length,n),i(p,"bar"===h?"candlestickbar":"line"===h?"candlestickline":"candlestick");d&&(t=e.getChildren("canvas")[1],a=t.getChildren("vCanvas")[0],(0,o.datasetFactory)(a,r.VolumeDataset,"dataset_volume",s.length,s));c&&((0,o.datasetFactory)(u,r.TrendSet,"dataset_trendset",c.length,c),i(p,"trendset"));!function(e,t){var a;e&&e.iterateComponents((function(e){for(a=0;a<t.length;a++)e.getName()===t[a]&&e.remove()}))}(u,p)};var o=a(278),r=a(1408),i=function(e,t){var a=e.indexOf(t);-1!==a&&e.splice(a,1)}},1408:function(e,t,a){"use strict";var o=a(273);t.__esModule=!0;var r=o(a(1409));t.CandleStickDataset=r["default"];var i=o(a(1411));t.CandleStickBarDataset=i["default"];var n=o(a(1413));t.CandleStickLineDataset=n["default"];var l=o(a(1414));t.VolumeDataset=l["default"];var s=o(a(1415));t.TrendSet=s["default"]},1409:function(e,t,a){"use strict";var o=a(273);t.__esModule=!0,t._parseToolText=t._firePlotEvent=t.getPlotIndices=t["default"]=void 0;var r=o(a(292)),i=a(278),n=o(a(1323)),l=a(286),s=o(a(1410)),c=a(599),d=i.preDefStr.colors,h=d.B90000,u=d.FFFFFF,p=function(e,t,a){var o,r,i,n=this.getFromEnv("chart"),l=this.components.data[t],s=this.config.currentToolTip,c=l.graphics.element,d=a.originalEvent,h=n.getFromEnv("paper").canvas.style,u=this.getFromEnv("toolTipController");if(c)switch(o=(r=l.config).toolText,i=r.setLink,e){case"fc-mouseover":o&&(s?u.draw(d,o,s):s=this.config.currentToolTip=u.draw(d,o)),n.plotEventHandler(c,a,"DataPlotRollOver"),i&&(h.cursor="pointer");break;case"fc-mouseout":u.hide(s),n.plotEventHandler(c,a,"DataPlotRollOut"),i&&(h.cursor="default");break;case"fc-click":n.plotEventHandler(c,a);break;case"fc-mousemove":o&&(s?u.draw(d,o,s):s=this.config.currentToolTip=u.draw(d,o))}},g=function(e){var t,a,o=Math.floor(e),r=Math.ceil(e),i=[],n=this.config.JSONData&&this.config.JSONData.data;for(t=n.length;t--;)(a=n[t]).x>=o&&a.x<=r&&i.push(t);return i},f=function(e){var t,a=this.config,o=this.components.data,r=this.getFromEnv("chart-attrib"),n="line"===a.plotType?1:0,l=a.JSONData.data[e],s=o[e].config,c=this.getFromEnv("xAxis").getLabel(s.x).label,d=s.open,h=s.close,u=this.getFromEnv("yAxis"),p=s.high,g=s.low,f=s.volume,m=void 0!==f?l.volumetooltext:void 0;return a.showTooltip?void 0!==(t=(0,i.getValidValue)((0,i.parseUnsafeString)((0,i.pluck)(m,l.tooltext,a.volumeToolText,a.toolText),!1)))?t=(0,i.parseTooltext)(t,[3,5,6,10,54,55,56,57,58,59,60,61,81,82],{label:c,yaxisName:(0,i.parseUnsafeString)(r.yaxisname),xaxisName:(0,i.parseUnsafeString)(r.xaxisname),openValue:l.open,openDataValue:u.dataLabels(d),closeValue:l.close,closeDataValue:u.dataLabels(h),highValue:l.high,highDataValue:u.dataLabels(p),lowValue:l.low,lowDataValue:u.dataLabels(g),volumeValue:l.volume,volumeDataValue:u.dataLabels(f)},l,r):(t=null===d||n?"":"<b>Open:</b> "+u.dataLabels(d)+"<br />",t+=null!==h?"<b>Close:</b> "+u.dataLabels(h)+"<br />":"",t+=null===p||n?"":"<b>High:</b> "+u.dataLabels(p)+"<br />",t+=null===g||n?"":"<b>Low:</b> "+u.dataLabels(g)+"<br />",t+=null!==f?"<b>Volume:</b> "+u.dataLabels(f):""):t="",t};t._parseToolText=f,t.getPlotIndices=g,t._firePlotEvent=p,(0,l.addDep)({name:"candlestickAnimation",type:"animationRule",extension:s["default"]});var m=function(e){function t(){return e.apply(this,arguments)||this}(0,r["default"])(t,e);var a=t.prototype;return a.trimData=function(e){if(this.components||!this.components.data||!this.components.data.length){var t=this.components,a=t&&t.data,o=a&&a.length,r=e.data,i=Array.isArray(r)&&r.filter((function(e){return e.high||e.open||e.close||e.low})).length||0,n=o-i;n>0&&this.removeData(i,n,!1)}},a.removePlots=function(){var e=this.components,t=e&&e.removeDataArr;(0,c._removePlots)(t,this.__removeElem)},a.configureAttributes=function(e){if(!e)return!1;this.trimData(e),this.config.JSONData=e;var t,a,o,r,n,l,s,c,d,p,g,f,m,v,b,x,k,y,C,w,A,S=this.config,N=this.getFromEnv("chart"),L=this.config.JSONData,D=L.data||[],E=N.getFromEnv("dataSource").chart,T=D.length,F=this.getFromEnv("number-formatter"),P=this.getFromEnv("color-manager"),_=S.bearBorderColor=(0,i.getFirstColor)((0,i.pluck)(E.bearbordercolor,h)),V=S.bearFillColor=(0,i.getFirstColor)((0,i.pluck)(E.bearfillcolor,h)),I=S.bullBorderColor=(0,i.getFirstColor)((0,i.pluck)(E.bullbordercolor,P.getColor("canvasBorderColor"))),B=S.bullFillColor=(0,i.getFirstColor)((0,i.pluck)(E.bullfillcolor,u)),M=S.linethickness=S.plotBorderThickness=(0,i.pluckNumber)(E.plotlinethickness,1),O=S.plotLineDashLen=(0,i.pluckNumber)(E.plotlinedashlen,5),R=S.plotLineDashGap=(0,i.pluckNumber)(E.plotlinedashgap,4),G=-Infinity,H=+Infinity,z=-Infinity,W=+Infinity;for(this.setState("visible",1===(0,i.pluckNumber)(L.visible,1)),this._conatinerHidden=!!this.getState("visible"),S.minAbsNonZeroValue=Infinity,S.minAbsNonZeroData={},S.defaultPadding={left:.5,right:.5},S.parentYAxis=0,S.toolText=(0,i.getValidValue)((0,i.parseUnsafeString)((0,i.pluck)(L.tooltext,E.plottooltext),!1)),S.name=(0,i.getValidValue)(L.seriesname),S.showTooltip=(0,i.pluckNumber)(E.showtooltip,1),S.showShadow=(0,i.pluckNumber)(E.showshadow,P.getColor("showShadow")),S.showErrorValue=!0,S.errorBarWidthPercent=0,!0,A=(0,i.pluck)(E.maxcolwidth),S.maxColWidth=Math.abs((0,i.pluckNumber)(A,50))||1,w=Math.max((0,i.pluckNumber)(E.plotspacepercent,20)%100,0),S.plotSpacePercent=S.groupPadding=w/200,k=this.components.data=this.components.data||(this.components.data=[]),S.valuePadding=(0,i.pluckNumber)(L.valuepadding,E.valuepadding,2),S.plotBorderThickness=M,n=0;n<T;n+=1)y=D[n],(l=k[n])||(l=k[n]={}),!l.config&&(l.config={}),!l.graphics&&(l.graphics={}),C=l.config,y&&!y.vline&&(C.setLink=(0,i.pluck)(y.link),s=C.open=F.getCleanValue(y.open),c=C.close=F.getCleanValue(y.close),d=C.high=F.getCleanValue(y.high),p=C.low=F.getCleanValue(y.low),null!==(C.volume=F.getCleanValue(y.volume,!0))&&(N.config.drawVolume=!0),m=C.x=F.getCleanValue(y.x),v=C.closeVal=Math.min(s,c),x=C.yVal=Math.max(s,c),g=Math.min(s,c,d,p),f=Math.max(s,c,d,p),C.valuePadding=(0,i.pluckNumber)(y.valuepadding,S.valuePadding),a=(0,i.getFirstColor)((0,i.pluck)(y.bordercolor,c<s?_:I)),o=(0,i.pluckNumber)(y.alpha,100),t=(0,i.getFirstColor)((0,i.pluck)(y.color,c<s?V:B)),C.dashed=(0,i.pluckNumber)(y.dashed,0),C.plotBorderDashStyle=(0,i.pluckNumber)(y.dashed)?(0,i.getDashStyle)(O,R):"none",r={opacity:S.showShadow?o/100:0},C.color=t,C.alpha=o,C.setColor=C.color,C.setAlpha=C.alpha,C.anchorImageUrl=(0,i.pluck)(y.anchorimageurl,L.anchorimageurl,E.anchorimageurl),b=C.borderColor=a,C.borderAlpha=C.plotLineAlpha,C.colorArr=[{color:C.color,alpha:C.alpha},{color:C.borderColor,alpha:C.borderAlpha}],C.showValue=1,C.hoverEffects={},C.y=Math.abs(c-s),C.previousY=v,C.link=(0,i.pluck)(y.link),C.errorValueArr=[],d-x>0&&(C.errorValue=!0,C.errorValueArr.push({errorValue:x-d,errorStartValue:x,errorBarColor:b,errorBarThickness:M,opacity:1})),p-v<0&&(C.errorValue=!0,C.errorValueArr.push({errorValue:v-p,errorStartValue:v,errorBarColor:b,errorBarThickness:M,opacity:1})),C.setValue=x,0!==x&&S.minAbsNonZeroValue>Math.abs(x)&&(S.minAbsNonZeroValue=Math.abs(x),S.minAbsNonZeroData=C),C.dataLabelStyle=this._configureDataLabelStyle(y),null!==g&&(G=Math.max(G,g),H=Math.min(H,g)),null!==f&&(G=Math.max(G,f),H=Math.min(H,f)),null!==m&&(z=Math.max(z,m),W=Math.min(W,m)),m=null!==m?m:n+1,C._x=m,C._y=x,C._b=v,C.high=Math.max(s,c,d,p),C.low=Math.min(s,c,d,p),C.shadow=r,C.toolText=this._parseToolText(n),C.toolTipValue="",C.displayValue=(0,i.parseUnsafeString)((0,i.pluck)(y.displayvalue,y.valuetext,"")));S.yMax=G,S.yMin=H,S.xMax=z,S.xMin=W,this.setState("dirty",!0)},a._parseToolText=function(e){return f.call(this,e)},a.addDatasetSpecificEvtArgs=function(e){var t=e,a=t.config,o=t.trackerConfig.eventArgs;Object.assign(o,{open:a.open,close:a.close,high:a.high,low:a.low,volume:a.volume,alpha:a.alpha,x:a.x,displayValue:a.displayValue,color:a.color,borderColor:a.borderColor,dashed:a.dashed})},a.calculateScrollRange=function(){var e=this.config,t=this.components.data&&this.components.data.length;e.scrollMinVal=e.scrollMinValForLabel=0,e.scrollMaxVal=e.scrollMaxValForLabel=t},a.getPlotIndices=function(e){return g.call(this,e)},a._getHoveredPlot=function(e,t){var a,o,r,i,n;for(a=this.getFromEnv("xAxis").getValue(e),o=(i=this.getPlotIndices(a)).length-1;o>-1&&!(r=(n=i[o])-a>0?this._checkPointerOverPlot(n,e,t)||this._checkPointerOverPlot(n-1,e,t):this._checkPointerOverPlot(n+1,e,t)||this._checkPointerOverPlot(n,e,t));o--);return r},a._firePlotEvent=function(e,t,a){p.call(this,e,t,a)},a.getDataLimits=function(){var e=this.config;return{max:e.yMax,min:e.yMin,xMax:e.xMax,xMin:e.xMin}},a.getName=function(){return"candlestick"},t}(n["default"]);t["default"]=m},1410:function(e,t,a){"use strict";t.__esModule=!0,t["default"]=void 0;t["default"]={"initial.dataset.candlestick":function(){return{"rect.appearing":function(e){return[{initialAttr:{y:e.attr.y+e.attr.height,height:0},slot:"plot"}]},"group.appearing":function(e){return"label-group"===e.attr.name?[{initialAttr:{opacity:0},finalAttr:{opacity:1},slot:"final"}]:[{initialAttr:{opacity:1},finalAttr:{opacity:1},slot:"final"}]},"*":null}},"initial.dataset.volume":function(){return{"rect.appearing":function(e){return[{initialAttr:{y:e.attr.y+e.attr.height,height:0},slot:"plot"}]},"*":null}}}},1411: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=o(a(599)),l=a(1323),s=a(1409),c=a(286),d=o(a(1412)),h=i.preDefStr.colors,u=h.B90000,p=h.FFFFFF,g=i.preDefStr.ROUND,f=i.preDefStr.visibleStr,m=function(e){return function(){this.shadow(e)}};(0,c.addDep)({name:"candlestickbarAnimation",type:"animationRule",extension:d["default"]});var v=function(e){function t(){return e.apply(this,arguments)||this}(0,r["default"])(t,e);var a=t.prototype;return a.trimData=function(e){if(this.components||!this.components.data||!this.components.data.length){var t=this.components,a=t&&t.data,o=a&&a.length,r=e.data,i=Array.isArray(r)&&r.filter((function(e){return e.high||e.open||e.close||e.low})).length||0,n=o-i;n>0&&this.removeData(i,n,!1)}},a.addDatasetSpecificEvtArgs=function(e){var t=e,a=t.config,o=t.trackerConfig.eventArgs;Object.assign(o,{open:a.open,close:a.close,high:a.high,low:a.low,volume:a.volume,alpha:a.alpha,x:a.x,displayValue:a.displayValue,color:a.color,borderColor:a.borderColor,dashed:a.dashed})},a.configureAttributes=function(e){if(!e)return!1;this.trimData(e),this.config.JSONData=e;var t,a,o,r,n,l,s,c,d,h,g,f,m,v,b,x,k=this.config,y=this.getFromEnv("chart").getFromEnv("dataSource"),C=this.config.JSONData,w=C.data||[],A=y.chart,S=w.length,N=this.getFromEnv("number-formatter"),L=this.getFromEnv("color-manager"),D=k.bearBorderColor=(0,i.getFirstColor)((0,i.pluck)(A.bearbordercolor,u)),E=k.bearFillColor=(0,i.getFirstColor)((0,i.pluck)(A.bearfillcolor,u)),T=k.bullBorderColor=(0,i.getFirstColor)((0,i.pluck)(A.bullbordercolor,L.getColor("canvasBorderColor"))),F=k.bullFillColor=(0,i.getFirstColor)((0,i.pluck)(A.bullfillcolor,p)),P=-Infinity,_=+Infinity,V=-Infinity,I=+Infinity;for(this.setState("visible",1===(0,i.pluckNumber)(C.visible,1)),this._conatinerHidden=!!this.getState("visible"),k.defaultPadding={left:.5,right:.5},k.minAbsNonZeroValue=Infinity,k.minAbsNonZeroData={},k.linethickness=(0,i.pluckNumber)(A.plotlinethickness,2),k.toolText=(0,i.getValidValue)((0,i.parseUnsafeString)((0,i.pluck)(C.tooltext,A.plottooltext),!1)),k.name=(0,i.getValidValue)(C.seriesname),k.showTooltip=(0,i.pluckNumber)(A.showtooltip,1),k.showErrorValue=!0,k.errorBarWidthPercent=0,!0,x=(0,i.pluck)(A.maxcolwidth),k.maxColWidth=Math.abs((0,i.pluckNumber)(x,50))||1,k.enableAnimation=(0,i.pluckNumber)(A.animation,A.defaultanimation,1),k.animation=!!k.enableAnimation&&{duration:1e3*(0,i.pluckNumber)(A.animationduration,1)},k.plotLineDashLen=(0,i.pluckNumber)(A.plotlinedashlen,5),k.plotLineDashGap=(0,i.pluckNumber)(A.plotlinedashgap,4),m=this.components.data=this.components.data||(this.components.data=[]),k.valuePadding=(0,i.pluckNumber)(C.valuepadding,A.valuepadding,2),k.showShadow=(0,i.pluckNumber)(A.showshadow,L.getColor("showShadow")),r=0;r<S;r++)v=w[r],(n=m[r])||(n=m[r]={}),!n.config&&(n.config={}),!n.graphics&&(n.graphics={}),b=n.config,v&&!v.vline&&(b.setLink=(0,i.pluck)(v.link),l=b.open=N.getCleanValue(v.open),s=b.close=N.getCleanValue(v.close),c=N.getCleanValue(v.high),d=N.getCleanValue(v.low),b.volume=N.getCleanValue(v.volume,!0),f=b.x=N.getCleanValue(v.x),b.high=Math.max(l,s,c,d),b.low=Math.min(l,s,c,d),b.yVal=Math.max(l,s),h=Math.min(l,s,c,d),g=Math.max(l,s,c,d),b.valuePadding=(0,i.pluckNumber)(v.valuepadding,k.valuePadding),a=(0,i.getFirstColor)((0,i.pluck)(v.bordercolor,s<l?D:T)),o=(0,i.pluckNumber)(v.alpha,100),t=(0,i.getFirstColor)((0,i.pluck)(v.color,s<l?E:F)),b.color=t,b.alpha=o,b.setColor=b.color,b.setAlpha=b.alpha,b.borderColor=a,b.borderAlpha=b.plotLineAlpha,b.colorArr=[{color:b.color,alpha:b.alpha},{color:b.borderColor,alpha:b.borderAlpha}],b.showValue=1,b.hoverEffects={},b.link=(0,i.pluck)(v.link),b.setValue=b.y,0!==b.setValue&&k.minAbsNonZeroValue>Math.abs(b.setValue)&&(k.minAbsNonZeroValue=Math.abs(b.setValue),k.minAbsNonZeroData=b),b.dataLabelStyle=this._configureDataLabelStyle(v),null!==h&&(P=Math.max(P,h),_=Math.min(_,h)),null!==g&&(P=Math.max(P,g),_=Math.min(_,g)),null!==f&&(V=Math.max(V,f),I=Math.min(I,f)),b.dashStyle=(0,i.pluckNumber)(v.dashed)?(0,i.getDashStyle)(k.plotLineDashLen,k.plotLineDashGap):"none",b.shadow={opacity:k.showShadow?o/100:0},f=null!==f?f:r+1,b.toolText=this._parseToolText(r),b.toolTipValue="",b._x=f,b.y=l,b.previousY=s,b.dashed=(0,i.pluckNumber)(k.plotLineDashed,v.dashed,0));k.yMax=P,k.yMin=_,k.xMax=V,k.xMin=I,this.setState("dirty",!0)},a.drawPlots=function(){var e,t,a,o,r,n,l,s,c,d,h,u,p,v,b,x,k=this.getFromEnv("animationManager"),y=this.config,C=this.components.data,w=C.length,A=this.getFromEnv("xAxis"),S=this.getFromEnv("yAxis"),N=y.linethickness>5?y.linethickness/2:2.5,L=this.getContainer("plotGroup");for(k.setAnimation({el:L,attr:{opacity:this.getState("visible")?1:0},component:this}),this.setColumnPosition(),t=0;t<w;t+=1)e=(a=C[t]).config,x=a.graphics,h=null,null===(n=e.y)?h=x.element:(r=e._x,o=e.link,e.setLink=e.link,s=A.getPixel(r),l=e.previousY,d=S.getPixel(l),c=S.getPixel(n),u=S.getPixel(e.high),p=S.getPixel(e.low),v=this.getFromEnv("columnXShift"),a.errorBar=[],a.errorBar.push([{_xPos:s-N,_yPos:u,_height:Math.abs(u-p),_width:2*N},{_xPos:s+v,_yPos:c,_height:2*N,_width:Math.abs(v)},{_xPos:s,_yPos:d,_height:2*N,_width:Math.abs(v)}]),b=["M",s,p,"L",s,u,"M",s,c,"L",s+v,c,"M",s,d,"L",s-v,d],h=x.element,(h=k.setAnimation({el:h||"path",container:L,attr:{path:b,cursor:o?"pointer":"",fill:(0,i.toRaphaelColor)(e.color),stroke:(0,i.toRaphaelColor)(e.borderColor),"stroke-width":y.linethickness,"stroke-dasharray":e.dashStyle,"stroke-linecap":g,"stroke-linejoin":g,"shape-rendering":"crisp",visibility:f},label:"path",component:this,callback:m.call(h,e.shadow)})).data("eventArgs",a.trackerConfig.eventArgs),x.element=h)},a._parseToolText=function(e){return s._parseToolText.call(this,e)},a._firePlotEvent=function(e,t,a){s._firePlotEvent.call(this,e,t,a)},a._checkPointerOverColumn=function(){},a._getHoveredPlot=function(e,t){var a,o,r,i,n;for(a=this.getFromEnv("xAxis").getValue(e),o=(i=s.getPlotIndices.call(this,a)).length-1;o>-1&&!(r=(n=i[o])-a>0?this._checkPointerOverPlot(n,e,t)||this._checkPointerOverPlot(n-1,e,t):this._checkPointerOverPlot(n+1,e,t)||this._checkPointerOverPlot(n,e,t));o--);return r},a._checkPointerOverPlot=function(e,t,a){return l._checkPointerOverPlot.call(this,e,t,a)},a._checkPointerOverErrorBar=function(e,t,a){return l._checkPointerOverErrorBar.call(this,e,t,a)},a.drawLabel=function(){},a.getDataLimits=function(){var e=this.config;return{max:e.yMax,min:e.yMin,xMax:e.xMax,xMin:e.xMin}},a.getName=function(){return"candlestickbar"},t}(n["default"]);t["default"]=v},1412:function(e,t,a){"use strict";t.__esModule=!0,t["default"]=void 0;t["default"]={"initial.dataset.candlestickbar":function(){return{"path.appearing":function(){return[{initialAttr:{opacity:1,"stroke-width":1},finalAttr:{opacity:1}}]},"*":null}}}},1413: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=o(a(616)),l=a(1409),s=i.preDefStr.colors,c=s.B90000,d=s.FFFFFF,h=function(e){function t(){return e.apply(this,arguments)||this}(0,r["default"])(t,e);var a=t.prototype;return a.configureAttributes=function(e){if(!e)return!1;this.trimData(e),this.config.JSONData=e;var t,a,o,r,n,l,s,h,u,p,g,f,m,v,b,x,k,y,C=this.config,w=this.config.JSONData,A=w.data||[],S=this.getFromEnv("chart-attrib"),N=A.length,L=this.getFromEnv("number-formatter"),D=this.getFromEnv("color-manager"),E=C.bearBorderColor=(0,i.getFirstColor)((0,i.pluck)(S.bearbordercolor,c)),T=C.bearFillColor=(0,i.getFirstColor)((0,i.pluck)(S.bearfillcolor,c)),F=C.bullBorderColor=(0,i.getFirstColor)((0,i.pluck)(S.bullbordercolor,D.getColor("canvasBorderColor"))),P=C.bullFillColor=(0,i.getFirstColor)((0,i.pluck)(S.bullfillcolor,d)),_=C.linethickness=C.plotBorderThickness=(0,i.pluckNumber)(S.plotlinethickness,2),V=!!(0,i.pluckNumber)(S.drawanchors,0),I=(0,i.pluckNumber)(S.anchorstartangle,90),B=(0,i.pluckNumber)(S.anchorradius,this.anchorRadius,3),M=(0,i.getFirstColor)((0,i.pluck)(S.anchorbordercolor,F)),O=(0,i.pluckNumber)(S.anchorborderthickness,this.anchorBorderThickness,1),R=(0,i.getFirstColor)((0,i.pluck)(S.anchorbgcolor,D.getColor("anchorBgColor"))),G=(0,i.pluck)(S.anchoralpha,"0"),H=(0,i.pluck)(S.anchorbgalpha,G),z=-Infinity,W=+Infinity,U=-Infinity,j=+Infinity;for(this.setState("visible",1===(0,i.pluckNumber)(w.visible,1)),C.plotLineDashLen=(0,i.pluckNumber)(S.plotlinedashlen,5),C.plotLineDashGap=(0,i.pluckNumber)(S.plotlinedashgap,4),this._conatinerHidden=!!this.getState("visible"),C.defaultPadding={left:.5,right:.5},C.plotType="line",C.parentYAxis=0,C.toolText=(0,i.getValidValue)((0,i.parseUnsafeString)((0,i.pluck)(w.tooltext,S.plottooltext),!1)),C.name=(0,i.getValidValue)(w.seriesname),C.showTooltip=(0,i.pluckNumber)(S.showtooltip,1),C.maxColWidth=Math.abs((0,i.pluckNumber)((0,i.pluck)(S.maxcolwidth),50))||1,C.enableAnimation=(0,i.pluckNumber)(S.animation,S.defaultanimation,1),C.animation=!!C.enableAnimation&&{duration:1e3*(0,i.pluckNumber)(S.animationduration,1)},C.lineAlpha=(0,i.pluck)(S.plotlinealpha,"100"),y=Math.max((0,i.pluckNumber)(S.plotspacepercent,20)%100,0),C.plotSpacePercent=C.groupPadding=y/200,b=this.components.data=this.components.data||(this.components.data=[]),C.valuePadding=(0,i.pluckNumber)(w.valuepadding,S.valuepadding,2),C.plotBorderThickness=_,C.showvalues=1,C.showShadow=(0,i.pluckNumber)(S.showshadow,D.getColor("showShadow")),l=0;l<N;l+=1)x=A[l],(s=b[l])||(s=b[l]={}),!s.config&&(s.config={}),!s.graphics&&(s.graphics={}),k=s.config,x&&!x.vline&&(k.setLink=(0,i.pluck)(x.link),h=k.open=L.getCleanValue(x.open),u=k.close=L.getCleanValue(x.close),p=k.high=L.getCleanValue(x.high),g=k.low=L.getCleanValue(x.low),k.volume=L.getCleanValue(x.volume,!0),v=k.x=L.getCleanValue(x.x),k.closeVal=Math.min(h,u),k.yVal=Math.max(h,u),f=Math.min(h,u,p,g),m=Math.max(h,u,p,g),k.valuePadding=(0,i.pluckNumber)(x.valuepadding,C.valuePadding),a=(0,i.getFirstColor)((0,i.pluck)(x.bordercolor,u<h?E:F)),o=(0,i.pluck)(x.alpha,C.lineAlpha),t=(0,i.getFirstColor)((0,i.pluck)(x.color,u<h?T:P)),r=(0,i.pluckNumber)(x.dashed)?(0,i.getDashStyle)(C.plotLineDashLen,C.plotLineDashGap):"none",k.dashStyle=r,n={opacity:C.showShadow?o/100:0},k.rawDataColor=t,k.color=a,k.alpha=o,k.dashed=(0,i.pluckNumber)(C.plotLineDashed,x.dashed,0),k.setColor=k.color,k.setAlpha=k.alpha,k.anchorImageUrl=(0,i.pluck)(x.anchorimageurl,w.anchorimageurl,S.anchorimageurl),k.borderColor=a,k.borderAlpha=k.plotLineAlpha,k.colorArr=[{color:k.color,alpha:k.alpha},{color:k.borderColor,alpha:k.borderAlpha}],k.dataLabelStyle=this._configureDataLabelStyle(x),k.anchorSides=(0,i.pluckNumber)(x.anchorsides,w.anchorsides,S.anchorsides),k.symbol=(0,i.mapSymbolName)(k.anchorSides).split("_"),k.anchorProps={enabled:V,bgColor:R,symbol:k.symbol,bgAlpha:H*G/100+"",borderColor:M,borderAlpha:G,anchorAlpha:G,borderThickness:O,imageUrl:k.anchorImageUrl,radius:B,imageScale:(0,i.pluckNumber)(x.imagescale,w.imagescale,S.imagescale,100),imagePadding:(0,i.pluckNumber)(x.anchorimagepadding,w.anchorimagepadding,S.anchorimagepadding,1),imageAlpha:(0,i.pluckNumber)(w.anchorimagealpha,S.anchorimagealpha,100),startAngle:I},k.showValue=x.displayvalue?1:0,k.hoverEffects={},k.anchorSides=(0,i.pluckNumber)(x.anchorsides,w.anchorsides,S.anchorsides),k.symbol=(0,i.mapSymbolName)(k.anchorSides).split("_"),k.hoverEffects={},k.y=u,k.link=(0,i.pluck)(x.link),k.toolText=this._parseToolText(l),k.toolTipValue=i.BLANKSTRING,k.setValue=k._y=k.y,k.displayValue=(0,i.parseUnsafeString)((0,i.pluck)(x.displayvalue,x.valuetext,"")),null!==f&&(z=Math.max(z,f),W=Math.min(W,f)),null!==m&&(z=Math.max(z,m),W=Math.min(W,m)),null!==v&&(U=Math.max(U,v),j=Math.min(j,v)),v=v||l+1,k._x=k.x=v,k.high=Math.max(h,u,p,g),k.low=Math.min(h,u,p,g),k.shadow=n);C.yMax=z,C.yMin=W,C.xMax=U,C.xMin=j,this.setState("dirty",!0)},a.__setDefaultConfig=function(){e.prototype.__setDefaultConfig.call(this),this.config.drawLine=1},a.addDatasetSpecificEvtArgs=function(e){var t=e,a=t.config,o=t.config.eventArgs;Object.assign(o,{open:a.open,close:a.close,high:a.high,low:a.low,volume:a.volume,alpha:a.alpha,x:a.x,displayValue:a.displayValue,color:a.rawDataColor,borderColor:a.borderColor,dashed:a.dashed})},a.trimData=function(e){if(this.components||!this.components.data||!this.components.data.length){var t=this.components,a=t&&t.data,o=a&&a.length,r=e.data,i=Array.isArray(r)&&r.filter((function(e){return e.high||e.open||e.close||e.low})).length||0,n=o-i;n>0&&this.removeData(i,n,!1)}},a.calculateScrollRange=function(){var e=this.config,t=this.components.data&&this.components.data.length;e.scrollMinVal=e.scrollMinValForLabel=0,e.scrollMaxVal=e.scrollMaxValForLabel=t},a.getDataLimits=function(){var e=this.config;return{max:e.yMax,min:e.yMin,xMax:e.xMax,xMin:e.xMin}},a.getPlotIndices=function(e){var t,a,o=Math.floor(e),r=Math.ceil(e),i=[],n=this.config.JSONData&&this.config.JSONData.data;for(t=n.length;t--;)(a=n[t]).x>=o&&a.x<=r&&i.push(t);return i},a._parseToolText=function(e){return l._parseToolText.call(this,e)},a._getHoveredPlot=function(e,t){var a,o,r,i,n,l,s=e,c=t,d=this.getFromEnv("xAxis"),h=this.components.data,u=this.config,p=u&&u.radius||0;s+=d.getTranslation();var g=(r=(o=this.getPlotIndices(Math.floor(Math.max(d.getValue(s-p),0))))[0])>(i=(o=this.getPlotIndices(Math.ceil(Math.min(d.getValue(s+p),h.length-1))))[o.length-1])?[i,r]:[r,i];for(r=g[0],l=i=g[1];l>=r&&(!(a=h[l])||!(n=this.isWithinShape(a,l,s,c)));l--);return n},a.getName=function(){return"candlestickline"},t}(n["default"]);t["default"]=h},1414: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(599)),n=a(278),l=a(1409),s=n.preDefStr.colors,c=s.B90000,d=s.FFFFFF,h=function(e){function t(){return e.apply(this,arguments)||this}(0,r["default"])(t,e);var a=t.prototype;return a.configureAttributes=function(e){if(!e)return!1;this.trimData(e),this.config.JSONData=e;var t,a,o,r,i,l,s,h,u,p,g,f,m,v,b,x,k,y=this.config,C=this.config.JSONData,w=C.data||[],A=this.getFromEnv("chart-attrib"),S=this.getFromEnv("chartConfig"),N=w.length,L=this.getFromEnv("color-manager"),D=y.bearBorderColor=(0,n.getFirstColor)((0,n.pluck)(A.bearbordercolor,S.vplotbordercolor,c)),E=y.bearFillColor=(0,n.getFirstColor)((0,n.pluck)(A.bearfillcolor,c)),T=y.bullBorderColor=(0,n.getFirstColor)((0,n.pluck)(A.bullbordercolor,S.vplotbordercolor,L.getColor("canvasBorderColor"))),F=y.bullFillColor=(0,n.getFirstColor)((0,n.pluck)(A.bullfillcolor,d)),P=(0,n.pluckNumber)(S.showplotborder,1)?(0,n.pluckNumber)(A.vplotborderthickness,1):0,_=this.getFromEnv("number-formatter"),V=-Infinity,I=+Infinity,B=-Infinity,M=+Infinity;for(this.setState("visible",1===(0,n.pluckNumber)(C.visible,1)),!0===this.getState("visible")?this._conatinerHidden=!1:this._containerHidden=!0,y.minAbsNonZeroValue=Infinity,y.minAbsNonZeroData={},y.parentYAxis=1,y.volumeToolText=(0,n.getValidValue)((0,n.parseUnsafeString)((0,n.pluck)(C.volumetooltext,A.volumetooltext,A.plottooltext),!1)),y.name=(0,n.getValidValue)(C.seriesname),y.showTooltip=(0,n.pluckNumber)(A.showtooltip,1),y.showShadow=(0,n.pluckNumber)(A.showshadow,L.getColor("showShadow")),y.maxColWidth=Math.abs((0,n.pluckNumber)((0,n.pluck)(A.maxcolwidth),50))||1,k=Math.max((0,n.pluckNumber)(A.plotspacepercent,20)%100,0),y.plotSpacePercent=y.groupPadding=k/200,y.plotborderthickness=P,v=this.components.data=this.components.data||(this.components.data=[]),g=(0,n.extend2)((0,n.extend2)({},A),{sforcedecimals:(0,n.getFirstValue)(A.forcevdecimals,A.forcedecimals),sforceyaxisvaluedecimals:(0,n.getFirstValue)(A.forcevyaxisvaluedecimals,A.forceyaxisvaluedecimals),syaxisvaluedecimals:(0,n.getFirstValue)(A.vyaxisvaluedecimals,A.yaxisvaluedecimals),sformatnumber:(0,n.getFirstValue)(A.vformatnumber,A.formatnumber),sformatnumberscale:(0,n.getFirstValue)(A.vformatnumberscale,A.formatnumberscale,"1"),sdefaultnumberscale:(0,n.getFirstValue)(A.vdefaultnumberscale,A.defaultnumberscale),snumberscaleunit:(0,n.getFirstValue)(A.vnumberscaleunit,A.numberscaleunit),vnumberscalevalue:(0,n.getFirstValue)(A.vnumberscalevalue,A.numberscalevalue),sscalerecursively:(0,n.getFirstValue)(A.vscalerecursively,A.scalerecursively),smaxscalerecursion:(0,n.getFirstValue)(A.vmaxscalerecursion,A.maxscalerecursion),sscaleseparator:(0,n.getFirstValue)(A.vscaleseparator,A.scaleseparator),snumberprefix:(0,n.getFirstValue)(A.vnumberprefix,A.numberprefix),snumbersuffix:(0,n.getFirstValue)(A.vnumbersuffix,A.numbersuffix),sdecimals:(0,n.getFirstValue)(A.vdecimals,A.decimals)}),f=y.plotLineDashLen=(0,n.pluckNumber)(A.plotlinedashlen,5),m=y.plotLineDashGap=(0,n.pluckNumber)(A.plotlinedashgap,4),this.getFromEnv("number-formatter").configure(g),r=0;r<N;r+=1)b=w[r],(i=v[r])||(i=v[r]={}),!i.config&&(i.config={}),!i.graphics&&(i.graphics={}),x=i.config,b&&!b.vline&&(l=x.open=_.getCleanValue(b.open),s=x.close=_.getCleanValue(b.close),h=x.volume=_.getCleanValue(b.volume,!0),x.high=_.getCleanValue(b.high),x.low=_.getCleanValue(b.low),u=x.x=_.getCleanValue(b.x),V=Math.max(V,h),I=Math.min(I,h),B=Math.max(B,u),M=Math.min(M,u),x.borderColor=(0,n.getFirstColor)((0,n.pluck)(b.bordercolor,s<l?D:T)),a=(0,n.pluckNumber)(b.alpha,100),p=(0,n.pluckNumber)(S.vplotborderalpha,b.alpha,100),t=(0,n.getFirstColor)((0,n.pluck)(b.color,s<l?E:F)),o={opacity:y.showShadow?a/100:0},x.color=t,x.alpha=a,x.setLink=b.link,x.borderWidth=P,x.borderAlpha=p,x.y=h,x.colorArr=[{color:x.color,alpha:x.alpha},{color:x.borderColor,alpha:x.borderAlpha}],x.toolText=this._parseToolText(r),x.toolTipValue=n.BLANKSTRING,x.setValue=x._y=x.y,0!==h&&y.minAbsNonZeroValue>Math.abs(h)&&(y.minAbsNonZeroValue=Math.abs(h),y.minAbsNonZeroData=x),x.dashed=(0,n.pluckNumber)(y.plotLineDashed,b.dashed,0),x.plotBorderDashStyle=(0,n.pluckNumber)(b.dashed)?(0,n.getDashStyle)(f,m):"none",u=null!==u?u:r+1,x._x=u,x.shadow=o);y.defaultPadding={left:0,right:0},y.yMax=V,y.yMin=I,y.xMax=B,y.xMin=M,this.setState("dirty",!0)},a._parseToolText=function(e){return l._parseToolText.call(this,e)},a.getPlotIndices=function(e){var t,a,o=Math.floor(e),r=Math.ceil(e),i=[],n=this.config.JSONData&&this.config.JSONData.data;for(t=n.length;t--;)(a=n[t]).x>=o&&a.x<=r&&i.push(t);return i},a._getHoveredPlot=function(e,t){var a,o,r,i,n,l=e,s=t,c=this.getFromEnv("xAxis");for(l+=c.getTranslation(),a=c.getValue(l),o=(i=this.getPlotIndices(a)).length-1;o>-1&&!(r=(n=i[o])-a>0?this._checkPointerOverColumn(n,l,s)||this._checkPointerOverColumn(n-1,l,s):this._checkPointerOverColumn(n+1,l,s)||this._checkPointerOverColumn(n,l,s));o--);return r},a.getDataLimits=function(){var e=this.config;return{max:e.yMax,min:e.yMin,xMax:e.xMax,xMin:e.xMin}},a.addDatasetSpecificEvtArgs=function(e){var t=e,a=t.config,o=t.trackerConfig.eventArgs;Object.assign(o,{open:a.open,close:a.close,high:a.high,low:a.low,volume:a.volume,alpha:a.alpha,x:a.x,displayValue:a.displayValue,color:a.color,borderColor:a.borderColor,dashed:a.dashed})},a.calculateScrollRange=function(){var e=this.config;e.scrollMinVal=0,e.scrollMaxVal=this.components.data&&this.components.data.length,e.scrollMinValForLabel=e.scrollMinVal,e.scrollMaxValForLabel=e.scrollMaxVal},a.drawLabel=function(){},a.getName=function(){return"volume"},t}(i["default"]);t["default"]=h},1415: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(616)),n=a(278),l=a(286),s=o(a(1416));(0,l.addDep)({name:"trendsetAnimation",type:"animationRule",extension:s["default"]});var c=function(e){function t(){return e.apply(this,arguments)||this}(0,r["default"])(t,e);var a=t.prototype;return a.__setDefaultConfig=function(){e.prototype.__setDefaultConfig.call(this),this.config.drawLine=1},a.configureAttributes=function(e){if(!e)return!1;this.trimData(e),this.config.JSONData=e;var t,a,o,r,i,l,s=this.getFromEnv("chart-attrib"),c=this.config.JSONData,d=this.index,h=c.data||c.set||[],u=this.config,p=this.components.data,g=-Infinity,f=+Infinity,m=-Infinity,v=+Infinity,b=this.getFromEnv("number-formatter"),x=(0,n.getFirstColor)((0,n.pluck)(c.color,s.trendsetcolor,"666666")),k=(0,n.pluck)(c.alpha,s.trendsetalpha,"100"),y=(0,n.pluckNumber)(c.thickness,s.trendsetthickness,2),C=Boolean((0,n.pluckNumber)(c.dashed,s.trendsetdashed,0)),w=(0,n.pluckNumber)(c.dashlen,s.trendsetdashlen,4),A=(0,n.pluckNumber)(c.dashgap,s.trendsetdashgap,4);for(u.includeInLegend=(0,n.pluckNumber)(c.includeinlegend,1),u.lineColor=x,u.lineAlpha=k,u.connectNullData=(0,n.pluckNumber)(s.connectnulldata,0),u.linethickness=y,u.lineDashStyle=C?(0,n.getDashStyle)(w,A):"none",u.name=(0,n.getValidValue)(c.name),u.includeInLegend=(0,n.pluckNumber)(c.includeinlegend,1),u.defaultPadding={left:.5,right:.5},p||(p=this.components.data=[]),d=0,l=h.length;d<l;d+=1)(t=h[d])&&!t.vline&&(a=(r=(o=p[d]=p[d]||(p[d]={})).config=o.config||(o.config={}))._y=r.setValue=b.getCleanValue(t.value),r.setColor=u.lineColor,r.setAlpha=u.lineAlpha,i=b.getCleanValue(t.x),i=r._x=r.x=null!==i?i:d+1,g=Math.max(g,a),f=Math.min(f,a),v=Math.min(v,i),m=Math.max(m,i),r.anchorProps=this._parseAnchorProperties(d),r.hoverEffects={},o.graphics||(o.graphics={}));u.max=g,u.min=f,u.xMax=m,u.xMin=v,this.getFromEnv("chartConfig").showLegend&&this._addLegend(),this.setState("visible",!0),this.setState("dirty",!0)},a._addLegend=function(){var e,t=this.config,a=this.getFromEnv("legend");t.includeinlegend?((e=a.getItem(this.config.legendItemId))?e.configure({style:a.config.itemStyle,hiddenStyle:a.config.itemHiddenStyle,datasetVisible:a.config.datasetVisible,hoverStyle:a.config.itemHoverStyle}):(this.config.legendItemId=a.createItem(this),e=a.getItem(this.config.legendItemId)),e.configure({enabled:t.includeInLegend,interactiveLegend:!1,type:this.type,drawLine:!0,label:(0,n.getFirstValue)(this.config.JSONData.name)}),e.setStateCosmetics("default",{symbol:{stroke:(0,n.toRaphaelColor)({color:t.lineColor,alpha:"100"}),rawFillColor:t.lineColor}})):this.config.legendItemId&&a.disposeItem(this.config.legendItemId)},a.getDataLimits=function(){var e=this.config;return{max:e.max,min:e.min,xMax:e.xMax,xMin:e.xMin}},a.getType=function(){return"trendset"},a.drawLabel=function(){},a.getName=function(){return"trendset"},t}(i["default"]);t["default"]=c},1416:function(e,t,a){"use strict";var o=a(273);t.__esModule=!0,t["default"]=void 0;var r={"initial.trendset.trendset":o(a(619))["default"]["initial.dataset.line"]};t["default"]=r},1417:function(e,t,a){"use strict";var o=a(273);t.__esModule=!0,t["default"]=function(e){var t,a,o,n,l,s=e.getChildren("canvas"),c=s[0],d=s[1],h=e.config.showVolumeChart,u={zoomable:!0,pannable:!0},p=c.getChildren("axisRefVisualCartesian")[0],g=function(){return p.asyncDraw()},f=function(){return a.asyncDraw()};t=e._feedAxesRawData(),(0,r.componentFactory)(e,i["default"],"yAxis",h?2:1,t.yAxisConfigure),(0,r.componentFactory)(e,i["default"],"xAxis",1,t.xAxisConfigure),n=e.getChildren("yAxis")[0],o=e.getChildren("yAxis")[1],n.setAxisConfig({relativeAxis:o}),o&&o.setAxisConfig({relativeAxis:n}),l=e.getChildren("xAxis")[0],n.setLinkedItem("canvas",c),l.setLinkedItem("canvas",c),p.setLinkedItem(n.getId(),n),p.setLinkedItem(l.getId(),l),p.addExtEventListener("visiblerangeset",g,n),p.addExtEventListener("visiblerangeset",g,l),c.attachAxis(l,!1,e.zoomX?u:{}),c.attachAxis(n,!0,e.zoomY?u:{}),h&&(a=d.getChildren("axisRefVisualCartesian")[0],d.attachAxis(l,!1,e.zoomX?u:{}),o.setLinkedItem("canvas",d),a.setLinkedItem(o.getId(),o),a.setLinkedItem(l.getId(),l),a.addExtEventListener("visiblerangeset",f,o),a.addExtEventListener("visiblerangeset",f,l),d.attachAxis(o,!0,e.zoomY?u:{}));e._setCategories()};var r=a(278),i=o(a(541))},1418:function(e,t,a){"use strict";var o=a(273);t.__esModule=!0,t["default"]=void 0;var r=o(a(1419))["default"];t["default"]=r},1419:function(e,t,a){"use strict";var o=a(273);t.__esModule=!0,t["default"]=void 0;var r=o(a(296)),i=o(a(292)),n=a(278),l=o(a(542)),s=o(a(695)),c=a(690),d=o(a(1420)),h=o(a(1424)),u=o(a(1426));n.setAttribDefs&&(0,n.setAttribDefs)({whiskerslimitswidthratio:{type:n.attrTypeNum,pAttr:"whiskerslimitswidthratio"},outliersupperrangeratio:{type:n.attrTypeNum,pAttr:"outliersupperrangeratio"},outlierslowerrangeratio:{type:n.attrTypeNum,pAttr:"outlierslowerrangeratio"},showalloutliers:{type:n.attrTypeNum,pAttr:"showalloutliers"},showmean:{type:n.attrTypeNum,pAttr:"showmean"},showsd:{type:n.attrTypeNum,pAttr:"showsd"},showmd:{type:n.attrTypeNum,pAttr:"showmd"},showqd:{type:n.attrTypeNum,pAttr:"showqd"},showminvalues:{type:n.attrTypeNum,pAttr:"showminvalues"},showmaxvalues:{type:n.attrTypeNum,pAttr:"showmaxvalues"},showq1values:{type:n.attrTypeNum,pAttr:"showq1values"},showq3values:{type:n.attrTypeNum,pAttr:"showq3values"},showmedianvalues:{type:n.attrTypeNum,pAttr:"showmedianvalues"}});var p=n.preDefStr.POLYGON,g=n.preDefStr.colors.c000000,f=function(e){(0,i["default"])(a,e),a.getName=function(){return"BoxAndWhisker2D"};var t=a.prototype;function a(){var t;t=e.call(this)||this;var a=(0,r["default"])(t);return a.maxColWidth=+Infinity,a.useErrorAnimation=1,a.avoidCrispError=0,a.plotSpacePercent=20,a.useplotgradientcolor=1,a.fireGroupEvent=!0,a.hasScroll=!0,a.eiMethods.scrollTo=c.scrollTo,t.registerFactory("dataset",h["default"],["vCanvas"]),t}return t.getName=function(){return"BoxAndWhisker2D"},a.includeInputOptions=function(){return["SwipeGesture"]},t.__setDefaultConfig=function(){e.prototype.__setDefaultConfig.call(this);var t=this.config;t.avgScrollPointWidth=40,t.decimals=2,t.defaultDatasetType="boxandwhisker2d",t.showplotborder=1,t.plotborderdashlen=5,t.plotborderdashgap=4,t.plotfillalpha=n.HUNDREDSTRING,t.useroundedges=0,t.plotborderthickness=1,t.showvalues=1,t.valuepadding=2,t.decimals=2,t.showtooltip=1,t.maxcolwidth=50,t.rotatevalues=0,t.use3dlighting=1,t.whiskerslimitswidthratio=40,t.outliersupperrangeratio=0,t.outlierslowerrangeratio=0,t.showalloutliers=0,t.showmean=0,t.showsd=0,t.showmd=0,t.showqd=0,t.showminvalues=1,t.showmaxvalues=1,t.showq1values=0,t.showq3values=0,t.showmedianvalues=1,t.tooltipsepchar=": ",t.anchorborderthickness=1,t.anchorimageurl=void 0,t.anchorimagepadding=1,t.anchorsides=1,t.anchoralpha=void 0,t.anchorbgalpha=n.HUNDREDSTRING,t.anchorimagealpha=n.HUNDREDSTRING,t.anchorimagescale=100,t.anchorstartangle=90,t.anchorshadow=0,t.anchorbgcolor=void 0,t.anchorbordercolor=void 0,t.anchorradius=3,t.linedashlen=5,t.linedashgap=4,t.linedashed=void 0,t.linealpha=n.HUNDREDSTRING,t.linethickness=2,t.drawfullareaborder=1,t.connectnulldata=0},t.configureAttributes=function(t){e.prototype.configureAttributes.call(this,t),c.configurer.call(this,t)},t._setAxisScale=function(){c.setAxisScale.call(this,"boxandwhisker2d")},t._resetViewPortConfig=function(){c.resetViewPortConfig.call(this)},t._getLineJSONdata=function(){var e,t,a,o,r,i,s,c,d,h,u,f,m,v,b,x,k,y,C,w,A,S,N,L,D=this.getChildren("BoxAndWhiskerStatisticalCalc")[0],E=this.getFromEnv("dataSource"),T=E.chart,F=E.dataset,P=F.length,_=[],V=[],I=[],B=function(e){k=Number(e);var t=D.values?(0,l["default"])(D.values):[r.min,r.max];b=t[0],x=t[1],(k<b||k>x)&&v.push({showvalue:r.showoutliervalue,valueposition:r.outliervalueposition,value:k,index:S,anchorbgcolor:r.outliericoncolor,anchorbordercolor:r.outliericonbordercolor,anchorradius:r.outliericonradius,anchoralpha:r.outliericonalpha,anchorbgalpha:r.outliericonalpha,anchorsides:r.outliericonsides,dip:r.outliericonshape})};for(L=0;L<P;L++)for(t=F[L],d=V[L]={},s=I[L]={showMean:{seriesname:"Mean",valueposition:(0,n.pluck)(t.meanvalueposition,T.meanvalueposition,"above"),showvalues:(0,n.pluckNumber)(t.showmeanvalues,T.showmeanvalues,0),anchorbgcolor:(0,n.pluck)(t.meaniconcolor,T.meaniconcolor,g),anchorbordercolor:(0,n.pluck)(t.meaniconbordercolor,T.meaniconbordercolor,g),anchorradius:(0,n.pluckNumber)(t.meaniconradius,T.meaniconradius,5),anchoralpha:(0,n.pluck)(t.alpha,t.meaniconalpha,T.meaniconalpha),linethickness:(0,n.pluck)(t.linethickness,T.linethickness,1),anchorsides:(0,n.pluck)(t.meaniconsides,T.meaniconsides,3),showline:!(0,n.pluckNumber)(t.drawmeanconnector,T.drawmeanconnector),dip:(0,n.pluck)(t.meaniconshape,T.meaniconshape,p),color:(0,n.pluck)(t.meaniconcolor,T.meaniconcolor,g),data:[]},showSD:{seriesname:"SD",valueposition:(0,n.pluck)(t.sdvalueposition,T.sdvalueposition,"above"),showvalues:(0,n.pluckNumber)(t.showsdvalues,T.showsdvalues,0),anchorbgcolor:(0,n.pluck)(t.sdiconcolor,T.sdiconcolor,g),anchorbordercolor:(0,n.pluck)(t.sdiconbordercolor,T.sdiconbordercolor,g),anchorradius:(0,n.pluckNumber)(t.sdiconradius,T.sdiconradius,5),anchoralpha:(0,n.pluck)(t.alpha,t.sdiconalpha,T.sdiconalpha),anchorbgalpha:(0,n.pluck)(t.sdiconalpha,T.sdiconalpha,100),linethickness:(0,n.pluck)(t.linethickness,T.linethickness,1),anchorsides:(0,n.pluck)(t.sdiconsides,T.sdiconsides,3),showline:!(0,n.pluckNumber)(t.drawsdconnector,T.drawsdconnector),dip:(0,n.pluck)(t.sdiconshape,T.sdiconshape,p),color:(0,n.pluck)(t.sdiconcolor,T.sdiconcolor,g),data:[]},showQD:{seriesname:"QD",valueposition:(0,n.pluck)(t.qdvalueposition,T.qdvalueposition,"above"),showvalues:(0,n.pluckNumber)(t.showqdvalues,T.showqdvalues,0),anchorbgcolor:(0,n.pluck)(t.qdiconcolor,T.qdiconcolor,g),anchorbordercolor:(0,n.pluck)(t.qdiconbordercolor,T.qdiconbordercolor,g),anchorradius:(0,n.pluckNumber)(t.qdiconradius,T.qdiconradius,5),anchoralpha:(0,n.pluck)(t.alpha,t.qdiconalpha,T.qdiconalpha),anchorbgalpha:(0,n.pluck)(t.qdiconalpha,T.qdiconalpha,100),linethickness:(0,n.pluck)(t.linethickness,T.linethickness,1),anchorsides:(0,n.pluck)(t.qdiconsides,T.qdiconsides,3),showline:!(0,n.pluckNumber)(t.drawqdconnector,T.drawqdconnector),dip:(0,n.pluck)(t.qdiconshape,T.qdiconshape,p),color:(0,n.pluck)(t.qdiconcolor,T.qdiconcolor,g),data:[]},showMD:{seriesname:"MD",valueposition:(0,n.pluck)(t.mdvalueposition,T.mdvalueposition,"above"),showvalues:(0,n.pluckNumber)(t.showmdvalues,T.showmdvalues,0),anchorbgcolor:(0,n.pluck)(t.mdiconcolor,T.mdiconcolor,g),anchorbordercolor:(0,n.pluck)(t.mdiconbordercolor,T.mdiconbordercolor,g),anchorradius:(0,n.pluckNumber)(t.mdiconradius,T.mdiconradius,5),anchoralpha:(0,n.pluck)(t.alpha,t.mdiconalpha,T.mdiconalpha),anchorbgalpha:(0,n.pluck)(t.mdiconalpha,T.mdiconalpha,100),linethickness:(0,n.pluck)(t.linethickness,T.linethickness,1),anchorsides:(0,n.pluck)(t.mdiconsides,T.mdiconsides,3),showline:!(0,n.pluckNumber)(t.drawmdconnector,T.drawmdconnector),dip:(0,n.pluck)(t.mdiconshape,T.mdiconshape,p),color:(0,n.pluck)(t.mdiconcolor,T.mdiconcolor,g),data:[]},outliers:{seriesname:"Outliers",valueposition:(0,n.pluck)(t.outliervalueposition,T.outliervalueposition,"above"),showvalues:(0,n.pluckNumber)(t.showoutliervalues,T.showoutliervalues,0),anchorbgcolor:(0,n.pluck)(t.outliericoncolor,T.outliericoncolor,g),anchorbordercolor:(0,n.pluck)(t.outliericonbordercolor,T.outliericonbordercolor,g),anchorradius:(0,n.pluckNumber)(t.outliericonradius,T.outliericonradius,5),anchoralpha:(0,n.pluck)(t.alpha,t.outliericonalpha,T.outliericonalpha),includeinlegend:t.seriesname?1:0,anchorbgalpha:(0,n.pluck)(t.outliericonalpha,T.outliericonalpha,100),linethickness:(0,n.pluck)(t.linethickness,T.linethickness,1),anchorsides:(0,n.pluck)(t.outliericonsides,T.outliericonsides,3),showline:!(0,n.pluckNumber)(t.drawoutliersconnector,T.drawoutliersconnector),color:(0,n.pluck)(t.outliericoncolor,T.outliericoncolor,g),dip:(0,n.pluck)(t.outliericonshape,T.outliericonshape,p),data:[]}},e=(0,n.pluckNumber)(t.showmean,T.showmean,0),h=(0,n.pluckNumber)(t.showsd,T.showsd,0),u=(0,n.pluckNumber)(t.showqd,T.showqd,0),f=(0,n.pluckNumber)(t.showmd,T.showmd,0),o=(a=t.data)&&a.length||0,S=0;S<o;S++)(r=a[S]).min&&r.max&&r.q1&&r.q3&&r.median?(y=r.mean,C=r.sd,w=r.md,A=r.qd):(D.setArray(r.value),D.getQuartiles(),y=D.getMean(),C=D.getSD(),A=D.getQD(),w=D.getMD()),m=r.outliers,e=d.showMean=d.showMean||(0,n.pluckNumber)(r.showmean,e),h=d.showSD=d.showSD||(0,n.pluckNumber)(r.showsd,h),u=d.showQD=d.showQD||(0,n.pluckNumber)(r.showqd,u),f=d.showMD=d.showMD||(0,n.pluckNumber)(r.showmd,f),s.showMean.data.push({showvalue:r.showmeanvalue,valueposition:r.meanvalueposition,value:e&&(y||void 0),anchorbgcolor:r.meaniconcolor,anchorbordercolor:r.meaniconbordercolor,anchorradius:r.meaniconradius,anchoralpha:r.meaniconalpha,anchorbgalpha:r.meaniconalpha,anchorsides:r.meaniconsides,dip:r.meaniconshape}),s.showSD.data.push({showvalue:r.showsdvalue,valueposition:r.sdvalueposition,value:h&&(C||void 0),anchorbgcolor:r.sdiconcolor,anchorbordercolor:r.sdiconbordercolor,anchorradius:r.sdiconradius,anchoralpha:r.sdiconalpha,anchorbgalpha:r.sdiconalpha,anchorsides:r.sdiconsides,dip:r.sdiconshape}),s.showQD.data.push({showvalue:r.showqdvalue,valueposition:r.qdvalueposition,value:u&&(A||void 0),anchorbgcolor:r.qdiconcolor,anchorbordercolor:r.qdiconbordercolor,anchorradius:r.qdiconradius,anchoralpha:r.qdiconalpha,anchorbgalpha:r.qdiconalpha,anchorsides:r.qdiconsides,dip:r.qdiconshape}),s.showMD.data.push({showvalue:r.showmdvalue,valueposition:r.mdvalueposition,value:f&&(w||void 0),anchorbgcolor:r.mdiconcolor,anchorbordercolor:r.mdiconbordercolor,anchorradius:r.mdiconradius,anchoralpha:r.mdiconalpha,anchorbgalpha:r.mdiconalpha,anchorsides:r.mdiconsides,dip:r.mdiconshape}),m&&(v=s.outliers.data,m.split(n.COMMA).forEach(B),d.outliers=!0);for(c=V.length,N=0;N<c;N++)for(L in d=V[N],i=_[N]=[],d)d[L]&&i.push(I[N][L]);return _},t.getDSdef=function(){return d["default"]},t.getDSGroupdef=function(){return u["default"]},a}(s["default"]);t["default"]=f},1420: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(599)),n=o(a(1421)),l=a(278),s=a(286),c=o(a(1423)),d=l.preDefStr.colors.c000000,h=l.preDefStr.LABEL,u=l.preDefStr.UNDERSCORE,p=l.preDefStr.POINTER,g=l.preDefStr.BLANK,f=l.preDefStr.ROUND,m=l.preDefStr.GROUPID,v=l.preDefStr.POSITION_START,b=l.preDefStr.POSITION_BOTTOM,x=l.preDefStr.POSITION_TOP,k=l.preDefStr.showHoverEffectStr,y=l.preDefStr.EVENTARGS,C=l.preDefStr.POSITION_END,w="M",A="H",S="V",N=l.preDefStr.pStr,L=l.preDefStr.sStr,D=function(e,t,a){return a.getFromEnv("animationManager").setAnimation({el:"group",attr:e,container:t,component:a,label:"group"})},E=function(){return function(){this.hide()}};(0,s.addDep)({name:"boxandwhisker2dAnimation",type:"animationRule",extension:c["default"]});var T=function(e){function t(){return e.apply(this,arguments)||this}(0,r["default"])(t,e);var a=t.prototype;return a.createContainer=function(){var e,t,a=this.getLinkedParent(),o=this.groupName||this.dsGroup||this.type;!a.getChildContainer(o+"VcanvasGroup")&&(o="default"),e=a.getChildContainer(o+"VcanvasGroup"),t=a.getChildContainer(o+"ShadowVcanvasGroup"),!this.getContainer("shadowGroup")&&this.addContainer("shadowGroup",D({name:"shadow-group"},t,this)),!this.getContainer("commonElemsGroup")&&this.addContainer("lowerBoxGroup",D({name:"lower-box-group"},e,this)),!this.getContainer("commonElemsGroup")&&this.addContainer("upperBoxGroup",D({name:"upper-box-group"},e,this)),!this.getContainer("commonElemsGroup")&&this.addContainer("upperWhiskerGroup",D({name:"upper-whisker-group"},e,this)),!this.getContainer("commonElemsGroup")&&this.addContainer("lowerWhiskerGroup",D({name:"lower-whisker-group"},e,this)),!this.getContainer("commonElemsGroup")&&this.addContainer("medianGroup",D({name:"median-group"},e,this)),!this.getContainer("labelGroup")&&this.addContainer("labelGroup",D({name:"label-group","class":"fusioncharts-datalabels"},a.getChildContainer("vcanvasLabelGroup"),this))},a.configureAttributes=function(e){if(!e)return!1;this.trimData(e),this.config.JSONData=e;var t,a,o,r,i,n,s,c,d,h,u,p,g,f,m,v,b,x,k,y,C,w,A,S,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,re,ie,ne,le,se,ce,de,he,ue,pe,ge,fe,me,ve,be,xe,ke,ye,Ce,we,Ae,Se,Ne,Le,De,Ee,Te,Fe=this.config,Pe=this.config.JSONData,_e=Pe.data,Ve=_e&&_e.length,Ie=this.getFromEnv("chartConfig"),Be=this.getFromEnv("xAxis"),Me=Be.getTicksLen(),Oe=Math.min(Me,Ve),Re=this.getFromEnv("chart-attrib"),Ge=this.getFromEnv("color-manager"),He=Fe.index,ze=Fe.plotColor=Ge.getPlotColor(He),We=(0,l.pluckNumber)(Pe.dashed,Re.plotborderdashed),Ue=(0,l.parseUnsafeString)((0,l.pluck)(Re.tooltipsepchar,": ")),je=this.components.data,Je=this.getFromEnv("number-formatter"),Ke=-Infinity,qe=+Infinity,Ye=this.getFromEnv("BoxAndWhiskerStatisticalCalc");for(this.setState("visible",!(1!==(0,l.pluckNumber)(this.config.JSONData.visible,!Number(this.config.JSONData.initiallyhidden),1))),(0,l.parseConfiguration)(Pe,Fe,Ie,{data:!0}),Fe.defaultPadding={left:.5,right:.5},Fe.seriesname=(0,l.parseUnsafeString)(Pe.seriesname),Fe.includeInLegend=(0,l.pluckNumber)(Pe.includeinlegend,Fe.seriesname?1:0),Fe.legendSymbolColor=Fe.plotColor,s=Fe.plotborderdashlen,c=Fe.plotborderdashgap,g=Fe.plotfillalpha,h=Fe.useroundedges,f=Fe.ratio,d=Fe.plotborderthickness,Fe.rotatevalues&&(Fe.rotatevalues=270),Fe.plotfillAngle=p=(0,l.pluckNumber)(360-Re.plotfillangle,90),Fe.plotColor=ze=(0,l.pluck)(Pe.color,ze),Fe.plotRadius=(0,l.pluckNumber)(Re.useroundedges,h?1:0),Fe.showTextOutline=(0,l.pluckNumber)(Re.textoutline,0),Fe.plotgradientcolor=m=(0,l.getDefinedColor)(Re.plotgradientcolor,Ge.getColor("plotGradientColor")),!Ie.useplotgradientcolor&&(m=l.BLANKSTRING),Fe.plotBorderAlpha=v=Fe.showplotborder?(0,l.pluck)(Re.plotborderalpha,g,l.HUNDREDSTRING):0,Fe.plotBorderColor=b=(0,l.pluck)(Re.plotbordercolor,Ge.getColor("plotBorderColor")),Fe.plotBorderDashStyle=x=We?(0,l.getDashStyle)(s,c,d):"none",Fe.showShadow=h?(0,l.pluckNumber)(Re.showshadow,1):(0,l.pluckNumber)(Re.showshadow,Ge.getColor("showShadow")),Fe.showHoverEffect=u=(0,l.pluckNumber)(Re.plothovereffect,Re.showhovereffect,void 0),Fe.parentYAxis=q=(0,l.pluck)(Pe.parentyaxis&&Pe.parentyaxis.toLowerCase(),N)===L?1:0,Fe.dataSeparator=l.COMMASTRING,Fe.textDirection="1"===Re.hasrtltext?"rtl":l.BLANKSTRING,Fe.showMeanLegend=Fe.showSDLegend=Fe.showMDLegend=Fe.showQDLegend=Fe.showOutliersLegend=0,!this.components.data&&(this.components.data=[]),je=this.components.data,Fe.upperBoxColor=de=(0,l.pluck)(Pe.upperboxcolor,Re.upperboxcolor,Ge.getPlotColor(2*He)),he=Fe.upperBoxAlpha=(0,l.pluck)(Pe.upperboxalpha,Re.upperboxalpha,g,l.HUNDREDSTRING),Fe.lowerBoxColor=ue=(0,l.pluck)(Pe.lowerboxcolor,Re.lowerboxcolor,Ge.getPlotColor(2*He+1)),pe=Fe.lowerBoxAlpha=(0,l.pluck)(Pe.lowerboxalpha,Re.lowerboxalpha,g,l.HUNDREDSTRING),Z=0;Z<Oe;Z++){if(k=_e&&_e[Z],w=(C=je[Z])&&C.config,C||(C=je[Z]={graphics:{}}),C.config||(w=je[Z].config={}),k.min&&k.max&&k.q1&&k.q3&&k.median)ee=($={q1:k.q1,q3:k.q3}).q1,te=$.q3,ae={min:k.min,max:k.max},w.min=oe=ae.min,w.max=re=ae.max,ie=k.median,w.mean=ne=k.mean,w.md=le=k.md,w.sd=se=k.sd,w.qd=ce=k.qd,w.outliers=k.outliers,w.explicitData=!0;else{if(!k.value){w.setValue=void 0,w.explicitData=!1;continue}w.outliers=k.outliers,w.rawValue=k.value,Ye.setArray(k.value),ee=($=Ye.getQuartiles()).q1,te=$.q3,ae=Ye.getMinMax(),w.min=oe=ae.min,w.max=re=ae.max,ie=Ye.getMedian(),w.mean=ne=Ye.getMean(),w.md=le=Ye.getMD(),w.sd=se=Ye.getSD(),w.qd=ce=Ye.getQD(),w.explicitData=!1}ye=(0,l.pluck)(k.upperquartilecolor,Pe.upperquartilecolor,Re.upperquartilecolor,Re.plotbordercolor,Ge.getColor("plotBorderColor")),Ce=(0,l.pluckNumber)(k.upperquartilealpha,Pe.upperquartilealpha,Re.upperquartilealpha,Re.plotborderalpha,100),w.upperQuartile={value:te,color:(0,l.convertColor)(ye,Ce),rawColor:ye,alpha:Ce,borderWidth:(0,l.pluckNumber)(k.upperquartilethickness,Pe.upperquartilethickness,Re.upperquartilethickness,Re.plotborderthickness,h?0:1),displayValue:Je.dataLabels(te)},Le=(0,l.pluck)(k.lowerquartilecolor,Pe.lowerquartilecolor,Re.lowerquartilecolor,Re.plotbordercolor,Ge.getColor("plotBorderColor")),k.lowerquartilealpha,Pe.lowerquartilealpha,Re.lowerquartilealpha,Re.plotborderalpha,De=100,w.lowerQuartile={value:ee,color:(0,l.convertColor)(Le,De),rawColor:Le,alpha:De,borderWidth:(0,l.pluckNumber)(k.lowerquartilethickness,Pe.lowerquartilethickness,Re.lowerquartilethickness,Re.plotborderthickness,h?0:1),displayValue:Je.dataLabels(ee)},w.valuePadding=(0,l.pluckNumber)(k.valuepadding,Fe.valuepadding),we=(0,l.pluck)(k.upperboxbordercolor,Pe.upperboxbordercolor,Re.upperboxbordercolor,Re.plotbordercolor,Ge.getColor("plotBorderColor")),Ae=(0,l.pluckNumber)(k.upperboxborderalpha,Pe.upperboxborderalpha,Re.upperboxborderalpha,Re.plotborderalpha,100),w.upperBoxBorder={color:(0,l.convertColor)(we,Ae),rawColor:we,alpha:Ae,borderWidth:(0,l.pluckNumber)(k.upperboxborderthickness,Pe.upperboxborderthickness,Re.upperboxborderthickness,!h&&Re.plotborderthickness,h?0:1)},Se=(0,l.pluck)(k.lowerboxbordercolor,Pe.lowerboxbordercolor,Re.lowerboxbordercolor,Re.plotbordercolor,Ge.getColor("plotBorderColor")),Ne=(0,l.pluckNumber)(k.lowerboxborderalpha,Pe.lowerboxborderalpha,Re.lowerboxborderalpha,Re.plotborderalpha,100),w.lowerBoxBorder={color:(0,l.convertColor)(Se,Ne),rawColor:Se,alpha:Ne,borderWidth:(0,l.pluckNumber)(k.lowerboxborderthickness,Pe.lowerboxborderthickness,Re.lowerboxborderthickness,!h&&Re.plotborderthickness,h?0:1)},w.median={value:ie,color:(0,l.convertColor)((0,l.pluck)(k.mediancolor,Pe.mediancolor,Re.mediancolor,Re.plotbordercolor,Ge.getColor("plotBorderColor")),(0,l.pluckNumber)(k.medianalpha,Pe.medianalpha,Re.medianalpha,Re.plotborderalpha,100)),borderWidth:(0,l.pluckNumber)(k.medianthickness,Pe.medianthickness,Re.medianthickness,Re.plotborderthickness,1),displayValue:Je.dataLabels(ie)},Fe.upperBoxColor=de=(0,l.pluck)(k.upperboxcolor,Pe.upperboxcolor,Re.upperboxcolor,Ge.getPlotColor(2*He)),he=Fe.upperBoxAlpha=(0,l.pluck)(k.upperboxalpha,Pe.upperboxalpha,Re.upperboxalpha,g,l.HUNDREDSTRING),Fe.lowerBoxColor=ue=(0,l.pluck)(k.lowerboxcolor,Pe.lowerboxcolor,Re.lowerboxcolor,Ge.getPlotColor(2*He+1)),pe=Fe.lowerBoxAlpha=(0,l.pluck)(k.lowerboxalpha,Pe.lowerboxalpha,Re.lowerboxalpha,g,l.HUNDREDSTRING),w.upperBoxColor=de,w.upperBoxAlpha=he,w.upperColorArr=(0,l.getColumnColor)(de,he,void 0,void 0,h,b,v.toString(),0,!1),w.lowerBoxColor=ue,w.lowerBoxAlpha=pe,w.lowerColorArr=(0,l.getColumnColor)(ue,pe,void 0,void 0,h,b,v.toString(),0,!1),ge=(0,l.pluckNumber)(k.showmean,Pe.showmean,Re.showmean)&&(0,l.pluckNumber)(k.showmeanvalue,Pe.showmeanvalues,Re.showmeanvalues),me=(0,l.pluckNumber)(k.showmd,Pe.showmd,Re.showmd)&&(0,l.pluckNumber)(k.showmdvalue,Pe.showmdvalues,Re.showmdvalues),fe=(0,l.pluckNumber)(k.showsd,Pe.showsd,Re.showsd)&&(0,l.pluckNumber)(k.showsdvalue,Pe.showsdvalues,Re.showsdvalues),ve=(0,l.pluckNumber)(k.showqd,Pe.showqd,Re.showqd)&&(0,l.pluckNumber)(k.showqdvalue,Pe.showqdvalues,Re.showqdvalues),be=(0,l.pluckNumber)(k.showoutlier,Pe.showoutlier,Re.showoutlier)&&(0,l.pluckNumber)(k.showoutliervalue,Pe.showoutliervalues,Re.showoutliervalues),Ee=ge||me||fe||ve||be?0:1,w.showMinValues=(0,l.pluckNumber)(k.showminvalue,k.showvalue,Pe.showminvalues,Pe.showvalues,Re.showminvalues,Re.showvalues,Ee),w.showMaxValues=(0,l.pluckNumber)(k.showmaxvalue,k.showvalue,Pe.showmaxvalues,Pe.showvalues,Re.showmaxvalues,Re.showvalues,Ee),w.showMedianValues=(0,l.pluckNumber)(k.showmedianvalue,k.showvalue,Pe.showmedianvalues,Pe.showvalues,Re.showmedianvalues,Re.showvalues,Ee),w.showQ3Values=(0,l.pluckNumber)(k.showq3value,Pe.showq3values,Re.showq3values,0),w.showQ1Values=(0,l.pluckNumber)(k.showq1value,Pe.showq1values,Re.showq1values,0),w.upperWhiskerRawColor=(0,l.getFirstColor)((0,l.pluck)(k.upperwhiskercolor,Pe.upperwhiskercolor,Re.upperwhiskercolor,Re.plotbordercolor,Ge.getColor("plotBorderColor"))),w.upperWhiskerColor=(0,l.convertColor)(w.upperWhiskerRawColor,void 0),w.upperWhiskerThickness=(0,l.pluckNumber)(k.upperwhiskerthickness,Pe.upperwhiskerthickness,Re.upperwhiskerthickness,Re.plotborderthickness,1),w.upperWhiskerShadowOpacity=Fe.showShadow?NaN:0,w.lowerWhiskerAlpha=ke=(0,l.getFirstAlpha)((0,l.pluck)(k.lowerwhiskeralpha,Pe.lowerwhiskeralpha,Re.lowerwhiskeralpha,Re.plotborderalpha,100)),w.lowerWhiskerRawColor=(0,l.getFirstColor)((0,l.pluck)(k.lowerwhiskercolor,Pe.lowerwhiskercolor,Re.lowerwhiskercolor,Re.plotbordercolor,Ge.getColor("plotBorderColor"))),w.lowerWhiskerColor=(0,l.convertColor)(w.lowerWhiskerRawColor,ke),w.lowerWhiskerThickness=(0,l.pluckNumber)(k.lowerwhiskerthickness,Pe.lowerwhiskerthickness,Re.lowerwhiskerthickness,Re.plotborderthickness,1),w.lowerWhiskerShadowOpacity=Fe.showShadow?ke/100:0,w.setValue=y=Je.getCleanValue(k.value),w.setLink=(0,l.pluck)(k.link),w.toolTipValue=J=Je.dataLabels(y,q),w.setDisplayValue=K=(0,l.parseUnsafeString)(k.displayvalue),w.displayValue=(0,l.pluck)(K,J),Y=(0,l.pluckNumber)(k.dashed),X=(0,l.pluckNumber)(k.dashlen,s),Q=c=(0,l.pluckNumber)(k.dashgap,c),Ke=Math.max(Ke,re),qe=Math.min(qe,oe),w.dataLabelStyle=this._configureDataLabelStyle(k),w.plotBorderDashStyle=1===Y?(0,l.getDashStyle)(X,Q,d):0===Y?"none":x,ze=(0,l.pluck)(k.color,Fe.plotColor),g=(0,l.pluck)(k.alpha,Fe.plotfillalpha),y<0&&!h&&(i=p,p=360-p),w.colorArr=(0,l.getColumnColor)(ze+l.COMMA+m,g,f,p,h,b,v.toString(),0,!1),w.label=A=(0,l.getValidValue)((0,l.parseUnsafeString)(Be.getLabel((0,l.pluckNumber)(Z)).label)),0!==u&&(S=(0,l.pluck)(k.upperboxhovercolor,Pe.upperboxhovercolor,Re.upperboxhovercolor,de),D=(0,l.pluck)(k.upperboxhoveralpha,Pe.upperboxhoveralpha,Re.upperboxhoveralpha,he),E=(0,l.pluck)(k.upperboxborderhovercolor,Pe.upperboxborderhovercolor,Re.upperboxborderhovercolor,k.upperboxbordercolor,Pe.upperboxbordercolor,Re.upperboxbordercolor,Re.plotbordercolor,Ge.getColor("plotBorderColor")),T=(0,l.pluck)(k.upperboxborderhoveralpha,Pe.upperboxborderhoveralpha,Re.upperboxborderhoveralpha,k.upperboxborderalpha,Pe.upperboxborderalpha,Re.upperboxborderalpha,Re.plotborderalpha,100),F=h?0:(0,l.pluck)(k.upperboxborderhoverthickness,Pe.upperboxborderhoverthickness,Re.upperboxborderhoverthickness,w.upperBoxBorder.borderWidth),P=(0,l.pluck)(k.lowerboxhovercolor,Pe.lowerboxhovercolor,Re.lowerboxhovercolor,ue),_=(0,l.pluck)(k.lowerboxhoveralpha,Pe.lowerboxhoveralpha,Re.lowerboxhoveralpha,pe),V=(0,l.pluck)(k.lowerboxborderhovercolor,Pe.lowerboxborderhovercolor,Re.lowerboxborderhovercolor,k.lowerboxbordercolor,Pe.lowerboxbordercolor,Re.lowerboxbordercolor,Re.plotbordercolor,Ge.getColor("plotBorderColor")),I=(0,l.pluck)(k.lowerboxborderhoveralpha,Pe.lowerboxborderhoveralpha,Re.lowerboxborderhoveralpha,k.lowerboxborderalpha,Pe.lowerboxborderalpha,Re.lowerboxborderalpha,Re.plotborderalpha,100),B=h?0:(0,l.pluck)(k.lowerboxborderhoverthickness,Pe.lowerboxborderhoverthickness,Re.lowerboxborderhoverthickness,w.lowerBoxBorder.borderWidth),M=(0,l.pluck)(k.upperquartilehovercolor,Pe.upperquartilehovercolor,Re.upperquartilehovercolor,k.upperquartilecolor,Pe.upperquartilecolor,Re.upperquartilecolor,Re.plotbordercolor,Ge.getColor("plotBorderColor")),O=(0,l.pluck)(k.upperquartilehoveralpha,Pe.upperquartilehoveralpha,Re.upperquartilehoveralpha,k.upperquartilealpha,Pe.upperquartilealpha,Re.upperquartilealpha,Re.plotborderalpha,100),R=(0,l.pluck)(k.upperquartilehoverthickness,Pe.upperquartilehoverthickness,Re.upperquartilehoverthickness,w.upperQuartile.borderWidth),G=(0,l.pluck)(k.lowerquartilehovercolor,Pe.lowerquartilehovercolor,Re.lowerquartilehovercolor,k.lowerquartilecolor,Pe.lowerquartilecolor,Re.lowerquartilecolor,Re.plotbordercolor,Ge.getColor("plotBorderColor")),H=(0,l.pluck)(k.lowerquartilehoveralpha,Pe.lowerquartilehoveralpha,Re.lowerquartilehoveralpha,k.lowerquartilealpha,Pe.lowerquartilealpha,Re.lowerquartilealpha,Re.plotborderalpha,100),z=(0,l.pluck)(k.lowerquartilehoverthickness,Pe.lowerquartilehoverthickness,Re.lowerquartilehoverthickness,w.lowerQuartile.borderWidth),W=(0,l.pluck)(k.medianhovercolor,Pe.medianhovercolor,Re.medianhovercolor,k.mediancolor,Pe.mediancolor,Re.mediancolor,Re.plotbordercolor,Ge.getColor("plotBorderColor")),U=(0,l.pluck)(k.medianhoveralpha,Pe.medianhoveralpha,Re.medianhoveralpha,k.medianalpha,Pe.medianalpha,Re.medianalpha,Re.plotborderalpha,100),j=(0,l.pluck)(k.medianhoverthickness,Pe.medianhoverthickness,Re.medianhoverthickness,w.median.borderWidth),1===u&&(de===S&&(S=(0,l.getLightColor)(S,70)),ue===P&&(P=(0,l.getLightColor)(P,70))),w.upperBoxHoverColorArr=(0,l.getColumnColor)(S,D,void 0,void 0,h,b,v.toString(),0,!1),w.lowerBoxHoverColorArr=(0,l.getColumnColor)(P,_,void 0,void 0,h,b,v.toString(),0,!1),w.setUpperBoxRolloutAttr={fill:(0,l.toRaphaelColor)(w.upperColorArr[0])},w.setUpperBoxRolloverAttr={fill:(0,l.toRaphaelColor)(w.upperBoxHoverColorArr[0])},w.setLowerBoxRolloutAttr={fill:(0,l.toRaphaelColor)(w.lowerColorArr[0])},w.setLowerBoxRolloverAttr={fill:(0,l.toRaphaelColor)(w.lowerBoxHoverColorArr[0])},w.setUpperBoxBorderRolloverAttr={stroke:(0,l.convertColor)(E,T),"stroke-width":F},w.setUpperBoxBorderRolloutAttr={stroke:w.upperBoxBorder.color,"stroke-width":w.upperBoxBorder.borderWidth},w.setLowerBoxBorderRolloverAttr={stroke:(0,l.convertColor)(V,I),"stroke-width":B},w.setLowerBoxBorderRolloutAttr={stroke:w.lowerBoxBorder.color,"stroke-width":w.lowerBoxBorder.borderWidth},w.setUpperQuartileRolloverAttr={stroke:(0,l.convertColor)(M,O),"stroke-width":R},w.setUpperQuartileRolloutAttr={stroke:w.upperQuartile.color,"stroke-width":w.upperQuartile.borderWidth},w.setLowerQuartileRolloverAttr={stroke:(0,l.convertColor)(G,H),"stroke-width":z},w.setLowerQuartileRolloutAttr={stroke:w.lowerQuartile.color,"stroke-width":w.lowerQuartile.borderWidth},w.setMedianRolloverAttr={stroke:(0,l.convertColor)(W,U),"stroke-width":j},w.setMedianRolloutAttr={stroke:w.median.color,"stroke-width":w.median.borderWidth}),t=w.toolTipValue,o=(0,l.getValidValue)((0,l.parseUnsafeString)((0,l.pluck)(k.tooltext,Pe.plottooltext,Re.plottooltext),!1)),Fe.showtooltip?null===t?n=!1:void 0!==o?(r=[1,2,3,4,5,6,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80],a={maxValue:re,maxDataValue:Je.dataLabels(re),minValue:oe,minDataValue:Je.dataLabels(oe),Q1:Je.dataLabels(ee),unformattedQ1:ee,Q3:Je.dataLabels(te),unformattedQ3:te,median:Je.dataLabels(ie),unformattedMedian:ie,SD:Je.dataLabels(se),unformattedsd:se,QD:Je.dataLabels(ce),unformattedQD:ce,MD:Je.dataLabels(le),unformattedMD:le,mean:Je.dataLabels(ne),unformattedMean:ne,label:A,yaxisName:Ie.yaxisname,xaxisName:Ie.xaxisname,formattedValue:t,value:A},n=(0,l.parseTooltext)(o,r,a,k,Re,Pe)):n="<b>Maximum"+Ue+"</b>"+Je.dataLabels(re)+"<br /><b>Q3"+Ue+"</b>"+Je.dataLabels(te)+"<br /><b>Median"+Ue+"</b>"+Je.dataLabels(ie)+"<br /><b>Q1"+Ue+"</b>"+Je.dataLabels(ee)+"<br /><b>Minimum"+Ue+"</b>"+Je.dataLabels(oe):n=!1,w.toolText=n,w.setTooltext=n,i&&(p=i)}Fe.showalloutliers?(Te=this._getOutLiersLimit(),Ke=Math.max(Ke,Te.max),qe=Math.min(qe,Te.min)):(xe=Ke-qe,Ke+=Fe.outliersupperrangeratio*xe,qe-=Fe.outlierslowerrangeratio*xe),Fe.maxValue=Ke,Fe.minValue=qe,this.setState("dirty",!0),this._createSubDS(),Ie.showLegend&&this._addLegend()},a._createSubDS=function(){var e=this.config.index,t=this.getFromEnv("lineJSON")[e],a=t.length;(0,l.datasetFactory)(this,n["default"],"dataset",a,t,function(e,t){for(var a=[],o=t;o;)a.unshift(e+Number("."+o)),o--;return a}(e,a)),a||this.iterateComponents((function(e){"line"===e.getName()&&e.remove()}))},a._getOutLiersLimit=function(){var e,t,a,o,r,i=this.getFromEnv("lineJSON")[this.config.index],n=i.length,l=-Infinity,s=+Infinity;for(r=0;r<n;r++)if("Outliers"===(e=i[r]).seriesname){for(t=(o=e.data).length,a=0;a<t;a++)l=Math.max(o[a].value,l),s=Math.min(o[a].value,s);return{max:l,min:s}}return{max:l,min:s}},a.parsePlotAttributes=function(e,t){var a,o,r,i,n,s,c,d,h,u,m,k,y,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,re,ie,ne,le,se,ce,de,he=this.config,ue=t,pe=this.getState("visible"),ge=this.getFromEnv("chartConfig"),fe=this.getFromEnv("xAxis"),me=this.getFromEnv("yAxis"),ve=this.components.data,be=ge.dataLabelStyle,xe=he.rotatevalues,ke=this.getFromEnv("number-formatter"),ye=xe?l.POSITION_LEFT:l.POSITION_MIDDLE,Ce=this.getFromEnv("smartLabel"),we=+Infinity;o=this.getFromEnv("columnWidth"),i=(n=e&&e.config)&&n.setValue,(n.explicitData||void 0!==e&&null!=i)&&(r=n.setLink,e.graphics||(ve[ue].graphics={}),e.graphics.label||(ve[ue].graphics.label=[]),a=fe.getPixel(ue)+this.getFromEnv("columnXShift"),d=((c=(s=n.upperQuartile||{})&&s.value)||0===c)&&me.getPixel(c),m=((u=(h=n.lowerQuartile||{})&&h.value)||0===u)&&me.getPixel(u),L=(N=((y=(k=n.median)&&k.value)||0===y)&&me.getPixel(y))-d,D=m-N,E=n.upperBoxBorder||{},T=n.lowerBoxBorder||{},I=n.valuePadding,n.eventArgs={index:ue,link:r,maximum:n.max,minimum:n.min,median:y,q3:s.value,q1:h.value,maxDisplayValue:n.showMaxValues?ke.dataLabels(n.max):l.BLANKSTRING,minDisplayValue:n.showMinValues?ke.dataLabels(n.min):l.BLANKSTRING,medianDisplayValue:n.showMedianValues?ke.dataLabels(y):l.BLANKSTRING,q1DisplayValue:n.showQ1Values?ke.dataLabels(h.value):l.BLANKSTRING,q3DisplayValue:n.showQ3Values?ke.dataLabels(s.value):l.BLANKSTRING,categoryLabel:n.label,toolText:n.toolText,datasetIndex:he.index,datasetName:this.config.JSONData.seriesname,visible:pe,value:n.rawValue,showValue:n.showValue,upperBoxColor:n.upperBoxColor,upperBoxAlpha:n.upperBoxAlpha,lowerBoxColor:n.lowerBoxColor,lowerBoxAlpha:n.lowerBoxAlpha,upperQuartileColor:s.rawColor,upperQuartileThickness:s.borderWidth,upperQuartileAlpha:s.alpha,lowerQuartileColor:h.rawColor,lowerQuartileThickness:h.borderWidth,lowerQuartileAlpha:h.alpha,upperBoxBorderColor:E.rawColor,upperBoxBorderThickness:E.borderWidth,upperBoxBorderAlpha:E.alpha,lowerBoxBorderColor:T.rawColor,lowerBoxBorderThickness:T.borderWidth,lowerBoxBorderAlpha:T.alpha,upperWhiskerColor:n.upperWhiskerRawColor,upperWhiskerThickness:n.upperWhiskerThickness,lowerWhiskerThickness:n.lowerWhiskerThickness,lowerWhiskerColor:n.lowerWhiskerRawColor,upperWhiskerAlpha:n.upperWhiskerAlpha,lowerWhiskerAlpha:n.lowerWhiskerAlpha,outliers:n.outliers},F=Math.round(a)+E.borderWidth%2*.5,P=Math.round(a+o)+E.borderWidth%2*.5,_=Math.round(d)+s.borderWidth%2*.5,o=P-F,V={upperBox:{fill:(0,l.toRaphaelColor)(n.upperColorArr[0]),"stroke-width":0,"stroke-dasharray":"none",cursor:r?p:l.BLANKSTRING,visibility:pe},lowerBox:{fill:(0,l.toRaphaelColor)(n.lowerColorArr[0]),"stroke-width":0,"stroke-dasharray":"none",cursor:r?p:g,visibility:pe},upperBoxBorder:{stroke:E.color,"stroke-width":E.borderWidth,"stroke-linecap":f,dashstyle:E.dashStyle,visibility:pe},lowerBoxBorder:{stroke:T.color,"stroke-width":T.borderWidth,dashstyle:T.dashStyle,"stroke-linecap":f,visibility:pe},upperQuartile:{stroke:(0,l.toRaphaelColor)(s.color),"stroke-width":s.borderWidth,"stroke-dasharray":s.dashSyle,"stroke-linecap":f,cursor:r?p:g,visibility:pe},lowerQuartile:{stroke:(0,l.toRaphaelColor)(h.color),"stroke-width":h.borderWidth,"stroke-dasharray":h.dashSyle,cursor:r?p:l.BLANKSTRING,"stroke-linecap":f,visibility:pe},median:{stroke:(0,l.toRaphaelColor)(k.color),"stroke-width":k.borderWidth,"stroke-dasharray":k.dashSyle,cursor:r?p:l.BLANKSTRING,"stroke-linecap":f,visibility:pe}},le=_,$=Object.assign({x:F,y:_,width:Math.max(o,0),height:Math.max(Math.min(we,L),0),r:0},V.upperBox),Z=Object.assign({path:[w,F,_,S,_+L,w,P,_,S,_+L]},V.upperBoxBorder),ee=Object.assign({path:[w,F,_,A,F+o]},V.upperQuartile),B=_,M=o*(he.whiskerslimitswidthratio/100)/2,G=O=me.getPixel(n.max),R=F,G=Math.round(O)+n.upperWhiskerThickness%2/2,F=Math.round(F+o/2)+n.upperWhiskerThickness%2/2,te={path:H=[w,F,B,S,Math.min(G,le),w,F-M,Math.min(G,le),A,F+M],"stroke-width":n.upperWhiskerThickness,cursor:r?p:l.BLANKSTRING,"stroke-linecap":f,stroke:n.upperWhiskerColor,visibility:pe},J=n.dataLabelStyle,Ce.useEllipsesOnOverflow(this.getFromEnv("chartConfig").useEllipsesWhenOverflow),Ce.setStyle(be),z=Ce.getOriSize(ke.dataLabels(n.max)),W=xe?z.width:z.height,(j=O-.5*n.upperWhiskerThickness-I-W*(xe?.5:1))-(xe?W/2:0)<ge.canvasTop&&(j=ge.canvasTop+(xe?W/2:0)),ae={text:ke.dataLabels(n.max),x:R+o/2,title:s.originalText||l.BLANKSTRING,y:j,"text-anchor":xe?l.POSITION_MIDDLE:ye,"vertical-align":xe?l.POSITION_MIDDLE:x,visibility:l.visibleStr,direction:he.textDirection,fill:J.color,transform:(0,l.getSuggestiveRotation)(xe,R+o/2,j),"text-bound":[J.backgroundColor,J.borderColor,be.borderThickness,be.borderPadding,be.borderRadius,be.borderDash]},F=Math.round(a)+T.borderWidth%2*.5,P=Math.round(a+o)+T.borderWidth%2*.5,_=Math.round(N+D)+h.borderWidth%2*.5,de=(se=N)+(ce=Math.max(Math.min(we,_-N),0)),q=Object.assign({x:F,y:se,width:Math.max(o,0),height:ce,r:0},V.lowerBox),K=Object.assign({path:[w,F,N,S,N+D,w,P,N,S,N+D]},V.lowerBoxBorder),_=Math.round(N+D)+h.borderWidth%2*.5,Y=Object.assign({path:[w,F,_,A,F+o]},V.lowerQuartile),B=_,M=o*(he.whiskerslimitswidthratio/100)/2,G=O=me.getPixel(n.min),R=F,G=Math.round(O)+n.lowerWhiskerThickness%2/2,R=Math.round(R+o/2)+n.lowerWhiskerThickness%2/2,H=[w,R,B,S,Math.max(G,de),w,R-M,Math.max(G,de),A,R+M],Ce.setStyle(be),z=Ce.getOriSize(ke.dataLabels(n.min)),W=xe?z.width:z.height,(U=O+.5*n.lowerWhiskerThickness+I)+W>ge.canvasBottom&&(U=ge.canvasBottom-W),oe={text:ke.dataLabels(n.min),x:R,title:s.originalText||l.BLANKSTRING,y:U,"text-anchor":xe?C:ye,"vertical-align":xe?l.POSITION_MIDDLE:x,visibility:l.visibleStr,direction:he.textDirection,fill:J.color,transform:(0,l.getSuggestiveRotation)(xe,R,U),"text-bound":[J.backgroundColor,J.borderColor,be.borderThickness,be.borderPadding,be.borderRadius,be.borderDash]},X={path:H,"stroke-width":n.lowerWhiskerThickness,cursor:r?p:l.BLANKSTRING,"stroke-linecap":f,stroke:n.lowerWhiskerColor,visibility:pe},_=Math.round(N)+k.borderWidth%2*.5,Q=Object.assign({path:[w,F,_,A,F+o]},V.median),ye=xe?l.POSITION_LEFT:l.POSITION_MIDDLE,re={text:s.displayValue,x:a+o/2,title:s.originalText||l.BLANKSTRING,y:d-I,"text-anchor":xe?v:ye,"vertical-align":xe?l.POSITION_MIDDLE:b,visibility:l.visibleStr,direction:he.textDirection,fill:J.color,transform:(0,l.getSuggestiveRotation)(xe,a+o/2,d-I),"text-bound":[J.backgroundColor,J.borderColor,be.borderThickness,be.borderPadding,be.borderRadius,be.borderDash]},ne={text:k.displayValue,x:F+o/2,y:N-I,title:k.originalText||l.BLANKSTRING,"text-anchor":xe?v:ye,"vertical-align":xe?l.POSITION_MIDDLE:b,visibility:l.visibleStr,direction:he.textDirection,fill:J.color,transform:(0,l.getSuggestiveRotation)(xe,F+o/2,N-I),"text-bound":[J.backgroundColor,J.borderColor,be.borderThickness,be.borderPadding,be.borderRadius,be.borderDash]},ie={text:h.displayValue,x:a+o/2,y:m+I,title:h.originalText||l.BLANKSTRING,"text-anchor":xe?v:ye,"vertical-align":xe?l.POSITION_MIDDLE:x,visibility:l.visibleStr,direction:he.textDirection,fill:J.color,transform:(0,l.getSuggestiveRotation)(xe,a+o/2,m+I),"text-bound":[J.backgroundColor,J.borderColor,be.borderThickness,be.borderPadding,be.borderRadius,be.borderDash]},n.props={lowerBoxBorderEle:{attr:K},lowerBoxElem:{attr:q},lowerQuartileEle:{attr:Y},lowerWhiskerEle:{attr:X},midLineElem:{attr:Q},upperBoxElem:{attr:$},upperBoxBorderEle:{attr:Z},upperQuartileEle:{attr:ee},upperWhiskerEle:{attr:te},upperQuartileMaxLabel:{attr:ae},upperQuartileMinLabel:{attr:oe},medianLabel:{attr:ne},upperQuartileLabel:{attr:re},lowerQuartileLabel:{attr:ie}})},a.allocatePosition=function(){var e,t,a,o=this.config.JSONData.data,r=o&&o.length,i=this.getFromEnv("xAxis").getTicksLen(),n=this.components.data;for(a=Math.min(i,r),this.setColumnPosition(),t=0;t<a;t++)e=n[t],this.parsePlotAttributes(e,t)},a.drawPlots=function(){var e,t,a,o,r,i,n,s,c,d,p,f,v,b,x,C,w,A,S,N,L,D,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=this,oe=ae.config,re=ae.config.JSONData.data,ie=re&&re.length,ne=ae.getFromEnv("chart"),le=ae.getFromEnv("xAxis").getTicksLen(),se=ae.getFromEnv("toolTipController"),ce=ae.components.data,de=oe.showShadow,he=ae.getContainer("upperBoxGroup").toBack(),ue=ae.getContainer("lowerBoxGroup"),pe=ae.getContainer("medianGroup"),ge=ae.getContainer("upperWhiskerGroup"),fe=ae.getContainer("lowerWhiskerGroup"),me=ae.getContainer("labelGroup"),ve=ae.getContainer("shadowGroup"),be=(ae.components.removeDataArr||[]).length,xe=oe.showHoverEffect,ke=ae.getFromEnv("animationManager"),ye=function(e){return function(t){ne.plotEventHandler(e,t)}},Ce=function(e,t){return function(a){var o;if(0!==t.data(k))for(o in e)o!==h&&(ke.setAnimation({el:e[o],doNotRemove:!0,attr:t.data("setRolloverAttr")[o],component:ae}),ne.plotEventHandler(t,a,"DataPlotRollOver"))}},we=function(e,t){return function(a){var o;if(0!==t.data(k))for(o in e)o!==h&&(ke.setAnimation({el:e[o],doNotRemove:!0,attr:t.data("setRolloutAttr")[o],component:ae}),ne.plotEventHandler(t,a,"DataPlotRollOut"))}};for(s=function(e){return function(){this.show(),this.shadow(e)}},ae.setColumnPosition(),ae.getState("visible")?(he.show(),ue.show(),ge.show(),fe.show(),pe.show(),ve.show(),me.show(),ae._conatinerHidden=!1):(me.hide(),ge.hide(),he.hide(),fe.hide(),ue.hide(),pe.hide(),ve.hide()),e=Math.min(le,ie),t=0;t<e;t++)if(r=(i=(o=ce[t])&&o.config)&&i.setValue,z=!1,W=!1,U=!1,j=!1,J=!1,K=!1,q=!1,Y=!1,X=!1,i.explicitData||void 0!==o&&null!=r)V=o.graphics,o.graphics||(ce[t].graphics={}),V.label||(ce[t].graphics.label=[]),n=i.upperQuartile||{},c=i.lowerQuartile||{},d=i.median,a=i.toolText,I=oe.index+u+t,f=o.graphics.upperBoxElem,p=ke.setAnimation({el:f||"rect",attr:i.props.upperBoxElem.attr,label:"upperBox",container:he,component:ae}),f||(o.graphics.upperBoxElem=p,z=!0),p.shadow({opacity:de?oe.upperBoxAlpha/100:0},ve),b=o.graphics.upperBoxBorderEle,v=ke.setAnimation({el:b||"path",attr:i.props.upperBoxBorderEle.attr,container:he,label:"path",component:ae}),b||(o.graphics.upperBoxBorderEle=v,U=!0),C=o.graphics.upperQuartileEle,x=ke.setAnimation({el:C||"path",attr:i.props.upperQuartileEle.attr,label:"path",container:he,component:ae}),C||(o.graphics.upperQuartileEle=x,J=!0),M=o.graphics.upperWhiskerEle,B=ke.setAnimation({el:M||"path",attr:i.props.upperWhiskerEle.attr,label:"path",container:ge,component:ae}),s({opacity:i.upperWhiskerShadowOpacity}),M||(o.graphics.upperWhiskerEle=B,Y=!0),ae.getFromEnv("smartLabel").useEllipsesOnOverflow(ne.config.useEllipsesWhenOverflow),i.showMaxValues?((_=V.label[3])&&_.show(),P=ke.setAnimation({el:_||"text",attr:i.props.upperQuartileMaxLabel.attr,component:ae,label:"text",container:me}),_||(V.label[3]=P),V.label[3].data(m,I)):V.label[3]&&ke.setAnimation({el:V.label[3],component:ae,attr:{"text-bound":[]},callback:E.call(V.label[3])}),A=o.graphics.lowerBoxElem,w=ke.setAnimation({el:A||"rect",attr:i.props.lowerBoxElem.attr,label:"lowerBox",container:ue,component:ae}),A||(o.graphics.lowerBoxElem=w,W=!0),w.shadow({opacity:de?oe.lowerBoxAlpha/100:0},ve),N=o.graphics.lowerBoxBorderEle,S=ke.setAnimation({el:N||"path",attr:i.props.lowerBoxBorderEle.attr,component:ae,label:"path",container:ue}),N||(o.graphics.lowerBoxBorderEle=S,j=!0),D=o.graphics.lowerQuartileEle,L=ke.setAnimation({el:D||"path",attr:i.props.lowerQuartileEle.attr,component:ae,label:"path",container:ue}),D||(o.graphics.lowerQuartileEle=L,K=!0),O=o.graphics.lowerWhiskerEle,i.showMinValues?((_=V.label[4])&&_.show(),P=ke.setAnimation({el:_||"text",attr:i.props.upperQuartileMinLabel.attr,label:"text",container:me,component:ae}),_||(V.label[4]=P),V.label[4].data(m,I)):V.label[4]&&ke.setAnimation({el:V.label[4],component:ae,attr:{"text-bound":[]},callback:E.call(V.label[4])}),R=o.graphics.lowerWhiskerEle,O=ke.setAnimation({el:R||"path",attr:i.props.lowerWhiskerEle.attr,label:"path",container:fe,component:ae}),s({opacity:i.lowerWhiskerShadowOpacity}),R||(o.graphics.lowerWhiskerEle=O,X=!0),F=o.graphics.midLineElem,T=ke.setAnimation({el:F||"path",component:ae,label:"midline",container:pe,attr:i.props.midLineElem.attr}),F||(o.graphics.midLineElem=T,q=!0),Q={upperBoxElem:i.setUpperBoxRolloverAttr,lowerBoxElem:i.setLowerBoxRolloverAttr,upperBoxBorderEle:i.setUpperBoxBorderRolloverAttr,lowerBoxBorderEle:i.setLowerBoxBorderRolloverAttr,upperQuartileEle:i.setUpperQuartileRolloverAttr,lowerQuartileEle:i.setLowerQuartileRolloverAttr,midLineElem:i.setMedianRolloverAttr},Z={upperBoxElem:i.setUpperBoxRolloutAttr,lowerBoxElem:i.setLowerBoxRolloutAttr,upperBoxBorderEle:i.setUpperBoxBorderRolloutAttr,lowerBoxBorderEle:i.setLowerBoxBorderRolloutAttr,upperQuartileEle:i.setUpperQuartileRolloutAttr,lowerQuartileEle:i.setLowerQuartileRolloutAttr,midLineElem:i.setMedianRolloutAttr},p.data(m,I).data(y,i.eventArgs).data(k,xe).data("setRolloverAttr",Q).data("setRolloutAttr",Z),z&&(p.on("fc-click",ye(p)),p.on("fc-mouseover",Ce(o.graphics,p)),p.on("fc-mouseout",we(o.graphics,p))),w.data(m,I).data(y,i.eventArgs).data(k,xe).data("setRolloverAttr",Q).data("setRolloutAttr",Z),W&&(w.on("fc-click",ye(w)),w.on("fc-mouseover",Ce(o.graphics,w)),w.on("fc-mouseout",we(o.graphics,w))),v.data(m,I).data(y,i.eventArgs).data(k,xe).data("setRolloverAttr",Q).data("setRolloutAttr",Z),U&&(v.on("fc-click",ye(v)),v.on("fc-mouseover",Ce(o.graphics,v)),v.on("fc-mouseout",we(o.graphics,v))),S.data(m,I).data(y,i.eventArgs).data(k,xe).data("setRolloverAttr",Q).data("setRolloutAttr",Z),j&&(S.on("fc-click",ye(S)),S.on("fc-mouseover",Ce(o.graphics,S)),S.on("fc-mouseout",we(o.graphics,S))),x.data(m,I).data(y,i.eventArgs).data(k,xe).data("setRolloverAttr",Q).data("setRolloutAttr",Z),J&&(x.on("fc-click",ye(x)),x.on("fc-mouseover",Ce(o.graphics,x)),x.on("fc-mouseout",we(o.graphics,x))),L.data(m,I).data(y,i.eventArgs).data(k,xe).data("setRolloverAttr",Q).data("setRolloutAttr",Z),K&&(L.on("fc-click",ye(L)),L.on("fc-mouseover",Ce(o.graphics,L)),L.on("fc-mouseout",we(o.graphics,L))),T.data(m,I).data(y,i.eventArgs).data(k,xe).data("setRolloverAttr",Q).data("setRolloutAttr",Z),q&&(T.on("fc-click",ye(T)),T.on("fc-mouseover",Ce(o.graphics,T)),T.on("fc-mouseout",we(o.graphics,T))),B.data(m,I).data(y,i.eventArgs).data(k,xe).data("setRolloverAttr",Q).data("setRolloutAttr",Z),Y&&(B.on("fc-click",ye(B)),B.on("fc-mouseover",Ce(o.graphics,B)),B.on("fc-mouseout",we(o.graphics,B))),O.data(m,I).data(y,i.eventArgs).data(k,xe).data("setRolloverAttr",Q).data("setRolloutAttr",Z),X&&(O.on("fc-click",ye(O)),O.on("fc-mouseover",Ce(o.graphics,O)),O.on("fc-mouseout",we(o.graphics,O))),(0,l.defined)(n.displayValue)&&n.displayValue!==g&&i.showQ3Values?((_=V.label[0])&&_.show(),P=ke.setAnimation({el:_||"text",attr:i.props.upperQuartileLabel.attr,component:ae,label:"text",container:me}),_||(V.label[0]=P),V.label[0].data(m,I)):V.label[0]&&ke.setAnimation({el:V.label[0],component:ae,attr:{"text-bound":[]},callback:E.call(V.label[0])}),(0,l.defined)(d.displayValue)&&d.displayValue!==g&&i.showMedianValues?((_=V.label[1])&&_.show(),(P=ke.setAnimation({el:_||"text",attr:i.props.medianLabel.attr,component:ae,label:"text",container:me})).outlineText(oe.showTextOutline,i.props.medianLabel.attr.fill),_||(V.label[1]=P),V.label[1].data(m,I)):V.label[1]&&ke.setAnimation({el:V.label[1],component:ae,attr:{"text-bound":[]},callback:E.call(V.label[1])}),(0,l.defined)(c.displayValue)&&c.displayValue!==g&&i.showQ1Values?(_=V.label[2],P=ke.setAnimation({el:_||"text",component:ae,attr:i.props.lowerQuartileLabel.attr,container:me}),_||(V.label[2]=P,P.show()),V.label[2].data(m,I)):V.label[2]&&ke.setAnimation({el:V.label[2],component:ae,attr:{"text-bound":[]},callback:E.call(V.label[2])}),oe.showtooltip?(se.enableToolTip(p,a),se.enableToolTip(w,a),se.enableToolTip(v,a),se.enableToolTip(S,a),se.enableToolTip(x,a),se.enableToolTip(L,a),se.enableToolTip(T,a),se.enableToolTip(B,a),se.enableToolTip(O,a)):(se.enableToolTip(p,!1),se.enableToolTip(w,!1),se.enableToolTip(v,!1),se.enableToolTip(S,!1),se.enableToolTip(x,!1),se.enableToolTip(L,!1),se.enableToolTip(T,!1),se.enableToolTip(B,!1),se.enableToolTip(O,!1));else for(G in H=o.graphics)if(H[G]instanceof Array)for($=0,te=(ee=H[G]).length;$<te;$++)ee[$]&&ee[$].hide();else H[G].hide();!1!==ae.getState("visible")||!1!==ae._conatinerHidden&&void 0!==ae._conatinerHidden||(he.hide(),ue.hide(),ge.hide(),fe.hide(),pe.hide(),ve.hide(),me&&me.hide(),ae._conatinerHidden=!0),be&&ae.removePlots()},a.removePlots=function(){var e,t,a,o,r,i,n=this.components.removeDataArr,l=this.getFromEnv("animationManager"),s=n.length;for(o=0;o<s;o++)if(e=n[0],n.splice(0,1),e&&e.graphics)for(t in a=e.graphics)if(t!==h)a[t].shadow({opacity:0}),a[t].hide();else for(r=a[t].length,i=0;i<r;i++)a[t][i]&&(a[t][i].shadow({opacity:0}),l.setAnimation({el:a[t][i],component:this,attr:{"text-bound":[]},callback:E.call(a[t][i])}))},a.removeData=function(e,t,a){var o=e,r=t,i=this.components,n=i.data,l=i.removeDataArr||(i.removeDataArr=[]);(o=o||0)+(r=r||1)===n.length?this.endPosition=!0:0!==o&&void 0!==o||(this.endPosition=!1),i.removeDataArr=l=l.concat(n.splice(o,r)),a&&this.asyncDraw()},a.__setDefaultConfig=function(){e.prototype.__setDefaultConfig.call(this);var t=this.config;t.showplotborder=void 0,t.plotborderdashlen=void 0,t.plotborderdashgap=void 0,t.plotfillalpha=void 0,t.useroundedges=void 0,t.ratio=void 0,t.plotborderthickness=void 0,t.showvalues=void 0,t.valuepadding=void 0,t.showtooltip=void 0,t.maxcolwidth=void 0,t.rotatevalues=void 0,t.use3dlighting=void 0,t.whiskerslimitswidthratio=void 0,t.outliersupperrangeratio=void 0,t.outlierslowerrangeratio=void 0,t.showalloutliers=void 0,t.showmean=void 0,t.showsd=void 0,t.showmd=void 0,t.showqd=void 0,t.showminvalues=void 0,t.showmaxvalues=void 0,t.showq1values=void 0,t.showq3values=void 0,t.showmedianvalues=void 0},a.getDataLimits=function(){var e=this.config,t=this.getState("removed");return{max:t?-Infinity:e.maxValue,min:t?+Infinity:e.minValue}},a._addLegend=function(){var e,t,a,o=this.config,r=this.getFromEnv("legend"),i=this.getFromEnv("chart-attrib"),n=o.JSONData||{},s=o.upperBoxColor,c=o.lowerBoxColor;e={FCcolor:{color:s+l.COMMA+c,angle:90,ratio:"50, 0",alpha:"100, 100"}},t={label:(0,l.getFirstValue)(this.config.JSONData.seriesname),index:this.getJSONIndex(),mainDS:!0},o.includeInLegend?((a=r.getItem(this.config.legendItemId))||(this.config.legendItemId=r.createItem(this),a=r.getItem(this.config.legendItemId),this.addExtEventListener("fc-click",(function(){a.itemClickFn()}),a)),a.configure(t),a.setStateCosmetics("default",{symbol:{fill:(0,l.toRaphaelColor)(e),bgAlpha:(0,l.pluckNumber)(n.legendiconbgalpha,n.legendiconalpha,i.legendiconbgalpha,i.legendiconalpha,o.plotfillalpha),borderAlpha:(0,l.pluckNumber)(n.legendiconborderalpha,n.legendiconalpha,i.legendiconborderalpha,i.legendiconalpha,o.plotfillalpha),rawFillColor:o.upperBoxColor,stroke:(0,l.toRaphaelColor)(d)},background:{legendBackgroundColor:(0,l.toRaphaelColor)(s),alpha:20}}),this.getState("visible")?a.removeLegendState("hidden"):a.setLegendState("hidden")):this.config.legendItemId&&r.disposeItem(this.config.legendItemId),this._mapChildren((function(e){e.getState("removed")||(e.addToEnv("legendBackgroundColor",s),e&&e._addLegend(!0))}))},a.legendInteractivity=function(){var e,t,a=this.getChildren("dataset");for(e=this.getState("visible")?"hide":"show",t=0;t<(a&&a.length);t++)a[t][e]();this[e]()},a.drawLabel=function(){return this},a.getName=function(){return"boxandwhisker2D"},a.childChanged=function(){return this},a.show=function(){e.prototype.show.call(this)},a.hide=function(){e.prototype.hide.call(this)},t}(i["default"]);t["default"]=T},1421: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(616)),n=a(278),l=a(286),s=o(a(1422)),c=n.preDefStr.POLYGON,d=n.preDefStr.SPOKE,h=function(e,t,a){return a.getFromEnv("animationManager").setAnimation({el:"group",attr:e,container:t,component:a,label:"group"})};(0,l.addDep)({name:"boxandwhiskerlineAnimation",type:"animationRule",extension:s["default"]});var u=function(e){function t(){return e.apply(this,arguments)||this}(0,r["default"])(t,e);var a=t.prototype;return a.getName=function(){return"boxandwhiskerline"},a.createCoordinates=function(){var e,t,a,o,r,i=this.components.data,n=this.getFromEnv("yAxis"),l=this.getFromEnv("xAxis"),s=i.length;for(a=0;a<s;a++)t=(e=i[a])&&e.config,void 0!==e&&(o=l.getPixel(t._x),r=n.getPixel(t._y),t._Px=o+this.getFromEnv("columnXShift")+this.getFromEnv("columnWidth")/2,t._Py=r)},a.getAllPlots=function(e,t){var a,o,r=this.components.data,i=[];for(a=0,o=r.length;a<o;a++)(r[a].config._x>=e||r[a].config._x<=t)&&i.push(r[a]);return i},a.calculateScrollRange=function(){var e=this.config,t=this.components.data;e.scrollMinVal=0,e.scrollMaxVal=t.length,e.scrollMinValForLabel=e.scrollMinVal,e.scrollMaxValForLabel=e.scrollMaxVal},a._getHoveredPlot=function(e,t){var a,o,r,i,n,l,s=e,c=t,d=this.getFromEnv("xAxis"),h=this.components.data.length,u=this.config,p=u&&u.radius||0;for(s+=d.getTranslation(),o=Math.floor(Math.max(d.getValue(s-p),0)),r=Math.ceil(Math.min(d.getValue(s+p),h-1)),n=(l=this.getAllPlots(o,r)).length;n>=0&&(!(a=l[n])||!(i=this.isWithinShape(a,n,s,c)));n--);return i},a._addLegend=function(e){if(e){var t,a,o=this.config,r=this.getFromEnv("chart").getChildren("legend")[0],i=(0,n.pluckNumber)(o.drawanchors,1);o.includeinlegend?(a={anchorSide:i?o.anchorsides:0,label:(0,n.getFirstValue)(o.JSONData.seriesname),customLegendIcon:!1,spoke:"spoke"===o.dip?1:0,drawLine:!o.showline,index:this.getJSONIndex()},(t=r.getItem(this.config.legendItemId))||(this.config.legendItemId=r.createItem(this),t=r.getItem(this.config.legendItemId),this.addExtEventListener("fc-click",(function(){t.itemClickFn()}),t)),t.configure(a),t.setStateCosmetics("default",{symbol:{fill:(0,n.toRaphaelColor)({color:o.anchorbgcolor,alpha:o.anchorbgalpha}),rawFillColor:o.anchorbgcolor,stroke:(0,n.toRaphaelColor)({color:o.anchorbordercolor,alpha:"100"})},background:{legendBackgroundColor:(0,n.toRaphaelColor)(this.getFromEnv("legendBackgroundColor")),alpha:20}}),this.getState("visible")?t.removeLegendState("hidden"):t.setLegendState("hidden")):this.config.legendItemId&&r.disposeItem(this.config.legendItemId)}},a.configureAttributes=function(t){e.prototype.configureAttributes.call(this,t);var a=this.config.JSONData,o=this.config;this.setState("visible",this.getLinkedParent().getState("visible")),o.skipCommonElements=a.showline,o.dip=a.dip},a.createContainer=function(){var e,t,a=this.getLinkedParent().getLinkedParent(),o=this.groupName||this.dsGroup||this.getType();!a.getChildContainer(o+"VcanvasGroup")&&(o="default"),e=a.getChildContainer("manager-defaultVcanvasGroup-lines"),t=a.getChildContainer(o+"ShadowVcanvasGroup"),!this.getContainer("shadowGroup")&&this.addContainer("shadowGroup",h({name:"shadow-group"},t,this)),!this.getContainer("commonElemsGroup")&&this.addContainer("commonElemsGroup",h({name:"common-elems-group"},e,this)),!this.getContainer("plotGroup")&&this.addContainer("plotGroup",h({name:"common-elems-group"},e,this)),!this.getContainer("labelGroup")&&this.addContainer("labelGroup",h({name:"label-group","class":"fusioncharts-datalabels",opacity:1},a.getChildContainer("vcanvasLabelGroup"),this))},a._setConfigure=function(e,t){var a,o,r,i,l,s,h,u,p=this.config,g=this.getFromEnv("chartConfig"),f=this.config.JSONData,m=e||f.data||[],v=this.getFromEnv("xAxis").getTicksLen(),b=e&&e.data.length,x="Outliers"===f.seriesname?m.length:b||Math.min(v,m.length);for(p.imageCount=0,(r=this.components.data)||(r=this.components.data=[]),p.maxRadius=-Infinity,i=0;i<x;i++)e?(a=e&&e.data[i]||{},o=void 0!==t?r[u=t+i]:r[u=r.length-x+i],l=u):(o=r[i],a=m&&m[i]||{},l=i),o||(o=r[l]={}),o.config||(o.config={}),o.graphics||(o.graphics={}),this._plotConfigure(l,a,b),u&&u++,s=o&&o.config,h=(0,n.pluck)(a.dip,f.dip),s.dip=h===c?0:h===d?1:0,s.toolText=s.finalTooltext="<b>"+f.seriesname+g.tooltipsepchar+"</b>"+s.displayValue},t}(i["default"]);t["default"]=u},1422:function(e,t,a){"use strict";t.__esModule=!0,t["default"]=void 0;t["default"]={"initial.dataset.boxandwhiskerline":function(){return{"line.appearing":[{initialAttr:{opacity:0},finalAttr:{opacity:1},slot:"plot",startEnd:{start:.5,end:1}}],"anchor.appearing":[{initialAttr:{opacity:0},finalAttr:{opacity:1},slot:"plot",startEnd:{start:.5,end:1}}]}}}},1423:function(e,t,a){"use strict";t.__esModule=!0,t["default"]=void 0;t["default"]={"initial.dataset.boxandwhisker2D":function(){return{"upperBox.appearing":function(e){return[{initialAttr:{x:e.attr.x,y:e.attr.y+e.attr.height,height:0,width:e.attr.width},slot:"plot",startEnd:{start:0,end:.5}}]},"lowerBox.appearing":function(e){return[{initialAttr:{x:e.attr.x,y:e.attr.y,height:0,width:e.attr.width},slot:"plot",startEnd:{start:0,end:.5}}]},"path.appearing":[{initialAttr:{opacity:0},finalAttr:{opacity:1},slot:"plot",startEnd:{start:.5,end:1}}],"midline.appearing":[{initialAttr:{opacity:0},finalAttr:{opacity:1},slot:"plot",startEnd:{start:0,end:.2}}],"group.appearing":function(e){return"label-group"===e.attr.name?[{initialAttr:{opacity:0},finalAttr:{opacity:1},slot:"final"}]:[{initialAttr:{opacity:1},finalAttr:{opacity:1},slot:"final"}]},"*":null}}}},1424:function(e,t,a){"use strict";var o=a(273);t.__esModule=!0,t["default"]=function(e){var t,a,o=e.getFromEnv("dataSource").dataset,n=e.getChildren("canvas")[0],l=t=n.getChildren("vCanvas")[0],s=e.config.defaultDatasetType||"";o||e.setChartMessage();(0,r.componentFactory)(t,e.getDSGroupdef(),"datasetGroup_"+s),(a=t.getChildren("datasetGroup_"+s))&&(l=a[0]),(0,r.componentFactory)(e,i["default"],"BoxAndWhiskerStatisticalCalc"),t.getChildren("datasetGroup_"+s)[0].addToEnv("BoxAndWhiskerStatisticalCalc",e.getChildren("BoxAndWhiskerStatisticalCalc")[0]),l.addToEnv("lineJSON",e._getLineJSONdata()),(0,r.datasetFactory)(l,e.getDSdef(),"dataset",o.length,o)};var r=a(278),i=o(a(1425))},1425:function(e,t,a){"use strict";var o=a(273);t.__esModule=!0,t["default"]=void 0;var r=o(a(292)),i=a(294),n=a(278),l=function(e){function t(){return e.apply(this,arguments)||this}(0,r["default"])(t,e);var a=t.prototype;return a.setArray=function(e){var t,a,o=this.getFromEnv("number-formatter"),r=0,i=e;for(!i&&(i=n.BLANK),a=i.replace(/\s/g,n.BLANK).split(n.COMMASTRING),t=this.dataLength=a&&a.length;t--;)r+=a[t]=o.getCleanValue(a[t]);a&&a.sort((function(e,t){return e-t})),this.values=a,this.mean=r/this.dataLength,this.getFrequencies()},a.getQuartiles=function(){var e,t,a,o,r,i,l=this.values,s=this.dataLength,c=s%2;switch(n.BLANKSTRING){case"tukey":c?(e=(s+3)/4,a=(3*s+1)/4):(e=(s+2)/4,a=(3*s+2)/4);break;case"mooremccabe":c?a=3*(e=(s+1)/4):(e=(s+2)/4,a=(3*s+2)/4);break;case"freundperles":e=(s+3)/4,a=(3*s+1)/4;break;case"mendenhallsincich":e=Math.round((s+1)/4),a=Math.round(3*e);break;default:a=3*(e=(s+1)/4)}return e-=1,a-=1,t=Math.floor(e),o=Math.floor(a),r=e-t?l[t]+(l[Math.ceil(e)]-l[t])*(e-t):l[e],i=a-o?l[o]+(l[Math.ceil(a)]-l[o])*(a-o):l[a],this.quartiles={q1:r,q3:i},this.quartiles},a.getMinMax=function(){var e=this.values;return{min:e[0],max:e[this.dataLength-1]}},a.getMean=function(){return this.mean},a.getMD=function(){for(var e,t=this.mean,a=this.frequencies,o=a.length,r=0;o--;)r+=(e=a[o]).frequency*Math.abs(e.value-t);return r/this.dataLength},a.getSD=function(){for(var e=this.mean,t=this.values,a=this.dataLength,o=a,r=0;a--;)r+=Math.pow(t[a]-e,2);return Math.sqrt(r/(o-1))},a.getQD=function(){return.5*(this.quartiles.q3-this.quartiles.q1)},a.getFrequencies=function(){var e,t,a,o=[],r=this.dataLength,i=this.values,l=0;for(a=0;a<r;a+=1)l+=e=i[a],(0,n.defined)(o[a])?o[a].frequency+=1:((t={}).value=e,t.frequency=1,o[a]=t);this.sum=l,this.frequencies=o},a.getMedian=function(){var e=this.dataLength,t=.5*e,a=this.values;return e%2==0?(a[t]+a[t-1])/2:a[Math.floor(t)]},t}(i.ComponentInterface);t["default"]=l},1426: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(689)),n="manager-defaultVcanvasGroup-lines",l=function(e){function t(){return e.apply(this,arguments)||this}return(0,r["default"])(t,e),t.prototype.createContainer=function(){e.prototype.createContainer.call(this);var t=this.getLinkedParent().getChildContainer("defaultVcanvasGroup");!this.getChildContainer(n)&&this.addChildContainer(n,this.getFromEnv("animationManager").setAnimation({el:"group",component:this,attr:{name:n},container:t}))},t}(i["default"]);t["default"]=l},1427:function(e,t,a){"use strict";var o=a(273);t.__esModule=!0,t["default"]=void 0;var r=o(a(1428))["default"];t["default"]=r},1428: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(524)),n=o(a(1429)),l=o(a(1437)),s=o(a(350)),c=a(278),d=o(a(629)),h=a(1435),u=function(e){function t(){var t;return(t=e.call(this)||this).registerFactory("legend",d["default"]),t.registerFactory("dataset",l["default"],["legend"]),t}(0,r["default"])(t,e);var a=t.prototype;return a.__setDefaultConfig=function(){e.prototype.__setDefaultConfig.call(this);var t=this.config;this.legendposition="right",t.legendPosition=c.preDefStr.POSITION_BOTTOM,t.orientation="horizontal",t.skipCanvasDrawing=!0,t.alignCaptionWithCanvas=!1,t.basefontsize=11},t.getName=function(){return"sankey"},a.getName=function(){return"sankey"},a.getDSdef=function(){return n["default"]},a._checkInvalidData=function(){var e=this.getFromEnv("dataSource");return(!(0,s["default"])(e.nodes)||!e.nodes.length)&&(delete this.config.errorMessage,!0)},a._checkInvalidSpecificData=function(){var e,t,a,o,r,i,n,l=(e=this.getFromEnv("dataSource"),a=[],o=[],r=e.nodes||[],i=e.links||[],n={},r.forEach((function(e){(t=(0,c.pluck)(e.id,e.label))&&(n[t.toString()]=e)})),Object.keys(n).forEach((function(e,t){a.push(Object.assign({},n[e],{props:{}})),a[t].id=(0,c.parseUnsafeString)((a[t].id||a[t].label).toString()),a[t].label=(0,c.parseUnsafeString)((a[t].label||a[t].id).toString())})),i.forEach((function(e){n[e.from]&&n[e.to]&&o.push(Object.assign({},e,{props:{source:(0,c.parseUnsafeString)(e.from),target:(0,c.parseUnsafeString)(e.to)},value:(0,c.pluck)(e.value,"0")}))})),{nodes:a,links:o});return(0,h.createNodeLinks)(l),(0,h.traverseGraph)(l)?(delete this.config.errorMessage,this.addToEnv("sankey-graph",l),!1):(this.config.errorMessage="Self loops and circular links are not supported.",!0)},a.setChartMessage=function(t,a,o){var r=this.config.errorMessage;e.prototype.setChartMessage.call(this,t||r,a,o)},a.configureAttributes=function(t){void 0===t&&(t={}),e.prototype.configureAttributes.call(this,t);var a=this.config,o=t.chart||{},r=this.getFromEnv("number-formatter"),i=this.getFromEnv("sankey-graph"),n=i.nodes,l=i.links;"undefined"!=typeof o.orientation?(a.orientation=o.orientation.toString().toLowerCase(),a.orientation="vertical"===a.orientation?"vertical":"horizontal"):a.orientation="horizontal","undefined"!=typeof o.legendposition?a.legendPosition=["top-left","top","top-right","right-top","right","right-bottom","bottom-right","bottom","bottom-left","left-bottom","left","left-top"].includes(o.legendposition.toString().toLowerCase())?o.legendposition.toString().toLowerCase():c.preDefStr.POSITION_BOTTOM:a.legendPosition="right",a.legendposition=a.legendPosition,this.addToEnv("orientation",a.orientation),a.nodeWidth=Math.max(0,r.getCleanValue((0,c.pluck)(o.nodewidth,20))),n.forEach((function(e){e.nodeWidth=a.nodeWidth})),l.forEach((function(e){e.value=Math.max(0,r.getCleanValue((0,c.pluck)(e.value,0)))})),(0,h.createNodeValues)(i)},a._spaceManager=function(){var e,t,a,o=this.config,r=o.legendPosition,i=o.showLegend,n=o.marginLeft,l=o.marginTop,s=o.marginRight,d=o.marginBottom,h=+this.getFromEnv("chartWidth"),u=+this.getFromEnv("chartHeight");h-=n+s,u-=l+d,t=this._manageActionBarSpace(.225*u),this._allocateSpace(t),i&&((r=r||[]).split("-")[0]===c.POSITION_TOP||r.split("-")[0]===c.preDefStr.POSITION_BOTTOM?e=.3*u:(e=.3*h,r.split("-")[0]===c.POSITION_LEFT?this._allocateSpace({left:11}):r.split("-")[0]===c.POSITION_RIGHT&&this._allocateSpace({right:11})),a=this.getChildren("legend")[0]._manageLegendPosition(e),this._allocateSpace(a)),this._manageChartMenuBar(.6*o.availableHeight)},a._postSpaceManagement=function(){var e=this.config.showLegend,t=this.getChildren("legend");t.length&&e&&t.forEach((function(e){return e.postSpaceManager()})),this.allocateDimensionOfChartMenuBar()},t}(i["default"]);t["default"]=u},1429:function(e,t,a){"use strict";var o=a(273);t.__esModule=!0,t["default"]=void 0;var r=o(a(277)),i=o(a(292)),n=a(294),l=o(a(1430)),s=o(a(1432)),c=a(1435),d=a(286),h=o(a(1436));function u(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,o)}return a}function p(e){for(var t=1;t<arguments.length;t++){var a=null!=arguments[t]?arguments[t]:{};t%2?u(Object(a),!0).forEach((function(t){(0,r["default"])(e,t,a[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(a)):u(Object(a)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(a,t))}))}return e}var g="start",f="end";(0,d.addDep)({name:"sankeyLinkAnimation",type:"animationRule",extension:h["default"]});var m=function(e){function t(){var t;return(t=e.call(this)||this).registerFactory("node",l["default"]),t.registerFactory("link",s["default"],["node"]),t}(0,i["default"])(t,e),t.getName=function(){return"sankey"};var a=t.prototype;return a.getName=function(){return"sankey"},a.getType=function(){return"dataset"},a.configureAttributes=function(e){void 0===e&&(e={}),Object.assign(this.config,e)},a._addLegend=function(){var e,t,a,o,r=this,i=r.config,n=r.getChildren("nodes"),l=r.getFromEnv("legend"),s=i.legendItemMap=i.legendItemMap||{},c=new Set;Object.keys(s).forEach((function(e){return c.add(s[e])})),n.forEach((function(i){o=s[i.getId()],(a=l.getItem(o))?c["delete"](o):(o=l.createItem(r),a=l.getItem(o),s[i.getId()]=o),a.configure({enabled:!0,label:i.config.label}),i.setData({legendItemId:o}),t=i.config,e=t.style,a.setStateCosmetics("default",{symbol:{fill:e.node.normal.fill,rawFillColor:t.rawCosmetics.fill,stroke:e.node.normal.stroke,cursor:"default"},text:{cursor:"default"}})})),c.forEach((function(e){l.disposeItem(e)}))},a.allocatePosition=function(){var e,t=this.getFromEnv("chartConfig"),a=this.getFromEnv("sankey-graph"),o=this.getFromEnv("orientation"),r=t.canvasLeft,i=t.canvasTop,n=t.canvasHeight,l=t.canvasWidth,s=0,d=0,h=0,u=this.config,p=u.nodeWidth,g=u.nodeSpacing,f=u.nodeRelaxation,m=u.style.node.label;e={left:r,top:i,right:r+l,bottom:i+n},this.config.nodeLabelCosmetics={"font-size":this.computeFontSize(m.fontSize),"font-family":m.fontFamily,"font-weight":m.fontWeight,"font-style":m.fontStyle},"horizontal"===o?(this._accomodateBoundaryHLabels(e),(0,c.createNodeDimensions)(a,{width:[e.left,e.right],height:[e.top,e.bottom],nodeGutter:g,orientation:o,nodeRelaxation:f}),a.nodes.forEach((function(e){h=Math.max(h,e.props.depth)})),s=this.config.columnGap=Math.max((e.right-e.left-p*h)/Math.max(h,1),0),this._accomodateInternalHLabels(s)):(this._accomodateBoundaryVLabels(e),(0,c.createNodeDimensions)(a,{width:[e.left,e.right],height:[e.top,e.bottom],nodeGutter:g,orientation:o,nodeRelaxation:f}),a.nodes.forEach((function(e){h=Math.max(h,e.props.depth)})),d=this.config.columnGap=Math.max((e.bottom-e.top-p*h)/Math.max(h,1),0),this._accomodateInternalVLabels(d,e.bottom-e.top))},a._accomodateBoundaryHLabels=function(e){var t,a,o,r,i,n,l,s=this,c=s.config.labelSepChar,d=s.getChildren("nodes"),h=s.getFromEnv("smartLabel"),u=e.right-e.left,p=0,m=0;return d.forEach((function(e){var d=e.config,v=d.showValue,b=d.showLabel,x=d.label,k=d.props,y=d.labelPosition,C=d.value,w=d.rotateLabel,A=d.labelPadding,S=k.sourceLinks,N=k.targetLinks;if(h.setStyle(s.config.nodeLabelCosmetics),a=h.getSize(v?C:""),l=h.getSize(v?c+" "+C:""),i=Math.max(0,u-l.width),S.length&&!N.length){if(y===f)return;n=10*(r=y===g?.1:.2),t=h.getSmartText(b?x:"",r*i,h._lineHeight),w?(o="inside"===y?0:Math.max(t.height/n,a.height/n),p=Math.max(p,o+(o&&y===g?A:0))):(o=(t.width+(t.width?l.width:a.width))/n,p=Math.max(p,o+(o&&y===g?A:0))),e.setData({formattedLabel:t})}else if(!S.length&&N.length){if(y===g)return;n=10*(r=y===f?.1:.2),t=h.getSmartText(b?x:"",r*i,h._lineHeight),w?(o="inside"===y?0:Math.max(t.height/n,a.height/n),m=Math.max(m,o+(o&&y===f?A:0))):(o=(t.width+(t.width?l.width:a.width))/n,m=Math.max(m,o+(o&&y===f?A:0))),e.setData({formattedLabel:t})}})),e.left+=p+(p?5:0),e.right-=m+(m?5:0),e},a._accomodateInternalHLabels=function(e){var t,a,o,r=this,i=r.getChildren("nodes"),n=r.getFromEnv("smartLabel"),l=r.config.labelSepChar;i.forEach((function(i){var s=i.config,c=s.showValue,d=s.showLabel,h=s.label,u=s.value,p=s.props,m=s.rotateLabel,v=s.labelPosition,b=s.labelPadding,x=p.sourceLinks,k=p.targetLinks,y=Math.max(0,p.y1-p.y0);if(h=d?h:"",u=c?u:"",n.setStyle(r.config.nodeLabelCosmetics),a=n.getSize(c?l+" "+u:""),t=Math.max(0,.75*e-b-a.width),m)return o=n.getSmartText(h,y-a.width,n._lineHeight),void i.setData({formattedLabel:o});(x.length&&!k.length&&v===f||!x.length&&k.length&&v===g||x.length&&k.length||!x.length&&!k.length)&&(o=n.getSmartText(h,t,n._lineHeight),i.setData({formattedLabel:o}))}))},a._accomodateBoundaryVLabels=function(e){var t,a,o,r,i,n,l,s=this,c=s.getChildren("nodes"),d=s.getFromEnv("smartLabel"),h=s.config.labelSepChar,u=e.bottom-e.top,p=0,m=0;return c.forEach((function(e){var c=e.config,v=c.props,b=c.labelPosition,x=c.rotateLabel,k=c.showValue,y=c.showLabel,C=c.value,w=c.label,A=c.labelPadding,S=v.sourceLinks,N=v.targetLinks;if(C=k?C:"",w=y?w:"",d.setStyle(s.config.nodeLabelCosmetics),t=d.getSize(C),l=d.getSize(k?h+" "+C:""),i=Math.max(0,u-l.width),S.length&&!N.length){if(b===f)return;n=10*(o=b===g?.1:.2),a=d.getSmartText(w,o*i,d._lineHeight),x?(r=(a.width+(a.width?l.width:t.width))/n,p=Math.max(p,r+(r&&b===g?A:0))):(r="inside"===b?0:Math.max(a.height/n,t.height/n),p=Math.max(p,r+(r&&b===g?A:0))),e.setData({formattedLabel:a})}else if(!S.length&&N.length){if(b===g)return;n=10*(o=b===f?.1:.2),a=d.getSmartText(w,o*i,d._lineHeight),x?(r=(a.width+(a.width?l.width:t.width))/n,m=Math.max(m,r+(r&&b===f?A:0))):(r="inside"===b?0:Math.max(a.height/n,t.height/n),m=Math.max(m,r+(r&&b===f?A:0))),e.setData({formattedLabel:a})}})),e.top+=p+(p?5:0),e.bottom-=m+(m?5:0),e},a._accomodateInternalVLabels=function(e){var t,a,o,r,i=this,n=i.getChildren("nodes"),l=i.getFromEnv("smartLabel"),s=i.config.labelSepChar;n.forEach((function(n){var c=n.config,d=c.showValue,h=c.props,u=c.label,p=c.value,m=c.showLabel,v=c.rotateLabel,b=c.labelPosition,x=c.labelPadding,k=h.sourceLinks,y=h.targetLinks;if(l.setStyle(i.config.nodeLabelCosmetics),u=m?u:"",p=d?p:"",r=l.getSize(d?s+" "+p:""),t=Math.max(0,.75*e-x-r.width),o=h.x1-h.x0,!v)return a=l.getSmartText(u,o-r.width,l._lineHeight),void n.setData({formattedLabel:a});(k.length&&!y.length&&b===f||!k.length&&y.length&&b===g||k.length&&y.length||!k.length&&!y.length)&&(a=l.getSmartText(u,t,l._lineHeight),n.setData({formattedLabel:a}))}))},a.attachListeners=function(){var e=this,t=e.getChildren("nodes"),a=e.getChildren("links");t.forEach((function(t){t.onFocusCallback=t.onFocusCallback||e.interactionCallback(t,"focus"),t.onFocusOutCallback=t.onFocusOutCallback||e.interactionCallback(t,"normal"),t.onClickCallback=t.onClickCallback||e.interactionCallback(t,"click"),t.dragStartCallback=t.dragStartCallback||e.dragCallback(t,"start"),t.dragMoveCallback=t.dragMoveCallback||e.dragCallback(t,"move"),t.dragEndCallback=t.dragEndCallback||e.dragCallback(t,"end"),t.addEventListener("fc-mouseover",t.onFocusCallback),t.addEventListener("fc-mouseout",t.onFocusOutCallback),t.addEventListener("fc-click",t.onClickCallback),t.addEventListener("fc-dragstart",t.dragStartCallback),t.addEventListener("fc-dragmove",t.dragMoveCallback),t.addEventListener("fc-dragend",t.dragEndCallback)})),a&&a.forEach((function(t){t.onFocusCallback=t.onFocusCallback||e.interactionCallback(t,"focus"),t.onFocusOutCallback=t.onFocusOutCallback||e.interactionCallback(t,"normal"),t.onClickCallback=t.onClickCallback||e.interactionCallback(t,"click"),t.addEventListener("fc-mouseover",t.onFocusCallback),t.addEventListener("fc-mouseout",t.onFocusOutCallback),t.addEventListener("fc-click",t.onClickCallback)}))},a.interactionCallback=function(e,t){var a=this,o=a.config,r=a.getLinkedParent();return"node"===e.getType()?function(){var i=a.getChildren("nodes"),n=a.getChildren("links")||[],l=Object.assign({},e.config.eventArgs),s=e.getId();if(!e.config.isDragged)if("click"===t)r.fireChartInstanceEvent("dataPlotClick",l);else if("normal"===t){if(r.fireChartInstanceEvent("dataPlotRollOut",l),!o.highlightEffect)return;i.forEach((function(e){return e.setData({mode:"normal"})})),n.forEach((function(e){return e.setData({mode:"normal"})}))}else{var c=new Set,d=e.config.props,h=d.sourceLinks,u=d.targetLinks;if(r.fireChartInstanceEvent("dataPlotRollOver",l),!o.highlightEffect)return;c.add(s),h.forEach((function(e){c.add(e.to)})),u.forEach((function(e){c.add(e.from)})),i.forEach((function(e){c.has(e.getId())?e.setData({mode:"focus"}):e.setData({mode:"focusOut"})})),n.forEach((function(e){var t=e.config.props,a=t.source,o=t.target;s===a.id||s===o.id?e.setData({mode:"focus"}):e.setData({mode:"focusOut"})}))}}:function(){var i=a.getChildren("nodes"),n=a.getChildren("links")||[],l=Object.assign({},e.config.eventArgs);if(!e.config.isDragged)if("click"===t)r.fireChartInstanceEvent("linkClick",l);else if("normal"===t){if(r.fireChartInstanceEvent("linkRollOut",l),!o.highlightEffect)return;i.forEach((function(e){return e.setData({mode:"normal"})})),n.forEach((function(e){return e.setData({mode:"normal"})}))}else{var s=new Set,c=e.config.props,d=c.source,h=c.target;if(r.fireChartInstanceEvent("linkRollOver",l),!o.highlightEffect)return;s.add(d.id),s.add(h.id),i.forEach((function(e){s.has(e.getId())?e.setData({mode:"focus"}):e.setData({mode:"focusOut"})})),n.forEach((function(e){return e.setData({mode:"focusOut"})})),e.setData({mode:"focus"})}}},a.dragCallback=function(e,t){var a=this,o=a.config;return"start"===t?function(){var t,r,i=e.config.props;o.enableDrag&&(e.onFocusOutCallback(),e.setData({isDragged:!0,curPos:{x0:i.x0,x1:i.x1,y0:i.y0,y1:i.y1}}),i.sourceLinks.forEach((function(e){t=a.getChild(e.props.index,"links"),r=t.config.props,t.setData({isDragged:!0,curPos:{x0:r.x0,x1:r.x1,y0:r.y0,y1:r.y1}})})),i.targetLinks.forEach((function(e){t=a.getChild(e.props.index,"links"),r=t.config.props,t.setData({isDragged:!0,curPos:{x0:r.x0,x1:r.x1,y0:r.y0,y1:r.y1}})})))}:"end"===t?function(){var t=e.config.props;o.enableDrag&&(e.setData({isDragged:!1}),t.sourceLinks.forEach((function(e){a.getChild(e.props.index,"links").setData({isDragged:!1})})),t.targetLinks.forEach((function(e){a.getChild(e.props.index,"links").setData({isDragged:!1})})))}:function(t){var r,i,n,l=t.originalEvent.data,s=l[0],c=l[1],d=a.getFromEnv("orientation"),h=a.getFromEnv("chartConfig"),u=h.canvasLeft,p=h.canvasRight,g=h.canvasTop,f=h.canvasBottom,m=e.config,v=m.curPos,b=m.props;if(o.enableDrag){if("horizontal"===d){if(v.y0+c<g||v.y1+c>f)return;b.y0=v.y0+c,b.y1=v.y1+c,b.sourceLinks.forEach((function(e){r=a.getChild(e.props.index,"links"),i=r.config.props,n=r.config.curPos,i.y0=n.y0+c,r.setData({})})),b.targetLinks.forEach((function(e){r=a.getChild(e.props.index,"links"),i=r.config.props,n=r.config.curPos,i.y1=n.y1+c,r.setData({})}))}else{if(v.x0+s<u||v.x1+s>p)return;b.x0=v.x0+s,b.x1=v.x1+s,b.sourceLinks.forEach((function(e){r=a.getChild(e.props.index,"links"),i=r.config.props,n=r.config.curPos,i.x0=n.x0+s,r.setData({})})),b.targetLinks.forEach((function(e){r=a.getChild(e.props.index,"links"),i=r.config.props,n=r.config.curPos,i.x1=n.x1+s,r.setData({})}))}e.setData({})}}},a.getClip=function(e){var t=this.getFromEnv("orientation"),a=[],o=this.getFromEnv("chartConfig"),r=o.canvasTop,i=o.canvasLeft,n=o.canvasWidth,l=o.canvasHeight;return"horizontal"===t?(a.push(i),a.push(r),"init"===e?a.push(0):a.push(n),a.push(l)):(a.push(i),a.push(r),a.push(n),"init"===e?a.push(0):a.push(l)),a},a.draw=function(){this.addGraphicalElement({el:"group",attr:{name:"sankey-link-group","clip-rect":this.getClip("canvas")},id:"sankey-link-group",component:this,container:{id:"plotGroup",isParent:!0},label:"linkGroup"}),this.addGraphicalElement({el:"group",attr:{name:"sankey-node-group"},id:"sankey-node-group",component:this,container:{id:"plotGroup",isParent:!0},label:"nodeGroup"}),this.addGraphicalElement({el:"group",attr:p({name:"sankey-node-label-group"},this.config.nodeLabelCosmetics),id:"sankey-node-label-group",component:this,container:{id:"datalabelsGroup",isParent:!0},label:"nodeLabelGroup"})},t}(n.SmartRenderer);t["default"]=m},1430:function(e,t,a){"use strict";var o=a(273);t.__esModule=!0,t["default"]=function(e){var t,a,o,l,s,c,d,h,u,p,g,f,m=e.config,v=m.nodes,b=m.enableDrag,x=m.style,k=e.getFromEnv("dataSource").chart,y=x.node.label,C=(0,r.pluckNumber)(k.inheritlabelcolorfromnode,1),w=e.getFromEnv("color-manager"),A=e.getFromEnv("number-formatter"),S=e.getFromEnv("chartConfig"),N=S.dataLabelStyle,L=S.showLegend;v.forEach((function(m,v){f=(0,r.pluck)(m.id,m.label),s={fill:(0,r.pluck)(m.color,k.nodecolor,w.getPlotColor(v)),alpha:(0,r.pluckNumber)(m.alpha,k.nodealpha,100),focusAlpha:(0,r.pluckNumber)(m.hoveralpha,k.nodehoveralpha,100),focusOutAlpha:40,stroke:"none"},g=(0,r.pluck)(m.labelalpha,k.nodelabelalpha,k.labelalpha,C?s.alpha:100),d=(d=(0,r.pluck)(m.labelbgcolor,k.nodelabelbgcolor,k.labelbgcolor))?(0,r.convertColor)(d,g):r.BLANK,h=(h=(0,r.pluck)(m.labelbordercolor,k.nodelabelbordercolor,k.labelbordercolor))?(0,r.convertColor)(h,g):r.BLANK,c=Object.assign({},N,{labelFill:(0,r.pluck)(m.labelfontcolor,k.nodelabelfontcolor,k.labelfontcolor,k.basefontcolor,C?s.fill:"#5f5f5f"),labelAlpha:g,focusAlpha:s.focusAlpha,focusOutAlpha:s.focusOutAlpha,border:d?y.borderThickness+"px solid":r.BLANK,borderColor:h,backgroundColor:d}),t={cursor:p=b?"move":"default","text-bound":[d,h,y.borderThickness,y.borderPadding,y.borderRadius,y.borderDash],fill:(0,r.convertColor)(c.labelFill,c.labelAlpha)},u=(0,r.pluck)(m.labelposition,k.nodelabelposition,r.preDefStr.POSITION_END).toLowerCase(),n.indexOf(u)<0&&(u=r.preDefStr.POSITION_END),a={fill:(0,r.convertColor)(s.fill,s.alpha),cursor:p,stroke:s.stroke},o={fill:(0,r.convertColor)(s.fill,s.focusAlpha)},l={fill:(0,r.convertColor)(s.fill,s.focusOutAlpha)},e.attachChild(i["default"],"nodes",f).setData({id:f,index:v,mode:"normal",label:(0,r.pluck)(m.label,m.id),value:A.dataLabels(m.props.value),labelPadding:A.getCleanValue((0,r.pluck)(m.labelpadding,k.nodelabelpadding,5)),visible:(0,r.pluckNumber)(m.visible,k.shownodes,1),showLabel:(0,r.pluckNumber)(m.showlabel,k.shownodelabels,1),showValue:(0,r.pluckNumber)(m.showvalue,k.shownodevalues,0),rotateLabel:(0,r.pluckNumber)(m.rotatelabel,k.rotatenodelabels,0),labelPosition:u,valuePosition:(0,r.pluck)(m.labelposition,k.nodelabelposition,r.preDefStr.POSITION_MIDDLE),plotToolText:(0,r.getValidValue)((0,r.parseUnsafeString)((0,r.pluck)(m.tooltext,k.plottooltext))),toolText:(0,r.getValidValue)((0,r.parseUnsafeString)((0,r.pluck)(m.tooltext,m.tooltext))),nodeValue:(0,r.pluckNumber)(m.nodevalue,k.nodevalue,0),nodeDataValue:A.dataLabels(m.nodedatavalue),textOutline:(0,r.pluckNumber)(m.textoutline,k.textoutline,0),rawCosmetics:s,rawLabelCosmetics:c,props:m.props,eventArgs:{color:s.fill,alpha:s.alpha,labelFill:c.labelFill,labelAlpha:c.labelAlpha,value:m.props.value,label:m.label,sourceLinks:m.props.sourceLinks.map((function(e){return e.to})),targetLinks:m.props.targetLinks.map((function(e){return e.from}))},style:{node:{normal:a,focus:o,focusOut:l},label:{normal:t,focus:Object.assign({},t,{fill:(0,r.convertColor)(c.labelFill,c.focusAlpha)}),focusOut:Object.assign({},t,{fill:(0,r.convertColor)(c.labelFill,c.focusOutAlpha)})}}})})),L&&e._addLegend()};var r=a(278),i=o(a(1431)),n=["start","inside","end"]},1431:function(e,t,a){"use strict";var o=a(273);t.__esModule=!0,t["default"]=void 0;var r=o(a(277)),i=o(a(292)),n=a(294),l=a(278);function s(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,o)}return a}function c(e){for(var t=1;t<arguments.length;t++){var a=null!=arguments[t]?arguments[t]:{};t%2?s(Object(a),!0).forEach((function(t){(0,r["default"])(e,t,a[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(a)):s(Object(a)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(a,t))}))}return e}var d=function(e){function t(){return e.apply(this,arguments)||this}(0,i["default"])(t,e);var a=t.prototype;return a.getType=function(){return"node"},a.getName=function(){return"sankey-node"},a.configureAttributes=function(e){void 0===e&&(e={});var t=this.config;Object.assign(t,e)},a.allocatePosition=function(){var e,t,a,o=this.config,r=o.props,i=o.style,n=o.mode,s=o.labelPosition,d=o.showLabel,h=o.formattedLabel,u=o.showValue,p=o.value,g=o.rotateLabel,f=o.labelPadding,m=i.node[n],v=i.label[n],b=this.getFromEnv("orientation"),x=this.getFromEnv("smartLabel"),k=this.getLinkedParent().config.labelSepChar,y=h.text+(u?k+" "+p:"");d&&h.text||(y=u?p:"",x.setStyle(i.label.normal),h=x.getSmartText(y)),this.config.nodeAttr=c({x:r.x0,y:r.y0,width:Math.max(0,r.x1-r.x0),height:Math.max(0,r.y1-r.y0)},m),"horizontal"===b?g?(e="start"===s?r.x0-f-h.height/2:"inside"===s?Math.abs(r.x0+r.x1)/2:r.x1+f+h.height/2,t=Math.abs(r.y1+r.y0)/2,this.config.labelAttr=c({x:e,y:t,text:y,"text-anchor":"middle",transform:(0,l.getSuggestiveRotation)(-90,e,t)},v)):("start"===s?(e=r.x0-f,a="end"):"inside"===s?(e=Math.abs(r.x0+r.x1)/2,a="middle"):(e=r.x1+f,a="start"),t=Math.abs(r.y1+r.y0)/2,this.config.labelAttr=c({x:e,y:t,text:y,transform:"t0,0","text-anchor":a},v)):g?("start"===s?(t=r.y0-f,a="start"):"inside"===s?(t=Math.abs(r.y0+r.y1)/2,a="middle"):(t=r.y1+f,a="end"),e=Math.abs(r.x1+r.x0)/2,this.config.labelAttr=c({x:e,y:t,text:y,"text-anchor":a,transform:(0,l.getSuggestiveRotation)(-90,e,t)},v)):(t="start"===s?r.y0-f-h.height/2:"inside"===s?Math.abs(r.y0+r.y1)/2:r.y1+f+h.height/2,a="middle",e=(r.x0+r.x1)/2,this.config.labelAttr=c({x:e,y:t,text:y,transform:"t0,0","text-anchor":a},v))},a.draw=function(){var e=this.getFromEnv("chartConfig"),t=this.config,a=t.id,o=t.labelAttr,r=t.nodeAttr,i=t.textOutline,n=function(e,t,a){var o,r,i,n,s,c,d,h,u,p=l.isIpad?"■":"◼",g=[3,133,134,143,144,145],f=t.getLinkedParent(),m=t.getFromEnv("legend"),v=[],b=[],x=a&&a.drawcustomlegendicon&&m&&m.config&&m.config.isActive?m.getItem(f.config.legendItemMap[t.config.label]):null,k=x&&x.getGraphicalElement();if(d=l.BLANKSTRING,x){if(o=(c=k&&k.legendItemSymbol)&&c.attrs.path.split(/(?=[LMCA])/),n=c&&c.node.getBBox(),o&&o.length)for(r=0;r<o.length;r++)b.push(o[r][0]),o[r]=o[r].substring(1,o[r].length),r===o.length-1&&(o[r]=o[r].substring(0,o[r].length-1)),v[r]=o[r].split(",");if(v&&v.length)for(r=0;r<v.length;r++){if(v[r].length)for(i=0;i<v[r].length;i++)v[r][i]=Number(v[r][i]),"A"!==b[r]?0===i?v[r][i]=v[r][i]-n.x:1===i&&(v[r][i]=v[r][i]-n.y):"A"===b[r]&&(5===i?v[r][i]=v[r][i]-n.x:6===i&&(v[r][i]=v[r][i]-n.y));d+=b[r]+v[r].toString()}d+="Z"}return h={label:e.label,value:e.value,nodeValue:e.props.value,nodeDataValue:e.value,plotFillColor:e.rawCosmetics&&"#"+e.rawCosmetics.fill,plotFillAlpha:e.rawCosmetics&&e.rawCosmetics.alpha,plotIdentifier:x?"<svg height= "+n.height+" width = "+n.width+" overflow='visible' xmlns=\"http://www.w3.org/2000/svg\">\n <path d= "+d+" fill = "+k.legendItemSymbol.node.getAttribute("fill")+" stroke = "+k.legendItemSymbol.node.getAttribute("stroke")+"\n stroke-opacity = "+k.legendItemSymbol.node.getAttribute("stroke-opacity")+" fill-opacity = "+k.legendItemSymbol.node.getAttribute("fill-opacity")+" \n stroke-width = "+k.legendItemSymbol.node.getAttribute("stroke-width")+" stroke-linecap = "+k.legendItemSymbol.node.getAttribute("stroke-linecap")+"></path>\n </svg>":"<span style='color: "+(0,l.parseColor)(e.rawCosmetics.fill)+";'>"+p+" </span>"},u=(0,l.parseTooltext)(e.toolText,g,h,{value:e.value,nodeValue:e.props.value,nodeDataValue:e.value,plotFillColor:e.rawCosmetics&&"#"+e.rawCosmetics.fill,plotFillAlpha:e.rawCosmetics&&e.rawCosmetics.alpha,plotIdentifier:x?"<svg height= "+n.height+" width = "+n.width+" overflow='visible' xmlns=\"http://www.w3.org/2000/svg\">\n <path d= "+d+" fill = "+k.legendItemSymbol.node.getAttribute("fill")+" stroke = "+k.legendItemSymbol.node.getAttribute("stroke")+"\n stroke-opacity = "+k.legendItemSymbol.node.getAttribute("stroke-opacity")+" fill-opacity = "+k.legendItemSymbol.node.getAttribute("fill-opacity")+" \n stroke-width = "+k.legendItemSymbol.node.getAttribute("stroke-width")+" stroke-linecap = "+k.legendItemSymbol.node.getAttribute("stroke-linecap")+"></path>\n </svg>":"<span style='color: "+(0,l.parseColor)(e.rawCosmetics.fill)+";'>"+p+" </span>"}),s=(0,l.parseTooltext)(e.plotToolText,g,h,{value:e.value,nodeValue:e.props.value,nodeDataValue:e.value,plotFillColor:e.rawCosmetics&&"#"+e.rawCosmetics.fill,plotFillAlpha:e.rawCosmetics&&e.rawCosmetics.alpha,plotIdentifier:x?"<svg height= "+n.height+" width = "+n.width+" overflow='visible' xmlns=\"http://www.w3.org/2000/svg\">\n <path d= "+d+" fill = "+k.legendItemSymbol.node.getAttribute("fill")+" stroke = "+k.legendItemSymbol.node.getAttribute("stroke")+"\n stroke-opacity = "+k.legendItemSymbol.node.getAttribute("stroke-opacity")+" fill-opacity = "+k.legendItemSymbol.node.getAttribute("fill-opacity")+" \n stroke-width = "+k.legendItemSymbol.node.getAttribute("stroke-width")+" stroke-linecap = "+k.legendItemSymbol.node.getAttribute("stroke-linecap")+"></path>\n </svg>":"<span style='color: "+(0,l.parseColor)(e.rawCosmetics.fill)+";'>"+p+" </span>"}),e.setToolText=u,e.setPlotTooltext=e.setToolText?e.setToolText:s,e.plotToolText?"<div style='padding: 2px; vertical-align: middle;'>\n <span style='color: "+(0,l.parseColor)(e.rawCosmetics.fill)+";'>"+p+" </span>\n "+e.setPlotTooltext+"\n </div>":"<div style='padding: 2px; vertical-align: middle;'>\n <span style='color: "+(0,l.parseColor)(e.rawCosmetics.fill)+";'>"+p+" </span>"+e.label+"\n \n \n "+e.value+"\n </div>"}(this.config,this,e);r.height=r.height>1?r.height:1,this.addGraphicalElement({el:"rect",attr:r,container:{id:"sankey-node-group",label:"nodeGroup",isParent:!0},tooltext:n,component:this,id:a,label:"node-rect"}),o.text&&this.addGraphicalElement({el:"text",attr:o,container:{id:"sankey-node-label-group",label:"nodeLabelGroup",isParent:!0},tooltext:n,component:this,id:a,css:{},outlineText:i,label:"node-label"})},t}(n.SmartRenderer);t["default"]=d},1432:function(e,t,a){"use strict";var o=a(273);t.__esModule=!0,t["default"]=function(e){var t,a,o,n,l,s,c,d,h,u,p,g,f,m,v,b,x=e.config.links,k=e.getFromEnv("orientation"),y=e.getFromEnv("number-formatter"),C=e.getFromEnv("dataSource").chart,w=(0,r.pluckNumber)(C.nodelinkpadding,0);x.forEach((function(x){switch(x.props.index+=r.BLANK,b=x.props.index,p=(0,r.parseUnsafeString)((0,r.pluck)(x.from)),m=(0,r.parseUnsafeString)((0,r.pluck)(x.to)),h=e.getChild(p,"nodes"),u=e.getChild(m,"nodes"),v=(0,r.parseUnsafeString)((0,r.pluck)(x.tooltext,C.linktooltext,r.UNDEF)),g=h.config.value,f=u.config.value,a=(0,r.pluck)(x.color,C.linkcolor,"source"),c=h.config.rawCosmetics.fill,d=u.config.rawCosmetics.fill,a.toLowerCase()){case"source":a=c;break;case"target":a=d;break;case"blend":a=c+","+d}s={fill:a,alpha:(0,r.pluckNumber)(x.alpha,C.linkalpha,20),focusAlpha:(0,r.pluckNumber)(x.hoveralpha,C.linkhoveralpha,75),focusOutAlpha:10},t="horizontal"===k?0:90,o={stroke:(0,r.toRaphaelColor)({color:s.fill,alpha:s.alpha,angle:t}),"stroke-linecap":"butt",fill:"none"},n={stroke:(0,r.toRaphaelColor)({color:s.fill,alpha:s.focusAlpha,angle:t})},l={stroke:(0,r.toRaphaelColor)({color:s.fill,alpha:s.focusOutAlpha,angle:t})},e.attachChild(i["default"],"links",b).setData({from:p,to:m,mode:"normal",linkValue:(0,r.pluckNumber)(x.value),value:y.dataLabels((0,r.pluckNumber)(x.value)),fromValue:g,toValue:f,toolText:v,color:s.linkColor,alpha:s.alpha,curvature:(0,r.clampNumber)((0,r.pluckNumber)(x.curvature,C.linkcurvature,.5),0,1),linkType:(0,r.pluck)(x.type,C.linktype),linkPadding:w,sourceFill:c,targetFill:d,props:x.props,rawCosmetics:s,eventArgs:{color:s.fill,alpha:s.alpha,value:x.value,from:x.props.source.label,to:x.props.target.label},style:{link:{normal:o,focus:n,focusOut:l}}})})),e.attachListeners()};var r=a(278),i=o(a(1433))},1433:function(e,t,a){"use strict";var o=a(273);t.__esModule=!0,t["default"]=void 0;var r=o(a(277)),i=o(a(292)),n=a(294),l=a(1434),s=a(278);function c(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,o)}return a}var d=function(e,t,a){var o,r,i,n,l,c,d,h,u=s.isIpad?"■":"◼",p=t.getLinkedParent(),g=t.getFromEnv("legend"),f=a&&a.drawcustomlegendicon,m=[],v=[],b=f&&g&&g.config&&g.config.isActive?g.getItem(p.config.legendItemMap[t.config.from]):null,x=b&&b.getGraphicalElement(),k=f&&g&&g.config&&g.config.isActive?g.getItem(p.config.legendItemMap[t.config.to]):null,y=k&&k.getGraphicalElement();if(c="",b&&x){if(o=(l=x&&x.legendItemSymbol)&&l.attrs.path.split(/(?=[LMCA])/),n=l&&l.node.getBBox(),o&&o.length)for(r=0;r<o.length;r++)v.push(o[r][0]),o[r]=o[r].substring(1,o[r].length),r===o.length-1&&(o[r]=o[r].substring(0,o[r].length-1)),m[r]=o[r].split(",");if(m&&m.length)for(r=0;r<m.length;r++){if(m[r].length)for(i=0;i<m[r].length;i++)m[r][i]=Number(m[r][i]),"A"!==v[r]?0===i?m[r][i]=m[r][i]-n.x:1===i&&(m[r][i]=m[r][i]-n.y):"A"===v[r]&&(5===i?m[r][i]=m[r][i]-n.x:6===i&&(m[r][i]=m[r][i]-n.y));c+=v[r]+m[r].toString()}c+="Z"}return d={linkDataValue:e.value,fromPlotIdentifier:b?"<svg height= "+n.height+" width = "+n.width+" overflow='visible' xmlns=\"http://www.w3.org/2000/svg\">\n <path d= "+c+" fill = "+x.legendItemSymbol.node.getAttribute("fill")+" stroke = "+x.legendItemSymbol.node.getAttribute("stroke")+"\n stroke-opacity = "+x.legendItemSymbol.node.getAttribute("stroke-opacity")+" fill-opacity = "+x.legendItemSymbol.node.getAttribute("fill-opacity")+" \n stroke-width = "+x.legendItemSymbol.node.getAttribute("stroke-width")+" stroke-linecap = "+x.legendItemSymbol.node.getAttribute("stroke-linecap")+"></path>\n </svg>":"<span style='color: "+(0,s.parseColor)(e.sourceFill)+";'>"+u+" </span>",toPlotIdentifier:k?"<svg height= "+n.height+" width = "+n.width+" overflow= 'visible' xmlns=\"http://www.w3.org/2000/svg\">\n <path d= "+c+" fill = "+y.legendItemSymbol.node.getAttribute("fill")+" stroke = "+y.legendItemSymbol.node.getAttribute("stroke")+"\n stroke-opacity = "+y.legendItemSymbol.node.getAttribute("stroke-opacity")+" fill-opacity = "+y.legendItemSymbol.node.getAttribute("fill-opacity")+" \n stroke-width = "+y.legendItemSymbol.node.getAttribute("stroke-width")+" stroke-linecap = "+y.legendItemSymbol.node.getAttribute("stroke-linecap")+"></path>\n </svg>":"<span style='color: "+(0,s.parseColor)(e.targetFill)+";'>"+u+" </span>",flowDirection:"→"},h=(0,s.parseTooltext)(e.toolText,[148,149,142,150,151,152,153],e,d),e.setLinkTooltext=h,e.toolText?"<div style='padding: 2px; vertical-align: middle;'>\n "+e.setLinkTooltext+"\n </div>":"<div style='padding: 2px; vertical-align: middle;'>\n <span style='color: "+(0,s.parseColor)(e.sourceFill)+";'>"+u+" </span>"+e.props.source.label+"\n →\n <span style='color: "+(0,s.parseColor)(e.targetFill)+"'>"+u+" </span>"+e.props.target.label+"\n \n "+e.value+"\n </div>"},h=function(e){function t(){return e.apply(this,arguments)||this}(0,i["default"])(t,e);var a=t.prototype;return a.getType=function(){return"link"},a.getName=function(){return"sankey-link"},a.configureAttributes=function(e){void 0===e&&(e={}),Object.assign(this.config,e)},a.allocatePosition=function(){var e,t,a,o=this.config,i=o.mode,n=o.style,s=o.props,d=o.linkPadding,h=o.linkType,u=o.curvature,p=this.getFromEnv("chartConfig").orientation,g=n.link[i],f={x:s.x0,y:s.y0,width:s.linkWidth},m=s.source,v=s.target,b=m.props.layer,x=v.props.layer,k={x:s.x1,y:s.y1,width:s.linkWidth>1?s.linkWidth:2},y=this.getLinkedParent().config.columnGap;t=Math.max("vertical"===p?m.props.x1-m.props.x0:m.props.y1-m.props.y0,0),a=Math.max("vertical"===p?m.props.x1-m.props.x0:m.props.y1-m.props.y0,0),"custom"!==h&&"uniform"!==h&&(h=s.linkWidth>y*Math.abs(x-b)/3||f.width>.7*t||k.width>.7*a?"custom":"uniform"),e=(0,l.sankeyRibbon)(f,k,{orientation:p,padding:d,curvature:u,linkType:h}),o.linkAttr=function(e){for(var t=1;t<arguments.length;t++){var a=null!=arguments[t]?arguments[t]:{};t%2?c(Object(a),!0).forEach((function(t){(0,r["default"])(e,t,a[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(a)):c(Object(a)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(a,t))}))}return e}({path:e,"stroke-width":"uniform"===h?s.linkWidth>1?s.linkWidth:2:"none"},g),"custom"===h&&(o.linkAttr.fill=o.linkAttr.stroke,o.linkAttr.stroke="none")},a.draw=function(){var e=this.config,t=this.getFromEnv("chartConfig"),a=e.id,o=e.linkAttr;this.addGraphicalElement({el:"path",attr:o,container:{id:"sankey-link-group",label:"linkGroup",isParent:!0},tooltext:d(this.config,this,t),component:this,id:a,label:"sankey-link"})},t}(n.SmartRenderer);t["default"]=h},1434:function(e,t,a){"use strict";t.__esModule=!0,t.sankeyRibbon=void 0;var o="M",r="C",i="L";t.sankeyRibbon=function(e,t,a){var n=a.curvature,l=a.orientation,s=a.padding,c=a.linkType;return"horizontal"===(l=l||"horizontal")?(e.x=Math.floor(e.x+s),t.x=Math.ceil(t.x-s),function(e,t,a,n){void 0===a&&(a=.5),void 0===n&&(n="uniform");var l,s,c,d,h,u,p,g,f,m,v,b,x=e.width,k=t.width;return Math.abs(e.y-t.y)<1e-4&&(t.y+=1e-4),l=e.x+10,h=(s=e.y)-x/2,u=s+x/2,c=t.x-10,p=(d=t.y)-k/2,g=d+k/2,(c<=l||"uniform"!==n)&&(l-=10,c+=10),f=a*Math.abs(c-l)+l,m=s,v=(1-a)*Math.abs(c-l)+l,b=d,"uniform"===n?o+e.x+","+s+" "+i+l+","+s+" "+r+f+","+m+" "+v+","+b+" "+c+","+d+" "+i+t.x+","+d:o+l+","+h+" "+i+l+","+h+" "+r+f+","+h+" "+v+","+p+" "+c+","+p+" "+i+c+","+g+" "+r+v+","+g+" "+f+","+u+" "+l+","+u+" "+i+l+","+h}(e,t,n,c)):(e.y=Math.floor(e.y+s),t.y=Math.ceil(t.y-s),function(e,t,a,n){void 0===a&&(a=.5),void 0===n&&(n="uniform");var l,s,c,d,h,u,p,g,f,m,v,b,x=e.width,k=t.width;return Math.abs(e.x-t.x)<1e-4&&(t.x+=1e-4),h=(l=e.x)-x/2,u=l+x/2,s=e.y+10,p=(c=t.x)-k/2,g=c+k/2,((d=t.y-10)<=s||"uniform"!==n)&&(s-=10,d+=10),f=l,m=a*Math.abs(d-s)+s,v=c,b=(1-a)*Math.abs(d-s)+s,"uniform"===n?o+l+","+e.y+" "+i+l+","+s+" "+r+f+","+m+" "+v+","+b+" "+c+","+d+" "+i+c+","+t.y:o+h+","+s+" "+i+h+","+s+" "+r+h+","+m+" "+p+","+b+" "+p+","+d+" "+i+g+","+d+" "+r+g+","+b+" "+u+","+m+" "+u+","+s+" "+i+h+","+s}(e,t,n,c))}},1435:function(e,t,a){"use strict";function o(e,t){var a="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(a)return(a=a.call(e)).next.bind(a);if(Array.isArray(e)||(a=function(e,t){if(!e)return;if("string"==typeof e)return r(e,t);var a=Object.prototype.toString.call(e).slice(8,-1);"Object"===a&&e.constructor&&(a=e.constructor.name);if("Map"===a||"Set"===a)return Array.from(e);if("Arguments"===a||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a))return r(e,t)}(e))||t&&e&&"number"==typeof e.length){a&&(e=a);var o=0;return function(){return o>=e.length?{done:!0}:{done:!1,value:e[o++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function r(e,t){(null==t||t>e.length)&&(t=e.length);for(var a=0,o=new Array(t);a<t;a++)o[a]=e[a];return o}t.__esModule=!0,t.createGraph=function(e){return c(e),p(e),e},t.createNodeLinks=c,t.createNodeValues=p,t.traverseGraph=function(e){var t=e.nodes,a=new Set(t),r=new Set,i=0;for(;a.size;){if(a.forEach((function(e){var t=e;t.props.depth=i;for(var a,n=o(t.props.sourceLinks);!(a=n()).done;){var l=a.value;r.add(l.props.target)}})),++i>t.length)return!1;a=r,r=new Set}return!0},t.createNodeDimensions=function(e,t){for(var a,r=t,s=e.nodes,c=i.apply(null,s.map((function(e){return e.props.depth})))+1,d=new Array(c),h=o(s);!(a=h()).done;){var p=a.value,m=i(0,n(c-1,p.props.depth));p.props.layer=m,d[m]?d[m].push(p):d[m]=[p]}if(function(e,t,a){var r,s,c,d,h,u=e,p=a,g=t,f=p.orientation;r=i.apply(null,u[g-1].map((function(e){return e.nodeWidth}))),h=f===l?(p.height[1]-p.height[0]-r)/(g-1):(p.width[1]-p.width[0]-r)/(g-1),c=p.nodeGutter,s=i.apply(null,u.map((function(e){return e.length}))),f===l?((s-1)*c>=p.width[1]-p.width[0]||(s-1)*c<0)&&(c=p.nodeGutter=10):((s-1)*c>=p.height[1]-p.height[0]||(s-1)*c<0)&&(c=p.nodeGutter=10);d=n.apply(null,u.map((function(e){for(var t,a=0,r=o(e);!(t=r()).done;){a+=t.value.props.value}return f===l?(p.width[1]-p.width[0]-(e.length-1)*c)/a:(p.height[1]-p.height[0]-(e.length-1)*c)/a}))),h&&h!==Infinity&&h!==-Infinity||(h=0);d&&d!==Infinity&&d!==-Infinity||(d=0);for(var m,v=o(u);!(m=v()).done;){var b=m.value;if(f===l)for(var x,k=p.width[0],y=o(b);!(x=y()).done;){for(var C,w=x.value,A=o(w.props.sourceLinks);!(C=A()).done;){var S=C.value;S.props.linkWidth=S.value*d}w.props.y0=p.height[0]+w.props.layer*h,w.props.y1=w.props.y0+w.nodeWidth,w.props.x0=k,w.props.x1=w.props.x0+d*w.props.value,k=w.props.x1+c}else for(var N,L=p.height[0],D=o(b);!(N=D()).done;){for(var E,T=N.value,F=o(T.props.sourceLinks);!(E=F()).done;){var P=E.value;P.props.linkWidth=P.value*d}T.props.x0=p.width[0]+T.props.layer*h,T.props.x1=T.props.x0+T.nodeWidth,T.props.y0=L,T.props.y1=T.props.y0+d*T.props.value,L=T.props.y1+c}}}(d,c,r),r.nodeRelaxation)for(var v=0;v<6;++v){var b=Math.pow(.99,v),x=Math.max(1-b,(v+1)/6);f(d,b,x,r),g(d,b,x,r)}!function(e,t){for(var a,r=e.nodes,i=t&&t.orientation,n=o(r);!(a=n()).done;){var s=a.value;if(i===l){for(var c,d=s.props.x0,h=d,p=o(u(s.props.sourceLinks,i));!(c=p()).done;){var g=c.value;g.props.x0=d+g.props.linkWidth/2,g.props.y0=g.props.source.props.y1,d+=g.props.linkWidth}for(var f,m=o(s.props.targetLinks);!(f=m()).done;){var v=f.value;v.props.x1=h+v.props.linkWidth/2,v.props.y1=v.props.target.props.y0,h+=v.props.linkWidth}}else{for(var b,x=s.props.y0,k=x,y=o(u(s.props.sourceLinks));!(b=y()).done;){var C=b.value;C.props.y0=x+C.props.linkWidth/2,C.props.x0=C.props.source.props.x1,x+=C.props.linkWidth}for(var w,A=o(s.props.targetLinks);!(w=A()).done;){var S=w.value;S.props.y1=k+S.props.linkWidth/2,S.props.x1=S.props.target.props.x0,k+=S.props.linkWidth}}}}(e,r)};var i=Math.max,n=Math.min,l="vertical";function s(e,t){var a=t;return e.find((function(e){return e.id===a||e.label===a}))}function c(e){var t=e.nodes,a=e.links;t.forEach((function(e){var t=e;t.props.sourceLinks=[],t.props.targetLinks=[]})),a.forEach((function(e,a){var o=e,r=o.props,i=r.source,n=r.target;"object"!=typeof i&&(i=o.props.source=s(t,i)),"object"!=typeof n&&(n=o.props.target=s(t,n)),i.props.sourceLinks.push(o),n.props.targetLinks.push(o),o.props.index=a}))}function d(e,t){return e.props.target.props.y0-t.props.target.props.y0}function h(e,t){return e.props.target.props.x0-t.props.target.props.x0}function u(e,t){var a=e;return t===l?a.sort(h):a.sort(d),a}function p(e){var t=e.nodes;t&&t.forEach((function(e){for(var t,a=0,r=0,n=e,l=o(n.props.sourceLinks);!(t=l()).done;){var s=t.value.value;a+=Number(s)}for(var c,d=o(n.props.targetLinks);!(c=d()).done;){var h=c.value.value;r+=Number(h)}n.props.value=i(a,r)}))}function g(e,t,a,r){for(var i=r&&r.orientation,n=1,s=e.length;n<s;++n){for(var c,d=void 0,h=e[n],u=o(h);!(c=u()).done;){for(var p,g=c.value,f=0,v=0,b=o(g.props.targetLinks);!(p=b()).done;){var k=p.value,y=k.value*(g.props.layer-k.props.source.props.layer);f+=x(k.props.source,g,r)*y,v+=y}v>0&&(i===l?(d=(f/v-g.props.x0)*t,g.props.x0+=d,g.props.x1+=d):(d=(f/v-g.props.y0)*t,g.props.y0+=d,g.props.y1+=d))}m(h,a,r)}}function f(e,t,a,r){for(var i=r&&r.orientation,n=e.length-2;n>=0;--n){for(var s,c=void 0,d=e[n],h=o(d);!(s=h()).done;){for(var u,p=s.value,g=0,f=0,v=o(p.props.sourceLinks);!(u=v()).done;){var b=u.value,x=b.props.target,y=b.value*(x.props.layer-p.props.layer);g+=k(p,x,r)*y,f+=y}f>0&&(i===l?(c=(g/f-p.props.x0)*t,p.props.x0+=c,p.props.x1+=c):(c=(g/f-p.props.y0)*t,p.props.y0+=c,p.props.y1+=c))}m(d,a,r)}}function m(e,t,a){var o=e.length>>1,r=e[o];(a&&a.orientation)===l?(b(e,r.props.x0-a.nodeGutter,o-1,t,a),v(e,r.props.x1+a.nodeGutter,o+1,t,a),b(e,a.width[1],e.length-1,t,a),v(e,a.width[0],0,t,a)):(b(e,r.props.y0-a.nodeGutter,o-1,t,a),v(e,r.props.y1+a.nodeGutter,o+1,t,a),b(e,a.height[1],e.length-1,t,a),v(e,a.height[0],0,t,a))}function v(e,t,a,o,r){for(var i=a,n=t,s=r&&r.orientation;i<e.length;++i){var c=e[i],d=(n-(s===l?c.props.x0:c.props.y0))*o;s===l?(d>1e-6&&(c.props.x0+=d,c.props.x1+=d),n=c.props.x1+r.nodeGutter):(d>1e-6&&(c.props.y0+=d,c.props.y1+=d),n=c.props.y1+r.nodeGutter)}}function b(e,t,a,o,r){for(var i=a,n=t,s=r&&r.orientation;i>=0;--i){var c=e[i],d=((s===l?c.props.x1:c.props.y1)-n)*o;s===l?(d>1e-6&&(c.props.x0-=d,c.props.x1-=d),n=c.props.x0-r.nodeGutter):(d>1e-6&&(c.props.y0-=d,c.props.y1-=d),n=c.props.y0-r.nodeGutter)}}function x(e,t,a){for(var r,i=((a&&a.orientation)===l?e.props.x0:e.props.y0)-(e.props.sourceLinks.length-1)*a.nodeGutter/2,n=o(e.props.sourceLinks);!(r=n()).done;){var s=r.value,c=s.props.target,d=s.props.linkWidth;if(c===t)break;i+=d+a.nodeGutter}for(var h,u=o(t.props.targetLinks);!(h=u()).done;){var p=h.value,g=p.props.source,f=p.props.linkWidth;if(g===e)break;i-=f}return i}function k(e,t,a){for(var r,i=((a&&a.orientation)===l?t.props.x0:t.props.y0)-(t.props.targetLinks.length-1)*a.nodeGutter/2,n=o(t.props.targetLinks);!(r=n()).done;){var s=r.value,c=s.props.source,d=s.props.linkWidth;if(c===e)break;i+=d+a.nodeGutter}for(var h,u=o(e.props.sourceLinks);!(h=u()).done;){var p=h.value,g=p.props.target,f=p.props.linkWidth;if(g===t)break;i-=f}return i}},1436:function(e,t,a){"use strict";t.__esModule=!0,t["default"]=void 0;t["default"]={"*.dataset.sankey":function(){var e=this.getClip("canvas"),t=this.getClip("init");return{"linkGroup.appearing":function(){return[{initialAttr:{"clip-rect":t},finalAttr:{"clip-rect":e},slot:"plot"}]},"nodeGroup.appearing":function(){return[{initialAttr:{opacity:0},finalAttr:{opacity:1},slot:"axis"}]},"nodeLabelGroup.appearing":function(){return[{initialAttr:{opacity:0},finalAttr:{opacity:1},slot:"final"}]}}}}},1437:function(e,t,a){"use strict";t.__esModule=!0,t["default"]=function(e){var t,a,r,i,n,l,s,c=e.getDSdef(),d=e.getFromEnv("dataSource").chart||{},h=e.config.dataLabelStyle,u=e.getFromEnv("sankey-graph"),p=u.nodes,g=u.links;t=(0,o.pluckNumber)(d.nodelabelfontbold,d.labelfontbold,0)?"bold":"normal",a=(0,o.pluckNumber)(d.nodelabelfontitalic,d.labelfontitalic,0)?"italic":"normal",r=(0,o.pluckNumber)(d.nodelabelborderthickness,d.labelborderthickness,1),i=(0,o.pluckNumber)(d.nodelabelborderpadding,d.labelborderpadding,2),n=(0,o.pluckNumber)(d.nodelabelborderradius,d.labelborderradius,0),l=(0,o.pluckNumber)(d.nodelabelborderdashed,d.labelborderdashed,0)?(0,o.getDashStyle)((0,o.pluckNumber)(d.nodelabelborderdashlen,d.labelborderdashlen,4),(0,o.pluckNumber)(d.nodelabelborderdashgap,d.labelborderdashgap,2)):o.DASH_DEF,s=(0,o.pluckNumber)(d.shownodes,1),(0,o.componentFactory)(e,c,"dataset",1),e.getDatasets()[0].configure({showNodes:s,nodeWidth:e.config.nodeWidth,nodeRelaxation:(0,o.pluckNumber)(d.noderelaxation,1),nodeSpacing:(0,o.pluckNumber)(d.nodespacing,10),labelSepChar:(0,o.parseUnsafeString)((0,o.pluck)(d.labelSepChar,",")),enableDrag:(0,o.pluckNumber)(d.enabledrag,!0),highlightEffect:(0,o.pluckNumber)(d.highlighteffect,!0),style:{node:{label:{fontFamily:(0,o.pluck)(d.nodelabelfont,d.labelfont,h.fontFamily),fontSize:(0,o.pluck)(d.nodelabelfontsize,d.labelfontsize,d.basefontsize,11+o.PXSTRING),fontWeight:t,fontStyle:a,borderThickness:r,borderPadding:i,borderRadius:n,borderDash:l}},link:{}},nodes:p,links:g})};var o=a(278)},1438:function(e,t,a){"use strict";var o=a(273);t.__esModule=!0,t["default"]=void 0;var r=o(a(1439))["default"];t["default"]=r},1439: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(1440)),l=o(a(1442)),s=o(a(1443)),c=o(a(628)),d=o(a(1444)),h=o(a(1448)),u=a(278),p=o(a(422)),g=u.preDefStr.defaultFontStr,f=u.preDefStr.divLineAlpha3DStr,m=u.preDefStr.divLineAlphaStr,v=u.preDefStr.altVGridColorStr,b=u.preDefStr.altVGridAlphaStr,x=u.preDefStr.altHGridColorStr,k=u.preDefStr.altHGridAlphaStr,y=u.preDefStr.colors.c000000,C=function(e){return void 0!==e.id},w=function(e){function t(){var t;return(t=e.call(this)||this).tooltipsepchar=" = ",t.hasGradientLegend=!0,t.registerFactory("axis",s["default"],["canvas"]),t.registerFactory("legend",h["default"],["canvas"]),t.registerFactory("colormanager-decider",d["default"],["legend"]),t.registerFactory("dataset",c["default"],["colormanager-decider","vCanvas"]),t}(0,r["default"])(t,e),t.getName=function(){return"HeatMap"};var a=t.prototype;return a.getName=function(){return"HeatMap"},a.__setDefaultConfig=function(){e.prototype.__setDefaultConfig.call(this);var t=this.config;t.isSingleSeries=!0,t.hasLegend=!0,t.defaultDatasetType="heatmap",t.enablemousetracking=!0},a._checkInvalidSpecificData=function(){var e,t=this.getFromEnv("dataSource"),a=t.dataset,o=t.colorrange;if(a)for(var r=0;r<a.length;r++)if(a[r].data){e=a[r].data;break}if(!a||!e||0===e.length||!o||!o.color&&!Number(o.gradient))return!0},a.parseChartAttr=function(t){e.prototype.parseChartAttr.call(this,t),this.config.drawTrendRegion=0},a.configureAttributes=function(e){var t,a,o=this.config,r=this.getFromEnv("dataSource"),i=this.config.skipConfigureIteration={},n=e.dataset,l=[];if(t=r.rows&&r.rows.row.filter(C),a=r.columns&&r.columns.column.filter(C),!t||!a){for(var s=0;s<n.length;s++)for(var c=0;c<n[s].data.length;c++)l.push(n[s].data[c]);t||(t=l.map((function(e){return(0,u.getFirstValue)(e.rowid)})).filter((function(e,t,a){return a.indexOf(e)===t}))),a||(a=l.map((function(e){return(0,u.getFirstValue)(e.columnid)})).filter((function(e,t,a){return a.indexOf(e)===t})))}this.parseChartAttr(e),this.addToEnv("chartColorRange",e.colorrange||{}),this.createComponent(e),this._feedAxesRawData(),i.axis=!0,this.addToEnv("totalRows",t.length),this.addToEnv("totalColumns",a.length),this.configureChildren(),this.asyncDraw(),this.getFromEnv("toolTipController").setStyle({backgroundColor:u.hasSVG?(0,u.convertColor)(o.tooltipbgcolor||"FFF",o.tooltipbgalpha||100):(o.tooltipbgcolor||"FFF").replace(/\s+/g,"").replace(/^#?([a-f0-9]+)/gi,"#$1"),color:(o.tooltipcolor||o.basefontcolor||"545454").replace(/^#?([a-f0-9]+)/gi,"#$1"),borderColor:u.hasSVG?(0,u.convertColor)(o.tooltipbordercolor||"666",o.tooltipborderalpha||100):(o.tooltipbordercolor||"666").replace(/\s+/g,"").replace(/^#?([a-f0-9]+)/gi,"#$1"),borderWidth:(0,u.pluckNumber)(o.tooltipborderthickness,1)+"px",showToolTipShadow:(0,u.pluckNumber)(o.showtooltipshadow||0),borderRadius:(0,u.pluckNumber)(o.tooltipborderradius,0)+"px",fontSize:(0,u.pluckNumber)(o.basefontsize,10)+"px",fontFamily:o.basefont||this.getFromEnv("style").inCanfontFamily,padding:(0,u.pluckNumber)(o.tooltippadding||3)+"px"})},a._postSpaceManagement=function(){var e=this.getChildren("xAxis")[0],t=this.getFromEnv("legend"),a=this.config.xDepth;this.setAxisDimention(),e&&e.shiftLabels(-a,0),t&&t.postSpaceManager(),this.allocateDimensionOfChartMenuBar()},a.setAxisDimention=function(){var e=this.getChildren("xAxis")&&this.getChildren("xAxis")[0],t=this.getChildren("yAxis")&&this.getChildren("yAxis")[0],a=this.getFromEnv("chartConfig"),o=this.getChildren("canvas")[0],r=o.config,i=o.getEffectiveDimensions(),n=i.left,l=i.top,s=i.width,c=i.height,d=i.paddingLeft,h=i.paddingRight,u=r&&r.canvasBorderWidth,p=r&&r.canvasPadding;e&&e.setAxisConfig({canvasPaddingLeft:Math.max(d,p),canvasPaddingRight:Math.max(h,p)}),e&&e.setAxisDimention({x:n,y:e.config.isOpposit?l+(a.shift||0)-u:l+c+(a.shift||0)+u,opposite:e.config.isOpposit?l+c+u:l-u,axisLength:s}),t&&t.setAxisDimention({x:t.config.isOpposit?n+s+u:n-u,y:l,opposite:t.config.isOpposit?n-u:n+s+u,axisLength:c})},a._feedAxesRawData=function(){var e,t,a=this.getFromEnv("color-manager"),o=this.getFromEnv("dataSource"),r=o.chart,i=this.config.is3D,n=i?u.chartPaletteStr.chart3D:u.chartPaletteStr.chart2D,l=(0,u.parseUnsafeString)(r.xaxisposition).toLowerCase(),s=(0,u.pluckFontSizeMaintainUnit)(r.outcnvbasefontsize,r.basefontsize,10);return e={mapTickValuesById:!0,isVertical:!1,isReverse:!1,isOpposit:(0,u.pluckNumber)("top"===l||void 0,"bottom"!==l&&void 0,!!this.config.placeAxisLabelsOnTop),outCanfontFamily:(0,u.pluck)(r.outcnvbasefont,r.basefont,g),outCanfontSize:this.computeFontSize(s),outCanfontSizeWithUnit:s,outCancolor:(0,u.pluck)(r.outcnvbasefontcolor,r.basefontcolor,a.getColor(n.baseFontColor)).replace(/^#?([a-f0-9]+)/gi,"#$1"),axisNamePadding:r.xaxisnamepadding,axisValuePadding:(0,u.pluckNumber)(r.labelxpadding,r.labelpadding,4),axisNameFont:r.xaxisnamefont,axisNameFontSize:this.computeFontSize(r.xaxisnamefontsize),axisNameFontSizeWithUnit:r.xaxisnamefontsize,axisNameFontColor:r.xaxisnamefontcolor,axisNameFontBold:r.xaxisnamefontbold,axisNameFontItalic:r.xaxisnamefontitalic,axisNameBgColor:r.xaxisnamebgcolor,axisNameBorderColor:r.xaxisnamebordercolor,axisNameAlpha:r.xaxisnamealpha,axisNameFontAlpha:r.xaxisnamefontalpha,axisNameBgAlpha:r.xaxisnamebgalpha,axisNameBorderAlpha:r.xaxisnameborderalpha,axisNameBorderPadding:r.xaxisnameborderpadding,axisNameBorderRadius:r.xaxisnameborderradius,axisNameBorderThickness:r.xaxisnameborderthickness,axisNameBorderDashed:r.xaxisnameborderdashed,axisNameBorderDashLen:r.xaxisnameborderdashlen,axisNameBorderDashGap:r.xaxisnameborderdashgap,useEllipsesWhenOverflow:r.useellipseswhenoverflow,divLineColor:(0,u.pluck)(r.vdivlinecolor,r.divlinecolor,a.getColor(n.divLineColor)),divLineAlpha:(0,u.pluck)(r.vdivlinealpha,r.divlinealpha,i?a.getColor(f):a.getColor(m)),divLineThickness:(0,u.pluckNumber)(r.vdivlinethickness,r.divlinethickness,1),divLineIsDashed:Boolean((0,u.pluckNumber)(r.vdivlinedashed,r.vdivlineisdashed,r.divlinedashed,r.divlineisdashed,0)),divLineDashLen:(0,u.pluckNumber)(r.vdivlinedashlen,r.divlinedashlen,4),divLineDashGap:(0,u.pluckNumber)(r.vdivlinedashgap,r.divlinedashgap,2),showAlternateGridColor:(0,u.pluckNumber)(r.showalternatevgridcolor,0),alternateGridColor:(0,u.pluck)(r.alternatevgridcolor,a.getColor(v)),alternateGridAlpha:(0,u.pluck)(r.alternatevgridalpha,a.getColor(b)),numDivLines:r.numvdivlines,labelFont:r.labelfont,labelFontSize:this.computeFontSize(r.labelfontsize),labelFontSizeWithUnit:r.labelfontsize,labelFontColor:r.labelfontcolor,labelAlpha:r.labelalpha,labelFontBold:r.labelfontbold,labelFontItalic:r.labelfontitalic,labelBdrColor:r.labelbordercolor,labelBdrAlpha:r.labelborderalpha,labelLink:r.labellink,labelBgColor:r.labelbgcolor,labelBgAlpha:r.labelbgalpha,labelBdrThickness:r.labelborderthickness,labelBdrPadding:r.labelborderpadding,labelBdrRadius:r.labelborderradius,labelBdrDashed:r.labelborderdashed,labelBdrDashLen:r.labelborderdashlen,labelBdrDashGap:r.labelborderdashgap,axisName:r.xaxisname,axisMinValue:r.xaxisminvalue,axisMaxValue:r.xaxismaxvalue,setAdaptiveMin:r.setadaptivexmin,adjustDiv:r.adjustvdiv,labelDisplay:r.labeldisplay,showLabels:(0,u.pluckNumber)(r.showxaxislabels,r.showlabels),rotateLabels:r.rotatexaxislabels,slantLabel:(0,u.pluckNumber)(r.slantlabels,r.slantlabel),labelStep:(0,u.pluckNumber)(r.labelstep,r.xaxisvaluesstep),showAxisValues:(0,u.pluckNumber)(r.showxaxisvalues,r.showxaxisvalue),maxLabelHeight:r.maxlabelheight,showZeroPlane:r.showvzeroplane,zeroPlaneColor:r.vzeroplanecolor,zeroPlaneThickness:r.vzeroplanethickness,zeroPlaneAlpha:r.vzeroplanealpha,showZeroPlaneValue:r.showvzeroplanevalue,trendlineColor:r.trendlinecolor,trendlineToolText:r.trendlinetooltext,trendlineThickness:r.trendlinethickness,trendlineAlpha:r.trendlinealpha,showTrendlinesOnTop:r.showtrendlinesontop,showAxisLine:(0,u.pluckNumber)(r.showxaxisline,r.showaxislines,r.drawAxisLines,0),axisLineThickness:(0,u.pluckNumber)(r.xaxislinethickness,r.axislinethickness,1),axisLineAlpha:(0,u.pluckNumber)(r.xaxislinealpha,r.axislinealpha,100),axisLineColor:(0,u.pluck)(r.xaxislinecolor,r.axislinecolor,y)},t={mapTickValuesById:!0,isVertical:!0,isReverse:!1,isOpposit:(0,p["default"])(r.yaxisposition,"right"),outCanfontFamily:(0,u.pluck)(r.outcnvbasefont,r.basefont,g),outCanfontSize:this.computeFontSize(s),outCanfontSizeWithUnit:s,outCancolor:(0,u.pluck)(r.outcnvbasefontcolor,r.basefontcolor,a.getColor(n.baseFontColor)).replace(/^#?([a-f0-9]+)/gi,"#$1"),axisNamePadding:r.yaxisnamepadding,axisValuePadding:(0,u.pluckNumber)(r.labelypadding,r.yaxisvaluespadding,4),axisNameFont:r.yaxisnamefont,axisNameFontSize:this.computeFontSize(r.yaxisnamefontsize),axisNameFontSizeWithUnit:r.yaxisnamefontsize,axisNameFontColor:r.yaxisnamefontcolor,axisNameFontBold:r.yaxisnamefontbold,axisNameFontItalic:r.yaxisnamefontitalic,axisNameBgColor:r.yaxisnamebgcolor,axisNameBorderColor:r.yaxisnamebordercolor,axisNameAlpha:r.yaxisnamealpha,axisNameFontAlpha:r.yaxisnamefontalpha,axisNameBgAlpha:r.yaxisnamebgalpha,axisNameBorderAlpha:r.yaxisnameborderalpha,axisNameBorderPadding:r.yaxisnameborderpadding,axisNameBorderRadius:r.yaxisnameborderradius,axisNameBorderThickness:r.yaxisnameborderthickness,axisNameBorderDashed:r.yaxisnameborderdashed,axisNameBorderDashLen:r.yaxisnameborderdashlen,axisNameBorderDashGap:r.yaxisnameborderdashgap,axisNameWidth:r.yaxisnamewidth,useEllipsesWhenOverflow:r.useellipseswhenoverflow,rotateAxisName:(0,u.pluckNumber)(r.rotateyaxisname,1),axisName:r.yaxisname,showAlternateGridColor:(0,u.pluckNumber)(r.showalternatehgridcolor,1),alternateGridColor:(0,u.pluck)(r.alternatehgridcolor,a.getColor(x)),alternateGridAlpha:(0,u.pluck)(r.alternatehgridalpha,a.getColor(k)),numDivLines:r.numdivlines,axisMinValue:r.yaxisminvalue,axisMaxValue:r.yaxismaxvalue,setAdaptiveMin:r.setadaptiveymin,adjustDiv:r.adjustdiv,labelStep:r.yaxisvaluesstep,showLabels:(0,u.pluckNumber)(r.showyaxislabels,r.showlabels),maxLabelWidthPercent:r.maxlabelwidthpercent,showAxisValues:(0,u.pluckNumber)(r.showyaxisvalues,r.showyaxisvalue),divLineColor:(0,u.pluck)(r.hdivlinecolor,a.getColor(n.divLineColor)),divLineAlpha:(0,u.pluck)(r.hdivlinealpha,a.getColor(m)),divLineThickness:(0,u.pluckNumber)(r.hdivlinethickness,1),divLineIsDashed:Boolean((0,u.pluckNumber)(r.hdivlinedashed,r.hdivlineisdashed,0)),divLineDashLen:(0,u.pluckNumber)(r.hdivlinedashlen,4),divLineDashGap:(0,u.pluckNumber)(r.hdivlinedashgap,2),showZeroPlane:r.showzeroplane,zeroPlaneColor:r.zeroplanecolor,zeroPlaneThickness:r.zeroplanethickness,zeroPlaneAlpha:r.zeroplanealpha,showZeroPlaneValue:r.showzeroplanevalue,trendlineColor:r.trendlinecolor,trendlineToolText:r.trendlinetooltext,trendlineThickness:r.trendlinethickness,trendlineAlpha:r.trendlinealpha,showTrendlinesOnTop:r.showtrendlinesontop,showAxisLine:(0,u.pluckNumber)(r.showyaxisline,r.showaxislines,r.drawAxisLines,0),axisLineThickness:(0,u.pluckNumber)(r.yaxislinethickness,r.axislinethickness,1),axisLineAlpha:(0,u.pluckNumber)(r.yaxislinealpha,r.axislinealpha,100),axisLineColor:(0,u.pluck)(r.yaxislinecolor,r.axislinecolor,y),labelFont:r.labelfont,labelFontSize:this.computeFontSize(r.labelfontsize),labelFontSizeWithUnit:r.labelfontsize,labelFontColor:r.labelfontcolor,labelAlpha:r.labelalpha,labelFontBold:r.labelfontbold,labelFontItalic:r.labelfontitalic,labelBdrColor:r.labelbordercolor,labelBdrAlpha:r.labelborderalpha,labelLink:r.labellink,labelBgColor:r.labelbgcolor,labelBgAlpha:r.labelbgalpha,labelBdrThickness:r.labelborderthickness,labelBdrPadding:r.labelborderpadding,labelBdrRadius:r.labelborderradius,labelBdrDashed:r.labelborderdashed,labelBdrDashLen:r.labelborderdashlen,labelBdrDashGap:r.labelborderdashgap},e.vtrendlines=o.vtrendlines,t.trendlines=o.trendlines,{yAxisConf:[t],xAxisConf:[e]}},a._setCategories=function(){var e,t,a,o,r,i,n,l,s,c,d,h,p=this.getFromEnv("dataSource"),g=this.getChildren("xAxis"),f=this.getChildren("yAxis"),m=[],v=[];if(!p.columns||!p.rows)for(p.columns={},p.columns.column=i=[],p.rows={},p.rows.row=n=[],a=0;a<(p.dataset&&p.dataset.length);a++)for(e=p.dataset&&p.dataset[a].data&&p.dataset[a].data.length,t=0;t<e;t++){for(l=(0,u.getFirstValue)(p.dataset[a].data[t].columnid),s=(0,u.getFirstValue)(p.dataset[a].data[t].rowid),c=!0,d=!0,h=0;h<i.length;h++)l===i[h].id&&(c=!1);for(c&&(o={id:l,label:l},p.columns.column.push(o)),h=0;h<n.length;h++)s===n[h].id&&(d=!1);d&&(r={id:s,label:s},p.rows.row.push(r))}for(i=p.columns.column,n=p.rows.row,t=0;t<(i&&i.length);t++)i[t].label=(0,u.pluck)(i[t].label,i[t].name,i[t].id),m.push(i[t]);for(p.columns.column=m,t=0;t<(n&&n.length);t++)n[t].label=(0,u.pluck)(n[t].label,n[t].name,n[t].id),v.push(n[t]);p.rows.row=v,p.columns&&g[0].setTickValues(p.columns.column),p.rows&&f[0].setTickValues(p.rows.row),g[0].setAxisConfig({categoryNumDivLines:this.getFromEnv("totalColumns")-1,categoryDivLinesFromZero:0,showAlternateGridColor:0}),f[0].setAxisConfig({categoryNumDivLines:this.getFromEnv("totalRows")-1,categoryDivLinesFromZero:0,showAlternateGridColor:0})},a.getDSdef=function(){return n["default"]},a.getDSGroupdef=function(){return l["default"]},t}(i["default"]);t["default"]=w},1440:function(e,t,a){"use strict";var o=a(273);t.__esModule=!0,t["default"]=void 0;var r=o(a(292)),i=a(294),n=a(278),l=a(286),s=o(a(1441)),c=a(290),d=n.preDefStr.pStr,h=n.preDefStr.sStr,u=n.preDefStr.miterStr,p=n.preDefStr.hiddenStr,g=n.preDefStr.showHoverEffectStr,f=n.preDefStr.POSITION_START,m=n.preDefStr.POSITION_TOP,v=n.preDefStr.POSITION_END,b=n.preDefStr.POSITION_BOTTOM,x=n.preDefStr.DEFAULT,k=function(e){return null!=e},y=function(e,t,a){return a.getFromEnv("animationManager").setAnimation({el:"group",attr:e,container:t,component:a,label:"group"})},C="rgba(192,192,192,"+(n.isIE?.002:1e-6)+")",w=n.hasTouch?n.TOUCH_THRESHOLD_PIXELS:n.CLICK_THRESHOLD_PIXELS,A=Math.max,S=Math.min,N=Math.abs;(0,l.addDep)({name:"heatmapAnimation",type:"animationRule",extension:s["default"]});var L=function(e){function t(){var t;return(t=e.call(this)||this).components={},t.graphics={},t.dataSetArray=[],t}(0,r["default"])(t,e);var a=t.prototype;return a.getType=function(){return"dataset"},a.getName=function(){return"heatMap"},a.configureAttributes=function(e){if(!e)return!1;this.trimData(e),this.config.JSONData=e;var t,a,o,r,i,l,s,c,u=this.getFromEnv("chart"),p=this.config,g=p.JSONData,f=g.data,m=f&&f.length,v=this.getFromEnv("chart-attrib"),b=this.getFromEnv("color-manager"),x=(0,n.pluckNumber)(g.dashed,v.plotborderdashed),k=this.components.data,y=this.components.plotGrid=[],C=u.isBar,w=u.config.is3D,A=-Infinity,S=+Infinity,N=this.getFromEnv("totalRows"),L=this.getFromEnv("totalColumns");for(s=0;s<N;s++)for(y.push([]),c=0;c<L;c++)y[s].push([]);for(this.setState("visible",1===(0,n.pluckNumber)(this.getState("visible"),this.config.JSONData.visible,!Number(this.config.JSONData.initiallyhidden),1)),p.showplotborder=(0,n.pluckNumber)(v.showplotborder,w?0:1),p.plotDashLen=(0,n.pluckNumber)(v.plotborderdashlen,5),p.plotDashGap=(0,n.pluckNumber)(v.plotborderdashgap,4),p.showTextOutLine=(0,n.pluckNumber)(v.textoutline,0),p.plotfillAngle=(0,n.pluckNumber)(360-v.plotfillangle,C?180:90),p.plotFillAlpha=(0,n.pluck)(g.alpha,v.plotfillalpha,"100"),p.plotColor=(0,n.pluck)(g.color,b.getPlotColor(this.index||this.positionIndex)),p.isRoundEdges=(0,n.pluckNumber)(v.useroundedges,0),p.plotRadius=(0,n.pluckNumber)(v.useRoundEdges,p.isRoundEdges?1:0),p.plotFillRatio=(0,n.pluck)(g.ratio,v.plotfillratio),p.plotgradientcolor=(0,n.getDefinedColor)(v.plotgradientcolor,b.getColor("plotGradientColor")),p.plotBorderAlpha=p.showplotborder?(0,n.pluck)(v.plotborderalpha,p.plotFillAlpha,"100"):0,p.plotBorderColor=(0,n.pluck)(v.plotbordercolor,w?"FFFFFF":b.getColor("plotBorderColor")),p.plotBorderThickness=(0,n.pluckNumber)(v.plotborderthickness,1),p.plotBorderDashStyle=x?(0,n.getDashStyle)(p.plotDashLen,p.plotDashGap):"none",p.showValues=(0,n.pluckNumber)(g.showvalues,v.showvalues,1),p.valuePadding=(0,n.pluckNumber)(v.valuepadding,2),p.enableAnimation=i=(0,n.pluckNumber)(v.animation,v.defaultanimation,1),p.animation=!!i&&{duration:1e3*(0,n.pluckNumber)(v.animationduration,1)},p.transposeAnimation=(0,n.pluckNumber)(v.transposeanimation,i),p.transposeAnimDuration=1e3*(0,n.pluckNumber)(v.transposeanimduration,.2),p.showShadow=p.isRoundEdges||w?(0,n.pluckNumber)(v.showshadow,1):(0,n.pluckNumber)(v.showshadow,b.getColor("showShadow")),p.showHoverEffect=(0,n.pluckNumber)(v.plothovereffect,v.showhovereffect,void 0),p.showTooltip=(0,n.pluckNumber)(v.showtooltip,1),p.definedGroupPadding=Math.max((0,n.pluckNumber)(v.plotspacepercent),0),p.plotSpacePercent=Math.max((0,n.pluckNumber)(v.plotspacepercent,20)%100,0),p.maxColWidth=(0,n.pluckNumber)(C?v.maxbarheight:v.maxcolwidth,50),p.plotPaddingPercent=(0,n.pluckNumber)(v.plotpaddingpercent),p.rotateValues=(0,n.pluckNumber)(v.rotatevalues)?270:0,p.placeValuesInside=(0,n.pluckNumber)(v.placevaluesinside,0),p.defaultPadding={left:.5,right:.5,top:.5,bottom:.5},p.use3DLighting=(0,n.pluckNumber)(v.use3dlighting,1),p.parentYAxis=(0,n.pluck)(g.parentyaxis&&g.parentyaxis.toLowerCase(),d)===h?1:0,k||(k=this.components.data=[]),l=0;l<m;l++)t=f&&f[l],r=(o=k[l])&&o.config,o||(o=k[l]={graphics:{}}),o.config||(r=k[l].config={}),r.setValue=a=this.getFromEnv("number-formatter").getCleanValue(t.value),A=Math.max(A,a),S=Math.min(S,a);p.maxValue=A,p.minValue=S,this._setConfigure(),this.setState("dirty",!0)},a._setConfigure=function(){var e,t,a,o,r,i,l,s,c,d,h,u,p,g,f,m,v,b,x,k,y,w,A,S,N,L,D,E,T,F,P,_,V,I,B,M,O,R,G,H,z,W,U,j,J,K=this,q=K.getFromEnv("chart"),Y=K.config,X=K.config.JSONData,Q=X.data,Z=Q&&Q.length,$=K.getFromEnv("chartConfig"),ee=K.getFromEnv("chart-attrib"),te=Y.showplotborder,ae=Y.plotColor=K.getFromEnv("color-manager").getPlotColor(K.index||K.positionIndex),oe=(0,n.pluckNumber)(ee.showtooltip,1),re=(0,n.parseUnsafeString)((0,n.pluck)(ee.tooltipsepchar,": ")),ie=(0,n.pluckNumber)(ee.useplotgradientcolor,1),ne=n.BLANKSTRING,le=Y.plotDashLen,se=Y.plotDashGap,ce=Y.plotBorderThickness,de=Y.isRoundEdges,he=Y.showHoverEffect,ue=Y.plotfillAngle,pe=Y.plotFillAlpha,ge=Y.plotFillRatio,fe=Y.plotBorderAlpha,me=Y.plotBorderColor,ve=K.getFromEnv("chartColorRange"),be=Y.mapByPercent=(0,n.pluckNumber)(ve.mapbypercent,0),xe=Y.mapByCategory=(0,n.pluckNumber)(ee.mapbycategory,0),ke=ve&&(0,n.pluckNumber)(ve.gradient),ye=K.getFromEnv("number-formatter"),Ce=q.isBar,we=q.config.is3D,Ae=Y.parentYAxis,Se=Y.maxValue,Ne=Y.minValue,Le=(0,n.getValidValue)(ee.tltype,n.BLANK),De=(0,n.getValidValue)(ee.trtype,n.BLANK),Ee=(0,n.getValidValue)(ee.bltype,n.BLANK),Te=(0,n.getValidValue)(ee.brtype,n.BLANK),Fe=n.BLANK,Pe=n.BLANK,_e=n.BLANK,Ve=n.BLANK,Ie=q.getFromEnv("colorManager");if(W=$.style.inCanfontFamily,J=$.style.inCanfontSize,j=parseInt(J,10||10),U=$.style.inCancolor,"normal","normal",D=Se-Ne,Y.eventAttached||(K.addExtEventListener("legendUpdate",(function(e,t){if("legend"===t.component)t.legendItem.hasState("hidden")?K.show(t.legendItem,e):K.hide(t.legendItem,e);else for(M=t.maxMinArray,O=M.length,L=0;L<O;L++)K.updatePlot(M[L].min,M[L].max)}),Ie),Y.eventAttached=!0),(!ke||xe)&&(Y.colorMap=[],ve.color))for(L=0;L<ve.color.length;L++)Y.colorMap[L]={config:ve.color[L],dataSet:K},Y.colorMap[L].config.visible=!0;for(L=0;L<Z;L++)r=Q&&Q[L],i=(s=(l=K.components.data[L])&&l.config).setValue,s.showValue=(0,n.pluckNumber)(r.showvalue,Y.showValues),s.setLink=(0,n.pluck)(r.link),s.toolTipValue=R=ye.dataLabels(i,Ae),s.setDisplayValue=N=(0,n.parseUnsafeString)(r.displayvalue),s.displayValue=(0,n.pluck)(N,R),G=(0,n.pluckNumber)(r.dashed),H=(0,n.pluckNumber)(r.dashlen,le),z=se=(0,n.pluckNumber)(r.dashgap,se),s.plotBorderDashStyle=1===G?(0,n.getDashStyle)(H,z):0===G?"none":Y.plotBorderDashStyle,s.percentValue=be?V=r.value&&Math.round((r.value-Ne)/D*1e4)/100:void 0,s.dataLabelStyle=K._configureDataLabelStyle(r),s.value=B=xe?r.colorrangelabel||r.categoryid:be?V:s.setValue,E=Ie.getColor(B),s.colorRangeLabel=r.colorrangelabel||E.label,l.legendItemIndex=E.seriesIndex,s.legendItemId=E.legendItemId,E&&!E.code&&(E.code="ffffff"),E&&E.outOfRange&&(E.code="ffffff"),s.plotFillAlpha=pe=(0,n.pluckNumber)(r.alpha,E&&E.oriAlpha,Y.plotFillAlpha),ae=(0,n.pluck)(r.color,E&&E.code),i<0&&!de&&(ue=Ce?180-ue:360-ue),s.colorArr=(0,n.getColumnColor)(ae+","+Y.plotgradientcolor,pe.toString(),ge,ue,de,me,fe.toString(),Ce?1:0,!!we),s.visible=!0,s.color=(0,n.convertColor)(ae,s.plotFillAlpha),s.rawPlotColor=ae,0!==he&&(p=(0,n.pluck)(r.hovercolor,X.hovercolor,ee.plotfillhovercolor,ee.columnhovercolor,ae),g=(0,n.pluck)(r.hoveralpha,X.hoveralpha,ee.plotfillhoveralpha,ee.columnhoveralpha,"25"),!(0,n.pluck)(r.hovergradientcolor,X.hovergradientcolor,ee.plothovergradientcolor,!ie&&n.BLANKSTRING)&&n.BLANKSTRING,f=(0,n.pluck)(r.hoverratio,X.hoverratio,ee.plothoverratio,ge),m=(0,n.pluckNumber)(360-r.hoverangle,360-X.hoverangle,360-ee.plothoverangle,ue),v=(0,n.pluck)(r.borderhovercolor,X.borderhovercolor,ee.plotborderhovercolor,me),b=(0,n.pluck)(r.borderhoveralpha,X.borderhoveralpha,ee.plotborderhoveralpha,fe,pe),x=(0,n.pluckNumber)(r.borderhoverthickness,X.borderhoverthickness,ee.plotborderhoverthickness,ce),k=(0,n.pluckNumber)(r.borderhoverdashed,X.borderhoverdashed,ee.plotborderhoverdashed),y=(0,n.pluckNumber)(r.borderhoverdashgap,X.borderhoverdashgap,ee.plotborderhoverdashgap,le),w=(0,n.pluckNumber)(r.borderhoverdashlen,X.borderhoverdashlen,ee.plotborderhoverdashlen,se),A=k?(0,n.getDashStyle)(w,y):Y.plotBorderDashStyle,1===he&&p===ae&&(p=(0,n.getLightColor)(p,70)),S=(0,n.getColumnColor)(p,g,f,m,de,v,b.toString(),Ce?1:0,!!we),s.setRolloutAttr={fill:(0,n.toRaphaelColor)(s.color),stroke:te&&(0,n.toRaphaelColor)(s.colorArr[1])||C,"stroke-width":ce,"stroke-dasharray":[]},s.setRolloverAttr={fill:(0,n.toRaphaelColor)(S[0]),stroke:te&&(0,n.toRaphaelColor)(S[1])||C,"stroke-width":x,"stroke-dasharray":A}),be&&(V=ye.percentValue(V)),s.setValue=i=ye.getCleanValue(r.value),s.toolTipValue=ye.dataLabels(i,Ae),e=s.toolTipValue,a=(0,n.getValidValue)((0,n.parseUnsafeString)((0,n.pluck)(r.tooltext,X.plottooltext,ee.plottooltext),!1)),s.tlLabel=T=(0,n.parseUnsafeString)((0,n.pluck)(r.tllabel,r.ltlabel)),s.trLabel=F=(0,n.parseUnsafeString)((0,n.pluck)(r.trlabel,r.rtlabel)),s.blLabel=P=(0,n.parseUnsafeString)((0,n.pluck)(r.bllabel,r.lblabel)),s.brLabel=_=(0,n.parseUnsafeString)((0,n.pluck)(r.brlabel,r.rblabel)),s.tlLabelStyle={fontFamily:(0,n.pluck)(E.tlLabelFont,ee.tlfont,W),fontSize:(0,n.pluckNumber)(E.tlLabelFontSize,ee.tlfontsize,j)+"px",color:(0,n.convertColor)((0,n.pluck)(E.tlLabelFontColor,ee.tlfontcolor,U),100),fontWeight:"normal",fontStyle:"normal"},(0,n.setLineHeight)(s.tlLabelStyle),s.trLabelStyle={fontFamily:(0,n.pluck)(E.trLabelFont,ee.trfont,W),fontSize:(0,n.pluckNumber)(E.trLabelFontSize,ee.trfontsize,j)+"px",color:(0,n.convertColor)((0,n.pluck)(E.trLabelFontColor,ee.trfontcolor,U),100),fontWeight:"normal",fontStyle:"normal"},s.brLabelStyle={fontFamily:(0,n.pluck)(E.brLabelFont,ee.brfont,W),fontSize:(0,n.pluckNumber)(E.brLabelFontSize,ee.brfontsize,j)+"px",color:(0,n.convertColor)((0,n.pluck)(E.brLabelFontColor,ee.brfontcolor,U),100),fontWeight:"normal",fontStyle:"normal"},s.blLabelStyle={fontFamily:(0,n.pluck)(E.blLabelFont,ee.blfont,W),fontSize:(0,n.pluckNumber)(E.blLabelFontSize,ee.blfontsize,j)+"px",color:(0,n.convertColor)((0,n.pluck)(E.blLabelFontColor,ee.blfontcolor,U),100),fontWeight:"normal",fontStyle:"normal"},N=(0,n.getValidValue)((0,n.parseUnsafeString)(r.displayvalue)),I=xe?N:(0,n.pluck)(r.displayvalue,e),s.displayValue=(0,n.pluck)(N,V,s.toolTipValue),Le!==n.BLANK&&(Fe="<b>"+Le+re+"</b>"),De!==n.BLANK&&(Pe="<b>"+De+re+"</b>"),Ee!==n.BLANK&&(_e="<b>"+Ee+re+"</b>"),Te!==n.BLANK&&(Ve="<b>"+Te+re+"</b>"),u=(0,n.getFirstValue)(Q[L].columnid),h=(0,n.getFirstValue)(Q[L].rowid),c=K.getFromEnv("xAxis").getCategoryFromId(u.toLowerCase()),d=K.getFromEnv("yAxis").getCategoryFromId(h.toLowerCase()),oe&&(null===e?ne=!1:void 0!==a?(o=[1,2,5,6,7,14,93,94,95,96,97,98,112,113,114,115,116,117],t={formattedValue:e,value:r.value,yaxisName:(0,n.parseUnsafeString)(ee.yaxisname),xaxisName:(0,n.parseUnsafeString)(ee.xaxisname),displayValue:N,percentValue:be?V:n.BLANK,tlLabel:T,trLabel:F,blLabel:P,brLabel:_,rowLabel:d.tickObj&&d.tickObj.label,columnLabel:c.tickObj&&c.tickObj.label,percentDataValue:be?V:n.BLANK,trtype:De,tltype:Le,brType:Te,blType:Ee,colorRangeLabel:s.colorRangeLabel},ne=(0,n.parseTooltext)(a,o,t,r,ee,t)):ne=(be?"<b>Value"+re+"</b>"+e+"<br /><b>Percentage"+re+"</b>"+V:I)+(T!==n.BLANK?"<br />"+(Fe+T):n.BLANK)+(F!==n.BLANK?"<br />"+Pe+F:n.BLANK)+(P!==n.BLANK?"<br />"+_e+P:n.BLANK)+(_!==n.BLANK?"<br />"+Ve+_:n.BLANK)),s.toolText=ne,s.setTooltext=ne},a.hide=function(e){var t,a,o,r,i,n=this.components.data,l=this.getFromEnv("chart").getChildren("colorRange")[0];for(r=e.config.datasetObj.code,t=0,a=n.length;t<a;t++)Object.keys(n[t]).length&&(i=l.getColorObj(n[t].config.value).code,o=n[t].config,r===i&&(n[t].graphics.element&&this.getFromEnv("animationManager").setAnimation({el:n[t].graphics.element,attr:{"fill-opacity":0,"stroke-width":0},component:this}),n[t].graphics.hotElement&&n[t].graphics.hotElement.hide(),o.visible=!1,n[t].visible=!1));e.setLegendState("hidden")},a.show=function(e){var t,a,o,r,i,n,l=this.components.data,s=this.getFromEnv("animationManager"),c=this.getFromEnv("chart").getChildren("colorRange")[0];for(n=e.config.datasetObj.code,r=0,i=l.length;r<i;r++)Object.keys(l[r]).length&&(a=(t=l[r].config).plotFillAlpha/100,n===(!(o=c.getColorObj(l[r].config.value)).outOfRange&&o.code)&&(l[r].graphics.element&&s.setAnimation({el:l[r].graphics.element,attr:{visibility:"visible"},component:this}),l[r].graphics.element&&s.setAnimation({el:l[r].graphics.element,component:this,attr:{"fill-opacity":a,"stroke-width":this.config.plotBorderThickness}}),l[r].graphics.hotElement&&l[r].graphics.hotElement.show(),l[r].graphics.valEle&&l[r].graphics.valEle.show(),l[r].graphics.tlLabel&&l[r].graphics.tlLabel.show(),l[r].graphics.trLabel&&l[r].graphics.trLabel.show(),l[r].graphics.blLabel&&l[r].graphics.blLabel.show(),l[r].graphics.brLabel&&l[r].graphics.brLabel.show(),t.visible=!0,l[r].visible=!0));e&&e.removeLegendState("hidden")},a.updatePlot=function(e,t){var a,o,r,i,n,l=this.getFromEnv("animationManager"),s=this.components.data;for(r=0,i=s.length;r<i;r++)Object.keys(s[r]).length&&(o=(a=s[r].config).plotFillAlpha/100,(n=s[r].config.value)<e||n>t?a.visible&&(s[r].graphics.element&&l.setAnimation({el:s[r].graphics.element,attr:{"fill-opacity":0,"stroke-width":0},component:this}),s[r].graphics.hotElement&&s[r].graphics.hotElement.hide(),a.visible=!1,s[r].visible=!1):a.visible||(s[r].graphics.element&&l.setAnimation({el:s[r].graphics.element,attr:{"fill-opacity":o,"stroke-width":this.config.plotBorderThickness},callback:function(){this.show()},component:this}),s[r].graphics.hotElement&&s[r].graphics.hotElement.show(),s[r].graphics.valEle&&s[r].graphics.valEle.show(),s[r].graphics.tlLabel&&s[r].graphics.tlLabel.show(),s[r].graphics.trLabel&&s[r].graphics.trLabel.show(),s[r].graphics.blLabel&&s[r].graphics.blLabel.show(),s[r].graphics.brLabel&&s[r].graphics.brLabel.show(),a.visible=!0,s[r].visible=!0))},a._checkPointObj=function(e,t,a,o){var r,i,n,l,s,c=this.components.plotGrid,d=this.getFromEnv("chartConfig"),h=d.viewPortConfig,u=d.plotborderthickness;if(r=c[t]&&c[t][e],i=(i=(u=d.showplotborder?u:0)/2)%2==0?i+1:Math.round(i),r&&r.config&&r.config.visible&&(n=a-(r._xPos-h.x*h.scaleX)+i,l=o-r._yPos+i,s=n>=0&&n<=r._width+u&&l>=0&&l<=r._height+u))return{pointIndex:r._index,hovered:s,pointObj:r}},a._getHoveredPlot=function(e,t){var a,o,r,i,n=e,l=t,s=this.getFromEnv("xAxis"),c=this.getFromEnv("yAxis"),d=this.getFromEnv("chartConfig").canvasHeight/this.getFromEnv("totalRows");return n+=s.getTranslation(),l+=c.getTranslation(),o=c.getValue(l+d/2),i=Math.floor(o),a=s.getValue(n),(r=Math.round(a))-a>0?o-i>.5?this._checkPointObj(r,i,n,l)||this._checkPointObj(r-1,i,n,l):this._checkPointObj(r,i-1,n,l)||this._checkPointObj(r,i,n,l):o-i>.5?this._checkPointObj(r+1,i,n,l)||this._checkPointObj(r,i,n,l):this._checkPointObj(r,i-1,n,l)||this._checkPointObj(r+1,i,n,l)||this._checkPointObj(r,i,n,l)},a.parsePlotAttributes=function(e,t){var a,o,r,i,l,s,c,d,h,g,f,m,v,b,x,k,y=this.config,A=this.config.JSONData.data,S=t,N=this.getFromEnv("chart"),L=this.getFromEnv("xAxis"),D=this.getFromEnv("yAxis"),E=this.getFromEnv("chartConfig"),T=y.plotBorderThickness,F=y.plotRadius,P=N.getFromEnv("legend")&&N.getFromEnv("legend").config.isActive,_=this.components.plotGrid;D.yBasePos=D.getPixel(D.getAxisBase()),e&&Object.keys(e).length&&(f=E.canvasWidth/this.getFromEnv("totalColumns"),l=E.canvasHeight/this.getFromEnv("totalRows"),k=e.trackerConfig={},d=(h=e&&e.config).setValue,b=(0,n.getFirstValue)(A[S].columnid),x=(0,n.getFirstValue)(A[S].rowid),m=L.getCategoryFromId(b.toLowerCase()),v=D.getCategoryFromId(x.toLowerCase()),0!==m.index&&!m.index||0!==v.index&&!v.index||(y.mapByCategory||null!==d)&&(c=h.setLink,g=h.colorArr,e.graphics||(this.components.data[S].graphics={}),o=L.getPixel(m.index)-f/2,r=D.getPixel(v.index)-l/2,i=f,s=h.toolText,k.eventArgs={index:S,link:c,value:h.percentValue||d,displayValue:h.displayValue,columnId:m.tickObj.id,rowId:v.tickObj.id,tlLabel:h.tlLabel,trLabel:h.trLabel,blLabel:h.blLabel,brLabel:h.brLabel,colorRangeLabel:h.colorRangeLabel,color:h.rawPlotColor,alpha:h.plotFillAlpha,showValue:h.showValue,toolText:s||"",id:n.BLANKSTRING,datasetIndex:P?e.datasetIndex:void 0,datasetName:P?e.datasetName:void 0,visible:this.getState("visible")},a={x:o,y:r,width:i,height:l||1,r:F,fill:h.color,stroke:(0,n.toRaphaelColor)(g[1]),"stroke-width":T,"stroke-dasharray":void 0,"fill-opacity":h.plotFillAlpha/100,"stroke-linejoin":u,visibility:h.visible?"visible":p,cursor:c?"pointer":n.BLANKSTRING},e._xPos=o,e._yPos=r,e._height=l,e._width=i,e._index=S,_[v.index][m.index]=e,e.graphics.element?((a={x:o,y:r,width:i,height:l||1}).fill=h.color,a.stroke=(0,n.toRaphaelColor)(g[1]),a["fill-opacity"]=h.visible?h.plotFillAlpha/100:0,a["stroke-width"]=h.visible?T:0,a["stroke-dasharray"]=void 0,a["stroke-linejoin"]=u,a.visibility=h.visible?"visible":p,a.cursor=c?"pointer":n.BLANKSTRING):(a["fill-opacity"]=h.plotFillAlpha/100,a["stroke-width"]=T),(c||E.showtooltip)&&(l<w&&(r-=(w-l)/2,l=w),k.attr={x:o,y:r,width:i,height:l,r:F,cursor:c?"pointer":n.BLANKSTRING,stroke:C,"stroke-width":T,fill:C,visibility:h.visible?"visible":p}),h.props={element:{attr:a}}))},a.allocatePosition=function(){var e,t,a,o=this.config.JSONData.data,r=this.components.data;for(e=o&&o.length,t=0;t<e;t++)a=r[t],this.parsePlotAttributes(a,t)},a.drawPlots=function(){var e,t,a,o,r,i,l,s,d,h,u,p,f,m=this.config,v=this.config.JSONData.data,b=this.getFromEnv("animationManager"),x=this.components.data,k=[],y=(this.components.removeDataArr||[]).length;for(e=v&&v.length,t=0;t<e;t++)f=(a=x[t]).trackerConfig,i=a&&a.config,a.graphics&&(l=a.graphics.element?this.getState("visible")?"updating":"hiding":"appearing",r=i.setValue,h=(0,n.getFirstValue)(v[t].columnid),u=(0,n.getFirstValue)(v[t].rowid),s=this.getFromEnv("xAxis").getCategoryFromId(h.toLowerCase()),d=this.getFromEnv("yAxis").getCategoryFromId(u.toLowerCase()),0!==s.index&&!s.index||0!==d.index&&!d.index?a.graphics.element=a.graphics.element&&b.setAnimation({el:a.graphics.element,component:this}):(s.tickObj&&d.tickObj&&i.value!==n.BLANKSTRING||!a.graphics||(a.graphics.element=a.graphics.element&&b.setAnimation({el:a.graphics.element,component:this})),m.mapByCategory||null!==r||!a.graphics?(p=s.index.toString()+d.index.toString(),k.push(p),a.graphics.element?(o=a.graphics.element,i.elemCreated=!1,b.setAnimation({el:o,state:l,attr:i.props.element.attr,component:this})):(o=a.graphics.element=b.setAnimation({el:"rect",component:this,attr:i.props.element.attr,label:"rect",container:this.getContainer("plotGroup")}),i.elemCreated=!0),o.shadow({opacity:m.showShadow},this.getContainer("shadowGroup")).data("BBox",void 0),this.getFromEnv("chartConfig").enablemousetracking&&o.data("eventArgs",f.eventArgs).data(g,m.showHoverEffect).data("setRolloverAttr",i.setRolloverAttr||{}).data("setRolloutAttr",i.setRolloutAttr||{})):(a.graphics.element&&a.graphics.element.hide(),a.graphics.hotElement&&a.graphics.hotElement.hide())));this.drawn?this.drawLabel():this.addJob("labelJob",this.drawLabel.bind(this),c.priorityList.label),this.drawn=!0,y&&this.removeDataElems()},a.drawLabel=function(){var e,t,a,o,r,i,l,s,c,d,h,u,g,x,C,w,A,S,N,L,D,E,T,F,P,_,V,I,B,M,O,R,G,H,z,W=this.getFromEnv("chartConfig"),U=this.getFromEnv("smartLabel"),j=this.getFromEnv("animationManager"),J=W.dataLabelStyle,K=this.config,q=(this.config.JSONData.data||[]).length,Y=this.components.data,X=this.getContainer("labelGroup"),Q=this.graphics.tlLabelContainer,Z=this.graphics.blLabelContainer,$=this.graphics.trLabelContainer,ee=this.graphics.brLabelContainer;for(j.setAnimation({el:X,attr:{opacity:1},component:this,label:"text"}),Q||(Q=this.graphics.tlLabelContainer=y({name:"tlLabel"},X,this)),Z||(Z=this.graphics.blLabelContainer=y({name:"blLabel"},X,this)),$||($=this.graphics.trLabelContainer=y({name:"trLabel"},X,this)),ee||(ee=this.graphics.brLabelContainer=y({name:"brLabel"},X,this)),U.useEllipsesOnOverflow(W.useEllipsesWhenOverflow),U.setStyle(J),t=0;t<q;t++)void 0!==(e=Y[t])&&e.graphics&&(O=(M=e&&e.config).setValue,K.mapByCategory||null!==O?(a=M.displayValue,x=e.graphics.element,C=e._width,w=e._height,A=e._xPos,S=e._yPos,U.setStyle(J),a=(N=U.getSmartText(a,C,w,!1)).text,c=M.dataLabelStyle,k(a)&&a!==n.BLANK&&M.showValue?(o=S+.5*w,r=A+.5*C,s={text:a,title:N.tooltext||n.BLANKSTRING,visibility:M.visible?"visible":p,fill:c.color,direction:M.textDirection,x:r,y:o,cursor:M.setLink?"pointer":n.BLANKSTRING,"text-bound":[c.backgroundColor,c.borderColor,J.borderThickness,J.borderPadding,J.borderRadius,J.borderDash]},x?(e.graphics.valEle=j.setAnimation({el:e.graphics.valEle||"text",container:X,component:this,label:"text",attr:s}),e.graphics.valEle.outlineText(K.showTextOutLine,s.fill)):e.graphics.valEle&&(e.graphics.valEle=j.setAnimation({el:e.graphics.valEle,component:this})),L=M.tlLabel,D=M.trLabel,E=M.blLabel,T=M.brLabel,d=M.tlLabelStyle,h=M.trLabelStyle,u=M.blLabelStyle,g=M.brLabelStyle,F=k(L)&&L!==n.BLANK,P=k(D)&&D!==n.BLANK,_=k(E)&&E!==n.BLANK,V=k(T)&&T!==n.BLANK,I=C*(F&&P?.5:.9),B=.5*(w-(N&&N.height||0)),i=S+4,F?(U.setStyle(d),l=A,s={text:a=(N=U.getSmartText(L,I,B,!1)).text,title:N.tooltext||n.BLANKSTRING,visibility:M.visible?"visible":p,fill:d.color,"font-family":d.fontFamily,"font-weight":d.fontWeight,"line-height":d.lineHeight,"font-size":d.fontSize,"text-anchor":f,"vertical-align":m,direction:M.textDirection,x:l+4,y:i,"text-bound":[d.backgroundColor,d.borderColor,d.borderThickness,d.borderPadding,d.borderRadius,d.borderDash]},R=Object.assign(s,d),e.graphics.tlLabel=j.setAnimation({el:e.graphics.tlLabel||"text",component:this,attr:R,container:Q}),e.graphics.tlLabel.outlineText(K.showTextOutLine,R.fill)):e.graphics.tlLabel&&(e.graphics.tlLabel=j.setAnimation({el:e.graphics.tlLabel,component:this})),P?(U.setStyle(h),l=A+C,s={text:a=(N=U.getSmartText(D,I,B,!1)).text,title:N.tooltext||n.BLANKSTRING,visibility:M.visible?"visible":p,fill:h.color,"font-family":h.fontFamily,"font-weight":h.fontWeight,"line-height":h.lineHeight,"font-size":h.fontSize,"text-anchor":v,"vertical-align":m,direction:M.textDirection,x:l-4,y:i,"text-bound":[h.backgroundColor,h.borderColor,h.borderThickness,h.borderPadding,h.borderRadius,h.borderDash]},G=Object.assign(s,h),e.graphics.trLabel=j.setAnimation({el:e.graphics.trLabel||"text",attr:G,container:$,component:this}),e.graphics.trLabel.outlineText(K.showTextOutLine,G.fill)):e.graphics.trLabel&&(e.graphics.trLabel=j.setAnimation({el:e.graphics.trLabel,component:this})),i=S+w-4,_?(U.setStyle(u),l=A,s={text:a=(N=U.getSmartText(E,I,B,!1)).text,title:N.tooltext||n.BLANKSTRING,visibility:M.visible?"visible":p,fill:u.color,"font-family":u.fontFamily,"font-weight":u.fontWeight,"line-height":u.lineHeight,"font-size":u.fontSize,"text-anchor":f,"vertical-align":b,direction:M.textDirection,x:l+4,y:i,"text-bound":[u.backgroundColor,u.borderColor,u.borderThickness,u.borderPadding,u.borderRadius,u.borderDash]},H=Object.assign(s,u),e.graphics.blLabel=j.setAnimation({el:e.graphics.blLabel||"text",component:this,container:Z,attr:H}),e.graphics.blLabel.outlineText(K.showTextOutLine,H.fill)):e.graphics.blLabel&&(e.graphics.blLabel=j.setAnimation({el:e.graphics.blLabel,component:this})),V?(U.setStyle(u),l=A+C-4,s={text:a=(N=U.getSmartText(T,I,B,!1)).text,title:N.tooltext||n.BLANKSTRING,visibility:M.visible?"visible":p,fill:g.color,"font-family":g.fontFamily,"font-weight":g.fontWeight,"line-height":g.lineHeight,"font-size":g.fontSize,"text-anchor":v,"vertical-align":b,direction:M.textDirection,x:l,y:i,"text-bound":[g.backgroundColor,g.borderColor,g.borderThickness,g.borderPadding,g.borderRadius,g.borderDash]},z=Object.assign(s,g),e.graphics.brLabel=j.setAnimation({el:e.graphics.brLabel||"text",attr:z,container:ee,component:this}),e.graphics.brLabel.outlineText(K.showTextOutLine,z.fill)):e.graphics.brLabel&&(e.graphics.brLabel=j.setAnimation({el:e.graphics.brLabel,component:this}))):this.removeLabels(e)):this.removeLabels(e));this.labelDrawn=!0},a.removeLabels=function(e){var t=this.getFromEnv("animationManager");e.graphics.valEle&&(e.graphics.valEle=t.setAnimation({el:e.graphics.valEle,component:this})),e.graphics.tlLabel&&(e.graphics.tlLabel=t.setAnimation({el:e.graphics.tlLabel,component:this})),e.graphics.trLabel&&(e.graphics.trLabel=t.setAnimation({el:e.graphics.trLabel,component:this})),e.graphics.blLabel&&(e.graphics.blLabel=t.setAnimation({el:e.graphics.blLabel,component:this})),e.graphics.brLabel&&(e.graphics.brLabel=t.setAnimation({el:e.graphics.brLabel,component:this}))},a.removeDataElems=function(){var e,t,a,o,r=this.components,i=r.removeDataArr,n=r.pool||(r.pool={element:[],hotElement:[],label:[]}),l=i.length;for(o=0;o<l;o++)if(e=i[0],i.splice(0,1),e&&e.graphics){for(t in a=e.graphics)a[t]&&(a[t]=this.getFromEnv("animationManager").setAnimation({el:a[t],component:this}));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},a.getAxisValuePadding=function(){return this.config.defaultPadding},a.getDataLimits=function(){var e,t,a=this.components.data,o=this.config,r=a.length,i=-Infinity,n=+Infinity;for(e=0;e<r;e++)a[e]&&Object.keys(a[e]).length&&null!=(t=a[e].config.setValue)&&(i=A(i,t),n=S(n,t));return o.maxValue=i,o.minValue=n,{max:o.maxValue,min:o.minValue}},a.trimData=function(e){if(this.config.JSONData){var t,a,o=this.config,r=o&&o.context,i=r&&r.prevCatlen,n=this.getFromEnv("xAxis").getTicksLen(),l=i-n,s=o.JSONData,c=s.data&&s.data.length,d=e.data&&e.data.length||0,h=c-d;l>h?(t=l,a=n):(t=h,a=d),t>0&&this.removeData(a,t,!1)}},a.draw=function(){var e=this.getFromEnv("xAxis"),t=this.getFromEnv("groupMaxWidth");t||(t=N(e.getPixel(1)-e.getPixel(0)),this.addToEnv("groupMaxWidth",t)),!this.config.drawn&&this.createContainer(),e.getState("scrolling")||this.createCoordinates(),this.drawPlots()},a.createContainer=function(){var e,t,a=this.getLinkedParent(),o=this.groupName||this.dsGroup||this.getType();!a.getChildContainer(o+"VcanvasGroup")&&(o="default"),e=a.getChildContainer(o+"VcanvasGroup"),t=a.getChildContainer(o+"ShadowVcanvasGroup"),!this.getContainer("shadowGroup")&&this.addContainer("shadowGroup",y({name:"shadow-group"},t,this)),!this.getContainer("errorShadowGroup")&&this.addContainer("errorShadowGroup",y({name:"error-shadow-group"},t,this)),!this.getContainer("commonElemsGroup")&&this.addContainer("commonElemsGroup",y({name:"common-elems-group"},e,this)),!this.getContainer("plotGroup")&&this.addContainer("plotGroup",y({name:"plot-group"},e,this)),!this.getContainer("errorPlotGroup")&&this.addContainer("errorPlotGroup",y({name:"error-plot-group"},e,this)),this.getFromEnv("chart").hasAnchor&&this.getContainer("errorPlotGroup").insertBefore(this.getContainer("plotGroup")),!this.getContainer("labelGroup")&&this.addContainer("labelGroup",y({name:"label-group","class":"fusioncharts-datalabels"},a.getChildContainer("vcanvasLabelGroup"),this))},a.createCoordinates=function(){var e,t,a,o,r,i,n,l=this.getFromEnv("chart"),s=l.isBar,c=this.getFromEnv("yAxis"),d=this.getFromEnv("xAxis"),h=c.getPixel(c.getAxisBase()),u=l.config.xDepth||0,p=l.config.yDepth||0,g=this.components.data.length,f=this.getLinkedParent(),m=f.getstackConf&&f.getstackConf(),v=this.components.data;for(!s&&(u=-u),s&&(p=-p),o=0;o<g;o++)t=(e=v[o])&&e.config,void 0!==e&&(a=t._b,r=d.getPixel(m&&m[o].x||t._x)+u,i=c.getPixel(t._y)+p,n=(a?c.getPixel(a):h)+p,d.config.isVertical?(t._Px=i,t._Py=r,t._Pby=r,t._Pbx=n):(t._Px=r,t._Py=i,t._Pby=n,t._Pbx=r),this.getLineShift&&(t._Py+=this.getLineShift("y")))},a._decideTooltipType=function(e,t){var a=this.getFromEnv("chartConfig").drawTrendRegion,o=this.getFromEnv("toolTipController"),r=this.components.data[e],i=r&&(r.config.finalTooltext||r.config.toolText),n=r&&(r.graphics.element||this.graphics.sharedAnchor.element),l=this.config.currentToolTip,s=t.originalEvent;a&&n?this.config.currentToolTip=this.getLinkedParent()._drawTooltip(e,this.config.index,s,l):i&&!a&&(l?o.draw(s,i,l):l=this.config.currentToolTip=o.draw(s,i))},a._firePlotEvent=function(e,t,a){var o,r=this.getFromEnv("chart"),i=this.components.data[t],n=i.graphics.element,l=i.graphics.label;if(n)switch(o=i.config.setLink,e){case"fc-mouseover":this._decideTooltipType(t,a),function(e,t,a,o,r){var i=t.graphics,n=e.getFromEnv("animationManager"),l=i&&i.element,s=l&&l.getData();!0!==s.draged&&(n.setAnimationState("mouseOver"),l&&0!==s.showHoverEffect&&n.setAnimation({el:l,attr:l.getData().setRolloverAttr,component:r}),!o&&l&&e.plotEventHandler(l,a,"DataPlotRollOver"))}(r,i,a,void 0,this),o&&(n.css({cursor:"pointer"}),l&&l.css({cursor:"pointer"}));break;case"fc-mouseout":this.getFromEnv("toolTipController").hide(this.config.currentToolTip),function(e,t,a,o,r){var i=t.graphics,n=e.getFromEnv("animationManager"),l=i&&i.element,s=l&&l.getData();!0!==s.draged&&(n.setAnimationState("mouseOut"),l&&0!==s.showHoverEffect&&n.setAnimation({el:l,attr:l.getData().setRolloutAttr,component:r}),!o&&l&&e.plotEventHandler(l,a,"DataPlotRollOut"))}(r,i,a,void 0,this),o&&(n.css({cursor:x}),l&&l.css({cursor:x}));break;case"fc-click":r.plotEventHandler(n,a);break;case"fc-mousemove":this._decideTooltipType(t,a)}},a.removeData=function(e,t,a){var o,r,i,n=e,l=t,s=this.components,c=s.data,d=s.removeDataArr||(s.removeDataArr=[]),h=this.config,u=this.maxminFlag;for(void 0===l&&(l=1),(n=n||0)+l!==c.length&&this.getFromEnv("chart").isRealTime?0!==n&&void 0!==n||(this.endPosition=!1):this.endPosition=!0,s.removeDataArr=d=d.concat(c.splice(n,l)),o=(i=d.length)-1;o>=0;o--)if(d[o]){if((r=d[o].config).setValue!==h.maxValue&&r.setValue!==h.minValue||(u=this.maxminFlag=!0),r._x-=l,u)break}else d.splice(o,1);this.removeDataLen=i,this.resetCatPos&&this.resetCatPos(),u&&this.getDataLimits&&this.getDataLimits(),a&&this.asyncDraw()},t}(i.ComponentInterface);L.prototype._configureDataLabelStyle=n.configureDataLabelStyle;var D=L;t["default"]=D},1441:function(e,t,a){"use strict";t.__esModule=!0,t["default"]=void 0;t["default"]={"initial.dataset.heatMap":function(){return{"rect.appearing":function(){return[{initialAttr:{opacity:0},finalAttr:{opacity:1},slot:"plot"}]},"text.appearing":function(){return[{initialAttr:{opacity:0},finalAttr:{opacity:1},slot:"final"}]},"*":null}}}},1442:function(e,t,a){"use strict";var o=a(273);t.__esModule=!0,t["default"]=void 0;var r=o(a(292)),i=function(e){function t(){var t;return(t=e.call(this)||this).setState("visible",!0),t.getDataLimits=null,t}(0,r["default"])(t,e);var a=t.prototype;return a.getType=function(){return"group"},a.getName=function(){return"heatMapGroup"},a.createContainer=function(){var e,t,a=this.getLinkedParent(),o=this.getFromEnv("animationManager"),r=a.getChildContainer();for(e in r)t=r[e],!this.getChildContainer(e)&&this.addChildContainer(e,o.setAnimation({el:"group",attr:{name:"manager-"+e},container:t,component:this,label:"group"}))},a.getLimits=function(e){var t,a=+Infinity,o=-Infinity,r=0,i=function(e){o=Math.max(o,e.max),a=Math.min(a,e.min)};return this._mapChildren((function(a){a.getState("removed")||!1===a.getState("visible")?e&&(t=a.getDataLimits(e),i(t)):(r++,t=a.getDataLimits(e),i(t))})),r?this.setState("visible",!0):this.setState("visible",!1),this.config.range||(this.config.range={},this.config.range.min=this.config.dataMin,this.config.range.max=this.config.dataMax),{max:o,min:a}},a.draw=function(){var e=this.getLimits(!0);this.addToEnv("datasetMinValue",e.min),this.addToEnv("datasetMaxValue",e.max),this.createContainer()},a.getAxisValuePadding=function(){var e={},t=-Infinity,a=-Infinity,o=-Infinity,r=-Infinity;return this._mapChildren((function(i){i.getState("removed")||(e=i.getAxisValuePadding&&i.getAxisValuePadding()||{},t=Math.max(t,e.left||-Infinity),a=Math.max(a,e.right||-Infinity),o=Math.max(o,e.top||-Infinity),r=Math.max(r,e.bottom||-Infinity))})),t===-Infinity&&(t=0),a===-Infinity&&(a=0),o===-Infinity&&(o=0),r===-Infinity&&(r=0),this.config.padding||(this.config.padding={},this.config.padding.left=t,this.config.padding.right=a,this.config.padding.top=o,this.config.padding.bottom=r),{left:t,right:a,top:o,bottom:r}},t}(a(294).ComponentInterface);t["default"]=i},1443: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],n=o.getChildren("axisRefVisualCartesian")[0],l={zoomable:!0,pannable:!0},s=e._feedAxesRawData(),c=function(){return n.asyncDraw()};(0,r.componentFactory)(e,i["default"],"yAxis",1,s.yAxisConf),(0,r.componentFactory)(e,i["default"],"xAxis",1,s.xAxisConf),t=e.getChildren("yAxis")[0],a=e.getChildren("xAxis")[0],t.setLinkedItem("canvas",o),a.setLinkedItem("canvas",o),n.setLinkedItem(t.getId(),t),n.setLinkedItem(a.getId(),a),n.addExtEventListener("visiblerangeset",c,a),n.addExtEventListener("visiblerangeset",c,t),o.attachAxis(a,!1,e.zoomX?l:{}),o.attachAxis(t,!0,e.zoomY?l:{}),e._setCategories()};var r=a(278),i=o(a(589))},1450:function(e,t,a){"use strict";var o=a(273);t.__esModule=!0,t["default"]=void 0;var r=o(a(1451))["default"];t["default"]=r},1451: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(739)),n=o(a(1452)),l=o(a(1455)),s=o(a(1459)),c=a(278),d=function(e){function t(){var t;return(t=e.call(this)||this).registerFactory("canvas",s["default"]),t.registerFactory("axis",l["default"],["canvas"]),t}(0,r["default"])(t,e);var a=t.prototype;return a.configureAttributes=function(t){this.config.drawfullareaborder=1,this.config.radarRadius=(0,c.pluckNumber)(t.chart.radarradius),e.prototype.configureAttributes.call(this,t),this.config.alignLegendWithCanvas=0},a.__setDefaultConfig=function(){e.prototype.__setDefaultConfig.call(this);var t=this.config;t.axisType="polar",t.axisValuePadding=10,t.gridLineWidth=1,t.showRadarBorder=1,t.showvalues=0,t.radarBorderThickness=2,t.skipCanvasDrawing=!0,t.useplotgradientcolor=0,t.plotfillalpha=50},a.setAxisDimention=function(){this.getChildren("yAxis")},a._feedAxesRawData=function(){var e,t,a=this.getFromEnv("dataSource");return e=this.getSpecificxAxisConf(),t=this.getSpecificyAxisConf(),e.vtrendlines=a.vtrendlines,t.trendlines=a.trendlines,{xAxisConf:[e],yAxisConf:[t]}},a.getSpecificxAxisConf=function(){var e=this.getFromEnv("chart-attrib"),t=this.getBasexAxisConf();return t.isReverse=this.config.reverseXAxis,t.axisLineColor=(0,c.pluck)(e.xaxislinecolor,e.axislinecolor,"#000000"),t.showAlternateGridColor=(0,c.pluckNumber)(e.showalternatevgridcolor,1),t.numDivLines=e.numvdivlines,t.axisName=e.xaxisname,t.setAdaptiveMin=e.setadaptivexmin,t.showLimits=e.showvlimits,t.showDivLineValues=(0,c.pluckNumber)(e.showvdivlinevalues,e.showvdivlinevalues),t.zeroPlaneThickness=e.vzeroplanethickness,t.zeroPlaneAlpha=e.vzeroplanealpha,t.showZeroPlaneValue=e.showvzeroplanevalue,t.showAxisLine=(0,c.pluckNumber)(e.showxaxisline,e.showaxislines,e.drawAxisLines,0),t.showRadarBorder=e.showradarborder,t.radarBorderColor=e.radarbordercolor,t.radarBorderThickness=e.radarborderthickness,t.radarBorderAlpha=e.radarborderalpha,t.radarFillColor=e.radarfillcolor,t.radarFillAlpha=e.radarfillalpha,t.radarSpikeColor=e.radarspikecolor,t.radarSpikeThickness=e.radarspikethickness,t.radarSpikeAlpha=e.radarspikealpha,t.radarInLineAlpha=e.radarinlinealpha,t.showTooltip=(0,c.pluckNumber)(e.showtooltip,1),t},a.getSpecificyAxisConf=function(){var e=this.getFromEnv("chart-attrib"),t=this.config,a=t.is3D?c.chartPaletteStr.chart3D:c.chartPaletteStr.chart2D,o=this.getFromEnv("color-manager"),r=(0,c.pluckFontSizeMaintainUnit)(e.outcnvbasefontsize,e.basefontsize,10);return{isVertical:!0,isReverse:!t.isInverse,isOpposit:!1,outCanfontFamily:(0,c.pluck)(e.outcnvbasefont,e.basefont,"Verdana,sans"),outCanfontSize:this.computeFontSize(r),outCanfontSizeWithUnit:r,outCancolor:(0,c.pluck)(e.outcnvbasefontcolor,e.basefontcolor,o.getColor(a.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,c.pluckNumber)(e.rotateyaxisname,1),divLineColor:(0,c.pluck)(e.divlinecolor,o.getColor(a.divLineColor)),divLineAlpha:(0,c.pluck)(e.divlinealpha,o.getColor("divLineAlpha")),divLineThickness:(0,c.pluckNumber)(e.divlinethickness,1),divLineIsDashed:Boolean((0,c.pluckNumber)(e.divlinedashed,e.divlineisdashed,0)),divLineDashLen:(0,c.pluckNumber)(e.divlinedashlen,4),divLineDashGap:(0,c.pluckNumber)(e.divlinedashgap,2),showAlternateGridColor:(0,c.pluckNumber)(e.showalternatehgridcolor,1),alternateGridColor:(0,c.pluck)(e.alternatehgridcolor,o.getColor("altHGridColor")),alternateGridAlpha:(0,c.pluck)(e.alternatehgridalpha,o.getColor("altHGridAlpha")),numDivLines:e.numdivlines,axisMinValue:e.yaxisminvalue,axisMaxValue:e.yaxismaxvalue,setAdaptiveMin:e.setadaptiveymin,adjustDiv:e.adjustvdiv,labelStep:e.yaxisvaluesstep,showAxisValues:(0,c.pluckNumber)(e.showyaxisvalues,e.showyaxisvalue),showLimits:(0,c.pluckNumber)(e.showyaxislimits,e.showlimits,this.showLimits),showDivLineValues:(0,c.pluckNumber)(e.showdivlinevalues,e.showdivlinevalue),zeroPlaneColor:e.zeroplanecolor,zeroPlaneThickness:(0,c.pluckNumber)(e.zeroplanethickness,e.divlinethickness,2),zeroPlaneAlpha:e.zeroplanealpha,showZeroPlaneValue:e.showzeroplanevalue,trendlineColor:e.trendlinecolor,trendlineToolText:e.trendlinetooltext,trendlineThickness:e.trendlinethickness,trendlineAlpha:e.trendlinealpha,showTrendlinesOnTop:e.showtrendlinesontop,axisLineThickness:(0,c.pluckNumber)(e.yaxislinethickness,e.axislinethickness,1),axisLineAlpha:(0,c.pluckNumber)(e.yaxislinealpha,e.axislinealpha,100),axisLineColor:(0,c.pluck)(e.yaxislinecolor,e.axislinecolor,"#000000"),showTooltip:(0,c.pluckNumber)(e.showtooltip,1)}},a._spaceManager=function(){var e,t,a,o,r,i,n,l,s=this.config,d=this.getFromEnv("chart-attrib"),h=s.radarBorderThickness,u=s.legendPosition?s.legendposition.split("-"):[],p=this.getChildren("xAxis")&&this.getChildren("xAxis")[0],g=(this.getChildren("yAxis")&&this.getChildren("yAxis")||[])[0],f=this.getChildren("legend")&&this.getChildren("legend")[0],m=c.preDefStr.POSITION_BOTTOM,v=Math,b=v.min,x=v.max,k=v.abs;s.radarRadius=(0,c.pluckNumber)(d.radarradius),s.radarRadius!==c.UNDEF?(s.radarRadius=s.radarRadius>b(s.canvasHeight,s.canvasWidth)/2?b(s.canvasHeight,s.canvasWidth)/2:s.radarRadius,s.availableHeight=o=s.canvasHeight-2*s.radarRadius,s.availableWidth=a=s.canvasWidth-2*s.radarRadius):(s.availableHeight=o=.7*s.canvasHeight,s.availableWidth=a=.7*s.canvasWidth),u[0]===c.POSITION_TOP||u[0],r=u[0]===c.POSITION_TOP||u[0]===m?o:a,!1!==s.hasLegend&&p&&s.showLegend&&((n=f._manageLegendPosition(r)).bottom=b(x(n.bottom,0),r),n.right=b(x(n.right,0),r),n.top=b(x(n.top,0),r),n.left=b(x(n.left,0),r),this._allocateSpace(n)),p&&(n=p.placeAxis(s.availableWidth,s.availableHeight),this._allocateSpace(n)),g&&(n=g.placeAxis(s.canvasWidth)),n=this._manageChartMenuBar(s.availableHeight),e=.225*s.availableHeight,t=this._manageActionBarSpace&&(this._manageActionBarSpace(e)||{}),this._allocateSpace(t),l=s.radarRadius>0?2*s.radarRadius:b(s.canvasHeight,s.canvasWidth),s.canvasHeight>l&&(i=k((s.canvasHeight-l)/2),this._allocateSpace({top:i,bottom:i})),s.canvasWidth>l&&(i=k((s.canvasWidth-l)/2),this._allocateSpace({left:i,right:i})),l/=2,g.setAxisDimention({x:s.canvasLeft+s.canvasWidth/2,y:s.canvasTop+s.canvasHeight/2-(l-h/2),axisLength:l-h/2}),p.setAxisConfig({radius:l-h/2}),p.setAxisDimention({x:s.canvasLeft+s.canvasWidth/2,y:s.canvasTop+s.canvasHeight/2})},t.getName=function(){return"Radar"},a.getName=function(){return"Radar"},a.getDSdef=function(){return n["default"]},t}(i["default"]);t["default"]=d},1452: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(617)),n=o(a(1453)),l=a(286),s=a(1454),c=a(278),d=c.regex.dropHash;(0,l.addDep)({name:"radarAnimation",type:"animationRule",extension:n["default"]});var h=function(e){function t(){var t;return(t=e.call(this)||this).getPathArr=function(){var e=this.pathArr,t=this.path2Arr;return e.length||t.length?e.concat(t):[]},t}(0,r["default"])(t,e);var a=t.prototype;return a.getName=function(){return"radar"},a.createCoordinates=function(){var e,t,a,o,r,i,n,l,c=this.getFromEnv("chartConfig"),d=this.components.data.length,h=this.components.data;for(a=0;a<d;a++)l=(t=(e=h[a])&&e.config).setValue,void 0!==e&&(n=this.getFromEnv("yAxis").getPixel(l+0),r=(i=(0,s.getCoordinates)({radius:c.canvasTop+c.canvasHeight/2-n,theta:a},this.getFromEnv("xAxis"))).y,o=i.x,t._Px=o,t._Py=r,t._Pbx=o,t._Pby=r)},a.getLinePath=function(e,t,a){var o,r,i,n,l,c=this.getFromEnv("chartConfig"),d={},h=d.lastValidValue||!1,u=d.temp||[],p=d.temp2||[],g=d.pathArr||[],f=d.pointsJoined||0,m=t&&t.begin||0,v=t&&t.end||e.length,b=c.viewPortConfig.step||1,x=this.getFromEnv("yAxis"),k=this.getFromEnv("xAxis"),y=x.getPixel(0),C=this.removeDataLen||0,w=[];for(w=w.concat(e),o=m;o<v+C;o+=b)(l=w[o])&&(null===(r=l.config).setValue||r&&!0===r.isSkipped?(i=(0,s.getCoordinates)({theta:k.getLimit().min},k).x,n=x.getPixel(x.config.axisRange.min)):(i=r._Px,n=r._Py),"zero"===a?n=y:"base"===a&&(n=r._Pby),h?(u.length&&(g=g.concat(u),u=[],f++),g.push(["L",i,n])):(u.push(["M",i,n]),f=0,h=!0));return"Z"!==g[g.length-1]&&f>0&&g.push("Z"),{pathArr:g,path2Arr:[],lastValidValue:h,pointsJoined:f,temp:u,temp2:p,getPathArr:this.getPathArr}},a.configureAttributes=function(t){if(!t)return!1;this.trimData(t),this.JSONData=t;var a=this.config,o=this.getFromEnv("chart").getFromEnv("dataSource").chart,r=this.JSONData,i=this.getFromEnv("color-manager").getPlotColor(this.index);e.prototype.configureAttributes.call(this,t),a.defaultPadding={left:0,right:0},a.plotfillcolor=(0,c.pluck)(r.color,o.plotfillcolor,i),a.plotbordercolor=(0,c.pluck)(r.plotbordercolor,o.plotbordercolor,o.areabordercolor,i).split(",")[0],a.plotborderColorObject={color:a.plotbordercolor,alpha:a.plotborderalpha,angle:a.plotfillangle},a.fillColor={color:a.plotfillcolor+(a.plotgradientcolor?","+a.plotgradientcolor:c.BLANKSTRING),alpha:a.plotfillalpha,angle:a.plotfillangle},a.legendSymbolColor=a.plotfillcolor},a._getHoveredPlot=function(e,t){var a,o,r,i,n=this.getFromEnv("xAxis"),l=this.components.data,c=l.length,d=this.config,h=360/c;for(o=Math.floor(Math.max((0,s.getPlotFromPixel)({x:e-d.maxRadius,y:t},n)/h-1,0)),i=Math.floor(Math.max((0,s.getPlotFromPixel)({x:e+d.maxRadius,y:t},n)/h,c-1));i>=o&&(!(a=l[i])||!(r=this.isWithinShape(a,i,e,t)));i--);return r},a._contextChanged=function(){this.config.context||(this.config.context={});var t,a,o=this.config.context,r=o.axisCenterX;return t=!((a=this.getFromEnv("xAxis").config.axisDimention.centerX)===r),o.axisCenterX=a,t||e.prototype._contextChanged.call(this)},a.getPlotInCategoryAt=function(e,t){var a=this.components.data,o=this.getFromEnv("xAxis"),r=this.getState("visible"),i=Math.round((0,s.getPlotFromPixel)({x:e,y:t},o)),n=a.find((function(e,t,a){var r,n,l,c,d,h;return 0===t?(d=a[t+1],h=a[a.length-1]):t===a.length-1?(d=a[0],h=a[a.length-2]):(d=a[t+1],h=a[t-1]),r=(0,s.getPlotFromPixel)({x:e.config._Px,y:e.config._Py},o),n=t===a.length-1?360:(0,s.getPlotFromPixel)({x:d.config._Px,y:d.config._Py},o),l=(0,s.getPlotFromPixel)({x:h.config._Px,y:h.config._Py},o),i<=0+(c=(n-r)/2)?i>=0&&i<=0+c:i>360-c?i>=360-c&&i<=360:i>=l+c&&i<=n-c})),l=this._getHoveredPlot(e,t);return r&&l?l:!(!r||!n)&&{pointIndex:n._index,hovered:!1,pointObj:n}},a._addLegend=function(){var e,t,a,o=this.config,r=this.getFromEnv("chart-attrib"),i=this.getFromEnv("legend"),n=o.legendSymbolColor,l=(0,c.pluckNumber)(r.use3dlighting,r.useplotgradientcolor,1);e=(0,c.getLightColor)(n,60).replace(d,c.HASHSTRING),t=l?{FCcolor:{color:n+","+n+","+(0,c.getLightColor)(n,40)+","+n+","+n,ratio:"0,70,30",angle:270,alpha:"100,100,100,100,100"}}:{FCcolor:{color:n,angle:0,ratio:"0",alpha:"100"}},o.includeinlegend?((a=i.getItem(this.config.legendItemId))||(this.config.legendItemId=i.createItem(this),a=i.getItem(this.config.legendItemId),this.addExtEventListener("fc-click",(function(){a.itemClickFn()}),a)),a.configure({enabled:o.includeInLegend,type:this.type,label:(0,c.getFirstValue)(this.JSONData.seriesname),legendIconAlpha:(0,c.pluckNumber)(this.JSONData.legendiconalpha),usePattern:o.usePattern,patternAttr:{patternType:o.patternType,patternAngle:o.patternAngle,patternDensity:o.patternDensity,patternSize:o.patternSize,color:o.plotColor,patternAlpha:o.patternAlpha,patternBgColor:o.patternBgColor,alpha:o.plotfillalpha}}),a.setStateCosmetics("default",{symbol:{fill:(0,c.toRaphaelColor)(t),bgAlpha:(0,c.pluckNumber)(this.JSONData.legendiconbgalpha,this.JSONData.legendiconalpha,r.legendiconbgalpha,r.legendiconalpha,o.plotfillalpha),borderAlpha:(0,c.pluckNumber)(this.JSONData.legendiconborderalpha,this.JSONData.legendiconalpha,r.legendiconborderalpha,r.legendiconalpha,"100"),rawFillColor:n,stroke:(0,c.toRaphaelColor)(e)}}),this.getState("visible")?a.removeLegendState("hidden"):a.setLegendState("hidden")):this.config.legendItemId&&i.disposeItem(this.config.legendItemId)},a.getOldPath=function(e,t){var a,o=e,r=t.x,i=t.y,n=this.config&&this.config.prevLim,l=n.x,s=n.y,d=0,h=o.pathArr.length,u=function(e){var t=e;return(t=((t=(t=(t-l.minPixel.x)/(l.maxPixel.x-l.minPixel.x))*(l.max-l.min)+l.min)-r.min)/(r.max-r.min))*(r.maxPixel.x-r.minPixel.x)+r.minPixel.x+1},p=function(e){return e===s.base?i.base:function(e){var t=e;return(t<s.base&&t>i.base||t>s.base&&t<i.base)&&(t=i.base),t-1}(e)};if(s.min===i.min&&l.min===r.min&&s.max===i.max&&l.max===r.max)return o;if(o=(0,c.extend2)({},o),!n)return[];for(o.pathArr=o.pathArr.slice(0),o.path2Arr=o.path2Arr.slice(0),d=h;d--;)(a=o.pathArr[d].slice(0))[1]&&a.join&&(a[1]=u(a[1]),a[2]=p(a[2]),o.pathArr[d]=a);for(d=o.path2Arr.length;d--;)(a=o.path2Arr[d].slice(0))[1]&&a.join&&(a[1]=u(a[1]),a[2]=p(a[2]),o.path2Arr[d]=a);return o},a._setConfigure=function(){var e,t,a,o,r=this.config,i=this.config.JSONData.data||[],n=this.getFromEnv("xAxis").getTicksLen();for(r.imageCount=0,(a=this.components.data)||(a=this.components.data=[]),r.maxRadius=-Infinity,o=0;o<n;o++)t=a[o],e=i&&i[o]||{},t||(t=a[o]={}),t.config||(a[o].config={}),t.graphics||(t.graphics={}),this._plotConfigure(o,e)},t}(i["default"]);t["default"]=h},1453:function(e,t,a){"use strict";t.__esModule=!0,t["default"]=void 0;var o=a(1454),r={"initial.dataset.radar":function(){return{"anchor.appearing":function(){return[{initialAttr:{opacity:0},finalAttr:{opacity:1},startEnd:{start:.5,end:1},slot:"plot"}]},"anchor.updating":function(){return[{initialAttr:{opacity:0},finalAttr:{opacity:1},slot:"final"}]},"anchor.disappearing":function(){return[{finalAttr:{opacity:0,"fill-opacity":0,"stroke-opacity":0},slot:"final"}]},"line.appearing":function(e){var t,a=e.component,r=a.getFromEnv("xAxis"),i=a.getFromEnv("yAxis"),n=r.getTicksLen(),l=a.getFromEnv("chartConfig"),s=e.attr,c=l.canvasTop+l.canvasHeight/2,d=[];for(t=0;t<n;t++)d.push(t?"L":"M"),d.push((0,o.getCoordinates)({radius:c,theta:0},r).x),d.push(i.getPixel(0));return d.push("Z"),[{initialAttr:{opacity:0,path:d},finalAttr:{opacity:1,path:s.path},startEnd:{start:0,end:.5},slot:"middle"}]},"label.appearing":[{initialAttr:{opacity:0},finalAttr:{opacity:1},slot:"final"}],"*":null}}};t["default"]=r},1455: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=e._feedAxesRawData(),s=o.getChildren("axisRefVisualPolar")[0],c=function(){return s.asyncDraw()};(0,n.componentFactory)(e,r["default"],"yAxis",1,l.yAxisConf),(0,n.componentFactory)(e,i["default"],"xAxis",1,l.xAxisConf),t=e.getChildren("yAxis")[0],a=e.getChildren("xAxis")[0],t.setLinkedItem("canvas",o),s.setLinkedItem(t.getId(),t),s.setLinkedItem(a.getId(),a),s.addExtEventListener("visiblerangeset",c,a),s.addExtEventListener("visiblerangeset",c,t),o.attachAxis(a,!1,{}),o.attachAxis(t,!0,{}),e._setCategories()};var r=o(a(541)),i=o(a(1456)),n=a(278)},1456: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(571)),n=a(278),l=a(1454),s=o(a(573)),c=o(a(567)),d=o(a(1457)),h=a(286),u=o(a(590)),p=a(576),g=n.preDefStr.POSITION_MIDDLE,f=n.preDefStr.POSITION_START,m=n.preDefStr.POSITION_TOP,v=n.preDefStr.POSITION_BOTTOM,b=n.preDefStr.POSITION_END,x=Math,k=x.min,y=x.PI,C=2*y;(0,h.addDep)({name:"polarAnimation",type:"animationRule",extension:d["default"]});var w=function(e){function t(){var t;return(t=e.call(this)||this).config.scale=new u["default"],t.config.referenceInfo=[],t}(0,r["default"])(t,e);var a=t.prototype;return a.getName=function(){return"polarCategory"},a.__setDefaultConfig=function(){e.prototype.__setDefaultConfig.call(this),this.config.drawPlotBands=!1,this.config.forceZeroTick=!1},a.configureAttributes=function(t){var a=this.config,o=t,r=this.getFromEnv("chart").getFromEnv("dataSource").chart,i=this.getFromEnv("color-manager");e.prototype.configureAttributes.call(this,t),a.gridLineColor=(0,n.convertColor)((0,n.pluck)(o.radarSpikeColor,i.getColor("divLineColor")),(0,n.pluckNumber)(o.radarSpikeAlpha,o.radarInLineAlpha,i.getColor("divLineAlpha"))),a.radarSpikeThickness=(0,n.pluckNumber)(r.radarspikethickness,1)},a.setAxisDimention=function(e){var t,a=this.getScale(),o=this.config,r=this.getFromEnv("chart").config,i=o.startAngle||-y/2,l=o.totalAngle||-C,s=i+l,c=l/((o.tickValues.tickValue||[]).length||1),d=o.axisDimention||(o.axisDimention={});d.opposite=(0,n.pluckNumber)(e.opposite,d.opposite),d.centerX=(0,n.pluckNumber)(e.x,d.x,r.canvasLeft),d.centerY=(0,n.pluckNumber)(e.y,d.y,r.canvasTop),d.axisLength=C,s-=c,t=o.clockWise?[s,i]:[i,s],a.setRange(t)},a._parseCategoryPlotLine=function(){var e,t,a,o=this.config,r=o.tickValues.tickValue,i=o.gridLineColor,n=o.radarSpikeThickness,l=o.referenceInfo;if(e={stroke:i,"stroke-width":n},(!r[0]||void 0===r[0].x&&void 0===r[0].y)&&o.lines.isDraw&&o.numDivLines)for(t=0;t<r.length;++t)a=t,l.push({from:a,type:"line",layer:1,attr:e})},a.placeAxis=function(e,t){var a,o,r,i,l,s,c,d,h,u=this.config,p=this.getFromEnv("chart"),g=p.getFromEnv("smartLabel"),f=u.labels.style,m=p.getFromEnv("dataSource").categories,v=u.labelPadding=(0,n.pluckNumber)(u.rawAttr.axisValuePadding,10),b=u.useEllipsesWhenOverflow,x=0,y=0,C=0,w=0,A=t/2,S=t/2,N=e/2,L=e/2,D=u.tickValues&&u.tickValues.tickValue;if(u.labels.isDraw=1,u.labels.drawNormalVal=1,u.labels.drawLimitVal=1,this.components||(this.components={}),this.components.labels=[],u.showLabels){if(m){var E=m[0];l={fontFamily:E.font,fontSize:E.fontsize,color:E.fontcolor}}for(a=0,o=D.length;a<o;a++)s={fontFamily:(r=D[a]).font,fontSize:r.fontsize,fontWeight:r.fontbold?"bold":"normal",fontStyle:r.fontitalic?"italic":"normal"},c={fontFamily:(0,n.pluck)(s.fontFamily,l.fontFamily,f.fontFamily),fontSize:(0,n.pluck)(s.fontSize,l.fontSize,this.computeFontSize(f.fontSizeWithUnit)+n.PXSTRING),fontWeight:(0,n.pluck)(s.fontWeight,f.fontWeight),fontStyle:(0,n.pluck)(s.fontStyle,f.fontStyle)},h=(d=(0,n.setLineHeight)(c)).replace(/px/gi,""),g.useEllipsesOnOverflow(p.config.useEllipsesWhenOverflow),g.setStyle(c),void 0===r.oriLabel&&(r.oriLabel=r.label),0===a?(i=g.getSmartText(r.oriLabel,e,k(h,A),b),r.label=i.text,r.tooltext=i.tooltext,i.width+=i.width?v:0,i.height+=i.height?v:0,i.height>x&&(w=x=i.height)):a===o/2?(i=g.getSmartText(r.oriLabel,e,k(h,S),b),r.label=i.text,r.tooltext=i.tooltext,i.width+=i.width?v:0,i.height+=i.height?v:0,i.height>w&&(w=i.height)):a<o/2?(i=g.getSmartText(r.oriLabel,L,d,b),r.label=i.text,r.tooltext=i.tooltext,i.width+=i.width?v:0,i.height+=i.height?v:0,i.width>y&&(y=i.width)):(i=g.getSmartText(r.oriLabel,N,d,b),r.label=i.text,r.tooltext=i.tooltext,i.width+=i.width?v:0,i.height+=i.height?v:0,i.width>C&&(C=i.width)),this.components.labels.push({config:{width:i.width,height:i.height,props:{label:{attr:{}}}}})}else for(a=0,o=D.length;a<o;a++)this.components.labels.push({config:{width:0,height:0,props:{label:{attr:{}}}}});return{top:x,left:y,right:C,bottom:w}},a._drawComponents=function(){var e=this.config;e.drawLabels&&e.hasCategory&&this._drawCategory()},a.allocatePosition=function(){var e=this.config;e.drawLabels&&e.hasCategory&&this._parseCategory()},a._parseCategory=function(){var e,t,a,o,r,i,s,c,d,h,u,p,x,k,y,C,w,A,S=this.config,N=this.getFromEnv("chart"),L=S.isOpposit,D=S.labels,E=D.style,T=this.config.categoryLabel||(this.config.categoryLabel={}),F=N.getFromEnv("dataSource").categories,P=S.tickValues.tickValue,_=S.labelPadding,V={},I={},B=S.axisDimention.centerX,M=S.axisDimention.centerY,O=this.getScale();if(k=(0,n.pluckNumber)(S.radius,0),0,t=P?P.length-1:0,S.labels.isDraw){if(F){var R=F[0];V.fontFamily=R.font,V.fontSize=R.fontsize,V.color=R.fontcolor}for(E.fontSize=this.computeFontSize(E.fontSizeWithUnit),e=0;e<=t;e++)a=P[e],u=(0,n.pluckNumber)(a.x,a.y,e),(S.labels.drawNormalVal||S.labels.drawLimitVal&&(0===e||u===t))&&(S.labels.drawNormalVal||0===u||u===t)&&(S.labels.drawLimitVal||0!==u&&u!==t)&&(I={fontFamily:(0,n.pluck)(a.font,a.labelfont),fontSize:(0,n.pluck)(a.fontsize,a.labelfontsize),fontWeight:(0,n.pluckNumber)(a.fontbold,a.labelfontbold,0)?"bold":void 0,fontStyle:(0,n.pluckNumber)(a.fontitalic,a.labelfontitalic,0)?"italic":void 0},d=(0,n.convertColor)((0,n.pluck)(a.fontcolor,a.labelfontcolor,V.color,E.color),(0,n.pluckNumber)(a.labelalpha,S.rawAttr.labelFontAlpha,100)),(s={fontFamily:(0,n.pluck)(I.fontFamily,V.fontFamily,E.fontFamily),fontSize:(0,n.pluck)(I.fontSize,V.fontSize,E.fontSize),fontWeight:(0,n.pluck)(I.fontWeight,E.fontWeight),fontStyle:(0,n.pluck)(I.fontStyle,E.fontStyle)}).lineHeight=(0,n.setLineHeight)(s),s.lineHeight&&-1!==(r=s.lineHeight).indexOf("px")&&(r=r.replace(/px/i,""),r=parseFloat(r)),C=O.getRangeValue(u),(h=(0,l.polarToCartesian)(k+_,C)).x+=B,h.y+=M,p=h.x,x=h.y,o=a.label||"",0!==(0,n.pluckNumber)(a.showlabel,1)&&0!==S.showLabels||(o=""),i=a.labelPadding||0,c={fill:d,"line-height":r,"font-size":E.fontSize,text:o,cursor:a.link?"pointer":"default",x:p,y:x},i&&(c.y+=i),c["vertical-align"]=L?v:m,0===e?(c["text-anchor"]=g,c["vertical-align"]=v):e===(t+1)/2?(c["text-anchor"]=g,c["vertical-align"]=m):e<(t+1)/2?(c["text-anchor"]=b,c["vertical-align"]=g):(c["text-anchor"]=f,c["vertical-align"]=g),C=O.getRangeValue(u),(y=(0,l.polarToCartesian)(k,C)).x+=B,y.y+=M,D.shiftX&&(c.x+=D.shiftX),D.shiftY&&(c.y+=D.shiftY),(T=S.categoryLabel=T||{})[A="Label"+e]=T[A]||{},T[A].config=T[A].config||{},T[A].config.labelBox=w={label:o,lineHeight:s.lineHeight,border:(0,n.pluckNumber)(a.borderthickness,a.labelborderthickness)?(0,n.pluckNumber)(a.borderthickness,a.labelborderthickness,1)+"px solid":"",borderColor:a.bordercolor||a.labelbordercolor?(0,n.convertColor)(a.bordercolor||a.labelbordercolor,(0,n.pluckNumber)(a.borderalpha,a.labelborderalpha,a.alpha,a.labelalpha,100)):n.BLANKSTRING,borderThickness:(0,n.pluckNumber)(a.borderthickness,a.labelborderthickness),borderPadding:(0,n.pluckNumber)(a.borderpadding,a.labelborderpadding),borderRadius:(0,n.pluckNumber)(a.borderradius,a.labelborderradius),backgroundColor:a.bgcolor||a.labelbgcolor?(0,n.convertColor)(a.bgcolor||a.labelbgcolor,(0,n.pluckNumber)(a.bgalpha,a.labelbgalpha,a.alpha,a.labelalpha,100)):n.BLANKSTRING,borderDash:(0,n.pluckNumber)(a.borderdashed,a.labelborderdashed,0)?(0,n.getDashStyle)((0,n.pluckNumber)(a.borderdashlen,a.labelborderdashlen,4),(0,n.pluckNumber)(a.borderdashgap,a.labelborderdashgap,2)):0===(0,n.pluckNumber)(a.borderdashed,a.labelborderdashed)?"none":E.borderDash},T[A].config.labelBox["text-bound"]=o?[(0,n.pluck)(w.backgroundColor,E.backgroundColor),(0,n.pluck)(w.borderColor,E.borderColor),(0,n.pluck)(w.borderThickness,E.borderThickness),(0,n.pluck)(w.borderPadding,E.borderPadding),(0,n.pluck)(w.borderRadius,E.borderRadius),(0,n.pluck)(w.borderDash,E.borderDash)]:[],c["text-bound"]=T[A].config.labelBox["text-bound"],this.components.labels[e].config.props.label.css=s,this.components.labels[e].config.props.label.attr=Object.assign(this.components.labels[e].config.props.label.attr,c))}},a._drawCategory=function(){var e,t,a,o,r,i,l,c,d,h,u,p=this,g=p.config,f=p.getFromEnv("chart"),m=f.getFromEnv("animationManager"),v=g.labels.style,b=g.axisContainer,x=g.tickValues.tickValue,k=function(e){return function(t){f.plotEventHandler(this,t,e)}},y=p.getFromEnv("toolTipController"),C=0,w=[];if(0,t=x?x.length-1:0,g.labels.isDraw){for(e=0,C=0;e<=t;e++)a=x[e],c=(0,n.pluckNumber)(a.x,a.y,e),(g.labels.drawNormalVal||g.labels.drawLimitVal&&(0===e||c===t))&&(g.labels.drawNormalVal||0===c||c===t)&&(g.labels.drawLimitVal||0!==c&&c!==t)&&(h="Label"+e,w.push(h),l=p.components.labels[e].config.props.label.attr,i=p.components.labels[e].config.props.label.css,r=p.getGraphicalElement(h),o=m.setAnimation({css:i,el:r||"text",attr:l,container:b,component:p,label:"polarLabel"}),g.showTooltip&&a.tooltext?y.enableToolTip(o,a.tooltext):y.disableToolTip(o),o.data("eventArgs",{link:a.link||a.labellink||v.labelLink,text:l.text,index:C}),r||(p.addGraphicalElement(h,o),o.on("fc-click",k("datalabelclick")).hover(k("dataLabelRollOver"),k("dataLabelRollOut"))),C+=1);g.labelMap=g.labelMap||[],u=(0,s["default"])(g.labelMap,w)}else u=w;g.labelMap=w,function(t){for(e=0;e<t.length;++e)(d=p.getGraphicalElement(t[e]))&&p.removeGraphicalElement(d)}(u)},a.getTranslation=function(){if(this)return 0},a.getReferenceInfo=function(){return this.config.referenceInfo},a.setVisibleConfig=function(e,t){var a,o=this.config,r=this.getScale();return!(e>=t||e<o.axisRange.min||t>o.axisRange.max)&&(a=r.setDomain([e,t]).getDomain(),o.visibleMin=a[0],o.visibleMax=a[1],this.clearReferenceInfo(),this._parseReferenceVisuals(),this.fireEvent("visiblerangeset",{minValue:e,maxValue:t}),this.asyncDraw(),!0)},a._parseReferenceVisuals=function(){this.config.drawPlotlines&&this._parseCategoryPlotLine()},a.clearReferenceInfo=function(){this.config.referenceInfo=[]},a._setAxisRange=function(e){var t,a=e.min,o=e.max,r=this.config,i=r.axisRange,n=e.divGap;a>o||(t=(o-a)/(r.categoryNumDivLines+1),this.getScale().setDomain([a,o]),r.ticks=(0,c["default"])(a,o,t).concat(o),r._allTicks=r.ticks.slice(),i.min=a,i.max=o,i.tickInterval=n||t,this.setVisibleConfig(i.min,i.max))},t}(i["default"]);w.prototype.setTickValues=p.setTickValues,w.prototype.shiftLabels=p.shiftLabels,w.prototype._createContainer=p._createContainer,w.prototype.setAxisPadding=p.setAxisPadding,w.prototype.getPixel=p.getPixel,w.prototype.getLabel=p.getLabel;var A=w;t["default"]=A},1457:function(e,t,a){"use strict";var o=a(273);t.__esModule=!0,t["default"]=void 0;var r=o(a(1458)),i={"initial.axis.polar":function(){return{"path.appearing":r["default"],"text.appearing":r["default"]}}};t["default"]=i},1459:function(e,t,a){"use strict";var o=a(273);t.__esModule=!0,t["default"]=function(e){var t;(0,n.componentFactory)(e,r["default"],"canvas",e.config.showVolumeChart?2:1),t=e.getChildren("canvas");for(var a=0,o=t.length;a<o;a++)t[a].configure(),(0,n.componentFactory)(t[a],i["default"],"axisRefVisualPolar")};var r=o(a(1460)),i=o(a(1461)),n=a(278)},1460: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(526)),n=a(1454),l=a(278),s=function(e){function t(){return e.apply(this,arguments)||this}(0,r["default"])(t,e);var a=t.prototype;return a.getName=function(){return"polarCanvas"},a.getType=function(){return"canvas"},a.configureAttributes=function(){e.prototype.configureAttributes.call(this);var t=this.config,a=this.getFromEnv("chart"),o=a.getFromEnv("dataSource").chart,r=a.getFromEnv("color-manager");t.radarBorderColor=(0,l.convertColor)((0,l.pluck)(o.radarbordercolor,r.getColor("divLineColor")),(0,l.pluckNumber)(o.radarborderalpha,100)),t.radarFillColor=(0,l.convertColor)((0,l.pluck)(o.radarfillcolor,r.getColor("altHGridColor")),(0,l.pluckNumber)(o.radarfillalpha,r.getColor("altHGridAlpha"))),t.radarBorderThickness=(0,l.pluckNumber)(o.radarborderthickness,2),t.showRadarBorder=(0,l.pluckNumber)(o.showradarborder,1)},a.draw=function(){this.createGroup(),this.drawCanvas()},a.drawCanvas=function(){var e,t,a,o,r,i,s,c=this.config,d=this.getFromEnv("chart"),h=d.config,u=d.getChildren("xAxis")[0],p=d.getFromEnv("animationManager"),g=this.getContainer("radarBorderContainer"),f=this.getContainer("canvasGroup"),m=u.config,v={stroke:c.radarBorderColor,fill:c.radarFillColor,"stroke-width":c.radarBorderThickness,path:[]},b=m.tickValues.tickValue,x=u.getScale(),k=this.getGraphicalElement("radarBorder"),y=m.axisDimention.centerX,C=m.axisDimention.centerY;if(i=(0,l.pluckNumber)(m.radius,0),0,a=b?b.length-1:0,c.canvasLeft=c.canvasLeft||h.canvasLeft,c.canvasTop=c.canvasTop||h.canvasTop,c.canvasWidth=c.canvasWidth||h.canvasWidth,c.canvasHeight=c.canvasHeight||h.canvasHeight,0!==c.showRadarBorder){for(v.path.push("M"),t=0;t<=a;t++)o=x.getRangeValue(t),(r=(0,n.polarToCartesian)(i,o)).x+=y,r.y+=C,v.path.push(r.x,r.y,"L");v.path.pop(),v.path.push("Z")}e=p.setAnimation({el:g||"group",attr:{name:"radarBorderContainer"},container:f,component:this,label:"group"}),g||this.addContainer("radarBorderContainer",e),s=p.setAnimation({el:k||"path",attr:v,container:e,component:u,label:"path"}),k||this.addGraphicalElement("radarBorder",s)},t}(i["default"]);t["default"]=s},1461: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(592)),n=a(1454),l=a(278),s=a(286),c=o(a(1462));(0,s.addDep)({name:"axisRefPolarAnimation",type:"animationRule",extension:c["default"]});var d=function(e){function t(){return e.apply(this,arguments)||this}(0,r["default"])(t,e);var a=t.prototype;return a.getType=function(){return"axisRefVisuals"},a.getName=function(){return"axisRefVisualsPolar"},a.createLine=function(e,t){return"polarCategory"===t.getName()?this.createNormalLine(e,t):"numeric"===t.getName()?this.createRadialLine(e,t):void 0},a.createRadialLine=function(e,t){var a,o,r,i,l,s=this.getFromEnv("xAxis")[0],c=s.config.tickValues.tickValue,d=t,h=this.config.containers[e.layer],u=this.getFromEnv("animationManager"),p=this.getFromEnv("toolTipController"),g=e.attr,f=["M"],m=d.getId()+"_"+(e.id||e.from),v=e.handlers,b=this.getGraphicalElement(m);for(i=function(e,t){var a=e.getScale(),o=e.config.axisRange;return Math.abs(a.getRangeValue(t)-a.getRangeValue(o.min))}(d,e.from),0,r=c?c.length-1:0,a=0;a<=r;a++)l=(0,n.getCoordinates)({radius:i,theta:a},s),f.push(l.x,l.y,"L");for(o in f.pop(),f.push("Z"),g.path=f,b=this.addGraphicalElement(m,u.setAnimation({container:h,el:b||"path",attr:g,component:this,label:"path"})),e.toolText?p.enableToolTip(b,e.toolText):p.disableToolTip(b),v)v.hasOwnProperty(o)&&b.on(o,v[o].bind(t));return[m]},a.createNormalLine=function(e,t){var a,o,r=this.config,i=t.config,s=(0,l.pluckNumber)(i.radius,0),c=["M"],d=r.containers[e.layer],h=this.getFromEnv("animationManager"),u=this.getFromEnv("toolTipController"),p=i.axisDimention.centerX,g=i.axisDimention.centerY,f=t.getId()+"_"+(e.id||e.from),m=e.handlers,v=this.getGraphicalElement(f);for(o in c.push(p,g,"L"),a=(0,n.getCoordinates)({radius:s,theta:e.from},t),c.push(a.x,a.y),e.attr.path=c,v=this.addGraphicalElement(f,h.setAnimation({container:d,el:v||"path",attr:e.attr,component:this,label:"path"})),e.toolText?u.enableToolTip(v,e.toolText):u.disableToolTip(v),m)m.hasOwnProperty(o)&&v.on(o,m[o].bind(t));return[f]},a.createBand=function(){return[]},t}(i["default"]);t["default"]=d},1462:function(e,t,a){"use strict";var o=a(273);t.__esModule=!0,t["default"]=void 0;var r=o(a(1458)),i={"initial.axis.axisRefVisualsPolar":function(){return{"path.appearing":r["default"],"text.appearing":r["default"]}}};t["default"]=i},1463:function(e,t,a){"use strict";var o=a(273);t.__esModule=!0,t["default"]=void 0;var r=o(a(1464))["default"];t["default"]=r},1464:function(e,t,a){"use strict";var o=a(273);t.__esModule=!0,t["default"]=void 0;var r=o(a(296)),i=o(a(292)),n=o(a(524)),l=o(a(447)),s=o(a(482)),c=o(a(1465)),d=o(a(1466)),h=o(a(545)),u=a(278),p=o(a(422)),g=o(a(544)),f=o(a(1467)),m=a(627),v=["1E77B4","FF7F0E","2BA02C","D62728","9466BD","8C564B","E376C2","7F7F7F","BCBD22","17BECF"],b=["tangential","outside","inside"],x=function(e){function t(t){var a;a=e.call(this,t)||this;var o=(0,r["default"])(a);return o.deregisterFactory("canvas"),o.registerFactory("legend",c["default"]),o.registerFactory("nodelinkManager",d["default"]),o.defaultPaletteOptions={paletteColors:[v,v,v,v,v],bgColor:["FFFFFF,FFFFFF","FFFFFF,FFFFFF","FFFFFF,FFFFFF","FFFFFF,FFFFFF","FFFFFF,FFFFFF"]},a}(0,i["default"])(t,e);var a=t.prototype;return a.__setDefaultConfig=function(){e.prototype.__setDefaultConfig.call(this);var t=this.config;t.skipCanvasDrawing=!0,t.friendlyName="Chord",t.nodes={},t.mode="post",t.isPost=!0,t.nodeSpacing=2,t.minNodeSize=.01,t.startingAngle=0,t.links={},t.linksOrder=[],t.nodesOrder=[],t.totalAngle=360,t.clockwise=1,t.nodeLabelGap=10,t.nodeLabelPosition=10,t.nodeThickness=12,t.nodeLinkPadding=3,t.linkAlpha=70,t.linkBorderAlpha=100,t.linkBorderThickness=1,t.nodeHoverAlpha=100,t.linkHoverAlpha=100,t.nodeHoverColor=u.UNDEF,t.linkHoverColor=u.UNDEF,t.showNodeLabels=1,t.showNodeBorder=1,t.showLinkBorder=1,t.nodeBorderColor=u.UNDEF,t.nodeBorderThickness=1,t.nodeBorderDashed=0,t.nodeBorderDashedLen=2,t.nodeBorderDashedGap=1,t.nodeBorderAlpha=100,t.showLinkValueOnHover=1,t.nodeAlpha=70,t.nodeLabelPosition="tangential",t.nodeLabelFont="Verdana,sans",t.nodeLabelFontSize=12,t.nodeLabelFontBold=u.NORMAL,t.nodeLabelFontItalic=u.NORMAL,t.highlightEffect=1,t.enableToggle=1,t.chordradius=100,t.nodeLabelColor="#5F5F5F",t.unfocussedAlpha=35,t.deactiveNodeColor="#c4c4c4",t.sortOrder=u.UNDEF,t.tooltipsepchar=u.BLANKSTRING,t.linkColorByDominance=1,t.useEllipsesOnOverflow=1},a.configureAttributes=function(t){e.prototype.configureAttributes.call(this,t);var a,o,r=this.config,i=r.nodes,n=r.links,c=r.nodesOrder,d=r.linksOrder,f=r.connectors=t.links,m=f.length,v=this.getFromEnv("number-formatter"),x=t.chart,k=this.getFromEnv("color-manager");for(r.mode="pre"===x.mode?"pre":"post",r.isPost=(0,p["default"])(r.mode,"post"),r.minNodeSize=(0,u.pluckNumber)(x.minnodesize,r.minNodeSize),r.startingAngle=(0,u.pluckNumber)(x.startingangle,r.startingAngle),r.totalAngle=(0,u.pluckNumber)(x.totalangle,r.totalAngle),r.nodeLabelGap=(0,u.pluckNumber)(x.nodelabelpadding,r.nodeLabelGap),r.nodeThickness=(0,u.pluckNumber)(x.nodethickness,r.nodeThickness),r.nodeSpacing=(0,u.pluckNumber)(x.nodespacing,r.nodeSpacing),r.clockwise=(0,u.pluckNumber)(x.clockwise,r.clockwise),r.nodeLinkPadding=(0,u.pluckNumber)(x.nodelinkpadding,r.nodeLinkPadding),r.linkAlpha=(0,u.pluckNumber)(x.linkalpha,r.linkAlpha),r.linkBorderAlpha=(0,u.pluckNumber)(x.linkborderalpha,r.linkBorderAlpha),r.linkBorderThickness=(0,u.pluckNumber)(x.linkborderthickness,r.linkBorderThickness),r.nodeHoverAlpha=(0,u.pluckNumber)(x.nodehoveralpha,r.nodeHoverAlpha),r.linkHoverAlpha=(0,u.pluckNumber)(x.linkhoveralpha,r.linkHoverAlpha),r.showLinkValueOnHover=(0,u.pluckNumber)(x.showlinkvalueonhover,r.showLinkValueOnHover),r.showNodeLabels=(0,u.pluckNumber)(x.shownodelabels,r.showNodeLabels),r.showNodeBorder=(0,u.pluckNumber)(x.shownodeborder,r.showNodeBorder),r.showLinkBorder=(0,u.pluckNumber)(x.showlinkborder,r.showLinkBorder),r.nodeBorderColor=(0,u.pluck)(x.nodebordercolor,r.nodeBorderColor),r.nodeBorderThickness=(0,u.pluckNumber)(x.nodeborderthickness,r.nodeBorderThickness),r.nodeBorderDashed=(0,u.pluckNumber)(x.nodeborderdashed,r.nodeBorderDashed),r.nodeBorderDashedLen=(0,u.pluckNumber)(x.nodeborderdashedlen,r.nodeBorderDashedLen),r.nodeBorderDashedGap=(0,u.pluckNumber)(x.nodeborderdashedgap,r.nodeBorderDashedGap),r.nodeBorderAlpha=(0,u.pluckNumber)(x.nodeborderalpha,r.nodeBorderAlpha),r.nodeAlpha=(0,u.pluckNumber)(x.nodealpha,r.nodeAlpha),r.nodeLabelPosition=b.includes(x.nodelabelposition)?x.nodelabelposition:r.nodeLabelPosition,r.nodeLabelFont=(0,u.pluck)(x.nodelabelfont,x.basefont,r.nodeLabelFont),r.nodeLabelFontSize=(0,u.pluckFontSize)(x.nodelabelfontsize,this.computeFontSize(x.basefontsize),r.nodeLabelFontSize),r.nodeLabelFontBold=(0,u.pluckNumber)(x.nodelabelfontbold,0)?u.BOLD:u.NORMAL,r.nodeLabelColor=(0,u.pluck)(x.nodelabelcolor,x.basefontcolor,r.nodeLabelColor),r.nodeLabelFontItalic=(0,u.pluckNumber)(x.nodelabelfontitalic,0)?"italic":u.NORMAL,r.highlightEffect=(0,u.pluckNumber)(x.highlighteffect,r.highlightEffect),r.enableToggle=(0,u.pluckNumber)(x.enabletoggle,r.enableToggle),r.chordradius=Math.max((0,u.pluckNumber)(x.chordradius,r.chordradius),0),r.unfocussedAlpha=(0,u.pluckNumber)(x.unfocussedalpha,r.unfocussedAlpha),r.deactiveNodeColor=(0,u.pluck)(x.deactivenodecolor,r.deactiveNodeColor),r.sortOrder=(0,u.pluck)(x.sortorder,r.sortOrder),r.linkColorByDominance=(0,u.pluckNumber)(x.linkcolorbydominance,r.linkColorByDominance),r.textOutline=(0,u.pluckNumber)(x.textoutline,0),r.useEllipsesOnOverflow=(0,u.pluckNumber)(x.useellipsesonoverflow,r.useEllipsesOnOverflow),r.datalabelStyle={"font-size":r.nodeLabelFontSize,"font-family":r.nodeLabelFont,"font-weight":r.nodeLabelFontBold,"font-style":r.nodeLabelFontItalic},"inside"===r.nodeLabelPosition&&(r.nodeLabelGap=0),a=0;a<m;++a)if(o=f[a],(0,s["default"])(o)&&(0,u.parseUnsafeString)(o.from)&&(0,u.parseUnsafeString)(o.to)){var y,C=f[a],w=C.from,A=C.to,S=C.value,N=C.tooltext,L=(0,g["default"])([v.getCleanValue(S),0],Number),D=void 0;y=[w=(0,u.parseUnsafeString)(w),A=(0,u.parseUnsafeString)(A)].sort().toString(),i[w]||(i[w]={index:c.push(w)-1,total:0,adjustedTotal:0,nodeCovered:0,label:w,linkedLinks:[],scale:new h["default"],active:!0,nodeLabelGap:r.nodeLabelGap,unfocussed:!1,hovered:!1,toolTipSepChar:r.tooltipsepchar,showToolTip:r.showToolTip}),i[A]||(i[A]={index:c.push(A)-1,total:0,adjustedTotal:0,nodeCovered:0,label:A,linkedLinks:[],scale:new h["default"],active:!0,nodeLabelGap:r.nodeLabelGap,unfocussed:!1,hovered:!1,toolTipSepChar:r.tooltipsepchar,showToolTip:r.showToolTip}),n[y]?D=n[y]:(D=n[y]={key:y,points:[],dominantNode:[],subservientNode:[],subservientFlowDataValue:[],dominantFlowDataValue:[],dominantNodeColor:[],subservientNodeColor:[],index:d.push(y)-1,linkedNodes:r.isPost?[A,w]:[w,A],tooltip:{},visible:!0,tooltext:N,unfocussed:!1,hovered:!1,focussedState:{},unfocussedState:{},normalState:{},sanitisedValue:0,toolTipSepChar:r.tooltipsepchar,showToolTip:r.showToolTip},i[w].linkedLinks.push(y),i[A].linkedLinks.push(y),D.alpha=(0,u.pluckNumber)(C.alpha,r.linkAlpha),D.hoverAlpha=(0,u.pluckNumber)(C.hoveralpha,r.linkHoverAlpha),D.borderAlpha=(0,u.pluckNumber)(C.borderalpha,r.linkBorderAlpha),D.tooltext=(0,u.pluck)(C.tooltext,r.linktooltext,u.UNDEF),D.showBorder=r.showLinkBorder,D.borderThickness=r.linkBorderThickness,D.unfocussedAlpha=(0,u.pluckNumber)(C.unfocussedAlpha,r.unfocussedAlpha),D.style=r.datalabelStyle),i[r.isPost?A:w].total+=L,D.tooltip[w+" to "+A]={value:v.dataLabels(L)},D.showLinkValueOnHover=r.showLinkValueOnHover,D[r.isPost?A:w]=L,n[y].sanitisedValue+=L}var E=function(e){n.hasOwnProperty(e)&&0===n[e].sanitisedValue&&(delete n[e],r.linksOrder=d=d.filter((function(t){return t!==e})),e.split(",").forEach((function(t){i[t].linkedLinks=i[t].linkedLinks.filter((function(t){return t!==e}))})))};for(var T in n)E(T);(0,l["default"])(t.nodes)&&t.nodes.forEach((function(e){if(function(e,t){return(0,s["default"])(e)&&(0,u.parseUnsafeString)(e.label)&&t[e.label]}(e,i)){var t=(0,u.parseUnsafeString)(e.label);i[t]=Object.assign({},e,i[t])}})),"ascending"===r.sortOrder?c.sort((function(e,t){return i[e].total-i[t].total})):"descending"===r.sortOrder&&c.sort((function(e,t){return i[t].total-i[e].total})),c.forEach((function(e,t){var a=i[e],o=(r.showNodeBorder?r.nodeBorderThickness:0)||0;a.index=t,a.label=(0,u.parseUnsafeString)(a.label),a.alpha=(0,u.pluckNumber)(a.alpha,r.nodeAlpha),a.borderAlpha=(0,u.pluckNumber)(a.borderalpha,r.nodeBorderAlpha),a.hoverAlpha=(0,u.pluckNumber)(a.hoveralpha,r.nodeHoverAlpha),a.borderDashedLen=(0,u.pluckNumber)(a.borderdashedlen,r.nodeBorderDashedLen),a.borderDashedGap=(0,u.pluckNumber)(a.borderdashedgap,r.nodeBorderDashedGap),a.borderDashed=(0,u.pluckNumber)(a.borderdashed,r.nodeBorderDashed)?[a.borderDashedLen,a.borderDashedGap]:"none",a.rawColor=(0,u.pluck)(a.color,k.getPlotColor(t)),a.unfocussedAlpha=(0,u.pluckNumber)(a.unfocussedalpha,r.unfocussedAlpha),a.borderColor=(0,u.pluck)(a.bordercolor,r.nodeBorderColor,(0,u.getDarkColor)(a.rawColor,80)),a.tooltext=(0,u.pluck)(a.tooltext,x.plottooltext,u.UNDEF),a.color=(0,u.hashify)(a.rawColor),a.labelPosition=(0,u.pluck)(a.labelposition,r.nodeLabelPosition),a.nodeLabelGap=r.nodeLabelGap,!(0,u.pluckNumber)(x.exportenabled)||"outside"!==a.labelPosition&&"inside"!==a.labelPosition?a.showLabel=(0,u.pluckNumber)(a.showlabel,r.showNodeLabels):a.showLabel=0,a.showBorder=r.showNodeBorder,a.labelColor=(0,u.pluck)(a.labelcolor,r.nodeLabelColor),a.style=r.datalabelStyle,a.focussedState={fill:(0,u.convertColor)(a.rawColor,a.hoverAlpha),stroke:(0,u.convertColor)(a.borderColor,a.borderAlpha),"stroke-width":o,"stroke-dasharray":a.borderDashed},a.normalState={fill:(0,u.convertColor)(a.rawColor,a.alpha),stroke:(0,u.convertColor)(a.borderColor,a.borderAlpha),"stroke-width":o,"stroke-dasharray":a.borderDashed},a.unfocussedState={fill:(0,u.convertColor)(a.rawColor,a.unfocussedAlpha),stroke:(0,u.convertColor)(a.borderColor,a.unfocussedAlpha),"stroke-width":o,"stroke-dasharray":a.borderDashed},a.deactiveState={fill:r.deactiveNodeColor,stroke:r.deactiveNodeColor,"stroke-width":o,"stroke-dasharray":a.borderDashed},a.linkedLinks.forEach((function(e){var t=new RegExp("^"+a.label),o=n[e].tooltip;for(var r in o)o.hasOwnProperty(r)&&t.test(r)&&(o[r].color=a.color)}))})),d.forEach((function(e){var t=n[e],a=t.linkedNodes,o=a[0],l=a[1];o===l&&(t.dominantNode.push(o),t.subservientNode.push(o),t.subservientFlowDataValue.push(v.dataLabels(t[o])),t.dominantFlowDataValue.push(v.dataLabels(t[o])),t.dominantNodeColor.push(i[o].color),t.subservientNodeColor.push(i[o].color)),t[l]===t[o]?(t.dominantNode.push(o,l),t.subservientNode.push(l,o),t.subservientFlowDataValue.push(v.dataLabels(t[l])),t.dominantFlowDataValue.push(v.dataLabels(t[o])),t.dominantNodeColor.push(i[o].color,i[l].color),t.subservientNodeColor.push(i[l].color,i[o].color)):r.isPost?(t[l]||0)>(t[o]||0)?(r.linkColorByDominance?t.dominantNode.push(l):t.dominantNode.push(o),r.linkColorByDominance?t.subservientNode.push(o):t.subservientNode.push(l),r.linkColorByDominance?t.dominantFlowDataValue.push(v.dataLabels(t[l])):t.dominantFlowDataValue.push(v.dataLabels(t[o])),r.linkColorByDominance?t.subservientFlowDataValue.push(v.dataLabels(t[o])):t.subservientFlowDataValue.push(v.dataLabels(t[l])),r.linkColorByDominance?t.dominantNodeColor.push(i[l].color):t.dominantNodeColor.push(i[o].color),r.linkColorByDominance?t.subservientNodeColor.push(i[o].color):t.subservientNodeColor.push(i[l].color)):(r.linkColorByDominance?t.dominantNode.push(o):t.dominantNode.push(l),r.linkColorByDominance?t.subservientNode.push(l):t.subservientNode.push(o),r.linkColorByDominance?t.dominantFlowDataValue.push(v.dataLabels(t[o])):t.dominantFlowDataValue.push(v.dataLabels(t[l])),r.linkColorByDominance?t.subservientFlowDataValue.push(v.dataLabels(t[l])):t.subservientFlowDataValue.push(v.dataLabels(t[o])),r.linkColorByDominance?t.dominantNodeColor.push(i[o].color):t.dominantNodeColor.push(i[l].color),r.linkColorByDominance?t.subservientNodeColor.push(i[l].color):t.subservientNodeColor.push(i[o].color)):(t[l]||0)>(t[o]||0)?(r.linkColorByDominance?t.dominantNode.push(o):t.dominantNode.push(l),r.linkColorByDominance?t.subservientNode.push(l):t.subservientNode.push(o),r.linkColorByDominance?t.dominantFlowDataValue.push(v.dataLabels(t[o])):t.dominantFlowDataValue.push(v.dataLabels(t[l])),r.linkColorByDominance?t.subservientFlowDataValue.push(v.dataLabels(t[l])):t.subservientFlowDataValue.push(v.dataLabels(t[o])),r.linkColorByDominance?t.dominantNodeColor.push(i[o].color):t.dominantNodeColor.push(i[l].color),r.linkColorByDominance?t.subservientNodeColor.push(i[l].color):t.subservientNodeColor.push(i[o].color)):(r.linkColorByDominance?t.dominantNode.push(l):t.dominantNode.push(o),r.linkColorByDominance?t.subservientNode.push(o):t.subservientNode.push(l),r.linkColorByDominance?t.dominantFlowDataValue.push(v.dataLabels(t[l])):t.dominantFlowDataValue.push(v.dataLabels(t[o])),r.linkColorByDominance?t.subservientFlowDataValue.push(v.dataLabels(t[o])):t.subservientFlowDataValue.push(v.dataLabels(t[l])),r.linkColorByDominance?t.dominantNodeColor.push(i[l].color):t.dominantNodeColor.push(i[o].color),r.linkColorByDominance?t.subservientNodeColor.push(i[o].color):t.subservientNodeColor.push(i[l].color))}))},t.getName=function(){return"Chord"},a.getName=function(){return"Chord"},a.getDSdef=function(){return f["default"]},a._manageLegendSpace=function(){m._manageLegendSpace.call(this)},a._spaceManager=function(){var e,t,a,o,r,i,n,l,s=this.config,c=this.getChildren("node-link-manager")[0];s.showLegend&&this._manageLegendSpace(),this._manageChartMenuBar(.6*s.availableHeight),this.allocateDimensionOfChartMenuBar(),this.config.showLegend&&this.getChildren("legend")&&this.getChildren("legend")[0].postSpaceManager(),e=s.canvasHeight,t=s.canvasWidth,a=s.canvasLeft+t/2,o=s.canvasTop+e/2,l=(i=Math.min(e,t)/2)-(n=.3*i)-s.nodeLabelGap,r=c._manageSpace({maxSpace:l}),this.config.cx=a,this.config.cy=o;var d=Math.max((i-r.width-s.nodeLabelGap)*s.chordradius/100,n),h=d-s.nodeThickness,u=h-s.nodeLinkPadding;s.ribbonRadius=u,c.setDimension({nodeOuterRadius:d,nodeInnerRadius:h,ribbonRadius:u}),c.setTranslation(a,o)},a._checkInvalidData=function(){var e=this.getFromEnv("chartInstance");return(0,l["default"])(this.getFromEnv("dataSource").links)?!this:(e.__state.dataReady=!1,e.jsVars.hasNativeMessage=!0,e.jsVars.drawCount+=1,!0)},a._checkInvalidSpecificData=function(){return!this},t}(n["default"]);t["default"]=x},1465:function(e,t,a){"use strict";var o=a(273);t.__esModule=!0,t["default"]=function(e){var t,a=e.config.showLegend?1:0;(0,r.componentFactory)(e,i["default"],"legend",a,[{}]),(t=e.getChildren("legend"))&&t[0]&&!t[0].getState("removed")?e.addToEnv("legend",t[0]):e.deleteFromEnv("legend")};var r=a(278),i=o(a(630))},1466:function(e,t,a){"use strict";var o=a(273);t.__esModule=!0,t["default"]=function(e){var t=e.config;(0,r.componentFactory)(e,i["default"],"node-link-manager",1,[{nodes:t.nodes,links:t.links,nodesOrder:t.nodesOrder,linksOrder:t.linksOrder,nodeLabelGap:t.nodeLabelGap,nodeLinkPadding:t.nodeLinkPadding,showLegend:t.showLegend,totalAngle:t.totalAngle,nodeSpacing:t.nodeSpacing,isPost:t.isPost,matrix:t.matrix,startingAngle:t.startingAngle,minNodeSize:t.minNodeSize,highlightEffect:t.highlightEffect,enableToggle:t.enableToggle,datalabelStyle:t.datalabelStyle}]),t.showLegend&&e.getChildren("node-link-manager")[0]._addLegend()};var r=a(278),i=o(a(1467))},1467:function(e,t,a){"use strict";var o=a(273);t.__esModule=!0,t["default"]=void 0;var r=o(a(277)),i=o(a(292)),n=a(294),l=o(a(1468)),s=o(a(1471)),c=a(278);function d(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,o)}return a}function h(e){for(var t=1;t<arguments.length;t++){var a=null!=arguments[t]?arguments[t]:{};t%2?d(Object(a),!0).forEach((function(t){(0,r["default"])(e,t,a[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(a)):d(Object(a)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(a,t))}))}return e}var u=function(e,t){return e-t},p=function(e){function t(t){var a;return(a=e.call(this,t)||this).registerFactory("chord-node-factory",l["default"]),a.registerFactory("chord-link-factory",s["default"]),a}(0,i["default"])(t,e);var a=t.prototype;return a.__setDefaultConfig=function(){e.prototype.__setDefaultConfig.call(this);var t=this.config;t.total=0,t.adjustedTotal=0},a.configureAttributes=function(t){e.prototype.configureAttributes.call(this,t),Object.assign(this.config,t);var a,o=this.config,r=o.totalAngle,i=o.startingAngle,n=o.nodesOrder,l=o.nodes,s=o.linksOrder,d=o.links;r-=o.nodeSpacing*n.length,a=o.total=n.reduce((function(e,t){return e+l[t].total}),0),o.adjustedTotal=n.reduce((function(e,t){var r=l[t];return r.total/(a||1)<o.minNodeSize?r.adjustedTotal=(a||1)*o.minNodeSize:r.adjustedTotal=r.total,e+r.adjustedTotal}),0),o.interactiveLegend=(0,c.pluckNumber)(this.getFromEnv("chart-attrib").interactivelegend,1);var h=r/o.adjustedTotal;n.forEach((function(e){var t=l[e];t.startingAngle=i,t.arcAngle=t.adjustedTotal*h,t.endingAngle=i+t.arcAngle,t.scale.setRange([t.startingAngle,t.endingAngle]).setDomain([0,t.adjustedTotal]),i=t.endingAngle+o.nodeSpacing})),s.forEach((function(e){if(d[e].visible){var t,a,r=d[e],i=o.isPost?r.linkedNodes[1]:r.linkedNodes[0],n=o.isPost?r.linkedNodes[0]:r.linkedNodes[1],s=l[i],c=l[n],h=s.scale,u=c.scale,p=h.getRangeValue(s.nodeCovered),g=h.getRangeValue(s.nodeCovered+=r[i]||0);r.points.length&&(r.points.length=0),i===n?(t=p,a=g):(t=u.getRangeValue(c.nodeCovered),a=u.getRangeValue(c.nodeCovered+=r[n]||0)),r.points.push(p,g,t,a)}})),s.forEach((function(e){var t=d[e],a=t.dominantNode;if(t.angles=t.points.slice(0).sort(u),a.length>1&&l[a[0]].rawColor!==l[a[1]].rawColor){var o=l[a[0]].index>l[a[1]].index?[l[a[1]],l[a[0]]]:[l[a[0]],l[a[1]]];t.rawColor=[o[0].rawColor,o[1].rawColor]}else t.normalState.fill=(0,c.convertColor)(l[a[0]].rawColor,t.alpha),t.normalState.stroke=(0,c.convertColor)(l[a[0]].rawColor,t.borderAlpha),t.focussedState.fill=(0,c.convertColor)(l[a[0]].rawColor,t.hoverAlpha),t.focussedState.stroke=t.focussedState.fill,t.unfocussedState.fill=(0,c.convertColor)(l[a[0]].rawColor,t.unfocussedAlpha),t.unfocussedState.stroke=t.unfocussedState.fill}))},a.setDimension=function(e){var t=this.config;Object.assign(t,e),this.getChildren("node")&&this.getChildren("node").forEach((function(e){return!e.getState("removed")&&e.setDimension({outerRadius:t.nodeOuterRadius,innerRadius:t.nodeInnerRadius})})),this.getChildren("ribbon")&&this.getChildren("ribbon").forEach((function(e){return!e.getState("removed")&&e.setDimension({radius:t.ribbonRadius})}))},a._manageSpace=function(e){var t=this.getChildren("node").map((function(t){return t._manageSpace(e)})),a=Math.max.apply(Math,t);return{width:a,height:a}},a._createContainer=function(){var e=this.config;this.addGraphicalElement({el:"group",container:{id:"plotGroup",isParent:!0},component:this,label:"link-container",id:"link-container",attr:{name:"link-container",transform:e.translate}}),this.addGraphicalElement({el:"group",container:{id:"plotGroup",isParent:!0},component:this,label:"node-container",id:"node-container",attr:h({name:"node-container",transform:e.translate},e.datalabelStyle)})},a.draw=function(){this._createContainer()},a.getName=function(){return"node-link-manager"},a.getType=function(){return"node-link-manager"},a._addLegend=function(){var e,t,a=this,o=a.config,r=o.nodes,i=o.nodesOrder,n=a.getFromEnv("legend"),l=o.legendItemMap||(o.legendItemMap={}),s=new Set;Object.keys(l).forEach((function(e){return s.add(l[e])})),i.forEach((function(o){var i=r[o];t=l[o],(e=n.getItem(t))?(e.removeLegendState("hidden"),s["delete"](t)):(t=n.createItem(),e=n.getItem(t),l[o]=t,a.addExtEventListener("fc-click",(function(){if(a.config.interactiveLegend){var e=a.config.nodes[o],t=n.getItem(l[o]);a.nodeClicked(e.label,t)}}),e),a.addExtEventListener("fc-mouseover",(function(){a.config.interactiveLegend&&a.nodeHoverIn(o)}),e),a.addExtEventListener("fc-mouseout",(function(){a.config.interactiveLegend&&a.nodeHoverOut(o)}),e)),e.configure({enabled:!0,label:o}),e.setStateCosmetics("default",{symbol:{rawFillColor:i.color,rawStrokeColor:i.color,fill:i.color,stroke:i.color}})})),s.forEach((function(e){n.disposeItem(e)}))},a.nodeClicked=function(e,t){if(this.config.enableToggle){var a=this.config,o=a.nodes,r=a.nodesOrder,i=a.links,n=o[e],l=n.linkedLinks,s=n.active;n.active?t&&t.setLegendState("hidden"):t&&t.removeLegendState("hidden"),n.active=!s,l.forEach((function(e){var t=i[e],r=a.isPost?t.linkedNodes[1]:t.linkedNodes[0],n=a.isPost?t.linkedNodes[0]:t.linkedNodes[1],l=o[r],s=o[n],d=t.visible;t.visible=l.active&&s.active,t.visible!==d&&(t.visible?(l.total=(0,c.toPrecision)(l.total+(t[r]||0),4),n!==r&&(s.total=(0,c.toPrecision)(s.total+(t[n]||0),4))):(l.total=(0,c.toPrecision)(l.total-(t[r]||0),4),n!==r&&(s.total=(0,c.toPrecision)(s.total-(t[n]||0),4))))})),r.forEach((function(e){return o[e].nodeCovered=0})),s?this.nodeHoverOut(e,!1):this.nodeHoverIn(e,!1),this.setData({},!0),this.setDimension()}},a.linkHoverIn=function(e,t){if(void 0===t&&(t=!0),this.config.highlightEffect){var a=this,o=a.config,r=o.links,i=o.nodes,n=o.nodesOrder,l=o.linksOrder,s=r[e].linkedNodes;n.forEach((function(e){var o=i[e],r=a.getChild(e);r&&!r.getState("removed")&&(s.includes(e)?(o.hovered=!0,o.unfocussed=!1):(o.hovered=!1,o.unfocussed=!0),t&&r.setData({hovered:o.hovered,unfocussed:o.unfocussed},!0))})),l.forEach((function(o){var i=r[o],n=a.getChild(o);n&&!n.getState("removed")&&(o===e?(i.hovered=!0,i.unfocussed=!1):(i.hovered=!1,i.unfocussed=!0),t&&n.setData({hovered:i.hovered,unfocussed:i.unfocussed},!0))})),t&&this.setDimension()}},a.resetEffect=function(e){void 0===e&&(e=!0);var t=this,a=t.config,o=a.links,r=a.nodes,i=a.nodesOrder,n=a.linksOrder;i.forEach((function(a){var o=r[a],i=t.getChild(a);i&&!i.getState("removed")&&(o.hovered=!1,o.unfocussed=!1,e&&i.setData({hovered:o.hovered,unfocussed:o.unfocussed},!0))})),n.forEach((function(a){var r=o[a],i=t.getChild(a);i&&!i.getState("removed")&&(r.hovered=!1,r.unfocussed=!1,e&&i.setData({hovered:r.hovered,unfocussed:r.unfocussed},!0))})),this.setDimension()},a.linkHoverOut=function(e,t){void 0===t&&(t=!0),this.config.highlightEffect&&this.resetEffect(t)},a.nodeHoverIn=function(e,t){if(void 0===t&&(t=!0),this.config.highlightEffect){var a=this,o=a.config,r=o.links,i=o.nodes,n=o.nodesOrder,l=o.linksOrder,s=i[e],c=s.linkedLinks,d=c.map((function(t){return r[t].linkedNodes[0]===e?r[t].linkedNodes[1]:r[t].linkedNodes[0]}));d.push(e),n.forEach((function(e){var o=i[e],r=a.getChild(e);r&&!r.getState("removed")&&(d.includes(e)?(o.hovered=!0,o.unfocussed=!1):(o.hovered=!1,o.unfocussed=!0),t&&s.active&&r.setData({hovered:o.hovered,unfocussed:o.unfocussed},!0))})),l.forEach((function(e){var o=r[e],i=a.getChild(e);i&&!i.getState("removed")&&(c.includes(e)?(o.hovered=!0,o.unfocussed=!1):(o.hovered=!1,o.unfocussed=!0),t&&s.active&&i.setData({hovered:o.hovered,unfocussed:o.unfocussed},!0))})),t&&s.active&&this.setDimension()}},a.nodeHoverOut=function(e,t){void 0===t&&(t=!0),this.config.highlightEffect&&this.resetEffect(t)},t}(n.SmartRenderer);t["default"]=p},1468:function(e,t,a){"use strict";var o=a(273);t.__esModule=!0,t["default"]=function(e){var t=e.config;t.nodesOrder.forEach((function(a){e.attachChild(r["default"],"node",a).configure(t.nodes[a])}))};var r=o(a(1469))},1469:function(e,t,a){"use strict";var o=a(273);t.__esModule=!0,t["default"]=void 0;var r=o(a(292)),i=a(294),n=a(1454),l=a(1470),s=a(278),c=a(651),d=function(e,t,a,o){var r=(0,n.polarToCartesian)(o,(0,l.normaliseAngle)(e),!1),i=r.x,s=r.y,c=(0,n.polarToCartesian)(o,(0,l.normaliseAngle)(t),!1);return"M "+i+" "+s+" A "+o+" "+o+" 0 "+(a>180?1:0)+" "+(e>t?0:1)+" "+c.x+" "+c.y},h=function(e){var t=this.getLinkedParent(),a=this.getFromEnv("legend"),o=this.getFromEnv("chart"),r=a?a.getItem(t.config.legendItemMap[this.config.label]):null,i={};g(i,this),t.nodeClicked(this.config.label,r),o.plotEventHandler(null,e,"dataplotclick",i)},u=function(e){var t=this.getFromEnv("chart");this.getLinkedParent().nodeHoverIn(this.config.label);var a={};g(a,this),t.plotEventHandler(null,e,"DataPlotRollOver",a)},p=function(e){var t=this.getFromEnv("chart");this.getLinkedParent().nodeHoverOut(this.config.label);var a={};g(a,this),t.plotEventHandler(null,e,"DataPlotRollOut",a)},g=function(e,t){var a,o=t.getLinkedParent();for(e.label=t.config.label,e.color=t.config.color,e.alpha=t.config.alpha,e.links={},e.value=t.config.total,e.displayValue=t.config.formattedValue,e.nodeValue=t.config.nodevalue,e.nodeDataValue=t.config.nodedatavalue,e.plotFillColor=t.config.plotfillcolor,e.toolText=t.config.tooltext,a=0;a<t.config.linkedLinks.length;a++){var r,i=t.config.linkedLinks[a],n=o.config.links[i],l=[],c=e.label,d={},h={};d[c]=n[c],h[r=i.replace(c,"").replace(",","")]=n[r],l.push(d),r!==c&&n[r]!==s.UNDEF&&l.push(h),e.links[i]=l}},f=function(e){function t(t){var a;return(a=e.call(this,t)||this).addEventListener("fc-click",h),a.addEventListener("fc-mouseover",u),a.addEventListener("fc-mouseout",p),a}(0,r["default"])(t,e);var a=t.prototype;return a.__setDefaultConfig=function(){e.prototype.__setDefaultConfig.call(this),this.config.styles={fill:"#ff0000",stroke:"#ff0000","fill-alpha":.7}},a.configureAttributes=function(t){e.prototype.configureAttributes.call(this,t),Object.assign(this.config,t);this.config.formattedValue=this.getFromEnv("number-formatter").dataLabels(this.config.total),this.config.formattedNodeDataValue=this.getFromEnv("number-formatter").dataLabels(this.config.nodedatavalue)},a.setDimension=function(e){Object.assign(this.config,e)},a.allocatePosition=function(){var e,t,a,o,r,i=this.config,h=i.label,u=this.getFromEnv("chartConfig"),p=u.canvasHeight,g=u.canvasWidth,f=u.cx,m=u.cy,v=u.style,b=i.labelPosition,x=i.outerRadius+i.nodeLabelGap,k=this.getFromEnv("smartLabel"),y=(0,l.normaliseAngle)(i.startingAngle),C=(0,l.normaliseAngle)(i.endingAngle),w={};switch(i.style["font-size"]=a=this.computeFontSize(v.inCanfontSizeWithUnit),o=(0,s.setLineHeight)({fontSize:a}).replace(/px/gi,s.BLANKSTRING),k.setStyle(i.style),k.useEllipsesOnOverflow(this.getFromEnv("chartConfig").useEllipsesOnOverflow),b){case"tangential":var A,S,N=(y+C)/2%360,L=0;switch(r=(0,n.polarToCartesian)(x,N,!1),(0,c.getQuadrant)((0,n.deg2Rad)(N))){case 0:A=g/2,S=p/2,e=Math.tan((0,n.deg2Rad)(360-N)),L=Math.abs(A*e)<=S?(0,l.getCartesianDistance)(r.x+f,r.y+m,f+A,m-A*e):(0,l.getCartesianDistance)(r.x+f,r.y+m,f-S/e,m+S);break;case 1:A=-1*g/2,S=p/2,e=Math.tan((0,n.deg2Rad)(180+N)),L=Math.abs(A*e)<=Math.abs(S)?(0,l.getCartesianDistance)(r.x+f,r.y+m,f+A,m+A*e):(0,l.getCartesianDistance)(r.x+f,r.y+m,f+S/e,m+S);break;case 2:A=-1*g/2,S=p/2*-1,e=Math.tan((0,n.deg2Rad)(360-N)),L=Math.abs(A*e)<=Math.abs(S)?(0,l.getCartesianDistance)(r.x+f,r.y+m,f+A,m-A*e):(0,l.getCartesianDistance)(r.x+f,r.y+m,f-S/e,m+S);break;case 3:A=g/2,S=p/2*-1,e=Math.tan((0,n.deg2Rad)(-1*N)),L=Math.abs(A*e)<=Math.abs(S)?(0,l.getCartesianDistance)(r.x+f,r.y+m,f+A,m-A*e):(0,l.getCartesianDistance)(r.x+f,r.y+m,f-S/e,m+S)}t=k.getSmartText(h,L,o),w.transform=(0,s.getSuggestiveRotation)((0,l.getTextRotationByQuadrant)(N),r.x,r.y),(0,l.isAngleInLeftHemisphere)(N)&&(w["text-anchor"]="end"),w.x=r.x,w.y=r.y;break;case"outside":var D=(y+C)/2%360,E=(0,n.deg2Rad)(D),T=(0,c.getCleanAngle)(E),F=(0,n.rad2Deg)(T),P=(0,l.isAngleInTopHemisphere)(F),_=(0,l.getArcLength)(x,y,C),V=P?i.startingAngle:i.endingAngle,I=P?i.endingAngle:i.startingAngle;t=k.getSmartText(h,_-4,o),s.isIE11&&(P||(x+=.7*t.height)),w.textpath={path:d(V,I,i.arcAngle,x),startOffset:"50%"},w[s.TEXTANCHOR]=s.MIDDLESTR,w["vertical-align"]=P?"top":"bottom",w.transform=null,w.x=0,w.y=0;break;case"inside":default:var B=(y+C)/2%360,M=(0,n.deg2Rad)(B),O=(0,c.getCleanAngle)(M),R=(0,n.rad2Deg)(O),G=(0,l.isAngleInTopHemisphere)(R),H=(i.outerRadius+i.innerRadius)/2,z=(0,l.getArcLength)(H,y,C),W=G?i.startingAngle:i.endingAngle,U=G?i.endingAngle:i.startingAngle;t=k.getSmartText(h,z-4,o),s.isIE11&&(G?H-=.3*t.height:H+=.3*t.height),w.textpath={path:d(W,U,i.arcAngle,H),startOffset:"50%"},w[s.TEXTANCHOR]=s.MIDDLESTR,w["vertical-align"]=s.MIDDLESTR,w.transform=null,w.x=0,w.y=0}w.fill=(0,s.convertColor)(i.labelColor,100),w.text=t.text,w.cursor=s.POINTER,w["text-anchor"]=w["text-anchor"]||"start",this.config.labelAttrs=w,this.config.path=function(e,t,a,o,r){var i=(0,l.normaliseAngle)(e),c=(0,l.normaliseAngle)(t),d=(0,n.polarToCartesian)(o,i,!1),h=d.x,u=d.y,p=(0,n.polarToCartesian)(o,c,!1),g=p.x,f=p.y,m=(0,n.polarToCartesian)(r,i,!1),v=m.x,b=m.y,x=(0,n.polarToCartesian)(r,c,!1),k=x.x,y=x.y;return h=(0,s.toPrecision)(h,4),u=(0,s.toPrecision)(u,4),g=(0,s.toPrecision)(g,4),f=(0,s.toPrecision)(f,4),v=(0,s.toPrecision)(v,4),b=(0,s.toPrecision)(b,4),k=(0,s.toPrecision)(k,4),y=(0,s.toPrecision)(y,4),[l.M,h,u,l.A,o,o,0,a>180?1:0,1,g,f,l.L,k,y,l.A,r,r,0,a>180?1:0,0,v,b,l.Z]}(i.startingAngle,i.endingAngle,i.arcAngle,i.outerRadius,i.innerRadius),this.config.focussedState.path=this.config.path,this.config.normalState.path=this.config.path,this.config.unfocussedState.path=this.config.path,this.config.deactiveState.path=this.config.path},a.draw=function(){var e,t=this.config,a=this.getFromEnv("chartConfig"),o=t.showToolTip?function(e,t,a){var o,r,i,n,c,d,h,u,p,g=s.isIpad?l.SMALLSQUARE:l.MEDIUMSQUARE,f=[3,133,134,143,144,145],m=t.computeFontSize(a.style.inCanfontSizeWithUnit),v=t.getLinkedParent(),b=a&&a.drawcustomlegendicon,x=t.getFromEnv("legend"),k=[],y=[],C=b&&x&&x.config&&x.config.isActive?x.getItem(v.config.legendItemMap[t.config.label]):null,w=C&&C.getGraphicalElement();if(h=s.BLANKSTRING,C){if(o=(c=w&&w.legendItemSymbol)&&c.attrs.path.split(/(?=[LMCA])/),n=c&&c.node.getBBox(),o&&o.length)for(r=0;r<o.length;r++)y.push(o[r][0]),o[r]=o[r].substring(1,o[r].length),r===o.length-1&&(o[r]=o[r].substring(0,o[r].length-1)),k[r]=o[r].split(",");if(k&&k.length)for(r=0;r<k.length;r++){if(k[r].length)for(i=0;i<k[r].length;i++)k[r][i]=Number(k[r][i]),"A"!==y[r]?0===i?k[r][i]=k[r][i]-n.x:1===i&&(k[r][i]=k[r][i]-n.y):"A"===y[r]&&(5===i?k[r][i]=k[r][i]-n.x:6===i&&(k[r][i]=k[r][i]-n.y));h+=y[r]+k[r].toString()}h+="Z"}return u={label:e.label,value:e.total,nodeValue:e.total,nodeDataValue:e.formattedValue,plotFillColor:e.color,plotFillAlpha:e.alpha,plotIdentifier:C?"<svg height= "+n.height+" width = "+n.width+" overflow='visible' xmlns=\"http://www.w3.org/2000/svg\">\n <path d= "+h+" fill = "+w.legendItemSymbol.node.getAttribute("fill")+" stroke = "+w.legendItemSymbol.node.getAttribute("stroke")+"\n stroke-opacity = "+w.legendItemSymbol.node.getAttribute("stroke-opacity")+" fill-opacity = "+w.legendItemSymbol.node.getAttribute("fill-opacity")+" \n stroke-width = "+w.legendItemSymbol.node.getAttribute("stroke-width")+" stroke-linecap = "+w.legendItemSymbol.node.getAttribute("stroke-linecap")+"></path>\n </svg>":"<span style='color: "+e.color+";'>"+g+" </span>"},p=(0,s.parseTooltext)(e.tooltext,f,u,{label:e.label,value:e.formattedValue,nodeValue:e.total,nodeDataValue:e.formattedValue,plotFillColor:e.color,plotFillAlpha:e.alpha,plotIdentifier:C?"<svg height= "+n.height+" width = "+n.width+" overflow='visible' xmlns=\"http://www.w3.org/2000/svg\">\n <path d= "+h+" fill = "+w.legendItemSymbol.node.getAttribute("fill")+" stroke = "+w.legendItemSymbol.node.getAttribute("stroke")+"\n stroke-opacity = "+w.legendItemSymbol.node.getAttribute("stroke-opacity")+" fill-opacity = "+w.legendItemSymbol.node.getAttribute("fill-opacity")+" \n stroke-width = "+w.legendItemSymbol.node.getAttribute("stroke-width")+" stroke-linecap = "+w.legendItemSymbol.node.getAttribute("stroke-linecap")+"></path>\n </svg>":"<span style='color: "+e.color+";'>"+g+" </span>"}),d=(0,s.parseTooltext)(e.tooltext,f,u,{label:e.label,value:e.formattedValue,nodeValue:e.total,nodeDataValue:e.formattedValue,plotFillColor:e.color,plotFillAlpha:e.alpha,plotIdentifier:C?"<svg height= "+n.height+" width = "+n.width+" overflow='visible' xmlns=\"http://www.w3.org/2000/svg\">\n <path d= "+h+" fill = "+w.legendItemSymbol.node.getAttribute("fill")+" stroke = "+w.legendItemSymbol.node.getAttribute("stroke")+"\n stroke-opacity = "+w.legendItemSymbol.node.getAttribute("stroke-opacity")+" fill-opacity = "+w.legendItemSymbol.node.getAttribute("fill-opacity")+" \n stroke-width = "+w.legendItemSymbol.node.getAttribute("stroke-width")+" stroke-linecap = "+w.legendItemSymbol.node.getAttribute("stroke-linecap")+"></path>\n </svg>":"<span style='color: "+e.color+";'>"+g+" </span>"}),e.setToolText=p,e.setPlotTooltext=e.setToolText?e.setToolText:d,e.tooltext?"<div style='padding: 2px; vertical-align: middle; font-size: "+m+"px;'>\n <span style='color: "+e.color+";'>\n "+g+"\n </span>\n "+e.setPlotTooltext+"\n </div>":"<div style='padding: 2px; vertical-align: middle; font-size: "+m+"px;'>\n <span style='color: "+e.color+";'>\n "+g+"\n </span>\n "+(e.label+e.toolTipSepChar)+"\n \n "+e.formattedValue+"\n </div>"}(t,this,a):s.BLANKSTRING;(e=this.config.active?t.hovered?t.focussedState:t.unfocussed?t.unfocussedState:t.normalState:t.deactiveState).cursor=s.POINTER,this.addGraphicalElement({el:"group",container:{id:"node-container",isParent:!0},tooltext:o,component:this,label:"text-path-container",id:"text-path-container",attr:{name:"text-path-container"}}),this.addGraphicalElement({el:"path",label:"node",tooltext:o,container:{id:"text-path-container"},attr:e,component:this},!0),t.showLabel&&this.addGraphicalElement({el:"text",label:"node-label",container:{id:"text-path-container"},attr:t.labelAttrs,outlineText:!!a.textOutline,css:{},tooltext:o,component:this},!0)},a._manageSpace=function(e){var t,a=this.config,o=this.getFromEnv("smartLabel");return o.setStyle(a.style),t=o.getOriSize(a.label),a.showLabel?"tangential"===a.labelPosition?t.width>e.maxSpace?o.getSmartText(a.label,e.maxSpace,t.height).width:t.width:"outside"===a.labelPosition?t.height:0:0},a.getName=function(){return"node"},a.getType=function(){return"dataset"},t}(i.SmartRenderer);t["default"]=f},1470:function(e,t,a){"use strict";t.__esModule=!0,t.normaliseAngle=function(e){return e-90},t.getArcLength=function(e,t,a){return n*e*Math.abs(a-t)/360},t.getTextRotationByQuadrant=function(e){var t=e;s(t)&&(t-=180);return t},t.isAngleInLeftHemisphere=s,t.isAngleInTopHemisphere=function(e){return Math.abs(e)>180&&Math.abs(e)<360},t.getCartesianDistance=function(e,t,a,o){return Math.sqrt((a-e)*(a-e)+(o-t)*(o-t))},t.MEDIUMSQUARE=t.SMALLSQUARE=t.HALF_PI=t.PI2=t.COS=t.SIN=t.PI=t.C=t.Z=t.L=t.A=t.M=void 0;var o=Math.PI,r=Math.sin,i=Math.cos,n=2*o,l=o/2;function s(e){return Math.abs(e)>90&&Math.abs(e)<270}t.MEDIUMSQUARE="◼",t.SMALLSQUARE="■",t.HALF_PI=l,t.PI2=n,t.COS=i,t.SIN=r,t.PI=o,t.C="C",t.Z="Z",t.L="L",t.A="A",t.M="M"},1471:function(e,t,a){"use strict";var o=a(273);t.__esModule=!0,t["default"]=function(e){var t=e.config.links;for(var a in t)t.hasOwnProperty(a)&&t[a].visible&&e.attachChild(r["default"],"ribbon",a).configure(t[a])};var r=o(a(1472))},1472:function(e,t,a){"use strict";var o=a(273);t.__esModule=!0,t["default"]=void 0;var r=o(a(292)),i=a(294),n=a(1454),l=a(278),s=a(1470),c=function(e){return e-s.HALF_PI},d=function(){var e=this.getFromEnv("chart");this.getLinkedParent().linkHoverIn(this.config.key);var t={};p(t,this),e.fireChartInstanceEvent("linkRollOver",t)},h=function(){var e=this.getFromEnv("chart");this.getLinkedParent().linkHoverOut(this.config.key);var t={};p(t,this),e.fireChartInstanceEvent("linkRollOut",t)},u=function(){var e=this.getFromEnv("chart"),t={};p(t,this),e.fireChartInstanceEvent("linkClick",t)},p=function(e,t){var a;for(e.dominantFlowValue=t.config[t.config.dominantNode[0]],a=0;a<t.config.linkedNodes.length&&t.config.linkedNodes[a]===t.config.dominantNode[0];a++);e.subservientFlowValue=t.config[t.config.linkedNodes[a]],e.linkedNodes=t.config.linkedNodes,e.dominantFlowValue===e.subservientFlowValue?e.color=t.config.rawColor||(0,l.rgbaToHex)(t.config.normalState.fill):e.color=(0,l.rgbaToHex)(t.config.normalState.fill),e.alpha=t.config.alpha},g=function(e){return 0===e.length?[]:1===e.length?[e[0]]:e.filter((function(t,a){return e.indexOf(t)===a}))},f=function(e,t){var a,o=e,r=t,i=[];if(!r.length)return[];if(1===r.length)return o[r[0]];for(a=0;a<r.length;a++)i.push(o[r[a]]);return i},m=function(e,t,a,o){var r,i,n,s=l.BLANKSTRING;if(""!==o&&a&&a.length){if(1===a.length)return"<svg height= "+(i=(r=a[0].getGraphicalElement()).legendItemSymbol.node.getBBox()).height+" width = "+i.width+" overflow='visible' xmlns=\"http://www.w3.org/2000/svg\">\n <path d= "+o+" fill = "+r.legendItemSymbol.node.getAttribute("fill")+" stroke = "+r.legendItemSymbol.node.getAttribute("stroke")+"\n stroke-opacity = "+r.legendItemSymbol.node.getAttribute("stroke-opacity")+" fill-opacity = "+r.legendItemSymbol.node.getAttribute("fill-opacity")+" \n stroke-width = "+r.legendItemSymbol.node.getAttribute("stroke-width")+" stroke-linecap = "+r.legendItemSymbol.node.getAttribute("stroke-linecap")+"></path>\n </svg>";for(n=0;n<a.length;n++)s+="<svg height= "+(i=(r=a[n].getGraphicalElement()).legendItemSymbol.node.getBBox()).height+" width = "+i.width+" overflow='visible' xmlns=\"http://www.w3.org/2000/svg\">\n <path d= "+o+" fill = "+r.legendItemSymbol.node.getAttribute("fill")+" stroke = "+r.legendItemSymbol.node.getAttribute("stroke")+"\n stroke-opacity = "+r.legendItemSymbol.node.getAttribute("stroke-opacity")+" fill-opacity = "+r.legendItemSymbol.node.getAttribute("fill-opacity")+" \n stroke-width = "+r.legendItemSymbol.node.getAttribute("stroke-width")+" stroke-linecap = "+r.legendItemSymbol.node.getAttribute("stroke-linecap")+"></path>\n </svg>"}else if(e.length)for(n=0;n<e.length;n++)s+="\n <span style='color: "+e[n]+";'>\n "+t+"\n </span>";return s},v=function(e,t,a){var o,r=[];if(a&&a.length){if(1===a.length)return[e.getItem(t.config.legendItemMap[a[0]])];for(o=0;o<a.length;o++)r.push(e.getItem(t.config.legendItemMap[a[o]]))}return r},b=function(e){function t(t){var a;return(a=e.call(this,t)||this).addEventListener("fc-mouseover",d),a.addEventListener("fc-mouseout",h),a.addEventListener("fc-click",u),a}(0,r["default"])(t,e);var a=t.prototype;return a.configureAttributes=function(t){e.prototype.configureAttributes.call(this,t),Object.assign(this.config,t)},a.setDimension=function(e){this.config.radius=e.radius},a.allocatePosition=function(){var e,t,a,o,r=this.config;r.path=(e=r.points,t=r.radius,a=0,o=e.map((function(o,r){var i=(0,n.deg2Rad)(o),d=(0,n.polarToCartesian)(t,c((0,n.deg2Rad)(a))+i),h=d.x,u=d.y,p=.6,g=Math.abs((0,n.deg2Rad)(e[3-r])-i),f=Math.abs((0,n.deg2Rad)(e[(r+1)%4])-i);return g>s.PI&&(g=s.PI2-g),g*t<t&&(p*=g),{x:h=(0,l.toPrecision)(h,4),y:u=(0,l.toPrecision)(u,4),cpX:(1-p)*h,cpY:(1-p)*u,arc:f}})),[s.M,o[0].x,o[0].y,s.A,t,t,0,o[0].arc>s.PI?1:0,1,o[1].x,o[1].y,s.C,o[1].cpX,o[1].cpY,o[2].cpX,o[2].cpY,o[2].x,o[2].y,s.A,t,t,0,o[2].arc>s.PI?1:0,1,o[3].x,o[3].y,s.C,o[3].cpX,o[3].cpY,o[0].cpX,o[0].cpY,o[0].x,o[0].y].join(" ")),r.ribbonAttrs=r.hovered?r.focussedState:r.unfocussed?r.unfocussedState:r.normalState,r.ribbonAttrs.path=r.path,r.ribbonAttrs["stroke-width"]=(r.showBorder?r.borderThickness:0)||0},a.draw=function(){var e=this.getFromEnv("chart").config,t=e.canvasHeight,a=e.canvasWidth,o=e.canvasLeft+a/2,r=e.canvasTop+t/2,i=e.width,d=e.height,h=e.ribbonRadius,u=this.config,p=u.angles,b=u.showToolTip?function(e,t,a,o){var r,i,n,c,d,h,u,p,b,x,k=l.isIpad?s.SMALLSQUARE:s.MEDIUMSQUARE,y=l.BLANKSTRING,C=t&&t.drawcustomlegendicon,w=o.getLinkedParent(),A=o.getFromEnv("legend"),S=[],N=[],L=C&&A&&A.config&&A.config.isActive?v(A,w,g(e.dominantNode)):null,D=C&&A&&A.config&&A.config.isActive?v(A,w,g(e.subservientNode)):null;if(p=l.BLANKSTRING,L&&L.length){if(i=(c=(n=L&&L[0]&&L[0].getGraphicalElement())&&n.legendItemSymbol)&&c.attrs.path.split(/(?=[LMCA])/),u=c&&c.node.getBBox(),i&&i.length)for(d=0;d<i.length;d++)N.push(i[d][0]),i[d]=i[d].substring(1,i[d].length),d===i.length-1&&(i[d]=i[d].substring(0,i[d].length-1)),S[d]=i[d].split(",");if(S&&S.length)for(d=0;d<S.length;d++){if(S[d].length)for(h=0;h<S[d].length;h++)S[d][h]=Number(S[d][h]),"A"!==N[d]?0===h?S[d][h]=S[d][h]-u.x:1===h&&(S[d][h]=S[d][h]-u.y):"A"===N[d]&&(5===h?S[d][h]=S[d][h]-u.x:6===h&&(S[d][h]=S[d][h]-u.y));p+=N[d]+S[d].toString()}p+="Z"}for(r in(b={toolText:e.tooltext,dominantNode:g(e.dominantNode),subservientNode:g(e.subservientNode),dominantFlowDataValue:g(e.dominantFlowDataValue),subservientFlowDataValue:g(e.subservientFlowDataValue)}).dominantFlowValue=f(e,b.dominantNode),b.subservientFlowValue=f(e,b.subservientNode),b.dominantPlotIdentifier=m(g(e.dominantNodeColor),k,L,p),b.subservientPlotIdentifier=m(g(e.subservientNodeColor),k,D,p),x=(0,l.parseTooltext)(e.tooltext,[135,136,137,138,139,140,146,147],b,e),e.setLinkToolText=x,e.tooltip)e.tooltip.hasOwnProperty(r)&&(y+="\n <span style='color: "+e.tooltip[r].color+";'>\n "+k+"\n </span>\n "+(r+e.toolTipSepChar)+"\n "+(e.showLinkValueOnHover?" ":"")+"\n "+(e.showLinkValueOnHover?e.tooltip[r].value:"")+"\n <br>");return e.tooltext?"<div style='padding: 2px; vertical-align: middle; font-size: "+a+"px;'>\n "+e.setLinkToolText+"\n </div>":"<div style='padding: 2px; vertical-align: middle; font-size: "+a+"px;'>\n "+y+"\n </div>"}(u,e,e.style.baseFontSize,this):l.BLANKSTRING,x=(0,n.polarToCartesian)(h,c((0,n.deg2Rad)(p[0]))),k=x.x,y=x.y,C=(0,n.polarToCartesian)(h,c((0,n.deg2Rad)(p[3]))),w=C.x,A=C.y;u.dominantNode.length>1&&u.rawColor&&(u.ribbonAttrs.fill=(0,l.toRaphaelColor)({color:u.rawColor[0]+","+u.rawColor[1],alpha:u.hovered?u.hoverAlpha:u.unfocussed?u.unfocussedAlpha:u.alpha,x1:(k+o)/i,y1:(y+r)/d,x2:(w+o)/i,y2:(A+r)/d}),u.ribbonAttrs.stroke=(0,l.toRaphaelColor)({color:u.rawColor[0]+","+u.rawColor[1],alpha:u.hovered?u.hoveredAlpha:u.unfocussed?u.unfocussedAlpha:u.borderAlpha,x1:(k+o)/i,y1:(y+r)/d,x2:(w+o)/i,y2:(A+r)/d})),this.addGraphicalElement({el:"path",label:"ribbon",tooltext:b,attr:u.ribbonAttrs,container:{id:"link-container",isParent:!0},component:this})},a.getName=function(){return"ribbon"},a.getType=function(){return"dataset"},t}(i.SmartRenderer);t["default"]=b},1473:function(e,t,a){"use strict";var o=a(273);t.__esModule=!0,t["default"]=void 0;var r=o(a(1359))["default"];t["default"]=r},1475:function(e,t,a){"use strict";var o=a(273);t.__esModule=!0,t["default"]=void 0;var r=o(a(467))["default"];t["default"]=r}}])}));
//# sourceMappingURL=http://localhost:3052/4.0.0/map/eval/fusioncharts.powercharts.js.map