-
Notifications
You must be signed in to change notification settings - Fork 46
/
fusioncharts.widgets.js
2 lines (2 loc) · 389 KB
/
fusioncharts.widgets.js
1
2
!function(e){"object"==typeof module&&"undefined"!=typeof module.exports?module.exports=e:e()}((function(){"use strict";(self.webpackChunkFusionCharts=self.webpackChunkFusionCharts||[]).push([[14],{1507:(e,t)=>{t.__esModule=!0,t["default"]=function(e){var t=Math,a=t.pow,o=t.tan,r=t.acos,i=t.min,l=t.sqrt,n="L",s=e._cacher((function(e,t,o,r){return l(a(o-e,2)+a(r-t,2))})),c=e._cacher((function(e,t,a,o,r){var i,l=a-e,n=o-t;return{x:e+(l/=i=s(e,t,a,o))*r,y:t+(n/=i)*r}}));e.define&&e.define([{name:"trianglepath",trianglepath:function(){var t=arguments,a=e._lastArgIfGroup(t);return this.path(a).attr("trianglepath",[t[0],t[1],t[2],t[3],t[4],t[5],t[6]||0,t[7]||0,t[8]||0])},fn:{sides:function(){var e=this._args;return[s(e[0],e[1],e[2],e[3]),s(e[2],e[3],e[4],e[5]),s(e[4],e[5],e[0],e[1])]},enclosedAngles:function(){var e=this._sides;return[r((a(e[0],2)+a(e[2],2)-a(e[1],2))/(2*e[0]*e[2])),r((a(e[0],2)+a(e[1],2)-a(e[2],2))/(2*e[0]*e[1])),r((a(e[2],2)+a(e[1],2)-a(e[0],2))/(2*e[2]*e[1]))]},semiperimeter:function(){var e=this._sides||this.sides();return(e[0]+e[1]+e[2])/2}},ca:{trianglepath:function(e,t,a,r,s,u,d,h,g){if(d||h||g){this._args=arguments,this._sides=this.sides();var p,f,m,v=this.enclosedAngles(),b=this.semiperimeter();m=l(b*(b-this._sides[0])*(b-this._sides[1])*(b-this._sides[2]))/b,p=[i(d,m)/o(v[0]/2),i(h,m)/o(v[1]/2),i(g,m)/o(v[2]/2)],f=[c(e,t,s,u,p[0]),c(e,t,a,r,p[0]),c(a,r,e,t,p[1]),c(a,r,s,u,p[1]),c(s,u,a,r,p[2]),c(s,u,e,t,p[2])],this.attr({path:["M",f[0].x,f[0].y,"Q",e,t,f[1].x,f[1].y,n,f[2].x,f[2].y,"Q",a,r,f[3].x,f[3].y,n,f[4].x,f[4].y,"Q",s,u,f[5].x,f[5].y,n,f[0].x,f[0].y]})}else this.attr({path:["M",e,t,n,a,r,s,u,"Z"]})}}}])}},1491:(e,t,a)=>{var o=a(269);t.__esModule=!0,t["default"]=void 0;var r=o(a(288)),i=o(a(567)),l=a(274),n=a(572),s=o(a(564)),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);var t=this.config;t.majorTMNumber=-1,t.adjustDiv=1,t.majorTMHeight=6,t.showTickMarks=1,t.majorTMThickness=1,t.minorTMNumber=4,t.minorTMThickness=1,t.tickMarkDistance=3,t.placeTicksInside=0,t.placeValuesInside=0,t.forceZeroTick=!1},a.configureAttributes=function(t){var a,o=this.config,r=this.getFromEnv("color-manager");e.prototype.configureAttributes.call(this,t),a=o.rawAttr,o.majorTMColor=(0,l.convertColor)((0,l.pluck)(a.majorTMColor,r.getColor("tickColor")),(0,l.pluckNumber)(a.majorTMAlpha,100)),o.tickValueStep=(0,l.pluckNumber)(a.tickValueStep,1),o.tickValueStep=Math.round(o.tickValueStep),o.tickValueStep<=0&&(o.tickValueStep=1),o.connectTickMarks=o.showTickMarks?(0,l.pluckNumber)(a.connectTickMarks,1):0,o.showTickValues=(0,l.pluckNumber)(a.showTickValues,o.showTickMarks),o.reverseScale=1===(0,l.pluckNumber)(a.reverseScale,0),o.minorTMColor=(0,l.convertColor)((0,l.pluck)(a.minorTMColor,o.majorTMColor),(0,l.pluckNumber)(a.minorTMAlpha,o.majorTMAlpha,100)),o.minorTMHeight=o.showTickMarks?(0,l.pluckNumber)(a.minorTMHeight,Math.round(o.majorTMHeight/2)):0,o.tickValueDistance=(0,l.pluckNumber)(a.tickValueDistance,0)+2,o.upperLimitDisplay=(0,l.parseUnsafeString)(a.upperLimitDisplay)||"",o.lowerLimitDisplay=(0,l.parseUnsafeString)(a.lowerLimitDisplay)||"",o.drawTickMarkConnector=a.drawTickMarkConnector||0,o.numDivLines=o.majorTMNumber>=0?o.majorTMNumber:o.numDivLines+1},a._createContainer=function(){var e,t,a,o,r=this,i=r.config,l=r.getLinkedParent().getChildContainer(),n=l.axisBottomGroup,s=l.axisTopGroup;o=this.createContainer("axisTrendGroupBottom",{name:"dataset-Trend-group-bottom"},n),e=r.createContainer("axisLineGroup",{name:"axis-Line-group"},s),t=r.createContainer("axisTrendGroupTop",{name:"dataset-Trend-group-top"},s),a=r.createContainer("axisLabelGroupTop",{name:"dataset-Label-group"},s),i.axisLabelContainerTop=i.axisContainer=r.createGroup("axisLabelContainerTop",{name:"dataset-top-label"},a),i.axisAxisLineContainer=r.createGroup("axisAxisLineContainer",{name:"axis-line-tick"},e),i.axisTrendContainerTop=r.createGroup("axisTrendContainerTop",{name:"dataset-axis-trend-top"},t),i.axisTrendContainerBottom=r.createGroup("axisTrendContainerBottom",{name:"dataset-axis-trend-bottom"},o),i.axisTrendLabelContainer=r.createGroup("axisTrendLabelContainer",{name:"dataset-axis-trend-label"},t)},a.allocatePosition=function(){this.config.drawLabels&&this._parseLabel()},a.setVisibleConfig=function(e,t){var a,o=this,r=o.config,i=o.getScale();return!(e>=t||e<r.axisRange.min||t>r.axisRange.max)&&(a=i.setDomain([e,t]).getDomain(),r.visibleMin=a[0],r.visibleMax=a[1],o.fireEvent("visiblerangeset",{minValue:e,maxValue:t}),o.asyncDraw(),!0)},a._adjustNumberFormatter=function(){if(this)return 0},a.calculateTicksOnLabelMode=function(){if(this)return 0},a.generateMinorTicks=function(){var e=this.config;return this.getScale().minorTicks(e.minorTMNumber,e.ticks)},a._setAxisRange=function(e){var t=e.min,a=e.max,o=this.config,r=o.axisRange;t>a||((0,s["default"])(t,a,this.getScale(),o),o.minorTicks=this.generateMinorTicks(),this.setVisibleConfig(r.min,r.max))},t}(i["default"]);c.prototype.setDataLimit=n.setDataLimit,c.prototype.getTrendLineLimits=n.getTrendLineLimits;var u=c;t["default"]=u},1492:(e,t,a)=>{t.__esModule=!0,t["default"]=void 0;var o=a(568),r={"initial.axis.gaugeAxis":{"text.appearing":o.appearingAxis,"path.appearing":o.appearingAxis},"update.axis.gaugeAxis":{"text.appearing":o.appearingFinal,"path.appearing":o.appearingFinal}};t["default"]=r},1490:(e,t,a)=>{var o=a(269);t.__esModule=!0,t["default"]=void 0;var r=o(a(288)),i=o(a(1491)),l=a(274),n=o(a(569)),s=a(282),c=o(a(1492)),u=o(a(541)),d=a(572);(0,s.addDep)({name:"gaugeAnimation",type:"animationRule",extension:c["default"]});var h=function(e){function t(){var t;return(t=e.call(this)||this).config.scale=new u["default"],t.config.labelMap=[],t.config.prevIntervalArr=[],t.config.prevTicksMap=[],t}(0,r["default"])(t,e);var a=t.prototype;return a.getName=function(){return"gaugeAxis"},a.getLabelPos=function(e,t){var a=this,o=a.config,r=o.canvas,i=a.getFromEnv("chart").config,n=r.canvasTop||i.canvasTop,s=r.canvasBottom||i.canvasBottom,c=r.canvasLeft||i.canvasLeft,u=o.isVertical,d=(0,l.pluckNumber)(o.isOpposit),h=r.canvasRight||i.canvasRight,g=o.labelPadding,p={x:0,y:0};return u?(p.x=d?h+g:c-g,p.y=a.getPixel(e,t)):(p.x=a.getPixel(e,t),p.y=d?n-g:s+g),p},a._drawComponents=function(){var e=this,t=e.config;t.drawTick&&e._drawTick(),t.drawLabels&&e._drawLabel()},a._drawTick=function(){var e,t,a,o,r,i,s,c,u,d,h,g,p,f,m,v,b,k,C=this,x=C.config,w=x.axisRange,T=x.isVertical,y=(0,l.pluckNumber)(x.isOpposit),S=x.drawTick,A=x.drawTickMinor,F=(0,l.pluckNumber)(x.placeTicksInside),N=C.getLinkedItem("canvas").getEffectiveDimensions(),E=N.top,L=E+N.height,D=N.left,M=D+N.width,R=w.max,_=w.min,I=C.getFromEnv("animationManager"),V=x.ticks,O=V.length,P=x.axisAxisLineContainer,G=[],B=x.minorTicks,H=function(e,t,a){var o=C.getPixel(e,{wrtVisible:!0});return T?["M",t,o,"L",a,o]:["M",o,t,"L",o,a]};if(i={stroke:x.majorTMColor,"stroke-width":x.majorTMThickness,"stroke-linecap":"round",opacity:1},s={stroke:x.majorTMColor,"stroke-width":x.majorTMThickness,"stroke-linecap":"round"},r={stroke:x.minorTMColor,"stroke-width":x.minorTMThickness,"stroke-linecap":"round",opacity:1},x.lines.isDraw&&S){for(T?y?F?(u=(c=M-x.tickMarkDistance)-x.majorTMHeight,d=c-x.minorTMHeight):(u=(c=M+x.tickMarkDistance)+x.majorTMHeight,d=c+x.minorTMHeight):F?(u=(c=D+x.tickMarkDistance)+x.majorTMHeight,d=c+x.minorTMHeight):(u=(c=D-x.tickMarkDistance)-x.majorTMHeight,d=c-x.minorTMHeight):y?F?(u=(c=E+x.tickMarkDistance)+x.majorTMHeight,d=c+x.minorTMHeight):(u=(c=E-x.tickMarkDistance)-x.majorTMHeight,d=c-x.minorTMHeight):F?(u=(c=L-x.tickMarkDistance)-x.majorTMHeight,d=c-x.minorTMHeight):(u=(c=L+x.tickMarkDistance)+x.majorTMHeight,d=c+x.minorTMHeight),h=x.drawTickMarkConnector?T?["M",c,C.getPixel(_),"L",c,C.getPixel(R)]:["M",C.getPixel(_),c,"L",C.getPixel(R),c]:["M0,0"],s.path=h,e=!!(a=C.getGraphicalElement("axisLinePath")),a=I.setAnimation({el:a||"path",attr:s,container:P,component:C,label:"path"}),G.push("axisLinePath"),e||C.addGraphicalElement("axisLinePath",a),g=0;g<O;g+=1)t=H(f=V[g],c,u),i.path=t.toString(),G.push(f),e=!!(o=C.getGraphicalElement(f)),o=I.setAnimation({el:o||"path",data:{path:t.slice(),value:f},attr:i,container:P,component:C,label:"path"}),e||C.addGraphicalElement(f,o);if(A)for(p=0;p<B.length;p+=1)t=H(m=B[p],c,d),r.path=t.toString(),G.push(m),e=!!(o=C.getGraphicalElement(m)),o=I.setAnimation({el:o||"path",data:{path:t.slice(),value:m},attr:r,component:C,container:P,label:"path"}),e||C.addGraphicalElement(m,o)}for(g=0,k=(v=(0,n["default"])(x.prevTicksMap,G)).length;g<k;g++)(b=C.getGraphicalElement(v[g]))&&C.removeGraphicalElement(b);x.prevTicksMap=G},a.placeAxis=function(e){var t,a,o,r,i,n,s,c,u,d,h,g,p,f,m,v,b,k,C=this,x=C.getFromEnv("chart"),w=e,T=C.getScale(),y=x.getFromEnv("smartLabel"),S=C.config,A=S.axisRange,F=S.isVertical,N=(0,l.pluckNumber)(S.isOpposit),E=S.labels.style,L=A.tickInterval,D=(0,l.pluckNumber)(S.placeTicksInside),M=(0,l.pluckNumber)(S.placeValuesInside),R=A.max,_=A.min,I=0,V=0,O="",P=S.labels.style.lineHeight,G=C.getFromEnv("number-formatter");if(F?T.setRange([x.config.canvasTop,x.config.canvasBottom]):T.setRange([x.config.canvasLeft,x.config.canvasRight]),o={left:0,right:0,top:0,bottom:0},w<=0)return o;if(S.labels.isDraw=!0,S.labels.drawNumericVal=!0,S.labels.drawNormalVal=S.showTickValues,S.labels.drawLimitVal=S.showLimits,S.lines.isDraw=!0,S.labels.step=S.tickValueStep,S.labelPadding=0,y.useEllipsesOnOverflow(x.config.useEllipsesWhenOverflow),y.setStyle({fontSize:E.fontSize,fontFamily:E.fontFamily,lineHeight:E.lineHeight,fontWeight:E.fontWeight}),C.components||(C.components={},C.components.labels=[]),S.drawTick&&S.showTickMarks&&S.lines.isDraw?(w-=S.tickMarkDistance,V=Math.max(S.minorTMHeight,S.majorTMHeight),D?(s=w+S.tickMarkDistance,M&&(S.labelPadding=S.tickMarkDistance+V)):V>w?(S.lines.isDraw=!1,s=w+S.tickMarkDistance,s=w):(F?N?o.right+=V+S.tickMarkDistance:o.left+=V+S.tickMarkDistance:N?o.top+=V+S.tickMarkDistance:o.bottom+=V+S.tickMarkDistance,s=w-V,M||(S.labelPadding=S.tickMarkDistance+V))):(S.lines.isDraw=!1,s=w),s-=S.tickValueDistance,S.drawLabels&&(S.showTickValues||S.showLimits)){for(g=Math.abs(C.getPixel(_)-C.getPixel(_+L))/2,S.labelPadding+=S.tickValueDistance,s-=S.tickValueDistance,b=G.scale,i=_+L,n=0;i<R;i+=L)r=""+b.call(G,(0,l.toPrecision)(i,10)),d=y.getOriSize(r),C.components.labels[n]={config:{width:d.width,height:d.height,props:{label:{attr:{text:r}}}}},n++,r.length>I&&(O=r,I=r.length);if(d=y.getOriSize(O),F?d.width>s&&(S.labels.drawNumericVal=!1,!S.upperLimitDisplay&&!S.lowerLimitDisplay&&(S.labels.isDraw=!1),O="",d=y.getOriSize(O)):d.height>s&&(S.labels.drawNumericVal=!1,!S.upperLimitDisplay&&!S.lowerLimitDisplay&&(S.labels.isDraw=!1),O="",d=y.getOriSize(O)),c=F?s:g,u=F?g:s,S.showLimits?(f=b.call(G,R),m=b.call(G,_),t=S.upperLimitDisplay||""+f,a=S.lowerLimitDisplay||""+m,(k=y.getOriSize(t)).width>d.width&&(p=y.getSmartText(t,c,u),(t===f&&p.text===p.oriText||S.labels.drawNumericVal)&&(O=t,d=k)),y.getOriSize(a).width>d.width&&(p=y.getSmartText(a,c,u),(a===m&&p.text===p.oriText||S.labels.drawNumericVal)&&(O=a)),""===O&&(O=y.getOriSize(S.upperLimitDisplay).width>y.getOriSize(S.lowerLimitDisplay).width?t:a,d=y.getOriSize(O))):S.labels.drawLimitVal=!1,F)h=y.getSmartText(O,c,u);else for(i=_;i<=R&&""===(h=y.getSmartText(O,c,u)).text;i+=L)c+=g;h=y.getSmartText(O,c,u),S.labelMaxW=Math.max(h.width,d.width),S.labelMaxH=Math.max(h.height,d.height),!M&&S.labels.isDraw?F?(S.labelMaxW=Math.min(S.labelMaxW,s),N?o.right+=S.labelMaxW+S.tickValueDistance:o.left+=S.labelMaxW+S.tickValueDistance):(S.labelMaxH=Math.min(S.labelMaxH,s),N?o.top+=S.labelMaxH+S.tickValueDistance:o.bottom+=S.labelMaxH+S.tickValueDistance):S.labelPadding=-S.labelPadding,S.labels.drawLimitVal&&(P&&-1!==P.indexOf("px")&&(P=parseFloat(P.replace("px",""))),S.upperLimitDisplay?d=y.getSmartText(S.upperLimitDisplay,S.labelMaxW,S.labelMaxH+P/2):(r=""+b.call(G,(0,l.toPrecision)(R,10)),d=y.getOriSize(r)),C.components.labels[n]={config:{width:d.width,height:d.height,props:{label:{attr:{text:d.text}}}}},S.lowerLimitDisplay?d=y.getSmartText(S.lowerLimitDisplay,S.labelMaxW,S.labelMaxH+P/2):(r=""+b.call(G,(0,l.toPrecision)(_,10)),d=y.getOriSize(r)),v={config:{width:d.width,height:d.height,props:{label:{attr:{text:d.text}}}}},C.components.labels.unshift(v))}else S.labels.isDraw=!1;return S.spaceTaken=o,o},a.hide=function(){var e=this.config;e.axisContainer&&(e.axisLabelContainerTop.hide(),e.axisContainer.hide(),e.axisTrendLabelContainer.hide(),e.axisAxisLineContainer.hide())},a.show=function(){var e=this.config;e.axisContainer&&(e.axisLabelContainerTop.show(),e.axisContainer.show(),e.axisTrendLabelContainer.show(),e.axisAxisLineContainer.show())},a._computeTranslation=function(){if(this)return 0},t}(i["default"]);h.prototype.setAxisDimention=d.setAxisDimention,h.prototype.getPixel=d.getPixel,h.prototype._parseLabel=d._parseLabel,h.prototype._drawLabel=d._drawLabel;var g=h;t["default"]=g},1501:(e,t,a)=>{var o=a(269);t.__esModule=!0,t["default"]=void 0;var r=o(a(1458)),i={"initial.axis.polarNumeric":function(){return{"path.appearing":r["default"],"text.appearing":r["default"],"polypath.appearing":r["default"],"ringpath.appearing":r["default"],"*":null}}};t["default"]=i},1500:(e,t,a)=>{var o=a(269);t.__esModule=!0,t["default"]=void 0;var r,i=o(a(288)),l=o(a(1491)),n=a(274),s=a(1454),c=o(a(569)),u=a(282),d=o(a(1501)),h=o(a(541)),g=n.preDefStr.POSITION_MIDDLE,p=n.preDefStr.POSITION_START,f=n.preDefStr.POSITION_TOP,m=n.preDefStr.POSITION_BOTTOM,v=n.preDefStr.POSITION_END,b=Math,k=2*b.PI,C="_tick",x="_label",w="_trendLine",T="_trendLabel",y="_marker",S=[],A={};(0,u.addDep)({name:"polarNumericAnimation",type:"animationRule",extension:d["default"]});var F=function(e){function t(){var t;return(t=e.call(this)||this).config.scale=new h["default"],t.config.prevTickMarks=[],t.config.prevIntervalArrLabel=[],t.config.prevIntervalArrTrendLine=[],t}(0,i["default"])(t,e);var a=t.prototype;return a.getName=function(){return"polarNumeric"},a.setAxisDimention=function(){var e,t=this.getScale(),a=this.config,o=a.startAngle||k/2,r=o+(a.totalAngle||k/2),i=a.axisDimention||(a.axisDimention={});i.centerX=a.centerX,i.centerY=a.centerY,i.axisLength=k,e=[o,r],t.setRange(e)},a.__setDefaultConfig=function(){e.prototype.__setDefaultConfig.call(this);var t=this.config;t.trendPoints=r,t.ticksBelowGauge=r,t.ticksBelowGraph=r,t.trendValueDistance=r},a.configureAttributes=function(t){var a,o=this.config;e.prototype.configureAttributes.call(this,t),a=o.rawAttr,o.upperLimitDisplay=a.upperLimitDisplay||"",o.lowerLimitDisplay=a.lowerLimitDisplay||"",o.polarPadding=4},a._drawComponents=function(){var e=this,t=e.config;t.drawTick&&e._drawTick(),t.drawLabels&&e._drawLabel(),t.drawTrendLines&&e._drawTrendLine()},a.getAngle=function(e){return this.getScale().getRangeValue(e)},a.placeAxis=function(e){var t,a,o,r,i,l,s,c,u,d=this,h=d.config,g=d.getFromEnv("chart"),p=g.getFromEnv("smartLabel"),f=h.axisRange,m=h.labels.style,v=f.tickInterval||1,b=h.upperLimitDisplay,k=h.lowerLimitDisplay,C=f.max,x=f.min,w=0,T=g.getFromEnv("number-formatter");if(c={left:0,right:0,top:0,bottom:0},p.useEllipsesOnOverflow(g.config.useEllipsesWhenOverflow),p.setStyle({fontSize:m.fontSize,fontFamily:m.fontFamily,lineHeight:m.lineHeight,fontWeight:m.fontWeight}),d.components||(d.components={},d.components.labels=[]),h.labels.isDraw=1,h.labels.drawNormalVal=1,h.labels.drawLimitVal=1,h.lines.isDraw=1,h.labels.step=h.tickValueStep,h.labelPadding=0,u=e,h.drawLabels&&h.showTickValues&&u>0){for(h.labelPadding+=h.tickValueDistance,u-=h.tickValueDistance,i=T.scale,a=x,o=0;a<=C;a+=v)r=""+i.call(T,(0,n.toPrecision)(a,10)),s=p.getOriSize(r,!0),d.components.labels[o]={config:{width:s.width,height:s.height,props:{label:{attr:{}}}}},o++,r.length>w&&(t=r,w=r.length);if((s=p.getOriSize(t,!0)).width>e/2)return h.labels.isDraw=!1,c;h.showLimits?(b||k)&&((l=p.getOriSize(b,!0)).width>s.width&&(t=b,w=l.width,s=l),(l=p.getOriSize(k,!0)).width>s.width&&(t=k,w=l.width,s=l)):h.labels.drawLimitVal=!1,s=p.getOriSize(t),h.labelMaxW=s.width,h.labelMaxW>e/2&&(h.labelMaxW=e/2),h.labelMaxH=s.height,h.placeValuesInside?h.labelPadding=-h.labelPadding:(c.right+=h.labelMaxW+h.tickValueDistance,c.left+=h.labelMaxW+h.tickValueDistance,c.top+=h.labelMaxH+h.tickValueDistance,c.bottom+=h.labelMaxH+h.tickValueDistance)}else h.labels.isDraw=!1;return c},a._parseLabel=function(){var e,t,a,o,r,i,l,c,u,d,h,b,k,C=this,x=C.config,w=C.getFromEnv("chart"),T=x.axisRange,y=C.getScale(),S=w.getFromEnv("smartLabel"),A=x.labels.style,F=x.labelPadding||0,N=x.radius,E=(0,n.pluckNumber)(x.gaugeOuterRadius,N),L=(0,n.pluckNumber)(x.gaugeInnerRadius,N),D=x.centerX,M=x.centerY,R=x.placeValuesInside,_=x.labelMaxH,I=x.labelMaxW,V=T.max,O=T.min,P=x.ticks,G=P.length,B=w.getFromEnv("number-formatter");if(A.lineHeight&&-1!==(d=A.lineHeight).indexOf("px")&&(d=d.replace("px",""),d=parseFloat(d)),S.useEllipsesOnOverflow(w.config.useEllipsesWhenOverflow),S.setStyle({fontSize:A.fontSize,fontFamily:A.fontFamily,lineHeight:A.lineHeight,fontWeight:A.fontWeight}),x.labels.isDraw){for(e=C.components.labels,c=x.labels.step,u=function(a){o=P[a],i=y.getRangeValue(o),(x.labels.drawNormalVal||x.labels.drawLimitVal&&(o===O||o===V))&&(x.labels.drawNormalVal||o===O||o===V)&&(x.labels.drawLimitVal||o!==O&&o!==V)&&(0===x.showZeroPlaneValue&&0===x.showZeroPlane&&0===o||(h=B.scale,o===O&&x.lowerLimitDisplay?(r=S.getSmartText(x.lowerLimitDisplay,I,_),l=r.text):o===V&&x.upperLimitDisplay?(r=S.getSmartText(x.upperLimitDisplay,I,_),l=r.text):l=h.call(B,(0,n.toPrecision)(o,10)),(k=R?(0,s.polarToCartesian)(L+F-x.polarPadding,i):(0,s.polarToCartesian)(E+F+x.polarPadding,i)).x+=D,k.y+=M,b={fill:A.color,"line-height":d,text:l,x:k.x,y:k.y},k.x>D-10&&k.x<D+10&&k.y<M?(b["text-anchor"]=g,b["text-valign"]=R?f:m):k.x>D-10&&k.x<D+10&&k.y<M?(b["text-anchor"]=g,b["text-valign"]=R?m:f):k.x<D?(b["text-anchor"]=R?p:v,b["text-valign"]="center"):(b["text-anchor"]=R?v:p,b["text-valign"]="center"),(t=e[a]=e[a]||{config:{props:{label:{attr:{}}}}}).config.props.label.attr=Object.assign(t.config.props.label.attr,b)))},a=0;a<G;a+=c)u(a);(G-1)%c!=0&&u(G-1)}},a._drawLabel=function(){var e,t,a,o,r,i,l,n,s,u,d=this,h=d.config,g=d.getFromEnv("chart"),p=h.axisRange,f=h.labels.style,m=p.max,v=p.min,b=h.axisLabelContainerTop,k=g.getFromEnv("animationManager"),C={fontFamily:f.fontFamily,fontSize:f.fontSize,fontWeight:f.fontWeight,fontStyle:f.fontStyle,lineHeight:f.lineHeight},w=h.ticks,T=w.length,y=[];if(b.show(),b.css(C),h.labels.isDraw){for(l=h.labels.step,n=function(e){t=w[e],(h.labels.drawNormalVal||h.labels.drawLimitVal&&(t===v||t===m))&&(h.labels.drawNormalVal||t===v||t===m)&&(h.labels.drawLimitVal||t!==v&&t!==m)&&(0===h.showZeroPlaneValue&&0===h.showZeroPlane&&0===t||(y.push(t),u=d.getGraphicalElement(""+t+x),o=d.components.labels[e].config.props.label.attr,a=k.setAnimation({el:u||"text",attr:o,container:b,component:d,label:"text"}),u||d.addGraphicalElement(""+t+x,a)))},e=0;e<T;e+=l)n(e);(T-1)%l!=0&&n(T-1)}for(i=(0,c["default"])(h.prevIntervalArrLabel,y),t=0,r=i.length;t<r;t++)(s=d.getGraphicalElement(""+i[t]+x))&&d.removeGraphicalElement(s);h.prevIntervalArrLabel=y},a._drawTick=function(){var e,t,a,o,r,i,l,u,d,h,g,p,f,m,v,b,k,x,w,T=this,y=T.config,S=y.drawTick,A=T.getScale(),F=y.drawTickMinor,N=T.getFromEnv("chart").getFromEnv("animationManager"),E=y.radius,L=y.centerX,D=y.centerY,M=(0,n.pluckNumber)(y.gaugeOuterRadius,E),R=(0,n.pluckNumber)(y.gaugeInnerRadius,E),_=y.ticks,I=y.minorTicks;if(g=y.axisAxisLineContainer,r={stroke:y.majorTMColor,"stroke-width":y.majorTMThickness,"stroke-linecap":"round"},o={stroke:y.minorTMColor,"stroke-width":y.minorTMThickness,"stroke-linecap":"round"},g.show(),b=y.prevTickMarks,y.prevTickMarks=[],y.lines.isDraw&&S&&y.showTickMarks){for(y.prevTickMarks=_.slice(),d=0;d<_.length;d++)m=_[d],e=A.getRangeValue(m),y.placeTicksInside?(i=(0,s.polarToCartesian)(R,e),l=(0,s.polarToCartesian)(R+y.majorTMHeight,e)):(i=(0,s.polarToCartesian)(M,e),l=(0,s.polarToCartesian)(M-y.majorTMHeight,e)),i.x+=L,i.y+=D,l.x+=L,l.y+=D,r.path="M"+i.x+" "+i.y+"L"+l.x+" "+l.y,f=Object.assign({},r),v=T.getGraphicalElement(""+_[d]+C),a=N.setAnimation({el:v||"path",attr:f,container:g,component:T,label:"path"}),v||T.addGraphicalElement(""+_[d]+C,a);if(F)for(y.prevTickMarks=y.prevTickMarks.concat(I),d=0;d<I.length;d+=1)h=I[d],t=A.getRangeValue(h),y.placeTicksInside?(i=(0,s.polarToCartesian)(R,t),u=(0,s.polarToCartesian)(R+y.minorTMHeight,t)):(i=(0,s.polarToCartesian)(M,t),u=(0,s.polarToCartesian)(M-y.minorTMHeight,t)),i.x+=L,i.y+=D,u.x+=L,u.y+=D,o.path="M"+i.x+" "+i.y+"L"+u.x+" "+u.y,f=Object.assign({},o),k=T.getGraphicalElement(""+I[d]+C),a=N.setAnimation({el:k||"path",attr:f,container:g,component:T,label:"path"}),k||T.addGraphicalElement(""+I[d]+C,a)}for(d=0,w=(p=(0,c["default"])(b,y.prevTickMarks)).length;d<w;d++)(x=T.getGraphicalElement(""+p[d]+C))&&T.removeGraphicalElement(x)},a._drawTrendLine=function(){var e,t,a,o,r,i,l,u,d,h,m,k,C,x,S,F,N,E,L,D,M,R,_,I,V,O,P,G,B,H,W,z,j,U,X,K,Y,J,q,Z,$,Q,ee=this,te=ee.config,ae=te.axisRange,oe=ee.getFromEnv("toolTipController"),re=ae.max,ie=ee.getScale(),le=ae.min,ne=te.canvas,se=ee.getFromEnv("chart"),ce=se.config,ue=se.getFromEnv("smartLabel"),de=se.getFromEnv("color-manager"),he=se.getFromEnv("animationManager"),ge=te.scaleFactor,pe=te.centerX||0,fe=te.centerY||0,me=ne.canvasWidth||ce.canvasWidth,ve=te.trend.trendStyle,be=te.axisTrendContainerTop,ke=te.axisTrendContainerBottom,Ce=te.axisTrendLabelContainer,xe={fontFamily:ve.fontFamily,fontSize:ve.fontSize,lineHeight:ve.lineHeight,fontWeight:ve.fontWeight,fontStyle:ve.fontStyle},we=se.getFromEnv("number-formatter"),Te=te.trendPoints,ye=Te&&Te.point,Se=b.PI/180,Ae={},Fe=null!=(e=ye&&ye.length)?e:0,Ne={},Ee={},Le={},De=[];for(ue.useEllipsesOnOverflow(ce.useEllipsesWhenOverflow),ue.setStyle(xe),o=0;o<Fe;o+=1)h=Te.point[o],De.push(h.startvalue+"_"+h.endvalue+"_"+o);for(o=0,Q=(J=(0,c["default"])(te.prevIntervalArrTrendLine,De)).length;o<Q;o++)q=ee.getGraphicalElement(""+J[o]+w),Z=ee.getGraphicalElement(""+J[o]+T),$=ee.getGraphicalElement(""+J[o]+y),q&&ee.removeGraphicalElement(q),Z&&ee.removeGraphicalElement(Z),$&&ee.removeGraphicalElement($);te.prevIntervalArrTrendLine=De.slice();for(var Me=0;Me<Fe;Me++)for(var Re=Te.point[Me],_e=Me+1;_e<Fe;_e++){var Ie=Te.point[_e],Ve=(0,n.pluckNumber)(Re.startvalue,Re.value),Oe=(0,n.pluckNumber)(Re.endvalue,Ve),Pe=(0,n.pluckNumber)(Ie.startvalue,Ie.value),Ge=(0,n.pluckNumber)(Ie.endvalue,Pe),Be=Ve+"_"+Oe;C=A[Be],Ve===Pe&&Oe===Ge&&(C||(A[Be]=[],C=A[Be]),this.addToOverlappingPoints(Re.displayvalue,Be),this.addToOverlappingPoints(Ie.displayvalue,Be))}for(o=0;o<Fe;o+=1){var He;if(h=Te.point[o],t=(0,n.pluckNumber)(null==(He=h)?void 0:He.markerlabeloffset,0),Y=h.startvalue+"_"+h.endvalue+"_"+o,m=(0,n.pluckNumber)(h.startvalue,h.value),k=(0,n.pluckNumber)(h.endvalue,m),a=ie.getRangeValue(m),d=m!==k,C=A[m+"_"+k],m<=re&&m>=le&&k<=re&&k>=le){if(x={startValue:m,endValue:k,tooltext:(0,n.getValidValue)((0,n.parseUnsafeString)(h.markertooltext,!1)),displayValue:(0,n.getValidValue)((0,n.parseUnsafeString)(h.displayvalue),d?"":we.scale(m)),showOnTop:(0,n.pluckNumber)(h.showontop,te.ticksBelowGauge,te.ticksBelowGraph,1),color:(0,n.pluck)(h.color,de.getColor("trendLightColor")),alpha:(0,n.pluckNumber)(h.alpha,99),thickness:(0,n.pluckNumber)(h.thickness,1),dashStyle:h.dashed?(0,n.getDashStyle)(h.dashlen||2,h.dashgap||2):"",useMarker:(0,n.pluckNumber)(h.usemarker,0),markerColor:(0,n.convertColor)((0,n.pluck)(h.markercolor,h.color,de.getColor("trendLightColor")),100),markerBorderColor:(0,n.convertColor)((0,n.pluck)(h.markerbordercolor,h.bordercolor,de.getColor("trendDarkColor")),100),markerRadius:(0,n.pluckNumber)((0,n.pluckNumber)(h.markerradius)*ge,5),markerToolText:(0,n.getFirstValue)(h.markertooltext),trendValueDistance:(0,n.pluckNumber)((0,n.pluckNumber)(h.trendvaluedistance,te.trendValueDistance)*ge,te.tickValueDistance),isTrendZone:d,valueInside:(0,n.pluckNumber)(h.valueinside,te.placeValuesInside,0),showBorder:(0,n.pluckNumber)(h.showborder,1),borderColor:(0,n.convertColor)((0,n.pluck)(h.bordercolor,h.color,de.getColor("trendDarkColor")),(0,n.pluckNumber)(h.borderalpha,h.alpha,100)),radius:(0,n.pluckNumber)((0,n.pluckNumber)(h.radius)*ge),innerRadius:(0,n.pluckNumber)((0,n.pluckNumber)(h.innerradius)*ge)},F=-(S=Math.cos(89.99*Se)),N=(0,n.pluckNumber)(x.radius,te.gaugeOuterRadius),E=(0,n.pluckNumber)(x.innerRadius,d?Math.max(te.gaugeInnerRadius-15,0):te.gaugeInnerRadius),L=(0,s.polarToCartesian)(N,a),D=(0,s.polarToCartesian)(E,a),L.x+=pe,L.y+=fe,D.x+=pe,D.y+=fe,M=L.x,R=L.y,_=D.x,I=D.y,V=ee.getAngle(k),O=ee.getAngle(m),d?(O>V&&(O+=V,O-=V=O-V),Ne={fill:(0,n.convertColor)(x.color,x.alpha),"stroke-width":x.showBorder?x.thickness:0,stroke:x.borderColor,"stroke-dasharray":x.dashStyle,ringpath:[pe,fe,N,E,O,V]}):Ne={"stroke-width":x.showBorder?x.thickness:0,stroke:x.borderColor,"stroke-linecap":"round","stroke-dasharray":x.dashStyle,path:["M",M,R,"L",_,I]},Ee=x.useMarker?{fill:x.markerColor,"stroke-width":1,stroke:x.markerBorderColor,polypath:[3,M,R,x.markerRadius,(-O+Math.PI)/Se,0]}:{},""!==x.displayValue){P=(x.endValue+x.startValue)/2,V=ee.getAngle(P),G=Math.cos(V),B=Math.sin(V),H=ue.getOriSize(x.displayValue).width,x.valueInside?(W=E-2-x.trendValueDistance,z=G>S?v:G<F?p:g):(W=N+2+x.trendValueDistance,z=G>S?p:G<F?v:g),M=pe+W*G,R=fe+W*B,j=ue.getOriSize(x.displayValue).height,Ae=ue.getSmartText(x.displayValue,me,j),M=me<M+H?me-H-5:M<H?H+5:M,H>me&&(M=me/2),Le={fill:(0,n.convertColor)(h.color,x.alpha)||ve.color,text:Ae.text,"text-anchor":z,"vertical-align":f,"text-bound":[ve.backgroundColor,ve.borderColor,ve.borderThickness,ve.borderPadding,ve.borderRadius,ve.borderDash],x:M,y:R},U=Ae.height,R+=G>S||G<F?-U/2+.4*U*B*(x.valueInside?-1:1):x.valueInside?-(B<0?0:U):-(B>0?0:U);var We=this.adjustTextPositionToAvoidOverlap(x,R,Math.round((re+le)/2),M,t),ze=We.adjustedStartY,je=We.adjustedStartX;Le.y=ze,Le.x=je}else Le={text:""};if(i=ee.getGraphicalElement(Y+w),l=ee.getGraphicalElement(Y+T),K=ee.getGraphicalElement(Y+y),(r=d?he.setAnimation({el:i||"ringpath",attr:Ne,container:ke,component:ee,label:"ringpath"}):he.setAnimation({el:i||"path",attr:Ne,container:be,component:ee,label:"path"})).show(),r.data("label",d?"ringPath":"path"),(u=he.setAnimation({el:l||"text",attr:Le,container:Ce,component:ee,label:"text"})).css(xe),u.show(),(X=he.setAnimation({el:K||"polypath",attr:Ee,container:be,component:ee,label:"polypath"})).show(),te.showTooltip&&(Ae.oriText&&!A[m+"_"+k]?oe.enableToolTip(u,Ae.oriText+": "+m+" "+(k===m?"":"- "+k)):oe.disableToolTip(u),x.markerToolText?oe.enableToolTip(X,x.markerToolText):oe.disableToolTip(X),Array.isArray(C)&&C.length>1&&C.includes(h.displayvalue))){var Ue=this.getCombinedTooltip(C,m,k);oe.enableToolTip(u,Ue)}i||ee.addGraphicalElement(Y+w,r),i||ee.addGraphicalElement(Y+T,u),K||ee.addGraphicalElement(Y+y,X)}}},a.adjustTextPositionToAvoidOverlap=function(e,t,a,o,r){var i=e.startValue,l=e.endValue,s=i<a||l<a?-1:1,c=Number(r),u=o+(0,n.pluckNumber)(c,0)*s;this.overLapped=!1,this.startY=t;for(var d=0;d<S.length;d+=1){var h=S[d];Math.abs(this.startY-h)<11&&(this.startY+=14*s,this.overLapped=!0)}return S.push(this.startY),{isOverlapping:this.overLapped,adjustedStartY:this.startY,adjustedStartX:u}},a.getCombinedTooltip=function(e,t,a){var o;this.tipString="";for(var r=null!=(o=e.length)?o:0;r-- >0;){var i=e[r]+": "+t+" "+(a===t?"":"- "+a)+" ::";this.tipString=i+this.tipString}return this.tipString.split("::").filter((function(e){return""!==e})).join(",<br/>")},a.addToOverlappingPoints=function(e,t){this.overlappingArray=A[t],this.overlappingArray&&!this.overlappingArray.includes(e)&&this.overlappingArray.push(e)},t}(l["default"]);t["default"]=F},1519:(e,t,a)=>{var o=a(269);t.__esModule=!0,t["default"]=void 0;var r,i=o(a(288)),l=a(274),n=a(290),s=(0,l.getComparatorFN)(!0,"minvalue"),c=function(e){function t(){return e.apply(this,arguments)||this}(0,i["default"])(t,e);var a=t.prototype;return a.getType=function(){return"colorComponent"},a.getName=function(){return"colorGradient"},a.configure=function(e){var t,a,o,i,n,c,u,d,h,g,p=this,f=p.colorArr,m=p.getFromEnv("color-manager"),v=p.getFromEnv("number-formatter"),b=e.colorRange&&(0,l.extend2)({},e.colorRange).color,k=m.getColor("paletteColors");if(delete p.defaultAsigned,k instanceof Array||(k=m.getPlotColor(0)),b&&b.length>0){for(i=n=b.length-1;i>=0;i-=1)(a=b[i])&&(a.minvalue=v.getCleanValue(a.minvalue),a.maxvalue=v.getCleanValue(a.maxvalue),null===a.minvalue&&(null!==a.maxvalue?a.minvalue=a.maxvalue:i!==n&&b.splice(i,1)),a.label!==r&&(a.label=(0,l.parseUnsafeString)(a.label)),a.name!==r&&(a.name=(0,l.parseUnsafeString)(a.name)),null!==a.maxvalue&&a.minvalue>a.maxvalue&&(c=a.minvalue,a.minvalue=a.maxvalue,a.maxvalue=c));for(b.sort(s),b[0].code||(b[0].code=k[0]),(0,l.getValidValue)(b[0].alpha)===r&&(b[0].alpha=l.HUNDREDSTRING),i=0,n=b.length-1;i<n;i+=1)if(g=i+1,a=b[i],(o=b[g]).code||(o.code=k[g]),(0,l.getValidValue)(o.alpha)===r&&(o.alpha=l.HUNDREDSTRING),null===a.maxvalue&&(a.maxvalue=o.minvalue),a.maxvalue>o.minvalue){if(a.maxvalue>o.maxvalue){for((u=(0,l.extend2)(a)).maxvalue=a.maxvalue,h=u.minvalue=o.maxvalue,d=i+2;d<n&&b[d].minvalue<h;)d+=1;b.splice(d,0,u),n+=1}a.maxvalue=o.minvalue}null===(a=b[i]).maxvalue&&(a.maxvalue=a.minvalue)}b&&b.length||(t||(t={code:"CCCCCC",alpha:"100",bordercolor:"000000",borderalpha:"100"}),b=[t],p.defaultAsigned=!0),p.colorArr=b||f},a.getColorObj=function(e){for(var t,a,o=this.colorArr,r=0,i=o.length,l={};r<i;r+=1){if(l.index=r,t=o[r],a=o[r+1],e<t.minvalue)return l.nextObj=t,l;if(e>=t.minvalue&&e<=t.maxvalue)return l.colorObj=t,a&&e===a.minvalue&&(l.nextObj=a,l.isOnMeetPoint=!0),l;l.prevObj=t}return l.index=r-1,l},a.getColorRangeArr=function(e,t){var a,o,r,i,n,s,c,u,d=this.colorArr,h=[],g=e,p=t;if(!this.defaultAsigned&&(g>p&&(a=g,g=p,p=a),g<p&&(i=this.getColorObj(g),s=this.getColorObj(p),i&&s))){for(n=g,o=i.index,r=s.index;o<=r;o+=1)(c=(0,l.extend2)({},d[o])).minvalue!==n&&(c.minvalue=n),h.push(c),u=c,n=c.maxvalue;u.maxvalue=p}return h},t}(n.ComponentInterface),u=c;t["default"]=u},1498:(e,t,a)=>{t.__esModule=!0,t._getData=function(e,t){var a,i,l=this.getChildren().dataset,n=e,s=function(){return(i=l[0].components.data)&&i[--n]?(a=i[n].config,(0,o.pluckNumber)(a.setValue,a.itemValue)):null};if(l){if("function"!=typeof t)return s();this.addJob("eiMethods",(function(){t(s())}),r.priorityList.postRender)}},t._setData=function(e,t){var a,r=i;if(e===o.UNDEF||null===e||t===o.UNDEF||null===t)return;for(a=1;a<Number(e);a++)r+=o.COMMASTRING;t.toString&&(r+=t.toString());r&&this.feedData(r)},t._getDataForId=function(e,t){var a=this.getChildren("dataset")[0].config.idMap;if("function"!=typeof t)return a&&a[e]&&a[e].config.itemValue||null;this.addJob("eiMethods",(function(){t(a&&a[e]&&a[e].config.itemValue||null)}),r.priorityList.postRender)},t._setDataForId=function(e,t){var a=this.getChildren("dataset")[0].config.idMap;return a&&a[e]&&this._setData(a[e].index+1,t)};var o=a(274),r=a(286),i="value="},1511:(e,t,a)=>{var o=a(269);t.__esModule=!0,t.configureAttributes=function(){var e=this,t=e.getFromEnv("dataSource").colorrange;t&&t.color&&t.color.length?((0,r.componentFactory)(e,i["default"],"colorRange",1,[{colorRange:t,numberFormatter:e.getFromEnv("number-formatter")}]),e.addToEnv("colorRange",e.getChildren("colorRange")&&e.getChildren("colorRange")[0])):e.deleteFromEnv("colorRange")},t._getData=function(){var e,t,a=this.getDatasets();if(a&&(t=a[0].components.data)&&t[0])return e=t[0].config,(0,r.pluckNumber)(e.setValue,e.itemValue)};var r=a(274),i=o(a(1446))},1481:(e,t,a)=>{var o=a(269);t.__esModule=!0,t["default"]=void 0;var r,i=o(a(292)),l=o(a(288)),n=o(a(370)),s=a(290),c=a(274),u=1e3,d=function(e){var t,a=e.sender;"chartAPI"===a.getType()&&(t=a).registerFactory("dataStreamer",(function(){var e;h&&t.config.realtimeEnabled&&((0,c.componentFactory)(t,h,"dataStreamer",1),(e=t.getChildren("dataStreamer")[0]).configure(),t.addToEnv("dataStreamer",e))}))},h=function(e){function t(){var t,a;return(t=e.call(this)||this)._handlerFn=(a=(0,i["default"])(t),function(){var e=a.config;e&&(e.rtPreInit===r&&(e.rtPreInit=!1),e._rtPaused&&delete e._rtPaused,e.rtStateChanged||(e.rtStateChanged=!0,a.processRealtimeStateChange(arguments)))}),t._handlerStop=function(e){return function(){e._dispose()}}((0,i["default"])(t)),t}(0,l["default"])(t,e);var a=t.prototype;return a.getType=function(){return"dataStreamer"},a.getName=function(){return"dataStreamer"},t.resetTimeout=function(e,t,a){return clearTimeout(a),setTimeout(e,t)},a.configure=function(){var e,t,a,o,r=this,i=r.config,l=r.getLinkedParent(),n=l.getFromEnv("dataSource")&&l.getFromEnv("dataSource").chart;a=l.getFromEnv("chartInstance"),o=l.config.realTimeConfig,i.clearMs=o.clearInterval*u,i.updateMs=t=o.updateInterval*u,i.refreshMs=e=o.refreshInterval*u,r.addEvents(),e<t&&(i.refreshMs=t),i.dataStamp=n.datastamp,r.config.chartObj=a,a.jsVars&&(a.jsVars._rtLastUpdatedData=null),r.updateIntervalHandler(0,!0),r.refreshVisualHandler(null,null,!0),r.initiateResetVisual(!0),i._rtAjaxLatencyStart=null,i._rtAjaxLatency=null,r.addToEnv("realtimeDrawingLatency",0)},a._dispose=function(){var t=this;t.updateIntervalHandler(0,!0),t.refreshVisualHandler(null,null,!0),t.initiateResetVisual(!0),e.prototype._dispose.call(this)},a.processRealtimeStateChange=function(){var e,t=this,a=t.config,o=t.config.chartObj,i=o.__state,l=t.getLinkedParent(),s=l.config,c=s.realtimeEnabled,u=s.realTimeConfig.dataStreamURL;i.dataSetDuringConstruction&&!a.rtStateChanged&&a.rtPreInit===r&&(o.dataReady()?(a.rtStateChanged=!0,a.rtPreInit=!0):a.rtPreInit=!1),a.rtStateChanged&&(a.rtStateChanged=!1,l&&(e=a._rtAjaxObj,c&&(a._rtPaused===r&&(a._rtPaused=!1),a._rtDataUrl=u,t.initiateResetVisual(),(e=a._rtAjaxObj||(a._rtAjaxObj=new n["default"])).onSuccess||(e.onSuccess=function(){t.getFromEnv("chartConfig").realTimeConfig.dataStreamURL&&(t.setState("ajaxRequested",!0),t.responseTextHandler(arguments[0]),a._rtAjaxLatencyStart&&(a._rtAjaxLatency=new Date-a._rtAjaxLatencyStart||0),t.refreshVisualHandler({data:a.responseText,source:"XmlHttpRequest",url:a.url,networkLatency:a._rtAjaxLatency},a._rtAjaxLatency+(a._firstUpdate?new Date-a._firstUpdate:0),!t.getFromEnv("chartConfig").realTimeConfig.dataStreamURL),a._firstUpdate=r,a._rtPaused||a._rtAjaxLatency>=a.updateMs&&(a._rtAjaxLatency=a.updateMs-1),t.updateIntervalHandler(a._rtAjaxLatency,a._rtPaused))}),e.onError||(e.onError=function(){var e=arguments[0],r=arguments[1],i=arguments[3];a._rtAjaxLatencyStart&&(a._rtAjaxLatency=new Date-a._rtAjaxLatencyStart),t.setState("ajaxRequested",!1),l.fireChartInstanceEvent("realTimeUpdateError",{source:"XmlHttpRequest",url:i,xmlHttpRequestObject:r.xmlhttp,error:e,httpStatus:r.xmlhttp&&r.xmlhttp.status?r.xmlhttp.status:-1,networkLatency:a._rtAjaxLatency}),t.updateIntervalHandler(0,!o.isActive())}),a._rtPaused||(t.updateIntervalHandler(0),a._firstUpdate=new Date))))},a.responseTextHandler=function(e){var t=this,a=t.config,o=t.getFromEnv("chart"),r=t.getFromEnv("chartConfig").realtimeEnabled,i=o.feedData,l=o._linearDataParser(e);a.responseText=e,t.getFromEnv("chartInstance").isActive()&&i&&r&&(a.dataStamp=l.dataStamp?l.dataStamp:null,o.realTimeUpdate(l))},a.initiateResetVisual=function(e){if(void 0===e&&(e=!1),e)clearTimeout(this.config._toClearChart);else{var a=this.config,o=this.getFromEnv("chart");e||a.clearMs&&(a._toClearChart=t.resetTimeout((function r(){o._clearChart&&o._clearChart(),a.clearMs?a._toClearChart=t.resetTimeout(r,a.clearMs,a._toClearChart):clearTimeout(a._toClearChart)}),a.clearMs,a._toClearChart))}},a.updateIntervalHandler=function(e,a){if(void 0===e&&(e=0),void 0===a&&(a=!1),a)clearTimeout(this.config&&this.config._toRealtimeUpdate);else{var o,r=this,i=r.config,l=i._rtAjaxObj,n=i.updateMs;if(r.requestData||(r.requestData=function(){var e=r.getFromEnv("chartConfig").realTimeConfig.dataStreamURL,t=i.dataStamp,a=i._rtAjaxObj,o=e;o+=(-1===e.indexOf("?")?"?num=":"&num=")+Math.random(),t&&(o+="&dataStamp="+t),i.url=o,a.open&&a.abort(),e&&a.get(o),i._rtAjaxLatencyStart=new Date}),n<=0)return i._toRealtimeUpdate=clearTimeout(i._toRealtimeUpdate),void(l&&l.abort());n<10&&(n=10),a||(o=n-e,i._toRealtimeUpdate=t.resetTimeout(r.requestData,o,i._toRealtimeUpdate))}},a.refreshVisualHandler=function(e,a,o){if(void 0===a&&(a=0),void 0===o&&(o=!1),o)return clearTimeout(this.config._toRealtimeDraw),this._clearCachedData(),void(this.config.isAlive=!1);var r,i=this,l=i.config,n=l.refreshMs,s=i.getFromEnv("chart"),c=i.getFromEnv("chartConfig").realtimeEnabled,u=i.getFromEnv("chartInstance").isActive(),d=(new Date).getTime(),h=s.feedData,g=a;i.getState("ajaxRequested")&&l.lastRTDrawAt||(l.lastRTDrawAt=d),i.config.sourceInfo=e,i._rtDraw||(i._rtDraw=function(){l.isAlive=!1,l.lastRTDrawAt=(new Date).getTime(),s.realTimeDraw(i.config.sourceInfo)}),u&&h&&c&&!o&&!l.isAlive&&(l.isAlive=!0,r=n-(g+=d-l.lastRTDrawAt+i.getFromEnv("realtimeDrawingLatency"))>0?n-g:0,l._toRealtimeDraw=t.resetTimeout(i._rtDraw,r,l._toRealtimeDraw))},a._clearCachedData=function(){this.getFromEnv("chart").config.cachedArrivedJSON={}},a._stopUpdate=function(){var e=this,t=e.config;e.updateIntervalHandler(0,!0),e.refreshVisualHandler(null,null,!0),e.initiateResetVisual(!0),t._rtAjaxObj&&t._rtAjaxObj.abort(),t._rtPaused=!0,e.setState("ajaxRequested",!1)},a._restartUpdate=function(){var e=this.config;e._rtDataUrl&&e._rtPaused&&(e._rtPaused=!1,e.rtStateChanged=!0,this.processRealtimeStateChange())},a._isUpdateActive=function(){return!this.config._rtPaused},a.addEvents=function(){var e=this,t=e.getLinkedParent(),a=e.config;a.eventsAdded||(e.addExtEventListener("renderComplete",e._handlerFn,t.getFromEnv("chartInstance")),e.addExtEventListener("nodatatodisplay",e._handlerStop,t.getFromEnv("chartInstance"))),a.eventsAdded=!0},t}(s.ComponentInterface);var g={extension:function(e){e.addEventListener("instantiated",d)},name:"DataStreamer",type:"extension",requiresFusionCharts:!0};t["default"]=g},1560:(e,t,a)=>{var o=a(269);t.__esModule=!0,t["default"]=void 0;var r=o(a(288)),i=a(274),l=o(a(519)),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=d(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 l=r?Object.getOwnPropertyDescriptor(e,i):null;l&&(l.get||l.set)?Object.defineProperty(o,i,l):o[i]=e[i]}o["default"]=e,a&&a.set(e,o);return o}(a(532)),s=o(a(594)),c=o(a(629)),u=a(627);function d(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,a=new WeakMap;return(d=function(e){return e?a:t})(e)}var h=function(e){function t(){var t;return(t=e.call(this)||this).showRTvalue=!1,t.canvasPadding=!1,t.sliceOnLegendClick=!0,t.defaultPlotShadow=1,t.subTitleFontSizeExtender=0,t.tooltippadding=3,t.defaultPaletteOptions=n,t.drawAnnotations=!0,t.isDataLabelBold=!1,t.dontShowLegendByDefault=!0,t.formatnumberscale=1,t.alignCaptionWithCanvas=0,t.registerFactory("dataset",s["default"],["vCanvas","legend"]),t.registerFactory("legend",c["default"]),t}(0,r["default"])(t,e),t.getName=function(){return"FunnelPyramidBase"};var a=t.prototype;return a.__setDefaultConfig=function(){e.prototype.__setDefaultConfig.call(this);var t=this.config;t.showRTvalue=!1,t.canvasPadding=!1,t.sliceOnLegendClick=!0,t.defaultPlotShadow=1,t.subTitleFontSizeExtender=0,t.tooltippadding=3,t.defaultPaletteOptions=n,t.drawAnnotations=!0,t.isDataLabelBold=!1,t.dontShowLegendByDefault=!0,t.alignCaptionWithCanvas=0,t.formatnumberscale=1,t.isSingleSeries=!0,t.hasLegend=!0,t.decimals=2,t.defaultDatasetType="funnelpyramidbaseds",t.skipCanvasDrawing=!0},a.parseChartAttr=function(t){e.prototype.parseChartAttr.call(this,t);var a=this,o=a.getFromEnv("chart-attrib");a.config.showLegend=(0,i.pluckNumber)(o.showlegend,0),a.config.usePattern&&(a.config.is2d=1)},a._checkInvalidSpecificData=function(){var e,t,a,o=0,r=0,i=this.getFromEnv("dataSource").data;if(!i)return!0;for(t=i.length,e=0;e<t;e++)a=Number(i[e].value),o+=isNaN(a)||0!==a?0:1,r+=isNaN(a)?1:0;return o+r>=t||void 0},a._manageLegendSpace=function(){u._manageLegendSpace.call(this)},a.getName=function(){return"FunnelPyramidBase"},t}(l["default"]);t["default"]=h},1488:(e,t,a)=>{var o=a(269);t.__esModule=!0,t["default"]=void 0;var r,i=o(a(288)),l=o(a(1479)),n=o(a(342)),s=o(a(380)),c=o(a(272)),u=a(274),d=o(a(421)),h=function(e){function t(){var t;t=e.call(this)||this,c["default"].addDep(n["default"]),c["default"].addDep(s["default"]);return t.chartLeftMargin=15,t.chartRightMargin=15,t.chartTopMargin=10,t.chartBottomMargin=37,t.minChartHeight=10,t.minCanvasWidth=0,t}(0,i["default"])(t,e);var a=t.prototype;return a._feedAxesRawData=function(){var e,t,a=this,o=a.config,i=a.getFromEnv("color-manager"),l=a.getFromEnv("dataSource"),n=l.chart,s=u.chartPaletteStr.chart2D,c=(0,u.pluckNumber)(n.ticksbelowgauge),h=(0,u.pluckNumber)(n.ticksonright),g=(0,u.pluckNumber)((0,d["default"])(n.scaleposition,o.scalePosition)?o.isAxisOpposite:(0,d["default"])(n.scaleposition,o.canBeScalePosition)?!o.isAxisOpposite:r,c!==r?!c:r,h!==r?h:r,o.isAxisOpposite),p=(0,u.pluckNumber)(n.reverseaxis,a.isAxisReverse),f=(0,u.pluckNumber)(n.reversescale,0),m=(0,u.pluckNumber)(n.showtickmarks,1),v=a.getFromEnv("number-formatter"),b=(0,u.pluckNumber)(n.showtickvalues),k=(0,u.pluckFontSizeMaintainUnit)(n.outcnvbasefontsize,n.basefontsize,10);return t=!(!b&&b!==r)&&!(!m&&b===r),(e={isVertical:!a.isHorizontal,isReverse:a.isHorizontal?f:!p,isOpposit:g,outCanfontFamily:(0,u.pluck)(n.outcnvbasefont,n.basefont,"Verdana,sans"),outCanfontSize:this.computeFontSize(k),outCanfontSizeWithUnit:k,outCancolor:(0,u.pluck)(n.outcnvbasefontcolor,n.basefontcolor,i.getColor(s.baseFontColor)).replace(/^#?([a-f0-9]+)/gi,"#$1"),useEllipsesWhenOverflow:n.useellipseswhenoverflow,divLineColor:(0,u.pluck)(n.vdivlinecolor,i.getColor(s.divLineColor)),divLineAlpha:(0,u.pluck)(n.vdivlinealpha,i.getColor("divLineAlpha")),divLineThickness:(0,u.pluckNumber)(n.vdivlinethickness,1),divLineIsDashed:Boolean((0,u.pluckNumber)(n.vdivlinedashed,n.vdivlineisdashed,0)),divLineDashLen:(0,u.pluckNumber)(n.vdivlinedashlen,4),divLineDashGap:(0,u.pluckNumber)(n.vdivlinedashgap,2),showAlternateGridColor:(0,u.pluckNumber)(n.showalternatevgridcolor,0),alternateGridColor:(0,u.pluck)(n.alternatevgridcolor,i.getColor("altVGridColor")),alternateGridAlpha:(0,u.pluck)(n.alternatevgridalpha,i.getColor("altVGridAlpha")),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,axisName:n.xaxisname,axisMinValue:v.getCleanValue(n.lowerlimit),axisMaxValue:v.getCleanValue(n.upperlimit),setAdaptiveMin:n.setadaptivemin,adjustDiv:n.adjusttm,labelDisplay:n.labeldisplay,showLabels:n.showlabels,rotateLabels:n.rotatelabels,slantLabel:(0,u.pluckNumber)(n.slantlabels,n.slantlabel),labelStep:(0,u.pluckNumber)(n.labelstep,n.xaxisvaluesstep),showAxisValues:(0,u.pluckNumber)(n.showxaxisvalues,n.showxaxisvalue),showDivLineValues:(0,u.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,u.pluckNumber)(n.showxaxisline,n.showaxislines,n.drawAxisLines,0),axisLineThickness:(0,u.pluckNumber)(n.xaxislinethickness,n.axislinethickness,1),axisLineAlpha:(0,u.pluckNumber)(n.xaxislinealpha,n.axislinealpha,100),axisLineColor:(0,u.pluck)(n.xaxislinecolor,n.axislinecolor,"#000000"),majorTMNumber:n.majortmnumber,majorTMColor:n.majortmcolor,majorTMAlpha:n.majortmalpha,majorTMHeight:n.majortmheight,tickValueStep:n.tickvaluestep,showTickMarks:n.showtickmarks,connectTickMarks:n.connecttickmarks,showTickValues:n.showtickvalues,majorTMThickness:n.majortmthickness,reverseScale:n.reversescale,showLimits:n.showlimits||t,minorTMNumber:(0,u.pluckNumber)(n.minortmnumber,a.minorTMNumber,4),minorTMColor:n.minortmcolor,minorTMAlpha:n.minortmalpha,minorTMHeight:(0,u.pluckNumber)(n.minortmheight,n.minortmwidth),minorTMThickness:n.minortmthickness,tickMarkDistance:(0,u.pluckNumber)(n.tickmarkdistance,n.tickmarkgap),tickValueDistance:(0,u.pluckNumber)(n.tickvaluedistance,n.displayvaluedistance),placeTicksInside:n.placeticksinside,placeValuesInside:n.placevaluesinside,upperLimitDisplay:n.upperlimitdisplay,lowerLimitDisplay:n.lowerlimitdisplay,drawTickMarkConnector:a.isHorizontal?1:0}).vtrendlines=l.trendpoints,[e]},a._setAxisLimits=function(){var e,t=this,a=t.getFromEnv("dataSource").chart,o=t.getChildren("scale")[0];(e=t.getChildren("dataset")[0].getDataLimits()).max===-Infinity&&(e.max=0),e.min===Infinity&&(e.min=0),t.colorRange&&o.setAxisConfig({axisMinValue:(0,u.pluckNumber)(a.lowerlimit,e.forceMin?e.min:r),axisMaxValue:(0,u.pluckNumber)(a.upperlimit,e.forceMax?e.max:r)}),o.setDataLimit(e.max,e.min)},a._getDataJSON=function(){var e,t,a=0,o=[],r=[],i=[],l=this.getChildren("dataset")[0].components.data;for(e=l&&l.length?l.length:0;a<e;a+=1)t=l[a].config,o.push(t.itemValue),r.push(t.formatedVal||u.BLANK),i.push(t.toolText||u.BLANK);return{values:o,labels:r,toolTexts:i}},a._postSpaceManagement=function(){var e=this,t=e.config,a=e.getChildren("canvas")[0],o=e.getChildren("scale")[0],r=e.isHorizontal,i=a.config;r?o.setAxisDimention({axisLength:t.canvasWidth,y:i.canvasTop+(o.config.isOpposit?0:i.canvasHeight),x:i.canvasLeft}):o.setAxisDimention({axisLength:t.canvasHeight,x:i.canvasLeft+(o.config.isOpposit?i.canvasWidth:0),y:i.canvasTop}),e.allocateDimensionOfChartMenuBar()},a._clearChart=function(){},t}(l["default"]);t["default"]=h},1479:(e,t,a)=>{var o=a(269);t.__esModule=!0,t["default"]=void 0;var r=o(a(288)),i=a(1480),l=a(286),n=o(a(520)),s=a(274),c=o(a(594)),u=o(a(272)),d=o(a(1481)),h=(0,s.extend2)({},s.defaultGaugePaletteOptions),g=Math.max;u["default"].addDep(d["default"]);var p=function(e){function t(){var t;return(t=e.call(this)||this).defaultPaletteOptions=h,t.multiValueGauge=!1,t.drawAnnotations=!0,t.includeColorRangeInLimits=!1,t.isWidget=!0,t._feedAxesRawData=t._feedAxesRawData||s.stubFN,t._setCategories=t._setCategories||s.stubFN,t.eiMethods=i.eiMethods,t.registerFactory("dataset",c["default"],["vCanvas"]),t.registerFactory("axis",s.stubFN,["vCanvas"]),t}(0,r["default"])(t,e),t.getName=function(){return"GaugeBase"};var a=t.prototype;return a.getName=function(){return"GaugeBase"},a.__setDefaultConfig=function(){e.prototype.__setDefaultConfig.call(this);var t=this.config;t.valuefontbold=1,t.useScaleRecursively=!0,t.formatnumberscale=0},a.parseChartAttr=function(t){e.prototype.parseChartAttr.call(this,t),this.config.drawTrendRegion=0},a.realTimeUpdate=function(e){var t,a,o,r=this,i=r.getChildren().dataset,l=e.dataset,n=e.categories&&e.categories.category||[],s=r.config.realTimeConfig=r.config.realTimeConfig||(r.config.realTimeConfig={});if(r.fireChartInstanceEvent("updateDataReceived",e),r.fireEvent("realtimeDataUpdate",e),r.config.cachedArrivedJSON||(r.config.cachedArrivedJSON={}),r.config.cachedArrivedJSON=e,i){for(o=0,a=(t=l[0].data).length;o<a;o++)t[o].label=n[o]&&n[o].label;i[0].maxminFlag&&(s.maxminFlag=i[0].maxminFlag)}},a._setData=function(e,t){var a=s.BLANKSTRING;(e&&e.toString||e===s.BLANKSTRING||0===e)&&(a="value="+e.toString()),(t&&t.toString||t===s.BLANKSTRING)&&(a=a+"&label="+t.toString()),a&&this.feedData(a)},a._getData=function(){var e,t,a,o,r,i=this.getChildren(),l=this.getDatasets(),n=i.xAxis&&i.xAxis[0]||i.scale,s=[],c=0;if(l){for(e=l.length,t=0;t<e;t++)c=g(c,l[t].components.data.length);for(t=0;t<c;t++)for((r=s[t]=[])[0]=n.getLabel(t).label,a=1;a<=e;a++)o=l[a-1].components.data[t],r[a]=o&&o.config.setValue;return s}},a._checkInvalidSpecificData=function(){},a.realTimeDraw=function(e){if(void 0===e&&(e={}),this.config.cachedArrivedJSON){var t,a,o,r,i,n,c=this,u=c.config,d=u.prevData,h=(n=[],c.iterateComponents((function(e){"dataset"===e.getType()&&n.push(e)})),n),g=u.cachedArrivedJSON,p=u.realTimeConfig||(u.realTimeConfig={}),f=p.showRTValue,m=[];if(c.__rtDrawStartAt=new Date,c.getFromEnv("animationManager").setAnimationState("realTimeUpdate"),h&&h.length){for(r=g.dataset[0].data,i=(m=Object.keys(h[0].config.dataById||h[0].config.idMap||{})).length,o=0;o<i;o++)g.hasOwnProperty(m[o])&&r.push({value:Number(g[m[o]]),id:m[o]});u.prevData=function(e){void 0===e&&(e=[]);var t,a,o=e.length,r=[];for(t=0;t<o;++t)a=e[t],r.push(a.value);return[r]}(r),(t=g.dataset[0]).data[0]&&(t.data[0].label=g.categories&&g.categories.category&&g.categories.category[0]&&g.categories.category[0].label),h[0].updateData(t),h[0].maxminFlag&&(p.maxminFlag=h[0].maxminFlag),h[0].asyncDraw(),u.cachedArrivedJSON=s.UNDEF,c.rtManageSpace&&c._RTmanageSpace(),c.prepareAttributes&&c.prepareAttributes(),c._preDraw(),f&&c._drawRealTimeValue&&c.asyncRealTimeValueDraw()}u._eventArgs=e,e.prevData=d,c.__realtimeUpdateComplete||(c.__realtimeUpdateComplete=function(){a=new Date-c.__rtDrawStartAt,p.clear||(u._eventArgs.latency=a,u._eventArgs.updateObject=p.legacyUpdateObj),c.getChildren("dataStreamer")[0].addToEnv("realtimeDrawingLatency",a),c.fireChartInstanceEvent("realTimeUpdateComplete",u._eventArgs)}),c.addJob("realtimeupdatecomplete",c.__realtimeUpdateComplete,l.priorityList.postRender)}},a._setRTmenu=function(e,t){i._setRTmenu.call(this,e,t)},a._createLayers=function(){var t,a;e.prototype._createLayers.call(this),t=this.getChildContainer("belowPlotGroup"),a=this.getChildContainer("axisBottomGroup"),t.insertBefore(a)},a._realTimeConfigure=function(){i._realTimeConfigure.call(this)},a._stopUpdate=function(e){i._stopUpdate.call(this,e)},a._restartUpdate=function(){i._restartUpdate.call(this)},a._isUpdateActive=function(){return i._isUpdateActive.call(this)},a.feedData=function(e){i.feedData.call(this,e)},a._linearDataParser=function(e){return i._linearDataParser.call(this,e)},a._clearChart=function(e){i._clearChart.call(this,e)},t}(n["default"]);t["default"]=p},1487:(e,t,a)=>{var o=a(269);t.__esModule=!0,t["default"]=void 0;var r=o(a(288)),i=o(a(1488)),l=o(a(1489)),n=a(274),s=function(e){function t(){var t;return(t=e.call(this)||this).registerFactory("axis",l["default"]),t}(0,r["default"])(t,e),t.getName=function(){return"AxisGaugeBase"};var a=t.prototype;return a.__setDefaultConfig=function(){e.prototype.__setDefaultConfig.call(this)},a.allocatePosition=function(){var e=this,t=e.config,a=t.canvasWidth,o=t.canvasHeight,r=e.getChildren("caption")[0].config.style,i=e.getChildren("subCaption")[0].config.style,l=e.getFromEnv("dataSource").chart,s=e.getFromEnv("style");r.fontSize=(0,n.pluckNumber)(this.computeFontSize(l.captionfontsize),this.computeFontSize(s.fontSizeWithUnit)+3)+n.PXSTRING,(0,n.setLineHeight)(r),i.fontSize=(0,n.pluckNumber)(this.computeFontSize(l.subcaptionfontsize),(0,n.pluckNumber)(Math.max((0,n.pluckNumber)(this.computeFontSize(l.captionfontsize))-3,-1),this.computeFontSize(s.fontSizeWithUnit))+(0,n.pluckNumber)(e.subTitleFontSizeExtender,1))+n.PXSTRING,(0,n.setLineHeight)(i),t.gaugeStartX=t.canvasLeft,t.gaugeEndX=t.canvasLeft+a,t.gaugeStartY=t.canvasTop,t.gaugeEndY=t.canvasTop+o,t.gaugeCenterX=t.canvasLeft+a/2,t.gaugeCenterY=t.canvasTop+o/2},a._spaceManager=function(){var e,t,a,o,r=this,i=r.config,l=r.getChildren("dataset")[0],s=r.getChildren("scale")[0],c=r.config.is3D,u=r.getChildren("canvas")[0],d=r.getFromEnv("dataSource").chart,h=(0,n.pluckNumber)(d.showborder,c?0:1),g=r.isHorizontal,p=i.minChartWidth,f=i.minChartHeight,m=i.borderWidth=h?(0,n.pluckNumber)(d.borderthickness,1):0;i.canvasWidth-2*m<p&&(a=(i.canvasWidth-p)/2),i.canvasHeight-2*m<f&&(o=(i.canvasHeight-f)/2),r._allocateSpace({top:o||m,bottom:o||m,left:a||m,right:a||m}),e=.225*i.availableHeight,t=r._manageActionBarSpace&&r._manageActionBarSpace(e)||{},r._allocateSpace(t),g?r._allocateSpace(s.placeAxis(i.availableHeight)):r._allocateSpace(s.placeAxis(i.availableWidth)),r._manageChartMenuBar(.4*i.availableHeight),l._manageSpace&&r._allocateSpace(l._manageSpace(i.availableHeight)),s.setAxisConfig({drawPlotlines:r.drawPlotlines,drawPlotBands:r.drawPlotBands}),u.setDimension({top:i.canvasTop,left:i.canvasLeft,width:i.canvasWidth,height:i.canvasHeight})},t}(i["default"]);t["default"]=s},1480:(e,t,a)=>{var o=a(269);t.__esModule=!0,t._setRTmenu=t._clearChart=t._linearDataParser=t.feedData=t.realTimeDraw=t._RTmanageSpace=t.realTimeUpdate=t._isUpdateActive=t._restartUpdate=t._stopUpdate=t.eiMethods=t._realTimeConfigure=void 0;var r,i=a(274),l=a(286),n=o(a(540)),s=Math.max,c=i.regex.dropHash,u=0,d=0,h="|",g=",",p=function(e){return Object.assign({},e)},f=function(e){return e.spaceTaken.left},m=function(e){return e.spaceTaken.right},v=function(e){var t=[];return e.iterateComponents((function(e){"dataset"===e.getType()&&t.push(e)})),t},b={feedData:function(){var e,t,a=this.apiInstance,o=arguments[1];if(!o)return a.feedData.apply(a,arguments);e=arguments[0],a.addJob("feedDataId"+d+++u++,(function(){t=a.feedData(e),"function"==typeof o&&o(t)}),l.priorityList.postRender)},setData:function(){var e=this.apiInstance,t=arguments[0],a=arguments[1],o=arguments[2];e.addJob("setDataId"+d++,(function(){e._setData(t,a,o)}),l.priorityList.postRender)},stopUpdate:function(){var e=this.apiInstance;e.addJob("stopUpdateId"+d++,(function(){e._stopUpdate()}),l.priorityList.postRender)},restartUpdate:function(){this.apiInstance._restartUpdate.apply(this.apiInstance,arguments)},isUpdateActive:function(){return this.apiInstance._isUpdateActive.apply(this.apiInstance,arguments)},clearChart:function(){var e=this.apiInstance;e.addJob("clearChartId"+d++,(function(){e._clearChart()}),l.priorityList.postRender)},getData:function(){return this.apiInstance._getData.apply(this.apiInstance,arguments)},getDataForId:function(){return this.apiInstance._getDataForId.apply(this.apiInstance,arguments)},setDataForId:function(){return this.apiInstance._setDataForId.apply(this.apiInstance,arguments)},getDataJSON:function(){return this.apiInstance._getDataJSON.apply(this.apiInstance,arguments)}};t._setRTmenu=function(e,t){var a=this,o=a.getFromEnv("hamburger"),r=!0,i=[],l=function n(){r?(a._stopUpdate(),o.getChild("listContainer").getChild("rt").configure({id:"rt",name:"Restart Update",handler:function(){n()},action:"click"}),o.getChild("listContainer").getChild("rt").asyncDraw(),r=!1):(a._restartUpdate(),o.getChild("listContainer").getChild("rt").configure({id:"rt",name:"Stop Update",handler:function(){n()},action:"click"}),o.getChild("listContainer").getChild("rt").asyncDraw(),r=!0)};e&&i.push({name:"Clear Chart",handler:function(){a._clearChart()},action:"click"}),t&&i.push({name:"Show Log",handler:function(){a.getChildren("messageLogger")[0].show()},action:"click"}),e&&i.push({id:"rt",name:"Stop Update",handler:function(){l()},action:"click"}),i.length&&o.appendInMenu(i)},t._clearChart=function(e){var t,a,o=this,r=o.getChildren(),i=r.xAxis&&r.xAxis[0],l=v(o),n=i.getTicksLen(),s=i.getVisibleConfig(),c=s.maxValue,u=s.minValue,d=n>c?c-u:n,h=o.config.realTimeConfig||(o.config.realTimeConfig={}),g=h.showRTValue,p=l.length;if(h.clear=!0,l){for(i&&i.categoryDelete(0,d,!0),o.config._sumValuesUpdated=!1,a=0;a<p;a++)t=l[a],l[a].removeData(0,t.components.data.length),l[a].resetCatPos();o._setCategories()}g&&o._drawRealTimeValue&&o.asyncRealTimeValueDraw(),o.fireChartInstanceEvent("ChartCleared",{source:e},[o.getId(),e])},t._linearDataParser=function(e){var t,a,o,l,n,c,u,d,p,f,m,b,k,C,x,w,T,y,S,A,F,N,E,L,D,M,R,_,I,V,O,P,G,B=this,H=e,W=v(B),z=W&&W.length,j=B.config.realTimeConfig.legacyUpdateObj={},U=j.values=[],X=j.id=[],K=j.target=[],Y=j.valueVisibility=[],J=j.toolTexts=[],q=j.toolTextsTarget=[],Z=j.colors=[],$=j.links=[],Q=j.valueFontColors=[],ee=j.valueBgColors=[],te=j.valueBorderColors=[],ae=0,oe={categories:{category:[]},dataset:[]},re=oe.categories.category,ie=oe.dataset,le=H;for(H=H&&H.toString&&H.toString()||"",B.rtParserModify&&(le=le.replace(/([^\\])(\|)/g,"$1,"),H=H.replace(/\|/g,",")),C=0,x=(t=H.split("&")).length;C<x;C+=1)if(o=(a=t[C].split("="))[1],(a=a[0])!==i.BLANKSTRING&&a!==r&&o!==r&&o!==i.BLANKSTRING)switch(a.toLowerCase()){case"label":j.labels=w=o.split(g);break;case"vline":j.vlines=T=o.split(g);break;case"vlinelabel":j.vlineLabels=p=o.split(g);break;case"vlinecolor":j.vlineColors=f=o.split(g);break;case"vlinethickness":j.vlineThickness=m=o.split(g);break;case"vlinedashed":j.vlineDashed=b=o.split(g);break;case"value":y=o.split(h);break;case"valuefontcolor":_=o.split(h);break;case"valuebgcolor":I=o.split(h);break;case"valuebordercolor":V=o.split(h);break;case"target":A=o.split(h);break;case"showlabel":j.showLabels=k=o.split(g);break;case"showvalue":l=o.split(h);break;case"tooltext":n=(n=(n=(n=le.match(/tooltext=(.*?\\&)*.*?[^\\]&/i))?n[0].substr(9,n[0].length-10):le.match(/(tooltext=)(.*)/i)[2])&&n.replace(/([^\\])(\|)/g,"$1_FC@@**")).split("_FC@@**");break;case"targettooltext":c=o.split(h);break;case"link":d=o.split(h);break;case"color":u=o.split(h);break;case"datastamp":j.dataStamp=F=o;break;case"stopupdate":j.pause=N="1"===o;break;case"clear":j.clear=E="1"===o;break;case"id":S=o.split(h);break;default:j[a]=oe[a]=o}for(R=y&&y.length,C=0;C<R;C++)U[C]=y[C].split(g),K[C]=A&&A[C]&&A[C].split(g),Y[C]=l&&l[C]&&l[C].split(g),q[C]=c&&c[C]&&c[C].split(g),Z[C]=u&&u[C]&&u[C].split(g),$[C]=d&&d[C]&&d[C].split(g),Q[C]=_&&_[C]&&_[C].split(g),ee[C]=I&&I[C]&&I[C].split(g),te[C]=V&&V[C]&&V[C].split(g),X[C]=S?S[C].split(g):null,n&&(G=n[C])&&(G=G.replace(/([^\\])(\,)/g,"$1_FC@@**"),J[C]=G.split("_FC@@**")),ae=s(ae,U[C].length);for(P=w&&w.length,L=s(P||0,ae||0),C=0;C<L;C++)re.push({label:w&&w[C],color:f&&f[C],showlabel:k&&k[C]});for(T&&re.push({label:p&&p[0],vline:T&&T[0],color:f&&f[0],thickness:m&&m[0],dashed:b&&b[0],showlabel:k&&k[0]}),C=0;C<z;C++){for(D=(O={}).data=[],M=0;M<L;M++)D.push({value:U[C]&&U[C][M],target:K[C]&&K[C][M],showvalue:Y[C]&&Y[C][M],tooltext:J[C]&&J[C][M]&&decodeURIComponent(J[C][M].replace(/\\/g,"")),tooltexttarget:q[C]&&q[C][M],color:Z[C]&&Z[C][M],link:$[C]&&$[C][M]&&decodeURIComponent($[C][M]),valuefontcolor:Q[C]&&Q[C][M],valuebgcolor:ee[C]&&ee[C][M],valuebordercolor:te[C]&&te[C][M],id:X[C]&&X[C][M]});ie.push(O)}return N&&B._stopUpdate(),E&&B._clearChart(),F&&(B.config.dataStamp=F),oe},t.feedData=function(e){var t=this.getFromEnv("dataStreamer");t.responseTextHandler(e),t.refreshVisualHandler({source:"feedData",data:e})},t.realTimeDraw=function(e){void 0===e&&(e={});var t,a,o,i,n=this,s=n.config,c=n.getChildren(),u=c.canvas&&c.canvas[0],d=c.xAxis&&c.xAxis[0],h=c.yAxis&&c.yAxis[0],g=c.yAxis&&c.yAxis[1],p=v(n),f=p.length,m=s.cachedArrivedJSON,b=m&&m.dataset,k=m&&m.categories&&m.categories.category||[],C=d&&d.getTicksLen(),x=s.realTimeConfig=s.realTimeConfig||(s.realTimeConfig={}),w=x.prevData,T=0,y=x.showRTValue,S=x.clear,A=function(e){void 0===e&&(e=[]);var t,a,o=e.length,r=[];for(t=0;t<o;++t)a=e[t],r.push(a.value);return r};if(s._eventArgs=e,e.prevData=w,x.prevData=[],n.getFromEnv("animationManager").setAnimationState("realTimeUpdate"),n.__rtDrawStartAt=new Date,n.__realtimeUpdateComplete||(n.__realtimeUpdateComplete=function(){i=new Date-n.__rtDrawStartAt,S||(s._eventArgs.latency=i,s._eventArgs.updateObject=x.legacyUpdateObj),n.getChildren("dataStreamer")[0].addToEnv("realtimeDrawingLatency",i),n.fireChartInstanceEvent("realTimeUpdateComplete",s._eventArgs)}),n.addJob("realtimeupdatecomplete",n.__realtimeUpdateComplete,l.priorityList.postRender),p){if(u.asyncDraw(),m){if(d){for(d.asyncDraw(),d.categoryInsert(C,k,!0),o=0,t=k.length;o<t;o++)k[o].vline||(T+=1);d.categoryDelete(0,T,!0),d.categoryTranslate(T)}if(s._sumValuesUpdated=!1,S){for(o=0;o<f;o++)p[o]._realTimeConfigure(!0);x.clear=!1}for(o=0;o<f;o++)a=b[o],p[o].addData(a),p[o].removeData(0,a.data.length),p[o].resetCatPos(),p[o].setMaxMin(),p[o].getLinkedParent().childChanged(),x.prevData.push(A(a.data));s.cachedArrivedJSON=r}n.rtManageSpace&&n._RTmanageSpace(),s.drawYAxis&&h&&h.asyncDraw(),s.drawSyAxis&&g&&g.asyncDraw(),n._preDraw(),y&&n._drawRealTimeValue&&n.asyncRealTimeValueDraw()}},t._RTmanageSpace=function(){var e,t,a,o,r,i,l,c,u,d,h,g=this,v=g.config,b=g.getChildren(),k=b.xAxis[0],C=b.yAxis[0],x=b.yAxis[1],w=b.canvas&&b.canvas[0],T=w.config,y=T.canvasBorderWidth,S=T.canvasPaddingTop,A=T.canvasPaddingBottom,F=T.canvasPadding||0,N=T.canvasPaddingLeft,E=T.canvasPaddingRight,L=v.xAxisSpaceAllocation,D=v.yAxisSpaceAllocation||[],M=D.map(p),R=C&&JSON.stringify(C.getAxisDimension()),_=C&&JSON.stringify(C.getAxisDimension()),I=v.shift||0;e=(t=v.xAxisSpaceAllocation=k.placeAxis(v.availableHeight+(k.config.isOpposit?L.top:L.bottom))).bottom-L.bottom,0===(d=t.top-L.top)&&0===e||(g._allocateSpace({bottom:e,top:d}),a=v.availableWidth,D[0].spaceTaken=C.placeAxis(a+M[0].spaceTaken.left),x&&(D[1].spaceTaken=x.placeAxis(a+M[1].spaceTaken.right)),g._allocateSpace({left:(0,n["default"])(D,f)-(0,n["default"])(M,f),right:(0,n["default"])(D,m)-(0,n["default"])(M,m)}),a=v.availableWidth,o=v.canvasLeft-y,i=v.canvasRight+y,x&&(r=i,l=o,0===v.primaryAxisOnleft&&(c=o,o=r,r=c,c=i,i=l,l=c),x.setAxisDimention({x:r,y:v.canvasTop+S,opposite:l,axisLength:v.canvasHeight-S-A})),k&&k.setAxisDimention({x:v.canvasLeft+s(N,F),y:k.config.isOpposit?v.canvasTop-y:v.canvasBottom+I+y,opposite:k.config.isOpposit?v.canvasBottom+I+y:v.canvasTop-y,axisLength:v.canvasWidth-s(N,F)-s(E,F)}),C&&C.setAxisDimention({x:C.config.isOpposit?i:o,y:v.canvasTop+S,opposite:C.config.isOpposit?o:i,axisLength:v.canvasHeight-S-A})),g.canvasPadding&&w.setCanvasPadding(),w.setDimension({top:v.canvasTop,left:v.canvasLeft,width:v.canvasWidth,height:v.canvasHeight}),y=T.canvasBorderWidth,S=T.canvasPaddingTop,A=T.canvasPaddingBottom,F=T.canvasPadding||0,N=T.canvasPaddingLeft,E=T.canvasPaddingRight,x&&x.setAxisDimention({x:v.canvasRight+y,y:v.canvasTop+S,opposite:l,axisLength:v.canvasHeight-S-A}),k&&k.setAxisDimention({x:v.canvasLeft+s(N,F),y:k.config.isOpposit?v.canvasTop-y:v.canvasBottom+I+y,opposite:k.config.isOpposit?v.canvasBottom+I+y:v.canvasTop-y,axisLength:v.canvasWidth-s(N,F)-s(E,F)}),C&&C.setAxisDimention({x:C.config.isOpposit?v.canvasRight+y:v.canvasLeft-y,y:v.canvasTop+S,opposite:C.config.isOpposit?v.canvasLeft-y:v.canvasRight+y,axisLength:v.canvasHeight-S-A}),u=C&&JSON.stringify(C.getAxisDimension()),h=C&&JSON.stringify(C.getAxisDimension()),v.drawYAxis=u!==R,v.drawSyAxis=h!==_},t.realTimeUpdate=function(e){var t,a,o=this,r=v(o),i=o.config.cachedArrivedJSON,l=i&&i.categories,n=e.dataset,s=e.categories&&e.categories.category||[];for(o.fireChartInstanceEvent("updateDataReceived",e),o.fireEvent("realtimeDataUpdate",e),!o.config.cachedArrivedJSON&&(i=o.config.cachedArrivedJSON={}),i.dataset=i.dataset||[],(l=i.categories||(i.categories={})).category=l.category||[],t=0;t<r.length;t++)(a=i.dataset[t]||(i.dataset[t]={})).data||(a.data=[]),a.data.push.apply(a.data,n[t].data);l.category.push.apply(l.category,s)},t.eiMethods=b,t._isUpdateActive=function(){return this.getChildren("dataStreamer")[0]._isUpdateActive()},t._restartUpdate=function(){this.getChildren("dataStreamer")[0]._restartUpdate()},t._stopUpdate=function(e){var t=this,a=t.config.realTimeConfig,o=t.config.timers&&t.config.timers.setTimeout.loadData;t.getChildren("dataStreamer")[0]._stopUpdate(),o&&clearTimeout(o),a.clearIntervalFlag=!1,t.fireChartInstanceEvent("dataRestored",{source:e})},t._realTimeConfigure=function(){var e,t,a,o=this,r=o.config,l=r.realTimeConfig||(r.realTimeConfig={}),n=o.getFromEnv("dataSource"),u=n.chart,d=(0,i.pluckNumber)(u.usemessagelog,0),h=(0,i.pluckNumber)(u.messagegoestolog,1),g=n.categories&&Array.isArray(n.categories)&&n.categories[0]&&n.categories[0].category&&n.categories[0].category.length||0;l.showRTValue=(0,i.pluckNumber)(u.showrealtimevalue,1),l.dataStreamURL=(0,i.parseUnsafeString)(u.datastreamurl,i.BLANKSTRING),l.dataStamp=u.datastamp,l.useMessageLog=d&&h,l.clearInterval=(0,i.pluckNumber)(u.clearchartinterval,0),l.realtimeValueSeparator=(0,i.pluck)(u.realtimevaluesep,i.COMMASPACE),l.refreshInterval=e=(0,i.pluckNumber)(u.refreshinterval,u.updateinterval,2),l.updateInterval=o.config.updateInterval=(0,i.pluckNumber)(u.updateinterval,e),l.realtimeValuePadding=(0,i.pluckNumber)(u.realtimevaluepadding),l.realtimeValueFont=(0,i.pluck)(u.realtimevaluefont,i.BLANKSTRING),l.realtimeValueFontBold=(0,i.pluck)(u.realtimevaluefontbold,0),l.realtimeValueFontColor=t=(0,i.pluck)(u.realtimevaluefontcolor,i.BLANKSTRING),l.realtimeValueFontSize=a=(0,i.pluckNumber)(u.realtimevaluefontsize,i.BLANKSTRING),l.realTimeValuePadding=(0,i.pluckNumber)(u.realtimevaluepadding,5),l.fontWeight=(0,i.pluckNumber)(u.realtimevaluefontbold,0)?"bold":"normal",l.numDisplaySets=(0,i.pluckNumber)(u.numdisplaysets,s(g,15)),l.refreshInstantly=(0,i.pluckNumber)(u.refreshinstantly,0),l.showRTmenuItem=(0,i.pluckNumber)(u.showrtmenuitem,0),l.sync=(0,i.pluckNumber)(u.sync,e>.6),t&&(l.realtimeValueFontColor=t.replace(c,i.HASHSTRING)),a&&(l.realtimeValueFontSize=a+"px"),e*=1e3}},1526:(e,t,a)=>{var o=a(269);t.__esModule=!0,t["default"]=void 0;var r=o(a(288)),i=a(274),l=o(a(517)),n=Math,s=n.min,c=n.max,u=n.ceil,d=(0,i.extend2)({},i.defaultGaugePaletteOptions),h=function(e){function t(){var t;return(t=e.call(this)||this).showBorder=0,t.chartTopMargin=3,t.chartRightMargin=3,t.chartBottomMargin=3,t.chartLeftMargin=3,t.canvasborderthickness=0,t.subTitleFontSizeExtender=0,t.subTitleFontWeight=0,t.defaultPaletteOptions=(0,i.extend2)((0,i.extend2)({},d),{paletteColors:[["555555","A6A6A6","CCCCCC","E1E1E1","F0F0F0"],["A7AA95","C4C6B7","DEDFD7","F2F2EE"],["04C2E3","66E7FD","9CEFFE","CEF8FF"],["FA9101","FEB654","FED7A0","FFEDD5"],["FF2B60","FF6C92","FFB9CB","FFE8EE"]],bgColor:["FFFFFF","CFD4BE,F3F5DD","C5DADD,EDFBFE","A86402,FDC16D","FF7CA0,FFD1DD"],bgAngle:[270,270,270,270,270],bgRatio:["0,100","0,100","0,100","0,100","0,100"],bgAlpha:["100","60,50","40,20","20,10","30,30"],canvasBgColor:["FFFFFF","FFFFFF","FFFFFF","FFFFFF","FFFFFF"],canvasBgAngle:[0,0,0,0,0],canvasBgAlpha:["100","100","100","100","100"],canvasBgRatio:[i.BLANKSTRING,i.BLANKSTRING,i.BLANKSTRING,i.BLANKSTRING,i.BLANKSTRING],canvasBorderColor:["BCBCBC","BEC5A7","93ADBF","C97901","FF97B1"],toolTipBgColor:["FFFFFF","FFFFFF","FFFFFF","FFFFFF","FFFFFF"],toolTipBorderColor:["545454","545454","415D6F","845001","68001B"],baseFontColor:["333333","60634E","025B6A","A15E01","68001B"],trendColor:["666666","60634E","415D6F","845001","68001B"],plotFillColor:["666666","A5AE84","93ADBF","C97901","FF97B1"],borderColor:["767575","545454","415D6F","845001","68001B"],borderAlpha:[50,50,50,50,50],periodColor:["EEEEEE","ECEEE6","E6ECF0","FFF4E6","FFF2F5"],winColor:["666666","60634E","025B6A","A15E01","FF97B1"],lossColor:["CC0000","CC0000","CC0000","CC0000","CC0000"],drawColor:["666666","A5AE84","93ADBF","C97901","FF97B1"],scorelessColor:["FF0000","FF0000","FF0000","FF0000","FF0000"]},!1,!0),t}(0,r["default"])(t,e),t.getName=function(){return"SparkChartBase"};var a=t.prototype;return a.getName=function(){return"SparkChartBase"},a._fetchCaptionPos=function(){return this.getChildren("caption")[0].config.isOnLeft,-1},a.parseChartAttr=function(t){e.prototype.parseChartAttr.call(this,t);var a=this.getFromEnv("dataSource").chart,o=this.config;o.origCanvasLeftMargin=(0,i.pluckNumber)(a.canvasleftmargin),o.origCanvasRightMargin=(0,i.pluckNumber)(a.canvasrightmargin),o.origCanvasTopMargin=(0,i.pluckNumber)(a.canvastopmargin),o.origCanvasBottomMargin=(0,i.pluckNumber)(a.canvasbottommargin),o.showBorder=(0,i.pluckNumber)(a.showborder,0)},a._spaceManager=function(){var e,t,a,o,r,l,n,s,u,d,h=this,g=h.config,p=g.canvasBaseDepth,f=h.getChildren("canvas")[0],m=h.getChildren("caption")[0].config.style,v=h.getChildren("subCaption")[0].config.style,b=h.getFromEnv("dataSource").chart,k=h.getFromEnv("style"),C=f.config.canvasBorderWidth,x=g.borderWidth,w=g.canvasMarginTop,T=g.canvasMarginBottom,y=g.canvasMarginLeft,S=g.canvasMarginRight,A=g.minCanvasHeight,F=g.minCanvasWidth,N=g.height,E=g.width,L=!1,D=!1,M=g.origCanvasTopMargin,R=g.origCanvasBottomMargin,_=g.origCanvasLeftMargin,I=g.origCanvasRightMargin;m.fontSize=(0,i.pluckNumber)(this.computeFontSize(b.captionfontsize),this.computeFontSize(k.fontSizeWithUnit)+3)+i.PXSTRING,(0,i.setLineHeight)(m),v.fontSize=(0,i.pluckNumber)(this.computeFontSize(b.subcaptionfontsize),(0,i.pluckNumber)(c((0,i.pluckNumber)(this.computeFontSize(b.captionfontsize))-3,-1),this.computeFontSize(k.fontSizeWithUnit))+(0,i.pluckNumber)(h.subTitleFontSizeExtender,1))+i.PXSTRING,(0,i.setLineHeight)(v),h._allocateSpace({top:x,bottom:x,left:x,right:x}),t=.325*g.availableHeight,h._getDSspace&&h._allocateSpace(h._getDSspace(t)),h._allocateSpace(h._manageActionBarSpace&&h._manageActionBarSpace(.225*g.availableHeight)||{}),g.availableWidth=g.width,e=(e=.75*g.availableWidth)-g.origMarginLeft-g.origMarginRight-2*g.borderWidth,e=c(.1*g.availableWidth,e),h._manageChartMenuBar(e),e=.75*(g.availableWidth-2*g.borderWidth),h._placeOpenCloseValues&&h._allocateSpace(h._placeOpenCloseValues(e)),h._allocateSpace({top:C,bottom:C,left:C,right:C}),h._allocateSpace({bottom:p}),A>N-w-T&&(L=!0,a=g.canvasHeight-A,d=w+T,w=g.canvasMarginTop=a*w/d,T=g.canvasMarginBottom=a*T/d),F>E-y-S&&(D=!0,a=g.canvasWidth-F,d=y+S,y=g.canvasMarginLeft=a*y/d,S=g.canvasMarginRight=a*S/d),o=w>g.canvasTop?w-g.canvasTop:0,r=T>N-g.canvasBottom?T+g.canvasBottom-N:0,l=y>g.canvasLeft?y-g.canvasLeft:0,n=S>E-g.canvasRight?S+g.canvasRight-E:0,h._allocateSpace({top:o,bottom:r,left:l,right:n}),L&&(d=M+R,(s=g.canvasHeight)>A&&(o=(a=s-A)*M/d,r=a*R/d),h._allocateSpace({top:o,bottom:r})),D&&(d=_+I,(u=g.canvasWidth)>F&&(l=(a=u-F)*_/d,n=a*I/d),h._allocateSpace({left:l,right:n})),undefined!==g.origCanvasLeftMargin&&(g.canvasWidth=c(g.canvasWidth+g.canvasLeft-g.origCanvasLeftMargin,.2*g.availableWidth),g.canvasLeft=g.origCanvasLeftMargin),f.setDimension({top:g.canvasTop,left:g.canvasLeft,width:g.canvasWidth,height:g.canvasHeight})},a._manageCaptionSpacing=function(e){var t,a,o,r,l,n=this,d=n.config,h=n.getChildren(),g=h.caption&&h.caption[0],p=h.subCaption&&h.subCaption[0],f=g.config,m=p.config,v=g.components,b=n.getFromEnv("dataSource").chart,k=n.getFromEnv("smartLabel"),C=(0,i.parseUnsafeString)(b.caption),x=(0,i.parseUnsafeString)(b.subcaption),w=f.captionPadding=(0,i.pluckNumber)(b.captionpadding,2),T=h.chartMenuBar&&h.chartMenuBar[0],y=T&&T.getLogicalSpace(),S=d.height-(y&&y.height||0),A=0,F=0,N=c(h.canvas&&h.canvas[0].config.canvasBorderThickness,0),E=0,L=e,D={};return.7*S>3&&(w<N&&(w=N+2),f.captionPadding=m.captionPadding=w,C!==i.BLANKSTRING&&(r=f.style,A=f.captionLineHeight=u(parseFloat((0,i.pluck)(r.fontHeight,r.lineHeight),10),12)),x!==i.BLANKSTRING&&(l=m.style,F=u(parseInt((0,i.pluck)(l.lineHeight,l.fontHeight),10),12)),k.useEllipsesOnOverflow(d.useEllipsesWhenOverflow),(A>0||F>0)&&(k.setStyle(r),(a=k.getSmartText(C,L,S)).width>0&&(a.width+=2,E=a.height),k.setStyle(l),(o=k.getSmartText(x,L,S-E)).width>0&&(o.width+=2),f.captionSubCaptionGap=a.height+0+.2*F,t=Math.max(a.width,o.width),f.height=E=a.height,f.width=a.width,f.tooltext&&(v.originalText=a.tooltext),m.height=E=o.height,m.width=o.width,m.tooltext&&(v.originalText=o.tooltext),t=Math.max(a.width,o.width),f.captionPadding=w=s(e-t,w),t>0&&(t=s(e,t+w)),f.maxCaptionWidth=m.maxCaptionWidth=t,f.isOnLeft?D.left=t:D.right=t)),D},a._manageCaptionPosition=function(){var e=this,t=e.config,a=e.getChildren("caption")[0],o=e.getChildren("subCaption")[0],r=a.config,l=o.config,n=r.captionPosition,s=c(r.width,l.width),u=t.borderWidth||0,d=t.height,h=(t.sparkValues||{}).openValueWidth||0,g=r.captionPadding,p=r.captionSubCaptionGap;switch(n){case i.POSITION_MIDDLE:r.y=(d-(r.height+l.height))/2+.5*(r._offsetHeight||0);break;case i.POSITION_BOTTOM:r.y=d-(r.height+l.height)-t.marginBottom-u;break;default:r.y=t.marginTop+u+(r._offsetHeight||0)}l.y=r.y+p,r.isOnLeft?(r.align=l.align=i.POSITION_END,r.x=l.x=t.canvasLeft-(u+h+2+g)+t.borderWidth):(r.align=l.align=i.POSITION_START,r.x=l.x=t.width-t.marginRight-s-u)},a._feedAxesRawData=function(){var t=e.prototype._feedAxesRawData.call(this),a=t.xAxisConf[0],o=t.yAxisConf[0],r=this.getFromEnv("chart-attrib"),l=this.getFromEnv("color-manager"),n=(0,i.pluckNumber)(r.periodlength,0);return a.lines=o.lines=a.band=o.band={isDraw:0},n&&(a.alternateGridColor=(0,i.pluck)(r.periodcolor,l.getColor("periodColor")),a.alternateGridAlpha=(0,i.pluck)(r.periodalpha,100),a.showAlternateGridColor=!0,a.categoryDivLinesFromZero=0,a.periodLength=n,a.band={isDraw:1}),t},a._checkInvalidSpecificData=function(){var e=this.getFromEnv("dataSource").dataset;if(!(e&&e.length&&e[0].data&&e[0].data.length))return!0},t}(l["default"]);t["default"]=h},1497:(e,t,a)=>{var o=a(269);t.__esModule=!0,t["default"]=void 0;var r,i=o(a(288)),l=a(274),n=a(1498),s=o(a(1446)),c=o(a(1488)),u=o(a(1499)),d=o(a(1502)),h=Math,g=h.min,p=h.PI/180,f=function(e){return e!==r&&null!==e},m=function(e){function t(){var t;return(t=e.call(this)||this).isHorizontal=!0,t.isAxisOpposite=!1,t.isRealTime=!0,t.drawPlotlines=!1,t.drawPlotBands=!1,t.isAxisReverse=!1,t.colorRange=!0,t.defaultPaletteOptions=(0,l.extend2)((0,l.extend2)({},l.defaultGaugePaletteOptions),{dialColor:["999999,ffffff,999999","ADB68F,F3F5DD,ADB68F","A2C4C8,EDFBFE,A2C4C8","FDB548,FFF5E8,FDB548","FF7CA0,FFD1DD,FF7CA0"],dialBorderColor:["999999","ADB68F","A2C4C8","FDB548","FF7CA0"],pivotColor:["999999,ffffff,999999","ADB68F,F3F5DD,ADB68F","A2C4C8,EDFBFE,A2C4C8","FDB548,FFF5E8,FDB548","FF7CA0,FFD1DD,FF7CA0"],pivotBorderColor:["999999","ADB68F","A2C4C8","FDB548","FF7CA0"]},!1,!0),t.rtParserModify=!0,t._setCategories=function(){},t.registerFactory("dataset",d["default"],["axis"]),t.registerFactory("axis",u["default"],["canvas"]),t}(0,i["default"])(t,e),t.getName=function(){return"AngularGauge"};var a=t.prototype;return a.getName=function(){return"AngularGauge"},a.__setDefaultConfig=function(){e.prototype.__setDefaultConfig.call(this);var t=this.config;t.friendlyName="Angular Gauge",t.hasLegend=!1,t.defaultDatasetType="angulargauge",t.animationeffect="easeOut",t.skipCanvasDrawing=!0},a.configureAttributes=function(t){e.prototype.configureAttributes.call(this,t);var a=this,o=a.getFromEnv("dataSource").colorrange;o&&o.color&&o.color.length?((0,l.componentFactory)(a,s["default"],"colorRange",1,[{colorRange:o,numberFormatter:a.getFromEnv("number-formatter")}]),a.addToEnv("colorRange",a.getChildren("colorRange")[0])):a.deleteFromEnv("colorRange")},a._spaceManager=function(){var e,a,o,i,n,s,c,u,d,h,g,p=this,f=p.config,m=p.getChildren("dataset")[0],v=p.getFromEnv("scale"),b=v.config,k=m.components.data[0],C=p.getFromEnv("dataSource").chart,x=m.config,w=x.scaleFactor,T=0,y=0,S=x.pivotRadius,A=f.dataLabels.style.lineHeight,F=f.displayValueCount,N=f.borderWidth,E=f.minChartWidth,L=f.minChartHeight,D=0;f.canvasWidth-2*N<E&&(g=(f.canvasWidth-E)/2),f.canvasHeight-2*N<L&&(h=(f.canvasHeight-L)/2),p._allocateSpace({top:h||N,bottom:h||N,left:g||N,right:g||N}),f.autoScale?f.scaleFactor=w=t._getScaleFactor(x.origW,x.origH,f.width,f.height):f.scaleFactor=w=1,A=A.replace(/px/i,""),c=/^\d+\%$/.test(x.gaugeinnerradius)?parseInt(x.gaugeinnerradius,10)/100:.7,u=S=(0,l.pluckNumber)((0,l.getValidValue)(C.pivotradius)*w,5),x.pivotRadius=u,S=Math.max(S,x.rearExtension*w),k&&k.config&&k.config.rearextension&&(S=Math.max(S,k.config.rearextension*w)),x.compositPivotRadius=S,T=F*A+2+u,x.valueBelowPivot||(y=T,T=0),x.gaugeOuterRadius=(0,l.pluckNumber)(Math.abs((0,l.getValidValue)(C.gaugeouterradius)*w)),x.gaugeInnerRadius=(0,l.pluckNumber)(Math.abs((0,l.getValidValue)(C.gaugeinnerradius)*w),x.gaugeOuterRadius*c),e=.7*f.canvasWidth,f.canvasHeight,d=v.placeAxis(e),a=.7*f.canvasHeight,p._manageChartMenuBar(a),o=(s=t._angularGaugeSpaceManager(x.gaugeStartAngle,x.gaugeEndAngle,f.canvasWidth,f.canvasHeight,x.gaugeOuterRadius,(0,l.pluckNumber)((0,l.getValidValue)(C.gaugeoriginx)*w-f.canvasLeft),(0,l.pluckNumber)((0,l.getValidValue)(C.gaugeoriginy)*w-f.canvasTop),S+b.polarPadding,T,y)).radius=(0,l.pluckNumber)(s.radius,s.maxRadius),x.gaugeOriginX=s.centerX+f.canvasLeft,x.gaugeOriginY=s.centerY+f.canvasTop,i=s.centerX,n=s.centerY,D=d.left<d.top?i-d.left>=o-d.left&&n-d.top>=o-d.left?d.left:d.top:i-d.left>=o-d.top&&n-d.top>=o-d.top?d.top:d.left,D+=2*v.config.polarPadding,!x.gaugeOuterRadius&&(x.gaugeOuterRadius=s.radius-D),x.gaugeInnerRadius===r&&(x.gaugeInnerRadius=x.gaugeOuterRadius*c),v.setAxisConfig({centerX:x.gaugeOriginX,centerY:x.gaugeOriginY,radius:s.radius||x.gaugeOuterRadius,gaugeOuterRadius:x.gaugeOuterRadius,gaugeInnerRadius:x.gaugeInnerRadius,scaleFactor:w})},a.allocatePosition=function(){var e=this.config,t=this.getChildren("dataset")[0].config;e.gaugeStartX=e.canvasLeft,e.gaugeStartY=e.canvasTop,e.gaugeEndX=e.canvasRight,e.gaugeEndY=e.canvasBottom,e.gaugeCenterX=t.gaugeOriginX,e.gaugeCenterY=t.gaugeOriginY,e.gaugeStartAngle=t.gaugeStartAngle/p,e.gaugeEndAngle=t.gaugeEndAngle/p},a._feedAxesRawData=function(){var e,t=this,a=t.getFromEnv("color-manager"),o=t.getFromEnv("dataSource"),i=o.chart,n=t.getFromEnv("number-formatter"),s=l.chartPaletteStr.chart2D,c=(0,l.pluckNumber)(i.axisontop,i.axisonleft,i.ticksbelowgauge!==r?!i.ticksbelowgauge:r,t.isAxisOpposite),u=(0,l.pluckNumber)(i.reverseaxis,t.isAxisReverse),d=(0,l.pluckFontSizeMaintainUnit)(i.outcnvbasefontsize,i.basefontsize,10);return(e={isVertical:!t.isHorizontal,isReverse:u,isOpposit:c,outCanfontFamily:(0,l.pluck)(i.outcnvbasefont,i.basefont,"Verdana,sans"),outCanfontSize:this.computeFontSize(d),outCanfontSizeWithUnit:d,outCancolor:(0,l.pluck)(i.outcnvbasefontcolor,i.basefontcolor,a.getColor(s.baseFontColor)).replace(/^#?([a-f0-9]+)/gi,"#$1"),useEllipsesWhenOverflow:i.useellipseswhenoverflow,divLineColor:(0,l.pluck)(i.vdivlinecolor,a.getColor(s.divLineColor)),divLineAlpha:(0,l.pluck)(i.vdivlinealpha,a.getColor("divLineAlpha")),divLineThickness:(0,l.pluckNumber)(i.vdivlinethickness,1),divLineIsDashed:Boolean((0,l.pluckNumber)(i.vdivlinedashed,i.vdivlineisdashed,0)),divLineDashLen:(0,l.pluckNumber)(i.vdivlinedashlen,4),divLineDashGap:(0,l.pluckNumber)(i.vdivlinedashgap,2),showAlternateGridColor:(0,l.pluckNumber)(i.showalternatevgridcolor,0),alternateGridColor:(0,l.pluck)(i.alternatevgridcolor,a.getColor("altVGridColor")),alternateGridAlpha:(0,l.pluck)(i.alternatevgridalpha,a.getColor("altVGridAlpha")),numDivLines:i.numvdivlines,labelFont:i.labelfont,labelFontSize:this.computeFontSize(i.labelfontsize),labelFontSizeWithUnit:i.labelfontsize,labelFontColor:i.labelfontcolor,labelAlpha:i.labelalpha,labelFontBold:i.labelfontbold,labelFontItalic:i.labelfontitalic,axisName:i.xaxisname,axisMinValue:n.getCleanValue(i.lowerlimit),axisMaxValue:n.getCleanValue(i.upperlimit),setAdaptiveMin:i.setadaptivemin,adjustDiv:i.adjusttm,labelDisplay:i.labeldisplay,showLabels:i.showlabels,rotateLabels:i.rotatelabels,slantLabel:(0,l.pluckNumber)(i.slantlabels,i.slantlabel),labelStep:(0,l.pluckNumber)(i.labelstep,i.xaxisvaluesstep),showAxisValues:(0,l.pluckNumber)(i.showxaxisvalues,i.showxaxisvalue),showDivLineValues:(0,l.pluckNumber)(i.showvdivlinevalues,i.showvdivlinevalues),showZeroPlane:i.showvzeroplane,zeroPlaneColor:i.vzeroplanecolor,zeroPlaneThickness:i.vzeroplanethickness,zeroPlaneAlpha:i.vzeroplanealpha,showZeroPlaneValue:i.showvzeroplanevalue,trendlineColor:i.trendlinecolor,trendlineToolText:i.trendlinetooltext,trendlineThickness:i.trendlinethickness,trendlineAlpha:i.trendlinealpha,showTrendlinesOnTop:i.showtrendlinesontop,showAxisLine:(0,l.pluckNumber)(i.showxaxisline,i.showaxislines,i.drawAxisLines,0),axisLineThickness:(0,l.pluckNumber)(i.xaxislinethickness,i.axislinethickness,1),axisLineAlpha:(0,l.pluckNumber)(i.xaxislinealpha,i.axislinealpha,100),axisLineColor:(0,l.pluck)(i.xaxislinecolor,i.axislinecolor,"#000000"),majorTMNumber:i.majortmnumber,majorTMColor:i.majortmcolor,majorTMAlpha:i.majortmalpha,majorTMHeight:i.majortmheight,tickValueStep:i.tickvaluestep,showTickMarks:i.showtickmarks,connectTickMarks:i.connecttickmarks,showTickValues:i.showtickvalues,majorTMThickness:i.majortmthickness,reverseScale:i.reversescale,showLimits:i.showlimits,minorTMNumber:i.minortmnumber,minorTMColor:i.minortmcolor,minorTMAlpha:i.minortmalpha,minorTMHeight:(0,l.pluckNumber)(i.minortmheight,i.minortmwidth),minorTMThickness:i.minortmthickness,tickMarkDistance:(0,l.pluckNumber)(i.tickmarkdistance,i.tickmarkgap),tickValueDistance:(0,l.pluckNumber)(i.tickvaluedistance,i.displayvaluedistance),placeTicksInside:i.placeticksinside,placeValuesInside:i.placevaluesinside,upperLimitDisplay:i.upperlimitdisplay,lowerLimitDisplay:i.lowerlimitdisplay,ticksBelowGauge:i.ticksbelowgauge,ticksBelowGraph:i.ticksbelowgraph,trendValueDistance:i.trendvaluedistance}).trendPoints=o.trendpoints,[e]},t._angularGaugeSpaceManager=function(e,t,a,o,r,i,l,n,s,c){void 0===n&&(n=0);var u,d,h,p,m,v,b,k,C,x,w,T,y,S,A=f(r),F=i,N=l,E=f(F),L=f(N),D=2*Math.PI,M=Math.PI,R=Math.PI/2,_=M+R,I={radius:r,centerX:F,centerY:N},V=s,O=c,P=!1,G=e%D;return G<0&&(G+=D),n&&n<a/2&&n<o/2&&(P=!0),V>o/2&&(V=o/2),O>o/2&&(O=o/2),v=Math.cos(e),b=Math.sin(e),k=Math.cos(t),C=Math.sin(t),d=g(v,k,0),p=Math.max(v,k,0),h=g(b,C,0),m=Math.max(b,C,0),A&&E&&L||(((w=G+(S=t-e))>D||w<0)&&(p=1),S>0?((G<R&&w>R||w>D+R)&&(m=1),(G<M&&w>M||w>D+M)&&(d=-1),(G<_&&w>_||w>D+_)&&(h=-1)):((G>R&&w<R||w<-_)&&(m=1),(G>M&&w<M||w<-M)&&(d=-1),(G>_&&w<_||w<-R)&&(h=-1)),E?A||(T=a-F,y=-F,u=d?g(T/p,y/d):T/p):(F=-(x=a/(p-d))*d,u=x,P&&(a-F<n?(T=a-(F=a-n),y=-F,u=d?g(T/p,y/d):T/p):F<n&&(T=a-(F=n),y=-F,u=d?g(T/p,y/d):T/p)),I.centerX=F),L?A||(T=o-N,y=-N,u=g(u,h?g(T/m,y/h):T/m)):(N=-(x=o/(m-h))*h,P&&(o-N<n?(T=o-(N=o-n),y=-N,u=g(u,h?g(T/m,y/h):T/m)):N<n&&(T=o-(N=n),y=-N,u=g(u,h?g(T/m,y/h):T/m))),o-N<V?(T=o-(N=o-V),y=-N,u=g(u,h?g(T/m,y/h):T/m)):N<O&&(T=o-(N=O),y=-N,u=g(u,h?g(T/m,y/h):T/m)),u=g(u,x),I.centerY=N),I.maxRadius=u,I.maxRadius<=0&&(I.maxRadius=g(a/2,o/2))),I},t._getScaleFactor=function(e,t,a,o){var r=(0,l.pluckNumber)(t,o),i=(0,l.pluckNumber)(e,a);return r&&i?i/a==r/o?a/i:g(a/i,o/r):1},a._getData=function(e,t){return n._getData.call(this,e,t)},a._setData=function(e,t){n._setData.call(this,e,t)},a._getDataForId=function(e,t){return n._getDataForId.call(this,e,t)},a._setDataForId=function(e,t){n._setDataForId.call(this,e,t)},t}(c["default"]);t["default"]=m},1478:(e,t,a)=>{var o=a(269);t.__esModule=!0,t["default"]=void 0;var r,i=o(a(288)),l=o(a(1479)),n=o(a(1482)),s=a(274),c=o(a(1446)),u=o(a(1484)),d="bulb",h=function(e){function t(){var t;return(t=e.call(this)||this).isRealTime=!0,t._drawCanvas=function(){},t.registerFactory("dataset",u["default"],["vCanvas"]),t}(0,i["default"])(t,e),t.getName=function(){return"Bulb"};var a=t.prototype;return a.getName=function(){return"Bulb"},a._clearChart=function(){},a.configureAttributes=function(t){e.prototype.configureAttributes.call(this,t);var a=this,o=a.getFromEnv("dataSource").colorrange;(0,s.componentFactory)(a,c["default"],"colorRange",1,[{colorRange:o,numberFormatter:a.getFromEnv("number-formatter")}]),a.addToEnv("colorRange",a.getChildren("colorRange")[0])},a.__setDefaultConfig=function(){e.prototype.__setDefaultConfig.call(this);var t=this.config;t.showRTvalue=!1,t.canvasPadding=!1,t.defaultSeriesType=d,t.defaultPlotShadow=1,t.drawAnnotations=!0,t.charttopmargin=10,t.chartrightmargin=10,t.chartbottommargin=10,t.chartleftmargin=10,t.realtimeEnabled=!0,t.isRealTime=!0,t.friendlyName="Bulb Gauge",t.defaultDatasetType=d,t.placevaluesinside=0,t.hasgaugeoriginx=r,t.gaugeoriginx=r,t.hasgaugeoriginy=r,t.gaugeoriginy=r,t.hasgaugeradius=r,t.gaugeradius=r,t.valuepadding=2,t.showgaugeborder=0,t.showhovereffect=r,t.autoscale=1,t.skipCanvasDrawing=!0},a._spaceManager=function(){var e,a,o,r=this,i=r.config,l=r.getChildren("dataset")[0],n=l.config,c=r.config.is3D,u=r.getFromEnv("dataSource").chart,d=(0,s.pluckNumber)(u.showborder,c?0:1),h=i.minChartWidth,g=i.minChartHeight,p=i.borderWidth=d?(0,s.pluckNumber)(u.borderthickness,1):0;i.autoscale?n.scaleFactor=t._getScaleFactor(n.origW,n.origH,i.width,i.height):n.scaleFactor=1,i.canvasWidth-2*p<h&&(o=(i.canvasWidth-h)/2),i.canvasHeight-2*p<g&&(a=(i.canvasHeight-g)/2),r._allocateSpace({top:a||p,bottom:a||p,left:o||p,right:o||p}),r._allocateSpace(r._manageActionBarSpace&&r._manageActionBarSpace(.225*i.availableHeight)||{}),e=.7*i.canvasHeight,r._manageChartMenuBar(e),l._manageSpace&&r._allocateSpace(l._manageSpace(e))},a.allocatePosition=function(){var e,t=this.config,a=this.getDatasets()[0].config,o=t.canvasHeight,i=t.canvasWidth,l=t.canvasTop,n=t.canvasLeft,s=t.gaugeoriginx,c=t.gaugeoriginy,u=t.gaugeradius,d=t.hasgaugeoriginx,h=t.hasgaugeoriginy,g=t.hasgaugeradius;s=d!==r?s*a.scaleFactor:n+i/2,c=h!==r?c*a.scaleFactor:l+o/2,e=g!==r?u*a.scaleFactor:Math.min(i/2,o/2),t.gaugeStartX=s-e,t.gaugeEndX=s+e,t.gaugeStartY=c-e,t.gaugeEndY=c+e,t.gaugeCenterX=s,t.gaugeCenterY=c,t.gaugeRadius=e},a._getData=function(){var e,t,a=this.getChildren("dataset");if(a&&(t=a[0].components.data)&&t[0])return e=t[0].config,(0,s.pluckNumber)(e.setValue,e.itemValue)},a._postSpaceManagement=function(){this.allocateDimensionOfChartMenuBar()},a.getDSdef=function(){return n["default"]},t._getScaleFactor=function(e,t,a,o){var r=t,i=e;return r=(0,s.pluckNumber)(r,o),i=(0,s.pluckNumber)(i,a),r&&i?i/a==r/o?a/i:Math.min(a/i,o/r):1},t}(l["default"]);t["default"]=h},1486:(e,t,a)=>{var o=a(269);t.__esModule=!0,t["default"]=void 0;var r=o(a(288)),i=a(274),l=o(a(1487)),n=o(a(1493)),s=o(a(1484)),c=i.preDefStr.colors.FFFFFF,u=i.preDefStr.gaugeFillColorStr,d=i.preDefStr.gaugeBorderColorStr,h=function(e){return null!=e},g=function(e){function t(){var t;return(t=e.call(this)||this).defaultPaletteOptions=(0,i.extend2)((0,i.extend2)({},i.defaultGaugePaletteOptions),{gaugeBorderColor:["545454","60634E","415D6F","845001","68001B"],gaugeFillColor:["CCCCCC","ADB68F","E1F5FF","FDB548","FF7CA0"],periodColor:["EEEEEE","ECEEE6","E6ECF0","FFF4E6","FFF2F5"]},!1,!0),t.glasscolor=c,t.showRTvalue=!1,t.canvasPadding=!1,t.isHorizontal=!1,t.config.isAxisOpposite=!0,t.config.scalePosition="right",t.config.canBeScalePosition="left",t.hasCanvas=!0,t.drawPlotlines=!1,t.drawPlotBands=!1,t.isAxisReverse=!1,t.isRealTime=!0,t.registerFactory("dataset",s["default"],["vCanvas"]),t}(0,r["default"])(t,e),t.getName=function(){return"Cylinder"};var a=t.prototype;return a.getName=function(){return"Cylinder"},a.__setDefaultConfig=function(){e.prototype.__setDefaultConfig.call(this);var t=this.config;t.alignCaptionWithCanvas=1,t.defaultDatasetType="cylinder",t.hasLegend=!1,t.skipCanvasDrawing=!0},a._parseSpecialConfig=function(){var e,t=this,a=t.config,o=t.getFromEnv("dataSource").chart,r=t.getFromEnv("number-formatter"),l=t.getFromEnv("color-manager");a.use3DLighting=(0,i.pluckNumber)(o.use3dlighting,1),a.gaugeOriginX=(0,i.pluckNumber)(o.thmoriginx,o.cyloriginx,o.gaugeoriginx),a.gaugeOriginY=(0,i.pluckNumber)(o.thmoriginy,o.cyloriginy,o.gaugeoriginy),a.gaugeRadius=(0,i.pluckNumber)(r.getCleanValue((0,i.pluckNumber)(o.thmbulbradius,o.cylradius,o.gaugeradius),!0)),a.gaugeHeight=(0,i.pluckNumber)(r.getCleanValue((0,i.pluckNumber)(o.thmheight,o.cylheight,o.gaugeheight),!0)),a.origW=(0,i.pluckNumber)(o.origw),a.origH=(0,i.pluckNumber)(o.origh),a.xDefined=h(a.gaugeOriginX),a.yDefined=h(a.gaugeOriginY),a.rDefined=h(a.gaugeRadius),a.hDefined=h(a.gaugeHeight),a.gaugeFillColor=(0,i.pluck)(o.gaugefillcolor,o.cylfillcolor,l.getColor(u)),a.gaugeFillAlpha=(0,i.pluckNumber)(o.gaugefillalpha,o.cylfillalpha,i.HUNDREDSTRING),a.gaugeYScale=(0,i.pluckNumber)(o.cylyscale,o.gaugeyscale,30),(a.gaugeYScale>50||a.gaugeYScale<0)&&(a.gaugeYScale=30),a.gaugeYScale=a.gaugeYScale/100,a.showGaugeBorder=(0,i.pluckNumber)(o.showgaugeborder,1),e=a.showGaugeBorder?(0,i.pluckNumber)(o.gaugeborderalpha,40):0,a.gaugeBorderColor=(0,i.convertColor)((0,i.pluck)(o.gaugebordercolor,l.getColor(d)),e),a.gaugeBorderThickness=(0,i.pluckNumber)(o.gaugeborderthickness,1),a.gaugeContainerColor=(0,i.pluck)(o.cylglasscolor,(0,i.getLightColor)(a.gaugeFillColor,30))},a.getDSdef=function(){return n["default"]},a._getData=function(){var e=this.getChildren("dataset");if(e&&e[0])return e[0].config.value},t}(l["default"]);t["default"]=g},1559:(e,t,a)=>{var o=a(269);t.__esModule=!0,t["default"]=void 0;var r=o(a(288)),i=o(a(1560)),l=o(a(1561)),n=a(274),s=function(e){function t(){var t;return(t=e.call(this)||this).useSortedData=!0,t}(0,r["default"])(t,e),t.getName=function(){return"Funnel"};var a=t.prototype;return a.getName=function(){return"funnel"},a.__setDefaultConfig=function(){e.prototype.__setDefaultConfig.call(this);var t=this.config;t.friendlyName="Funnel Chart",t.defaultDatasetType="funnel",t.enablemousetracking=!0},a.configureAttributes=function(){e.prototype.configureAttributes.call(this);var t=this,a=t.getFromEnv("dataSource"),o=(0,n.pluckNumber)(a.chart.streamlineddata,1);t.config.PLOT_COLOR_INDEX_START=o?-1:0,t.config.alignLegendWithCanvas=0},a.getDSdef=function(){return l["default"]},t}(i["default"]);t["default"]=s},1555:(e,t,a)=>{var o=a(269);t.__esModule=!0,t["default"]=void 0;var r=o(a(288)),i=a(274),l=o(a(1487)),n=a(1511),s=o(a(1513)),c=o(a(1484)),u=o(a(421)),d=i.BLANK,h=i.preDefStr.POSITION_START,g=i.preDefStr.POSITION_END,p=i.preDefStr.POSITION_BOTTOM,f=i.preDefStr.POSITION_MIDDLE,m=Math,v=m.ceil,b=m.max,k="0,100",C="hbullet",x=function(e){function t(){var t;return(t=e.call(this)||this).defaultSeriesType=C,t.gaugeType=1,t.defaultCaptionPadding=5,t.rendererId=C,t.isHorizontal=!0,t.config.isAxisOpposite=!1,t.config.scalePosition=p,t.config.canBeScalePosition="top",t.rtManageSpace=!0,t.ticksOnRight=0,t.hasCanvas=!0,t.isAxisReverse=!1,t.defaultPaletteOptions={paletteColors:[["A6A6A6","CCCCCC","E1E1E1","F0F0F0"],["A7AA95","C4C6B7","DEDFD7","F2F2EE"],["04C2E3","66E7FD","9CEFFE","CEF8FF"],["FA9101","FEB654","FED7A0","FFEDD5"],["FF2B60","FF6C92","FFB9CB","FFE8EE"]],bgColor:["FFFFFF","CFD4BE,F3F5DD","C5DADD,EDFBFE","A86402,FDC16D","FF7CA0,FFD1DD"],bgAngle:[270,270,270,270,270],bgRatio:[k,k,k,k,k],bgAlpha:["100","60,50","40,20","20,10","30,30"],toolTipBgColor:["FFFFFF","FFFFFF","FFFFFF","FFFFFF","FFFFFF"],toolTipBorderColor:["545454","545454","415D6F","845001","68001B"],baseFontColor:["333333","60634E","025B6A","A15E01","68001B"],tickColor:["333333","60634E","025B6A","A15E01","68001B"],trendColor:["545454","60634E","415D6F","845001","68001B"],plotFillColor:["545454","60634E","415D6F","845001","68001B"],borderColor:["767575","545454","415D6F","845001","68001B"],borderAlpha:[50,50,50,50,50]},t.showRTvalue=!1,t.canvasPadding=!1,t.defaultPlotShadow=1,t.realtimeEnabled=!0,t.chartleftmargin=15,t.chartrightmargin=15,t.charttopmargin=10,t.chartbottommargin=10,t.showTooltip=0,t.connectTickMarks=0,t.drawPlotlines=!1,t.drawPlotBands=!1,t.isRealTime=!0,t.colorRange=!0,t.registerFactory("dataset",c["default"],["vCanvas"]),t}(0,r["default"])(t,e),t.getName=function(){return"Hbullet"};var a=t.prototype;return a.getName=function(){return"Hbullet"},a.__setDefaultConfig=function(){e.prototype.__setDefaultConfig.call(this);var t=this.config;t.friendlyName="Horizontal Bullet Gauge",t.defaultDatasetType="bullet",t.singleseries=!0,t.skipCanvasDrawing=!0},a._RTmanageSpace=function(){var e,t,a=this,o=a.config,r=a.getChildren("scale")[0];e=(t=a.getChildren("dataset")[0]._manageSpaceHorizontal(.7*o.oriCanvasWidth)).right-o.labelSpace.right,a._allocateSpace({right:e}),r.setAxisDimention({axisLength:o.canvasWidth}),o.labelSpace=t},a.configureAttributes=function(t){e.prototype.configureAttributes.call(this,t),n.configureAttributes.call(this)},a._getData=function(){return n._getData.call(this)},a._spaceManager=function(){var e,t,a,o,r,l=this,n=l.config,s=l.getChildren("canvas")[0],c=l.getChildren("dataset")[0],u=l.getChildren("scale")[0],d=l.config.is3D,h=l.getFromEnv("dataSource").chart,g=(0,i.pluckNumber)(h.showborder,d?0:1),p=n.minChartWidth,f=n.minChartHeight,m=n.borderWidth=g?(0,i.pluckNumber)(h.borderthickness,1):0;n.canvasWidth-2*m<p&&(r=(n.canvasWidth-p)/2),n.canvasHeight-2*m<f&&(o=(n.canvasHeight-f)/2),l._allocateSpace({top:o||m,bottom:o||m,left:r||m,right:r||m}),e=.7*n.canvasWidth,l._allocateSpace(u.placeAxis(n.availableHeight)),l._allocateSpace(l._manageActionBarSpace&&l._manageActionBarSpace(.225*n.availableHeight)||{}),n.oriCanvasWidth=n.canvasWidth,t=.225*n.canvasHeight,l._manageChartMenuBar(t),a=b(l.getChildren("subCaption")[0].config.width||0,l.getChildren("caption")[0].config.width||0),n.labelSpace=c._manageSpaceHorizontal(e-.7*a),c._manageSpace&&l._allocateSpace(n.labelSpace),n.oriCanvasWidth-=a,t=.325*n.canvasHeight,s.setDimension({top:n.canvasTop,left:n.canvasLeft,width:n.canvasWidth,height:n.canvasHeight})},a._manageCaptionSpacing=function(){var e,t,a,o,r,l=this,n=l.config,s=l.getChildren("caption")[0],c=l.getChildren("subCaption")[0],u=s.config,p=c.config,f=l.getFromEnv("dataSource").chart,m=l.getFromEnv("smartLabel"),b=(0,i.parseUnsafeString)(f.caption),k=(0,i.parseUnsafeString)(f.subcaption),C=(0,i.pluckNumber)(f.captionpadding,2),x=n.height,w=0,T=0,y=0,S=.3*n.width,A={};return.3*x>3&&(u.captionPadding=p.captionPadding=C,b!==d&&(o=u.style,w=u.captionLineHeight=v(parseFloat((0,i.pluck)(o.fontHeight,o.lineHeight),10),12)),k!==d&&(r=p.style,T=v(parseInt((0,i.pluck)(r.lineHeight,r.fontHeight),10),12)),(w>0||T>0)&&(m.useEllipsesOnOverflow(n.useEllipsesWhenOverflow),m.setStyle(o),(t=m.getSmartText(b,S,x)).width>0&&(t.width+=2,y=t.height),m.setStyle(r),(a=m.getSmartText(k,S,x-y)).width>0&&(a.width+=2),u.captionSubCaptionGap=t.height+0+.2*T,e=Math.max(t.width,a.width),u.text=t.text,u.height=y=t.height,u.width=t.width,u.tooltext&&(u.originalText=t.tooltext),p.text=a.text,p.height=y=a.height,p.width=a.width,p.tooltext&&(u.originalText=a.tooltext),(e=Math.max(t.width,a.width))>0&&(e+=C),u.maxCaptionWidth=p.maxCaptionWidth=e,u.isOnLeft?A.left=e:A.right=e)),u.isOnLeft?u.align=p.align=g:u.align=p.align=h,A},a._manageCaptionPosition=function(){var e=this,t=e.config,a=e.getChildren("caption")[0],o=e.getChildren("subCaption")[0],r=a.config,i=o.config,l=r.captionPosition,n=b(r.width,i.width),s=t.borderWidth||0,c=r.captionSubCaptionGap;switch(l){case f:r.y=.5*(t.canvasTop+t.canvasHeight);break;case p:r.y=t.canvasBottom-(r.height+i.height);break;default:r.y=t.canvasTop}i.y=r.y+c,r.isOnLeft?r.x=i.x=t.marginLeft+n+s:r.x=i.x=t.width-t.marginRight-n-s},a._feedAxesRawData=function(){var e=this,t=e.config,a=e.getFromEnv("color-manager"),o=e.getFromEnv("number-formatter"),r=e.getFromEnv("dataSource").chart,l=i.chartPaletteStr.chart2D,n=(0,i.pluckNumber)(r.ticksbelowgraph,!t.isAxisOpposite),s=(0,i.pluckNumber)((0,u["default"])(r.scaleposition,t.scalePosition)?t.isAxisOpposite:(0,u["default"])(r.scaleposition,t.canBeScalePosition)?!t.isAxisOpposite:undefined,!n),c=(0,i.pluckFontSizeMaintainUnit)(r.outcnvbasefontsize,r.basefontsize,10);return[{isVertical:!e.isHorizontal,isReverse:!1,isOpposit:s,outCanfontFamily:(0,i.pluck)(r.outcnvbasefont,r.basefont,"Verdana,sans"),outCanfontSize:this.computeFontSize(c),outCanfontSizeWithUnit:c,outCancolor:(0,i.pluck)(r.outcnvbasefontcolor,r.basefontcolor,a.getColor(l.baseFontColor)).replace(/^#?([a-f0-9]+)/gi,"#$1"),useEllipsesWhenOverflow:r.useellipseswhenoverflow,divLineColor:(0,i.pluck)(r.vdivlinecolor,a.getColor(l.divLineColor)),divLineAlpha:(0,i.pluck)(r.vdivlinealpha,a.getColor("divLineAlpha")),divLineThickness:(0,i.pluckNumber)(r.vdivlinethickness,1),divLineIsDashed:Boolean((0,i.pluckNumber)(r.vdivlinedashed,r.vdivlineisdashed,0)),divLineDashLen:(0,i.pluckNumber)(r.vdivlinedashlen,4),divLineDashGap:(0,i.pluckNumber)(r.vdivlinedashgap,2),showAlternateGridColor:(0,i.pluckNumber)(r.showalternatevgridcolor,0),alternateGridColor:(0,i.pluck)(r.alternatevgridcolor,a.getColor("altVGridColor")),alternateGridAlpha:(0,i.pluck)(r.alternatevgridalpha,a.getColor("altVGridAlpha")),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,axisName:r.xaxisname,axisMinValue:o.getCleanValue(r.lowerlimit),axisMaxValue:o.getCleanValue(r.upperlimit),setAdaptiveMin:r.setadaptivexmin,adjustDiv:r.adjusttm,labelDisplay:r.labeldisplay,showLabels:r.showlabels,rotateLabels:r.rotatelabels,slantLabel:(0,i.pluckNumber)(r.slantlabels,r.slantlabel),labelStep:(0,i.pluckNumber)(r.labelstep,r.xaxisvaluesstep),showAxisValues:(0,i.pluckNumber)(r.showxaxisvalues,r.showxaxisvalue),showDivLineValues:(0,i.pluckNumber)(r.showvdivlinevalues,r.showvdivlinevalues),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,i.pluckNumber)(r.showxaxisline,r.showaxislines,r.drawAxisLines,0),axisLineThickness:(0,i.pluckNumber)(r.xaxislinethickness,r.axislinethickness,1),axisLineAlpha:(0,i.pluckNumber)(r.xaxislinealpha,r.axislinealpha,100),axisLineColor:(0,i.pluck)(r.xaxislinecolor,r.axislinecolor,"#000000"),majorTMNumber:r.majortmnumber,majorTMColor:r.majortmcolor,majorTMAlpha:r.majortmalpha,majorTMHeight:r.majortmheight,tickValueStep:r.tickvaluestep,showTickMarks:r.showtickmarks,connectTickMarks:r.connecttickmarks,showTickValues:r.showtickvalues,majorTMThickness:r.majortmthickness,reverseScale:r.reversescale,showLimits:(0,i.pluckNumber)(r.showlimits,r.showtickmarks),minorTMNumber:(0,i.pluckNumber)(r.minortmnumber,0),minorTMColor:r.minortmcolor,minorTMAlpha:r.minortmalpha,minorTMHeight:(0,i.pluckNumber)(r.minortmheight,r.minortmwidth),minorTMThickness:r.minortmthickness,tickMarkDistance:(0,i.pluckNumber)(r.tickmarkdistance,r.tickmarkgap),tickValueDistance:(0,i.pluckNumber)(r.tickvaluedistance,r.displayvaluedistance),placeTicksInside:r.placeticksinside,placeValuesInside:r.placevaluesinside,upperLimitDisplay:r.upperlimitdisplay,lowerLimitDisplay:r.lowerlimitdisplay}]},a.getDSdef=function(){return s["default"]},a._fetchCaptionPos=function(){return this.getChildren("caption")[0].config.align===g?0:-1},t}(l["default"]);t["default"]=x},1509:(e,t,a)=>{var o=a(269);t.__esModule=!0,t["default"]=void 0;var r=o(a(288)),i=o(a(1510)),l=function(e){function t(){var t;return(t=e.call(this)||this).defaultSeriesType="led",t.defaultPlotShadow=1,t.realtimeEnabled=!0,t.chartleftmargin=15,t.chartrightmargin=15,t.charttopmargin=10,t.chartbottommargin=10,t.showTooltip=0,t.connectTickMarks=0,t.isHorizontal=!0,t.config.isAxisOpposite=!1,t.config.scalePosition="bottom",t.config.canBeScalePosition="top",t}(0,r["default"])(t,e),t.getName=function(){return"Hled"};var a=t.prototype;return a._feedAxesRawData=function(){var t=e.prototype._feedAxesRawData.call(this);return t[0].isReverse=!1,t},a.__setDefaultConfig=function(){e.prototype.__setDefaultConfig.call(this),this.config.friendlyName="Vertical LED Gauge"},a.getName=function(){return"Hled"},t}(i["default"]);t["default"]=l},1518:(e,t,a)=>{var o=a(269);t.__esModule=!0,t["default"]=void 0;var r=o(a(288)),i=a(274),l=o(a(1519)),n=o(a(1487)),s=o(a(1504)),c=a(1498),u=i.BLANK,d=function(e){function t(){var t;return(t=e.call(this)||this).showRTvalue=!1,t.canvasPadding=!1,t.isHorizontal=!0,t.config.isAxisOpposite=!1,t.config.scalePosition="bottom",t.config.canBeScalePosition="top",t.drawPlotlines=!1,t.drawPlotBands=!1,t.isAxisReverse=!1,t.minorTMNumber=4,t.isRealTime=!0,t.colorRange=!0,t.rtParserModify=!0,t.registerFactory("dataset",(function(e){var t=e.getFromEnv("dataSource").pointers;(0,i.datasetFactory)(e,s["default"],"dataset",1,[t])}),["vCanvas"]),t}(0,r["default"])(t,e),t.getName=function(){return"Hlineargauge"};var a=t.prototype;return a.getName=function(){return"Hlineargauge"},a.__setDefaultConfig=function(){e.prototype.__setDefaultConfig.call(this);var t=this.config;t.friendlyName="Horizontal Linear Gauge",t.hasLegend=!1,t.defaultDatasetType="hlineargauge",t.skipCanvasDrawing=!0},a.configure=function(t){e.prototype.configure.call(this,t);var a=this,o=a.getFromEnv("dataSource").colorrange;o&&o.color&&o.color.length?((0,i.componentFactory)(a,l["default"],"colorRange",1,[{colorRange:o,numberFormatter:a.getFromEnv("number-formatter")}]),a.addToEnv("colorRange",a.getChildren("colorRange")[0])):a.deleteFromEnv("colorRange")},a._configueTrendPoints=function(){var e,t,a,o,r,l=this,n=l.getFromEnv("dataSource"),s=l.config,c=s.style,d=n.trendpoints&&n.trendpoints.point,h=l.getFromEnv("scale").config,g=h.axisRange,p=g.max,f=g.min,m=h.scaleFactor||1,v=l.getFromEnv("color-manager"),b=s.trendPointConfig=[],k=n.chart,C=d.length;for(c.trendStyle={fontFamily:c.outCanfontFamily,color:c.outCancolor,fontSize:c.outCanfontSize},t=0;t<C;t++)e=d[t],r=(a=(0,i.pluckNumber)(e.startvalue,e.value))!==(o=(0,i.pluckNumber)(e.endvalue,a)),a<=p&&a>=f&&o<=p&&o>=f&&b.push({startValue:a,endValue:o,tooltext:(0,i.getValidValue)((0,i.parseUnsafeString)(e.markertooltext,!1)),displayValue:(0,i.getValidValue)((0,i.parseUnsafeString)(e.displayvalue),r?u:l.getFromEnv("number-formatter").scale(a)),showOnTop:(0,i.pluckNumber)(e.showontop,k.ticksbelowgauge,1),color:(0,i.pluck)(e.color,v.getColor("trendLightColor")),textColor:e.color,alpha:(0,i.pluckNumber)(e.alpha,99),thickness:(0,i.pluckNumber)(e.thickness,1),dashStyle:Number(e.dashed)?(0,i.getDashStyle)(e.dashlen||2,e.dashgap||2):i.BLANK,useMarker:(0,i.pluckNumber)(e.usemarker,0),markerColor:(0,i.convertColor)((0,i.pluck)(e.markercolor,e.color,v.getColor("trendLightColor")),100),markerBorderColor:(0,i.convertColor)((0,i.pluck)(e.markerbordercolor,e.bordercolor,v.getColor("trendDarkColor")),100),markerRadius:(0,i.pluckNumber)((0,i.pluckNumber)(e.markerradius)*m,5),markerToolText:(0,i.getFirstValue)(e.markertooltext),trendValueDistance:(0,i.pluckNumber)((0,i.pluckNumber)(e.trendvaluedistance)*m,g.tickInterval),isTrendZone:r});i.stableSort&&(0,i.stableSort)(s.trendPointConfig,(function(e,t){return e.startValue-t.startValue}))},a._getData=function(e,t){return c._getData.call(this,e,t)},a._setData=function(e,t){c._setData.call(this,e,t)},a._getDataForId=function(e,t){return c._getDataForId.call(this,e,t)},a._setDataForId=function(e,t){c._setDataForId.call(this,e,t)},t}(n["default"]);t["default"]=d},1567:(e,t,a)=>{var o=a(269);t.__esModule=!0,t["default"]=void 0;var r=o(a(288)),i=o(a(1560)),l=o(a(1568)),n=function(e){function t(){var t;return(t=e.call(this)||this).useSortedData=!1,t}(0,r["default"])(t,e),t.getName=function(){return"Pyramid"};var a=t.prototype;return a.getName=function(){return"Pyramid"},a.__setDefaultConfig=function(){e.prototype.__setDefaultConfig.call(this);var t=this.config;t.friendlyName="Funnel Chart",t.defaultDatasetType="pyramid"},a.configureAttributes=function(){e.prototype.configureAttributes.call(this),this.config.PLOT_COLOR_INDEX_START=0,this.alignLegendWithCanvas=0},a.getDSdef=function(){return l["default"]},t}(i["default"]);t["default"]=n},1571:(e,t,a)=>{var o=a(269);t.__esModule=!0,t["default"]=void 0;var r=o(a(288)),i=o(a(520)),l=o(a(629)),n=a(627),s=o(a(1572)),c=o(a(1573)),u=a(274),d=a(1454),h=o(a(299)),g=10;function p(e){var t=e,a=e.config,o=t.getChildren(c["default"].getType()),r=o?o.length:0,i=e.getFromEnv("dataSource");if(Array.isArray(i.data))if(i.data.length>r){for(var l=t.getChildren("plot"),n=0;n<r;n++)l[n].configure({startangle:a.startangle,endangle:a.endangle,barstartradius:a.barstartradius,barendradius:a.barendradius,barborder:a.barborder,barbordercolor:a.barbordercolor,barborderalpha:a.barborderalpha,barborderthickness:a.barborderthickness,color:a.plots[n].color,baralpha:a.plots[n].baralpha,legenditemalpha:a.plots[n].baralpha,legenditemcolor:a.plots[n].color,legenditembordercolor:a.barbordercolor,value:a.plots[n].value,dataValue:a.plots[n].dataValue,label:a.plots[n].label,iconurl:a.plots[n].iconurl,contexttext:a.plots[n].contextlabeltext,tooltext:a.plots[n].tooltext,plotHidden:a.plots[n].initiallyhidden,plotIndex:n});for(var s=0;s<i.data.length-r;s++){var u=new c["default"];t.attachChild(u,"plot").configure({startangle:a.startangle,endangle:a.endangle,barstartradius:a.barstartradius,barendradius:a.barendradius,barborder:a.barborder,barbordercolor:a.barbordercolor,barborderalpha:a.barborderalpha,barborderthickness:a.barborderthickness,color:a.plots[s].color,baralpha:a.plots[s].baralpha,legenditemalpha:a.plots[s].baralpha,legenditemcolor:a.plots[s].color,legenditembordercolor:a.barbordercolor,value:a.plots[s].value,dataValue:a.plots[s].dataValue,label:a.plots[s].label,iconurl:a.plots[s].iconurl,contexttext:a.plots[s].contextlabeltext,tooltext:a.plots[s].tooltext,plotHidden:a.plots[s].initiallyhidden,plotIndex:s})}}else if(i.data.length===r)for(var d=t.getChildren("plot"),h=0;h<r;h++)d[h].configure({startangle:a.startangle,endangle:a.endangle,barstartradius:a.barstartradius,barendradius:a.barendradius,barborder:a.barborder,barbordercolor:a.barbordercolor,barborderalpha:a.barborderalpha,barborderthickness:a.barborderthickness,color:a.plots[h].color,baralpha:a.plots[h].baralpha,legenditemalpha:a.plots[h].baralpha,legenditemcolor:a.plots[h].color,legenditembordercolor:a.barbordercolor,value:a.plots[h].value,dataValue:a.plots[h].dataValue,label:a.plots[h].label,iconurl:a.plots[h].iconurl,contexttext:a.plots[h].contextlabeltext,tooltext:a.plots[h].tooltext,plotHidden:a.plots[h].initiallyhidden,plotIndex:h});else{for(var g=t.getChildren("plot"),p=0;p<i.data.length;p++)g[p].configure({startangle:a.startangle,endangle:a.endangle,barstartradius:a.barstartradius,barendradius:a.barendradius,barborder:a.barborder,barbordercolor:a.barbordercolor,barborderalpha:a.barborderalpha,barborderthickness:a.barborderthickness,color:a.plots[p].color,baralpha:a.plots[p].baralpha,legenditemalpha:a.plots[p].baralpha,legenditemcolor:a.plots[p].color,legenditembordercolor:a.barbordercolor,value:a.plots[p].value,dataValue:a.plots[p].dataValue,label:a.plots[p].label,iconurl:a.plots[p].iconurl,contexttext:a.plots[p].contextlabeltext,tooltext:a.plots[p].tooltext,plotHidden:a.plots[p].initiallyhidden,plotIndex:p});for(var f=i.data.length;f<r;f++)g[f].remove()}else for(var m=t.getChildren("plot"),v=0;v<r;v++)m[v].remove()}function f(e){var t=e,a=e.config,o=t.getChildren(s["default"].getType()),r=o?o.length:0,i=e.getFromEnv("dataSource");if(Array.isArray(i.data))if(i.data.length>r){for(var l=t.getChildren("dataset"),n=0;n<r;n++)l[n].configure({startangle:a.startangle,endangle:a.endangle,trackpadding:a.trackpadding,trackmargin:a.trackmargin,trackstartradius:a.trackstartradius,trackendradius:a.trackendradius,trackfillcolor:a.tracks[n].trackfillcolor,trackalpha:a.tracks[n].trackalpha,trackborder:a.trackborder,trackbordercolor:a.trackbordercolor,trackborderalpha:a.trackborderalpha,trackborderthickness:a.trackborderthickness,numTicks:a.numticks,tickMarkLength:a.tickmarklength,tickvaluefontsizeWithUnit:a.tickvaluefontsizeWithUnit,showticks:a.showticks,showtickmarks:a.showtickmarks,showtickvalues:a.showtickvalues,tickmarkcolor:a.tickmarkcolor,tickmarkthickness:a.tickmarkthickness,tickalpha:a.tickalpha,tickvaluealpha:a.tickvaluealpha,tickvaluelabelfont:a.tickvaluelabelfont,tickvaluefontcolor:a.tickvaluefontcolor,baseFontColor:a.baseFontColor,tickvaluegap:8,label:a.tracks[n].label,iconurl:a.tracks[n].iconurl,labelFontColor:a.tracks[n].labelFontColor,value:a.tracks[n].value});for(var c=0;c<i.data.length-r;c++){var u=new s["default"];t.attachChild(u,"dataset").configure({startangle:a.startangle,endangle:a.endangle,trackpadding:a.trackpadding,trackmargin:a.trackmargin,trackstartradius:a.trackstartradius,trackendradius:a.trackendradius,trackfillcolor:a.tracks[c].trackfillcolor,trackalpha:a.tracks[c].trackalpha,trackborder:a.trackborder,trackbordercolor:a.trackbordercolor,trackborderalpha:a.trackborderalpha,trackborderthickness:a.trackborderthickness,numTicks:a.numticks,tickMarkLength:a.tickmarklength,tickvaluefontsizeWithUnit:a.tickvaluefontsizeWithUnit,showticks:a.showticks,showtickmarks:a.showtickmarks,showtickvalues:a.showtickvalues,tickmarkcolor:a.tickmarkcolor,tickmarkthickness:a.tickmarkthickness,tickalpha:a.tickalpha,tickvaluealpha:a.tickvaluealpha,tickvaluelabelfont:a.tickvaluelabelfont,tickvaluefontcolor:a.tickvaluefontcolor,baseFontColor:a.baseFontColor,tickvaluegap:8,label:a.tracks[c].label,iconurl:a.tracks[c].iconurl,labelFontColor:a.tracks[c].labelFontColor,value:a.tracks[c].value})}}else if(i.data.length===r)for(var d=t.getChildren("dataset"),h=0;h<r;h++)d[h].configure({startangle:a.startangle,endangle:a.endangle,trackpadding:a.trackpadding,trackmargin:a.trackmargin,trackstartradius:a.trackstartradius,trackendradius:a.trackendradius,trackfillcolor:a.tracks[h].trackfillcolor,trackalpha:a.tracks[h].trackalpha,trackborder:a.trackborder,trackbordercolor:a.trackbordercolor,trackborderalpha:a.trackborderalpha,trackborderthickness:a.trackborderthickness,numTicks:a.numticks,tickMarkLength:a.tickmarklength,tickvaluefontsizeWithUnit:a.tickvaluefontsizeWithUnit,showticks:a.showticks,showtickmarks:a.showtickmarks,showtickvalues:a.showtickvalues,tickmarkcolor:a.tickmarkcolor,tickmarkthickness:a.tickmarkthickness,tickalpha:a.tickalpha,tickvaluealpha:a.tickvaluealpha,tickvaluelabelfont:a.tickvaluelabelfont,tickvaluefontcolor:a.tickvaluefontcolor,baseFontColor:a.baseFontColor,tickvaluegap:8,label:a.tracks[h].label,iconurl:a.tracks[h].iconurl,labelFontColor:a.tracks[h].labelFontColor,value:a.tracks[h].value});else for(var g=t.getChildren("dataset"),p=i.data.length;p<r;p++)g[p].remove();else if(0===r){var f=new s["default"];t.attachChild(f,"dataset"),f.configure({startangle:a.startangle,endangle:a.endangle,trackpadding:a.trackpadding,trackmargin:a.trackmargin,trackstartradius:a.trackstartradius,trackendradius:a.trackendradius,trackfillcolor:a.tracks[0].trackfillcolor,trackalpha:a.tracks[0].trackalpha,trackborder:a.trackborder,trackbordercolor:a.trackbordercolor,trackborderalpha:a.trackborderalpha,trackborderthickness:a.trackborderthickness,numTicks:a.numticks,tickMarkLength:a.tickmarklength,tickvaluefontsizeWithUnit:a.tickvaluefontsizeWithUnit,showticks:a.showticks,showtickmarks:a.showtickmarks,showtickvalues:a.showtickvalues,tickmarkcolor:a.tickmarkcolor,tickmarkthickness:a.tickmarkthickness,tickalpha:a.tickalpha,tickvaluealpha:a.tickvaluealpha,tickvaluelabelfont:a.tickvaluelabelfont,tickvaluefontcolor:a.tickvaluefontcolor,baseFontColor:a.baseFontColor,tickvaluegap:8,label:a.tracks[0].label,iconurl:a.tracks[0].iconurl,labelFontColor:a.tracks[0].labelFontColor,value:a.tracks[0].value})}else for(var m=t.getChildren("dataset"),v=0;v<r-1;v++)0===v?o[v].configure({startangle:a.startangle,endangle:a.endangle,trackpadding:a.trackpadding,trackmargin:a.trackmargin,trackstartradius:a.trackstartradius,trackendradius:a.trackendradius,trackfillcolor:a.tracks[v].trackfillcolor,trackalpha:a.tracks[v].trackalpha,trackborder:a.trackborder,trackbordercolor:a.trackbordercolor,trackborderalpha:a.trackborderalpha,trackborderthickness:a.trackborderthickness,numTicks:a.numticks,tickMarkLength:a.tickmarklength,tickvaluefontsizeWithUnit:a.tickvaluefontsizeWithUnit,showticks:a.showticks,showtickmarks:a.showtickmarks,showtickvalues:a.showtickvalues,tickmarkcolor:a.tickmarkcolor,tickmarkthickness:a.tickmarkthickness,tickalpha:a.tickalpha,tickvaluealpha:a.tickvaluealpha,tickvaluelabelfont:a.tickvaluelabelfont,tickvaluefontcolor:a.tickvaluefontcolor,baseFontColor:a.baseFontColor,tickvaluegap:8,label:a.tracks[v].label,iconurl:a.tracks[v].iconurl,labelFontColor:a.tracks[v].labelFontColor,value:a.tracks[v].value}):m[v].remove()}var m=function(e){(0,r["default"])(a,e),a.getName=function(){return"RadialBar"};var t=a.prototype;function a(){var t;return(t=e.call(this)||this).deregisterFactory("canvas"),t.registerFactory("RadialTrack",f),t.registerFactory("RadialBarPlot",p,["legend"]),t.registerFactory("legend",l["default"]),t}return t.getName=function(){return"RadialBar"},a.getType=function(){return"chartAPI"},t.getType=function(){return"chartAPI"},t._checkInvalidData=function(){return!1},t._checkInvalidSpecificData=function(){return!this.getFromEnv("dataSource").data},t.__setDefaultConfig=function(){var e=this.config;e.innerradius=55,e.outerradius=77,e.startangle=90,e.endangle=180,e.trackpadding=0,e.trackmargin=6,e.trackstartradius="100%",e.trackendradius="100%",e.trackfillcolor="#cdcdcd",e.trackborder="none",e.trackbordercolor="#000000",e.trackborderalpha="100%",e.trackborderthickness=1,e.barstartradius="100%",e.barendradius="100%",e.barborder="none",e.barbordercolor="#000000",e.barborderalpha="100%",e.barborderthickness=1,e.plots=[{color:"#0000ff",baralpha:"100%",value:0}],e.tracks=[{trackfillcolor:"#cdcdcd",trackalpha:"40%"}],e.showticks=1,e.numticks="auto",e.showtickvalues=1,e.tickvaluelabelfont="Verdana,sans",e.tickvaluefontsize="10"+u.PXSTRING,e.tickvaluefontcolor="#000000",e.showtickmarks=1,e.tickmarkcolor="#000000",e.tickmarklength=5,e.tickmarkthickness=1,e.tickalpha="100%",e.showcontextlabel=0,e.defaultcontextlabel="",e.contextlabeltext="",e.contextlabelfont="Verdana,sans",e.contextlabelfontsize="10"+u.PXSTRING,e.contextlabelfontcolor="#000000",e.contextlabelalpha="100%",e.showlabels=0,e.usedataplotcolorforlabels=0,e.labeltext="$label, $datavalue",e.placevaluesinside=0,e.labelposition="start",e.labelpadding="6px 10px 6px 10px",e.showlabelicon=0,e.iconscale="100%",e.iconposition="end",e.interactivelegend=1,e.showtooltip=1,this.config.style={inCanvasStyle:{}},this.config.dataLabelStyle={}},t.configureAttributes=function(t){e.prototype.configureAttributes.call(this,t);var a,o,r,i=this.config,l=t.chart,n=l.trackfillcolor;if(i.innerradius=(0,u.pluck)(l.innerradius,i.innerradius),i.outerradius=(0,u.pluck)(l.outerradius,i.outerradius),i.interactivelegend=parseInt((0,u.pluck)(l.interactivelegend,i.interactivelegend,1),10),i.showLegend=parseInt(l.showlegend,10),i.startangle=(0,u.pluckNumber)(l.startangle,i.startangle),i.endangle=(0,u.pluckNumber)(l.endangle,i.endangle),i.startangle=i.startangle>=0&&i.startangle<=360?i.startangle:90,i.endangle=i.endangle>=0&&i.endangle<=360?i.endangle:180,i.trackpadding=(0,u.pluck)(l.trackpadding,i.trackpadding),i.trackmargin=(0,u.pluck)(l.trackmargin,i.trackmargin),i.trackstartradius=(0,u.pluck)(l.trackstartradius,i.trackstartradius),i.trackendradius=(0,u.pluck)(l.trackendradius,i.trackendradius),i.trackfillcolor=(0,u.pluck)(l.trackfillcolor,i.trackfillcolor),i.trackborder=(0,u.pluck)(l.trackborder,i.trackborder),i.trackbordercolor=(0,u.pluck)(l.trackbordercolor,i.trackbordercolor),i.trackborderalpha=parseInt((0,u.pluck)(l.trackborderalpha,i.trackborderalpha),10)/100,i.trackborderthickness=(0,u.pluck)(l.trackborderthickness,i.trackborderthickness),i.barstartradius=(0,u.pluck)(l.barstartradius,i.barstartradius),i.barendradius=(0,u.pluck)(l.barendradius,i.barendradius),i.barborder=(0,u.pluck)(l.barborder,i.barborder),i.barbordercolor=(0,u.pluck)(l.barbordercolor,i.barbordercolor),i.barborderalpha=parseInt((0,u.pluck)(l.barborderalpha,i.barborderalpha),10)/100,i.barborderthickness=(0,u.pluck)(l.barborderthickness,i.barborderthickness),-1===i.style.inCancolor.indexOf("#")&&(i.style.inCancolor="#"+i.style.inCancolor),i.baseFontColor=(0,u.pluck)(l.baseFontColor,i.style.inCancolor),a=(0,u.pluck)(l.numticks,i.numticks),i.numticks=isNaN(a)?"auto":a,i.tickmarklength=parseInt((0,u.pluck)(l.tickmarklength,i.tickmarklength),10),i.showticks=(0,u.pluck)(l.showticks,i.showticks),i.showtickmarks=(0,u.pluck)(l.showtickmarks,i.showtickmarks,i.showticks),i.showtickvalues=(0,u.pluck)(l.showtickvalues,i.showtickvalues,i.showticks),i.tickmarkcolor=(0,u.pluck)(l.tickmarkcolor,i.tickmarkcolor),i.tickmarkthickness=parseInt((0,u.pluck)(l.tickmarkthickness,i.tickmarkthickness),10),i.tickalpha=parseInt((0,u.pluck)(l.tickalpha,i.tickalpha),10)/100,i.tickvaluealpha=parseInt((0,u.pluck)(l.tickvaluealpha,l.tickalpha,"100%"),10)/100,i.tickvaluelabelfont=(0,u.pluck)(l.tickvaluelabelfont,i.style.inCanfontFamily),i.tickvaluefontcolor=(0,u.pluck)(l.tickvaluefontcolor,i.baseFontColor),i.tickvaluefontsizeWithUnit=(0,u.pluckFontSizeMaintainUnit)(l.tickvaluefontsize,i.style.inCanfontSizeWithUnit),i.tickvaluefontsize=this.computeFontSize(i.tickvaluefontsizeWithUnit),i.palettecolors=(0,u.pluck)(l.palettecolors,i.palettecolors),i.palettecolors&&(i.paletteColorsArray=i.palettecolors.trim().split(","),i.paletteColorsArray=i.paletteColorsArray.filter((function(e){return e}))),i.showcontextlabel=parseInt((0,u.pluck)(l.showcontextlabel,i.showcontextlabel),10),i.defaultcontextlabel=(0,u.parseUnsafeString)((0,u.pluck)(l.defaultcontextlabel,i.defaultcontextlabel)),i.contextlabeltext=(0,u.pluck)(l.contextlabeltext,i.contextlabeltext),i.contextlabelfont=(0,u.pluck)(l.contextlabelfont,i.style.inCanfontFamily),i.contextlabelfontsizewithunit=(0,u.pluckFontSizeMaintainUnit)(l.contextlabelfontsize,i.style.inCanfontSizeWithUnit),i.contextlabelfontsize=this.computeFontSize(i.contextlabelfontsizewithunit),i.contextlabelfontcolor=(0,u.pluck)(l.contextlabelfontcolor,i.baseFontColor),i.contextlabelalpha=parseInt((0,u.pluck)(l.contextlabelalpha,i.contextlabelalpha),10)/100,i.contexttext=l.contextlabeltext,i.showlabels=(0,u.pluckNumber)(l.showlabels,i.showlabels)||0,i.usedataplotcolorforlabels=(0,u.pluckNumber)(l.usedataplotcolorforlabels,i.usedataplotcolorforlabels)||0,i.labeltext=(0,u.pluck)(l.labeltext,i.labeltext),i.placevaluesinside=parseInt((0,u.pluckNumber)(l.placevaluesinside,i.placevaluesinside)||0,10),i.labelposition=(0,u.pluck)(l.labelposition,i.labelposition),i.labelpadding="6px "+(i.placevaluesinside?"10px":"15px"),i.labelpadding=(o=(0,u.pluck)(l.labelpadding,i.labelpadding),(r=o.split(" ").map((function(e){return parseInt(e,10)}))).every((function(e){return isNaN(e)}))?{top:6,right:10,bottom:6,left:10}:(1===r.length?(r.push(r[0]),r.push(r[0]),r.push(r[0])):2===r.length?(r.push(r[0]),r.push(r[1])):3===r.length&&r.push(r[1]),r.map((function(e,t){return isNaN(e)?0===t?6:1===t?r[t-1]:r[t-2]:e})),{top:r[0],right:r[1],bottom:r[2],left:r[3]})),i.showlabelicon=(0,u.pluckNumber)(l.showlabelicon,i.showlabelicon)||0,i.iconscale=(0,u.pluck)(l.iconscale,i.iconscale),i.iconposition=(0,u.pluck)(l.iconposition,i.iconposition),Array.isArray(t.data))for(var s=0;s<t.data.length;s++)i.tracks[s]={},i.tracks[s].trackfillcolor=n&&t.data[s].trackfillcolor?(0,u.pluck)(i.trackfillcolor,t.data[s].trackfillcolor):(0,u.pluck)(t.data[s].trackfillcolor,i.trackfillcolor),i.tracks[s].trackalpha=parseInt((0,u.pluck)(t.data[s].trackalpha,"40%"),10)/100,i.tracks[s].value=(0,u.pluckNumber)(t.data[s].value,0),i.tracks[s].label=(0,u.pluck)(t.data[s].label,""),i.tracks[s].iconurl=(0,u.pluck)(t.data[s].icon,""),i.tracks[s].labelFontColor=(0,u.pluck)(t.data[s].color,"#0000ff"),i.plots[s]={},i.plots[s].color=(0,u.pluck)(t.data[s].color,i.paletteColorsArray?i.paletteColorsArray[s]:"#0000ff"),i.plots[s].baralpha=parseInt((0,u.pluck)(t.data[s].baralpha,"100"),10)/100,i.plots[s].value=(0,u.pluckNumber)(parseInt(t.data[s].value,10),0),i.plots[s].iconurl=(0,u.pluck)(t.data[s].icon,""),i.plots[s].label=(0,u.pluck)(t.data[s].label,""),i.plots[s].contextlabeltext=(0,u.pluck)(t.data[s].contextlabeltext,i.contextlabeltext),i.plots[s].tooltext=(0,u.pluck)(t.data[s].tooltext,l.plottooltext),i.plots[s].initiallyhidden=i.interactivelegend?(0,u.pluckNumber)(t.data[s].initiallyhidden,0):0,i.plots[s].dataValue=i.plots[s].value+"%";i.rings=Array.isArray(t.data)&&t.data.length||1,this.addToEnv("chartConfig",this.config),this.createBaseComponent()},t._manageLegendSpace=function(){n._manageLegendSpace.call(this)},t.legendInteractivity=function(e){if(e.getFromEnv("chart-attrib").interactivelegend){var t,a,o=this.getChildren("plot"),r=this.getChildren("dataset"),i=e.getId();e.hasState("highlight")&&e.removeLegendState("highlight");for(var l=0;l<o.length;l++)t=o[l],a=r[l],t.config.legendItemId===i&&(t.config.plotHidden?(t.setData({baralpha:t.config.realBarAlpha,barborderalpha:t.config.realBarBorderAlpha},!0),this.drawLabel(a,t),e.removeLegendState("hidden"),t.config.plotHidden=!1):(t.config.realBarAlpha=t.config.realBarAlpha||t.config.baralpha,t.config.realBarBorderAlpha=t.config.realBarBorderAlpha||t.config.barborderalpha,t.setData({baralpha:0,barborderalpha:0},!0),t.label&&this.removeGraphicalElement(t.label),t.iconImage&&this.removeGraphicalElement(t.iconImage),t.plotIdentifier&&this.removeGraphicalElement(t.plotIdentifier),t.labelDiv&&(this.getFromEnv("chart-container").removeChild(t.labelDiv),delete t.labelDiv),e.setLegendState("hidden",!0),t.config.plotHidden=!0),e.getFromEnv("chart-attrib").interactivelegend=0)}},t._spaceManager=function(){var e,t,a,o,r,i=this,l=this.config,n=this.getFromEnv("dataSource").data,s=u.UNDEF,c=0;this.config.showLegend&&this._manageLegendSpace(),l.tickvaluefontsize=this.computeFontSize(l.tickvaluefontsizeWithUnit),l.availableHeight=this.getFromEnv("chartConfig").availableHeight,l.availableWidth=this.getFromEnv("chartConfig").availableWidth,e=l.availableHeight>l.availableWidth?l.availableWidth:l.availableHeight,l.outerradius=(0,u.convertToPixels)(l.outerradius,e/2),l.outerradius=l.outerradius<0?77:l.outerradius,l.innerradius=(0,u.convertToPixels)(l.innerradius,e/2),l.innerradius=l.innerradius<0?55:l.innerradius,l.trackstartradius=(0,u.convertToPixels)(l.trackstartradius,e/2),l.trackstartradius=l.trackstartradius>100?100:l.trackstartradius,l.trackendradius=(0,u.convertToPixels)(l.trackendradius,e/2),l.trackendradius=l.trackendradius>100?100:l.trackendradius,l.barstartradius=(0,u.convertToPixels)(l.barstartradius,e/2),l.barstartradius=l.barstartradius>100?100:l.barstartradius,l.barendradius=(0,u.convertToPixels)(l.barendradius,e/2),l.barendradius=l.barendradius>100?100:l.barendradius,l.trackmargin=(0,u.convertToPixels)(l.trackmargin,e/2),l.innerradius>=l.outerradius&&(l.innerradius=55,l.outerradius=77),t=2*(l.outerradius+(l.showticks?l.tickmarklength:0)+(l.showtickvalues?8+l.tickvaluefontsize:0)),(t-=((r=this._manageChartMenuBar(t<l.availableHeight?l.availableHeight-t:l.availableHeight/2)).top||0)+(r.bottom||0))>e&&(l.outerradius=e/2-(l.showticks?l.tickmarklength:0)-(l.showtickvalues?l.tickvaluefontsize:0)),(a=(l.outerradius-l.innerradius-(l.rings-1)*l.trackmargin)/l.rings)<0&&(l.trackmargin=0,a=(l.outerradius-l.innerradius)/l.rings),l.trackpadding=(0,u.convertToPixels)(l.trackpadding,a/2),l.trackpadding>a/2&&(l.trackpadding=0),(o=a-2*l.trackpadding)<0&&(o=(l.outerradius-l.innerradius)/l.rings),this.getChildren("dataset")&&this.getChildren("dataset").forEach((function(t,o){s=u.UNDEF,!n||Array.isArray(n)&&0===n.length?s=e:(l.tracks[c].thickness||(l.tracks[c].thickness=a),s=2*(l.innerradius+(c+1)*a+c*l.trackmargin)),t.setNodePath(s,a,l),c+=1,c%=l.rings,o===i.getChildren("dataset").length-1&&(t.config.isLast=!0)})),c=0,this.getChildren("plot")&&this.getChildren("plot").forEach((function(t){s=u.UNDEF,!n||Array.isArray(n)&&0===n.length?s=e:(l.plots[c].thickness||(l.plots[c].thickness=a),s=2*(l.innerradius+(c+1)*a+c*l.trackmargin)-2*l.trackpadding),t.setNodePath(s,o,l),c+=1,c%=l.rings}))},t._postSpaceManagement=function(){this.allocateDimensionOfChartMenuBar(),this.config.showLegend&&this.getChildren("legend")&&this.getChildren("legend")[0].postSpaceManager()},t.draw=function(){e.prototype.draw.call(this);var t=this,a=this.getFromEnv("animationManager"),o=this.getChildContainer("node-container"),r=this.getChildContainer("ticks-container");t.addChildContainer("node-container",a.setAnimation({el:o||"group",component:t,label:"node-container",id:"node-container",attr:{name:"node-container"},container:this.getChildContainer("plotGroup")})),t.addChildContainer("ticks-container",a.setAnimation({el:r||"group",component:t,label:"ticks-container",id:"ticks-container",attr:{name:"ticks-container"},container:this.getChildContainer("node-container")}));for(var i=0;i<this.config.plots.length&&i<this.config.tracks.length;i++){var l=this.getChildren("plot")[i];this.addExtEventListener("fc-mouseover",l._mouseOverHandler,l),this.addExtEventListener("fc-mouseout",l._mouseOutHandler,l),this.addExtEventListener("fc-click",l._mouseClickHandler,l)}this.config.defaultcontextlabel||(this.config.defaultcontextlabel=""),this.drawContextLabel(this.config.defaultcontextlabel)},t.drawLabel=function(e,t){var a,o,r,i,l,n,s=this.getFromEnv("chartConfig"),c=this.getFromEnv("animationManager"),u=this.getFromEnv("toolTipController"),p=this.getFromEnv("smartLabel"),f=this.config,m=s.canvasLeft,v=s.canvasTop,b=m+s.canvasWidth/2,k=v+s.canvasHeight/2,C=(0,d.changeAngleBase)(e.config.startingAngle),x=(0,d.changeAngleBase)(e.config.endingAngle),w=C===x?x-.1:x,T=e.config.thickness-f.labelpadding.top-f.labelpadding.bottom,y=f.usedataplotcolorforlabels?t.config.color:f.style.inCancolor,S=f.labeltext,A=S.toLowerCase().indexOf("$plotidentifier")>-1,F=this.config.showlabelicon;if(t.config.labelFontSize=T=T<5?e.config.thickness:T,(r=T*parseInt(f.iconscale,10)/100)>=Math.abs(f.innerradius-f.outerradius)&&(r=T),r=r<0?T:r,t.label&&this.removeGraphicalElement(t.label),t.iconImage&&this.removeGraphicalElement(t.iconImage),t.plotIdentifier&&this.removeGraphicalElement(t.plotIdentifier),t.labelDiv&&(this.getFromEnv("chart-container").removeChild(t.labelDiv),delete t.labelDiv),f.placevaluesinside){var N,E,L;if(f.showlabels&&0!==S.length||(f.iconposition="start"),A&&(S=S.toLowerCase().replace("$plotidentifier",""),l=t.getParsedText("$plotIdentifier",!1,T)),S=t.getParsedText(S,!1,T)||e.config.label,f.showlabelicon&&e.config.iconurl)if("end"!==f.iconposition)"end"===f.labelposition?(n=e.config.innerRadius+(e.config.thickness-r)/2,L="R"+((N=(0,d.normaliseAngle)(w)-e.config.paddingAngle)-180)+", "+(E=(0,d.pointOnCircleFromCenter)(b,k,n,N)).x+", "+E.y):(n=e.config.outerRadius-(e.config.thickness-r)/2,L="R"+(N=(0,d.normaliseAngle)(C)+e.config.paddingAngle)+", "+(E=(0,d.pointOnCircleFromCenter)(b,k,n,N)).x+", "+E.y),t.iconImage=c.setAnimation({el:"image",attr:{src:e.config.iconurl,x:E.x,y:E.y,width:r,height:r,transform:L},container:{id:"node-container",isParent:!0},component:this,label:"image"}),this.addGraphicalElement("iconImage",t.iconImage,!0);if(f.showlabels&&A){var D=document.createElement("div");D.innerHTML=h["default"].createHTML(l);var M,R,_,I=D.firstChild.firstElementChild||D.firstChild,V=I&&I.attributes,O={},P=this.getFromEnv("legend"),G=f.showLegend&&P.getItem(t.config.legendItemId),B=G&&G.getGraphicalElement(),H=B&&B.legendItemSymbol,W="end"!==f.iconposition?e.config.iconAngle:0,z=H&&H.node.getBBox(),j=1;if(z||(z={width:T}),T&&z&&T<z.height&&(j=T/z.height),"end"===f.labelposition?(n=e.config.innerRadius+(e.config.thickness-T)/2,_=(0,d.normaliseAngle)(w)-e.config.paddingAngle-W,R=(0,d.pointOnCircleFromCenter)(b,k,n,_),_-=180):(n=e.config.outerRadius-(e.config.thickness-T)/2,_=(0,d.normaliseAngle)(C)+e.config.paddingAngle+W,R=(0,d.pointOnCircleFromCenter)(b,k,n,_)),"path"===I.tagName){for(var U=0;U<V.length;U++)"d"===V[U].name?M=V[U].nodeValue:O[V[U].name]=V[U].nodeValue;O.path=M}else O.path="M0,0L"+T+",0,"+T+","+T+",0,"+T+"Z",O["stroke-width"]=.1,O.fill=t.config.realColor||t.config.color;O.transform="T"+R.x+", "+R.y+" R"+_+", "+R.x+", "+R.y+" S"+j,t.plotIdentifier=c.setAnimation({el:"path",attr:O,container:{id:"plot",isParent:!0},label:"plotIdentifier",component:this}),this.addGraphicalElement("plotIdentifier",t.plotIdentifier,!0)}if(f.showlabels&&S.length>0){var X=(0,d.findArc)(C,C===x?x-.1:x),K=2*Math.PI*e.config.innerRadius/360*X,Y={"font-family":f.style.inCanfontFamily,"font-size":T,"line-height":1.2*T};p.setStyle(Y),i={text:(a=p.getSmartText(S,K-f.labelpadding.left-f.labelpadding.right-(f.showlabelicon?r+15:0)-(A?T:0),1.2*T,!1)).text,x:e.config.path_d[1],y:e.config.path_d[2],fill:y,"font-family":f.style.inCanfontFamily,"font-size":T,"text-anchor":"start",textpath:{path:e.config.labelPath[f.labelposition][f.iconposition]}},t.label=c.setAnimation({el:"text",attr:i,container:{id:"plot",isParent:!0},label:"label",component:this}),this.addGraphicalElement("trackLabel",t.label,!0)}if(f.showlabelicon&&e.config.iconurl&&"end"===f.iconposition){var J,q,Z,$=t.label.node.getNumberOfChars()-1;"start"===f.labelposition?(n=e.config.outerRadius-(e.config.thickness-r)/2,Z="R"+(J=t.label.node.getRotationOfChar($)+e.config.iconAngle)+", "+(q=(0,d.pointOnCircleFromCenter)(b,k,n,J)).x+", "+q.y):(n=e.config.innerRadius+(e.config.thickness-r)/2,Z="R"+((J=t.label.node.getRotationOfChar($)-180-e.config.iconAngle)-180)+", "+(q=(0,d.pointOnCircleFromCenter)(b,k,n,J)).x+", "+q.y),t.iconImage=c.setAnimation({el:"image",attr:{src:e.config.iconurl,x:q.x,y:q.y,width:r,height:r,transform:Z},container:{id:"node-container",isParent:!0},component:this,label:"image"}),this.addGraphicalElement("iconImage",t.iconImage,!0)}}else if(C!==x){var Q,ee={},te={},ae={},oe=0;if("end"===f.labelposition){if(w>=0&&w<180||360===w)if("end"===f.iconposition){if(oe+=f.labelpadding.left,A&&f.showlabels){var re=document.createElement("div");re.innerHTML=h["default"].createHTML(t.getParsedText("$plotIdentifier"));var ie,le,ne=re.firstChild.firstElementChild||re.firstChild,se=ne&&ne.attributes,ce=this.getFromEnv("legend"),ue=f.showLegend&&ce.getItem(t.config.legendItemId),de=ue&&ue.getGraphicalElement(),he=de&&de.legendItemSymbol,ge=he&&he.node.getBBox(),pe=1;if(oe+=T/2,Q=Math.sqrt(Math.pow(e.config.outerRadius-e.config.thickness/2,2)+Math.pow(oe,2)),o=Math.atan(oe/e.config.outerRadius)*(180/Math.PI),le=(0,d.pointOnCircleFromCenter)(b,k,Q,(0,d.normaliseAngle)(w)+o),ge||(ge={width:T}),T&&ge&&T<ge.height&&(pe=T/ge.height),"path"===ne.tagName){for(var fe=0;fe<se.length;fe++)"d"===se[fe].name?ie=se[fe].nodeValue:ae[se[fe].name]=se[fe].nodeValue;ae.path=ie}else ae.path="M0,0L"+T+",0,"+T+","+T+",0,"+T+"Z",ae["stroke-width"]=.1,ae.fill=t.config.realColor||t.config.color;ae.transform="T"+(le.x-ge.width*pe/2)+", "+(le.y-ge.height*pe/2)+" R"+(w-90)+", "+le.x+", "+le.y+" S"+pe,this.addPlotIdentifier(ae,t),oe=oe+T+1}if(f.showlabels){n=e.config.outerRadius-(e.config.thickness-T)/2-T/2,Q=Math.sqrt(Math.pow(n,2)+Math.pow(oe,2)),o=Math.atan(oe/e.config.outerRadius)*(180/Math.PI),S=t.getParsedText(S.replace("$plotIdentifier","").replace("$plotidentifier",""));var me=(0,d.pointOnCircleFromCenter)(b,k,Q,(0,d.normaliseAngle)(w)+o),ve={"font-family":f.style.inCanfontFamily,"font-size":T,"line-height":1.2*T};p.setStyle(ve),a=p.getSmartText(S,f.outerradius,1.2*T,!1),te.x=me.x,te.y=me.y,te.fill=y,te["font-family"]=f.style.inCanfontFamily,te["font-size"]=T,te["text-anchor"]="start",te.transform="R"+(w-90)+", "+te.x+", "+te.y,te.text=a.text,oe+=this.addLabel(te,t)}F&&e.config.iconurl&&(oe+=g,Q=Math.sqrt(Math.pow(e.config.outerRadius+(e.config.thickness-T)/2,2)+Math.pow(oe,2)),o=Math.atan(oe/e.config.outerRadius)*(180/Math.PI),ee.iconCoords=(0,d.pointOnCircleFromCenter)(b,k,Q,(0,d.normaliseAngle)(w)+o),ee.transform="R"+(w-90)+", "+ee.iconCoords.x+", "+ee.iconCoords.y,ee.iconSize=T,this.addIcon(ee,t,e))}else{if(oe+=f.labelpadding.left,F&&(e.config.iconurl&&(Q=Math.sqrt(Math.pow(e.config.outerRadius+(e.config.thickness-T)/2,2)+Math.pow(oe,2)),o=Math.atan(oe/e.config.outerRadius)*(180/Math.PI),ee.iconCoords=(0,d.pointOnCircleFromCenter)(b,k,Q,(0,d.normaliseAngle)(w)+o),ee.transform="R"+(w-90)+", "+ee.iconCoords.x+", "+ee.iconCoords.y,ee.iconSize=T,this.addIcon(ee,t,e)),oe=oe+T+g),A&&f.showlabels){oe+=T/2;var be=document.createElement("div");be.innerHTML=h["default"].createHTML(t.getParsedText("$plotIdentifier"));var ke,Ce,xe=be.firstChild.firstElementChild||be.firstChild,we=xe&&xe.attributes,Te=this.getFromEnv("legend"),ye=f.showLegend&&Te.getItem(t.config.legendItemId),Se=ye&&ye.getGraphicalElement(),Ae=Se&&Se.legendItemSymbol,Fe=Ae&&Ae.node.getBBox(),Ne=1;if(Q=Math.sqrt(Math.pow(e.config.outerRadius-e.config.thickness/2,2)+Math.pow(oe,2)),o=Math.atan(oe/e.config.outerRadius)*(180/Math.PI),Ce=(0,d.pointOnCircleFromCenter)(b,k,Q,(0,d.normaliseAngle)(w)+o),Fe||(Fe={width:T}),T&&Fe&&T<Fe.height&&(Ne=T/Fe.height),"path"===xe.tagName){for(var Ee=0;Ee<we.length;Ee++)"d"===we[Ee].name?ke=we[Ee].nodeValue:ae[we[Ee].name]=we[Ee].nodeValue;ae.path=ke}else ae.path="M0,0L"+T+",0,"+T+","+T+",0,"+T+"Z",ae["stroke-width"]=.1,ae.fill=t.config.realColor||t.config.color;ae.transform="T"+(Ce.x-Fe.width*Ne/2)+", "+(Ce.y-Fe.height*Ne/2)+" R"+(w-90)+", "+Ce.x+", "+Ce.y+" S"+Ne,this.addPlotIdentifier(ae,t),oe+=T}if(f.showlabels){n=e.config.outerRadius-(e.config.thickness-T)/2-T/2,Q=Math.sqrt(Math.pow(n,2)+Math.pow(oe,2)),o=Math.atan(oe/n)*(180/Math.PI),S=t.getParsedText(S.replace("$plotIdentifier","").replace("$plotidentifier",""));var Le=(0,d.pointOnCircleFromCenter)(b,k,Q,(0,d.normaliseAngle)(w)+o),De={"font-family":f.style.inCanfontFamily,"font-size":T,"line-height":1.2*T};p.setStyle(De),a=p.getSmartText(S,f.outerradius,1.2*T,!1),te.x=Le.x,te.y=Le.y,te.fill=y,te["font-family"]=f.style.inCanfontFamily,te["font-size"]=T,te["text-anchor"]="start",te.transform="R"+(w-90)+", "+te.x+", "+te.y,te.text=a.text,this.addLabel(te,t)}}else if(w>=180&&w<360)if("end"===f.iconposition){if(oe-=f.labelpadding.right,F&&(oe-=T,e.config.iconurl&&(Q=Math.sqrt(Math.pow(e.config.innerRadius-(e.config.thickness-T)/2,2)+Math.pow(oe,2)),o=Math.atan(oe/e.config.innerRadius)*(180/Math.PI),ee.iconCoords=(0,d.pointOnCircleFromCenter)(b,k,Q,(0,d.normaliseAngle)(w)-o),ee.transform="R"+(w+90)+", "+ee.iconCoords.x+", "+ee.iconCoords.y,ee.iconSize=T,this.addIcon(ee,t,e)),oe-=g),f.showlabels){n=e.config.innerRadius+(e.config.thickness-T)/2+T/2,Q=Math.sqrt(Math.pow(n,2)+Math.pow(oe,2)),o=Math.atan(oe/n)*(180/Math.PI),S=t.getParsedText(S.replace("$plotIdentifier","").replace("$plotidentifier",""));var Me=(0,d.pointOnCircleFromCenter)(b,k,Q,(0,d.normaliseAngle)(w)-o),Re={"font-family":f.style.inCanfontFamily,"font-size":T,"line-height":1.2*T};p.setStyle(Re),a=p.getSmartText(S,f.outerradius,1.2*T,!1),te.x=Me.x,te.y=Me.y,te.fill=y,te["font-family"]=f.style.inCanfontFamily,te["font-size"]=T,te["text-anchor"]="end",te.transform="R"+(w+90)+", "+te.x+", "+te.y,te.text=a.text,oe=oe-this.addLabel(te,t)-T}if(A&&f.showlabels){var _e=document.createElement("div");_e.innerHTML=h["default"].createHTML(t.getParsedText("$plotIdentifier"));var Ie,Ve,Oe=_e.firstChild.firstElementChild||_e.firstChild,Pe=Oe&&Oe.attributes,Ge=this.getFromEnv("legend"),Be=f.showLegend&&Ge.getItem(t.config.legendItemId),He=Be&&Be.getGraphicalElement(),We=He&&He.legendItemSymbol,ze=We&&We.node.getBBox(),je=1;if(Q=Math.sqrt(Math.pow(e.config.innerRadius+e.config.thickness/2,2)+Math.pow(oe,2)),o=Math.atan(oe/e.config.innerRadius)*(180/Math.PI),Ve=(0,d.pointOnCircleFromCenter)(b,k,Q,(0,d.normaliseAngle)(w)-o),ze||(ze={width:T}),T&&ze&&T<ze.height&&(je=T/ze.height),"path"===Oe.tagName){for(var Ue=0;Ue<Pe.length;Ue++)"d"===Pe[Ue].name?Ie=Pe[Ue].nodeValue:ae[Pe[Ue].name]=Pe[Ue].nodeValue;ae.path=Ie}else ae.path="M0,0L"+T+",0,"+T+","+T+",0,"+T+"Z",ae["stroke-width"]=.1,ae.fill=t.config.realColor||t.config.color;ae.transform="T"+(Ve.x-ze.width*je/2)+", "+(Ve.y-ze.height*je/2)+" R"+(w+90)+", "+Ve.x+", "+Ve.y+" S"+je,this.addPlotIdentifier(ae,t)}}else{if(oe-=f.labelpadding.right,f.showlabels){n=e.config.innerRadius+(e.config.thickness-T)/2+T/2,Q=Math.sqrt(Math.pow(n,2)+Math.pow(oe,2)),o=Math.atan(oe/n)*(180/Math.PI),S=t.getParsedText(S.replace("$plotIdentifier","").replace("$plotidentifier",""));var Xe=(0,d.pointOnCircleFromCenter)(b,k,Q,(0,d.normaliseAngle)(w)-o),Ke={"font-family":f.style.inCanfontFamily,"font-size":T,"line-height":1.2*T};p.setStyle(Ke),a=p.getSmartText(S,f.outerradius,1.2*T,!1),te.x=Xe.x,te.y=Xe.y,te.fill=y,te["font-family"]=f.style.inCanfontFamily,te["font-size"]=T,te["text-anchor"]="end",te.transform="R"+(w+90)+", "+te.x+", "+te.y,te.text=a.text,oe=oe-this.addLabel(te,t)-T}if(A&&f.showlabels){var Ye=document.createElement("div");Ye.innerHTML=h["default"].createHTML(t.getParsedText("$plotIdentifier"));var Je,qe,Ze=Ye.firstChild.firstElementChild||Ye.firstChild,$e=Ze&&Ze.attributes,Qe=this.getFromEnv("legend"),et=f.showLegend&&Qe.getItem(t.config.legendItemId),tt=et&&et.getGraphicalElement(),at=tt&&tt.legendItemSymbol,ot=at&&at.node.getBBox(),rt=1;if(Q=Math.sqrt(Math.pow(e.config.innerRadius+e.config.thickness/2,2)+Math.pow(oe,2)),o=Math.atan(oe/e.config.innerRadius)*(180/Math.PI),qe=(0,d.pointOnCircleFromCenter)(b,k,Q,(0,d.normaliseAngle)(w)-o),ot||(ot={width:T}),T&&ot&&T<ot.height&&(rt=T/ot.height),"path"===Ze.tagName){for(var it=0;it<$e.length;it++)"d"===$e[it].name?Je=$e[it].nodeValue:ae[$e[it].name]=$e[it].nodeValue;ae.path=Je}else ae.path="M0,0L"+T+",0,"+T+","+T+",0,"+T+"Z",ae["stroke-width"]=.1,ae.fill=t.config.realColor||t.config.color;ae.transform="T"+(qe.x-ot.width*rt/2)+", "+(qe.y-ot.height*rt/2)+" R"+(w+90)+", "+qe.x+", "+qe.y+" S"+rt,this.addPlotIdentifier(ae,t),oe-=T}F&&e.config.iconurl&&(oe-=g,Q=Math.sqrt(Math.pow(e.config.innerRadius-(e.config.thickness-T)/2,2)+Math.pow(oe,2)),o=Math.atan(oe/e.config.innerRadius)*(180/Math.PI),ee.iconCoords=(0,d.pointOnCircleFromCenter)(b,k,Q,(0,d.normaliseAngle)(w)-o),ee.transform="R"+(w+90)+", "+ee.iconCoords.x+", "+ee.iconCoords.y,ee.iconSize=T,this.addIcon(ee,t,e))}}else if(C>=0&&C<180||360===C)if("end"===f.iconposition){if(oe+=f.labelpadding.right,F&&(oe+=T,e.config.iconurl&&(Q=Math.sqrt(Math.pow(e.config.outerRadius-(e.config.thickness-T)/2,2)+Math.pow(oe,2)),o=Math.atan(oe/e.config.outerRadius)*(180/Math.PI),ee.iconCoords=(0,d.pointOnCircleFromCenter)(b,k,Q,(0,d.normaliseAngle)(C)-o),ee.transform="R"+(C-90)+", "+ee.iconCoords.x+", "+ee.iconCoords.y,ee.iconSize=T,this.addIcon(ee,t,e)),oe+=g),A&&f.showlabels){var lt=document.createElement("div");lt.innerHTML=h["default"].createHTML(t.getParsedText("$plotIdentifier"));var nt,st,ct=lt.firstChild.firstElementChild||lt.firstChild,ut=ct&&ct.attributes,dt=this.getFromEnv("legend"),ht=f.showLegend&&dt.getItem(t.config.legendItemId),gt=ht&&ht.getGraphicalElement(),pt=gt&>.legendItemSymbol,ft=pt&&pt.node.getBBox(),mt=1;if(Q=Math.sqrt(Math.pow(e.config.outerRadius-e.config.thickness/2,2)+Math.pow(oe,2)),o=Math.atan(oe/e.config.outerRadius)*(180/Math.PI),st=(0,d.pointOnCircleFromCenter)(b,k,Q,(0,d.normaliseAngle)(C)-o),ft||(ft={width:T}),T&&ft&&T<ft.height&&(mt=T/ft.height),"path"===ct.tagName){for(var vt=0;vt<ut.length;vt++)"d"===ut[vt].name?nt=ut[vt].nodeValue:ae[ut[vt].name]=ut[vt].nodeValue;ae.path=nt}else ae.path="M0,0L"+T+",0,"+T+","+T+",0,"+T+"Z",ae["stroke-width"]=.1,ae.fill=t.config.realColor||t.config.color;ae.transform="T"+(st.x-ft.width*mt/2)+", "+(st.y-ft.height*mt/2)+" R"+(C-90)+", "+st.x+", "+st.y+" S"+mt,this.addPlotIdentifier(ae,t),oe+=T}if(f.showlabels){n=e.config.outerRadius-(e.config.thickness-T)/2-T/2,Q=Math.sqrt(Math.pow(n,2)+Math.pow(oe,2)),o=Math.atan(oe/n)*(180/Math.PI),S=t.getParsedText(S.replace("$plotIdentifier","").replace("$plotidentifier",""));var bt=(0,d.pointOnCircleFromCenter)(b,k,Q,(0,d.normaliseAngle)(C)-o),kt={"font-family":f.style.inCanfontFamily,"font-size":T,"line-height":1.2*T};p.setStyle(kt),a=p.getSmartText(S,f.outerradius,1.2*T,!1),te.x=bt.x,te.y=bt.y,te.fill=y,te["font-family"]=f.style.inCanfontFamily,te["font-size"]=T,te["text-anchor"]="end",te.transform="R"+(C-90)+", "+te.x+", "+te.y,te.text=a.text,this.addLabel(te,t)}}else{if(f.showlabels){oe+=f.labelpadding.right,n=e.config.outerRadius-(e.config.thickness-T)/2-T/2,Q=Math.sqrt(Math.pow(n,2)+Math.pow(oe,2)),o=Math.atan(oe/n)*(180/Math.PI),S=t.getParsedText(S.replace("$plotIdentifier","").replace("$plotidentifier",""));var Ct=(0,d.pointOnCircleFromCenter)(b,k,Q,(0,d.normaliseAngle)(C)-o),xt={"font-family":f.style.inCanfontFamily,"font-size":T,"line-height":1.2*T};p.setStyle(xt),a=p.getSmartText(S,f.outerradius,1.2*T,!1),te.x=Ct.x,te.y=Ct.y,te.fill=y,te["font-family"]=f.style.inCanfontFamily,te["font-size"]=T,te["text-anchor"]="end",te.transform="R"+(C-90)+", "+te.x+", "+te.y,te.text=a.text,oe+=this.addLabel(te,t)}if(A&&f.showlabels){oe+=T;var wt=document.createElement("div");wt.innerHTML=h["default"].createHTML(t.getParsedText("$plotIdentifier"));var Tt,yt,St=wt.firstChild.firstElementChild||wt.firstChild,At=St&&St.attributes,Ft=this.getFromEnv("legend"),Nt=f.showLegend&&Ft.getItem(t.config.legendItemId),Et=Nt&&Nt.getGraphicalElement(),Lt=Et&&Et.legendItemSymbol,Dt=Lt&&Lt.node.getBBox(),Mt=1;if(Q=Math.sqrt(Math.pow(e.config.outerRadius-e.config.thickness/2,2)+Math.pow(oe,2)),o=Math.atan(oe/e.config.outerRadius)*(180/Math.PI),yt=(0,d.pointOnCircleFromCenter)(b,k,Q,(0,d.normaliseAngle)(C)-o),Dt||(Dt={width:T}),T&&Dt&&T<Dt.height&&(Mt=T/Dt.height),"path"===St.tagName){for(var Rt=0;Rt<At.length;Rt++)"d"===At[Rt].name?Tt=At[Rt].nodeValue:ae[At[Rt].name]=At[Rt].nodeValue;ae.path=Tt}else ae.path="M0,0L"+T+",0,"+T+","+T+",0,"+T+"Z",ae["stroke-width"]=.1,ae.fill=t.config.realColor||t.config.color;ae.transform="T"+(yt.x-Dt.width*Mt/2)+", "+(yt.y-Dt.height*Mt/2)+" R"+(C-90)+", "+yt.x+", "+yt.y+" S"+Mt,this.addPlotIdentifier(ae,t),oe+=T}F&&e.config.iconurl&&(oe=oe+T+g,Q=Math.sqrt(Math.pow(e.config.outerRadius-(e.config.thickness-T)/2,2)+Math.pow(oe,2)),o=Math.atan(oe/e.config.outerRadius)*(180/Math.PI),ee.iconCoords=(0,d.pointOnCircleFromCenter)(b,k,Q,(0,d.normaliseAngle)(C)-o),ee.transform="R"+(C-90)+", "+ee.iconCoords.x+", "+ee.iconCoords.y,ee.iconSize=T,this.addIcon(ee,t,e))}else if(C>=180&&C<360)if("end"===f.iconposition){if(oe-=f.labelpadding.left,A&&f.showlabels){var _t=document.createElement("div");_t.innerHTML=h["default"].createHTML(t.getParsedText("$plotIdentifier"));var It,Vt,Ot=_t.firstChild.firstElementChild||_t.firstChild,Pt=Ot&&Ot.attributes,Gt=this.getFromEnv("legend"),Bt=f.showLegend&&Gt.getItem(t.config.legendItemId),Ht=Bt&&Bt.getGraphicalElement(),Wt=Ht&&Ht.legendItemSymbol,zt=Wt&&Wt.node.getBBox(),jt=1;if(Q=Math.sqrt(Math.pow(e.config.innerRadius+e.config.thickness/2,2)+Math.pow(oe,2)),o=Math.atan(oe/e.config.innerRadius)*(180/Math.PI),Vt=(0,d.pointOnCircleFromCenter)(b,k,Q,(0,d.normaliseAngle)(C)+o),zt||(zt={width:T}),T&&zt&&T<zt.height&&(jt=T/zt.height),"path"===Ot.tagName){for(var Ut=0;Ut<Pt.length;Ut++)"d"===Pt[Ut].name?It=Pt[Ut].nodeValue:ae[Pt[Ut].name]=Pt[Ut].nodeValue;ae.path=It}else ae.path="M0,0L"+T+",0,"+T+","+T+",0,"+T+"Z",ae["stroke-width"]=.1,ae.fill=t.config.realColor||t.config.color;ae.transform="T"+(Vt.x-zt.width*jt/2)+", "+(Vt.y-zt.height*jt/2)+" R"+(C+90)+", "+Vt.x+", "+Vt.y+" S"+jt,this.addPlotIdentifier(ae,t),oe-=T}if(f.showlabels){n=e.config.innerRadius+(e.config.thickness-T)/2+T/2,Q=Math.sqrt(Math.pow(n,2)+Math.pow(oe,2)),o=Math.atan(oe/e.config.innerRadius)*(180/Math.PI),S=t.getParsedText(S.replace("$plotIdentifier","").replace("$plotidentifier",""));var Xt=(0,d.pointOnCircleFromCenter)(b,k,Q,(0,d.normaliseAngle)(C)+o),Kt={"font-family":f.style.inCanfontFamily,"font-size":T,"line-height":1.2*T};p.setStyle(Kt),a=p.getSmartText(S,f.outerradius,1.2*T,!1),te.x=Xt.x,te.y=Xt.y,te.fill=y,te["font-family"]=f.style.inCanfontFamily,te["font-size"]=T,te["text-anchor"]="start",te.transform="R"+(C+90)+", "+te.x+", "+te.y,te.text=a.text,oe-=this.addLabel(te,t)}F&&e.config.iconurl&&(oe-=g,Q=Math.sqrt(Math.pow(e.config.innerRadius+(e.config.thickness-T)/2,2)+Math.pow(oe,2)),o=Math.atan(oe/e.config.innerRadius)*(180/Math.PI),ee.iconCoords=(0,d.pointOnCircleFromCenter)(b,k,Q,(0,d.normaliseAngle)(C)+o),ee.transform="R"+(C+90)+", "+ee.iconCoords.x+", "+ee.iconCoords.y,ee.iconSize=T,this.addIcon(ee,t,e))}else{if(oe-=f.labelpadding.left,F&&(e.config.iconurl&&(Q=Math.sqrt(Math.pow(e.config.innerRadius+(e.config.thickness-T)/2,2)+Math.pow(oe,2)),o=Math.atan(oe/e.config.innerRadius)*(180/Math.PI),ee.iconCoords=(0,d.pointOnCircleFromCenter)(b,k,Q,(0,d.normaliseAngle)(C)+o),ee.transform="R"+(C+90)+", "+ee.iconCoords.x+", "+ee.iconCoords.y,ee.iconSize=T,this.addIcon(ee,t,e)),oe=oe-T-g),A&&f.showlabels){var Yt=document.createElement("div");Yt.innerHTML=h["default"].createHTML(t.getParsedText("$plotIdentifier"));var Jt,qt,Zt=Yt.firstChild.firstElementChild||Yt.firstChild,$t=Zt&&Zt.attributes,Qt=this.getFromEnv("legend"),ea=f.showLegend&&Qt.getItem(t.config.legendItemId),ta=ea&&ea.getGraphicalElement(),aa=ta&&ta.legendItemSymbol,oa=aa&&aa.node.getBBox(),ra=1;if(Q=Math.sqrt(Math.pow(e.config.innerRadius+e.config.thickness/2,2)+Math.pow(oe,2)),o=Math.atan(oe/e.config.innerRadius)*(180/Math.PI),qt=(0,d.pointOnCircleFromCenter)(b,k,Q,(0,d.normaliseAngle)(C)+o),oa||(oa={width:T}),T&&oa&&T<oa.height&&(ra=T/oa.height),"path"===Zt.tagName){for(var ia=0;ia<$t.length;ia++)"d"===$t[ia].name?Jt=$t[ia].nodeValue:ae[$t[ia].name]=$t[ia].nodeValue;ae.path=Jt}else ae.path="M0,0L"+T+",0,"+T+","+T+",0,"+T+"Z",ae["stroke-width"]=.1,ae.fill=t.config.realColor||t.config.color;ae.transform="T"+(qt.x-oa.width*ra/2)+", "+(qt.y-oa.height*ra/2)+" R"+(C+90)+", "+qt.x+", "+qt.y+" S"+ra,this.addPlotIdentifier(ae,t),oe=oe-T-1}if(f.showlabels){n=e.config.innerRadius+(e.config.thickness-T)/2+T/2,Q=Math.sqrt(Math.pow(n,2)+Math.pow(oe,2)),o=Math.atan(oe/n)*(180/Math.PI),S=t.getParsedText(S.replace("$plotIdentifier","").replace("$plotidentifier",""));var la=(0,d.pointOnCircleFromCenter)(b,k,Q,(0,d.normaliseAngle)(C)+o),na={"font-family":f.style.inCanfontFamily,"font-size":T,"line-height":1.2*T};p.setStyle(na),a=p.getSmartText(S,f.outerradius,1.2*T,!1),te.x=la.x,te.y=la.y,te.fill=y,te["font-family"]=f.style.inCanfontFamily,te["font-size"]=T,te["text-anchor"]="start",te.transform="R"+(C+90)+", "+te.x+", "+te.y,te.text=a.text,this.addLabel(te,t)}}}a&&(f.showToolTip&&a.oriText!==a.text?u.enableToolTip(t.label,a.oriText):u.disableToolTip(t.label))},t.addIcon=function(e,t,a){var o=this.getFromEnv("animationManager");t.iconImage=o.setAnimation({el:"image",attr:{src:a.config.iconurl,x:e.iconCoords.x,y:e.iconCoords.y,width:e.iconSize,height:e.iconSize,transform:e.transform},container:{id:"node-container",isParent:!0},component:this,label:"image"}),this.addGraphicalElement("iconImage",t.iconImage,!0)},t.addPlotIdentifier=function(e,t){var a=this.getFromEnv("animationManager");t.plotIdentifier=a.setAnimation({el:"path",attr:e,container:{id:"plot",isParent:!0},label:"plotIdentifier",component:this}),this.addGraphicalElement("plotIdentifier",t.plotIdentifier,!0)},t.addLabel=function(e,t){var a=this.getFromEnv("animationManager");return t.label=a.setAnimation({el:"text",attr:e,container:{id:"plot",isParent:!0},label:"label",component:this}),this.addGraphicalElement("trackLabel",t.label,!0),t.label.node.getBBox().width},t.drawContextLabel=function(e,t){if(this.config.showcontextlabel){var a,o,r,i=this.getFromEnv("chartConfig"),l=this.getFromEnv("smartLabel"),n=this.getFromEnv("animationManager"),s=this.config,c=i.canvasLeft,d=i.canvasTop,g=c+i.canvasWidth/2,p=d+i.canvasHeight/2,f=2*s.innerradius,m=this.computeFontSize(s.contextlabelfontsizewithunit),v=Math.sqrt(2)*s.innerradius;if(s.contextlabelObject&&this.removeGraphicalElement(s.contextlabelObject),t)s.div||(s.div=document.createElement("div"),s.span=document.createElement("span"),s.div.style="",s.span.style=""),a=s.div.style,o=s.span.style,a.color=s.contextlabelfontcolor,a.fontSize=m+u.PXSTRING,a.overflow="hidden",a["text-overflow"]="ellipsis",a["word-break"]="break-all",a["text-align"]="center",a["font-family"]=s.contextlabelfont,a.opacity=s.contextlabelalpha,a.top=p-v/2+u.PXSTRING,a.left=g-v/2+u.PXSTRING,a.visibility="visible",a.position="absolute",a.width=v+u.PXSTRING,a.height=v+u.PXSTRING,o["margin-top"]="auto",o["margin-bottom"]="auto",o.display="flex",o["flex-direction"]="row",o["justify-content"]="center",o["flex-wrap"]="wrap",o["align-items"]="flex-start",s.div.id="contextlabeldiv",s.span.innerHTML=h["default"].createHTML(e),s.div.appendChild(s.span),this.getFromEnv("chart-container").appendChild(s.div);else{this.getFromEnv("chart-container").querySelector("#contextlabeldiv")&&this.getFromEnv("chart-container").removeChild(s.div);var b={"font-family":s.style.inCanfontFamily,"font-size":m,"line-height":1.2*m};l.setStyle(b),r={text:l.getSmartText(e,f-10,f-10,!1).text,x:g,y:p,fill:s.contextlabelfontcolor,"font-family":s.contextlabelfont,"font-size":m+u.PXSTRING,"fill-opacity":s.contextlabelalpha},s.contextlabelObject=n.setAnimation({el:"text",attr:r,container:{id:"plot",isParent:!0},label:"label",component:this}),this.addGraphicalElement("contentLabel",s.contextlabelObject,!0)}}},a}(i["default"]);t["default"]=m},1538:(e,t,a)=>{var o=a(269);t.__esModule=!0,t["default"]=void 0;var r=o(a(288)),i=a(740),l=o(a(1539)),n=o(a(1543)),s=function(e){function t(){var t;return(t=e.call(this)||this).axisPaddingLeft=0,t.axisPaddingRight=0,t}(0,r["default"])(t,e),t.getName=function(){return"RealtimeArea"};var a=t.prototype;return a.getName=function(){return"RealtimeArea"},a.__setDefaultConfig=function(){e.prototype.__setDefaultConfig.call(this),i._setDefaultConfig.call(this);var t=this.config;t.defaultDatasetType="realtimearea",t.enablemousetracking=!0},a.getDSdef=function(){return n["default"]},a.getDSGroupdef=function(){},t}(l["default"]);t["default"]=s},1542:(e,t)=>{t.__esModule=!0,t["default"]=void 0;t["default"]={"initial.chartAPI.RealtimeColumn":function(){return{"*":null}}}},1539:(e,t,a)=>{var o=a(269);t.__esModule=!0,t["default"]=void 0;var r,i=o(a(292)),l=o(a(288)),n=o(a(626)),s=a(274),c=o(a(1540)),u=o(a(689)),d=o(a(342)),h=o(a(380)),g=o(a(272)),p=a(282),f=o(a(1542)),m=a(1480),v=o(a(1344)),b=a(286),k=o(a(1481)),C=s.preDefStr.visibleStr;function x(e,t,a){var o=s.BLANKSTRING;(e&&e.toString||e===s.BLANKSTRING||0===e)&&(o="value="+e.toString()),(t&&t.toString||t===s.BLANKSTRING)&&(o=o+"&label="+t.toString()),(a&&a.toString||a===s.BLANKSTRING)&&(o=o+"&id="+a.toString()),o&&this.feedData(o)}(0,p.addDep)({name:"realtimeColumnChartAnimation",type:"animationRule",extension:f["default"]}),g["default"].addDep(k["default"]);var w=function(e){function t(){var t;t=e.call(this)||this;var a=(0,i["default"])(t);return g["default"].addDep(d["default"]),g["default"].addDep(h["default"]),t.showRTvalue=!0,t.canvasPadding=!0,t.isRealTime=!0,t.rtManageSpace=!0,t.transposeAxis=!0,t._setData=x,t.eiMethods=m.eiMethods,t._drawRTValue=function(){a._drawRealTimeValue()},t}(0,l["default"])(t,e),t.getName=function(){return"RealtimeColumn"};var a=t.prototype;return a.getName=function(){return"RealtimeColumn"},a.__setDefaultConfig=function(){e.prototype.__setDefaultConfig.call(this);var t=this.config;t.defaultDatasetType="realtimecolumn",t.enablemousetracking=!0},a.asyncRealTimeValueDraw=function(){this.addJob("realtimevaluedraw",this._drawRTValue,b.priorityList&&b.priorityList.draw)},a.parseChartAttr=function(t){e.prototype.parseChartAttr.call(this,t),this.config.drawTrendRegion=0},a._setCategories=function(){var e,t=this,a=t.getChildren("xAxis")[0],o=[],i=t.config.realTimeConfig,l=i&&i.clear?r:t.getFromEnv("dataSource").categories&&t.getFromEnv("dataSource").categories[0]&&t.getFromEnv("dataSource").categories[0].category,n=l&&Array.isArray(l)&&l.filter((function(e){return!e.vline})).length||0,s=i.numDisplaySets;n<s?(o.length=s-n,e=l?o.concat(l):o):e=n>s&&s>=0?s?l.slice(-s):[]:l.slice(0),a.setTickValues(e)},a._realTimeValuePositioning=function(e){var t,a,o=this,r=o.getChildren(),i=o.getFromEnv("smartLabel"),l=o.config,n=l.realTimeConfig||(l.realTimeConfig={}),c=n.realTimeValuePadding,u=r.xAxis[0].config,d=u.trend.trendStyle,h=n.style={color:(0,s.convertColor)((0,s.pluck)(n.realtimeValueFontColor,d.color),(0,s.pluck)(u.trendlineAlpha,99)),fontFamily:(0,s.pluck)(n.realtimeValueFont,d.fontFamily),fontSize:(0,s.pluck)(n.realtimeValueFontSize,d.fontSize),fontWeight:(0,s.pluck)(n.fontWeight,d.fontWeight),lineHeight:(0,s.pluckNumber)(d.lineHeight)};return i.useEllipsesOnOverflow(l.useEllipsesWhenOverflow),i.setStyle(h),n.height=t=i.getOriSize(s.TESTSTR).height,n.canvasBottom=l.canvasBottom,(a=t+c)>e&&(a=e),{bottom:a}},a.draw=function(){e.prototype.draw.call(this),this.showRTvalue&&this.config.realTimeConfig.showRTValue&&this._drawRealTimeValue()},a._drawRealTimeValue=function(){var e,t,a,o,i,l,n=this,c=n.getFromEnv("chart"),u=n.config,d=c.getDatasets(),h=c.getFromEnv("animationManager"),g=n.getFromEnv("smartLabel"),p=u.realTimeConfig,f=p.realtimeValueSeparator,m=d.length,v=s.BLANKSTRING,b=p.canvasBottom,k=p.height,x=u.canvasLeft,w=u.canvasRight,T=p.style||{},y=n.getGraphicalElement("realTimeValue"),S=n.getChildContainer(),A=c.getContainer().parentGroup,F=S.realTimeValueGroup;if(n.removeJob("realtimevaluedraw"),p.clear&&e&&h.setAnimation({el:e,attr:{text:s.BLANKSTRING},component:n,label:"label"}),F){for(l=0;l<m;l++)v+=(i=(o=(a=d[l].components.data)[a.length-1])&&o.config.displayValue)?i===r?s.BLANKSTRING:i+f:s.BLANKSTRING;v=v.substring(0,v.length-f.length),g.useEllipsesOnOverflow(u.useEllipsesWhenOverflow),g.setStyle(T),t={x:(x+w)/2||0,y:b-k/2||0,"font-size":T.fontSize,"font-weight":T.fontWeight,"font-family":T.fontFamily,"line-height":T.lineHeight,text:v,fill:T.color,visibility:C},e=h.setAnimation({el:y||"text",attr:t,container:F,label:"rtValue",component:c}),y||n.addGraphicalElement("realTimeValue",e)}else F=c.addChildContainer("realTimeValueGroup",h.setAnimation({el:"group",attr:{name:"realTimeValue"},container:A,label:"group",component:c}).insertBefore(S.datalabelsGroup))},a._hideRealTimeValue=function(){var e=this.getGraphicalElement("realTimeValue");e&&e.hide()},a._setRTmenu=function(e,t){m._setRTmenu.call(this,e,t)},a._getDataJSON=function(){return this.config.realTimeConfig.legacyUpdateObj||{values:[]}},a._checkInvalidSpecificData=function(){var e=this.getFromEnv("dataSource").dataset,t=this.getChildren("dataStreamer")&&this.getChildren("dataStreamer")[0];if(!e)return t&&t._stopUpdate(),!0},a._checkInvalidData=function(){var e=this.getFromEnv("dataSource"),t=this.getChildren("dataStreamer")&&this.getChildren("dataStreamer")[0];if(e==={})return t&&t._stopUpdate(),!0},a.getDSGroupdef=function(){return u["default"]},a.getDSdef=function(){return c["default"]},a._realTimeConfigure=function(){m._realTimeConfigure.call(this)},a._stopUpdate=function(e){m._stopUpdate.call(this,e)},a._restartUpdate=function(){m._restartUpdate.call(this)},a._isUpdateActive=function(){return m._isUpdateActive.call(this)},a._getData=function(){return v["default"].call(this)},a.realTimeUpdate=function(e){m.realTimeUpdate.call(this,e)},a._RTmanageSpace=function(){m._RTmanageSpace.call(this)},a.realTimeDraw=function(e){void 0===e&&(e={}),m.realTimeDraw.call(this,e)},a.feedData=function(e){return m.feedData.call(this,e)},a._linearDataParser=function(e){return m._linearDataParser.call(this,e)},a._clearChart=function(e){m._clearChart.call(this,e)},t}(n["default"]);t["default"]=w},1546:(e,t,a)=>{var o=a(269);t.__esModule=!0,t["default"]=void 0;var r=o(a(288)),i=a(740),l=o(a(1539)),n=o(a(1547)),s=function(e){function t(){var t;return(t=e.call(this)||this).axisPaddingLeft=0,t.axisPaddingRight=0,t}(0,r["default"])(t,e),t.getName=function(){return"RealtimeLine"};var a=t.prototype;return a.getName=function(){return"RealtimeLine"},a.__setDefaultConfig=function(){e.prototype.__setDefaultConfig.call(this),i._setDefaultConfig.call(this);var t=this.config;t.defaultDatasetType="realtimeline",t.zeroplanethickness=1,t.zeroplanealpha=40,t.showzeroplaneontop=0,t.enablemousetracking=!0},a.getDSdef=function(){return n["default"]},a.getDSGroupdef=function(){},t}(l["default"]);t["default"]=s},1553:(e,t,a)=>{var o=a(269);t.__esModule=!0,t["default"]=void 0;var r=o(a(288)),i=a(740),l=o(a(1539)),n=o(a(1547)),s=a(668),c=o(a(669)),u=o(a(670)),d=function(e){function t(){var t;return(t=e.call(this)||this).isRealTime=!0,t.axisPaddingLeft=0,t.isDual=!0,t.axisPaddingRight=0,t.getSpecificxAxisConf=s.getSpecificxAxisConf,t.getSpecificyAxisConf=s.getSpecificyAxisConf,t.registerFactory("axis",c["default"],["canvas"]),t.registerFactory("dataset",u["default"],["vCanvas"]),t}(0,r["default"])(t,e),t.getName=function(){return"RealtimeLineDy"};var a=t.prototype;return a.getName=function(){return"RealtimeLineDy"},a.__setDefaultConfig=function(){e.prototype.__setDefaultConfig.call(this),i._setDefaultConfig.call(this);var t=this.config;t.defaultDatasetType="RealtimeLine",t.zeroplanethickness=1,t.zeroplanealpha=40,t.showzeroplaneontop=0,t.enablemousetracking=!0,t.isdual=!0,t.syncaxislimits=0},a._feedAxesRawData=function(){return s._feedAxesRawData.call(this)},a.getDSdef=function(){return n["default"]},a.getDSType=function(){return"RealtimeLine"},a.getDSGroupdef=function(){},t}(l["default"]);d.prototype.setAxisDimention=s.setAxisDimention;var h=d;t["default"]=h},1549:(e,t,a)=>{var o=a(269);t.__esModule=!0,t["default"]=void 0;var r=o(a(288)),i=a(740),l=o(a(1538)),n=o(a(1543)),s=o(a(698)),c=a(274),u=o(a(280)),d=function(e){function t(){return e.apply(this,arguments)||this}(0,r["default"])(t,e),t.getName=function(){return"RealtimeStackedArea"};var a=t.prototype;return a.getName=function(){return"RealtimeStackedArea"},a.__setDefaultConfig=function(){e.prototype.__setDefaultConfig.call(this),i._setDefaultConfig.call(this);var t=this.config;t.defaultDatasetType="realtimearea",t.isstacked=!0,t.enablemousetracking=!0,this.addToEnv("useImprovedLabelPlacement",!0),this.addToEnv("useLinePlotGroupForAnchorPlacement",!0)},a.configureAttributes=function(t){e.prototype.configureAttributes.call(this,t);var a=this.config,o=this.getFromEnv("chart-attrib");a.showSum=(0,u["default"])(o.showsum,0),a.showSum&&(a.valueposition=(0,c.parseUnsafeString)((0,c.pluck)(o.valueposition,"below")))},a.getDSdef=function(){return n["default"]},a.getDSGroupdef=function(){return s["default"]},t}(l["default"]),h=d;t["default"]=h},1551:(e,t,a)=>{var o=a(269);t.__esModule=!0,t["default"]=void 0;var r=o(a(288)),i=o(a(1539)),l=o(a(698)),n=function(e){function t(){return e.apply(this,arguments)||this}(0,r["default"])(t,e),t.getName=function(){return"RealtimeStackedColumn"};var a=t.prototype;return a.__setDefaultConfig=function(){e.prototype.__setDefaultConfig.call(this);var t=this.config;t.isstacked=!0,t.enablemousetracking=!0},a.getName=function(){return"RealtimeStackedColumn"},a.getDSGroupdef=function(){return l["default"]},t}(i["default"]),s=n;t["default"]=s},1533:(e,t,a)=>{var o=a(269);t.__esModule=!0,t["default"]=void 0;var r=o(a(288)),i=a(274),l=o(a(1526)),n=o(a(1534)),s=Math.max,c=function(e){function t(){return e.apply(this,arguments)||this}(0,r["default"])(t,e),t.getName=function(){return"SparkColumn"};var a=t.prototype;return a.getName=function(){return"SparkColumn"},a.__setDefaultConfig=function(){e.prototype.__setDefaultConfig.call(this);var t=this.config;t.friendlyName="sparkcolumn Chart",t.singleseries=!1,t.defaultDatasetType="sparkcolumn",t.showplotborder=0,t.enablemousetracking=!0,t.canvasborderthickness=1},a.getDSdef=function(){return n["default"]},a._parseCanvasCosmetics=function(){var e,t,a,o,r,l=this,n={},c=l.getFromEnv("dataSource").chart,u=l.getFromEnv("color-manager"),d=l.config.is3D?i.chartPaletteStr.chart3D:i.chartPaletteStr.chart2D,h=n.isRoundEdges=(0,i.pluckNumber)(c.useroundedges,0),g=(0,i.pluckNumber)(c.showxaxisline,c.showyaxisline,0)?0:1;return n.canvasBorderRadius=(0,i.pluckNumber)(c.plotborderradius,h?2:0),a=n.showCanvasBorder=Boolean((0,i.pluckNumber)(c.showcanvasborder,g,e,h?0:1)),r=n.oriCanvasBorderThickness=s((0,i.pluckNumber)(c.canvasborderthickness,h?0:(0,i.pluckNumber)(l.config.canvasborderthickness,1),0)),e=n.canvasBorderWidth=l.is3D?0:a?r:0,n.canvasBorderColor=(0,i.convertColor)((0,i.pluck)(c.canvasbordercolor,u.getColor("canvasBorderColor")),(0,i.pluck)(c.canvasborderalpha,u.getColor("canvasBorderAlpha"))),t=n.canBGAlpha=(0,i.pluck)(c.canvasbgalpha,u.getColor("canvasBgAlpha")),n.canBGColor={FCcolor:{color:(0,i.pluck)(c.canvasbgcolor,u.getColor(d.canvasBgColor)),alpha:(0,i.pluck)(c.canvasbgalpha,100),angle:(0,i.pluck)(c.canvasbgangle,0),ratio:(0,i.pluck)(c.canvasbgratio)}},o=n.shadow=(0,i.pluckNumber)(c.showshadow,h,0)&&h?{enabled:!0,opacity:t/100}:0,n.shadowOnCanvasFill=o&&o.enabled,n.canvasPadding=(0,i.pluckNumber)(c.canvaspadding,0),n.origCanvasTopPad=(0,i.pluckNumber)(c.canvastoppadding,0),n.origCanvasBottomPad=(0,i.pluckNumber)(c.canvasbottompadding,0),n.origCanvasLeftPad=(0,i.pluckNumber)(c.canvasleftpadding,0),n.origCanvasRightPad=(0,i.pluckNumber)(c.canvasrightpadding,0),n},t}(l["default"]),u=c;t["default"]=u},1525:(e,t,a)=>{var o=a(269);t.__esModule=!0,t["default"]=void 0;var r=o(a(288)),i=o(a(1526)),l=o(a(1527)),n=a(1529),s=function(e){function t(){var t;return(t=e.call(this)||this).showValues=0,t._parseCanvasCosmetics=n._parseCanvasCosmetics,t._placeOpenCloseValues=n._placeOpenCloseValues,t.defaultPlotShadow=0,t.axisPaddingLeft=0,t.axisPaddingRight=0,t}(0,r["default"])(t,e),t.getName=function(){return"SparkLine"};var a=t.prototype;return a.getName=function(){return"SparkLine"},a.__setDefaultConfig=function(){e.prototype.__setDefaultConfig.call(this);var t=this.config;t.friendlyName="SparkLine Chart",t.singleseries=!0,t.defaultDatasetType="sparkline",t.showvalues=0,t.anchorsides=1,t.anchorstartangle=90,t.enablemousetracking=!0},a.getDSdef=function(){return l["default"]},t}(i["default"]);t["default"]=s},1529:(e,t,a)=>{var o=a(269);t.__esModule=!0,t._placeOpenCloseValues=u,t._parseCanvasCosmetics=d,t["default"]=void 0;var r=o(a(288)),i=a(274),l=o(a(1526)),n=o(a(1530)),s=2,c=Math.min;function u(e){var t,a=this,o=a.config,r=a.getFromEnv("smartLabel"),l=o.dataLabelStyle,n=(0,i.pluckNumber)(l.borderThickness,0),u=a.config.valuepadding+s+n,d=0,h=0,g=o.sparkValues||{};return r.useEllipsesOnOverflow(o.useEllipsesWhenOverflow),r.setStyle(l),g.openValue&&g.openValue.label&&(g.openValue.smartObj=r.getSmartText(g.openValue.label),d=g.openValue.smartObj.width+u),g.closeValue&&g.closeValue.label&&(g.closeValue.smartObj=r.getSmartText(g.closeValue.label),h+=g.closeValue.smartObj.width+u),g.highValue&&g.highValue.label&&(g.highValue.smartObj=r.getSmartText(g.highValue.label)),g.lowValue&&g.lowValue.label&&(g.lowValue.smartObj=r.getSmartText(g.lowValue.label)),g.highLowValue&&g.highLowValue.label&&(g.highLowValue.smartObj=r.getSmartText(g.highLowValue.label),h+=g.highLowValue.smartObj.width+u),{left:t=g.openValueWidth=c(d,e),right:g.closeValueWidth=c(h,e-t)}}function d(){var e,t,a,o={},r=this.getFromEnv("dataSource").chart,l=this.getFromEnv("color-manager");return o.canvasBorderRadius=0,e=o.canvasBorderThickness=0,t=o.showCanvasBorder=0,o.canvasBorderWidth=t?e:0,o.canvasBorderColor=(0,i.convertColor)((0,i.pluck)(r.canvasbordercolor,l.getColor("canvasBorderColor"))),o.canBGColor={FCcolor:{color:"ffffff",alpha:0,angle:0,ratio:i.UNDEF}},a=o.shadow=0,o.shadowOnCanvasFill=a&&a.enabled,o.origCanvasTopPad=(0,i.pluckNumber)(r.canvastoppadding,0),o.origCanvasBottomPad=(0,i.pluckNumber)(r.canvasbottompadding,0),o.origCanvasLeftPad=(0,i.pluckNumber)(r.canvasleftpadding,0),o.origCanvasRightPad=(0,i.pluckNumber)(r.canvasrightpadding,0),o.canvasPadding=0,o}var h=function(e){function t(){var t;return(t=e.call(this)||this)._placeOpenCloseValues=u,t._parseCanvasCosmetics=d,t}(0,r["default"])(t,e),t.getName=function(){return"SparkWinLoss"};var a=t.prototype;return a.parseChartAttr=function(t){e.prototype.parseChartAttr.call(this,t),this.config.drawTrendRegion=0},a.getName=function(){return"SparkWinLoss"},a.__setDefaultConfig=function(){e.prototype.__setDefaultConfig.call(this);var t=this.config;t.friendlyName="sparkwinloss Chart",t.singleseries=!0,t.defaultDatasetType="sparkwinloss",t.enablemousetracking=!0,t.yRangeMin=-1,t.yRangeMax=1,t.canvasborderthickness=0},a.getDSdef=function(){return n["default"]},t}(l["default"]);t["default"]=h},1521:(e,t,a)=>{var o=a(269);t.__esModule=!0,t["default"]=void 0;var r=o(a(288)),i=a(274),l=o(a(1522)),n=o(a(1484)),s=o(a(1487)),c=i.preDefStr.gaugeFillColorStr,u=i.preDefStr.gaugeBorderColorStr,d=function(e){return null!=e},h=function(e){function t(){var t;return(t=e.call(this)||this).showRTvalue=!1,t.canvasPadding=!1,t.defaultPaletteOptions=(0,i.extend2)((0,i.extend2)({},i.defaultGaugePaletteOptions),{gaugeBorderColor:["545454","60634E","415D6F","845001","68001B"],gaugeFillColor:["999999","ADB68F","A2C4C8","FDB548","FF7CA0"],periodColor:["EEEEEE","ECEEE6","E6ECF0","FFF4E6","FFF2F5"]},!1,!0),t.isHorizontal=!1,t.config.isAxisOpposite=!0,t.config.scalePosition="right",t.config.canBeScalePosition="left",t.hasCanvas=!0,t.drawPlotlines=!1,t.drawPlotBands=!1,t.isAxisReverse=!1,t.isRealTime=!0,t.registerFactory("dataset",n["default"],["vCanvas"]),t}(0,r["default"])(t,e),t.getName=function(){return"Thermometer"};var a=t.prototype;return a.getName=function(){return"Thermometer"},a.__setDefaultConfig=function(){e.prototype.__setDefaultConfig.call(this);var t=this.config;t.alignCaptionWithCanvas=1,t.friendlyName="Horizontal Linear Gauge",t.hasLegend=!1,t.defaultDatasetType="thermometer",t.animationeffect="easeOut",t.skipCanvasDrawing=!0},a._getData=function(){var e=this.getChildren("dataset");if(e&&e[0])return e[0].config.value},a._parseSpecialConfig=function(){var e,t=this,a=t.config,o=t.getFromEnv("dataSource").chart,r=t.getFromEnv("number-formatter"),l=t.getFromEnv("color-manager");a.use3DLighting=(0,i.pluckNumber)(o.use3dlighting,1),a.thmOriginX=(0,i.pluckNumber)(o.thmoriginx,o.gaugeoriginx),a.thmOriginY=(0,i.pluckNumber)(o.thmoriginy,o.gaugeoriginy),a.thmBulbRadius=(0,i.pluckNumber)(r.getCleanValue(o.thmbulbradius,!0)),a.thmHeight=(0,i.pluckNumber)(r.getCleanValue((0,i.pluckNumber)(o.thmheight,o.gaugeheight),!0)),a.origW=(0,i.pluckNumber)(o.origw),a.origH=(0,i.pluckNumber)(o.origh),a.xDefined=d(a.thmOriginX),a.yDefined=d(a.thmOriginY),a.rDefined=d(a.thmBulbRadius),a.hDefined=d(a.thmHeight),a.gaugeFillColor=(0,i.pluck)(o.gaugefillcolor,o.thmfillcolor,l.getColor(c)),a.gaugeFillAlpha=(0,i.pluckNumber)(o.gaugefillalpha,o.thmfillalpha,i.HUNDREDSTRING),a.showGaugeBorder=(0,i.pluckNumber)(o.showgaugeborder,1),e=a.showGaugeBorder?(0,i.pluckNumber)(o.gaugeborderalpha,40):0,a.gaugeBorderColor=(0,i.convertColor)((0,i.pluck)(o.gaugebordercolor,l.getColor(u)),e),a.gaugeBorderThickness=(0,i.pluckNumber)(o.gaugeborderthickness,1),a.gaugeContainerColor=(0,i.pluck)(o.thmglasscolor,(0,i.getLightColor)(a.gaugeFillColor,30))},a.allocatePosition=function(){var e=this.config,t=e.canvasLeft,a=e.canvasRight,o=e.canvasTop,r=e.canvasWidth,i=e.canvasHeight,l=e.canvasBottom;e.gaugeStartX=t,e.gaugeEndX=a,e.gaugeStartY=o,e.gaugeEndY=l,e.gaugeCenterX=t+.5*r,e.gaugeCenterY=o+.5*i,e.gaugeRadius=.5*r},a.getDSdef=function(){return l["default"]},t}(s["default"]);t["default"]=h},1557:(e,t,a)=>{var o=a(269);t.__esModule=!0,t["default"]=void 0;var r,i=o(a(288)),l=a(274),n=o(a(1487)),s=a(1511),c=o(a(1513)),u=o(a(1484)),d=o(a(421)),h="0,100",g="bullet",p=function(e){function t(){var t;return(t=e.call(this)||this).defaultSeriesType=g,t.gaugeType=4,t.ticksOnRight=0,t.hasCanvas=!0,t.isHorizontal=!1,t.config.isAxisOpposite=!1,t.config.scalePosition="left",t.config.canBeScalePosition="right",t.isAxisReverse=!1,t.defaultPaletteOptions={paletteColors:[["A6A6A6","CCCCCC","E1E1E1","F0F0F0"],["A7AA95","C4C6B7","DEDFD7","F2F2EE"],["04C2E3","66E7FD","9CEFFE","CEF8FF"],["FA9101","FEB654","FED7A0","FFEDD5"],["FF2B60","FF6C92","FFB9CB","FFE8EE"]],bgColor:["FFFFFF","CFD4BE,F3F5DD","C5DADD,EDFBFE","A86402,FDC16D","FF7CA0,FFD1DD"],bgAngle:[270,270,270,270,270],bgRatio:[h,h,h,h,h],bgAlpha:["100","60,50","40,20","20,10","30,30"],toolTipBgColor:["FFFFFF","FFFFFF","FFFFFF","FFFFFF","FFFFFF"],toolTipBorderColor:["545454","545454","415D6F","845001","68001B"],baseFontColor:["333333","60634E","025B6A","A15E01","68001B"],tickColor:["333333","60634E","025B6A","A15E01","68001B"],trendColor:["545454","60634E","415D6F","845001","68001B"],plotFillColor:["545454","60634E","415D6F","845001","68001B"],borderColor:["767575","545454","415D6F","845001","68001B"],borderAlpha:[50,50,50,50,50]},t.showRTvalue=!1,t.canvasPadding=!1,t.defaultPlotShadow=1,t.realtimeEnabled=!0,t.chartleftmargin=15,t.chartrightmargin=15,t.charttopmargin=10,t.chartbottommargin=10,t.showTooltip=0,t.connectTickMarks=0,t.drawPlotlines=!1,t.drawPlotBands=!1,t.isRealTime=!0,t.colorRange=!0,t.registerFactory("dataset",u["default"],["vCanvas"]),t}(0,i["default"])(t,e),t.getName=function(){return"Vbullet"};var a=t.prototype;return a.getName=function(){return"Vbullet"},a.configureAttributes=function(t){e.prototype.configureAttributes.call(this,t),s.configureAttributes.call(this)},a._getData=function(){return s._getData.call(this)},a.__setDefaultConfig=function(){e.prototype.__setDefaultConfig.call(this);var t=this.config;t.friendlyName="Vertical Bullet Gauge",t.defaultDatasetType=g,t.singleseries=!0,t.skipCanvasDrawing=!0},a.getDSdef=function(){return c["default"]},a._feedAxesRawData=function(){var e=this,t=e.config,a=e.getFromEnv("color-manager"),o=e.getFromEnv("dataSource").chart,i=e.getFromEnv("number-formatter"),n=l.chartPaletteStr.chart2D,s=(0,l.pluckNumber)(o.ticksonright),c=(0,l.pluckNumber)((0,d["default"])(o.scaleposition,t.scalePosition)?t.isAxisOpposite:(0,d["default"])(o.scaleposition,t.canBeScalePosition)?!t.isAxisOpposite:r,s!==r?s:r,t.isAxisOpposite),u=(0,l.pluckFontSizeMaintainUnit)(o.outcnvbasefontsize,o.basefontsize,10);return[{isVertical:!e.isHorizontal,isReverse:!0,isOpposit:c,outCanfontFamily:(0,l.pluck)(o.outcnvbasefont,o.basefont,"Verdana,sans"),outCanfontSize:this.computeFontSize(u),outCanfontSizeWithUnit:u,outCancolor:(0,l.pluck)(o.outcnvbasefontcolor,o.basefontcolor,a.getColor(n.baseFontColor)).replace(/^#?([a-f0-9]+)/gi,"#$1"),useEllipsesWhenOverflow:o.useellipseswhenoverflow,divLineColor:(0,l.pluck)(o.vdivlinecolor,a.getColor(n.divLineColor)),divLineAlpha:(0,l.pluck)(o.vdivlinealpha,a.getColor("divLineAlpha")),divLineThickness:(0,l.pluckNumber)(o.vdivlinethickness,1),divLineIsDashed:Boolean((0,l.pluckNumber)(o.vdivlinedashed,o.vdivlineisdashed,0)),divLineDashLen:(0,l.pluckNumber)(o.vdivlinedashlen,4),divLineDashGap:(0,l.pluckNumber)(o.vdivlinedashgap,2),showAlternateGridColor:(0,l.pluckNumber)(o.showalternatevgridcolor,0),alternateGridColor:(0,l.pluck)(o.alternatevgridcolor,a.getColor("altVGridColor")),alternateGridAlpha:(0,l.pluck)(o.alternatevgridalpha,a.getColor("altVGridAlpha")),numDivLines:o.numvdivlines,labelFont:o.labelfont,labelFontSize:this.computeFontSize(o.labelfontsize),labelFontSizeWithUnit:o.labelfontsize,labelFontColor:o.labelfontcolor,labelAlpha:o.labelalpha,labelFontBold:o.labelfontbold,labelFontItalic:o.labelfontitalic,axisName:o.xaxisname,axisMinValue:i.getCleanValue(o.lowerlimit),axisMaxValue:i.getCleanValue(o.upperlimit),setAdaptiveMin:o.setadaptivexmin,adjustDiv:o.adjusttm,labelDisplay:o.labeldisplay,showLabels:o.showlabels,rotateLabels:o.rotatelabels,slantLabel:(0,l.pluckNumber)(o.slantlabels,o.slantlabel),labelStep:(0,l.pluckNumber)(o.labelstep,o.xaxisvaluesstep),showAxisValues:(0,l.pluckNumber)(o.showxaxisvalues,o.showxaxisvalue),showDivLineValues:(0,l.pluckNumber)(o.showvdivlinevalues,o.showvdivlinevalues),showZeroPlane:o.showvzeroplane,zeroPlaneColor:o.vzeroplanecolor,zeroPlaneThickness:o.vzeroplanethickness,zeroPlaneAlpha:o.vzeroplanealpha,showZeroPlaneValue:o.showvzeroplanevalue,trendlineColor:o.trendlinecolor,trendlineToolText:o.trendlinetooltext,trendlineThickness:o.trendlinethickness,trendlineAlpha:o.trendlinealpha,showTrendlinesOnTop:o.showtrendlinesontop,showAxisLine:(0,l.pluckNumber)(o.showxaxisline,o.showaxislines,o.drawAxisLines,0),axisLineThickness:(0,l.pluckNumber)(o.xaxislinethickness,o.axislinethickness,1),axisLineAlpha:(0,l.pluckNumber)(o.xaxislinealpha,o.axislinealpha,100),axisLineColor:(0,l.pluck)(o.xaxislinecolor,o.axislinecolor,"#000000"),majorTMNumber:o.majortmnumber,majorTMColor:o.majortmcolor,majorTMAlpha:o.majortmalpha,majorTMHeight:o.majortmheight,tickValueStep:o.tickvaluestep,showTickMarks:o.showtickmarks,connectTickMarks:o.connecttickmarks,showTickValues:o.showtickvalues,majorTMThickness:o.majortmthickness,reverseScale:o.reversescale,showLimits:(0,l.pluckNumber)(o.showlimits,o.showtickmarks),minorTMNumber:(0,l.pluckNumber)(o.minortmnumber,0),minorTMColor:o.minortmcolor,minorTMAlpha:o.minortmalpha,minorTMHeight:(0,l.pluckNumber)(o.minortmheight,o.minortmwidth),minorTMThickness:o.minortmthickness,tickMarkDistance:(0,l.pluckNumber)(o.tickmarkdistance,o.tickmarkgap),tickValueDistance:(0,l.pluckNumber)(o.tickvaluedistance,o.displayvaluedistance),placeTicksInside:o.placeticksinside,placeValuesInside:o.placevaluesinside,upperLimitDisplay:o.upperlimitdisplay,lowerLimitDisplay:o.lowerlimitdisplay}]},t}(n["default"]);t["default"]=p},1510:(e,t,a)=>{var o=a(269);t.__esModule=!0,t["default"]=void 0;var r=o(a(288)),i=a(1511),l=o(a(1487)),n=o(a(1512)),s=o(a(1484)),c=function(e){function t(){var t;return(t=e.call(this)||this).showRTvalue=!1,t.canvasPadding=!1,t.defaultSeriesType="led",t.defaultPlotShadow=1,t.realtimeEnabled=!0,t.chartleftmargin=15,t.chartrightmargin=15,t.charttopmargin=10,t.chartbottommargin=10,t.showTooltip=0,t.connectTickMarks=0,t.isHorizontal=!1,t.config.isAxisOpposite=!0,t.config.scalePosition="right",t.config.canBeScalePosition="left",t.drawPlotlines=!1,t.drawPlotBands=!1,t.isAxisReverse=!1,t.isRealTime=!0,t.colorRange=!0,t.registerFactory("dataset",s["default"],["vCanvas"]),t}(0,r["default"])(t,e),t.getName=function(){return"Vled"};var a=t.prototype;return a.getName=function(){return"Vled"},a.configureAttributes=function(t){e.prototype.configureAttributes.call(this,t),i.configureAttributes.call(this)},a._getData=function(){return i._getData.call(this)},a.__setDefaultConfig=function(){e.prototype.__setDefaultConfig.call(this);var t=this.config;t.friendlyName="Vertical LED Gauge",t.hasLegend=!1,t.defaultDatasetType="led",t.skipCanvasDrawing=!0,t.majorTMNumber=-1,t.majorTMHeight=6,t.showTickMarks=1,t.majorTMThickness=1,t.minorTMNumber=4,t.minorTMThickness=1,t.tickMarkDistance=3,t.placeTicksInside=0,t.placeValuesInside=0},a.getDSdef=function(){return n["default"]},t}(l["default"]);t["default"]=c},1494:(e,t,a)=>{var o=a(269);t.__esModule=!0,t["default"]=void 0;var r=o(a(288)),i=a(274),l=a(290),n=i.BLANK,s=i.preDefStr.gaugeFillColorStr,c=i.preDefStr.gaugeBorderColorStr,u=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"cylinderThermometerBase"},a.setValue=function(e,t){if(e){var a,o=this,r=o.config,l=o.getFromEnv("chart").getFromEnv("dataSource").chart,s=o.getFromEnv("number-formatter"),c=e.value,u=e.color,d=e.tooltext||l.plottooltext;r.value=c=s.getCleanValue(c),u&&(r.gaugeFillColor=u,r.plotFillHoverColor=u),null!==c?(a=r.formattedValue=s.dataLabels(r.value),r.showValue?r.displayValue=e.label||(0,i.getValidValue)(a,i.BLANK):r.displayValue=n,r.showTooltip?r.toolText=undefined!==d?(0,i.parseUnsafeString)((0,i.parseTooltext)((0,i.pluck)(e.tooltext,d),[1,2],{formattedValue:a,value:c},e,l),!1):(0,i.parseUnsafeString)((0,i.parseTooltext)((0,i.pluck)(e.tooltext,null===a?n:a)),!1):r.toolText=n):(r.displayValue=n,r.toolText=n,r.formattedValue=null),t&&o.draw()}},a.configure=function(e){if(!e)return!1;this.setValue(e&&e.data&&e.data[0]);var t,a,o,r,l=this,n=l.getFromEnv("chart"),u=n.getFromEnv("dataSource"),d=u.chart,h=l.config||(l.config={}),g=l.getFromEnv("color-manager"),p=n.config,f=(0,i.pluckNumber)(d.showhovereffect);h.showValue=(0,i.pluckNumber)(d.showvalue,d.showvalues,1),h.showTooltip=(0,i.pluckNumber)(d.showtooltip,1),h.valuePadding=(0,i.pluckNumber)(d.valuepadding,2),h.tooltipSepChar=(0,i.pluck)(d.tooltipsepchar,i.COMMASTRING),h.pointerOnOpp=(0,i.pluckNumber)(d.pointerontop,0),h.axisPosition=(0,i.pluckNumber)(d.ticksbelowgauge,d.ticksbelowgraph,this.ticksbelowgauge,1)?3:1,h.valueAbovePointer=(0,i.pluckNumber)(d.valueabovepointer,1),h.labelStyle=p.dataLabelStyle,r=h.gaugeFillColor=(0,i.pluck)(d.gaugefillcolor,d.thmfillcolor,d.cylfillcolor,g.getColor(s)),o=h.gaugeFillAlpha=(0,i.pluckNumber)(d.gaugefillalpha,d.cylfillalpha,d.thmfillalpha,i.HUNDREDSTRING),h.showGaugeBorder=(0,i.pluckNumber)(d.showgaugeborder,1),t=h.showGaugeBorder?(0,i.pluckNumber)(d.gaugeborderalpha,40):0,h.rawGaugeBorderColor=(0,i.pluck)(d.gaugebordercolor,g.getColor(c)),h.gaugeBorderAlpha=t,h.gaugeBorderColor=(0,i.convertColor)(h.rawGaugeBorderColor,t),h.gaugeBorderThickness=(0,i.pluckNumber)(d.gaugeborderthickness,1),h.gaugeContainerColor=(0,i.pluck)(d.thmglasscolor,d.cylglasscolor,n.glasscolor,(0,i.getLightColor)(r,30)),0!==f&&(f||d.plotfillhovercolor||d.plotfillhoveralpha||0===d.plotfillhoveralpha)&&(h.showHoverEffect=!0,a=(0,i.pluck)(d.plotfillhovercolor,d.cylfillhovercolor,d.thmfillhovercolor,"{dark-10}"),h.plotFillHoverAlpha=(0,i.pluckNumber)(d.plotfillhoveralpha,d.cylfillhoveralpha,d.thmfillhoveralpha,o),h.plotFillHoverColor=/\{/.test(a)?g.parseColorMix(r,a)[0]:a),l.setValue(u),n._parseSpecialConfig&&n._parseSpecialConfig()},a._getLabelSpace=function(){var e,t=this,a=t.config,o=t.getFromEnv("chart"),r=t.getFromEnv("smartLabel");return r.useEllipsesOnOverflow(o.config.useEllipsesWhenOverflow),r.setStyle(a.labelStyle),(e=r.getOriSize(a.displayValue!==i.BLANK?a.displayValue:"dummy")).height?e.height+a.valuePadding:0},a.getDataLimits=function(){var e,t,a=this.config;return t=e=a.value,a.maxValue=t,a.minValue=e,{forceMin:!0,forceMax:!0,max:t,min:e}},a.updateData=function(){var e=this,t=arguments[0],a=arguments[2],o=e.config,r=o.maxValue,i=o.prevMin,l=o.value,n=e.getFromEnv("chart"),s=e.groupManager||e,c=e.getFromEnv("scale");e.setValue(t.data[0]),o.maxValue=l,o.minValue=l,o.maxValue===r&&o.minValue===i||(e.config.maxminFlag=!0),a&&(n._setAxisLimits(),c.draw(),s.draw())},a.setJSONIndex=function(e){this.config.index=e},a.getJSONIndex=function(){return this.config.index||0},t}(l.ComponentInterface),d=u;t["default"]=d},1564:(e,t,a)=>{var o=a(269);t.__esModule=!0,t["default"]=void 0;var r,i=o(a(288)),l=o(a(1565)),n=a(274),s="pointer",c=n.preDefStr.POSITION_START,u=n.preDefStr.POSITION_END,d=n.preDefStr.POSITION_MIDDLE,h={right:u,left:c,middle:d,start:c,end:u,center:d,undefined:n.BLANK,BLANK:n.BLANK},g=function(e){function t(){return e.apply(this,arguments)||this}(0,i["default"])(t,e);var a=t.prototype;return a.configure=function(e){for(var t in void 0===e&&(e={}),e)this[t]=e[t];this.upperRadiusFactor=1},a.getType=function(){return"data"},a.getName=function(){return"funnelpoint"},a.getModifiedCurrentValue=function(){return r},a.getRatioK=function(e,t,a,o,r){var i=this,l=e.config,n=!l.streamLinedData,s=l.useSameSlantAngle;return n?.2+a*o:i.y?s?i.y/r:Math.sqrt(i.y/r):1},a.getLowestRadiusFactor=function(e,t){var a=this,o=e.config,r=!o.streamLinedData,i=o.useSameSlantAngle;return r?.2:a.y?i?a.y/t:Math.sqrt(a.y/t):1},a.allocatePosition=function(){},a.drawPlots=function(){var e,t,a,o,i,l,c,u=this,d=u.index,g=u.getLinkedParent(),p=g.getFromEnv("toolTipController"),f=g.config,m=u.y,v=u.displayValue,b=f.isSliced,k=u.labelAline,C=u.appliedStyle,x=u.style,w=n.BLANK,T=g.getFromEnv("chart").getChildContainer("trackerGroup"),y=u.plot,S=!!u.link,A=this.hoverHandler,F=f.distanceAvailed,N=g.config.labelDrawingConfig,E=g.getFromEnv("animationManager"),L=u.setRolloutAttr,D=u.setRolloverAttr,M=u.rolloverProperties,R={};if(e=b?1:u.isSliced,i=C&&C.color||x&&x.color||g._chartLevelAttr.color,c={text:v,direction:w,cursor:S?s:n.BLANK,x:0,y:0,fill:i,"text-anchor":h[k]},null!==m&&m!==r&&u.shapeArgs)return a=u.getGraphicalElement("graphic"),o=u.getGraphicalElement("trackerObj"),!L&&(u.setRolloutAttr=L={}),!D&&(u.setRolloverAttr=D={}),u.hoverEffects?(L.color=u.rawColor,L.opacity=u.rawAlpha,L["stroke-width"]=u.borderWidth,L.stroke=u.borderColor,D.color=M.color,D.opacity=M.alpha,D["stroke-width"]=M.borderWidth,D.stroke=M.borderColor,D.rawBorderColor=M.rawBorderColor,D.borderAlpha=M.borderAlpha):(L=u.setRolloutAttr={},D=u.setRolloverAttr={}),y?(u.shapeArgs.graphics=a,a=g.pyramidFunnelShape(u.shapeArgs),u.addGraphicalElement("graphic",a),a=E.setAnimation({el:a,attr:{fill:u.color,"stroke-width":u.borderWidth,stroke:u.borderColor},component:g}),u.addGraphicalElement("graphic",a),a.show(),N[d]=l={args:c,css:C,point:u}):(u.shapeArgs.graphics=y,u.plot=y={},a=g.pyramidFunnelShape(u.shapeArgs).attr({fill:u.color,"stroke-width":u.borderWidth,stroke:u.borderColor}),o=E.setAnimation({el:"path",container:T,component:g}).on("fc-click",g.plotMouseUp,R).hover(A,A),u.addGraphicalElement("graphic",a),u.addGraphicalElement("trackerObj",o),N[d]=l={args:c,css:C,point:u}),a.funnel2D&&a.funnel2D.addPattern(u.patternAttr,f.usePattern),f.showTooltip?p.enableToolTip(o,u.toolText):p.disableToolTip(o),y.value=m,y.displayValue=v,y.sliced=!!e,y.cursor=S?s:n.BLANK,y.x=u.x,y.index=d,R.datasetStore=g,R.plotItem=y,o.off("fc-click",g.slice),!u.doNotSlice&&o.on("fc-click",g.slice,R),l.context=R,l.actions={click:g.slice,hover:[A,A]},y.dy=0,f.noOfGap?(F&&(y._startTranslateY=t="t0,"+F,y.dy=y.distanceAvailed=F),f.slicingGapPosition[u.x]&&(f.distanceAvailed-=f.perGapDistance)):y._startTranslateY=t="t0,0",E.setAnimation({el:a,attr:{transform:t},component:g}),l.transform=t,y;N[d]=l={args:c,css:C,point:u}},t}(l["default"]),p=g;t["default"]=p},1565:(e,t,a)=>{var o=a(269);t.__esModule=!0,t["default"]=void 0;var r=o(a(292)),i=o(a(288)),l=a(290),n=a(274),s=a(649),c=a(595),u=a(286),d="pointer",h="default",g=window,p=g.navigator.userAgent,f=/msie/i.test(p)&&!g.opera,m="none",v="eventArgs",b="rgba(192,192,192,"+(f?.002:1e-6)+")",k=["fontFamily","fontSize","fontWeight","fontStyle"],C=function(){this.hide()},x=function(e,t){var a,o,r={labelfont:"fontFamily",labelfontcolor:"color",labelfontsize:"fontSize",labelfontbold:"fontWeight",labelfontitalic:"fontStyle",labelalpha:"alpha"};for(o in r)(o in e||o in t)&&(a=a||{},"labelfontsize"===o?(a[r[o]]=(0,n.pluck)(e[o],this.computeFontSize(t[o])),a.fontSizeWithUnit=(0,n.pluckFontSizeMaintainUnit)(e.labelfontsize,t.labelfontsize)):a[r[o]]=(0,n.pluck)(e[o],t[o]));return a?(a.fontWeight&&(a.fontWeight=(0,n.pluckNumber)(a.fontWeight)?"bold":"normal"),a.fontStyle&&(a.fontStyle=(0,n.pluckNumber)(a.fontStyle)?"italic":"normal"),a.color=(0,n.convertColor)(a.color,a.alpha),a):a},w=function(e){function t(){var t;t=e.call(this)||this;var a=(0,r["default"])(t);return t.hoverHandler=function(e){var t=a.getGraphicalElement("graphic"),o=a.getLinkedParent().getFromEnv("chart"),r=this;r.data(v,Object.assign(r.data(v),{isSliced:a.isSliced})),"mouseover"===e.type?(t.attr(a.setRolloverAttr),o.plotEventHandler(r,e,"DataPlotRollOver")):(t.attr(a.setRolloutAttr),o.plotEventHandler(r,e,"DataPlotRollOut"))},t}(0,i["default"])(t,e);var a=t.prototype;return a.parseAndConfigurePoint=function(e,t,a,o){var r,i,l,s,u,d,h,g,p,f,m,v,b,k,C,w,T,y,S,A,F,N,E,L,D,M,R,_,I,V,O,P,G,B,H,W,z,j=this,U=j.getLinkedParent(),X=U.getFromEnv("chart"),K=U.config,Y=U.getFromEnv("number-formatter"),J=U.getFromEnv("smartLabel"),q=U.getFromEnv("color-manager"),Z=0,$=K.showPercentValues,Q=K.labelSepChar,ee=X.getFromEnv("chart-attrib"),te=K.isSliced,ae={apply:K.showShadow,opacity:1},oe=(0,n.pluckNumber)(e.minplotheightforvalue,ee.minplotheightforvalue,0),re=K.plotBorderThickness,ie=K.style;K.showTextOutline=(0,n.pluckNumber)(ee.textoutline,0),i=t.refreshedData,Z=t.sumValue,f=Y.dataLabels(Z),l=t.highestValue,B=(0,n.pluck)(e.labellink,ee.labellink,e.link,n.UNDEF),P=e.legendItemId,m=e.cleanValue,v=o?i[o-1].value:m,b=(0,n.parseUnsafeString)((0,n.pluck)(e.label,e.name,n.BLANKSTRING)),L=e.id?(0,n.parseUnsafeString)((0,n.pluck)(e.id)):b,J.setStyle(j.getFromEnv("dataLabelStyle")),k=J.getOriSize(b),s=c.PATTERN_TYPES.includes(e.patterntype)?e.patterntype:K.patternType,u=(0,n.pluckNumber)(e.patternangle,X.getFromEnv("chart-attrib").patternangle,s===c.PATTERN_TYPES[0]?40:0),d=(0,n.pluckNumber)(e.patterndensity,K.patternDensity),h=(0,n.pluckNumber)(e.patternsize,s===c.PATTERN_TYPES[0]?2:4),g=(0,n.pluckNumber)(e.patternalpha,K.patternAlpha),p=(0,n.pluck)(e.patternbgcolor,K.patternBgColor),M=e.alpha||K.plotFillAlpha,G=(0,n.pluck)(e.color,q.getPlotColor(a)),H=(0,n.convertColor)(G),W=e.legendiconalpha,z=e.legendiconbgalpha,D=(0,n.convertColor)(G,M),R=(0,n.pluck)(e.bordercolor,K.plotBorderColor,K.usePattern?G:(0,n.getLightColor)(G,25)).split(n.COMMASTRING)[0],_=K.showPlotBorder?(0,n.pluck)(e.borderalpha,K.plotBorderAlpha,K.usePattern?"100":"80"):n.ZEROSTRING,ae.opacity=Math.max(M,_)/100,(C=(0,n.pluckNumber)(e.issliced,te))&&(K.noOFSlicedElement+=1,K.preSliced=C),t.prevPerValReq&&(Z=v),w=Y.percentValue(m/Z*100),K.datalabelDisabled||(T=Y.dataLabels(m)||n.BLANKSTRING,y=1===K.showLabels?b:n.BLANKSTRING,S=1===(r=(0,n.pluckNumber)(e.showvalue,K.showValues,1))?1===$?w:T:n.BLANKSTRING,A=(0,n.getValidValue)((0,n.parseUnsafeString)(e.displayvalue)),O=(0,n.pluck)(A,b+Q+($?w:T),n.BLANKSTRING),S=A||(S!==n.BLANKSTRING&&y!==n.BLANKSTRING?y+Q+S:(0,n.pluck)(y,S)||n.BLANKSTRING)),(F=(0,n.getValidValue)((0,n.parseUnsafeString)((0,n.pluck)(e.tooltext,K.toolText),!1)))!==n.UNDEF?(I={formatedVal:T,name:b,pValue:w,sum:f,sumValue:f,dataValue:m,prevValue:v,highestValue:l},F=(0,n.parseTooltext)(F,[1,2,3,7,14,24,25,37],U.getTooltipMacroStub(I),e,ee)):(N=1===K.showPercentInToolTip?w:T,F=b!==n.BLANKSTRING?b+K.tooltipSepChar+N:N),V=U.pointHoverOptions(e,{color:G,alpha:M,borderColor:R,borderAlpha:_,borderWidth:re}),E={displayValue:S,origValue:S,displayValueArgs:O,style:n.parsexAxisStyles.apply(this,[e,{},ee,ie,D]),appliedStyle:x.apply(this,[e,ee]),name:b,categoryLabel:b,rawColor:G,rawAlpha:M,toolText:F,legendCosmetics:n.UNDEF,legendItemId:P||j&&j.legendItemId,showInLegend:n.UNDEF,y:m,shadow:ae,smartTextObj:k,legendColor:H,color:D,alpha:M,legendiconalpha:W,legendiconbgalpha:z,borderColor:(0,n.convertColor)(R,_),plotBorderColor:R,plotBorderAlpha:_,borderWidth:re,link:(0,n.getValidValue)(e.link),isSliced:C,doNotSlice:!K.enableSlicing,hoverEffects:V.enabled&&V.options,labellink:B,rolloverProperties:V.enabled&&V.rolloverOptions,minplotheightforvalue:oe,showValue:r,id:L,patternAttr:{patternType:s,patternAngle:u,patternDensity:d,patternSize:h,patternAlpha:g,patternBgColor:p,color:D,alpha:M,x:0,y:0}},j.configure(E)},a.drawLabel=function(){var e,t,a,o,r,i,l,c,u,d,h,g,p,f,m,b,x=this,w=x.index,T=x.getLinkedParent(),y=T.getFromEnv("chart"),S=T.getFromEnv("animationManager"),A=T.getFromEnv("toolTipController"),F=T.config,N=y.getChildContainer("datalabelsGroup"),E=T.getChildren("data"),L=x.displayValue,D=x.plot||{},M=x.getGraphicalElement("dataLabel"),R=x.getGraphicalElement("connector"),_=!M,I=x.labelY,V=x.labelX,O=x.style||{},P=(0,n.pluckNumber)(parseInt(O.fontSize,10),F.baseFontSize),G="funnel"===T.getName(),B=F.lineHeight,H=.3*P,W=.3*B,z=F.showLabelsAtCenter,j=x.setRolloverAttr,U=F.connectorEndSwitchHistoryY,X=F.labelDistance,K=F.blankSpace,Y=F.streamLinedData,J=x.shapeArgs,q=!J||J.h>x.minplotheightforvalue;if(!x.displayValue||G&&!F.streamLinedData&&!w)return M&&S.setAnimation({el:M,component:T,callback:C,doNotRemove:!0}),void(R&&S.setAnimation({el:R,component:T,callback:C,doNotRemove:!0}));r=T.config.labelDrawingConfig[w],a=r.actions,e=x.y,t={"stroke-width":F.dataConnectorStyle.connectorWidth,stroke:F.dataConnectorStyle.connectorColor,transform:r.transform},r.args.cursor=x.labellink?"pointer":"default",r.args&&r.css&&(r.args.fill=r.css.color||r.css.fill),null!==e&&e!==n.UNDEF&&J?(o=!(G&&0===w&&F.streamLinedData),x.plot&&(M&&M.removeCSS(k),(M=S.setAnimation({el:M||"text",label:"dataLabel",attr:r.args,css:r.css,container:N,component:T})).outlineText(F.showTextOutline,r.args.fill),x.addGraphicalElement("dataLabel",M),R=S.setAnimation({el:R||"path",attr:o&&t,container:N,callback:function(){F.showLabelsAtCenter&&this.hide()},component:T,label:"connector"}),o&&x.addGraphicalElement("connector",R)),A.enableToolTip(M,x.originalText),_||(x.labelClickFn&&M.off("fc-click",x.labelClickFn),x.actionsClick&&M.off("fc-click",x.actionsClick)),u={index:x.index,link:x.link,value:x.y,displayValue:x.displayValueArgs,categoryLabel:x.categoryLabel,dataIndex:x.index||n.BLANK,toolText:x.toolText,label:x.categoryLabel,color:x.rawColor,alpha:x.rawAlpha,showValue:x.showValue,isSliced:x.isSliced,borderColor:x.plotBorderColor,borderAlpha:x.plotBorderAlpha,hoverColor:j.color,hoverAlpha:j.opacity,borderHoverColor:j.rawBorderColor,borderHoverAlpha:j.borderAlpha,borderHoverThickness:j["stroke-width"],id:x.id},M.data(v,u),x.labellink&&M.on("fc-click",(m=M,b=x.labellink,x.labelClickFn=function(){s.labelClickFn.call(m,y,b)},x.labelClickFn)),!x.doNotSlice&&M.on("fc-click",(f=r.context,x.actionsClick=function(){a.click.call(f)},x.actionsClick)),_&&M.hover(a.hover[0],a.hover[1])):(M?(M.removeCSS(k),M&&S.setAnimation({el:M,attr:r.args,component:T}),M&&M.css(r.css)):(M=S.setAnimation({el:"text",label:"dataLabel",attr:r.args,css:r.css,container:N,component:T}),x.addGraphicalElement("dataLabel",M)),M.outlineText(F.showTextOutline,r.args.fill)),z?(p=0===w&&Y?I-W+(E[1].plot.distanceAvailed||0):I-W+(D.distanceAvailed||0),L!==n.BLANKSTRING?(S.setAnimation({el:M,attr:{transform:["t",V,p]},component:T}),M.show()):M&&S.setAnimation({el:M,component:T}),!q&&x.getGraphicalElement("dataLabel")&&x.getGraphicalElement("dataLabel").hide()):(i=I-H-x.distributionFactor*B,l=I-H,c=U[x.alignmentSwitch],F.lastplotY!==n.UNDEF&&c!==n.UNDEF&&c-l<B&&(I=l=c-B),x.displayValue&&(U[x.alignmentSwitch]=l),F.lastplotY=x.plotY,h=F.labelAlignment===F.alignmentType.alternate&&x.alignmentSwitch?(d=V+K+x.virtualWidth)+X+x.distributionFactor*F.globalMinXShift:(d=V-K)-(X-(x.lOverflow||0))-x.distributionFactor*F.globalMinXShift,void 0===L||L===n.BLANKSTRING||G&&0===w&&Y?R&&S.setAnimation({el:R,component:T}):(g=["M",h,i,"L",d,l],S.setAnimation({el:R,state:"transform",label:"connector",attr:{path:g,"shape-rendering":i===l&&l<1?"crisp":n.BLANK},component:T}),R.show()),p=0===w&&Y?I+(E[1].plot.dy||0):l+(D.dy||0),L!==n.BLANKSTRING?(S.setAnimation({el:M,state:"transform",attr:{transform:["t",V,p]},component:T,label:"dataLabel"}),M.show()):M&&S.setAnimation({el:M,component:T})),M.attr({"text-bound":[O.backgroundColor,O.borderColor,O.borderThickness,O.borderPadding,O.borderRadius,O.borderDash]})},a.drawTracker=function(){var e,t,a,o,r,i=this,l=i.getLinkedParent(),s=l.getFromEnv("chart"),c=s.getFromEnv("paper"),u=s.getChildContainer("trackerGroup"),g=+new Date;i&&(a=i.getGraphicalElement("graphic"),t=i.getGraphicalElement("trackerObj"),a&&(e=a.Shapeargs.silhuette,o=i.setRolloverAttr,r={index:i.index,link:i.link,value:i.y,displayValue:i.displayValueArgs,categoryLabel:i.categoryLabel,dataIndex:i.index||n.BLANK,toolText:i.toolText,label:i.categoryLabel,color:i.rawColor,alpha:i.rawAlpha,showValue:i.showValue,isSliced:i.isSliced,borderColor:i.plotBorderColor,borderAlpha:i.plotBorderAlpha,hoverColor:o.color,hoverAlpha:o.opacity,borderHoverColor:o.rawBorderColor,borderHoverAlpha:o.borderAlpha,borderHoverThickness:o["stroke-width"],id:i.id},l.config.usePattern&&(r.pattern={patternType:i.patternAttr.patternType,patternColor:i.patternAttr.color,patternBgColor:i.patternAttr.patternBgColor===b?n.UNDEF:i.patternAttr.patternBgColor},delete r.color),i.datasetIndex=i.index,t?t.attr({path:e,isTracker:g,fill:b,stroke:m,transform:"t0,"+(i.plot._startTranslateY||0),cursor:i.link?d:h}):(t=c.path(e,u).attr({isTracker:g,fill:b,stroke:m,transform:"t0,"+(i.plot._startTranslateY||0),cursor:i.link?d:h}),i.addGraphicalElement("trackerObj",t)),t.data(v,r),t.show()))},a.syncDraw=function(){var e=this;e.fireEvent("predraw"),e.removeJob("draw"),e.getState("removed")?e.removingDraw():e.drawPlots&&e.drawPlots(),e.addExtEventListener("animationComplete",e.__remove,e.getFromEnv("animationManager")),e.childrenSyncDraw(),e.setState("dirty",!1),e.setState("parentChanged",!1),e.addJob("draw-complete",(function(){e.fireEvent("drawn")}),u.priorityList.instant)},t}(l.ComponentInterface);t["default"]=w},1569:(e,t,a)=>{var o=a(269);t.__esModule=!0,t["default"]=void 0;var r=o(a(288)),i=o(a(1565)),l=a(274),n="pointer",s=l.preDefStr.POSITION_START,c=l.preDefStr.POSITION_END,u=l.preDefStr.POSITION_MIDDLE,d={right:c,left:s,middle:u,start:s,end:c,center:u,undefined:l.BLANK,BLANK:l.BLANK},h=function(e){function t(){return e.apply(this,arguments)||this}(0,r["default"])(t,e);var a=t.prototype;return a.configure=function(e){for(var t in void 0===e&&(e={}),e)this[t]=e[t];this.upperRadiusFactor=0},a.getType=function(){return"data"},a.getName=function(){return"pyramidpoint"},a.getModifiedCurrentValue=function(e){return e+this.y/2},a.getRatioK=function(e,t){var a=e.config;return t?t/a.sumValue:1},a.getLowestRadiusFactor=function(){return 1},a.allocatePosition=function(){},a.drawPlots=function(){var e,a,o,r,i,s,c,u,h=this,g=h.index,p=h.getLinkedParent(),f=p.config,m=p.getFromEnv("toolTipController"),v=h.y,b=h.displayValue,k=f.isSliced,C=l.BLANK,x=p.getFromEnv("chart"),w=p.getFromEnv("animationManager"),T=x.getChildContainer("trackerGroup"),y=x.getChildContainer("datalabelsGroup"),S=x.getChildContainer().plotGroup,A=h.plot,F=!!h.link,N=f.pointInContext,E=f.distanceAvailed,L=h.labelAline,D=h.appliedStyle,M=this.hoverHandler,R=h.style,_=h.setRolloutAttr,I=h.setRolloverAttr,V=h.rolloverProperties,O={},P=p.config.labelDrawingConfig;if(h instanceof t||(r=h,(h=new N).configure(r),p.components.data[g]=h),f.prevIs2d&&f.prevIs2d!==f.is2d&&(w.setAnimation({el:S,attr:{opacity:1},component:p}),w.setAnimation({el:y,attr:{opacity:1},component:p})),c=D&&D.color||R&&R.color||p._chartLevelAttr.color,e=k?1:h.isSliced,s={text:b,direction:C,cursor:F?n:l.BLANK,x:0,y:0,fill:c,"text-anchor":d[L]},null!=v&&h.shapeArgs)return o=h.getGraphicalElement("graphic"),i=h.getGraphicalElement("trackerObj"),!_&&(h.setRolloutAttr=_={}),!I&&(h.setRolloverAttr=I={}),h.hoverEffects?(_.color=h.rawColor,_.opacity=h.rawAlpha,_["stroke-width"]=h.borderWidth,_.stroke=h.borderColor,I.color=V.color,I.opacity=V.alpha,I["stroke-width"]=V.borderWidth,I.stroke=V.borderColor,I.rawBorderColor=V.rawBorderColor,I.borderAlpha=V.borderAlpha):(_=h.setRolloutAttr={},I=h.setRolloverAttr={}),A?(h.shapeArgs.graphics=o,o=p.pyramidFunnelShape(h.shapeArgs),h.addGraphicalElement("graphic",o),w.setAnimation({el:o,attr:{fill:h.color,"stroke-width":h.borderWidth,stroke:h.borderColor},component:p}),o.show(),P[g]=u={args:s,css:D,point:h}):(h.shapeArgs.graphics=A,h.plot=A={},o=p.pyramidFunnelShape(h.shapeArgs).attr({fill:h.color,"stroke-width":h.borderWidth,stroke:h.borderColor}),i=w.setAnimation({el:"path",container:T,component:p}).on("fc-click",p.plotMouseUp,O).hover(M,M),h.addGraphicalElement("graphic",o),h.addGraphicalElement("trackerObj",i),P[g]=u={args:s,css:D,point:h}),o.lighterHalf&&o.lighterHalf.addPattern(h.patternAttr,f.usePattern),o.darkerHalf&&o.darkerHalf.addPattern(h.patternAttr,f.usePattern),f.showTooltip?m.enableToolTip(i,h.toolText):m.disableToolTip(i),A.value=v,A.displayValue=b,A.sliced=!!e,A.cursor=F?n:l.BLANK,A.x=h.x,A.index=g,O.datasetStore=p,O.plotItem=A,i.off("fc-click",p.slice),!h.doNotSlice&&i.on("fc-click",p.slice,O),u.context=O,u.actions={click:p.slice,hover:[M,M]},A.dy=0,f.noOfGap?(E&&(A._startTranslateY=a="t0,"+E,A.dy=A.distanceAvailed=E),f.slicingGapPosition[h.x]&&(f.distanceAvailed-=f.perGapDistance)):A._startTranslateY=a="t0,0",w.setAnimation({el:o,attr:{transform:a},component:p}),u.transform=a,A;P[g]=u={args:s,css:D,point:h}},t}(i["default"]),g=h;t["default"]=g},1563:(e,t)=>{t.__esModule=!0,t["default"]=void 0;var a={initialAttr:{opacity:0},finalAttr:{opacity:1},slot:"final"},o=function(){return{"connector.appearing":function(){return[a]},"connector.transform":function(e){return[{initialAttr:{path:e.attr.path},finalAttr:{path:e.attr.path}}]},"dataLabel.appearing":function(){return[a]},"dataLabel.transform":function(e){return[{initialAttr:{transform:e.attr.transform},finalAttr:{transform:e.attr.transform}}]},"path.appearing":function(){return[Object.assign({},a,{slot:"plot"})]}}},r={"initial.dataset.funnel":o,"initial.dataset.pyramid":o};t["default"]=r},1562:(e,t,a)=>{var o=a(269);t.__esModule=!0,t["default"]=void 0;var r,i=o(a(292)),l=o(a(288)),n=a(274),s=a(290),c=a(649),u=o(a(1563)),d=a(282),h=["line","circle","square"],g=n.preDefStr.showHoverEffectStr,p="none",f="fill",m="normal",v=Math,b=v.round,k=v.ceil,C=v.max,x=v.min,w=v.pow,T=v.sqrt,y={},S=n.preDefStr.colors.c000000,A=n.preDefStr.POSITION_START,F=n.preDefStr.POSITION_MIDDLE,N="path",E="0,100",L="eventArgs",D=window,M=D.navigator.userAgent,R=/msie/i.test(M)&&!D.opera,_=n.regex.hexcode,I="rgba(192,192,192,"+(R?.002:1e-6)+")",V=n.regex.dropHash,O=function(e){return"object"==typeof e},P=function(e){return"string"==typeof e},G=function(e){return e!==r&&null!==e},B=function(e){return{formattedValue:e.formatedVal,label:e.name,percentValue:e.pValue,sum:e.sum,unformattedSum:e.sumValue}},H="M",W="L",z="Z",j=n.regex.startsRGBA,U=function(e){var t,a,o=[];return(t=/rgba\(\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*,\s*([0-9]?(?:\.[0-9]+)?)\s*\)/.exec(a=e))?o=[parseInt(t[1],10),parseInt(t[2],10),parseInt(t[3],10),parseFloat(t[4])]:(t=/#([a-fA-F0-9]{2})([a-fA-F0-9]{2})([a-fA-F0-9]{2})/.exec(a))&&(o=[parseInt(t[1],16),parseInt(t[2],16),parseInt(t[3],16),1]),{get:function(t){return o&&!isNaN(o[0])?"rgb"===t?"rgb("+o[0]+","+o[1]+","+o[2]+")":"hex"===t?"#"+(S+(o[0]<<16|o[1]<<8|o[2]).toString(16)).slice(-6):"a"===t?o[3]:"rgba("+o.join(",")+")":e},brighten:function(e){var t;if(!isNaN(e)&&0!==e)for(t=0;t<3;t++)o[t]+=parseInt(255*e,10),o[t]<0&&(o[t]=0),o[t]>255&&(o[t]=255);return this},setOpacity:function(e){return o[3]=e,this}}};(0,d.addDep)({name:"funnelPyramidBaseAnimation",type:"animationRule",extension:u["default"]});var X=function(e){(0,l["default"])(a,e);var t=a.prototype;function a(){var t,a,o,r,l,s,c;return(t=e.call(this)||this).components={},t.utils=function(e){var t=e;function a(){var e=[],t=0;this.set=function(a,o){t++,e[a]=o},this.get=function(t){return e[t]},this.getAll=function(){return e},this.mergeWith=function(t){var o,r,i,l=e.slice(0);if(t instanceof Array)o=t;else{if(!(t instanceof a))return;o=t.getAll()}for(r in o)i=o[r],l[r]||(l[r]=i);return l},this.getEffectiveLength=function(){return t}}function o(e){this.distributionLength=e,this.distributedMatrix=[],this.altDistributedMatrix=[],this.nonDistributedMatrix={},this.forcePushObj={},this.flags={exhaustion:!1}}return a.prototype.constructor=a,o.prototype.constructor=o,o.prototype.push=function(e,t){this.nonDistributedMatrix[t]=this.nonDistributedMatrix[t]||[],this.nonDistributedMatrix[t].push(e)},o.prototype.forcePush=function(e,t){this.forcePushObj[t]=e},o.prototype.distribute=function(e){var o,r,i,l,s,c,u,d=t,h=!0,g=new a,p=new a,f=new a,m=new a,v=this.flags,b=0,k=d.getDataLength();if(e){if(k-this.distributionLength>0)for(i in this.nonDistributedMatrix)for(o=this.nonDistributedMatrix[i],s=1;s<o.length;s++)(u=o[s]).dontPlot=!0,u.displayValue=n.BLANK}else if(k-2*this.distributionLength>0)for(i in this.nonDistributedMatrix)for(o=this.nonDistributedMatrix[i],s=1;s<o.length-1;s++)(u=o[s]).dontPlot=!0,u.displayValue=n.BLANK;if(k>this.distributionLength&&!e){for(i in v.exhaustion=!0,this.nonDistributedMatrix)for(s=0,c=(o=this.nonDistributedMatrix[i]).length;s<c;s++)(u=o[s]).dontPlot?r=h?f:m:(r=h?g:p).getEffectiveLength()>parseInt(i,10)?u.distributionFactor=r.getEffectiveLength()-1-i:u.distributionFactor=0,r.set(b++,u),h=!h;this.distributedMatrix=g.mergeWith(f),this.altDistributedMatrix=p.mergeWith(m)}else{for(l in this.nonDistributedMatrix)for(s=0,c=(o=this.nonDistributedMatrix[l]).length;s<c;s++)(u=o[s]).dontPlot?r=f:(r=g).getEffectiveLength()>parseInt(l,10)?u.distributionFactor=r.getEffectiveLength()-1-l:u.distributionFactor=0,r.set(b++,u);this.distributedMatrix=g.mergeWith(f)}},o.prototype.getDistributedResult=function(){var e,a=t,o=a.getFromEnv("chart"),r=o.config,i=o.getFromEnv("legend"),l=a.config,n=l.alignmentType,s=[],c=o.isLegendRight;r.width,l.blankSpace;return r.showLegend&&i.config.width?c&&i.config.width+r.marginRight:c=0,o.isLegendRight=c,this.distribute(c),c?(e=n["default"],s.push(this.distributedMatrix)):(e=this.flags.exhaustion?n.alternate:n["default"],this.flags.exhaustion?[].push.call(s,this.distributedMatrix,this.altDistributedMatrix):s.push(this.distributedMatrix)),{forceMatrix:this.forcePushObj,suggestion:e,matrix:s}},{DistributionMatrix:o,setContext:function(e){t=e},invokeHookFns:function(){var e,a=[],o=t;switch(arguments.length){case 3:o=arguments[2];case 2:a=arguments[1];case 1:e=arguments[0];break;default:return}e&&"function"==typeof e&&e.apply(o,a)},copyProperties:function(e,a,o){var r,i,l,s,c,u,d,h,g,p,f=n.stubFN;for(r=0,i=o.length;r<i;r++)s=(l=o[r])[0],c=l[1],u=l[2],g=l[3],p=void 0,d="string"==typeof g&&0===g.indexOf("$")?(p=g.substring(1),a[p]):"function"==typeof g?g.call(t,a):g,h=l[4]||f,a[c]=u(e[s],d),h(a)},sortObjArrByKey:function(e,t){return e.sort((function(e,a){return Math.abs(a[t])-Math.abs(e[t])}))},getSumValueOfObjArrByKey:function(e,t){var a,o,r=0;for(a=0,o=e.length;a<o;a++)r+=parseFloat(e[a][t],10);return r}}},t.hide=function(e,t){var a,o,r=this.getFromEnv("animationManager"),i=function(){this.hide()},l=t;if(e&&0!==e.length)for(l=l<2&&"funnel"===this.getName()?0:l,a=e.length-1;a>=l;a--)(o=e[a].getGraphicalElement()).graphic&&(o.graphic.front&&r.setAnimation({el:o.graphic.front,callback:i,component:this}),o.graphic.back&&r.setAnimation({el:o.graphic.back,callback:i,component:this}),o.graphic.funnel2D&&r.setAnimation({el:o.graphic.funnel2D,callback:i,component:this}),o.graphic.lighterHalf&&r.setAnimation({el:o.graphic.lighterHalf,callback:i,component:this}),o.graphic.darkerHalf&&r.setAnimation({el:o.graphic.darkerHalf,callback:i,component:this}),o.graphic.borderElement&&r.setAnimation({el:o.graphic.borderElement,callback:i,component:this}),o.graphic.centerLight&&r.setAnimation({el:o.graphic.centerLight,callback:i,component:this}),o.graphic.centerLight1&&r.setAnimation({el:o.graphic.centerLight1,callback:i,component:this}),o.graphic.toptop&&r.setAnimation({el:o.graphic.toptop,callback:i,component:this}),o.graphic.topLight&&r.setAnimation({el:o.graphic.topLight,callback:i,component:this}),o.graphic.topLight1&&r.setAnimation({el:o.graphic.topLight1,callback:i,component:this})),o.dataLabel&&r.setAnimation({el:o.dataLabel,callback:i,component:this}),o.trackerObj&&r.setAnimation({el:o.trackerObj,callback:i,component:this})},t.pyramidFunnelShape=(a={y:!0,R1:!0,R2:!0,h:!0,r3dFactor:!0,color:!0,opacity:!0,fill:!0,stroke:!0,strokeColor:!0,strokeAlpha:!0,"stroke-width":!0},o=function(e,t,a,o,r,i){return["A",a,o,0,i,r,e,t]},r=function(e,t,a,r,i,l,n){var s,c=a*l,u=r*l,d=function(e,t,a,o,r,i){var l,n,s,c,u,d,h,g=w(o,2)-w(e,2),p=-2*(w(o,2)*a-w(e,2)*i),f=w(e*r,2)+w(o*a,2)-w(o*t,2)-w(e*i,2),m=T(w(p,2)-4*g*f),v=(-p+m)/(2*g),k=(-p-m)/(2*g),C=100;for(h in v<i&&v>a?n=k:k<i&&k>a&&(n=v),c=-(s=T((w(n-a,2)-w(t,2))/w(e,2))),u={x:b(w(e,2)*s/(n-a)*C)/C,y:b((w(t,2)/(n-a)+a)*C)/C},d={x:b(w(o,2)*s/(n-i)*C)/C,y:b((w(r,2)/(n-i)+i)*C)/C},l={topLeft:{x:b(w(e,2)*c/(n-a)*C)/C,y:b((w(t,2)/(n-a)+a)*C)/C},bottomLeft:{x:b(w(o,2)*c/(n-i)*C)/C,y:b((w(r,2)/(n-i)+i)*C)/C},topRight:u,bottomRight:d})(isNaN(l[h].x)||isNaN(l[h].y))&&(l[h].x="topLeft"===h||"bottomLeft"===h?-e:e,l[h].y="bottomRight"===h||"bottomLeft"===h?i:a);return l}(a,c,t,r,u,t+i),h=d.topLeft,g=d.bottomLeft,p=d.topRight,f=d.bottomRight,m=e+h.x,v=e+p.x,k=e+g.x,C=e+f.x,x=h.y,y=g.y,S=o(v,x,a,c,0,0),A=o(v,x,a,c,1,1),F=o(k,y,r,u,1,0),N=o(k,y,r,u,0,1);return s={front:[H,m,x].concat(S,[W,C,y],F,[z]),back:[H,m,x].concat(A,[W,C,y],N,[z]),silhuette:[H,m,x].concat(A,[W,C,y],F,[z])},n||(s.top=[H,m,x].concat(S,[W,v,x],o(m,x,a,c,0,1),[z])),s},l=function(e,t,a,o,i,l,n,s,c,u){var d=e,h=t,g=a,p=o,f=i,m=l,v=n,b=c,k=u;O(d)&&(h=d.y,g=d.R1,p=d.R2,f=d.h,m=d.r3dFactor,v=d.is2D,k=d.isHollow,b=d.isFunnel,d.renderer,d=d.x);var C,w,T,y,S,A,F,N=d-g,E=d+g,L=d-p,D=d+p,M=h+f;return v?(C={silhuette:[H,N,h,W,E,h,D,M,L,M,z]},b||(d=Math.round(d),C.lighterHalf=[H,N,h,W,d,h,d,M,L,M,z],C.darkerHalf=[H,d,h,W,E,h,D,M,d,M,z])):b?C=r(d,h,g||.01,p||.01,f,m,k):(w=g*m,T=p*m,y=x(5,g),S=x(2,2*w),A=x(2,S),C={top:[H,N,h,W,d,h+w,E,h,d,h-w,z],front:[H,N,h,W,d,h+w,E,h,D,M,d,M+T,L,M,z],topLight:[H,N,h+.5,W,d,h+w+.5,d,h+w-S,N+(F=A/m),h,z],topLight1:[H,E,h+.5,W,d,h+w+.5,d,h+w-A,E-F,h,z],silhuette:[H,N,h,W,d,h-w,E,h,D,M,d,M+T,L,M,z],centerLight:[H,d,h+w,W,d,M+T,d-5,M+T,d-y,h+w,z],centerLight1:[H,d,h+w,W,d,M+T,d+5,M+T,d+y,h+w,z]}),C},s=function(e,t){var o,r,i,s,c,u,d,h,g,p,m,v,b,k,C,x=this,w=!1,T=!1,y=this._3dAttr,S=e;if(P(S)&&G(t)&&(o=S,(S={})[o]=t),P(S))x=a[S]?this._3dAttr[S]:this._attr(S);else{for(o in S)r=S[o],a[o]?(y[o]=r,o===f?(r&&r.linearGradient&&r.stops&&r.stops[0]&&(r=r.stops[0][1]),j.test(r)?(i=(c=new U(r)).get("hex"),s=100*c.get("a")):r&&r.FCcolor?(i=r.FCcolor.color.split(n.COMMASTRING)[0],s=r.FCcolor.opacity.split(n.COMMASTRING)[0]):_.test(r)&&(i=r.replace(V,n.HASHSTRING),s=(0,n.pluckNumber)(y.opacity,100)),y.color=i,y.opacity=s,T=!0):"color"===o||"opacity"===o?(y.fill=(0,n.toRaphaelColor)((0,n.convertColor)(y.color,(0,n.pluckNumber)(y.opacity,100))),T=!0):"stroke"===o||"strokeColor"===o||"strokeAlpha"===o?y.is2D&&("stroke"===o?(r&&r.linearGradient&&r.stops&&r.stops[0]&&(r=r.stops[0][1]),j.test(r)?(i=(c=new U(r)).get("hex"),s=100*c.get("a")):r&&r.FCcolor?(i=r.FCcolor.color.split(n.COMMASTRING)[0],s=r.FCcolor.opacity.split(n.COMMASTRING)[0]):_.test(r)&&(i=r.replace(V,n.HASHSTRING),s=(0,n.pluckNumber)(y.opacity,100)),y.strokeColor=i,y.strokeAlpha=s):y.stroke=(0,n.convertColor)(y.strokeColor,(0,n.pluckNumber)(y.strokeAlpha,100)),y.isFunnel?this.funnel2D.attr("stroke",y.stroke):this.borderElement.attr("stroke",y.stroke)):"stroke-width"===o?y.is2D&&(y.isFunnel?this.funnel2D.attr(o,r):this.borderElement.attr(o,r)):w=!0):this._attr(o,r);y.is2D?(w&&(g=l(y.x,y.y,y.R1,y.R2,y.h,y.r3dFactor,y.is2D),x.shadowElement.attr({path:g.silhuette}),y.isFunnel?x.funnel2D.attr({path:g.silhuette}):(x.lighterHalf.attr({path:g.lighterHalf}),x.darkerHalf.attr({path:g.darkerHalf}),x.borderElement.attr({path:g.silhuette}))),T&&(y.isFunnel?x.funnel2D.attr(f,(0,n.toRaphaelColor)((0,n.convertColor)(y.color,(0,n.pluckNumber)(y.opacity,100)))):(!1===y.use3DLighting?p=m=y.color:(p=(0,n.getDarkColor)(y.color,80),m=(0,n.getLightColor)(y.color,80)),x.lighterHalf.attr(f,(0,n.toRaphaelColor)((0,n.convertColor)(m,(0,n.pluckNumber)(y.opacity,100)))),x.darkerHalf.attr(f,(0,n.toRaphaelColor)((0,n.convertColor)(p,(0,n.pluckNumber)(y.opacity,100))))))):(w&&(g=l(y.x,y.y,y.R1,y.R2,y.h,y.r3dFactor,y.is2D),x.shadowElement.attr(N,g.silhuette),y.isFunnel?(x.front.attr(N,g.front),x.back.attr(N,g.back),x.toptop&&g.top&&x.toptop.attr(N,g.top)):(x.front.attr(N,g.front),x.toptop.attr(N,g.top),x.topLight.attr(N,g.topLight),x.topLight1.attr(N,g.topLight1),x.centerLight.attr(N,g.centerLight),x.centerLight1.attr(N,g.centerLight1))),T&&(i=y.color,s=y.opacity,y.isFunnel?(u=(0,n.getLightColor)(i,60),h=(0,n.getDarkColor)(i,60),x.back.attr(f,(0,n.toRaphaelColor)({FCcolor:{color:h+n.COMMASTRING+u+n.COMMASTRING+i,alpha:s+n.COMMASTRING+s+n.COMMASTRING+s,ratio:"0,60,40",angle:0}})),x.front.attr(f,(0,n.toRaphaelColor)({FCcolor:{color:i+n.COMMASTRING+u+n.COMMASTRING+h,alpha:s+n.COMMASTRING+s+n.COMMASTRING+s,ratio:"0,40,60",angle:0}})),x.toptop&&x.toptop.attr(f,(0,n.toRaphaelColor)({FCcolor:{color:u+n.COMMASTRING+h,alpha:s+n.COMMASTRING+s,ratio:E,angle:-65}}))):(u=(0,n.getLightColor)(i,80),d=(0,n.getLightColor)(i,70),h=(0,n.getDarkColor)(i,80),v=E,b="0,"+s,k=i+n.COMMASTRING+d,C=5/(y.R1*y.r3dFactor)*100,x.centerLight.attr(f,(0,n.toRaphaelColor)({FCcolor:{color:k,alpha:b,ratio:v,angle:0}})),x.centerLight1.attr(f,(0,n.toRaphaelColor)({FCcolor:{color:k,alpha:b,ratio:v,angle:180}})),x.topLight.attr(f,(0,n.toRaphaelColor)({FCcolor:{color:d+n.COMMASTRING+d+n.COMMASTRING+i+n.COMMASTRING+i,alpha:s+n.COMMASTRING+s+n.COMMASTRING+0+n.COMMASTRING+0,ratio:"0,50,"+C+n.COMMASTRING+(50-C),angle:-45}})),x.topLight1.attr(f,(0,n.toRaphaelColor)({FCcolor:{color:d+n.COMMASTRING+i+n.COMMASTRING+h,alpha:s+n.COMMASTRING+s+n.COMMASTRING+s,ratio:"0,50,50",angle:0}})),x.front.attr(f,(0,n.toRaphaelColor)({FCcolor:{color:i+n.COMMASTRING+i+n.COMMASTRING+h+n.COMMASTRING+h,alpha:s+n.COMMASTRING+s+n.COMMASTRING+s+n.COMMASTRING+s,ratio:"0,50,0,50",angle:0}})),x.toptop.attr(f,(0,n.toRaphaelColor)({FCcolor:{color:u+n.COMMASTRING+i+n.COMMASTRING+h+n.COMMASTRING+h,alpha:s+n.COMMASTRING+s+n.COMMASTRING+s+n.COMMASTRING+s,ratio:"0,25,30,45",angle:-45}})))))}return x},c=function u(){var e=this.shadowElement;u&&e.shadow.apply(e,arguments)},function(e,t,a,o,r,i,u,d,h,g,f,m){var v,b,k,C,x,w,T,S,A=this,F=A.getFromEnv("chart").getChildContainer().plotGroup,N=A.config.oldLastData,E=e,L=t,D=a,M=o,R=r,_=i,V=u,P=d,G=h,B=g,H=f,W=m;return O(E)&&(L=E.y,D=E.R1,M=E.R2,R=E.h,_=E.r3dFactor,V=E.gStr,P=E.is2D,W=E.use3DLighting,G=E.renderer,H=E.isHollow,B=E.isFunnel,T=E.graphics,E=E.x),(C=function(e,t){var a,o,r,i,l,n=["silhuette","lighterHalf","darkerHalf","centerLight","centerLight1","front","toptop","topLight","topLight1","shadowElement","funnel2D","borderElement","back"];if(e){if((i=e._3dAttr).isFunnel===t.isFunnel&&i.is2D===t.is2D&&i.isHollow===t.isHollow)return e;for(o=0,l=n.length;o<l;o++)(a=e[r=n[o]])&&(delete e[r],a.remove());return e}}(T,v={x:E,y:L,R1:D,R2:M,h:R,r3dFactor:_=(0,n.pluckNumber)(_,.15),is2D:P,use3DLighting:W,isHollow:H,isFunnel:B,renderer:G})||G.group(V,F)).toFront(),(!C.front&&!P||!C.funnel2D&&!C.lighterHalf&&P)&&A.getState("notInitial")&&A.config.prevIs2d===v.is2D?(k=l(v),N.y=N.y+N.h,N.R1=N.R2,N.h=0,b=l(N)):(b=l(v),A.getState("notInitial",!0)),(w=Object.assign({},v)).y=w.y+w.h,w.R1=w.R2,w.h=0,x=l(w),C.squeezedFormPathObj=x,C.Shapeargs=k||b,S=function(e,t){var a=e.getFromEnv("chart");return function(o,r,i){void 0===i&&(i=y);var l=t[o];return l?(a.getFromEnv("animationManager").setAnimation({el:l,attr:{path:r},component:e}),l):(e.postPlotCallback(),a.getFromEnv("animationManager").setAnimation({el:"path",label:"path",attr:Object.assign({path:r},i),container:t,component:e}))}}(A,C),C.shadowElement=S("shadowElement",b.silhuette,{fill:I,stroke:p}),C._attr=C._attr||C.attr,C.attr=s,C.shadow=c,C._3dAttr=v,B?P?(C.funnel2D=S("funnel2D",b.silhuette),k&&(C.funnel2D=S("funnel2D",k.silhuette))):(C.back=S("back",b.back,{"stroke-width":0,stroke:p}),C.front=S("front",b.front,{"stroke-width":0,stroke:p}),k&&(C.back=S("back",k.back,{"stroke-width":0,stroke:p})),k&&(C.front=S("front",k.front,{"stroke-width":0,stroke:p})),b.top&&(C.toptop=S("toptop",b.top,{"stroke-width":0,stroke:p}),k&&(C.toptop=S("toptop",k.top,{"stroke-width":0,stroke:p})))):P?(C.lighterHalf=S("lighterHalf",b.lighterHalf,{"stroke-width":0}),k&&(C.lighterHalf=S("lighterHalf",k.lighterHalf,{"stroke-width":0})),C.darkerHalf=S("darkerHalf",b.darkerHalf,{"stroke-width":0}),k&&(C.darkerHalf=S("darkerHalf",k.darkerHalf,{"stroke-width":0})),C.borderElement=S("borderElement",b.silhuette,{fill:I,stroke:p}),k&&(C.borderElement=S("borderElement",k.silhuette,{fill:I,stroke:p}))):(C.front=S("front",b.front,{"stroke-width":0}),k&&(C.front=S("front",k.front,{"stroke-width":0})),C.centerLight=S("centerLight",b.centerLight,{"stroke-width":0}),k&&(C.centerLight=S("centerLight",k.centerLight,{"stroke-width":0})),C.centerLight1=S("centerLight1",b.centerLight1,{"stroke-width":0}),k&&(C.centerLight1=S("centerLight1",k.centerLight1,{"stroke-width":0})),C.toptop=S("toptop",b.top,{"stroke-width":0}),k&&(C.toptop=S("toptop",k.top,{"stroke-width":0})),C.topLight=S("topLight",b.topLight,{"stroke-width":0}),k&&(C.topLight=S("topLight",k.topLight,{"stroke-width":0})),C.topLight1=S("topLight1",b.topLight1,{"stroke-width":0}),k&&(C.topLight1=S("topLight1",k.topLight1,{"stroke-width":0}))),C}),t.config.legendItemIds=[],(0,t.utils((0,i["default"])(t)).invokeHookFns)(t.postInitHook),t}return t.getType=function(){return"dataset"},t.getName=function(){return"funnelPyramidBase"},t.trimData=function(e){c.trimData.call(this,e)},t.getDataLength=function(){var e,t=this.getChildren("data"),a=0,o=t.length;for(e=0;e<o;e++)t[e].getState("removed")||a++;return a},t.removeData=function(e,t,a){void 0===a&&(a=!1);var o,r,i,l=this,s=l.components,c=l.getChildren("data"),u=t,d=e;for(u=(0,n.pluckNumber)(u,1),d=(0,n.pluckNumber)(d,0),i=(o=s.removedDataArr=c.splice(d,u)).length,r=0;r<i;r++)o[r]||o.splice(r,1);a&&l.asyncDraw()},t.removePlots=function(){var e,t,a,o,r=this.components.removedDataArr;if(r)for(e=r.length-1;e>=0;e--){for(t in a=(o=r[e]).getGraphicalElement())o.removeGraphicalElement(a[t]);r.splice(e,1)}},t._configure=function(){var e=this,t=e.getFromEnv("chart"),a=e.getFromEnv("color-manager"),o=t.config,i=o.style,l=e.config||{},s=e.config.JSONData,c=s.data||[],u=t.getFromEnv("dataSource")?t.getFromEnv("dataSource").chart:{},d=e.utils(e),p=d.invokeHookFns,f=d.copyProperties,m=e.configureSpecifics,v=a.getColor("baseFontColor");f(u,l,[["showlabels","showLabels",n.pluckNumber,1],["showvalues","showValues",n.pluckNumber,1],["plottooltext","toolText",n.pluck,n.BLANK],["enableslicing","enableSlicing",n.pluckNumber,1],["plotfillalpha","plotFillAlpha",n.pluckNumber,100],["showplotborder","showPlotBorder",n.pluckNumber,0],["plotborderalpha","plotBorderAlpha",n.pluckNumber,r],["plotbordercolor","plotBorderColor",n.pluck,r],["plotborderthickness","plotBorderThickness",n.pluckNumber,1],["showshadow","showShadow",n.pluckNumber,1],["showhovereffect",g,n.pluckNumber,0],["hovercapsepchar","hoverCapSepChar",n.pluck,n.COMMASPACE],["tooltipsepchar","tooltipSepChar",n.pluck,"$hoverCapSepChar"],["labelsepchar","labelSepChar",function(){return(0,n.parseUnsafeString)(n.pluck.apply(void 0,arguments))},"$tooltipSepChar"],["showpercentintooltip","showPercentInToolTip",n.pluckNumber,1],["showpercentvalues","showPercentValues",n.pluckNumber,0],[n.BLANK,"blankSpace",n.pluckNumber,3],["labeldistance","labelDistance",n.pluckNumber,50],["issliced","isSliced",n.pluckNumber,0],["is2d","is2d",n.pluckNumber,0],[n.BLANK,"blankSpace",n.pluckNumber,3],["showlabelsatcenter","showLabelsAtCenter",n.pluckNumber,0],["smartlinethickness","connectorWidth",n.pluckNumber,1],["smartlinealpha","connectorAlpha",n.pluckNumber,100],["smartlinecolor","rawSmartLineColorCode",n.pluck,function(){return a.getColor("baseFontColor")}],["labelalpha","labelAlpha",n.pluckNumber,100],["basefont","baseFont",n.pluck,"Verdana,sans"],["basefontsize","baseFontSize",n.pluckNumber,10],["basefontcolor","baseFontColor",n.pluck,v],["labelfontcolor","labelFontColor",n.pluck,"$baseFontColor"],["showtooltip","showTooltip",n.pluckNumber,1],["percentofprevious","percentOfPrevious",n.pluckNumber,0],["animationduration","animationDuration",n.pluckNumber,1,function(e){e.animationDuration*=1e3}]]),l.usePattern=(0,n.pluckNumber)(o.usePattern,0),l.patternType=h.includes(s.patterntype)?s.patterntype:o.patternType,l.patternDensity=(0,n.pluckNumber)(s.patterndensity,o.patternDensity),l.patternAlpha=(0,n.pluckNumber)(s.patternalpha,o.patternAlpha),l.patternBgColor=(0,n.pluck)(s.patternbgcolor,I),l.usePattern&&(l.is2d=1,l.showPlotBorder=(0,n.pluck)(u.showplotorder,1),l.showHoverEffect=0),l.connectorColor=(0,n.convertColor)(l.rawSmartLineColorCode,l.connectorAlpha),l.origLabelDistance=l.labelDistance,(0,n.setLineHeight)(i),i.nLineHeight=i.lineHeight.match(/^\d+/)[0],f(i,l,[[n.BLANK,"lineHeight",n.pluckNumber,l.baseFontSize]]),l.isSliced&&(l.clicked=!0),delete i.nLineHeight,p(m),l.showLabels||l.showValues?l.datalabelDisabled=!1:l.datalabelDisabled=!0,e.getNormalizeDataSet(c)},t._preDrawingHook=function(){var e=this,t=e.getFromEnv("chart"),a=e.config,o=t.config,r=e.utils(e),i=t.getFromEnv("dataSource")?t.getFromEnv("dataSource").chart:{},l=o.canvasHeight;(0,r.copyProperties)(i,a,[[n.BLANK,"slicingDistance",n.pluckNumber,.1*l],["slicingdistance","slicingHeight",n.pluckNumber,"$slicingDistance",function(){a.slicingHeight>2*a.slicingDistance?a.slicingDistance=0:a.slicingDistance=a.slicingHeight}]])},t._checkValidData=function(e){var t=this.getFromEnv("chart");return!(!e||!e.length)||(t.setChartMessage(),!1)},t.addLegend=function(){var e,t,a,o,r,i=this,l=i.getFromEnv("chart"),s=0,c=l.getFromEnv("dataSource").chart,u=i.getChildren("data")||i.config.JSONData.data,d=l.getFromEnv("legend"),h=d.getChildren("legendItem");for(o=0;o<u.length;o++)if(t=(r=u[o]).config,r.pseudoPoint||r.getState("removed")||!r.label&&!r.categoryLabel){if(r.pseudoPoint)continue;r.categoryLabel,s++,t.legendItemId&&((h=d.getItem(t.legendItemId))&&d.disposeItem(h.getId()),delete t.legendItemId)}else e={type:i.getName(),label:r.label||r.categoryLabel,index:s,enabled:(0,n.pluckNumber)(c.includeinlegend,1),legendItemId:r.legendItemId,usePattern:i.config.usePattern,legendIconAlpha:(0,n.pluckNumber)(u[o].legendiconalpha),patternAttr:r.patternAttr},(h=d.getItem(t.legendItemId))||(a=d.createItem(i),r.config.legendItemId=a,(h=d.getItem(t.legendItemId)).addEventListener("fc-click",h.itemClickFn)),h.configure(e),s++,h.setStateCosmetics("default",{symbol:{bgAlpha:(0,n.pluckNumber)(u[o].legendiconbgalpha,u[o].legendiconalpha,c.legendiconbgalpha,c.legendiconalpha,u[o].alpha),borderAlpha:(0,n.pluckNumber)(u[o].legendiconborderalpha,u[o].legendiconalpha,c.legendiconborderalpha,c.legendiconalpha,"100"),fill:u[o].legendColor,rawFillColor:u[o].rawColor,stroke:(0,n.getLightColor)(u[o].rawColor,60).replace(V,n.HASHSTRING)}})},t.legendInteractivity=function(e){var t,a,o=this.getChildren("data"),r=e.getId();for(t=0,a=o.length;t<a;t++)if(o[t].config.legendItemId===r){this.legendClick({datasetStore:this,plotItem:o[t].plot},!0,!1);break}},t.getNormalizeDataSet=function(e){var t,a,o,r,i,l,s,c,u,d,h=this,g=h.getChildren("data")||[],f=h.getFromEnv("chart"),v=h.config,b=h.getFromEnv("smartLabel"),k=v.pointInContext,C=f.getFromEnv("dataSource").chart,x=v.dataConnectorStyle={},w=f.config.PLOT_COLOR_INDEX_START,T=0;if((0,n.extend2)(s=v.style={},f.config.style),v.noOFSlicedElement=0,s.borderDash=p,s.borderPadding=2,s.borderRadius=0,s.borderThickness=1,s.color=(0,n.convertColor)(v.labelFontColor,v.labelAlpha),s.fontFamily=v.baseFont,s.fontSize=v.baseFontSize+"px",s.fontSizeWithUnit=v.baseFontSize+"px",s.fontStyle=m,s.fontWeight=m,x.connectorWidth=v.connectorWidth,x.connectorColor=v.connectorColor,r=(c=h.datasetCalculations(e)).hasValidPoint,o=c.refreshedData,i=c.sumValue,d=+(!v.streamLinedData&&"funnel"===h.getName()),h._chartLevelAttr=n.parsexAxisStyles.apply(this,[{},{},C,s]),r)for(v.sumValue=i,l=o.length,(0,n.componentFactory)(h,k,"data",l+d),g=h.getChildren("data"),b.useEllipsesOnOverflow(f.config.useEllipsesWhenOverflow),t=0,T=d;t<l;t+=1,T+=1)a=o[t],(u=g[T]).getState("removed")||u.parseAndConfigurePoint(a,c,w++,t);d&&g[0]&&g[0].configure({displayValue:n.BLANK,y:v.sumValue,index:0})},t.datasetCalculations=function(e){var t,a,o,r,i=this.getFromEnv("number-formatter"),l={refreshedData:[]};for(l.sumValue=l.countPoint=0,l.highestValue=Number.NEGATIVE_INFINITY,t=0,a=e.length;t<a;t++)(o=e[t]).vline||(o.cleanValue=r=Math.abs(i.getCleanValue(o.value,!0)),null!==r&&(l.hasValidPoint=!0,l.highestValue=l.highestValue||r,l.refreshedData.push(o),l.sumValue+=r,l.countPoint+=1,l.highestValue=Math.max(l.highestValue,l.itemValue)));return l},t.pointHoverOptions=function(e,t){var a,o,i,l=this.config,s=this.getFromEnv("chart"),c=l.usePattern?0:(0,n.pluckNumber)(e.showhovereffect,l.showHoverEffect),u={enabled:c},d={},h=s.getFromEnv("dataSource")?s.getFromEnv("dataSource").chart:{};if(c||l.usePattern||(c=u.enabled=(0,n.pluck)(e.hovercolor,h.plotfillhovercolor,e.hoveralpha,h.plotfillhoveralpha,e.borderhovercolor,h.plotborderhovercolor,e.borderhoverthickness,h.plotborderhoverthickness,e.borderhoveralpha,h.plotborderhoveralpha)!==r),c){if(u.highlight=(0,n.pluckNumber)(e.highlightonhover,h.highlightonhover),u.color=(0,n.pluck)(e.hovercolor,h.plotfillhovercolor),u.alpha=(0,n.pluck)(e.hoveralpha,h.plotfillhoveralpha,t.alpha),u.borderColor=(0,n.pluck)(e.borderhovercolor,h.plotborderhovercolor,t.borderColor),u.borderThickness=(0,n.pluckNumber)(e.borderhoverthickness,h.plotborderhoverthickness,t.borderWidth),u.borderAlpha=(0,n.pluck)(e.borderhoveralpha,h.plotborderhoveralpha,t.borderAlpha),0!==u.highlight&&u.color===r&&(u.highlight=1),u.color=(0,n.pluck)(u.color,t.color).replace(/,+?$/,n.BLANK),1===u.highlight){for(o=(a=u.color.split(/\s{0,},\s{0,}/)).length,i=0;i<o;i+=1)a[i]=(0,n.getLightColor)(a[i],70);u.color=a.join(",")}d={color:u.color,alpha:+u.alpha,borderColor:(0,n.convertColor)(u.borderColor,u.borderAlpha),rawBorderColor:u.borderColor,borderAlpha:u.borderAlpha,borderWidth:u.borderThickness}}return{enabled:c,options:u,rolloverOptions:d}},t.getTooltipMacroStub=function(e){return B.call(this,e)},t.allocatePosition=function(){var e=this,t=e.getFromEnv("chart").config,a=e.config;t.style.fontSize=this.computeFontSize(t.style.fontSizeWithUnit),a.lineHeight=0===a.lineHeight?0:parseInt(e._chartLevelAttr.lineHeight,10),a.showLabelsAtCenter||"<br>"!==a.labelSepChar&&"<br/>"!==a.labelSepChar||(a.lineHeight=2*a.lineHeight),e._preDrawingHook(),a.sumValue&&(a.labelDrawingConfig=a.labelDrawingConfig||[],a.labelDrawingConfig.length=0,a.psmMargin={top:t.marginTop,bottom:t.marginBottom},e.preDrawingSpaceManagement())},t.preDrawingSpaceManagement=function(){var e,t,a,o,i,l,s,c,u,d,h,g,p,f,m,v,b,x,w,T,y,S,A,F,N,E=this,L=E.getFromEnv("chart"),D=L.config,M=L.getChildren("caption")[0],R=L.getChildren("subCaption")[0],_=M.config.height||0,I=R.config.height||0,V=E.config,O=V.showTooltip,P=V.slicingDistance,G=D.height-(D.marginTop+D.marginBottom),B=D.width-(D.marginRight+D.marginLeft),H=E.getChildren("data"),W=V.blankSpace,z=E.config.LABEL_PLACEMENT_ITERATOR_INDEX_START,j="funnel"===E.getName()?1:0,U=E.getFromEnv("smartLabel"),X=0,K=0,Y=E.utils(E).invokeHookFns,J=E.prePointProcessingHookFn,q=L.getFromEnv("legend"),Z=D.showLegend&&q&&q.config&&q.config.legendPos?q.config.legendPos.split("-"):[],$=0;for(!D.showLegend||"right"!==Z[0]&&"left"!==Z[0]||($=q.config.width+10),D.oriCanvasLeft=L.config.canvasLeft,D.oriBottomSpace=L.config.marginBottom,D.oriTopSpace=L.config.marginTop,S=V._tempSnap={top3DSpace:0,bottom3DSpace:0,topLabelSpace:0,rightLabelSpace:0},e=G-P,t=Math.min(2*e,B),D.marginTop+=P/2,D.marginBottom+=P/2,a=E.getDataLength(),o=V.origLabelDistance+W,i=V.showLabelsAtCenter,s=B-(l=Math.min(t,.3*B)),c=(B-=$)/2-l/2-o-D.marginLeft,u=0,h=.8/(d=H[0]&&H[0].y?H[0].y:1),Y(J,[H]),g=V.totalValue||0,U.useEllipsesOnOverflow(D.useEllipsesWhenOverflow);z<a;z+=1)(p=H[z]).legendItemId&&q.configureItems&&q.configureItems(p.legendItemId,{configuration:{fillColor:p.legendColor}}),N=p.style,(0,n.setLineHeight)(N),f=(0,n.pluckNumber)(k(parseFloat(N.lineHeight)+N.borderPadding+N.borderThickness+5),10),U.setStyle(N),b=p.y,i?m=U.getSmartText(p.origValue,B,f):(b=p.getModifiedCurrentValue&&p.getModifiedCurrentValue(g)||b,T=c+(l-(w=l*(x=p.getRatioK(E,b,h,g,d))))/2,"<br>"!==V.labelSepChar&&"<br/>"!==V.labelSepChar||(f*=2),m=U.getSmartText(p.origValue,T,f),p.displayValue=m.text,O&&m.tooltext&&(p.originalText=m.tooltext),u=Math.max(u,m.width),s>0&&(X=1/(x+1)*(w+2*(m.width>0?T-m.width:T+o)+l),s=Math.min(s,X-l)),g+=V.offsetVal===r?p.y:"function"==typeof V.offsetVal?V.offsetVal(z):V.offsetVal);if(!D.showLegend||"right"!==Z[0]&&"left"!==Z[0]?L.isLegendRight=!1:(L.isLegendRight=!0,D.marginRight+=$),p&&(y=p.getLowestRadiusFactor(E,d)),(v=l+s)>t&&(v=t),g=V.offsetVal===r?0:"function"==typeof V.offsetVal?V.offsetVal():V.offsetVal,!i)for(z=E.config.LABEL_PLACEMENT_ITERATOR_INDEX_START,a=E.getDataLength();z<a;z+=1)b=(p=H[z]).y,b=p.getModifiedCurrentValue&&p.getModifiedCurrentValue(g)||b,T=c+(l-(w=v*(x=p.getRatioK(E,b,h,g,d))))/2-$,m=U.getSmartText(p.displayValue,T,f),K=C(K,.5*w+m.width+o),g+=V.offsetVal===r?p.y:"function"==typeof V.offsetVal?V.offsetVal():V.offsetVal;u>0?(S.rightLabelSpace=B-v,(A=K-.5*D.canvasWidth)>0&&(D.marginRight+=A,D.marginLeft-=A),D.marginRight+=.5*S.rightLabelSpace,D.marginLeft+=.5*S.rightLabelSpace):o=0,V.labelDistance=V.connectorWidth=o,(i||!u)&&t<B&&(D.marginLeft+=.5*(B-t-o),D.marginRight+=.5*(B-t-o)),V.is2d||(D.marginTop+=S.top3DSpace=v*V.yScale*j/2,D.marginBottom+=S.bottom3DSpace=v*V.yScale*y/2),E.calculatePositionOfPlots(),F=_+I+5,"funnel"===E.getName()?V.streamLinedData&&H.length<2?(D.gaugeStartX=D.marginLeft,D.gaugeStartY=D.marginTop+F,D.gaugeEndX=v+D.marginLeft,D.gaugeEndY=D.canvasHeight+D.marginTop):(D.gaugeStartX=H[0].plotX-H[1].shapeArgs.R1,D.gaugeEndX=H[0].plotX+H[1].shapeArgs.R1,D.gaugeStartY=H[0].plotY,D.gaugeEndY=H[a-1].plotY):(D.gaugeStartX=H[a-1].plotX-H[a-1].shapeArgs.R2,D.gaugeEndX=H[a-1].plotX+H[a-1].shapeArgs.R2,D.gaugeStartY=H[0].shapeArgs.y,D.gaugeEndY=H[a-1].shapeArgs.y+H[a-1].shapeArgs.h),D.gaugeCenterX=D.canvasCenterX=(D.gaugeStartX+D.gaugeEndX)/2,D.gaugeCenterY=(D.gaugeStartY+D.gaugeEndY)/2,D.plotSemiWidth=(D.canvasWidth-S.rightLabelSpace)/2},t.animateElements=function(e,t,a,o){void 0===a&&(a=[]);var i,l,n,s,c,u=this;function d(e,t){var a=(t||{}).alpha;a=a===r?o.post:{opacity:a},e&&u.getFromEnv("animationManager").setAnimation({el:e,attr:a,component:u})}for(i=0,l=e.length;i<l;i++)if(n=e[i])if(a.length)for(s=0,c=a.length;s<c;s++)d(e[i][t][a[s]],n.point);else d(n[t],n.point)},t.drawAllLabels=function(){var e,t,a,o,r,i=this,l=i.getFromEnv("chart"),n=i.config.labelDrawingConfig,s=l.getChildContainer("datalabelsGroup"),c=["fontFamily","fontSize","fontWeight","fontStyle"],u={};for(a=0,o=c.length;a<o;a++)(r=c[a])in i._chartLevelAttr&&(u[r]=i._chartLevelAttr[r]);for(s.css(u),a=n.length-1;a>-1;a--)(e=n[a]).css&&(e.css.fontSize=this.computeFontSize(e.css.fontSizeWithUnit)),(t=e.point).index=a,t.drawLabel()},t.drawAllTrackers=function(){var e,t,a=this.config.trackerArgs;for(e=0,t=a.length;e<t;e++)a[e].drawTracker()},t.calculatePositionCoordinate=function(e,t){var a,o,i,l,s,c,u,d,h,g,p=this,f=p.config,m=f.maxValue,v=f.is2d,b=f.x,k=p.getFromEnv("chart"),C=k.config,x=C.canvasTop,w=f.unitHeight,y=f.drawingRadius,S=f.labelDistance,N=f.showLabelsAtCenter,E=f.isHollow,L=.3*C.style.fontSize,D=f.yScale,M=f.blankSpace,R=f.lastRadius,_=p.getFromEnv("smartLabel"),I=0,V=p.getDataLength()-1,O=!1,P=0,G=f.lineHeight,B=.8/C.effCanvasHeight,H=k.config.width-2,W=f.streamLinedData,z={flag:!1,point:r,sLabel:r,setAll:function(e,t,a){this.flag=e,this.point=t,this.sLabel=a}},j={point:r,sLabel:r,set:function(e,t){var a=e,o=t;return function(e,t){var r,i;if(!e.dontPlot){if(!this.point||!this.sLabel)return this.point=e,void(this.sLabel=t);r=a(this.point,this.sLabel),i=a(e,t),o(r,i)&&(this.point=e,this.sLabel=t)}}}},U={},X={},K={},Y={},J=f.slicingGapPosition={};for((0,n.extend2)(U,z),(0,n.extend2)(X,z),U.setAll=function(e,t,a){var o=this.point,r=this.sLabel;if(this.flag=e,!o||!r)return this.point=t,void(this.sLabel=a);o.labelX-(r.oriTextWidth-r.width)>t.labelX-(a.oriTextWidth-a.width)&&(this.point=t,this.sLabel=a)},X.setAll=function(e,t,a){var o=this.point,r=this.sLabel;if(this.flag=e,!o||!r)return this.point=t,void(this.sLabel=a);o.labelX+r.oriTextWidth<t.labelX+a.oriTextWidth&&(this.point=t,this.sLabel=a)},(0,n.extend2)(K,j),(0,n.extend2)(Y,j),K.set=j.set.apply(K,[function(e){return e.labelX},function(e,t){return e>t}]),Y.set=j.set.apply(Y,[function(e,t){return e.labelX+t.oriTextWidth},function(e,t){return e<t}]),f.noOfGap=0,_.useEllipsesOnOverflow(C.useEllipsesWhenOverflow),a=0,o=e.length;a<o;a++)(i=e[a])&&(i.x=a,i.plot&&(i.isSliced=!!i.isSliced||!!f.isSliced),i.isSliced=(0,n.pluckNumber)(i.isSliced,f.isSliced),a?(t&&(O=!O),i.isSliced&&((g=i.x)>1&&!J[g]&&(J[g]=!0,f.noOfGap+=1),g<V&&(J[g+1]=!0,f.noOfGap+=1)),W?(c=1===f.useSameSlantAngle?m?y*i.y/m:y:m?y*T(i.y/m):y,l=w*(e[a-1].y-i.y)||1):c=y*(1-(I+=l=w*e[a].y)*B),i.shapeArgs={x:b,y:x,R1:R,R2:c,h:l||1,r3dFactor:D,isHollow:E,gStr:"point",is2D:v,renderer:k.getFromEnv("paper"),isFunnel:!0},_.setStyle(i.style),i.oriText=i.displayValue,s=s=_.getSmartText(i.displayValue,Number.POSITIVE_INFINITY,Number.POSITIVE_INFINITY),N?(i.labelAline=F,i.labelX=b,i.labelY=(v?x:x+D*R)+l/2+L,i.shapeArgs.h<i.minplotheightforvalue?i.showValue=0:i.showValue=1):(i.labelAline=A,i.alignmentSwitch=O,i.distributionFactor=i.distributionFactor||0,O?(i.labelX=b-(S+c+M+s.width),i.labelX-=i.distributionFactor*f.globalMinXShift,K.set(i,s)):(i.labelX=b+S+c+M,i.labelX+=i.distributionFactor*f.globalMinXShift,Y.set(i,s)),P=i.distributionFactor*G,i.labelY=x+L+l+P),t&&(O&&i.labelX<0?(u=i.labelX+s.width,d=_.getSmartText(i.displayValue,u,Number.POSITIVE_INFINITY,!0),i.labelX=2,i.isLabelTruncated=!0,i.displayValue=d.text,i.virtualWidth=d.maxWidth,U.setAll(!0,i,d)):!O&&i.labelX+s.width>H&&(d=_.getSmartText(i.displayValue,H-i.labelX,Number.POSITIVE_INFINITY,!0),i.isLabelTruncated=!0,i.displayValue=d.text,i.virtualWidth=d.maxWidth,X.setAll(!0,i,d))),i.pWidth=i.virtualWidth=s.width,x+=l,R=c):(i.oriText=i.displayValue,c=1===f.useSameSlantAngle?m?y*i.y/m:y:m?y*T(i.y/m):y,i.labelWidth>2*c&&!t?(i.labelAline=A,i.labelX=f.x-i.labelWidth/2):(i.labelAline=F,i.labelX=b),h=2*S,i.displayValue=_.getSmartText(i.origValue,2*c+h,Number.POSITIVE_INFINITY,!0).text,i.labelY=(v?x:x-D*R)-L-M),i.plotX=b,i.plotY=x);p.findBestPosition(e,{lTrimmedInfo:U,rTrimmedInfo:X,lLargestLabel:K,rLargestLabel:Y})},t.findBestPosition=function(e,t){var a,o,r,i,l,n,s,c,u,d=this,h=d.config,g=d.getFromEnv("chart"),p=g.config,f=0,m=t.lTrimmedInfo,v=t.rTrimmedInfo,b=t.lLargestLabel,k=t.rLargestLabel,C=d.getFromEnv("smartLabel"),x=0,w=h.streamLinedData,T=h.blankSpace,y=p.width-h.blankSpace;if(!m.flag||!v.flag){if(v.flag){if(!b.point)return;a=(o=v.sLabel).oriTextWidth-o.width,r=b.point.labelX-T,f=-Math.ceil(Math.min(a,r))}else if(m.flag){if(!k.point)return;a=(o=m.sLabel).oriTextWidth-o.width,i=y-(k.point.labelX+k.sLabel.width),f=Math.ceil(Math.min(a,i))}if(f)for(s=0,c=e.length;s<c;s++)n=e[s],s||!w?(n.alignmentSwitch?(l=f<0?C.getSmartText(n.oriText,n.pWidth,Number.POSITIVE_INFINITY,!0):C.getSmartText(n.oriText,n.pWidth+f,Number.POSITIVE_INFINITY,!0),n.isLabelTruncated&&(x=l.width-n.pWidth),n.virtualWidth=l.width):(l=f>0?C.getSmartText(n.oriText,n.pWidth,Number.POSITIVE_INFINITY,!0):C.getSmartText(n.oriText,n.pWidth-f,Number.POSITIVE_INFINITY,!0),n.virtualWidth=l.width),n.displayValue=l.text,n.labelX+=f-x,n.shapeArgs&&(n.shapeArgs.x+=f),x=0):n.labelX+=f;else for(C.useEllipsesOnOverflow(p.useEllipsesWhenOverflow),s=0,c=e.length;s<c;s++)(u=(n=e[s]).labelX+n.pWidth-y)>0&&(n.lOverflow=u,n.labelX-=u,g.isLegendRight?n.displayValue=C.getSmartText(n.oriText,n.pWidth-u,Number.POSITIVE_INFINITY,!0).text:(n.lOverflow=u,n.labelX-=u))}},t.getPlotData=function(e){var t,a,o,r=this,i=r.getChildren("data")[e],l=r.userData||(r.userData=[]),n=["y","name","color","alpha","borderColor","borderWidth","link","label","displayValue","datasetIndex","toolText"];if(l[e])t=l[e];else{for(t=l[e]={},a=0;a<n.length;a++)t[o=n[a]]=i[o];t.value=t.y,t.label=t.name,delete t.y,delete t.name}return t},t.slice=function(){var e,t,a,o,r,i,l,n,s,c,u=this.datasetStore,d=this.plotItem,h=d.index,g=u.getChildren("data"),p=g[h].getGraphicalElement(),f=u.getFromEnv("chart"),m=u.getFromEnv("animationManager"),v=u.config,b=arguments[3]||v.clicked,k=v.slicingDistance/2,C=0,x=0,w=g.length,T=[];if(!v.sliceLock){for(v.sliceLock=1,b=d.sliced=G(b)?b:!d.sliced,r=-k,i=k,c=function(){return function(){v.sliceLock=0,f.fireChartInstanceEvent("SlicingEnd",{slicedState:b,data:u.getPlotData(o)})}},C=0;C<w;C+=1)(t=g[C].plot)&&!g[C].getState("removed")&&(p=g[C].getGraphicalElement(),t!==d?(g[C].isSliced=0,t.sliced=!1,T[C]={isSliced:!1},a=!1):(g[C].isSliced=+!g[C].isSliced,T[C]={isSliced:b},a=!0,o=C),p.graphic&&(l=-t.dy,b&&(t.x<d.x?(l+=r,x+=1):t.x===d.x?x?C===w-1&&(l+=.5*k):l+=.5*-k:l+=i),p.graphic.attr({transform:"t0,"+t.dy}),t.dy+=l,e={transform:"...t0,"+l},a&&f.fireChartInstanceEvent("SlicingStart",{slicedState:!b,data:u.getPlotData(o)}),m.setAnimation({el:p.graphic,attr:e,component:u,callback:a&&c()}),p.dataLabel&&m.setAnimation({el:p.dataLabel,attr:e,component:u}),p.connector&&m.setAnimation({el:p.connector,attr:e,component:u}),p.trackerObj&&m.setAnimation({el:p.trackerObj,attr:e,component:u}),n=g[0].getGraphicalElement("graphic"),s=g[0].getGraphicalElement("dataLabel"),1===C&&!n&&s&&m.setAnimation({el:s,attr:e,component:u})));delete v.clicked}},t.legendClick=function(e){this.slice.call(e)},t.getEventArgs=function(e){var t=this.getChildren("data")[e.config.index]||{};return{alpha:t.alpha,value:t.y,color:t.color,borderColor:t.borderColor,borderWidth:t.borderWidth,link:t.link,displayValue:t.displayValue,datasetIndex:t.datasetIndex,toolText:t.toolText,label:t.categoryLabel}},t.plotMouseUp=function(e){var t=this.plotItem,a=this.datasetStore,o=a.getChildren("data")[t.index],r=a.getFromEnv("chart"),i=o.getGraphicalElement("trackerObj");i.data(L,Object.assign(i.data(L),{isSliced:o.isSliced})),r.plotEventHandler(i,e,"dataplotclick")},a}(s.ComponentInterface),K=X;t["default"]=K},1506:(e,t,a)=>{t.__esModule=!0,t["default"]=void 0;var o=a(282),r=a(274),i=[{initialAttr:function(){return{opacity:0}},finalAttr:function(){return{opacity:1}}}],l={"initial.dataset.angularGauge":function(){var e=this.config,t=(0,o.getDep)("redraphael","plugin"),a=Math.PI/180,l=t.vml?-1.5:0,n=t.vml?-1.5:0;return{"dialPath.appearing":function(){return[{initialAttr:{opacity:0},finalAttr:{opacity:1},slot:"initial"},{initialAttr:{transform:"R"+e.gaugeStartAngle/a+","+l+","+n},finalAttr:{opacity:1},slot:"middle"}]},"dialPath.updating":null,"text.appearing":function(){return i[0].slot=r.FINALSTR,i},"text.updating":null,"pivot.appearing":function(){return i[0].slot=r.INITIALSTR,i},"pivot.updating":null,"plotBackground.appearing":function(){return i[0].slot=r.INITIALSTR,i},"plotBackground.updating":null}}};t["default"]=l},1503:(e,t,a)=>{var o=a(269);t.__esModule=!0,t["default"]=void 0;var r,i=o(a(288)),l=a(274),n=o(a(1504)),s=a(282),c=o(a(1506)),u=o(a(390)),d=o(a(1507)),h=(0,s.getDep)("redraphael","plugin"),g=Math,p=g.abs,f=g.atan2,m=g.PI,v=2*m,b=g.max,k="",C="normal",x=m/180,w="{dark-10}",T=window.document.documentElement.ontouchstart!==r,y=function(e){return"string"==typeof e},S=function(e){return e!==r&&null!==e};(0,s.addDep)({name:"angularAnimation",type:"animationRule",extension:c["default"]}),(0,u["default"])(h),(0,d["default"])(h);var A=function(e){function t(){var t;return(t=e.call(this)||this).components=t.components||{},t.config.idMap={},t}(0,i["default"])(t,e);var a=t.prototype;return a.getType=function(){return"dataset"},a.getName=function(){return"angularGauge"},a.configure=function(e){if(!e)return!1;this.trimData(e),this.config.pointerArr=e;var t,a,o,i,n,s,c,u,d,h,g,p=this,f=p.getFromEnv("chart"),m=f.config,v=f.getFromEnv("dataSource"),b=v.chart,w=v.pointers||v.dials,T=w.pointer||w.dial||[],y=p.components.data||(p.components.data=[]),A=p.getFromEnv("scale"),F=p.getFromEnv("color-manager"),N=p.config||(p.config={}),E=(0,l.pluckNumber)(b.gaugescaleangle,180),L=(0,l.pluckNumber)(b.gaugestartangle),D=(0,l.pluckNumber)(b.gaugeendangle),M=S(L),R=l.hasSVG?.001:.01,_=S(D);for(m.displayValueCount=0,d=0,g=T.length;d<g;d+=1)y[d]=y[d]||(y[d]={}),(h=y[d].config||(y[d].config={})).basewidth=T[d].basewidth,h.color=T[d].color,h.alpha=T[d].alpha,h.bgcolor=T[d].bgcolor,h.borderalpha=T[d].borderalpha,h.bordercolor=T[d].bordercolor,h.borderthickness=T[d].borderthickness,h.editmode=T[d].editmode,h.id=(0,l.pluck)(T[d].id,"dial"+d),h.link=T[d].link,h.radius=T[d].radius,h.rearextension=T[d].rearextension,h.showvalue=T[d].showvalue,h.tooltext=T[d].tooltext,h.topwidth=T[d].topwidth,h.value=T[d].value,h.valuex=T[d].valuex,h.valuey=T[d].valuey,h.baseradius=T[d].baseradius,h.displayvalue=T[d].displayvalue,i=N.showValue=(0,l.pluckNumber)(b.showvalue,b.showrealtimevalue,0),n=(0,l.pluckNumber)(h.showvalue,i),h.showPointerValue=n,s=(0,l.pluckNumber)((0,l.getValidValue)(h.valuey)),n&&!S(s)&&(m.displayValueCount+=1);(E>360||E<-360)&&(E=E>0?360:-360),(D>360||D<-360)&&(D%=360),(L>360||L<-360)&&(L%=360),M&&_?((E=L-D)>360||E<-360)&&(D=L-(E%=360)):M?((D=L-E)>360||D<-360)&&(L+=(D%=360)>0?-360:360):_?((L=D+E)>360||L<-360)&&(D+=(L%=360)>0?-360:360):360===E?(L=180,D=-180):-360===E?(L=-180,D=-180):D=(L=90+E/2)-E,360===Math.abs(E)&&(D=L-(E+=E>0?-R:R)),D=360-D,E=-E,((L=360-L)>360||D>360)&&(L-=360,D-=360),N.gaugeStartAngle=L*=x,N.gaugeEndAngle=D*=x,N.gaugeScaleAngle=E*=x,N.upperLimit=(0,l.pluckNumber)(b.upperlimit),N.lowerLimit=(0,l.pluckNumber)(b.lowerlimit),A.setAxisConfig({startAngle:L,totalAngle:-E}),o=(0,l.pluckNumber)(b.scaleonresize,1),N.origW=(0,l.pluckNumber)(b.origw,o?f.config.origRenderWidth:m.width),N.origH=(0,l.pluckNumber)(b.origh,o?f.config.origRenderHeight:m.height),m.showtooltip=(0,l.pluckNumber)(b.showtooltip,1),m.autoScale=(0,l.pluckNumber)(b.autoscale,1),N.rearExtension=(0,l.pluckNumber)(w.rearextension,0),N.gaugeinnerradius=b.gaugeinnerradius,N.valueBelowPivot=(0,l.pluckNumber)(b.valuebelowpivot,0),N.showShadow=(0,l.pluckNumber)(b.showshadow,1),t=(0,l.pluckNumber)(b.showgaugeborder,1),N.gaugeFillMix=(0,l.getFirstDefinedValue)(b.colorrangefillmix,b.gaugefillmix,f.colorRangeFillMix,"{light-10},{light-70},{dark-10}"),N.gaugeFillRatio=(0,l.getFirstDefinedValue)(b.colorrangefillratio,b.gaugefillratio,f.colorRangeFillRatio,b.gaugefillratio),N.gaugeFillRatio===r?N.gaugeFillRatio=",6":N.gaugeFillRatio!==l.BLANK&&(N.gaugeFillRatio=l.COMMASTRING+N.gaugeFillRatio),N.gaugeBorderColor=(0,l.pluck)(b.gaugebordercolor,"{dark-20}"),N.gaugeBorderThickness=t?(0,l.pluckNumber)(b.gaugeborderthickness,1):0,N.gaugeBorderAlpha=(0,l.pluckNumber)(b.gaugeborderalpha,100),a=F.parseColorMix((0,l.pluck)(b.pivotfillcolor,b.pivotcolor,b.pivotbgcolor,F.getColor("pivotColor")),(0,l.pluck)(b.pivotfillmix,"{light-10},{light-30},{dark-20}")),N.pivotFillAlpha=F.parseAlphaList((0,l.pluck)(b.pivotfillalpha,l.HUNDREDSTRING),a.length),N.pivotFillRatio=F.parseRatioList((0,l.pluck)(b.pivotfillratio,l.ZEROSTRING),a.length),N.pivotFillColor=a.join(),N.pivotFillAngle=(0,l.pluckNumber)(b.pivotfillangle,0),N.isRadialGradient="radial"===(0,l.pluck)(b.pivotfilltype,"radial").toLowerCase(),N.showPivotBorder=(0,l.pluckNumber)(b.showpivotborder,0),N.pivotBorderThickness=(0,l.pluckNumber)(b.pivotborderthickness,1),N.pivotBorderColor=(0,l.convertColor)((0,l.pluck)(b.pivotbordercolor,F.getColor("pivotBorderColor")),1===N.showPivotBorder?(0,l.pluck)(b.pivotborderalpha,l.HUNDREDSTRING):l.ZEROSTRING),m.dataLabels=m.dataLabels||{},u=(u=(0,l.getFirstValue)(b.valuebordercolor,k))?(0,l.convertColor)(u,(0,l.pluckNumber)(b.valueborderalpha,b.valuealpha,100)):k,c=m.dataLabels.style={fontFamily:(0,l.pluck)(b.valuefont,m.style.inCanfontFamily),fontSize:(0,l.pluck)(this.computeFontSize(b.valuefontsize),parseInt(m.style.inCanfontSize,10))+"px",fontSizeWithUnit:(0,l.pluckFontSizeMaintainUnit)(b.valuefontsize,m.style.inCanfontSizeWithUnit),color:(0,l.convertColor)((0,l.pluck)(b.valuefontcolor,m.style.inCancolor),(0,l.pluckNumber)(b.valuefontalpha,b.valuealpha,100)),fontWeight:(0,l.pluckNumber)(b.valuefontbold)?"bold":C,fontStyle:(0,l.pluckNumber)(b.valuefontitalic)?"italic":C,border:u||b.valuebgcolor?(0,l.pluckNumber)(b.valueborderthickness,1)+"px solid":r,borderColor:u,borderThickness:(0,l.pluckNumber)(b.valueborderthickness,1),borderPadding:(0,l.pluckNumber)(b.valueborderpadding,2),borderRadius:(0,l.pluckNumber)(b.valueborderradius,0),backgroundColor:b.valuebgcolor?(0,l.convertColor)(b.valuebgcolor,(0,l.pluckNumber)(b.valuebgalpha,b.valuealpha,100)):k,borderDash:(0,l.pluckNumber)(b.valueborderdashed,0)?(0,l.getDashStyle)((0,l.pluckNumber)(b.valueborderdashlen,4),(0,l.pluckNumber)(b.valueborderdashgap,2)):l.BLANK},(0,l.setLineHeight)(c)},a.trimData=function(e){var t,a,o=this;(t=o.components.data&&o.components.data.length)>(a=e.dial&&e.dial.length||0)&&o.removeData(t-a)},a._drawBackground=function(){var e,t,a,o,r,i,n,s,c,u,d,h,g,p,f,m,v=this,k=v.getFromEnv("chart"),C=k.getChildren("canvas")[0],x=v.config,w=v.getFromEnv("scale"),T=v.getFromEnv("color-manager"),y=w.config.axisRange,S=v.getFromEnv("colorRange"),A=k.getChildContainer("plotGroup"),F=k.getChildContainer("defaultShadowGroup"),N=k.getChildContainer("datalabelsGroup"),E=v.getFromEnv("animationManager"),L=x.gaugeOuterRadius,D=x.gaugeInnerRadius,M=x.gaugeFillRatio,R=x.gaugeBorderColor,_=x.gaugeBorderThickness,I=x.gaugeBorderAlpha,V=x.gaugeFillMix,O=x.gaugeOriginX,P=x.gaugeOriginY,G=x.gaugeStartAngle,B=x.showShadow,H=y.min,W=y.max,z=S?S.getColorRangeArr(H,W):[],j=0,U=z.length,X=G,K=v.getContainer("bandGroup"),Y=v.getContainer("pointGroup"),J=0,q=function(){this.hide()},Z=function(){this.show()};for(d=E.setAnimation({el:K||"group",attr:{name:"bandGroup"},container:A,component:v,label:"group"}),K||(d=v.addContainer("bandGroup",d)),h=E.setAnimation({el:Y||"group",attr:{name:"pointGroup",transform:"t"+O+l.COMMASTRING+P},container:N,component:v,label:"group"}),Y||v.addContainer("pointGroup",h);j<U;j+=1)e=z[j],t=w.getAngle(Math.min(e.maxvalue,W)),o=T.parseColorMix(e.code,V),r=T.parseAlphaList(e.alpha,o.length),i=T.parseRatioList(D/L*100+M,o.length),s=e.bordercolor,c=(0,l.pluckNumber)(e.borderAlpha,I),s=s&&-1===s.indexOf("{")?(0,l.convertColor)(s,c):T.parseColorMix(e.code,(0,l.pluck)(s,R))[0],s=(0,l.convertColor)(s,c),n=r.split(l.COMMASTRING),n=b.apply(Math,n),n=B?b(c||0,n):0,a=t,X>t&&(X+=t,X-=t=X-t),e._startAngle=X,e._endAngle=t,f=C.getGraphicalElement("bands")&&C.getGraphicalElement("bands")[j],m=E.setAnimation({el:f||"ringpath",attr:{ringpath:[O,P,L,D,X,t],fill:(0,l.toRaphaelColor)({FCcolor:{cx:O,cy:P,r:L,gradientUnits:"userSpaceOnUse",color:o.join(),alpha:r,ratio:i,radialGradient:!0}}),"stroke-width":_,stroke:s},container:d,callback:Z,component:v,label:"plotBackground"}),f||(C.addGraphicalElement("bands",m,!0),m.shadow({apply:B,opacity:n/100})),X=a,J+=1;for(U=C.getGraphicalElement("bands")&&C.getGraphicalElement("bands").length,j=J;j<U;j++)(e=z[j]||x.oldColorArr[j])&&E.setAnimation({el:C.getGraphicalElement("bands")[j],attr:{ringpath:[O,P,L,D,e._startAngle,e._startAngle]},component:v,callback:q,label:"plotBackground"});x.oldColorArr=z,u=x.isRadialGradient?{color:x.pivotFillColor,alpha:x.pivotFillAlpha,ratio:x.pivotFillRatio,radialGradient:!0,angle:x.pivotFillAngle,cx:.5,cy:.5,r:"50%"}:{color:x.pivotFillColor,alpha:x.pivotFillAlpha,ratio:x.pivotFillRatio,radialGradient:!1,angle:x.pivotFillAngle},p=v.getGraphicalElement("pivot"),g=E.setAnimation({el:p||"circle",attr:{cx:O,cy:P,r:x.pivotRadius,fill:(0,l.toRaphaelColor)({FCcolor:u}),"stroke-width":x.pivotBorderThickness,stroke:x.pivotBorderColor},container:N,component:v,label:"pivot"}),p||(g=v.addGraphicalElement("pivot",g)).shadow({apply:B},F)},a.removeData=function(e){var t,a=this,o=a.getFromEnv("animationManager"),r=function(){this.remove()},i=a.components.data;for(t=0;t<e;t++)i[t].graphics.pointersPath&&o.setAnimation({el:i[t].graphics.pointersPath,attr:{opacity:0},callback:r,component:a}),i[t].graphics.pointersTpath&&o.setAnimation({el:i[t].graphics.pointersTpath,attr:{opacity:0},callback:r,component:a}),i[t].graphics.dataLabel&&o.setAnimation({el:i[t].graphics.dataLabel,attr:{opacity:0},callback:r,component:a});a.removeDataArr||(a.removeDataArr=[]),a.removeDataArr=a.removeDataArr.concat(i.splice(0,e))},a.draw=function(e){this._drawBackground();var t,a,o,i,n,s,c,u,d,g,m,b,C,A,F,N,E,L,D,M,R,_,I,V,O,P,G,B,H,W,z,j,U,X,K,Y,J,q,Z,$,Q,ee,te,ae,oe,re,ie,le,ne,se,ce,ue,de,he,ge,pe,fe,me,ve,be,ke,Ce,xe,we,Te,ye=this,Se=ye.getFromEnv("chart"),Ae=ye.getFromEnv("toolTipController"),Fe=ye.config.idMap,Ne=Se.config,Ee=Se.getFromEnv("dataSource").chart,Le=ye.components.data,De=ye.config,Me=De,Re=ye.getFromEnv("number-formatter"),_e=ye.getFromEnv("color-manager"),Ie=ye.getFromEnv("scale"),Ve=ye.getFromEnv("animationManager"),Oe=Number(De.gaugeOriginX),Pe=Number(De.gaugeOriginY),Ge=De.gaugeStartAngle,Be=De.gaugeEndAngle,He=De.showShadow,We=Ne.showtooltip,ze=Ie.config.axisRange,je=ze.min,Ue=ze.max,Xe=ye.getContainer("pointGroup"),Ke=ye.getLinkedParent().getChildContainer("datalabelsGroup"),Ye=Ue-je||1,Je=Be-Ge,qe=Ye/Je,Ze=Ee.plottooltext,$e=(0,l.pluckNumber)(Ee.showhovereffect),Qe=ye.showValue=(0,l.pluckNumber)(Ee.showvalue,Ee.showrealtimevalue,0),et=0,tt=Ne.dataLabels.style,at={fontFamily:tt.fontFamily,fontSize:this.computeFontSize(tt.fontSizeWithUnit),lineHeight:tt.lineHeight,fontWeight:tt.fontWeight,fontStyle:tt.fontStyle},ot=Ne.scaleFactor,rt=(0,l.pluckNumber)(parseInt(tt.lineHeight,10),12),it=De.valueBelowPivot,lt=0,nt=Le&&Le.length,st={pageX:0,pageY:0},ct=(Te="angle",function(e,t,a){var o,i,n,s=this,c=this._Attr,u=h.vml?-1.5:0,d=h.vml?-1.5:0,g=e;if(c||(c=s._Attr={}),y(g)&&S(t)&&(o=g,(g={})[o]=t),y(g)||g===r)s=g===Te?s._Attr[g]:s._attr(g);else for(o in g)i=g[o],o===Te?(c[o]=i,n=i*x,c.tooltipPos[0]=c.cx+c.toolTipRadius*Math.cos(n),c.tooltipPos[1]=c.cy+c.toolTipRadius*Math.sin(n),c.prevValue=i,a&&a.duration?s.animate({transform:"R"+i+l.COMMASTRING+u+l.COMMASTRING+d},a.duration,"linear"):s.attr({transform:"R"+i+l.COMMASTRING+u+l.COMMASTRING+d})):s._attr(o,i);return s}),ut=function(e,t,a,o){return f(t-a[1]-o.top,e-a[0]-o.left)},dt=function(e){var t=Le[this.pos].config||{},a=e.data[0],o=e.data[1];t.editMode&&(Oe=Number(De.gaugeOriginX),Pe=Number(De.gaugeOriginY),N=(0,l.getPosition)(Se.getFromEnv("chart-container")),Ne.rotationStartAngle=ut(a,o,[Oe,Pe],N),t.dragStartY=t.value,F=Se._getDataJSON())},ht=function(){var e,t=Le[this.pos],a=t.config,o=Se.getFromEnv("chartInstance");if(t.config.editMode){(e=o&&o.jsVars)&&(e._rtLastUpdatedData=Se._getDataJSON()),Se.fireChartInstanceEvent("RealTimeUpdateComplete",{data:"&value="+a.updatedValStr,updateObject:{values:[a.updatedValStr]},prevData:F.values,source:"editMode",url:null});try{window.FC_ChartUpdated&&window.FC_ChartUpdated(o.id)}catch(r){setTimeout((function(){throw r}),1)}}},gt=function(e){var t,a,o,r,i,n,s,c,u,d=Le[this.pos],h=T&&function(e){return T&&e.sourceEvent&&e.sourceEvent.touches&&e.sourceEvent.touches[0]||e}(e)||st,g=Ie.config.axisRange,f=e.data[2],m=e.data[3];if(d.config.editMode){for(Ne.fromDrag=!0,Oe=Number(De.gaugeOriginX),Pe=Number(De.gaugeOriginY),je=g.min,Ue=g.max,Ge=De.gaugeStartAngle,Be=De.gaugeEndAngle,qe=(Ye=Ue-je)/(Je=Be-Ge),t=ut(f,m,[Oe,Pe],N),o=(a=Ne.rotationStartAngle-t)<0?v+a:a-v,r=d.config.dragStartY-a*qe,i=d.config.dragStartY-o*qe,(r<je||r>Ue)&&i>=je&&i<=Ue&&(r=i),r<je?r=p(i-Ue)<p(r-je)?Ue:je:r>Ue&&(r=p(r-Ue)<p(i-je)?Ue:je),d.config.updatedValStr=r+l.BLANK,n=[],c=[],s=0,u=d.config.index;s<u;s+=1)n.push(l.BLANK),c.push(l.BLANK);n.push({value:r,animation:{duration:0,transposeAnimDuration:0,initAnimDuration:0}}),c.push(r),d.config.y!==r&&ye.updateData({data:n})&&(d.config.updatedValStr=c.join("|"),d.config.dragStartX=Oe||e.pageX||h.pageX)}},pt=ye.getFromEnv("smartLabel"),ft=h.vml?-1.5:0,mt=h.vml?-1.5:0;for(tt.fontSize=this.computeFontSize(tt.fontSizeWithUnit),(0,l.setLineHeight)(tt),ce=ue=De.pivotRadius,Me.dataById===r&&(Me.dataById={}),e&&0===e.duration&&Se.getFromEnv("animationManager").setAnimationState("dialDrag"),G=function(e){Ne.fromDrag?Ne.fromDrag=!1:Se.plotEventHandler(this,e)},nt||(nt=0),pt.setStyle(at),0!==$e&&($e||Ee.dialborderhovercolor||Ee.dialborderhoveralpha||0===Ee.dialborderhoveralpha||Ee.dialborderhoverthickness||0===Ee.dialborderhoverthickness||Ee.dialbghovercolor||Ee.plotfillhovercolor||Ee.dialbghoveralpha||Ee.plotfillhoveralpha||0===Ee.dialbghoveralpha)&&($e=1),ve=function(e){var t,a=this,o=a.data("rolloverProperties");Se.plotEventHandler(a,e,"DataPlotRollOver"),o.enabled&&(t=a.attr("transform"),a.attr("transform",l.BLANK),a.attr(o.hoverAttr),a.attr("transform",t))},be=function(e){var t,a=this,o=a.data("rolloverProperties");Se.plotEventHandler(a,e,"DataPlotRollOut"),o.enabled&&(t=a.attr("transform"),a.attr("transform",l.BLANK),a.attr(o.outAttr),a.attr("transform",t))};et<nt;et+=1)(n=Le[et]).config=n.config||{},B=n.config,n.config.index=et,Fe[B.id]={index:et,config:n.config},we=!1,B.id!==r&&(Me.dataById[B.id]={index:et,point:n}),xe=Le[et].graphics||(Le[et].graphics={}),H=Re.getCleanValue(B.value),H=Number((0,l.toPrecision)(H,10)),g=(0,l.pluckNumber)(B.rearextension,0)*ot,ce=Math.max(ce,g*ot),W=Re.dataLabels(H),z=(0,l.getValidValue)(B.displayvalue,W,k),X=(0,l.pluckNumber)(B.showvalue,Qe),K=(0,l.pluckNumber)((0,l.getValidValue)(B.valuey)*ot),de=(0,l.pluckNumber)((0,l.getValidValue)(B.valuex)*ot),B.itemValue=H,B.formatedVal=W,Y=(Y=(0,l.getValidValue)((0,l.parseUnsafeString)((0,l.pluck)(B.tooltext,n.hovertext,Ze),!1)))?(0,l.parseTooltext)(Y,[1,2],{formattedValue:W},n.config,Ee):z,J=(0,l.pluck)(B.color,B.bgcolor,_e.getColor("dialColor")),q=(0,l.pluckNumber)(B.alpha,n.bgalpha,100),Z=(0,l.toRaphaelColor)({FCcolor:{color:J,alpha:q,angle:90}}),$=(0,l.pluck)(B.bordercolor,_e.getColor("dialBorderColor")),Q=(0,l.pluckNumber)(B.borderalpha,100),ee=(0,l.convertColor)($,Q),te=(0,l.pluckNumber)(B.borderthickness,1),s=(0,l.pluckNumber)(B.radius)*ot,c=(0,l.pluckNumber)((0,l.pluckNumber)(B.basewidth*ot,1.6*ue)),u=(0,l.pluckNumber)(B.topwidth,0)*ot,d=(0,l.pluckNumber)(B.baseradius,0),t=(0,l.pluckNumber)(B.editmode,Ee.editmode,0),(0,l.pluck)(B.link,k),he=Y,B.toolText=he,ge=(0,l.pluck)(z,k),z=X?(0,l.pluck)(z,l.BLANK):k,0!==(ae=(0,l.pluckNumber)(n.showhovereffect,$e))&&(ae||n.borderhovercolor||n.borderhoveralpha||0===n.borderhoveralpha||n.borderhoverthickness||0===n.borderhoverthickness||n.bghovercolor||n.bghoveralpha||0===n.bghoveralpha)&&(ae=!0,i={},o={},oe=(0,l.pluck)(n.borderhovercolor,Ee.dialborderhovercolor,w),re=(0,l.pluckNumber)(n.borderhoveralpha,Ee.dialborderhoveralpha,Q),(ie=(0,l.pluckNumber)(n.borderhoverthickness,Ee.dialborderhoverthickness,te))&&(i.stroke=ee,le=/\{/.test(oe),o.stroke=(0,l.convertColor)(le?_e.parseColorMix($,oe)[0]:oe,re)),ie!==te&&(o["stroke-width"]=ie,i["stroke-width"]=te),ne=(0,l.pluck)(n.bghovercolor,Ee.dialbghovercolor,Ee.plotfillhovercolor,w),se=(0,l.pluckNumber)(n.bghoveralpha,Ee.dialbghoveralpha,Ee.plotfillhoveralpha,q),i.fill=Z,a={FCcolor:{color:ne=/\{/.test(ne)?_e.parseColorMix(J,ne).join():ne,alpha:se,angle:90}},o.fill=(0,l.toRaphaelColor)(a)),D=B.rolloverProperties={enabled:ae,hasHoverSizeChange:undefined,hoverRadius:(0,l.pluckNumber)(R*ot),baseHoverWidth:(0,l.pluckNumber)(_*ot,1.6*ue),topHoverWidth:(0,l.pluckNumber)(V*ot),rearHoverExtension:(0,l.pluckNumber)(P*ot),hoverFill:a,hoverAttr:o,outAttr:i},s=(0,l.pluckNumber)(s,(Number(De.gaugeOuterRadius)+Number(De.gaugeInnerRadius))/2),m=c/2,b=u/2,B.tooltipPos=[Oe,Pe],E=B.editMode?r:B.link,M=["M",s,-b,"L",s,b,-g,m,-g,-m,"Z"],D.hasHoverSizeChange&&(D.outAttr.path=M,R=(0,l.pluckNumber)(D.hoverRadius,s),I=(_=D.baseHoverWidth)/2,O=(V=D.topHoverWidth)/2,P=D.rearHoverExtension,D.hoverAttr.path=["M",R,-O,"L",R,O,-P,I,-P,-I,"Z"]),L={link:B.link,value:H,displayValue:ge,toolText:he,baseWidth:B.basewidth,bgColor:B.bgcolor,borderAlpha:B.borderalpha,borderColor:B.bordercolor,borderThickness:B.borderthickness,editMode:B.editmode,id:B.id,radius:B.radius,rearExtension:B.rearextension,showValue:B.showPointerValue,topWidth:B.topwidth,valueX:B.valuex,valueY:B.valuey,baseRadius:B.baseradius},H>=je&&H<=Ue&&(C=(Ge+(H-je)/Ye*Je)/x),xe.pointersTpath?u?(Ve.setAnimation({el:xe.pointersPath,attr:{path:M,transform:"R"+C+l.COMMASTRING+ft+l.COMMASTRING+mt},component:ye,label:"dialPath"}),xe.pointersTpath._attr({trianglepath:[0,0,0,0,0,0,0,0,0]})):(Ve.setAnimation({el:xe.pointersTpath,attr:{trianglepath:[s,b,-g,m,-g,-m,0,d,d],transform:"R"+C+l.COMMASTRING+ft+l.COMMASTRING+mt},component:ye,label:"trianglepath"}),xe.pointersPath._attr({path:"M0,0"})):(u?(Ce=M,ke=[0,0,0,0,0,0,0,0,0]):(Ce=["M",0,0],ke=[s,b,-g,m,-g,-m,0,d,d]),xe.pointersPath=Ve.setAnimation({el:"path",attr:{path:Ce,transform:"R"+C+l.COMMASTRING+ft+l.COMMASTRING+mt},container:Xe,component:ye,label:"dialPath"}),xe.pointersTpath=Ve.setAnimation({el:"trianglepath",attr:{trianglepath:ke,transform:"R"+C+l.COMMASTRING+ft+l.COMMASTRING+mt},container:Xe,component:ye,label:"dialPath"}),A=u?xe.pointersPath:xe.pointersTpath,(c||u||te)&&A.shadow({apply:He}),we=!0),A=u?xe.pointersPath:xe.pointersTpath,xe.pointersPath._attr||(xe.pointersPath._attr=xe.pointersPath.attr,xe.pointersPath.attr=ct),xe.pointersTpath._attr||(xe.pointersTpath._attr=xe.pointersTpath.attr,xe.pointersTpath.attr=ct),A._attr({fill:Z,stroke:ee,"stroke-width":te}).data("eventArgs",L).data("rolloverProperties",D),A._Attr={tooltipPos:B.tooltipPos,cx:Oe,cy:Pe,toolTipRadius:s-g,color:B.color},we&&(C=Ge/x,A.hover(ve,be)),B.index=et,B.editMode=t,A.css({cursor:t||E?"pointer":"default",_cursor:t?"hand":"default"}),xe.pointersPath.pos=et,xe.pointersTpath.pos=et,we&&(xe.pointersPath.on("fc-dragstart",dt),xe.pointersPath.on("fc-dragmove",gt),xe.pointersPath.on("fc-dragend",ht),xe.pointersTpath.on("fc-dragstart",dt),xe.pointersTpath.on("fc-dragmove",gt),xe.pointersTpath.on("fc-dragend",ht),xe.pointersPath.on("fc-click",G),xe.pointersTpath.on("fc-click",G)),B.y=H,We&&he!==l.BLANK?Ae.enableToolTip(A,he):Ae.disableToolTip(A),S(z)&&z!==l.BLANK?(pe=Pe+(it?rt/2+ue+2:-rt/2-ue-2),fe=K,me=(0,l.pluckNumber)(de,Oe),S(fe)||(fe=it?pe+rt*lt:pe-rt*lt),z=(j=pt.getSmartText(z)).text,U=j.tooltext||k,xe.dataLabel=Ve.setAnimation({el:xe.dataLabel||"text",attr:{x:me,y:fe,direction:Ne.textDirection,text:z,title:n.originalText||l.BLANK,fill:tt.color,"text-bound":[tt.backgroundColor,tt.borderColor,tt.borderThickness,tt.borderPadding,tt.borderRadius,tt.borderDash]},css:at,container:Ke,component:ye,label:"text"}),xe.dataLabel.show(),lt+=1,We?Ae.enableToolTip(xe.dataLabel,U):Ae.disableToolTip(xe.dataLabel)):(xe.dataLabel&&xe.dataLabel.hide(),xe.dataLabel&&Ae.disableToolTip(xe.dataLabel))},a.updateData=function(e){var t,a,o,i,n,s,c,u,d,h,g,p,f,m,v,b={},k=e;if(k===this.config.lastUpdatedObj)return!1;for(a=(t=this).getFromEnv("chart"),o=t.components.data,u=(c=t.components.data)&&c.length||0,p=(k=k.data).length,d=0;d<p;d++)(h=k[d].id)&&(b[h]=k[d]);if(g=Object.keys(b).length,u){for(;u--;)h=(i=o[u].config).id,f=r,f=g?b[h]:k[u],f&&(m=f.animation||a.get("config","animationObj"),v=f.value,s=f.tooltext,n=f.label,i.value=(0,l.pluckNumber)(v,i.value,0),i.tooltext=(0,l.pluck)(s,i.value),i.displayvalue=n);return this.config.lastUpdatedObj=k,this.draw(m),!0}},t}(n["default"]);t["default"]=A},1483:(e,t)=>{t.__esModule=!0,t["default"]=void 0;t["default"]={"initial.dataset.bulb":function(){return{"circle.appearing":function(e){return[{initialAttr:{cx:e.attr.cx,cy:e.attr.cy,r:0},slot:"plot"}]},"tracker.appearing":null,"circle.updating":function(e){return[{initialAttr:{cx:e.attr.cx,cy:e.attr.cy,r:e.attr.r},slot:"plot"}]},"labelGroup.appearing":function(){return[{initialAttr:{opacity:0},finalAttr:{opacity:1},slot:"final"}]},"*":null}}}},1482:(e,t,a)=>{var o=a(269);t.__esModule=!0,t["default"]=void 0;var r,i=o(a(288)),l=a(274),n=a(290),s=a(282),c=o(a(1483)),u=l.BLANK,d=l.preDefStr.POSITION_TOP,h=l.preDefStr.POSITION_MIDDLE,g=l.preDefStr.showHoverEffectStr,p=l.preDefStr.visibleStr,f=l.preDefStr.ROUND,m="{dark-10}",v=Math.min,b=window,k=b.navigator.userAgent,C="rgba(192,192,192,"+(/msie/i.test(k)&&!b.opera?.002:1e-6)+")",x=function(e,t,a){return a.getFromEnv("animationManager").setAnimation({el:"group",attr:{name:e},container:t,component:a,label:"group"})};(0,s.addDep)({name:"bulbAnimation",type:"animationRule",extension:c["default"]});var w=function(e){function t(){var t;return(t=e.call(this)||this).addData=function(){},t.removeData=function(){},t.components={},t}(0,i["default"])(t,e);var a=t.prototype;return a.getType=function(){return"dataset"},a.getName=function(){return"bulb"},a._manageSpace=function(e){var t,a,o,r=this,i=r.config,n=r.components.data,s=r.getFromEnv("chart").config,c=r.getFromEnv("smartLabel"),d=s.dataLabelStyle,h=(0,l.pluckNumber)(parseInt(d.lineHeight,10),12),g=e,p=s.valuepadding,f=0;return o=(t=n[0])&&t.config,c.useEllipsesOnOverflow(s.useEllipsesWhenOverflow),c.setStyle(d),o&&o.displayValue!==u&&!s.placevaluesinside&&i.showValue&&(a=c.getOriSize(o.displayValue),o.displayValue===l.BLANK&&(a={height:h}),a.height>0&&(f=a.height+p),f>g&&(f=g)),i.heightUsed=f,{top:0,bottom:f}},a.configureAttributes=function(e){if(!e)return!1;this.config.JSONData=e;var t,a=this,o=a.config.JSONData,i=(0,l.extend2)({},o),n=a.getFromEnv("chart"),s=a.config,c=n.config,u=n.getFromEnv("dataSource").chart;(0,l.parseConfiguration)(i,s,n.config,{data:!0}),s.origW=(0,l.pluckNumber)(u.origw,c.autoscale?n.config.origRenderWidth:c.width||n.config.origRenderWidth),s.origH=(0,l.pluckNumber)(u.origh,c.autoscale?n.config.origRenderHeight:c.height||n.config.origRenderHeight),s.setToolText=(0,l.getValidValue)((0,l.parseUnsafeString)((0,l.pluck)(u.plottooltext,r),!1)),s.useColorNameAsValue=(0,l.pluckNumber)(u.usecolornameasvalue,0),s.showTextOutline=(0,l.pluckNumber)(u.textoutline,0),s.enableAnimation=t=(0,l.pluckNumber)(u.animation,u.defaultanimation,1),s.animation=!!t&&{duration:1e3*(0,l.pluckNumber)(u.animationduration,1)},s.showValue=(0,l.pluckNumber)(u.showvalue,1),a._setConfigure()},a._setConfigure=function(e){var t,a,o,i,n,s,c,u,d,h,g,p,f,v,b,k,C,x,w,T,y,S,A,F,N,E,L,D,M,R=this,_=R.getFromEnv("chart"),I=R.config,V=_.config,O=R.config.JSONData,P=e||O.data,G=P&&P.length,B=e&&e.data.length||G,H=_.getFromEnv("dataSource").chart,W=R.getFromEnv("color-manager"),z=(0,l.pluckNumber)(H.showtooltip,1),j=((0,l.parseUnsafeString)((0,l.pluck)(H.tooltipsepchar,l.COMMASPACE)),V.showhovereffect),U=R.components.data,X=(0,l.pluckNumber)(H.is3d,1),K=R.getFromEnv("number-formatter"),Y=function(e,t,a){return a?{FCcolor:{cx:.4,cy:.4,r:"80%",color:(0,l.getLightColor)(e,65)+l.COMMASTRING+(0,l.getLightColor)(e,75)+l.COMMASTRING+(0,l.getDarkColor)(e,65),alpha:t+l.COMMASTRING+t+l.COMMASTRING+t,ratio:"0,30,70",radialGradient:!0}}:(0,l.convertColor)(e,t)};for(U||(U=R.components.data=[]),u=0;u<B;u++)o=e?e&&e.data[u]:P[u],s=(n=U[u])&&n.config,n||(n=U[u]={}),n.config||(s=U[u].config={}),s.setValue=i=K.getCleanValue(o.value)||0,t=K.dataLabels(i),c=(0,l.getValidValue)((0,l.parseUnsafeString)(o.displayvalue)),s.colorRangeGetter=d=R.getFromEnv("colorRange"),h=d.getColorObj(s.setValue),d.colorArr.length||(h=d.config.defaultObj),g=(0,l.pluckNumber)(H.gaugefillalpha,h.alpha,100),p=(0,l.parseUnsafeString)((0,l.pluck)(h.label,h.name)),f=(0,l.pluck)(h.bordercolor,H.gaugebordercolor,(0,l.getDarkColor)(h.code,70),"000000"),v=(0,l.pluckNumber)(h.borderalpha,H.gaugeborderalpha,"90")*g/100,f=(b=/\{/.test(f))?W.parseColorMix((0,l.pluck)(h.bordercolor,h.code),f)[0]:f,s.gaugeBorderColor=C=(0,l.convertColor)(f,v),s.gaugeBorderThickness=x=V.showgaugeborder?(0,l.pluckNumber)(H.gaugeborderthickness,1):0,s.rawFillColor=h.code,s.fillColor=k=Y(h.code,g,X),0!==j&&(j||H.gaugefillhovercolor||H.plotfillhovercolor||H.gaugefillhoveralpha||H.plotfillhoveralpha||0===H.gaugefillhoveralpha||H.is3donhover||0===H.is3donhover||H.showgaugeborderonhover||0===H.showgaugeborderonhover||H.gaugeborderhovercolor||H.gaugeborderhoveralpha||0===H.gaugeborderhoveralpha||H.gaugeborderhoverthickness||0===H.gaugeborderhoverthickness)&&(j=!0,w=(0,l.pluck)(H.gaugefillhovercolor,H.plotfillhovercolor,m),T=(0,l.pluckNumber)(H.gaugefillhoveralpha,H.plotfillhoveralpha),(y=(0,l.pluckNumber)(H.showgaugeborderonhover))===r&&(y=H.gaugeborderhovercolor||H.gaugeborderhoveralpha||0===H.gaugeborderhoveralpha||H.gaugeborderhoverthickness||0===H.gaugeborderhoverthickness?1:V.showgaugeborder),S=(0,l.pluck)(H.gaugeborderhovercolor,m),A=(0,l.pluckNumber)(H.gaugeborderhoveralpha),F=y?(0,l.pluckNumber)(H.gaugeborderhoverthickness,x||1):0,N=!!(0,l.pluckNumber)(H.is3donhover,X),D={},M={},x!==F&&(D["stroke-width"]=F,M["stroke-width"]=x),M.fill=(0,l.toRaphaelColor)(k),w=/\{/.test(w)?W.parseColorMix(h.code,w)[0]:(0,l.pluck)(w,h.code),D.fill=(0,l.toRaphaelColor)(Y(w,(0,l.pluckNumber)(T,g),N)),F&&(M.stroke=C,E=/\{/.test(S),D.stroke=(0,l.convertColor)(E?W.parseColorMix(b?w:f,S)[0]:S,(0,l.pluckNumber)(A,v)))),s.setTooltext=(0,l.getValidValue)((0,l.parseUnsafeString)((0,l.pluck)(o.tooltext,O.plottooltext,H.plottooltext),!1)),a=!!z&&(s.setTooltext!==r?(0,l.parseTooltext)(s.setTooltext,[1,2],{formattedValue:t},o,H):I.useColorNameAsValue?p:null!==t&&t),L=c!==r?c:o.label||(I.useColorNameAsValue?p:t),s.toolText=a,s.displayValue=L,s.rolloverProperties={enabled:j,hoverAttr:D,hoverAnimAttr:undefined,outAttr:M}},a.updateData=function(e,t,a){this._setConfigure(e,t),a&&this.asynDraw()},a.draw=function(){var e,t,a,o,i,n,s,c,g,m,b,k,w,T,y,S,A=this,F=A.components.data,N=A.getFromEnv("chart"),E=A.getFromEnv("toolTipController"),L=A.config,D="easeOut",M=N.config,R=M.canvasLeft,_=M.canvasTop,I=M.canvasHeight,V=M.canvasWidth,O=N.getChildContainer().plotGroup,P=A.getContainer("container"),G=A.getContainer("trackerContainer"),B=N.getChildContainer("trackerGroup"),H=F[0],W=H&&H.config,z=M.gaugeoriginx,j=M.gaugeoriginy,U=M.gaugeradius,X=M.hasgaugeoriginx,K=M.hasgaugeoriginy,Y=M.hasgaugeradius,J=A.getFromEnv("smartLabel"),q=A.getFromEnv("animationManager"),Z=A.getContainer("dataLabelContainer"),$=N.config.dataLabelStyle,Q=N.getChildContainer("datalabelsGroup");J.setStyle($),P||(P=A.addContainer("container",x("bulb",O,A))),G||(G=A.addContainer("trackerContainer",x("bulb-hot",B,A))),Z||(Z=A.addContainer("dataLabelContainer",q.setAnimation({el:"group",attr:{name:"datalabel"},label:"labelGroup",component:A}))),Q&&Q.appendChild(Z),S=H.trackerConfig={},e=W.setValue,a=W.toolText,S.eventArgs={value:e,displayValue:W.displayValue,toolText:a||"",color:W.rawFillColor},H.graphics||(H.graphics={}),t={cx:n=z=X!==r?z*L.scaleFactor:R+V/2,cy:s=j=K!==r?j*L.scaleFactor:_+I/2,r:c=Y!==r?U*L.scaleFactor:v(V/2,I/2),"stroke-linecap":f,stroke:(0,l.toRaphaelColor)(W.gaugeBorderColor),"stroke-width":W.gaugeBorderThickness,fill:(0,l.toRaphaelColor)(W.fillColor)},m=H.graphics.element,g=q.setAnimation({el:m||"circle",attr:t,container:P,component:A,animType:D,label:"circle"}),m||(H.graphics.element=g),S.attr={cx:n,cy:s,r:c,cursor:W.setLink?"pointer":l.BLANK,stroke:C,"stroke-width":W.plotBorderThickness,fill:C,visibility:p},w=(b=H.graphics).label,M.placevaluesinside?(T=s,y=h):(T=s+c+M.valuepadding,y=d),W.setValue!==u&&L.showValue&&(o=(i=J.getSmartText(W.displayValue,M.width-M.chartleftmargin-M.chartrightmargin,+M.height-T-M.chartbottommargin)).tooltext||u,t={text:i.text,"text-anchor":h,x:z,y:T,"vertical-align":y,fill:$.color,direction:W.textDirection,"text-bound":[$.backgroundColor,$.borderColor,$.borderThickness,$.borderPadding,$.borderRadius,$.borderDash]},(k=q.setAnimation({el:w||"text",animType:D,attr:t,label:"text",container:Z,component:A})).outlineText(L.showTextOutline,t.fill),w||(b.label=k),M.showToolTip?E.enableToolTip(k,o):E.disableToolTip(k)),L.showValue?b.label&&b.label.show():b.label&&b.label.hide(),A.drawTracker()},a.drawTracker=function(){var e,t,a,o,r,i,l,n,s=this,c=s.getFromEnv("chart"),u=s.getFromEnv("animationManager"),d=s.getFromEnv("toolTipController"),h=s.components.data,p=c.config.plothovereffect,f=s.getContainer("trackerContainer"),m=!1;t=(a=h[0])&&a.config,e=a.trackerConfig,o=a.graphics.element,l=e.attr,i=a.graphics.hotElement,l&&(r=u.setAnimation({el:i||"circle",attr:l,container:f,component:s,label:"tracker"}),i||(a.graphics.hotElement=r,m=!0),(r||o).data("eventArgs",e.eventArgs).data(g,p).data("setRolloverAttr",t.rolloverProperties.hoverAttr||{}).data("setRolloutAttr",t.rolloverProperties.outAttr||{}),d.enableToolTip(r||o,e.eventArgs.toolText),(m||t.elemCreated)&&(r||o).on("fc-click",(function(e){c.plotEventHandler(this,e)})).hover((n=o,function(e){var t=this.getData(),a=t.setRolloverAttr;0!==t.showHoverEffect&&!0!==t.draged&&(a.fill&&(u.setAnimationState("mouseover"),u.setAnimation({el:n,attr:a,component:s})),c.plotEventHandler(this,e,"DataPlotRollOver"))}),function(e){return function(t){var a=this.getData(),o=a.setRolloutAttr;0!==a.showHoverEffect&&!0!==a.draged&&(o.fill&&(u.setAnimationState("mouseout"),u.setAnimation({el:e,attr:o,component:s})),c.plotEventHandler(this,t,"DataPlotRollOut"))}}(o)))},t}(n.ComponentInterface);t["default"]=w},1514:(e,t,a)=>{t.__esModule=!0,t["default"]=void 0;var o=a(274),r=[{initialAttr:function(){return{opacity:0}},finalAttr:function(){return{opacity:1}}}],i={"initial.dataset.bullet":function(){var e=this,t=e.config,a=e.getFromEnv("chart"),i=e.getFromEnv("scale"),l=i.max,n=i.min,s=l<=0&&n<0?l:l>0&&n>=0?n:0,c=i.yBasePos=i.getPixel(s);return{"plotRect.appearing":function(){var e,o=a.isHorizontal;return t.plotAsDot||(c=i.getPixel(t.base)),e=o?{width:0}:{height:0,y:c},[{initialAttr:function(){return e},slot:"middle"}]},"plotRect.updating":null,"path.appearing":function(){return r[0].slot=o.MIDDLESTR,r},"path.updating":null,"text.appearing":function(){return r[0].slot=o.FINALSTR,r},"text.updating":null,"labelGroup.appearing":function(){return r[0].slot=o.FINALSTR,r},"labelGroup.updating":null,"backgroundRect.appearing":function(){return r[0].slot=o.INITIALSTR,r},"backgroundRect.updating":null}}};t["default"]=i},1513:(e,t,a)=>{var o=a(269);t.__esModule=!0,t["default"]=void 0;var r,i=o(a(288)),l=a(274),n=a(282),s=a(290),c=o(a(1514)),u=(0,n.getDep)("redraphael","plugin"),d=l.BLANK,h=l.preDefStr.showHoverEffectStr,g="setRolloverAttr",p=l.preDefStr.ROUND,f=l.preDefStr.miterStr,m=l.preDefStr.colors,v=Math,b=v.max,k=v.min,C=v.abs,x=m.FFFFFF,w="none",T="setRolloutAttr",y=window.document.documentElement.ontouchstart!==r,S={"true":r,"false":"crisp"},A="eventArgs",F=l.preDefStr.POSITION_START,N=l.preDefStr.POSITION_MIDDLE,E=l.preDefStr.PLOTFILLCOLOR_STR,L=y?l.TOUCH_THRESHOLD_PIXELS:l.CLICK_THRESHOLD_PIXELS;(0,n.addDep)({name:"bulletAnimation",type:"animationRule",extension:c["default"]});var D=function(e){function t(){var t;return(t=e.call(this)||this).addData=function(){},t.removeData=function(){},t.components={},t}(0,i["default"])(t,e);var a=t.prototype;return a.getType=function(){return"dataset"},a.getName=function(){return"bullet"},a.configure=function(e){if(!e)return!1;this.config.JSONData=e;var t,a,o,r,i,n,s,c,u,d=this,h=d.getFromEnv("chart"),g=d.config,f=d.config.JSONData,m=h.getFromEnv("dataSource").chart,v=d.getFromEnv("color-manager"),k=g.plotColor=v.getColor(E),C=(0,l.pluckNumber)(f.dashed,m.plotborderdashed),T=d.components.data,y=h.isBar,S=h.config.is3D,A=h.isStacked;d.setState("visible",1===(0,l.pluckNumber)(f.visible,1)),g.targetCapStyle=u=(0,l.pluck)(m.targetcapstyle,p).toLowerCase(),"butt"!==u&&u!==p&&"square"!==u&&"inherit"!==u&&(g.targetCapStyle=p),g.upperLimit=(0,l.pluckNumber)(m.upperlimit),g.lowerLimit=(0,l.pluckNumber)(m.lowerlimit),g.initAnimation=!0,t=g.showplotborder=(0,l.pluckNumber)(m.showplotborder,0),g.plotDashLen=a=(0,l.pluckNumber)(m.plotborderdashlen,5),g.plotDashGap=o=(0,l.pluckNumber)(m.plotborderdashgap,4),g.plotfillAngle=(0,l.pluckNumber)(360-m.plotfillangle,y?180:90),g.plotFillAlpha=i=(0,l.pluck)(f.alpha,m.plotfillalpha,l.HUNDREDSTRING),g.plotColor=k=(0,l.pluck)(m.plotfillcolor,k),g.isRoundEdges=r=(0,l.pluckNumber)(m.useroundedges,0),g.plotRadius=(0,l.pluckNumber)(m.useRoundEdges,g.isRoundEdges?1:0),g.plotFillRatio=(0,l.pluck)(f.ratio,m.plotfillratio),g.plotgradientcolor=(0,l.getDefinedColor)(m.plotgradientcolor,v.getColor("plotGradientColor")),g.showPlotBorderOnHover=(0,l.pluckNumber)(m.showplotborderonhover,0),g.plotBorderAlpha=(0,l.pluck)(m.plotborderalpha,i,l.HUNDREDSTRING),g.plotBorderColor=(0,l.pluck)(m.plotbordercolor,S?x:v.getColor("plotBorderColor")),g.plotBorderThickness=t?(0,l.pluckNumber)(m.plotborderthickness,0):0,g.plotBorderDashStyle=C?(0,l.getDashStyle)(a,o):w,g.showValue=(0,l.pluckNumber)(f.showvalue,m.showvalue,1),g.valuePadding=(0,l.pluckNumber)(m.valuepadding,2),g.showShadow=r||S?(0,l.pluckNumber)(m.showshadow,1):(0,l.pluckNumber)(m.showshadow,v.getColor("showShadow")),g.showHoverEffect=(0,l.pluckNumber)(m.plothovereffect,m.showhovereffect,0),g.showTooltip=(0,l.pluckNumber)(m.showtooltip,1),g.stack100Percent=n=(0,l.pluckNumber)(h.stack100percent,m.stack100percent,0),g.definedGroupPadding=b((0,l.pluckNumber)(m.plotspacepercent),0),g.plotSpacePercent=b((0,l.pluckNumber)(m.plotspacepercent,20)%100,0),g.maxColWidth=(0,l.pluckNumber)(y?m.maxbarheight:m.maxcolwidth,50),g.showPercentValues=(0,l.pluckNumber)(m.showpercentvalues,A&&n?1:0),g.showPercentInToolTip=(0,l.pluckNumber)(m.showpercentintooltip,A&&n?1:0),g.plotPaddingPercent=(0,l.pluckNumber)(m.plotpaddingpercent),g.rotateValues=(0,l.pluckNumber)(m.rotatevalues)?270:0,g.placeValuesInside=(0,l.pluckNumber)(m.placevaluesinside,0),g.use3DLighting=(0,l.pluckNumber)(m.use3dlighting,1),T||(T=d.components.data=[]),g.plotAsDot=c=(0,l.pluckNumber)(m.plotasdot,0),g.plotFillPercent=(0,l.pluckNumber)(m.plotfillpercent,c?25:40),g.targetFillPercent=(0,l.pluckNumber)(m.targetfillpercent,60),g.targetThickness=(0,l.pluckNumber)(m.targetthickness,3),s=g.targetalpha=(0,l.pluckNumber)(m.targetalpha,100),g.rawTargetColor=(0,l.pluck)(m.targetcolor,v.getColor(E)),g.targetColor=(0,l.convertColor)(g.rawTargetColor,s),d._setConfigure()},a._setConfigure=function(e){var t,a,o,i,n,s,c,u,d,h,g,p,f,m,v,C,x,T,y,S,A,F,N,E,L,D,M,R,_,I,V,O,P,G,B,H,W,z,j,U,X,K,Y=this,J=Y.getFromEnv("chart"),q=Y.config,Z=Y.config.JSONData,$=e||Z.data,Q=$&&$.length,ee=e&&e.data.length||Q,te=J.getFromEnv("dataSource").chart,ae=Y.getFromEnv("color-manager"),oe=q.showplotborder,re=q.showPlotBorderOnHover,ie=q.plotColor,le=(0,l.parseUnsafeString)((0,l.pluck)(te.tooltipsepchar,l.COMMASPACE)),ne=(0,l.pluckNumber)(te.seriesnameintooltip,1),se=q.plotBorderThickness,ce=q.isRoundEdges,ue=q.showHoverEffect,de=q.plotFillAngle,he=q.plotBorderAlpha,ge=q.plotBorderDashStyle,pe=Y.components.data,fe=J.isBar,me=J.config.is3D,ve=-Infinity,be=Infinity,ke=Y.getFromEnv("number-formatter"),Ce=function(e){var o;return q.showTooltip?null===t?o=!1:e!==r?(n=[1,2,3,4,5,6,7,26,27],a={formattedValue:t,targetValue:v.target,targetDataValue:v.toolTipValueTarget},o=(0,l.parseTooltext)(e,n,a,p,te,Z)):(ne&&(i=(0,l.getFirstValue)(Z&&Z.seriesname)),o=i?i+le:l.BLANK,o+=v.toolTipValue?v.toolTipValue:l.BLANK):o=!1,o};for(pe||(pe=Y.components.data=[]),G=0;G<ee;G++)p=e?e&&e.data[G]:$[G],m=pe[G],v=m&&m.config,m||(m=pe[G]={}),m.config||(v=pe[G].config={}),v.showValue=(0,l.pluckNumber)(p.showvalue,q.showValues),v.valuePadding=(0,l.pluckNumber)(te.valuepadding,2),v.setValue=f=ke.getCleanValue(p.value),v.target=B=ke.getCleanValue(p.target),v.setLink=(0,l.pluck)(p.link),v.toolTipValue=_=ke.dataLabels(f),v.toolTipValueTarget=ke.dataLabels(B),v.setDisplayValue=I=(0,l.parseUnsafeString)(p.displayvalue),v.displayValue=(0,l.pluck)(p.label,I,_),V=(0,l.pluckNumber)(p.dashed),O=(0,l.pluckNumber)(p.dashlen,c),P=u=(0,l.pluckNumber)(p.dashgap,u),ve=b(ve,f,B),be=k(be,f,B),v.plotBorderDashStyle=g=1===V?(0,l.getDashStyle)(O,P):0===V?w:ge,ie=(0,l.pluck)(p.color,q.plotColor),d=(0,l.pluck)(p.alpha,q.plotFillAlpha),f<0&&!ce&&(s=de,de=fe?180-de:360-de),v.colorArr=C=(0,l.getColumnColor)(ie,d,h,de,ce,q.plotBorderColor,he.toString(),fe?1:0,!!me),0!==ue&&(x=(0,l.pluck)(p.hovercolor,Z.hovercolor,te.plotfillhovercolor,te.columnhovercolor,ie),T=(0,l.pluck)(p.hoveralpha,Z.hoveralpha,te.plotfillhoveralpha,te.columnhoveralpha,d),!(0,l.pluck)(p.hovergradientcolor,Z.hovergradientcolor,te.plothovergradientcolor,q.plotgradientcolor)&&l.BLANK,y=(0,l.pluck)(p.hoverratio,Z.hoverratio,te.plothoverratio,h),S=(0,l.pluckNumber)(360-p.hoverangle,360-Z.hoverangle,360-te.plothoverangle,de),A=(0,l.pluck)(p.borderhovercolor,Z.borderhovercolor,te.plotborderhovercolor,te.plotfillhovercolor,q.plotBorderColor),F=(0,l.pluck)(p.borderhoveralpha,Z.borderhoveralpha,te.plotborderhoveralpha,he,d),N=(0,l.pluckNumber)(p.borderhoverthickness,Z.borderhoverthickness,te.plotborderhoverthickness,se),E=(0,l.pluckNumber)(p.borderhoverdashed,Z.borderhoverdashed,te.plotborderhoverdashed),L=(0,l.pluckNumber)(p.borderhoverdashgap,Z.borderhoverdashgap,te.plotborderhoverdashgap,c),D=(0,l.pluckNumber)(p.borderhoverdashlen,Z.borderhoverdashlen,te.plotborderhoverdashlen,u),M=E?(0,l.getDashStyle)(D,L):g,1===ue&&x===ie&&(x=(0,l.getDarkColor)(x,90)),R=(0,l.getColumnColor)(x,T,y,S,ce,A,F.toString(),fe?1:0,!1),v.setPlotRolloutAttr={fill:me?[(0,l.toRaphaelColor)(C[0]),!q.use3DLighting]:(0,l.toRaphaelColor)(C[0]),stroke:oe&&(0,l.toRaphaelColor)(C[1]),"stroke-width":se,"stroke-dasharray":g},v.setPlotRolloverAttr={fill:me?[(0,l.toRaphaelColor)(R[0]),!q.use3DLighting]:(0,l.toRaphaelColor)(R[0]),stroke:(0,l.toRaphaelColor)(R[1]),"stroke-width":re?N||1:N,"stroke-dasharray":M}),0!==ue&&(ue||te.targethovercolor||te.targethoveralpha||0===te.targethoveralpha||te.targethoverthickness||0===te.targethoverthickness)&&(ue=!0,H={},W={},z=(0,l.pluckNumber)(te.targethoverthickness,q.targetThickness+2),q.targetThickness!==z&&(H["stroke-width"]=z,W["stroke-width"]=q.targetThickness),j=(0,l.pluck)(te.targethovercolor,"{dark-10}"),U=(0,l.pluckNumber)(te.targethoveralpha,q.targetalpha),z&&(W.stroke=q.targetColor,X=/\{/.test(j),H.stroke=(0,l.convertColor)(X?ae.parseColorMix((0,l.pluck)(te.targetcolor,ie),j)[0]:j,U)),v.tagetHoverAttr=H,v.targetOutAttr=W),t=v.toolTipValue,o=(0,l.getValidValue)((0,l.parseUnsafeString)((0,l.pluck)(p.tooltext,Z.plottooltext,te.plottooltext),!1)),v.toolText=Ce(o),v.setTooltext=v.toolText,s&&(de=s),K=(0,l.getValidValue)((0,l.parseUnsafeString)((0,l.pluck)(p.tooltexttarget,Z.targettooltext,te.targettooltext),!1)),v.toolTextTarget=Ce(K);q.maxValue=ve,q.minValue=be},a._manageSpace=function(e){var t,a,o,r=this,i=r.config,n=r.components.data,s=r.getFromEnv("chart"),c=s.config,u=s.getFromEnv("smartLabel"),d=c.dataLabelStyle,h=(0,l.pluckNumber)(parseInt(d.lineHeight,10),12),g=e,p=i.valuePadding,f=0,m=0;for(o=(t=n[m])&&t.config,u.useEllipsesOnOverflow(c.useEllipsesWhenOverflow),u.setStyle(d);m<1;m+=1)i.showValue&&(a=u.getOriSize(o.toolTipValue),o.toolTipValue===l.BLANK&&(a={height:h}),a.height>0&&(f=a.height+p),f>g&&(f=g));return i.heightUsed=f,{top:0,bottom:f}},a._manageSpaceHorizontal=function(e){var t,a,o,i=this,n=i.config,s=i.components.data,c=i.getFromEnv("chart"),u=c.config,h=c.getFromEnv("smartLabel"),g=u.dataLabelStyle,p=(0,l.pluckNumber)(parseInt(g.lineHeight,10),12),f=e,m=n.valuePadding,v=0,b=0;for(o=(t=s[b])&&t.config,h.useEllipsesOnOverflow(u.useEllipsesWhenOverflow),h.setStyle(g);b<1;b+=1)o&&o.displayValue!==d&&o.displayValue!==r&&n.showValue&&(a=h.getOriSize(o.displayValue),o.displayValue===l.BLANK&&(a={height:p}),a.height>0&&(v=a.width+m+2),v>f&&(v=f));return n.widthUsed=v,{top:0,right:v}},a.updateData=function(e,t,a){var o=this,r=o.config,i=r.maxValue,l=r.prevMin,n=o.getFromEnv("chart"),s=o.groupManager||o,c=o.getFromEnv("scale");o._setConfigure(e,t),o.setMaxMin(),r.maxValue===i&&r.minValue===l||(o.config.maxminFlag=!0),a&&(n._setAxisLimits(),c.draw(),s.draw())},a.setMaxMin=function(){var e,t,a=this.components.data,o=this.config,r=a.length,i=-Infinity,l=+Infinity;for(e=0;e<r;e++)a[e]&&(t=a[e].config,i=b(i,t.setValue,t.target),l=k(l,t.setValue,t.target));o.maxValue=i,o.minValue=l},a.draw=function(){var e,t,a,o,r,i,n,s,c,u,d,h,g,p,f,m,v,k,C,x,w,T,y,S,A,F=this,N=F.getFromEnv("chart"),E=N.getFromEnv("dataSource").chart,L=N.config,D=N.getChildren("canvas")[0],M=D.config,R=F.getGraphicalElement("backgroundRect")||[],_=L.canvasLeft,I=L.canvasTop,V=L.canvasWidth,O=L.canvasHeight,P=D.getContainer("canvasGroup"),G=F.getFromEnv("scale"),B=G.getLimit().min,H=G.getLimit().max,W=N.isHorizontal,z=F.getFromEnv("color-manager"),j=N.getFromEnv("animationManager");for(t=W?270:180,M.colorRangeFillMix=a=(0,l.getFirstDefinedValue)(E.colorrangefillmix,E.gaugefillmix,N.colorRangeFillMix,"{light-10},{dark-10},{light-10},{dark-10}"),M.colorRangeFillRatio=o=(0,l.getFirstDefinedValue)(E.colorrangefillratio,E.gaugefillratio,N.colorRangeFillRatio,E.gaugefillratio,"0,10,80,10"),M.colorRangeGetter=r=N.getFromEnv("colorRange"),M.colorArray=i=r&&r.getColorRangeArr(B,H),n=(0,l.pluck)(E.colorrangebordercolor,E.gaugebordercolor,"{dark-20}"),s=(0,l.pluckNumber)(E.colorrangeborderalpha,E.gaugeborderalpha,100),c=(0,l.pluckNumber)(E.showshadow,1),u=(0,l.pluckNumber)(E.showgaugeborder,E.showcolorrangeborder,0),M.colorRangeBorderThickness=d=u?(0,l.pluckNumber)(E.colorrangeborderthickness,E.gaugeborderthickness,2):0,f=N.getFromEnv("dataSource").colorrange&&i&&i.length||0,g=0,p=0;g<f;g+=1)h=i[g],S=h.minvalue-B,A=h.maxvalue-B,m=W?W?{x:_+S*V/(H-B),y:I,width:(A-S)*V/(H-B),height:O}:void 0:{x:_,y:I+(O-A*O/(H-B)),width:V,height:(A-S)*O/(H-B)},h.x=m.x,h.y=m.y,h.width=m.width,h.height=m.height,v=h.code,k=(0,l.convertColor)((0,l.getColorCodeString)((0,l.pluck)(h.bordercolor,v),n),(0,l.pluckNumber)(h.borderalpha,s)),C=z.parseColorMix(h.code,a),x=z.parseAlphaList(h.alpha,C.length),w=(0,l.pluckNumber)(h.borderAlpha,s),T=x.split(l.COMMASTRING),T=b.apply(Math,T),T=b(d&&w||0,T),e={x:m.x,y:m.y,width:m.width,height:m.height,r:0,"stroke-width":d,stroke:k,fill:(0,l.toRaphaelColor)({FCcolor:{color:C.toString(),ratio:o,alpha:x,angle:t}})},y=j.setAnimation({el:R[g]||"rect",attr:e,container:P,component:F,doNotRemove:!0,label:"backgroundRect"}),!R[g]&&F.addGraphicalElement("backgroundRect",y,!0),y.show(),y.shadow({apply:c,opacity:T/100}),p++;for(f=R&&R.length;f>p;)R&&R[f-1]&&F.removeGraphicalElement(R[f-1]),f--;F.drawPlot()},a.drawPlot=function(){var e,t,a,o,i,n,s,c,p,m,v,b,k,x,w,y,E,D,M,R,_,I,V,O,P,G,B,H,W,z,j,U,X,K,Y,J,q,Z,$,Q=this,ee=Q.config,te=Q.getState("visible"),ae=Q.getFromEnv("chart"),oe=ae.getChildren("caption")[0],re=ae.getChildren("subCaption")[0],ie=oe&&oe.config.text&&oe.config.height||0,le=oe&&oe.config.text&&oe.config.captionPadding||0,ne=re&&re.config.text&&re.config.height||0,se=Q.getFromEnv("toolTipController"),ce=ae.config,ue=ce.canvasLeft,de=ce.canvasRight,he=ce.canvasTop,ge=ce.canvasBottom,pe=ce.canvasHeight,fe=ce.canvasWidth,me=Q.getFromEnv("smartLabel"),ve=Q.getFromEnv("scale"),be=ae.getChildContainer().plotGroup,ke=u,Ce=ee.showTooltip,xe=Q.components.data,we=ee.showShadow,Te=ee.plotBorderThickness,ye=ee.plotRadius,Se=Q.getContainer("container"),Ae=Q.getContainer("targetContainer"),Fe=Q.getContainer("dataLabelContainer"),Ne=Q.getContainer("shadowContainer"),Ee=Q.getContainer("shadowTargetContainer"),Le=!1,De=ae.getChildContainer("datalabelsGroup"),Me=ae.config.dataLabelStyle,Re=ae.getFromEnv("animationManager"),_e=ee.heightUsed,Ie=ee.lowerLimit,Ve=ee.showHoverEffect,Oe=function(e){ae.plotEventHandler(this,e)},Pe=function(e){return function(t){var a=this;0!==a.data(h)&&e.attr(a.data(g)),ae.plotEventHandler(a,t,"DataPlotRollOver")}},Ge=function(e){return function(t){var a=this;0!==a.data(h)&&e.attr(a.data(T)),ae.plotEventHandler(a,t,"DataPlotRollOut")}},Be=function(){this.hide()};for(D=Re.setAnimation({el:Se||"group",attr:{name:"bar"},component:Q,container:be,doNotRemove:!0,label:"group"}),Se||(D=Q.addContainer("container",D)),R=Re.setAnimation({el:Fe||"group",attr:{name:"datalabel"},component:Q,container:De,doNotRemove:!0,label:"labelGroup"}),Fe||(R=Q.addContainer("dataLabelContainer",R)),M=Re.setAnimation({el:Ae||"group",attr:{name:"target"},container:be,doNotRemove:!0,component:Q,label:"group"}),Ae||(M=Q.addContainer("targetContainer",M)),_=Re.setAnimation({el:Ne||"group",attr:{name:"shadow"},component:Q,container:be,doNotRemove:!0,label:"group"}),Ne||(_=Q.addContainer("shadowContainer",_.toBack()),te||_.hide()),I=Re.setAnimation({el:Ee||"group",attr:{name:"shadow"},component:Q,container:be,doNotRemove:!0,label:"group"}),Ee||(I=Q.addContainer("shadowTargetContainer",I.toBack()),te||I.hide()),me.setStyle(Me),t=0;t<1;t++)(w=(E=(b=xe[t])&&b.config).setValue)<0&&(Le=!0),x=E.setLink,V=E.colorArr,Y=!1,b.graphics||(xe[t].graphics={}),y=E.displayValue,ae.isHorizontal?(m=ee.plotFillPercent/100*pe,i=C(he+ge)/2-m/2,ee.plotAsDot?(o=ve.getPixel(w)-m/2,j=m):(J=Ie&&Ie<=w&&ve.config.axisRange.min>=0?Ie:0,o=Le?ve.getPixel(w):ve.getPixel(J),j=Le?ve.getPixel(0)-ve.getPixel(w):ve.getPixel(w)-ve.getPixel(J)),o=(n=ke.crispBound(o,i,j,m,Te)).x,i=n.y,p=n.width,m=n.height,v=E.toolText===l.BLANK?E.toolTipValue:E.toolText,O=E.plotBorderDashStyle,e={x:o,y:i,width:p||1,height:m,r:ye,fill:(0,l.toRaphaelColor)(V[0]),stroke:(0,l.toRaphaelColor)(V[1]),"stroke-width":Te,"stroke-dasharray":O,"stroke-linejoin":f,visibility:te},null!==w&&(b.graphics.element&&b.graphics.element.show(),(x||Ce)&&m<L&&(i-=(L-m)/2,m=L)),E.elemCreated=b.graphics.element!==r,w?k=b.graphics.element=Re.setAnimation({el:b.graphics.element||"rect",attr:e,container:D,component:Q,label:"plotRect"}):b.graphics.element&&Re.setAnimation({el:b.graphics.element,component:Q,doNotRemove:!0,callback:Be,label:"plotRect"}),k&&k.shadow({opacity:we},_).data("BBox",n),E.target&&(v=E.toolTipValueTarget,G=ee.targetFillPercent/100*pe,P=["M",B=H=ve.getPixel(E.target),W=(he+ge)/2-G/2,"L",H,z=W+G],Z={stroke:ee.targetColor,"stroke-width":ee.targetThickness,"stroke-linecap":ee.targetCapStyle,path:P,"shape-rendering":S[!1]},b.graphics.targetElement&&b.graphics.targetElement.show()),Y=b.graphics.targetElement===r,$=b.graphics.targetElement=Re.setAnimation({el:b.graphics.targetElement||"path",attr:Z,container:M,component:Q,doNotRemove:!0,callback:E.target?l.stubFN:Be,label:"path"}),E.target&&(k=b.graphics.targetElement),U=parseInt(Me.lineHeight,10),i=.5*(he+pe),y!==d&&y!==r&&ee.showValue&&(y=(c=me.getSmartText(y,ee.widthUsed,ce.height)).text,s=c.tooltext,q={text:y,"text-anchor":F,x:de+ee.valuePadding+2,y:i,"vertical-align":l.POSITION_TOP,fill:Me.color,direction:E.textDirection,"text-bound":[Me.backgroundColor,Me.borderColor,Me.borderThickness,Me.borderPadding,Me.borderRadius,Me.borderDash]},b.graphics.label&&b.graphics.label.show()),b.graphics.label=Re.setAnimation({el:b.graphics.label||"text",attr:q,component:Q,container:R,doNotRemove:!0,callback:y&&ee.showValue?l.stubFN:Be,label:"text"}),(X=b.graphics.label.getBBox()).x+ce.marginLeft<0&&(K=X.width-ce.marginLeft,ce.width<K&&(K=ce.width-ce.marginLeft),q.x=K/2,Re.setAnimation({el:b.graphics.label,attr:q,component:Q,doNotRemove:!0,callback:y&&ee.showValue?l.stubFN:Be,label:"text"}))):(j=ee.plotFillPercent/100*fe,o=C(ue+de)/2-j/2,ee.plotAsDot?(i=ve.getPixel(w)-j/2,m=j):(ee.base=J=Ie&&Ie<=w&&ve.config.axisRange.min>=0?Ie:0,i=Le?ve.getPixel(0):ve.getPixel(w),m=Le?ve.getPixel(w)-ve.getPixel(0):ve.getPixel(Ie&&Ie<=w&&ve.config.axisRange.min>=0?Ie:0)-i),o=(n=ke.crispBound(o,i,j,m,Te)).x,i=n.y,p=n.width,m=n.height,v=E.toolText===l.BLANK?E.toolTipValue:E.toolText,O=E.plotBorderDashStyle,e={x:o,y:i,width:p,height:m||1,r:ye,fill:(0,l.toRaphaelColor)(V[0]),stroke:(0,l.toRaphaelColor)(V[1]),"stroke-width":Te,"stroke-dasharray":O,"stroke-linejoin":f,visibility:te},b._xPos=o,b._yPos=i+m,b._height=m,b._width=p,null!==w&&(b.graphics.element&&b.graphics.element.show(),(x||Ce)&&m<L&&(i-=(L-m)/2,m=L)),E.elemCreated=b.graphics.element!==r,w?k=b.graphics.element=Re.setAnimation({el:b.graphics.element||"rect",attr:e,container:D,component:Q,label:"plotRect"}):b.graphics.element&&Re.setAnimation({el:b.graphics.element,label:"plotRect",doNotRemove:!0,callback:Be,component:Q}),k&&k.shadow({opacity:we},_).data("BBox",n),E.target&&(v=E.toolTipValueTarget,H=(B=(ue+de)/2-(G=ee.targetFillPercent/100*fe)/2)+G,P=["M",B,W=z=ve.getPixel(E.target),"L",H,z],Z={stroke:ee.targetColor,"stroke-width":ee.targetThickness,"stroke-linecap":ee.targetCapStyle,path:P,"shape-rendering":S[!1]},b.graphics.targetElement&&b.graphics.targetElement.show()),Y=b.graphics.targetElement===r,$=b.graphics.targetElement=Re.setAnimation({el:b.graphics.targetElement||"path",attr:Z,container:M,component:Q,doNotRemove:!0,callback:E.target?l.stubFN:Be,label:"path"}),i=(U=parseInt(Me.lineHeight,10))>_e?ce.height-ce.marginBottom-_e+U/2:ce.height-ce.marginBottom-U/2,i-=ce.borderWidth,i-=(ae._manageActionBarSpace&&ae._manageActionBarSpace(.225*E.availableHeight)||{}).bottom,0===oe.config.isOnTop&&(i-=ie+ne+le),y!==d&&y!==r&&ee.showValue&&(y=(c=me.getSmartText(y,ce.width,_e)).text,s=c.tooltext||d,q={text:y,"text-anchor":N,x:fe/2+ue,y:i,"vertical-align":N,fill:Me.color,direction:E.textDirection,"text-bound":[Me.backgroundColor,Me.borderColor,Me.borderThickness,Me.borderPadding,Me.borderRadius,Me.borderDash]},b.graphics.label&&b.graphics.label.show()),b.graphics.label=Re.setAnimation({el:b.graphics.label||"text",attr:q,component:Q,container:R,doNotRemove:!0,callback:y&&ee.showValue?l.stubFN:Be,label:"text"}),(X=b.graphics.label.getBBox()).x+ce.marginLeft<0&&(K=X.width-ce.marginLeft,ce.width<K&&(K=ce.width-ce.marginLeft),q.x=K/2,Re.setAnimation({el:b.graphics.label,attr:q,component:Q,doNotRemove:!0,callback:y&&ee.showValue?l.stubFN:Be,label:"text"}))),a={showValue:ee.showValue,plotAsDot:ee.plotAsDot,plotFillPercent:ee.plotFillPercent,plotFillColor:ee.plotColor,plotFillAlpha:ee.plotFillAlpha,showPlotBorder:ee.showplotborder,plotBorderColor:ee.plotBorderColor,plotBorderThickness:ee.plotBorderThickness,plotBorderAlpha:ee.plotBorderAlpha,target:E.target,targetColor:ee.rawTargetColor,targetThickness:ee.targetThickness,targetFillPercent:ee.targetFillPercent,targetCapStyle:ee.targetCapStyle},b.graphics.element?(b.graphics.element.data(h,Ve).data(g,E.setPlotRolloverAttr||{}).data(T,E.setPlotRolloutAttr||{}).data(A,a),E.elemCreated||b.graphics.element.on("fc-click",Oe).hover(Pe(b.graphics.element),Ge(b.graphics.element)),Ce?(se.enableToolTip($,v),se.enableToolTip(b.graphics.element,E.toolText),se.enableToolTip(b.graphics.label,s)):(se.disableToolTip($),se.disableToolTip(b.graphics.element),se.disableToolTip(b.graphics.label))):!Ce||0!==w&&null!==w||(se.enableToolTip($,v),se.enableToolTip(b.graphics.label,s)),Y&&$.on("fc-click",Oe).hover(Pe($),Ge($)),$.shadow({opacity:we},_).data("BBox",n).data(A,a).data("groupId",undefined).data(h,Ve).data(g,E.tagetHoverAttr).data(T,E.targetOutAttr)},a.getDataLimits=function(){var e,t,a,o=this,r=o.config,i=o.pointerArr&&o.pointerArr.pointer,l=o.getFromEnv("chart").getFromEnv("dataSource").colorrange,n=l&&l.color,s=i&&i.length,c=r.upperLimit,u=r.lowerLimit,d=r.maxValue,h=r.minValue;for(s=n&&n.length,e=0;e<s;e++)t=Number(n[e].maxvalue),a=Number(n[e].minvalue),c&&t>c&&(t=c),u&&a<u&&(a=u),d=b(d,t),h=k(u,a);return{forceMin:!0,forceMax:!0,max:d,min:h}},t}(s.ComponentInterface);t["default"]=D},1495:(e,t,a)=>{t.__esModule=!0,t["default"]=void 0;var o=a(274),r=[{initialAttr:function(){return{opacity:0}},finalAttr:function(){return{opacity:1}}}],i={"initial.dataset.cylinder":function(){var e=this.config;return{"plotFluid.appearing":function(e){var t=e.attr.path.slice(0);return t[13]=t[21]=t[2],[{initialAttr:{opacity:0},finalAttr:{opacity:1},slot:"initial"},{initialAttr:{path:t},finalAttr:{opacity:1},slot:"middle"}]},"plotFluid.updating":null,"plotFluidTop.appearing":function(t){var a=t.attr.path.slice(0);return a[2]=a[10]=a[13]=a[21]=e.cylBase,[{initialAttr:{opacity:0},finalAttr:{opacity:1},slot:"initial"},{initialAttr:{path:a},finalAttr:{opacity:1},slot:"middle"}]},"plotFluidTop.updating":null,"text.appearing":function(){return r[0].slot=o.FINALSTR,r},"text.updating":null,"labelGroup.appearing":function(){return r[0].slot=o.FINALSTR,r},"labelGroup.updating":null,"path.appearing":function(){return r[0].slot=o.INITIALSTR,r},"path.updating":null}}};t["default"]=i},1493:(e,t,a)=>{var o=a(269);t.__esModule=!0,t["default"]=void 0;var r=o(a(288)),i=a(274),l=o(a(1494)),n=a(282),s=o(a(1495)),c="A",u=Math,d=u.max,h=u.min,g=window,p=g.navigator.userAgent,f=/msie/i.test(p)&&!g.opera,m="Z",v="100%",b="0,100",k="40,0",C="30,30,30,30,30,30,30,30",x="rgba(192,192,192,"+(f?.002:1e-6)+")",w="M",T="L",y=i.preDefStr.POSITION_TOP,S=i.preDefStr.POSITION_MIDDLE;(0,n.addDep)({name:"cylinderAnimation",type:"animationRule",extension:s["default"]});var A=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"cylinder"},a._manageSpace=function(){var e,t,a,o,r=this,l=r.config,n=r.getFromEnv("chart").config,s=n.width,c=n.height,u=n.canvasWidth,g=n.canvasHeight,p=n.canvasLeft,f=n.canvasTop,m=n.canvasRight,v=n.xDefined,b=n.yDefined,k=n.rDefined,C=n.hDefined,x=n.gaugeOriginX,w=n.gaugeOriginY,T=n.gaugeRadius,y=n.gaugeHeight,S=n.gaugeYScale,A=function(e,t,a,o){var r=t,l=e;return r=(0,i.pluckNumber)(r,o),l=(0,i.pluckNumber)(l,a),r&&l?l/a==r/o?a/l:Math.min(a/l,o/r):1}(n.origW,n.origH,s,c),F=0,N=0,E=0,L=0;return g-=a=r._getLabelSpace(),N+=a,k?T*=A:T=d(h(u,1.2*g)/2,5),n.effectiveR=T,e=2*T,F+=t=T*S,f+=t,N+=t,g-=2*t,v?o=(x*=A)-T-p:(o=(m-p)/2-T)+e>u&&(o=u-e),E+=o,p+=o,L+=(u-=o)-e,b&&(w*=A),C?(y*=A,b?F+=w-y-f:w=f+y):b?y=w-f:w=f+(y=g),N+=f+g-w,l.gaugeOriginX=x,l.gaugeOriginY=w,l.gaugeRadius=T,l.gaugeHeight=y,l.gaugeYScale=S,{top:F,bottom:N+8,left:E,right:L}},a.draw=function(){var e,t,a,o,r,l,n,s,u,h,g,p,f,A,F,N=this,E=N.config,L=N.getFromEnv("smartLabel"),D=N.getFromEnv("chart"),M=N.getFromEnv("toolTipController"),R=D.getChildContainer("trackerGroup"),_=D.getChildContainer().plotGroup,I=N.getGraphicalElement("fluidTop"),V=N.getGraphicalElement("fluid"),O=N.getGraphicalElement("cylinterTop"),P=N.getGraphicalElement("frontLight1"),G=N.getGraphicalElement("frontLight"),B=N.getGraphicalElement("front"),H=N.getGraphicalElement("back"),W=N.getGraphicalElement("btnBorderLight"),z=N.getGraphicalElement("btnBorder1"),j=N.getGraphicalElement("btnBorder"),U=N.getGraphicalElement("label"),X=D.getChildContainer("datalabelsGroup"),K=N.getContainer("dataLabelContainer"),Y=N.getContainer("trackerContainer"),J=N.getGraphicalElement("hotElement"),q=N.getFromEnv("scale"),Z=D.config,$=Z.canvasLeft,Q=Z.canvasTop,ee=Z.canvasHeight,te=Z.effectiveR||40,ae=(0,i.pluckNumber)(E.value,q.getLimit().min),oe=q.getPixel(ae),re=$+te,ie=Q,le=ee,ne=D.config.dataLabelStyle,se=E.gaugeFillColor,ce=(0,i.getDarkColor)(se,70),ue=(0,i.getLightColor)(se,70),de=(0,i.getDarkColor)(ce,90),he=Z.gaugeFillAlpha,ge=E.gaugeContainerColor,pe=(0,i.getDarkColor)(ge,80),fe=(0,i.getDarkColor)(ge,90),me=(0,i.getLightColor)(ge,80),ve=Z.gaugeYScale,be=N.getContainer("container"),ke=N.getFromEnv("animationManager"),Ce=Math.abs(Z.width-Z.canvasRight-$),xe=te*ve,we=te-1.5,Te=E.cylBase=ie+le,ye=oe,Se=re-te,Ae=re+te,Fe=Se+1.5,Ne=Ae-1.5,Ee=Se-2,Le=Ae+2,De=te+2,Me=xe+2,Re=Te+4,_e=Re+.001,Ie=.85*te,Ve=re-Ie,Oe=re+Ie,Pe=Math.sqrt((1-Ie*Ie/(te*te))*xe*xe),Ge=ie+Pe,Be=Te+Pe,He=ie-1,We=Z.use3DLighting,ze=E.showHoverEffect,je=E.plotFillHoverAlpha,Ue=E.plotFillHoverColor,Xe=E.fluidAttr,Ke=(0,i.convertColor)(pe,50),Ye={"stroke-width":4},Je={"stroke-width":4},qe={"stroke-width":0},Ze={"stroke-width":1},$e={"stroke-width":2},Qe={"stroke-width":1},et={"stroke-width":0},tt={"stroke-width":0},at={"stroke-width":2},ot={stroke:x,fill:x},rt={};Xe||(Xe=E.fluidAttr={}),Xe["stroke-width"]=0,u={value:E.value,displayValue:E.displayValue,toolText:E.toolText,cylOriginX:E.gaugeOriginX,cylOriginY:E.gaugeOriginY,cylRadius:E.gaugeRadius,cylHeight:E.gaugeHeight,cylYScale:E.gaugeYScale,cylFillColor:E.gaugeFillColor,cylGlassColor:E.gaugeContainerColor},We?(p=me+i.COMMASTRING+pe+i.COMMASTRING+me+i.COMMASTRING+pe+i.COMMASTRING+fe+i.COMMASTRING+fe+i.COMMASTRING+pe+i.COMMASTRING+me,A=(0,i.toRaphaelColor)({FCcolor:{cx:.5,cy:0,r:v,color:ue+i.COMMASTRING+ce,alpha:he+i.COMMASTRING+he,ratio:b,radialGradient:!0}}),o=(0,i.toRaphaelColor)({FCcolor:{cx:.5,cy:.7,r:v,color:ue+i.COMMASTRING+ce,alpha:he+i.COMMASTRING+he,ratio:b,radialGradient:!0}}),r=(0,i.convertColor)(ue,he),f=me+i.COMMASTRING+pe+i.COMMASTRING+me+i.COMMASTRING+me+i.COMMASTRING+pe+i.COMMASTRING+me+i.COMMASTRING+pe+i.COMMASTRING+me,et.path=[w,Se,Te,c,te,xe,1,0,0,Ve,Be,T,Ve,Ge,c,te,xe,0,0,1,Se,ie,m],et.fill=(0,i.toRaphaelColor)({FCcolor:{color:f,alpha:k,ratio:b,angle:0}}),tt.path=[w,Oe,Be,c,te,xe,0,0,0,Ae,Te,T,Ae,ie,c,te,xe,1,0,0,Oe,Ge,m],tt.fill=(0,i.toRaphaelColor)({FCcolor:{color:f,alpha:k,ratio:b,angle:180}})):(p=me+i.COMMASTRING+pe+i.COMMASTRING+pe+i.COMMASTRING+pe+i.COMMASTRING+pe+i.COMMASTRING+pe+i.COMMASTRING+pe+i.COMMASTRING+me,o=A=(0,i.convertColor)(ce,he),r=(0,i.convertColor)(de),f=pe+i.COMMASTRING+pe+i.COMMASTRING+pe+i.COMMASTRING+pe+i.COMMASTRING+pe+i.COMMASTRING+pe+i.COMMASTRING+pe+i.COMMASTRING+pe),Xe.bodyOut={fill:A},Xe.topOut={stroke:r,fill:o},ze&&(l=(0,i.getDarkColor)(Ue,70),n=(0,i.getLightColor)(Ue,70),s=(0,i.getDarkColor)(l,90),We?(Xe.bodyHover={fill:(0,i.toRaphaelColor)({FCcolor:{cx:.5,cy:0,r:v,color:n+i.COMMASTRING+l,alpha:je+i.COMMASTRING+je,ratio:b,radialGradient:!0}})},Xe.topHover={stroke:(0,i.convertColor)(n,je),fill:(0,i.toRaphaelColor)({FCcolor:{cx:.5,cy:.7,r:v,color:n+i.COMMASTRING+l,alpha:je+i.COMMASTRING+je,ratio:b,radialGradient:!0}})}):(Xe.bodyHover={fill:(0,i.convertColor)(l,je)},Xe.topHover={stroke:(0,i.convertColor)(s),fill:(0,i.convertColor)(l,je)})),Xe.fill=A,Xe.path=[w,Se,Te,c,te,d(xe,1),0,0,0,Ae,Te,T,Ae,ye,c,te,d(xe,1),0,0,1,Se,ye,m],$e.fill=o,$e.stroke=r,$e.path=[w,Fe,ye,c,we,xe,0,0,0,Ne,ye,T,Ne,ye,c,we,xe,0,0,0,Fe,ye,m],Ye.stroke=(0,i.convertColor)(pe,80),Ye.path=[w,Ee,Re,c,De,Me,0,0,0,Le,Re,T,Le,_e,c,De,Me,0,0,0,Ee,_e,m],Je.stroke=Ke,Je.path=[w,Se,Re,c,te,xe,0,0,0,Ae,Re,T,Ae,_e,c,te,xe,0,0,0,Se,_e,m],qe.path=[w,Se,Te,c,te,xe,0,0,0,Ae,Te,c,te,xe,0,0,0,Se,Te,m],qe.fill=(0,i.toRaphaelColor)({FCcolor:{color:me+i.COMMASTRING+pe+i.COMMASTRING+me+i.COMMASTRING+me+i.COMMASTRING+pe+i.COMMASTRING+ce+i.COMMASTRING+pe+i.COMMASTRING+me,alpha:"50,50,50,50,50,70,50,50",ratio:"0,15,0,12,0,15,43,15",angle:0}}),Ze.path=[w,Se,Te,c,te,xe,0,0,0,Ae,Te,T,Ae,ie,c,te,xe,0,0,0,Se,ie,m],Ze.stroke=Ke,Ze.fill=(0,i.toRaphaelColor)({FCcolor:{color:p,alpha:C,ratio:"0,15,43,15,0,12,0,15",angle:0}}),Qe.path=[w,Se,Te,c,te,xe,0,0,0,Ae,Te,T,Ae,ie,c,te,xe,0,0,1,Se,ie,m],Qe.stroke=Ke,Qe.fill=(0,i.toRaphaelColor)({FCcolor:{color:f,alpha:C,ratio:"0,15,0,12,0,15,43,15",angle:0}}),at.stroke=(0,i.convertColor)(pe,40),at.path=[w,Se,He,c,te,xe,0,0,0,Ae,He,T,Ae,He,c,te,xe,0,0,0,Se,He,m],ot.path=[w,Se,Te,Se,Re+4,c,te,xe,0,0,0,Ae,Re+4,T,Ae,Te,Ae,ie,c,te,xe,0,0,0,Se,ie,m],rt.opacity=E.showValue?1:0,L.setStyle(ne),a=Te+xe+(E.valuePadding||0)+8,h=(g=L.getSmartText(E.displayValue,Z.width-Z.marginLeft-Z.marginRight-Ce/2,+Z.height-a-Z.marginBottom)).tooltext||i.BLANKSTRING,F={text:g.text,x:re,y:a,"text-anchor":S,"vertical-align":y,fill:ne.color,"text-bound":[ne.backgroundColor,ne.borderColor,ne.borderThickness,ne.borderPadding,ne.borderRadius,ne.borderDash]},t=ke.setAnimation({el:be||"group",attr:{name:"cylinder"},container:_,component:N,label:"group"}),j=ke.setAnimation({el:j||"path",attr:Ye,container:t,component:N,label:"path"}),z=ke.setAnimation({el:z||"path",attr:Je,container:t,component:N,label:"path"}),W=ke.setAnimation({el:W||"path",attr:qe,container:t,component:N,label:"path"}),H=ke.setAnimation({el:H||"path",attr:Ze,container:t,component:N,label:"path"}),V=ke.setAnimation({el:V||"path",attr:Xe,container:t,component:N,label:"plotFluid"}),I=ke.setAnimation({el:I||"path",attr:$e,container:t,component:N,label:"plotFluidTop"}),B=ke.setAnimation({el:B||"path",attr:Qe,container:t,component:N,label:"path"}),G=ke.setAnimation({el:G||"path",attr:et,container:t,component:N,label:"path"}),P=ke.setAnimation({el:P||"path",attr:tt,container:t,component:N,label:"path"}),O=ke.setAnimation({el:O||"path",attr:at,container:t,component:N,label:"path"}),Y=ke.setAnimation({el:Y||"group",attr:{name:"tracker-group"},container:R,component:N,label:"group"}),e=ke.setAnimation({el:K||"group",attr:rt,container:X,component:N,label:"labelGroup"}),U=ke.setAnimation({el:U||"text",attr:F,container:e,component:N,label:"text"}),J=ke.setAnimation({el:J||"path",attr:ot,container:Y,component:N,label:"path"}),E.showTooltip?M.enableToolTip(U,h):M.disableToolTip(U),be||(J.on("fc-click",(function(e){D.plotEventHandler(this,e)})).hover((function(e){E.showHoverEffect&&(N.getGraphicalElement("fluid")&&N.getGraphicalElement("fluid").attr(Xe.bodyHover),N.getGraphicalElement("fluidTop")&&N.getGraphicalElement("fluidTop").attr(Xe.topHover)),D.plotEventHandler(this,e,"DataPlotRollOver")}),(function(e){E.showHoverEffect&&(N.getGraphicalElement("fluid")&&N.getGraphicalElement("fluid").attr(Xe.bodyOut),N.getGraphicalElement("fluidTop")&&N.getGraphicalElement("fluidTop").attr(Xe.topOut)),D.plotEventHandler(this,e,"DataPlotRollOut")})),N.addContainer("container",t),N.addGraphicalElement("btnBorder",j),N.addGraphicalElement("btnBorder1",z),N.addGraphicalElement("btnBorderLight",W),N.addGraphicalElement("back",H),N.addGraphicalElement("fluid",V),N.addGraphicalElement("fluidTop",I),N.addGraphicalElement("front",B),N.addGraphicalElement("frontLight",G),N.addGraphicalElement("frontLight1",P),N.addGraphicalElement("cylinterTop",O),N.addContainer("trackerContainer",Y),N.addGraphicalElement("hotElement",J)),K||(N.addContainer("dataLabelContainer",e),N.addGraphicalElement("label",U)),J.data("eventArgs",u),E.toolText?M.enableToolTip(J,E.toolText):M.disableToolTip(J)},t}(l["default"]),F=A;t["default"]=F},1561:(e,t,a)=>{var o=a(269);t.__esModule=!0,t["default"]=void 0;var r,i=o(a(288)),l=a(274),n=o(a(1562)),s=a(286),c=o(a(1564)),u=function(e){function t(){var t;return(t=e.call(this)||this).config.pointInContext=c["default"],t.config.LABEL_PLACEMENT_ITERATOR_INDEX_START=1,t}(0,i["default"])(t,e);var a=t.prototype;return a.getType=function(){return"dataset"},a.getName=function(){return"funnel"},a.configure=function(e){if(!e)return!1;this.config.JSONData=e;var t,a,o,i,n=this,s=n.getFromEnv("chart"),c=n.getFromEnv("number-formatter"),u=n.utils(n).sortObjArrByKey,d=s.getFromEnv("dataSource")?s.getFromEnv("dataSource").chart:{},h=n.config.JSONData.data;if(n._checkValidData(h)){for(a=0,i=h.length;a<i;a++)(o=h[a])&&o.value!==r&&(o.value=c.getCleanValue(o.value,!0));t=n.config.streamLinedData=(0,l.pluckNumber)(d.streamlineddata,1),n.config.JSONData.data=t?u(h,"value"):h,n._configure(),h=n.getChildren("data"),t&&(h[0].pseudoPoint=!0),s.config.showLegend&&n.addLegend()}},a.configureSpecifics=function(){var e=this,t=e.getFromEnv("chart"),a=e.config,o=t.getFromEnv("dataSource")?t.getFromEnv("dataSource").chart:{};(0,e.utils(e).copyProperties)(o,a,[["funnelyscale","yScale",l.pluckNumber,r,function(e){var t=e.yScale;e.yScale=t>=0&&t<=40?t/200:.2}],["usesameslantangle","useSameSlantAngle",l.pluckNumber,function(e){return e.streamLinedData?0:1}],["ishollow","isHollow",l.pluckNumber,r,function(e){e.isHollow===r&&(e.isHollow=e.streamLinedData?1:0)}]])},a.prePointProcessingHookFn=function(e){var t,a,o,r,i=this.getFromEnv("chart"),n=i.config,s=this.config,c=n.canvasWidth,u=i.getFromEnv("smartLabel"),d=!s.streamLinedData;(t=e[0])&&(t.pseudoPoint=!0),t&&t.displayValue&&(u.useEllipsesOnOverflow(i.config.useEllipsesWhenOverflow),t.style.fontSize=this.computeFontSize(t.style.fontSizeWithUnit)+l.PXSTRING,u.setStyle(t.style),(0,l.setLineHeight)(t.style),a=parseFloat(t.style.lineHeight.match(/^\d+/)[0]||s.lineHeight,10),r=u.getOriSize(t.displayValue).height,o=u.getSmartText(t.displayValue,c,r),t.displayValue=o.text,o.tooltext&&(t.originalText=o.tooltext),t.labelWidth=u.getOriSize(o.text).width,n.marginTop+=a+4),s.totalValue=d?e[0].y-e[1].y:0,s.offsetVal=function(a){return d?-(e[a+1]&&e[a+1].y||0):t.y}},a.datasetCalculations=function(e){var t,a,o,r,i=this.config,l=this.getFromEnv("number-formatter"),n={},s=i.streamLinedData,c=i.percentOfPrevious;for(n.highestValue=Number.NEGATIVE_INFINITY,n.refreshedData=[],n.sumValue=n.countPoint=0,t=0,a=e.length;t<a;t++)(o=e[t]).vline||(o.cleanValue=r=Math.abs(l.getCleanValue(o.value,!0)),null!==r&&(n.hasValidPoint=!0,n.highestValue=n.highestValue||r,n.refreshedData.push(o),n.sumValue+=r,n.countPoint+=1,n.highestValue=Math.max(n.highestValue,r)));return s&&(n.sumValue=n.highestValue,c&&(n.prevPerValReq=!0)),n},a.calculatePositionOfPlots=function(){var e,t,a,o,i,n,s,c,u,d,h,g,p,f,m,v,b,k,C=this,x=C.getFromEnv("chart").config,w=C.config,T=C.utils(C),y=T.getSumValueOfObjArrByKey,S=T.DistributionMatrix,A=C.calculatePositionCoordinate,F=w.psmMargin,N=C.getChildren("data"),E=w.streamLinedData,L=2,D=C.getDataLength(),M=w.maxValue=N[0].y,R=w.minValue=N[D-1].y,_=0,I=0,V=w.lineHeight,O=Math.floor;if(w.sumValue&&(C.postPlotCallback=l.stubFN,x.canvasTop+=x.marginTop-F.top,x.effCanvasHeight=i=x.canvasHeight-(x.marginTop+x.marginBottom)+(F.top+F.bottom),x.effCanvasWidth=n=x.width-(x.marginLeft+x.marginRight),s=w.drawingRadius=n/L,w.x=x.canvasLeft+(x.canvasRight-x.canvasLeft)/2,!(E&&D<2))){for(E?(o=i/(M-R),d=(c=y(N,"value"))?i/c:i):d=o=M?i/M:i,w.unitHeight=o,w.lastRadius=s,w.globalMinXShift=0,(u=w.alignmentType={})["default"]=1,u.alternate=2,k=new S(O(i/V)),e=0,t=D;e<t;e++)(a=N[e]).getState("removed")||(!E&&0===e||!E&&e===t-1?k.forcePush(a,e):(_=a.y*d,h=O(((I+=a.y*d)-_+_/2)/V),k.push(a,h)));if(g=k.getDistributedResult(),N.length=0,g.matrix[1]===r)[].push.apply(N,g.matrix[0]);else for(p=g.matrix[0],f=g.matrix[1],t=Math.max(p.length,f.length),e=0;e<t;e++)v=p[e],m=f[e],N.push(v||m);if(Object.keys(g.forceMatrix).length>0)for(b in g.forceMatrix)[].splice.apply(N,[parseInt(b,10),0].concat(g.forceMatrix[b]));switch(g.suggestion){case u["default"]:A.call(C,N,!1);break;case u.alternate:w.labelAlignment=u.alternate,s=n/(L=3),x.canvasLeft=x.canvasWidth/2-s,w.x=x.canvasLeft+s,A.call(C,N,!0)}}},a.draw=function(){var e,t,a,o,r,i,l,n=this,c=n.getFromEnv("chart"),u=n.config,d=n.config.trackerArgs=[],h=n.getChildren("data"),g=c.getChildContainer("datalabelsGroup"),p=u.streamLinedData,f=h.length,m=Math.min;if(n.config.labelDrawingConfig=n.config.labelDrawingConfig||[],n.config.labelDrawingConfig.length=0,u.sumValue)if(n.animateFunction=function(e){return function(){e.attr({opacity:1})}},r=(a=u.slicingDistance)/2,p&&f<2)n.hide(n.getChildren("data"),f);else{for(e=0,t=h.length;e<t;e++)h[e]&&h[e].shapeArgs&&!h[e].getState("removed")&&(h[e].shapeArgs.renderer=c.getFromEnv("paper"));for((o=u.noOfGap)&&(u.perGapDistance=m(1.5*r,a/o),u.distanceAvailed=r),e=h.length,u.alreadyPlotted&&(n.postPlotCallback=function(){l||(l=!0,n.animateFunction(g)())});e--;)(i=h[e]).index=e,i.syncDraw();for(u.oldLastData=Object.assign({},h[h.length-1].shapeArgs),n.hide(n.getChildren("data"),f),u.connectorEndSwitchHistoryY={},e=h.length;e--;)h[e].getState("removed")||d.push(h[e]);n.addJob("labelDrawID",n.drawAllLabels.bind(n),s.priorityList.label),n.addJob("trackerDrawID",n.drawAllTrackers.bind(n),s.priorityList.tracker),n.removePlots(),u.alreadyPlotted=!0,u.prevIs2d=u.is2d}},a.getTooltipMacroStub=function(t){var a,o,r=this.config,i=this.getFromEnv("number-formatter");return r.streamLinedData&&(o=r.percentOfPrevious?t.pValue:i.percentValue(t.dataValue/t.prevValue*100)),(a=e.prototype.getTooltipMacroStub.call(this,t)).percentValue=r.percentOfPrevious?i.percentValue(t.dataValue/t.highestValue*100):t.pValue,a.percentOfPrevValue=o,a},t}(n["default"]);t["default"]=u},1505:(e,t,a)=>{t.__esModule=!0,t["default"]=void 0;var o=a(274),r=[{initialAttr:function(){return{opacity:0}},finalAttr:function(){return{opacity:1}}}],i={"initial.dataset.hlineargauge":function(){return{"parentgroup.initial":function(e){return[{initialAttr:{transform:e.attr.transform},finalAttr:{transform:e.attr.transform},slot:"initial"}]},"datalabel.initial":function(e){return[{initialAttr:{transform:e.attr.transform},finalAttr:{transform:e.attr.transform}}]},"background.appearing":function(){return r[0].slot=o.INITIALSTR,r},"background.updating":null,"final.appearing":function(){return r[0].slot=o.FINALSTR,r},"final.updating":null,"pointers.appearing":function(e){var t=e.component,a=t.config&&t.config.isScaleReversed,o=e.attr.polypath.slice(0),r=t.getFromEnv("chart")&&t.getFromEnv("chart").config&&t.getFromEnv("chart").config.canvasWidth;return o[1]=a?r:0,[{initialAttr:{opacity:0},finalAttr:{opacity:1},slot:"initial"},{initialAttr:{polypath:o},finalAttr:{opacity:1},slot:"middle"}]},"pointers.updating":null,"pointerValues.appearing":function(e){var t=e.component,a=t.config&&t.config.isScaleReversed,o=t.getFromEnv("chart")&&t.getFromEnv("chart").config&&t.getFromEnv("chart").config.canvasWidth;return[{initialAttr:{opacity:0},finalAttr:{opacity:1},slot:"initial"},{initialAttr:{x:a?o:0},finalAttr:{opacity:1},slot:"middle"}]},"pointerValues.updating":null,"*":null}}};t["default"]=i},1504:(e,t,a)=>{var o=a(269);t.__esModule=!0,t["default"]=void 0;var r,i=o(a(288)),l=a(274),n=o(a(540)),s=o(a(539)),c=a(282),u=a(290),d=o(a(1505)),h=l.BLANK,g="{dark-10}",p=l.preDefStr.configStr,f=l.preDefStr.animationObjStr,m=l.preDefStr.POSITION_TOP,v=l.preDefStr.POSITION_BOTTOM,b=l.preDefStr.POSITION_MIDDLE,k=l.preDefStr.POSITION_START,C=l.preDefStr.POSITION_END,x=window,w=x.document.documentElement.ontouchstart!==r,T=Math,y=T.max,S=T.min,A="eventArgs",F="easeIn",N={right:C,left:k,middle:b,start:k,end:C,center:b,undefined:l.BLANK,BLANK:l.BLANK};(0,c.addDep)({name:"hlineargaugeAnimation",type:"animationRule",extension:d["default"]});var E=function(e){function t(){var t;return(t=e.call(this)||this).config.idMap={},t}(0,i["default"])(t,e);var a=t.prototype;return a.getType=function(){return"dataset"},a.getName=function(){return"hlineargauge"},a._drawBackground=function(){var e,t,a,o,r,i,n,s,c,u,d,h,g,p,f,b,k,C,x,w,T,S,A,F,N,E=this,L=this.getFromEnv("chart"),D=L.getFromEnv(),M=L.config,R=L.getChildContainer().plotGroup,_=L.getFromEnv("toolTipController"),I=M.canvasWidth,V=M.canvasHeight,O=M.canvasTop,P=M.canvasLeft,G=D.scale,B=E.config.isScaleReversed,H=G.config.axisRange.min,W=G.config.axisRange.max,z=L.getFromEnv("dataSource"),j=z.chart,U=z.trendpoints&&z.trendpoints.point,X=(0,l.pluckNumber)(j.showgaugeborder,1),K=(0,l.getFirstDefinedValue)(j.colorrangefillmix,j.gaugefillmix,"{light-10},{dark-20},{light-50},{light-85}"),Y=(0,l.getFirstDefinedValue)(j.colorrangefillratio,j.gaugefillratio,j.gaugefillratio,"0,8,84,8"),J=(0,l.pluck)(j.colorrangebordercolor,j.gaugebordercolor,"{dark-20}"),q=(0,l.pluckNumber)(j.colorrangeborderalpha,j.gaugeborderalpha,100),Z=X?(0,l.pluckNumber)(j.colorrangeborderthickness,j.gaugeborderthickness,1):0,$=z.colorrange&&D.colorRange&&D.colorRange.getColorRangeArr(H,W),Q=(0,l.pluckNumber)(j.showshadow,1),ee=L.getChildren("canvas")[0],te=ee.getGraphicalElement("linear"),ae=ee.getGraphicalElement("outerRect"),oe=D.animationManager,re=D["color-manager"],ie={top:1,bottom:3},le=0,ne=0,se=0;for(oe.setAnimation({el:R,state:"initial",attr:{transform:["T",P,O]},component:E,container:L.getContainer("parentgroup"),label:"parentgroup"}),te=oe.setAnimation({el:te||"group",attr:{name:"colorrange"},component:E,container:R,label:"background"}),ae=oe.setAnimation({el:ae||"rect",attr:{x:0,y:0,width:I,height:V,stroke:"none",r:0},component:E,container:R}),ee.getGraphicalElement("linear")||(te=ee.addGraphicalElement("linear",te),ee.addGraphicalElement("outerRect",ae)),i=function(e,t){return F=(t-e)*I/(W-H),{x:B?I-F-e*I/(W-H):e*I/(W-H),y:0,width:F,height:V}},n=270,e=0,a=$&&$.length;e<a;e+=1)d=i((c=B?$[a-1-e]:$[e]).minvalue-H,c.maxvalue-H),c.x=d.x,c.y=d.y,c.width=d.width,c.height=d.height,s=c.code,u=(0,l.convertColor)((0,l.getColorCodeString)((0,l.pluck)(c.bordercolor,s),J),(0,l.pluckNumber)(c.borderalpha,q)),C=re.parseColorMix(c.code,K),x=re.parseAlphaList(c.alpha,C.length),w=(0,l.pluckNumber)(c.borderAlpha,q),T=x.split(l.COMMASTRING),T=y.apply(Math,T),T=y(Z&&w||0,T),N={x:d.x,y:d.y,width:d.width,height:d.height,r:0,"stroke-width":Z,stroke:u,fill:(0,l.toRaphaelColor)({FCcolor:{color:C.toString(),ratio:Y,alpha:x,angle:n}})},A=ee.getGraphicalElement("colorRangeElems")&&ee.getGraphicalElement("colorRangeElems")[e],A=oe.setAnimation({el:A||"rect",attr:N,component:E,container:te}),ee.getGraphicalElement("colorRangeElems")&&ee.getGraphicalElement("colorRangeElems")[e]||(A=ee.addGraphicalElement("colorRangeElems",A,!0,e)).shadow({apply:Q,opacity:T/100}),A.show();if(!d&&ee.getGraphicalElement("colorRangeElems")&&ee.getGraphicalElement("colorRangeElems").length>0&&(d=ee.getGraphicalElement("colorRangeElems")[ee.getGraphicalElement("colorRangeElems").length-1].attr()),ee.getGraphicalElement("colorRangeElems"))for(;ee.getGraphicalElement("colorRangeElems")[e];)ee.getGraphicalElement("colorRangeElems")[e].shadow(!1),ee.getGraphicalElement("colorRangeElems")[e].hide(),e++;if(U)for(e=0,a=(h=M.trendPointConfig).length;e<a;e+=1)d=i((k=h[e]).startValue-H,k.endValue-H),k.isTrendZone?(g=ee.getGraphicalElement("trendZoneElems")&&ee.getGraphicalElement("trendZoneElems")[le],g=oe.setAnimation({el:g||"rect",attr:{x:d.x,y:d.y,width:d.width>0?d.width:0,height:d.height>0?d.height:0,r:0,"stroke-width":0,fill:(0,l.toRaphaelColor)({FCcolor:{color:k.color,alpha:k.alpha}})},component:E,container:te,label:"final"}),ee.getGraphicalElement("trendZoneElems")&&ee.getGraphicalElement("trendZoneElems")[le]||(g=ee.addGraphicalElement("trendZoneElems",g,!0,le)),g.show(),_.enableToolTip(g,k.tooltext),le++):(f=ee.getGraphicalElement("trendObjElems")&&ee.getGraphicalElement("trendObjElems")[ne],g=oe.setAnimation({el:f||"path",attr:{stroke:(0,l.convertColor)(k.color,k.alpha),"stroke-dasharray":k.dashStyle,"stroke-width":k.thickness,path:["M",d.x,d.y,"L",d.x,d.y+d.height]},component:E,container:te,label:"final"}),f||(f=ee.addGraphicalElement("trendObjElems",g,!0,ne)),f.show(),_.enableToolTip(f,k.tooltext),ne++),k.useMarker&&(k.showOnTop?(r=v,t=0):(r=m,t=V),S=90*ie[r],o=ee.getGraphicalElement("marker")&&ee.getGraphicalElement("marker")[se],o=oe.setAnimation({el:o||"polypath",attr:{fill:k.markerColor,stroke:k.markerBorderColor,polypath:[3,d.x,t,k.markerRadius,S,0],"stroke-width":1},component:E,container:te,label:"final"}),ee.getGraphicalElement("marker")&&ee.getGraphicalElement("marker")[se]||(o=ee.addGraphicalElement("marker",o,!0,se)).shadow({apply:Q}),_.enableToolTip(o,k.tooltext),o.show(),se++);if(b=ee.getGraphicalElement("trendObjElems"))for(;b[ne];)b[ne].hide(),ne++;if(p=ee.getGraphicalElement("trendZoneElems"))for(;p[le];)p[le].hide(),le++;if(o=ee.getGraphicalElement("marker"))for(;o[se];)o[se].hide(),o[se].shadow(!1),se++},a.configureAttributes=function(e){this.trimData(e),this.config.pointerArr=e;var t,a,o,i,n,s,c,u,d,p,f,b,k,C,x,w,T,y,S,A,F,N,E,L,D,M,R,_,I,V,O,P,G,B,H,W,z,j,U,X,K,Y=this,J=Y.getFromEnv("chart"),q=J.getFromEnv("dataSource"),Z=q.chart,$=Y.getFromEnv("number-formatter"),Q=Y.getFromEnv("color-manager"),ee=Y.getFromEnv("scale"),te=Z.plottooltext,ae=Y.config||(Y.config={}),oe=Y.components||(Y.components={}),re=q.pointers&&q.pointers.pointer,ie=re&&re.length||0,le=J.config.style;for(ae.isScaleReversed=ee.config.isReverse,ae.valuePadding=(0,l.pluckNumber)(Z.valuepadding,2),ae.tooltipSepChar=(0,l.pluck)(Z.tooltipsepchar,l.COMMASTRING),z=(0,l.pluckNumber)(Z.ticksbelowgauge,Z.ticksbelowgraph,1),ae.axisPosition=z?3:1,ae.pointerOnOpp=b=Number(!(0,l.pluckNumber)(Z.pointerontop,z,1)),ae.valueabovepointer=w=(0,l.pluckNumber)(Z.valueabovepointer,!b,1),ae.valueInsideGauge=w===b?1:0,ae.showPointerShadow=(0,l.pluckNumber)(Z.showpointershadow,Z.showshadow,1),ae.showTooltip=(0,l.pluckNumber)(Z.showtooltip,1),ae.textDirection="1"===Z.hasrtltext?"rtl":l.BLANK,ae.showGaugeLabels=(0,l.pluckNumber)(Z.showgaugelabels,1),ae.colorRangeStyle={fontFamily:le.inCanfontFamily,fontSize:le.inCanfontSize,lineHeight:le.inCanLineHeight,color:le.inCancolor.replace(/^#?/,"#")},ae.showTextOutline=(0,l.pluckNumber)(Z.textoutline,0),ae.showValue=(0,l.pluckNumber)(Z.showvalue,1),ae.editMode=(0,l.pluckNumber)(Z.editmode,0),ae.pointerSides=j=(0,l.pluckNumber)(Z.pointersides,3),ae.pointerBorderThickness=X=(0,l.pluckNumber)(Z.pointerborderthickness),ae.showHoverEffect=U=(0,l.pluckNumber)(Z.showhovereffect,Z.plothovereffect),ae.upperLimit=(0,l.pluckNumber)(Z.upperlimit),ae.lowerLimit=(0,l.pluckNumber)(Z.lowerlimit),f=b?m:v,ae.startAngle=90*{top:1,right:0,left:2,bottom:3}[f],p=oe.data||(oe.data=[]),n=0;n<ie;n++)o=(a=p[n]||(oe.data[n]={})).config||(a.config={}),t=re&&re[n]||{},o.value=t.value,o.itemValue=i=$.getCleanValue(t.value),o.formatedVal=c=$.dataLabels(i),o.setDisplayValue=u=(0,l.getValidValue)((0,l.parseUnsafeString)(t.displayvalue)),o.setToolText=s=(0,l.getValidValue)((0,l.parseUnsafeString)((0,l.pluck)(t.tooltext,te),!1)),o.id=(0,l.pluck)(t.id,"pointer_"+n),o.showHoverEffect=R=(0,l.pluckNumber)(t.showhovereffect,U),o.showBorder=H=(0,l.pluckNumber)(t.showborder,Z.showplotborder,1),o.borderWidth=M=H?(0,l.pluckNumber)(t.borderthickness,X):0,o.showValue=K=(0,l.pluckNumber)(t.showvalue,ae.showValue),o.dataLabelStyle=Y._configureDataLabelStyle(t,q.pointers),K?u!==r?(o.displayValue=u,o.isLabelString=!0):o.displayValue=(0,l.getValidValue)(c,l.BLANK):o.displayValue=h,o.sides=d=(0,l.pluckNumber)(t.sides,j),d<3&&(o.sides=3),o.radius=y=(0,l.pluckNumber)(t.radius,Z.pointerradius,10),s!==r?(o.toolText=(0,l.parseTooltext)(s,[1,2],{formattedValue:c},t,Z),o.isTooltextString=!0):o.toolText=null!==c&&c,o.tempToolText=o.toolText,o.bgAlpha=x=(0,l.pluckNumber)(t.alpha,t.bgalpha,Z.pointerbgalpha,100),o.bgColor=T=(0,l.pluck)(t.color,t.bgcolor,Z.pointerbgcolor,Z.pointercolor,Q.getColor("pointerBgColor")),o.fillColor=W=(0,l.convertColor)(T,x),o.showBorder=(0,l.pluckNumber)(t.showborder,Z.showplotborder,1),o.borderAlpha=C=(0,l.pluckNumber)(t.borderalpha,Z.pointerborderalpha,100),o.borderColor=k=(0,l.pluck)(t.bordercolor,Z.pointerbordercolor,Q.getColor("pointerBorderColor")),o.pointerBorderColor=S=(0,l.convertColor)(k,C),o.dataLink=(0,l.getValidValue)(t.link),o.editMode=(0,l.pluckNumber)(t.editmode,ae.editMode),0!==R&&(R||t.bghovercolor||Z.pointerbghovercolor||Z.plotfillhovercolor||t.bghoveralpha||Z.pointerbghoveralpha||Z.plotfillhoveralpha||0===t.bghoveralpha||0===Z.pointerbghoveralpha||t.showborderonhover||Z.showborderonhover||0===t.showborderonhover||0===Z.showborderonhover||t.borderhoverthickness||Z.pointerborderhoverthickness||0===t.borderhoverthickness||0===Z.pointerborderhoverthickness||t.borderhovercolor||Z.pointerborderhovercolor||t.borderhoveralpha||Z.pointerborderhoveralpha||0===t.borderhoveralpha||0===Z.pointerborderhoveralpha||t.hoverradius||Z.pointerhoverradius||0===t.hoverradius||0===Z.pointerhoverradius)&&(R=!0,N=(0,l.pluck)(t.bghovercolor,Z.pointerbghovercolor,Z.plotfillhovercolor,g),F=(0,l.pluckNumber)(t.bghoveralpha,Z.pointerbghoveralpha,Z.plotfillhoveralpha),(I=(0,l.pluckNumber)(t.showborderonhover,Z.showborderonhover))===r&&(I=t.borderhoverthickness||0===t.borderhoverthickness||t.borderhovercolor||t.borderhoveralpha||0===t.borderhoveralpha?1:H),E=(0,l.pluck)(t.borderhovercolor,Z.pointerborderhovercolor,g),A=(0,l.pluckNumber)(t.borderhoveralpha,Z.pointerborderhoveralpha),L=I?(0,l.pluckNumber)(t.borderhoverthickness,Z.pointerborderhoverthickness,M||1):0,D=(0,l.pluckNumber)(t.hoverradius,Z.pointerhoverradius,y+2),V=!!(0,l.pluckNumber)(t.showhoveranimation,Z.showhoveranimation,1),o.hoverAttr=_={},o.outAttr=O={},M!==L&&(_["stroke-width"]=L,O["stroke-width"]=M),O.fill=W,N=/\{/.test(N)?Q.parseColorMix(T,N)[0]:N,_.fill=(0,l.convertColor)(N,(0,l.pluckNumber)(F,x)),L&&(O.stroke=S,P=/\{/.test(E),_.stroke=(0,l.convertColor)(P?Q.parseColorMix(k,E)[0]:E,(0,l.pluckNumber)(A,C))),D&&(V?(G={r:D},B={r:y}):(_.r=D,O.r=y))),o.rolloverProperties={enabled:R,hoverAttr:_,hoverAnimAttr:G,outAttr:O,outAnimAttr:B}},a.trimData=function(e){var t,a,o=this;(t=o.config.pointerArr&&o.config.pointerArr.pointer&&o.config.pointerArr.pointer.length)>(a=e&&e.pointer&&e.pointer.length||0)&&o.removeData(t-a)},a._manageSpace=function(e){var t,a,o,r,i,n,s,c=this,u=c.getFromEnv("chart"),d=c.components,g=u.config,p=c.config,f=c.getFromEnv("smartLabel"),m=g.canvasWidth,v=g.dataLabelStyle,b=g.style.trendStyle,k=u.getFromEnv("dataSource"),C=k.trendpoints&&k.trendpoints.point,x=(0,l.pluckNumber)(parseInt(v.lineHeight,10),12),w=e,T=p.valuePadding,y=p.valueInsideGauge,S=0,A=0,F=0,N=0,E=0,L=0,D=0,M=c.getFromEnv("scale").config.spaceTaken,R=0,_=c.config.pointerArr&&c.config.pointerArr.pointer&&c.config.pointerArr.pointer.length,I=p.pointerOnOpp,V=d.data;for(C&&u._configueTrendPoints(),f.useEllipsesOnOverflow(g.useEllipsesWhenOverflow),f.setStyle(v);R<_;R+=1)o=T+(s=V[R].config).radius*(s.sides<=3?.5:s.sides%2?1.1-1/s.sides:1),N=Math.max(N,o),s.showValue&&s.displayValue!==h&&(s.isLabelString?(t=f.getSmartText(s.displayValue,m,w-N),s.displayValue=t.text,t.tooltext&&(s.originalText=t.tooltext)):t=f.getOriSize(s.displayValue),s.displayValue===l.BLANK&&(t={height:x})),(S=t&&t.height>0&&!y?t.height+o:o)>w&&(o=(a=S-w)<o?o-a:0,S=w),I?(3===p.axisPosition&&(L=Math.max(M.bottom,L),S=Math.max(M.bottom,S)),A=Math.max(A,S)):(1===p.axisPosition&&(D=Math.max(M.top,D),S=Math.max(M.top,S)),F=Math.max(S,F)),p.align=l.POSITION_CENTER;if(p.currentValuePadding=N,f.setStyle(b),C){for(R=0,_=(r=g.trendPointConfig).length;R<_;R+=1)(i=r[R])&&i.displayValue!==h&&(n=T+.5*i.markerRadius,E=Math.max(n,E),(t=f.getOriSize(i.displayValue)).height>0&&(S=t.height+n),S>w&&(n=(a=S-w)<n?n-a:0,S=w),i.showOnTop?(1===p.axisPosition&&(D=Math.max(M.top,D),S=Math.max(M.top,S)),F=Math.max(F,S)):(3===p.axisPosition&&(L=Math.max(M.bottom,L),S=Math.max(M.bottom,S)),A=Math.max(S,A)));p.currentTrendPadding=E}return{top:F-D,bottom:A-L}},a.draw=function(e,t){var a,o,r,i,n,s,c,u,d,h,g,p,f,m=this,v=m.config.idMap,b=m.getFromEnv("chart"),k=b.config,C=b.getChildContainer("datalabelsGroup"),T=m.getFromEnv("toolTipController"),y=m.getGraphicalElement("tempGroup"),S=m.getFromEnv("scale"),N=m.getFromEnv("animationManager"),E=m.config.pointerArr&&m.config.pointerArr.pointer,L=k.canvasWidth,D=k.canvasHeight,M=m.config,R=M.isScaleReversed,_=m.getFromEnv("number-formatter"),I=M.pointerOnOpp?D:0,V=M.showPointerShadow,O=M.showTooltip,P=S.config.axisRange.min,G=S.config.axisRange.max,B=(G-P)/L,H=E&&E.length||0,W=m.components.data,z={pageX:0,pageY:0},j=function(e){var t=e.data[0];!1!==this.editMode&&(r=b._getDataJSON(),this.dragStartX=t)},U=function(){var e,t=this.config,a=b.getFromEnv("chartInstance");if(!1!==this.config.editMode){(e=a&&a.jsVars)&&(e._rtLastUpdatedData=b._getDataJSON()),b.fireChartInstanceEvent("RealTimeUpdateComplete",{data:"&value="+t.updatedValStr,updateObject:{values:[t.updatedValStr]},prevData:r.values,source:"editMode",url:null});try{x.FC_ChartUpdated&&x.FC_ChartUpdated(a.id)}catch(o){setTimeout((function(){throw o}),1)}M.showTooltip?T.enableToolTip(s,t.toolText):T.disableToolTip(s)}},X=function(e){var t=this,a=e.data[2],o=w&&function(e){return w&&e.sourceEvent&&e.sourceEvent.touches&&e.sourceEvent.touches[0]||e}(e)||z,r=S.getLimit(),i=r.min,n=r.max,s=(0,l.pluckNumber)(t.itemValue,i),c=s-(R?a-t.dragStartX:t.dragStartX-a)*B,u=0,d=[],h=[];if(!1!==t.editMode){for(t.drag=!0,c<i?c=i:c>n&&(c=n);u<t.index;u+=1)d.push(l.BLANK),h.push(l.BLANK);d.push({value:c}),h.push(c),s!==c&&m.updateData({data:d},{duration:0})&&(t.updatedValStr=h.join("|"),t.dragStartX=a||e.pageX||o.pageX)}};for(e&&0===e.duration&&(b.state="noAnim"),y||(y=m.addGraphicalElement("tempGroup",N.setAnimation({el:"group",state:b.state,attr:{opacity:1,name:"tempGroup"},container:C,component:m}))),g=function(e){var t=this.data(A).index,a=W[t].config;!0!==a.drag?b.plotEventHandler(this,e):a.drag=!1},p=function(e){var t=this,a=t.data("rolloverProperties");a.enabled&&(t.attr(a.hoverAttr),a.hoverAnimAttr&&t.animate(a.hoverAnimAttr,100,F)),b.plotEventHandler(t,e,"DataPlotRollOver")},f=function(e){var t=this,a=t.data("rolloverProperties");a.enabled&&(t.attr(a.outAttr),a.outAnimAttr&&t.animate(a.outAnimAttr,100,F)),b.plotEventHandler(t,e,"DataPlotRollOut")};H--;)W[H]&&(o=W[H].config,a=_.getCleanValue(o.value),a=Number((0,l.toPrecision)(a,10)),o.itemValue=a,c=W[H].graphics||(W[H].graphics={}),d=o.rolloverProperties||{},n=M.startAngle,v[o.id]={index:H,config:o},n+=.2,i=!!V&&{opacity:Math.max(o.bgAlpha,o.borderAlpha)/100},h={index:H,link:u=o.dataLink,value:o.itemValue,displayValue:o.displayValue,toolText:o.toolText,bgAlpha:o.bgAlpha,borderAlpha:o.borderAlpha,borderColor:o.borderColor,borderThickness:o.borderWidth,color:o.bgColor,editMode:o.editMode,id:o.id,radius:o.radius,showValue:o.showValue,sides:o.sides},s=c.pointer,s=N.setAnimation({el:s||"polypath",attr:{polypath:[o.sides,R?L-L*((0,l.pluckNumber)(o.itemValue,P)-P)/(G-P):L*((0,l.pluckNumber)(o.itemValue,P)-P)/(G-P),I||0,o.radius,n,0],r:o.radius,fill:o.fillColor,stroke:o.pointerBorderColor,"stroke-width":o.borderWidth},css:u||o.editMode?{cursor:"pointer",_cursor:"hand"}:{cursor:l.BLANK,_cursor:l.BLANK},label:"pointers",container:y,component:m}).show(),c.pointer||(c.pointer=s.on("fc-click",g).shadow(!!i,i&&i.opacity).hover(p,f),s.show()),t||(s.data(A,h).data("rolloverProperties",d),o._startAngle=n,o.editMode?(o.index=H,o.editMode=!0):o.editMode=!1,s.undrag(),o.editMode&&s.drag(X,j,U,o,o,W[H])),O?T.enableToolTip(s,o.toolText):T.disableToolTip(s));m._drawBackground(),t?m.drawPointerValues(e):m._drawWidgetLabel(e)},a.removeData=function(e){var t,a,o=this,r=o.components.data,i=function(){this.hide()};o.removeDataArr||(o.removeDataArr=[]);for(var l=0;l<e;l++)(a=r[l])&&((t=a.graphics).pointer&&o.getFromEnv("animationManager").setAnimation({el:t.pointer,callback:i,component:o}),t.pointerValue&&o.getFromEnv("animationManager").setAnimation({el:t.pointerValue,callback:i,component:o}),t.pointerValueCont&&o.getFromEnv("animationManager").setAnimation({el:t.pointerValueCont,callback:i,component:o}));o.removeDataArr=o.removeDataArr.concat(r.splice(0,e))},a._drawWidgetLabel=function(e){var t,a,o,r,i,n,s,c,u,d,g,p,f,m,v,k,C,x,w,T,y,S,A,F,E,L,D,M=this,R=M.getFromEnv("chart"),_=M.getFromEnv("toolTipController"),I=R.config,V=M.getFromEnv("number-formatter"),O=M.getFromEnv("scale"),P=M.getFromEnv("animationManager"),G=R.getChildren("canvas")[0],B=R.getChildContainer("datalabelsGroup"),H=G.getGraphicalElement("dataLabelContainer"),W=O.config.axisRange.min,z=O.config.axisRange.max,j=M.config,U=j.textDirection,X=M.getFromEnv("colorRange"),K=R.getFromEnv("dataSource").colorrange&&X&&X.getColorRangeArr(W,z),Y=j.colorRangeStyle||{},J=j.showvalue,q=R.getFromEnv("dataSource").trendpoints&&R.getFromEnv("dataSource").trendpoints.point,Z=I.trendPointConfig,$=I.canvasWidth,Q=I.canvasHeight,ee=I.marginRight,te=j.pointerOnOpp,ae=j.valueInsideGauge,oe=j.showGaugeLabels,re=j.isScaleReversed,ie=I.dataLabelStyle,le=!1,ne=M.getFromEnv("smartLabel"),se=(0,l.pluckNumber)(parseInt(ie.fontHeight,10),parseInt(ie.lineHeight,10),12),ce=j.currentValuePadding+.5*se,ue=j.currentTrendPadding+.5*se,de=j.currentTrendPadding,he={fontFamily:ie.fontFamily,fontSize:ie.fontSize,lineHeight:ie.lineHeight,fontWeight:ie.fontWeight,fontStyle:ie.fontStyle},ge=M.config.pointerArr&&M.config.pointerArr.pointer,pe=M.components.data;if(H=P.setAnimation({el:H||"group",attr:{name:"label-container"},container:B,component:M}),B=P.setAnimation({el:B||"group",state:"initial",attr:{transform:["T",I.canvasLeft,I.canvasTop]},label:"datalabel",component:M}),!G.getGraphicalElement("dataLabelContainer")&&(H=G.addGraphicalElement("dataLabelContainer",H)),ce=ae===te?ce-se/4:ce+se/4,ne.useEllipsesOnOverflow(I.useEllipsesWhenOverflow),ne.setStyle(he),T=ne.getOriSize("W...").width,Y.fontWeight=l.NORMAL,c=M.getPointerLabelXY=function(e,t,a,o,r){return(y=(e-W)*$/(z-W))+r>$+ee&&(y=$-r+ee),{x:y,y:a?t?Q-o-ce:Q+ce:t?ce:-(ce+o),align:b}},u=function(e,t){return a=(t-e)*$/(z-W),{x:(re?$-a-e*$/(z-W):e*$/(z-W))+a/2,y:Q/2,width:(t-e)*$/(z-W),height:Q}},ge&&ge.length)for(n=ge.length;n--;)if(pe[n]&&(F=pe[n].config,0!==J&&F.displayValue!==h&&(w=ne.getOriSize(F.displayValue),F.setWidth&&(w=ne.getSmartText(F.displayValue,F.setWidth,w.height,!0)),d=M.getPointerLabelXY(F.itemValue,ae,te,w.height/2,w.width/2),F.isLabelString))){for(le=!1,k=1;!le&&(g=ge[n+k]);)g.isLabelString?le=!0:k+=1;g&&(p=ne.getOriSize(g.displayValue),v=(m=c(g.y,ae,te,p.height/2)).x-p.width/2-(d.x+w.width/2),r=m.x-d.x,v<0&&((i=w.width+v)>r&&(F.setWidth=i=r),i>T?F.setWidth&&F.setWidth<=i?(f=ne.getSmartText(F.displayValue,F.setWidth,w.height,!0),F.displayValue=f.text,f.tooltext&&(F.originalText=f.tooltext)):(f=ne.getSmartText(F.displayValue,i,w.height,!0),F.displayValue=f.text,f.tooltext&&(F.originalText=f.tooltext)):(f=ne.getSmartText(F.displayValue,T,w.height,!0),F.displayValue=f.text,f.tooltext&&(F.originalText=f.tooltext),v=2*v+T-4),F.setWidth=null,i=p.width+v-4,g.setWidth=i>r?r:i>T?i:T)),F.setWidth&&(f=ne.getSmartText(F.displayValue,F.setWidth,w.height,!0),F.displayValue=f.text,f.tooltext&&(F.originalText=f.tooltext),F.setWidth=null)}if(M.drawPointerValues(e),ne.setStyle(Y),K&&oe)for(n=0,s=K.length;n<s;n+=1)t=re?K[s-1-n]:K[n],o=(0,l.pluck)(t.label,t.name),w=(d=u(t.minvalue-W,t.maxvalue-W)).width-4>T&&d.height-4>se?ne.getSmartText(o,d.width-4,d.height-4):ne.getSmartText(o,d.width,d.height),S={"text-anchor":b,"vertical-align":b,x:d.x,y:d.y,direction:U,fill:(0,l.convertColor)(Y.color),text:w.text},L=G.getGraphicalElement("colorRangeLabelsCont")&&G.getGraphicalElement("colorRangeLabelsCont")[n],L=P.setAnimation({el:L||"group",attr:{name:"color-range-label"},component:M,container:H,label:"final"}),E=G.getGraphicalElement("colorRangeLabels")&&G.getGraphicalElement("colorRangeLabels")[n],(E=P.setAnimation({el:E||"text",attr:S,css:Y,component:M,container:L,label:"final"})).outlineText(j.showTextOutline,S.fill),G.getGraphicalElement("colorRangeLabels")&&G.getGraphicalElement("colorRangeLabels")[n]?(E.show(),_.enableToolTip(E,w.tooltext)):(L=G.addGraphicalElement("colorRangeLabelsCont",L,!0,n),E=G.addGraphicalElement("colorRangeLabels",E,!0,n));else n=0;for(;G.getGraphicalElement("colorRangeLabelsCont")&&G.getGraphicalElement("colorRangeLabelsCont")[n];)G.getGraphicalElement("colorRangeLabelsCont")[n].hide(),n++;if(q)for(n=0,s=Z.length;n<s;n+=1){for((A=Z[n]).displayValue=(0,l.pluck)(A.displayValue,V.dataLabels(A.startValue)),ne.setStyle(A.style),se=ne.getOriSize("Wg").height,w=ne.getOriSize(A.displayValue),d=c(A.startValue,0,!A.showOnTop),A.setWidth&&(w=ne.getSmartText(A.displayValue,A.setWidth,w.height,!0)),le=!1,k=1;!le&&(g=q[n+k]);)g.showOnTop===A.showOnTop?le=!0:k+=1;g&&(p=ne.getOriSize(g.displayValue),(v=(m=c(g.startValue,0,!g.showOnTop)).x-p.width/2-(d.x+w.width/2))<0&&(r=m.x-d.x,(i=w.width+v)>r&&(A.setWidth=i=r),i>T?A.setWidth&&A.setWidth<=i?(w=ne.getSmartText(A.displayValue,A.setWidth,w.height,!0),A.displayValue=w.text,w.tooltext&&(A.originalText=w.tooltext)):(w=ne.getSmartText(A.displayValue,w.width+v-4,w.height,!0),A.displayValue=w.text,w.tooltext&&(A.originalText=w.tooltext)):(w=ne.getSmartText(A.displayValue,T,w.height,!0),A.displayValue=w.text,w.tooltext&&(A.originalText=w.tooltext),v=2*v+T-4),A.setWidth=null,i=p.width+v-4,g.setWidth=i>r?r:i>T?i:T)),A.setWidth&&(w=ne.getSmartText(A.displayValue,A.setWidth,w.height,!0),A.displayValue=w.text,w.tooltext&&(A.originalText=w.tooltext),A.setWidth=null),x=A.showOnTop?-(de+w.height/2):Q+ue,C=A.isTrendZone?u(A.startValue,A.endValue).x:d.x,D=G.getGraphicalElement("trendTextElems")&&G.getGraphicalElement("trendTextElems")[n],D=P.setAnimation({el:D||"text",attr:{x:C,y:x,text:A.displayValue,"text-anchor":N[d.align],fill:(0,l.convertColor)(A.textColor||Y.color),"font-weight":"normal",direction:U,opacity:1,title:A.originalText||l.BLANK},container:H,component:M,label:"final"}),G.getGraphicalElement("trendTextElems")&&G.getGraphicalElement("trendTextElems")[n]||(D=G.addGraphicalElement("trendTextElems",D,!0,n)),D.show()}else n=0;for(;G.getGraphicalElement("trendTextElems")&&G.getGraphicalElement("trendTextElems")[n];)G.getGraphicalElement("trendTextElems")[n].hide(),n++},a.drawPointerValues=function(){var e,t,a,o,r,i,n,s,c,u,d,g,p,f,m=this,v=m.getFromEnv("chart"),b=v.getChildContainer("datalabelsGroup"),k=m.components.data,C=m.config,x=C.showTooltip,w=m.getFromEnv("toolTipController"),T=C.pointerOnOpp,y=C.valueInsideGauge,S=C.textDirection,A=m.getFromEnv("animationManager"),F=m.getFromEnv("smartLabel"),E=m.config.pointerArr&&m.config.pointerArr.pointer,L=v.config.dataLabelStyle,D=E&&E.length,M=v.config,R=M.canvasWidth,_=M.marginLeft,I={fontFamily:L.fontFamily,fontSize:L.fontSize,lineHeight:L.lineHeight,fontWeight:L.fontWeight,fontStyle:L.fontStyle},V=m.pool;for("initial"===v.state&&A.setAnimation({state:"initial",el:b,attr:{opacity:1},component:m}),F.setStyle(L);D--;)k[D]&&(f=!1,d=k[D].graphics,n=(a=k[D].config).displayValue,t=a.showValue,i=a.dataLabelStyle,0!==t&&n!==h?(u=(g=F.getOriSize(n)).height,(c=(g=F.getSmartText(n,M.width,u)).width/2)>_+(s=m.getPointerLabelXY(a.itemValue,y,T,.5*u,c)).x&&(s.x=c-_),e=g.tooltext||h,p={x:C.isScaleReversed?R-s.x:s.x,y:s.y,"text-anchor":N[s.align],title:a.originalText||l.BLANK,text:g.text,fill:i.color,direction:S,"text-bound":[i.backgroundColor,i.borderColor,L.borderThickness,L.borderPadding,L.borderRadius,L.borderDash]},r=A.setAnimation({el:d.pointerValueCont||V&&V.pointerValueCont[0]||"group",attr:{name:"label-group"},container:b,component:m,label:"labelGroup"}).show(),(o=A.setAnimation({el:d.pointerValue||V&&V.pointerValue[0]||"text",attr:p,css:I,container:r,component:m,label:"pointerValues"}).show()).outlineText(C.showTextOutline,p.fill),x?w.enableToolTip(o,e):w.disableToolTip(o),d.pointerValue||(V&&V.pointerValue[0]?(V.pointerValue.splice(0,1),V.pointerValueCont.splice(0,1)):f=!0),d.pointerValue=o,d.pointerValueCont=r,f||o.show()):(d.pointerValue&&d.pointerValue.hide(),d.pointerValueCont&&d.pointerValueCont.hide(),d.pointerValue&&w.disableToolTip(d.pointerValue)))},a.getDataLimits=function(){var e,t,a,o,r,i,c=this,u=c.config,d=c.getFromEnv("chart").getFromEnv("dataSource"),h=c.components.data||c.config.pointerArr&&c.config.pointerArr.pointer||d.dials&&d.dials.dial,g=d.colorrange,p=g&&g.color,f=h&&h.length,m=u.upperLimit,v=u.lowerLimit,b=-Infinity,k=+Infinity;for(e=0;e<f;e++)(o=h[e].config.value)!==l.BLANK&&(a=b=y(b,Number(o)),t=k=S(k,Number(o)));for(f=p&&p.length,e=0;e<f;e++)r=Number(p[e].maxvalue),i=Number(p[e].minvalue),m&&r>m&&(r=m),v&&i<v&&(i=v),k=(0,s["default"])([k,i]),b=(0,n["default"])([b,r]);return{forceMin:t!==k,forceMax:a!==b,max:b,min:k}},a.updateData=function(e,t){if(e===this.config.lastUpdatedObj)return!1;var a,o,i,n,s,c,u,d,g,m,v,b,k,C,x,w,T=this,y=T.getFromEnv("chart"),S=T.getFromEnv("number-formatter"),A=T.components.data,F=T.components.data,N=F&&F.length||0,E={},L=null,D=[],M=T.getFromEnv("chart-attrib").plottooltext,R=e;for(R=R.data,x=t||y.get(p,f),u=R.length,n=0;n<u;n++)(s=R[n].id)&&(E[s]=R[n]);if(c=Object.keys(E).length,N){for(;N--;)d={},w={},s=(g=A[N].config).id,m=r,m=c?E[s]:R[N],m&&(C=m.value,o=m.tooltext,a=m.label,i=m.showlabel,v=m.valuefontcolor,b=m.valuebgcolor,k=m.valuebordercolor,C!==r&&C!==l.BLANK?(d.value=w.value=C,L=w.displayvalue=w.tooltext=S.dataLabels(w.value),w.hasNewData=!0):w.value=g.formatedVal,v&&(g.dataLabelStyle.color=(0,l.convertColor)(v)),b&&(g.dataLabelStyle.backgroundColor=(0,l.convertColor)(b)),k&&(g.dataLabelStyle.borderColor=(0,l.convertColor)(k)),a&&(w.displayvalue=a,w.hasNewData=!0),"0"===i&&(w.displayvalue=h,w.hasNewData=!0),o&&(w.hasNewData=!0),o=(0,l.getValidValue)((0,l.parseUnsafeString)((0,l.pluck)(o,M),!1)),w.hasNewData&&(D[N]=w,g.value=w.value,g.displayValue=g.displayValue||"1"===i?w.displayvalue:h,g.toolText=o!==r?(0,l.parseTooltext)(o,[1,2],{formattedValue:L},d):L));return D.length&&(this.config.lastUpdatedObj=R,this.draw(x,!0)),Boolean(D.length)}},t}(u.ComponentInterface);E.prototype._configureDataLabelStyle=l.configureDataLabelStyle;var L=E;t["default"]=L},1515:(e,t,a)=>{t.__esModule=!0,t["default"]=void 0;var o=a(274),r=[{initialAttr:function(){return{opacity:0}},finalAttr:function(){return{opacity:1}}}],i={"initial.dataset.led":function(){var e=this.config,t=this.getFromEnv("chart").config,a=t.canvasLeft,i=t.canvasTop,l=t.canvasHeight,n=t.canvasWidth;return{"plotRect.appearing":function(){var t,o=e.isAxisReverse,r=e.isHorizontal;return o&&!r?t={y:i,height:l}:o||r?!o&&r?t={x:a,width:n}:o&&r&&(t={width:n}):t={height:l},[{initialAttr:{opacity:0},finalAttr:{opacity:1},slot:"initial"},{initialAttr:t,finalAttr:{opacity:1},slot:"middle"}]},"plotRect.updating":null,"text.appearing":function(){return r[0].slot=o.FINALSTR,r},"text.updating":null,"plotBackground.appearing":function(){return[Object.assign({},r[0],{slot:"initial"})]},"plotBackground.updating":null}}};t["default"]=i},1512:(e,t,a)=>{var o=a(269);t.__esModule=!0,t["default"]=void 0;var r,i=o(a(288)),l=a(274),n=o(a(1513)),s=a(282),c=o(a(1515)),u=l.BLANK,d=l.preDefStr.colors.c000000,h=l.preDefStr.showHoverEffectStr,g="butt",p=l.preDefStr.POSITION_MIDDLE,f=window,m=f.navigator.userAgent,v="rgba(192,192,192,"+(/msie/i.test(m)&&!f.opera?.002:1e-6)+")",b=Math,k=b.round,C=b.max,x=l.regex.dropHash,w="setRolloverAttr",T="setRolloutAttr";(0,s.addDep)({name:"ledAnimation",type:"animationRule",extension:c["default"]});var y=function(e){function t(){return e.apply(this,arguments)||this}(0,i["default"])(t,e);var a=t.prototype;return a.getType=function(){return"dataset"},a.getName=function(){return"led"},a.draw=function(){var e,t,a,o,r,i,n,s,c,u,p,f,m,b,y,S,A,F,N,E,L,D,M,R,_,I,V,O,P,G,B,H,W,z,j,U,X,K,Y,J,q,Z,$,Q,ee,te,ae,oe,re,ie,le,ne,se,ce,ue,de,he=this,ge=he.getFromEnv("chart"),pe=he.config,fe=ge.getFromEnv("dataSource").chart,me=ge.config,ve=ge.getChildren("canvas")[0],be=ve.getGraphicalElement(),ke=ve.config,Ce=be.canvasBorderElement,xe=be.colorRangeElems,we=be.canvasElementPath,Te=be.canvasHotElement,ye=me.canvasLeft,Se=me.canvasRight,Ae=me.canvasTop,Fe=me.canvasBottom,Ne=me.canvasWidth,Ee=me.canvasHeight,Le=ge.getChildContainer().plotGroup,De=he.getFromEnv("scale"),Me=De.getLimit().min,Re=De.getLimit().max,_e=(0,l.pluckNumber)(ge.getFromEnv("dataSource").chart.reverseaxis,ge.isAxisReverse),Ie=ge.isHorizontal,Ve=he.getFromEnv("color-manager"),Oe=he.getFromEnv("number-formatter"),Pe=ge.getFromEnv("animationManager"),Ge=pe.showHoverEffect,Be=[],He=[],We=he.getContainer("trackerContainer"),ze=ge.getChildContainer("trackerGroup"),je=0,Ue=!1;if(We||(We=he.addContainer("trackerContainer",Pe.setAnimation({el:"group",attr:{name:"led-hot"},container:ze,component:he}))),n=(0,l.pluckNumber)(fe.showgaugeborder,1),o=(0,l.pluck)(fe.gaugebordercolor,ge.gaugeBorderColor,"333333"),n?(0,l.pluckNumber)(fe.gaugeborderthickness,ge.gaugeBorderThickness,2):0,(0,l.pluck)(fe.gaugeborderalpha,l.HUNDREDSTRING),ke.gaugeFillColor=M=(0,l.pluck)(fe.gaugefillcolor,fe.ledbgcolor,d),N=(0,l.pluckNumber)(fe.usesamefillcolor,0),E=(0,l.pluckNumber)(fe.usesamefillbgcolor,N),pe.ledGap=L=(0,l.pluckNumber)(fe.ledgap,2),pe.ledSize=D=(0,l.pluckNumber)(fe.ledsize,2),ke.colorRangeFillMix=e=(0,l.getFirstDefinedValue)(fe.colorrangefillmix,fe.gaugefillmix,ge.colorRangeFillMix,"{light-10},{dark-10},{light-10},{dark-10}"),ke.colorRangeFillRatio=t=(0,l.getFirstDefinedValue)(fe.colorrangefillratio,fe.gaugefillratio,ge.colorRangeFillRatio,fe.gaugefillratio,"0,10,80,10"),ke.colorRangeGetter=U=he.getFromEnv("colorRange"),ke.colorArray=a=U&&U.getColorRangeArr(Me,Re),o=(0,l.pluck)(o,d).replace(x,l.HASHSTRING),r=(0,l.pluckNumber)(fe.colorrangeborderalpha,fe.gaugeborderalpha,100),i=(0,l.pluckNumber)(fe.showshadow,1),n=(0,l.pluckNumber)(fe.showgaugeborder,1),ke.colorRangeBorderThickness=s=n?(0,l.pluckNumber)(fe.colorrangeborderthickness,fe.gaugeborderthickness,2):0,I=Re-Me,O=ye-(V=s/2),P=Ae-V,G=ye+Ne+V,B=Ae+Ee+V,D+=(_=(Ie?Ne:Ee)-D)%(R=L+D||1)/(H=parseInt(_/R,10)+1),pe.sizeGapSum=R=D+L,pe.perLEDValueLength=Q=I/H,W=ye,z=Ae,Z=(0,l.pluck)(fe.clickurl),Y=Oe.getCleanValue(ge.getFromEnv("dataSource").value),N||E)for(u=0,p=a.length;u<p;u+=1)if(Y>=a[u].minvalue&&Y<=a[u].maxvalue){X=a[u].code||Ve.getPlotColor(u),J=u;break}for(a&&a.length>0&&(K=a[0].code||Ve.getPlotColor(0)),ee=_e?Se:ye,te=_e?Ae:Fe,u=0,p=a&&a.length;u<p;u+=1)c=a[u],le=c.minvalue-Me,ne=c.maxvalue-Me,f=_e&&!Ie?{x:ye,y:Ae+le*Ee/(Re-Me),width:Ne,height:(ne-le)*Ee/(Re-Me)}:_e||Ie?_e&&Ie?{x:ye+(Ne-ne*Ne/(Re-Me)),y:Ae,width:(ne-le)*Ne/(Re-Me),height:Ee}:!_e&&Ie?{x:ye+le*Ne/(Re-Me),y:Ae,width:(ne-le)*Ne/(Re-Me),height:Ee}:void 0:{x:ye,y:Ae+(Ee-ne*Ee/(Re-Me)),width:Ne,height:(ne-le)*Ee/(Re-Me)},re=(ae=k((c.maxvalue-Me)/Q))-je,je=ae,oe=re*R,Ie||_e?!Ie&&_e?(f.height=oe-L,f.y=te,te+=oe):Ie&&!_e?(f.width=oe-L,f.x=ee,ee+=oe):Ie&&_e&&(f.width=oe-L,f.x=ee-f.width,ee-=oe):(f.height=oe-L,f.y=te-f.height,te-=oe),c.x=f.x,c.y=f.y,c.width=f.width,c.height=f.height,m=N?X:E&&u>J?K:K=c.code||Ve.getPlotColor(u),b=(0,l.convertColor)((0,l.getColorCodeString)((0,l.pluck)(c.bordercolor,m),o),(0,l.pluckNumber)(c.borderalpha,r)),y=Ve.parseColorMix(c.code,e),S=Ve.parseAlphaList(c.alpha,y.length),A=(0,l.pluckNumber)(c.borderAlpha,r),F=S.split(l.COMMASTRING),F=C.apply(Math,F),F=C(s&&A||0,F),ie={x:f.x,y:f.y,width:f.width<0?0:f.width,height:f.height<0?0:f.height,r:0,"stroke-width":0,stroke:b,fill:(0,l.toRaphaelColor)({FCcolor:{color:m,ratio:t,alpha:S,angle:180}})},q=Pe.setAnimation({el:xe&&xe[u]||"rect",attr:ie,container:Le,component:he,label:"plotBackground"}).toBack(),xe&&xe[u]||(ve.addGraphicalElement("colorRangeElems",q,!0),q.shadow({apply:i,opacity:F/100})),Be.push({"stroke-width":0,fill:(0,l.toRaphaelColor)({FCcolor:{color:(0,l.getDarkColor)((0,l.pluck)(m,d),80)+l.COMMASTRING+(0,l.getLightColor)((0,l.pluck)(m,d),80),alpha:(0,l.pluckNumber)(c.alpha,100),angle:Ie?90:0}})}),He.push({"stroke-width":0,fill:(0,l.toRaphaelColor)({FCcolor:{color:(0,l.pluck)(m,d),alpha:(0,l.pluckNumber)(c.alpha,100)}})});for(p=(xe=ve.getGraphicalElement("colorRangeElems")||[]).length-1;p>=u;)ve.removeGraphicalElement(xe[p]),p--;for($={link:Z,value:Y},ie={x:ye,y:Ae,width:Ne,height:Ee,"stroke-width":0,fill:v},Te?Pe.setAnimation({el:Te,attr:ie,container:We,component:he}):(Te=be.canvasHotElement=Pe.setAnimation({el:"rect",attr:ie,container:We,component:he}),Ue=!0),Te.data("eventArgs",$).data(h,Ge).data(w,Be).data(T,He),Ue&&(Z&&Te.on("fc-click",(function(e){ge.plotEventHandler(this,e)})),Te.hover((se=xe,de=0,function(){if(0!==(ue=this).data(h))for(de=0,ce=se.length;de<ce;de+=1)se[de].attr(ue.data(w)[de])}),function(e){var t,a,o=0;return function(){if(0!==(a=this).data(h))for(o=0,t=e.length;o<t;o+=1)e[o].attr(a.data(T)[o])}}(xe))),Ie?W+=R-L/2:z+=R-L/2,j=[],ie={path:["M",O,P,"L",G,P,G,B,O,B,"Z"],stroke:(0,l.convertColor)(o,r),"stroke-width":s,"stroke-linecap":g},Ce?Pe.setAnimation({el:Ce,attr:ie,component:he}):be.canvasBorderElement=Pe.setAnimation({el:"path",attr:ie,container:Le,component:he,label:"plotBackground"}).shadow({apply:i}).toBack(),u=1;u<H;u+=1)Ie?(j.push("M",W,z,"L",W,z+Ee),W+=R):(j.push("M",W,z,"L",W+Ne,z),z+=R);ie={path:j,stroke:(0,l.convertColor)(M,100),"stroke-width":L,"stroke-linecap":g},we?Pe.setAnimation({el:we,attr:ie,component:he}):(we=Pe.setAnimation({el:"path",attr:ie,container:Le,component:he,label:"plotBackground"}),ve.addGraphicalElement("canvasElementPath",we)),he.drawShade()},a.drawShade=function(){var e,t,a,o,i,n,s,c,d,h,g,f,m,v,b,C=this,x=C.config,w=C.components.data,T=C.getFromEnv("chart"),y=T.getChildren("caption")[0],S=T.getChildren("subCaption")[0],A=y&&y.config.text&&y.config.height||0,F=y&&y.config.text&&y.config.captionPadding||0,N=S&&S.config.text&&S.config.height||0,E=T.getFromEnv("dataSource").chart,L=T.getFromEnv("animationManager"),D=C.getFromEnv("toolTipController"),M=C.getFromEnv("smartLabel"),R=T.config,_=R.canvasLeft,I=R.canvasTop,V=R.canvasHeight,O=R.canvasWidth,P=T.getChildContainer().plotGroup,G=C.getContainer("container"),B=C.getFromEnv("number-formatter"),H=x.isAxisReverse=(0,l.pluckNumber)(E.reverseaxis,T.isaxisreverse),W=x.isHorizontal=T.isHorizontal,z=w[0],j=z.graphics,U=z&&z.config,X=C.getContainer("dataLabelContainer"),K=T.getChildContainer("datalabelsGroup"),Y=T.getChildren("canvas")[0],J=T.config.dataLabelStyle,q=x.heightUsed,Z=C.getFromEnv("scale").getLimit().min;M.setStyle(J),o=T.getChildren("canvas")[0].config.gaugeFillColor,G||(G=C.addContainer("container",L.setAnimation({el:"group",attr:{name:"shade"},container:P,component:C}))),X||(X=C.addContainer("dataLabelContainer",L.setAnimation({el:"group",attr:{name:"datalabel"},container:K,component:C,label:"labelGroup"}))),i=B.getCleanValue(U.setValue),z.graphics||(z.graphics={}),f=(i-Z)/x.perLEDValueLength,m=k(f)*x.sizeGapSum-x.ledGap,v=Math.ceil(V-m),b=Math.ceil(O-m),H&&!W?s={x:_,y:I+m,width:O,height:v,r:0,"stroke-width":0,fill:(0,l.convertColor)(o,50)}:H||W?!H&&W?s={x:_+m,y:I,width:b,height:V,r:0,"stroke-width":0,fill:(0,l.convertColor)(o,50)}:H&&W&&(s={x:_,y:I,width:b,height:V,r:0,"stroke-width":0,fill:(0,l.convertColor)(o,50)}):s={x:_,y:I,width:O,height:v,r:0,"stroke-width":0,fill:(0,l.convertColor)(o,50)},z.graphics.element=L.setAnimation({el:z.graphics.element||"rect",attr:s,container:G,component:C,label:"plotRect"}),g=U.setTooltext===l.BLANK||U.setTooltext===r?U.toolTipValue:U.setTooltext,x.showTooltip?D.enableToolTip(Y._graphics.canvasHotElement,g):D.disableToolTip(Y._graphics.canvasHotElement),n=(c=parseInt(J.lineHeight,10))>q?R.height-R.marginBottom-q+c/2:R.height-R.marginBottom-c/2,n-=R.borderWidth,n-=(T._manageActionBarSpace&&T._manageActionBarSpace(.225*U.availableHeight)||{}).bottom,0===y.config.isOnTop&&(n-=A+N+F),j=z.graphics,U.displayValue!==u&&U.displayValue!==r&&x.showValue?(a=(e=M.getSmartText(U.displayValue,R.width,x.heightUsed)).text,t=e.tooltext||u,s={text:a,"text-anchor":p,x:O/2+_,y:n,"vertical-align":p,fill:J.color,direction:U.textDirection,"text-bound":[J.backgroundColor,J.borderColor,J.borderThickness,J.borderPadding,J.borderRadius,J.borderDash]},j.label=L.setAnimation({el:j.label||"text",attr:s,container:X,component:C,label:"text"}),x.showTooltip?D.enableToolTip(j.label,t):D.disableToolTip(j.label),(d=j.label.getBBox()).x+R.marginLeft<0&&(h=d.width-R.marginLeft,R.width<h&&(h=R.width-R.marginLeft),s={x:h/2},L.setAnimation({el:j.label,attr:s,component:C,label:"text"}))):(j.label&&D.disableToolTip(j.label),j.label=j.label&&L.setAnimation({el:j.label,component:C}))},t}(n["default"]),S=y;t["default"]=S},1568:(e,t,a)=>{var o=a(269);t.__esModule=!0,t["default"]=void 0;var r,i=o(a(288)),l=a(274),n=o(a(1562)),s=a(286),c=o(a(1569)),u=l.preDefStr.POSITION_START,d=l.preDefStr.POSITION_MIDDLE,h=function(e){function t(){var t;return(t=e.call(this)||this).preDrawingHook=function(){},t.config.pointInContext=c["default"],t.config.LABEL_PLACEMENT_ITERATOR_INDEX_START=0,t}(0,i["default"])(t,e);var a=t.prototype;return a.getType=function(){return"dataset"},a.getName=function(){return"pyramid"},a.configure=function(e){if(!e)return!1;this.config.JSONData=e;var t=this,a=t.getFromEnv("chartConfig");t._checkValidData(t.config.JSONData.data)&&(t._configure(),a.showLegend&&t.addLegend())},a.configureSpecifics=function(){var e=this,t=e.getFromEnv("chart"),a=e.config,o=t.getFromEnv("dataSource")?t.getFromEnv("dataSource").chart:{};(0,e.utils(e).copyProperties)(o,a,[["pyramidyscale","yScale",l.pluckNumber,r,function(e){var t=e.yScale;e.yScale=t>=0&&t<=40?t/200:.2}],["use3dlighting","use3DLighting",l.pluckNumber,1]])},a.calculatePositionOfPlots=function(){var e,t,a,o,i,n,s,c,u,d,h,g,p,f,m,v,b=this,k=b.getFromEnv("chart").config,C=b.config,x=b.utils(b).DistributionMatrix,w=b.calculatePositionCoordinate,T=C.psmMargin,y=b.getChildren("data"),S=2,A=y.length,F=0,N=0,E=C.lineHeight,L=Math.floor;for(b.postPlotCallback=l.stubFN,k.canvasTop+=k.marginTop-T.top,k.effCanvasHeight=i=k.canvasHeight-(k.marginTop+k.marginBottom)+(T.top+T.bottom),k.effCanvasWidth=n=k.width-(k.marginLeft+k.marginRight),s=C.drawingRadius=n/S,C.x=k.canvasLeft+(k.canvasRight-k.canvasLeft)/2,v=Math.atan(n/2/i),C.unitHeight=o=i/C.sumValue,C.lastRadius=0,C.globalMinXShift=Math.floor(E/Math.cos(v)),(c=C.alignmentType={})["default"]=1,c.alternate=2,m=new x(L(i/E)),e=0,t=A;e<t;e++)(a=y[e]).getState("removed")||(F=a.y*o,u=L(((N+=a.y*o)-F+F/2)/E),m.push(a,u));if(d=m.getDistributedResult(),y.length=0,d.matrix[1]===r)[].push.apply(y,d.matrix[0]);else for(h=d.matrix[0],g=d.matrix[1],t=Math.max(h.length,g.length),e=0;e<t;e++)f=h[e],p=g[e],y.push(f||p);switch(d.suggestion){case c["default"]:w.call(b,y,!1);break;case c.alternate:C.labelAlignment=c.alternate,S=3,C.drawingRadius=s=n/S,k.canvasLeft=k.canvasWidth/2-s,C.x=k.canvasLeft+s,w.call(b,y,!0)}},a.draw=function(){var e,t,a,o,r,i,l,n=this,c=n.getFromEnv("chart"),u=n.config,d=n.config.trackerArgs=[],h=n.getChildren("data"),g=h.length,p=Math.min;if(u.sumValue){for(n.config.labelDrawingConfig=n.config.labelDrawingConfig||[],n.config.labelDrawingConfig.length=0,n.animateFunction=function(e){return function(){e.attr({opacity:1})}},r=(a=u.slicingDistance)/2,e=0,t=h.length;e<t;e++)h[e]&&h[e].shapeArgs&&(h[e].shapeArgs.renderer=c.getFromEnv("paper"));for((o=u.noOfGap)&&(u.perGapDistance=p(1.5*r,a/o),u.distanceAvailed=r),e=h.length,u.alreadyPlotted&&(n.postPlotCallback=function(){l||(l=!0)});e--;)(i=h[e]).index=e,i.syncDraw();for(u.oldLastData=Object.assign({},h[h.length-1].shapeArgs),n.hide(n.getChildren("data"),g),u.connectorEndSwitchHistoryY={},e=h.length;e--;)d.push(h[e]);n.addJob("labelDrawID",n.drawAllLabels.bind(n),s.priorityList.label),n.addJob("trackerDrawID",n.drawAllTrackers.bind(n),s.priorityList.tracker),n.removePlots(),u.alreadyPlotted=!0,u.prevIs2d=u.is2d}},a.calculatePositionCoordinate=function(e,t){var a,o,i,n,s,c,h,g,p,f=this,m=f.config,v=m.is2d,b=m.x,k=f.getFromEnv("chart"),C=k.config,x=C.canvasTop,w=m.unitHeight,T=m.labelDistance,y=m.showLabelsAtCenter,S=.3*C.style.fontSize,A=m.yScale,F=m.blankSpace,N=m.lastRadius,E=f.getFromEnv("smartLabel"),L=e.length-1,D=!1,M=0,R=m.lineHeight,_=0,I={flag:!1,point:r,sLabel:r,setAll:function(e,t,a){this.flag=e,this.point=t,this.sLabel=a}},V={point:r,sLabel:r,set:function(e,t){var a=e,o=t;return function(e,t){var r,i;if(!e.dontPlot){if(!this.point||!this.sLabel)return this.point=e,void(this.sLabel=t);r=a(this.point,this.sLabel),i=a(e,t),o(r,i)&&(this.point=e,this.sLabel=t)}}}},O={},P={},G={},B={},H=k.config.width-2,W=m.slicingGapPosition={};for((0,l.extend2)(O,I),(0,l.extend2)(P,I),O.setAll=function(e,t,a){var o=this.point,r=this.sLabel;if(this.flag=e,!o||!r)return this.point=t,void(this.sLabel=a);o.labelX-(r.oriTextWidth-r.width)>t.labelX-(a.oriTextWidth-a.width)&&(this.point=t,this.sLabel=a)},P.setAll=function(e,t,a){var o=this.point,r=this.sLabel;if(this.flag=e,!o||!r)return this.point=t,void(this.sLabel=a);o.labelX+r.oriTextWidth<t.labelX+a.oriTextWidth&&(this.point=t,this.sLabel=a)},(0,l.extend2)(G,V),(0,l.extend2)(B,V),G.set=V.set.apply(G,[function(e){return e.labelX},function(e,t){return e>t}]),B.set=V.set.apply(B,[function(e,t){return e.labelX+t.oriTextWidth},function(e,t){return e<t}]),m.noOfGap=0,E.useEllipsesOnOverflow(C.useEllipsesWhenOverflow),a=0,o=e.length;a<o;a++)(i=e[a])&&(i.x=a,i.plot&&(i.isSliced=!!i.isSliced||!!m.isSliced),i.isSliced=(0,l.pluckNumber)(i.isSliced,m.isSliced),t&&(D=!D),i.isSliced&&((p=i.x)&&!W[p]&&(W[p]=!0,m.noOfGap+=1),p<L&&(W[p+1]=!0,m.noOfGap+=1)),E.setStyle(i.style),i.oriText=i.displayValue,s=s=E.getSmartText(i.displayValue,Number.POSITIVE_INFINITY,Number.POSITIVE_INFINITY),_+=i.y,c=m.drawingRadius*_/m.sumValue,n=w*i.y,i.shapeArgs={x:b,y:x,R1:N,R2:c,h:n,r3dFactor:A,gStr:"point",is2D:v,use3DLighting:!!m.use3DLighting,renderer:f.getFromEnv("paper")},y?(i.labelAline=d,i.labelX=b,i.labelY=(v?x:x+A*N)+n/2+S):(i.labelAline=u,i.alignmentSwitch=D,i.distributionFactor=i.distributionFactor||0,D?(i.labelX=b-(T+(c+N)/2+F+s.width),i.labelX-=i.distributionFactor*m.globalMinXShift,G.set(i,s)):(i.labelX=b+T+(c+N)/2+F,i.labelX+=i.distributionFactor*m.globalMinXShift,B.set(i,s)),M=i.distributionFactor*R,i.labelY=x+S+n/2+M),t&&(D&&i.labelX<0?(h=i.labelX+s.width,g=E.getSmartText(i.displayValue,h,Number.POSITIVE_INFINITY,!0),i.labelX=2,i.isLabelTruncated=!0,i.displayValue=g.text,i.virtualWidth=g.maxWidth,O.setAll(!0,i,g)):!D&&i.labelX+s.width>H&&(g=E.getSmartText(i.displayValue,H-i.labelX,Number.POSITIVE_INFINITY,!0),i.isLabelTruncated=!0,i.displayValue=g.text,i.virtualWidth=g.maxWidth,P.setAll(!0,i,g)),i.pWidth=i.virtualWidth||s.width,M=i.distributionFactor*R,i.labelY=x+S+n/2+M),x+=n,i.plotX=b,i.plotY=x-n/2,N=c,i.virtualWidth=i.virtualWidth||s.width);f.findBestPosition(e,{lTrimmedInfo:O,rTrimmedInfo:P,lLargestLabel:G,rLargestLabel:B})},a.getTooltipMacroStub=function(t){var a,o,r=this.config,i=this.getFromEnv("number-formatter");return o=r.percentOfPrevious?t.pValue:i.percentValue(t.dataValue/t.prevValue*100),(a=e.prototype.getTooltipMacroStub.call(this,t)).percentValue=r.percentOfPrevious?i.percentValue(t.dataValue/t.highestValue*100):t.pValue,a.percentOfPrevValue=o,a},t}(n["default"]);t["default"]=h},1573:(e,t,a)=>{var o=a(269);t.__esModule=!0,t["default"]=void 0;var r=o(a(273)),i=o(a(288)),l=a(290),n=a(274),s=o(a(329)),c=a(282),u=a(1454);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 g="A";var p=function(e){function t(){return e.apply(this,arguments)||this}(0,i["default"])(t,e);var a=t.prototype;return a.getName=function(){return"RadialBarPlot"},a.getType=function(){return"plot"},t.getName=function(){return"RadialBarPlot"},t.getType=function(){return"plot"},a._mouseOverHandler=function(e){var t=this.getFromEnv("toolTipController"),a=this.getLinkedParent();if(a.config.showcontextlabel&&a.drawContextLabel(this.getParsedText(this.config.contexttext,!0),!0),a.config.showtooltip&&!this.config.currentToolTip&&(this.config.currentToolTip=t.draw(e.originalEvent,this.getParsedText(this.config.tooltext,!0))),this.config.realBarAlpha=this.config.realBarAlpha||this.config.baralpha,this.config.realBarBorderAlpha=this.config.realBarBorderAlpha||this.config.barborderalpha,this.setData({baralpha:.25*this.config.realBarAlpha,barborderalpha:.25*this.config.realBarBorderAlpha},!0),e&&e.sender&&e.sender.config&&e.sender.config.lastElemUsed){var o=e.sender.config.lastElemUsed;a.plotEventHandler(o,e,"dataplotRollover")}},a._mouseOutHandler=function(e){var t=this.getFromEnv("toolTipController"),a=this.getLinkedParent();if(this.config.currentToolTip&&(t.hide(this.config.currentToolTip),this.config.currentToolTip=n.UNDEF),this.setData({baralpha:this.config.realBarAlpha,barborderalpha:this.config.realBarBorderAlpha},!0),a.config.showcontextlabel&&a.drawContextLabel(a.config.defaultcontextlabel),e&&e.sender&&e.sender.config&&e.sender.config.lastElemUsed){var o=e.sender.config.lastElemUsed;a.plotEventHandler(o,e,"dataplotRollout")}},a._mouseClickHandler=function(e){var t=this.getLinkedParent();if(e&&e.sender&&e.sender.config&&e.sender.config.lastElemUsed){var a=e.sender.config.lastElemUsed;t.plotEventHandler(a,e,"dataplotClick")}},a.__setDefaultConfig=function(){this.config.startangle=90,this.config.endangle=180,this.config.barstartradius="100%",this.config.barendradius="100%",this.config.barborder="none",this.config.barbordercolor="#000000",this.config.barborderalpha=1,this.config.barborderthickness=1,this.config.color="#0000ff",this.config.baralpha=1,this.config.value=0},a.configureAttributes=function(t){e.prototype.configureAttributes.call(this,t),t.value<=0&&(t.value=0),this.config=h(h({},this.config),t),this.getFromEnv("chartConfig")||this.addToEnv("chartConfig",this.config),this.createBaseComponent(),t.thickness&&(this.config.thickness=t.thickness),(t.startangle||0===t.startangle)&&(this.config.startingAngle=t.startangle),(t.endangle||0===t.endangle)&&(this.config.endingAngle=t.endangle),"none"===this.config.barborder&&(this.config.barborderalpha=0,this.config.barborderthickness=0),this.getLinkedParent().config.showLegend&&this._addLegend()},a.createBaseComponent=function(){var e=this,t=e.getFromEnv("animationManager");t||(t=new s["default"],e.addToEnv("animationManager",t),t.addToEnv("chart",e)),t.configure(),t._setAnimDuration()},a.addPaperToEnv=function(){var e=this.getFromEnv("chart-container"),t=new((0,c.getDep)("redraphael","plugin"))(e,this.getFromEnv("chartWidth"),this.getFromEnv("chartHeight"));t.setHTMLClassName("fusioncharts-div"),this.getFromEnv("animationManager").addToEnv("paper",t)},a.setNodePath=function(e,t,a){this.config.thickness=t,this.config.outerRadius=e/2,this.config.innerRadius=this.config.outerRadius-this.config.thickness,this.config.barstartradius=a.barstartradius,this.config.barendradius=a.barendradius,this.manageSpace()},a.manageSpace=function(){var e,t=this.getFromEnv("chartConfig"),a=this.getLinkedParent(),o=t.canvasLeft,r=t.canvasTop,i=o+t.canvasWidth/2,l=r+t.canvasHeight/2,s=(0,u.changeAngleBase)(this.config.startingAngle),c=(0,u.changeAngleBase)(this.config.endingAngle),d=(0,u.findArc)(s,s===c?c-.1:c),h=s+Math.round((this.config.value>100?100:this.config.value)/100*d),p=parseInt(this.config.barstartradius,10)/100*(this.config.thickness/2),f=parseInt(this.config.barendradius,10)/100*(this.config.thickness/2);h=s===c?h-.01:h,e=(0,u.findArc)(s,h),this.getFromEnv("chart-attrib").interactivelegend=a.config.interactivelegend,this.config.path_d=function(e,t,a,o,r,i,l,s,c,d){c>0&&360!==a&&(e+=(0,u.radiansInAngle)(c,r+c)),d>0&&360!==a&&(t-=(0,u.radiansInAngle)(d,r+d));var h=(0,u.normaliseAngle)(e),p=(0,u.normaliseAngle)(t),f=(0,u.findArc)(h,p),m=(0,u.pointOnCircleFromCenter)(i,l,o,h),v=m.x,b=m.y,k=(0,u.pointOnCircleFromCenter)(i,l,o,p),C=k.x,x=k.y,w=(0,u.pointOnCircleFromCenter)(i,l,r,h),T=w.x,y=w.y,S=(0,u.pointOnCircleFromCenter)(i,l,r,p),A=S.x,F=S.y;return f>270&&(f=a),v=(0,n.toPrecision)(v,4),b=(0,n.toPrecision)(b,4),C=(0,n.toPrecision)(C,4),x=(0,n.toPrecision)(x,4),T=(0,n.toPrecision)(T,4),y=(0,n.toPrecision)(y,4),A=(0,n.toPrecision)(A,4),F=(0,n.toPrecision)(F,4),["M",v,b,g,o,o,0,f<=180?0:1,1,C,x,d>0&&360!==f?"A, "+d+", "+d+", 0, 1, 1, "+A+", "+F:"L, "+A+", "+F,g,r,r,0,f<=180?0:1,0,T,y,c>0&&360!==f?"A, "+c+", "+c+", 0, 1, 1, "+v+", "+b:"","Z"]}(s,h,e,this.config.outerRadius,this.config.innerRadius,i,l,this.config.thickness,p,f)},a.allocatePosition=function(){return!1},a.checkInvalidData=function(){return!1},a.checkInvalidSpecificData=function(){return!1},a._addLegend=function(){var e=this.getFromEnv("legend"),t=e.getItem(this.config.legendItemId),a=this.getLinkedParent(),o={label:this.config.label,type:"radialBar",showIcon:parseInt(a.config.showiconinlegend,10)&&this.config.iconurl,iconUrl:this.config.iconurl};t||(this.config.legendItemId=e.createItem(this.getLinkedParent()),t=e.getItem(this.config.legendItemId)),t.configure(o),t.setStateCosmetics("default",{symbol:{fill:this.config.realColor||this.config.color,stroke:this.config.barbordercolor,rawFillColor:this.config.realColor||this.config.color,rawStrokeColor:this.config.barbordercolor,bgColor:this.config.realColor||this.config.color,bgAlpha:100*(this.config.realBarAlpha||this.config.baralpha),opacity:100*(this.config.realBarAlpha||this.config.baralpha)}}),t.setStateCosmetics("highlight",{symbol:{fill:this.config.legenditemcolor,stroke:this.config.legenditembordercolor,rawFillColor:this.config.legenditemcolor,rawStrokeColor:this.config.legenditembordercolor,bgColor:this.config.legenditemcolor,bgAlpha:25,opacity:25},text:{fill:(0,n.toRaphaelColor)({alpha:25})}}),this.addExtEventListener("fc-click",(function(){t.itemClickFn()}),t)},a.getParsedText=function(e,t,a){var o,r,i,l,s,c,u,d,h,g,p,f=this.getFromEnv("legend"),m=this.getFromEnv("chartConfig"),v=this.getLinkedParent(),b=n.isIpad?"■":"◼",k=[],C=[],x=n.BLANKSTRING,w=this.getLinkedParent().config.showLegend&&f.getItem(this.config.legendItemId),T=w&&w.getGraphicalElement(),y="",S=a||this.config.labelFontSize;if(w&&!m.showiconinlegend){if(o=(s=T&&T.legendItemSymbol)&&s.attrs.path.split(/(?=[LMCA])/),S=(l=s&&s.node.getBBox()).height,g=T.legendItemSymbol.node.getAttribute("stroke-width"),a&&a<l.height&&(S=a,g=g*(h=a/l.height)/2,y="transform=scale("+h+","+h+")"),o&&o.length)for(r=0;r<o.length;r++)C.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"!==C[r]?k[r][i]=i%2==0?k[r][i]-l.x:k[r][i]-l.y:"A"===C[r]&&(5===i?k[r][i]=k[r][i]-l.x:6===i&&(k[r][i]=k[r][i]-l.y));x+=C[r]+k[r].toString()}x+="Z"}return c=w&&x?'<svg style="margin:0px 1px 0px 1px;" height= '+S+" width = "+S+" overflow='visible' xmlns=\"http://www.w3.org/2000/svg\">\n <path d= "+x+" fill = "+(this.config.realColor||this.config.color)+" stroke = "+T.legendItemSymbol.node.getAttribute("stroke")+"\n stroke-opacity = 1 fill-opacity = 1 "+y+"\n stroke-width = "+g+" stroke-linecap = "+T.legendItemSymbol.node.getAttribute("stroke-linecap")+"></path>\n </svg>":"<span style='color: "+(this.config.realColor||this.config.color)+";'>"+b+" </span>",u={value:this.config.value,barColor:this.config.realColor||this.config.color,plotIdentifier:c},t&&(this.config.iconurl?((d=S*parseInt(v.config.iconscale,10)/100)>=Math.abs(this.config.outerRadius-this.config.innerRadius)&&(d=Math.abs(this.config.outerRadius-this.config.innerRadius)),d=d<0?Math.abs(this.config.outerRadius-this.config.innerRadius):d,a&&(p="end"===v.config.iconposition?"0px 0px 0px 10px":"0px 10px 0px 0px"),u.icon='<svg style="margin:'+p+';" height= '+d+" width = "+d+' overflow=\'visible\' xmlns="http://www.w3.org/2000/svg">\n <image preserveAspectRatio="none" href='+this.config.iconurl+'\n x="0" y="0" width= '+d+" height="+d+"></image>\n </svg>"):u.icon=c),(0,n.parseTooltext)(e,[1,2,3,172,145,173],{label:this.config.label,formattedValue:this.config.dataValue},u)||this.config.label},a.draw=function(){var e=this.getLinkedParent();this.addGraphicalElement({el:"path",attr:{path:this.config.path_d,fill:this.config.color,stroke:this.config.barbordercolor,"stroke-width":this.config.barborderthickness,"stroke-opacity":this.config.plotHidden?0:this.config.barborderalpha,"stroke-dasharray":"dashed"===this.config.barborder?5:n.UNDEF,"fill-opacity":this.config.plotHidden?0:this.config.baralpha},container:{id:"node-container",isParent:!0},label:"bar",component:this}),this.config.plotHidden||e.drawLabel(e.getChildren("dataset")[this.config.plotIndex],this)},t}(l.SmartRenderer),f=p;t["default"]=f},1572:(e,t,a)=>{var o=a(269);t.__esModule=!0,t["default"]=void 0;var r=o(a(273)),i=o(a(288)),l=a(290),n=a(1454),s=a(274),c=o(a(329)),u=a(282);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 g="A";function p(e,t,a,o,r,i,l){var c=(0,n.normaliseAngle)(e),u=(0,n.normaliseAngle)(t),d=(0,n.pointOnCircleFromCenter)(r,i,o,c),h=d.x,g=d.y,p=(0,n.pointOnCircleFromCenter)(r,i,o,u),f=p.x,m=p.y;return"M "+(h=(0,s.toPrecision)(h,4))+" "+(g=(0,s.toPrecision)(g,4))+" A "+o+" "+o+" 0 "+(a<=180?0:1)+" "+(l?1:0)+" "+(f=(0,s.toPrecision)(f,4))+" "+(m=(0,s.toPrecision)(m,4))+" Z"}var f=function(e){function t(){return e.apply(this,arguments)||this}(0,i["default"])(t,e);var a=t.prototype;return a.getName=function(){return"RadialTrack"},a.getType=function(){return"dataset"},t.getName=function(){return"RadialTrack"},t.getType=function(){return"dataset"},a.__setDefaultConfig=function(){this.config.startangle=90,this.config.endangle=180,this.config.trackpadding=0,this.config.trackmargin=6,this.config.trackstartradius="100%",this.config.trackendradius="100%",this.config.trackfillcolor="#0000ff",this.config.trackalpha=.4,this.config.trackborder="none",this.config.trackbordercolor="#000000",this.config.trackborderalpha=1,this.config.trackborderthickness=1,this.config.value=0},a.configureAttributes=function(t){e.prototype.configureAttributes.call(this,t),this.config=h(h({},this.config),t),this.getFromEnv("chartConfig")||this.addToEnv("chartConfig",this.config),this.createBaseComponent(),t.thickness&&(this.config.thickness=t.thickness),(t.startangle||0===t.startangle)&&(this.config.startingAngle=t.startangle),(t.endangle||0===t.endangle)&&(this.config.endingAngle=t.endangle),"none"===this.config.trackborder&&(this.config.trackborderalpha=0,this.config.trackborderthickness=0)},a.createBaseComponent=function(){var e=this,t=e.getFromEnv("animationManager");t||(t=new c["default"],e.addToEnv("animationManager",t),t.addToEnv("chart",e)),t.configure(),t._setAnimDuration()},a.addPaperToEnv=function(){var e=this.getFromEnv("chart-container"),t=new((0,u.getDep)("redraphael","plugin"))(e,this.getFromEnv("chartWidth"),this.getFromEnv("chartHeight"));t.setHTMLClassName("fusioncharts-div"),this.getFromEnv("animationManager").addToEnv("paper",t)},a.setNodePath=function(e,t,a){this.config.thickness=t,this.config.outerRadius=e/2,this.config.innerRadius=this.config.outerRadius-this.config.thickness,this.config.trackstartradius=a.trackstartradius,this.config.trackendradius=a.trackendradius,this.manageSpace()},a.manageSpace=function(){var e,t=this.getFromEnv("chartConfig"),a=this.config,o=this.getLinkedParent(),r=t.canvasLeft,i=t.canvasTop,l=r+t.canvasWidth/2,c=i+t.canvasHeight/2,u=(0,n.changeAngleBase)(a.startingAngle),d=(0,n.changeAngleBase)(a.endingAngle),h=u===d?d-.1:d,f=(0,n.findArc)(u,h),m=parseInt(a.trackstartradius,10)/100*(a.thickness/2),v=parseInt(a.trackendradius,10)/100*(a.thickness/2),b=a.thickness-o.config.labelpadding.top-o.config.labelpadding.bottom,k=parseInt(f/(o.config.tickvaluefontsize/(2*Math.PI*o.config.outerradius)*360)/2,10);b=e=b<5?a.thickness:b,(e=e*parseInt(o.config.iconscale,10)/100)>=Math.abs(a.outerRadius-a.innerRadius)&&(e=Math.abs(a.outerRadius-a.innerRadius)),e=e<0?Math.abs(a.outerRadius-a.innerRadius):e,a.numTicks=parseInt(a.numTicks,10),isNaN(a.numTicks)?a.numTicks=k>10?10:k:a.numTicks=a.numTicks>k?k:a.numTicks,e="end"===o.config.iconposition?e/2+10:e+10,a.iconAngle=e/(2*Math.PI*(a.outerRadius-a.thickness/2))*360,a.iconAngle=o.config.showlabelicon?a.iconAngle:0,a.plotIdentifierAngle=o.config.labeltext.toLowerCase().indexOf("$plotidentifier")>-1?(b+1)/(2*Math.PI*(a.outerRadius-a.thickness))*360:0,a.paddingAngle=o.config.labelpadding.left/(2*Math.PI*(a.outerRadius-a.thickness/2))*360,a.labelPath={start:{start:p(u+a.paddingAngle+a.iconAngle+a.plotIdentifierAngle,h,f,a.outerRadius-a.thickness/2,l,c,a.thickness),end:p(u+a.paddingAngle+a.plotIdentifierAngle,h,f,a.outerRadius-a.thickness/2,l,c,!0)},end:{start:p(h-a.paddingAngle-a.iconAngle-a.plotIdentifierAngle,u,f,a.outerRadius-a.thickness/2,l,c,!1),end:p(h-a.paddingAngle-a.plotIdentifierAngle,u,f,a.outerRadius-a.thickness/2,l,c,!1)}},a.arcLength=f/360*(2*Math.PI*(a.outerRadius-a.thickness/2)),a.path_d=function(e,t,a,o,r,i,l,c,u,d,h){u>0&&360!==a&&(e+=(0,n.radiansInAngle)(u,r+u)),d>0&&360!==a&&(t-=(0,n.radiansInAngle)(d,r+d));var p=(0,n.normaliseAngle)(e),f=(0,n.normaliseAngle)(t),m=(0,n.pointOnCircleFromCenter)(i,l,o,p),v=m.x,b=m.y,k=(0,n.pointOnCircleFromCenter)(i,l,o,f),C=k.x,x=k.y,w=(0,n.pointOnCircleFromCenter)(i,l,r,p),T=w.x,y=w.y,S=(0,n.pointOnCircleFromCenter)(i,l,r,f),A=S.x,F=S.y;return v=(0,s.toPrecision)(v,4),b=(0,s.toPrecision)(b,4),C=(0,s.toPrecision)(C,4),x=(0,s.toPrecision)(x,4),T=(0,s.toPrecision)(T,4),y=(0,s.toPrecision)(y,4),A=(0,s.toPrecision)(A,4),F=(0,s.toPrecision)(F,4),["M",v,b,g,o,o,0,a<=180?0:1,h?1:0,C,x,d>0&&360!==a?"A, "+c/2+", "+d+", 0, 1, 1, "+A+", "+F:"L, "+A+", "+F,g,r,r,0,a<=180?0:1,h?0:1,T,y,u>0&&360!==a?"A, "+u+", "+c/2+", 0, 1, 1, "+v+", "+b:"","Z"]}(u,h,f,a.outerRadius,a.innerRadius,l,c,a.thickness,m,v,!0)},a.allocatePosition=function(){return!1},a.checkInvalidData=function(){return!1},a.checkInvalidSpecificData=function(){return!1},a.draw=function(){this.addGraphicalElement({el:"path",attr:{path:this.config.path_d,fill:this.config.trackfillcolor,stroke:this.config.trackbordercolor,"stroke-width":this.config.trackborderthickness,"stroke-opacity":this.config.trackborderalpha,"stroke-dasharray":"dashed"===this.config.trackborder?5:s.UNDEF,"fill-opacity":this.config.trackalpha},container:{id:"node-container",isParent:!0},label:"track",component:this}),this.config.isLast&&this.drawTicks()},a.drawTicks=function(){var e,t,a,o,r,i=this,l=this.getFromEnv("chartConfig"),s=l.canvasLeft,c=l.canvasTop,u=s+l.canvasWidth/2,d=c+l.canvasHeight/2,h=(0,n.changeAngleBase)(this.config.startingAngle),g=(0,n.changeAngleBase)(this.config.endingAngle),p=(0,n.findArc)(h,h===g?g-.1:g)/this.config.numTicks,f=100/this.config.numTicks,m=[];h===g&&(this.config.numTicks-=1);for(var v=0;v<=this.config.numTicks;v++)a=(0,n.normaliseAngle)(h)+v*p,r=this.config.outerRadius+this.config.tickMarkLength+this.config.tickvaluegap,o=(0,n.pointOnCircleFromCenter)(u,d,r,a),this.config.showtickvalues&&m.push(o),t=(0,n.pointOnCircleFromCenter)(u,d,this.config.outerRadius+this.config.tickMarkLength,a),e=(0,n.pointOnCircleFromCenter)(u,d,this.config.outerRadius,a),this.config.showtickmarks&&this.config.showticks&&this.addGraphicalElement({el:"path",attr:{path:"M "+e.x+" "+e.y+" L "+t.x+" "+t.y+" Z",stroke:this.config.tickmarkcolor,"stroke-width":this.config.tickmarkthickness/2,"stroke-opacity":this.config.tickalpha},container:{id:"ticks-container",isParent:!0},label:"tick",component:this});this.config.showtickvalues&&this.config.showticks&&m.forEach((function(e,t){a=(a=(0,n.changeAngleBase)((0,n.normaliseAngle)(h)+t*p))<0?360+a:a,a%=360,i.addGraphicalElement({el:"text",attr:{text:Math.round(t*f)+"%",x:e.x,y:e.y,fill:i.config.tickvaluefontcolor,"font-family":i.config.tickvaluelabelfont,"font-size":i.computeFontSize(i.config.tickvaluefontsizeWithUnit),opacity:i.config.tickvaluealpha,"text-anchor":a>180?"end":"start"},container:{id:"ticks-container",isParent:!0},label:"label",component:i})}))},t}(l.SmartRenderer),m=f;t["default"]=m},1543:(e,t,a)=>{var o=a(269);t.__esModule=!0,t["default"]=void 0;var r=o(a(288)),i=o(a(617)),l=a(1540),n=function(e){function t(){return e.apply(this,arguments)||this}(0,r["default"])(t,e);var a=t.prototype;return a._realTimeConfigure=function(e){l._realTimeConfigure.call(this,e)},a.getType=function(){return"dataset"},a.getName=function(){return"realTimeArea"},t}(i["default"]);n.prototype.resetCatPos=l.resetCatPos;var s=n;t["default"]=s},1541:(e,t,a)=>{var o=a(269);t.__esModule=!0,t["default"]=void 0;var r={"initial.dataset.realtimeColumn":o(a(599))["default"]["initial.dataset.column"]};t["default"]=r},1540:(e,t,a)=>{var o=a(269);t.__esModule=!0,t["default"]=t.resetCatPos=t._realTimeConfigure=void 0;var r=o(a(288)),i=o(a(595)),l=a(282),n=o(a(1541));(0,l.addDep)({name:"realtimeColumnAnimation",type:"animationRule",extension:n["default"]});var s=function(e){function t(){return e.apply(this,arguments)||this}(0,r["default"])(t,e);var a=t.prototype;return a._realTimeConfigure=function(e){var t,a=this,o=a.getFromEnv("chart"),r=a.components.data,i=[],l=o.config.realTimeConfig.numDisplaySets;(t=e?0:Math.min(a.getFromEnv("xAxis").getTicksLen(),r&&r.length))<l?(i.length=l-t,a.components.data=i.concat(r)):t>l&&a.components.data.splice(l,t-l),a.resetCatPos&&a.resetCatPos()},a.getType=function(){return"dataset"},a.getName=function(){return"realtimeColumn"},a.resetCatPos=function(){var e,t=this.components.data,a=t.length;if(t&&a)for(e=0;e<a;e++)t[e]&&t[e].config&&(t[e].config._x=e)},t}(i["default"]),c=s.prototype._realTimeConfigure,u=s.prototype.resetCatPos;t.resetCatPos=u,t._realTimeConfigure=c;var d=s;t["default"]=d},1547:(e,t,a)=>{var o=a(269);t.__esModule=!0,t["default"]=void 0;var r=o(a(288)),i=o(a(616)),l=a(1540),n=function(e){function t(){return e.apply(this,arguments)||this}(0,r["default"])(t,e);var a=t.prototype;return a._realTimeConfigure=function(e){l._realTimeConfigure.call(this,e)},a.getType=function(){return"dataset"},a.getName=function(){return"realtimeLine"},t}(i["default"]);n.prototype.resetCatPos=l.resetCatPos;var s=n;t["default"]=s},1535:(e,t,a)=>{var o=a(269);t.__esModule=!0,t["default"]=void 0;var r={"initial.dataset.sparkColumn":o(a(599))["default"]["initial.dataset.column"]};t["default"]=r},1534:(e,t,a)=>{var o=a(269);t.__esModule=!0,t["default"]=void 0;var r,i=o(a(288)),l=a(274),n=a(282),s=o(a(595)),c=o(a(1535)),u=Math.min;(0,n.addDep)({name:"sparkcolumnAnimation",type:"animationRule",extension:c["default"]});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"dataset"},a.getName=function(){return"sparkColumn"},a.parseAttributes=function(){e.prototype.parseAttributes.call(this);var t=this,a=t.getFromEnv("chart"),o=t.config,r=t.config.JSONData,i=a.getFromEnv("chart-attrib");o.showValues=(0,l.pluckNumber)(r.showvalues,i.showvalues,0)},a._setConfigure=function(t){var a,o,i,n,s,c,d,h,g,p,f,m,v,b,k,C,x,w,T,y,S,A,F,N,E,L,D,M,R,_,I,V,O=this,P=O.getFromEnv("chart"),G=P.getFromEnv("dataSource").chart,B=O.config,H=P.config,W=O.config.JSONData,z=t||W.data,j=z&&z.length,U=O.getFromEnv("xAxis").getTicksLen(),X=t&&t.data.length||u(U,j),K=H.plothovereffect,Y=O.getFromEnv("color-manager"),J=H.useroundedges;for(B.plotgradientcolor=l.BLANKSTRING,B.showvalues=(0,l.pluckNumber)(W.showvalues,G.showvalues,0),B.showShadow=(0,l.pluckNumber)(G.showshadow,0),e.prototype._setConfigure.call(this),_=O.components.data,I=B.maxValue,V=B.minValue,a=(0,l.pluck)(G.plotfillcolor,Y.getColor("plotFillColor")),m=(0,l.pluck)(G.plotfillalpha,l.HUNDREDSTRING),v=(0,l.pluck)(G.plotborderalpha,l.HUNDREDSTRING),b=(0,l.pluck)(G.plotbordercolor,a),k=(0,l.pluck)(G.highcolor,"000000"),C=(0,l.pluck)(G.lowcolor,"000000"),x=(0,l.pluck)(G.highbordercolor,G.plotbordercolor,k),w=(0,l.pluck)(G.lowbordercolor,G.plotbordercolor,C),D=0;D<X;D++){if(F=z[D],null,o=a,i=b,(f=(N=_[D]).config).setValue===I&&(o=k,i=x,T=f.displayValue),N.config.setValue===V&&(o=C,i=w,y=f.displayValue),f.originalPlotColor=(0,l.hashify)(o),f.plotbordercolor=i,f.colorArr=E=(0,l.getColumnColor)(o+l.COMMASTRING+B.plotgradientcolor,m,"0","90",J,i,v,0,0),0!==K&&E){for(s=c=r,f.setValue===I&&(s=G.highhovercolor,c=G.highhoveralpha),N.config.setValue===V&&(s=G.lowhovercolor,c=G.lowhoveralpha),M=(s=(s=n=(0,l.pluck)(F.hovercolor,W.hovercolor,s,G.plotfillhovercolor,G.columnhovercolor,E[0].FCcolor.color)).split(/\s{0,},\s{0,}/)).length,R=0;R<M;R++)s[R]=(0,l.getLightColor)(s[R],70);s=s.join(","),c=(0,l.pluck)(F.hoveralpha,W.hoveralpha,c,G.plotfillhoveralpha,G.columnhoveralpha,m),f.hoverColor=n,f.hoverAlpha=c,!(d=(0,l.pluck)(F.hovergradientcolor,W.hovergradientcolor,G.plothovergradientcolor,B.plotgradientcolor))&&(d=l.BLANKSTRING),h=(0,l.pluck)(F.borderhovercolor,W.borderhovercolor,G.plotborderhovercolor,B.plotbordercolor),g=(0,l.pluck)(F.borderhoveralpha,W.borderhoveralpha,G.plotborderhoveralpha,G.plotfillhoveralpha,v,m),1===K&&s===E[0].FCcolor.color&&(s=(0,l.getLightColor)(s,70)),L=(0,l.getColumnColor)(s+l.COMMASTRING+d,c,"0","90",J,h,g.toString(),0,0),f.setRolloutAttr={fill:(0,l.toRaphaelColor)(E[0]),stroke:p,"stroke-width":p},f.setRolloverAttr={fill:(0,l.toRaphaelColor)(L[0]),stroke:p,"stroke-width":p}}f._x=D,f._y=f.setValue}for(D=0;D<X;D++){var q=_[D].config;q.setTooltext!==r&&(S=[56,57,60,61],A={highValue:T,highDataValue:T,lowValue:y,lowDataValue:y},q.toolText=(0,l.parseTooltext)(q.setTooltext,S,A,F,G,W),q.finalTooltext=q.setTooltext=q.toolText)}},t}(s["default"]),h=d;t["default"]=h},1528:(e,t,a)=>{var o=a(269);t.__esModule=!0,t["default"]=void 0;var r={"*.dataset.sparkLine":o(a(619))["default"]["*.dataset.line"]};t["default"]=r},1527:(e,t,a)=>{var o=a(269);t.__esModule=!0,t["default"]=void 0;var r,i=o(a(288)),l=a(274),n=o(a(616)),s=a(282),c=o(a(1528)),u=function(){var e,t,a,o,r,i,n,s=this,c=s.getFromEnv("chart"),u=c.config,d=u.dataLabelStyle,h=u.valuepadding+2,g=s.getContainer("labelGroup"),p=s.getFromEnv("animationManager"),f=s.getGraphicalElement("closeValue"),m=s.getGraphicalElement("openValue"),v=s.getGraphicalElement("startBraces"),b=s.getGraphicalElement("highValue"),k=s.getGraphicalElement("separator"),C=s.getGraphicalElement("lowValue"),x=s.getGraphicalElement("endBraces"),w=u.sparkValues||(u.sparkValues={}),T=s.getFromEnv("smartLabel"),y="[",S="]",A="|",F={"class":"fusioncharts-label","text-anchor":l.POSITION_END,fill:d.color,"font-size":d.fontSize,"font-weight":d.fontWeight,"font-style":d.fontStyle,"font-family":d.fontFamily,visibility:"visible"},N={x:0,y:0};c.getChildContainer("datalabelsGroup").attr({"clip-rect":null}),N.y=.5*u.canvasHeight+u.canvasTop,N.x=u.canvasLeft-h,(w.openValue&&w.openValue.label||t)&&(t=p.setAnimation({el:m||"text",state:"appearing",container:g,attr:{text:w.openValue.label,x:N.x,y:N.y,fill:w.openValue.color||F.fill,"text-anchor":l.POSITION_END,"line-height":d.lineHeight,"text-bound":[d.backgroundColor,d.borderColor,d.borderThickness,d.borderPadding,d.borderRadius,d.borderDash],visibility:"visible"},label:"label",component:s}),m||s.addGraphicalElement("openValue",t)),F["text-anchor"]=l.POSITION_START,N.x=u.canvasWidth+u.canvasLeft+h,(w.closeValue&&w.closeValue.label||e)&&(e=p.setAnimation({el:f||"text",container:g,state:"appearing",attr:{text:w.closeValue.label,x:N.x,y:N.y,fill:w.closeValue.color||F.fill,"text-anchor":l.POSITION_START,"line-height":d.lineHeight,"text-bound":[d.backgroundColor,d.borderColor,d.borderThickness,d.borderPadding,d.borderRadius,d.borderDash],visibility:"visible"},label:"label",component:s}),f||s.addGraphicalElement("closeValue",e),N.x+=w.closeValue.smartObj&&w.closeValue.smartObj.width+2+h||0),(w.highLowValue&&w.highLowValue.label||o)&&(w.highLowValue&&w.highLowValue.label===l.BLANKSTRING&&(A=y=S=l.BLANKSTRING),T.useEllipsesOnOverflow(u.useEllipsesWhenOverflow),T.setStyle(d),a=p.setAnimation({el:v||"text",state:"appearing",container:g,attr:{text:y,x:N.x,y:N.y,"text-anchor":l.POSITION_START,visibility:"visible"},label:"label",component:s}),v||s.addGraphicalElement("startBraces",a),N.x+=T.getSmartText(y).width,o=p.setAnimation({el:b||"text",state:"appearing",container:g,attr:{text:w.highValue.label,x:N.x,y:N.y,"text-anchor":l.POSITION_START,fill:w.highValue.color||F.fill,visibility:"visible"},label:"label",component:s}),b||s.addGraphicalElement("highValue",o),N.x+=T.getSmartText(w.highValue.label).width,r=p.setAnimation({el:k||"text",state:"appearing",container:g,attr:{text:A,x:N.x,y:N.y,"text-anchor":l.POSITION_START,visibility:"visible"},label:"label",component:s}),k||s.addGraphicalElement("separator",r),N.x+=T.getSmartText(A).width,i=p.setAnimation({el:C||"text",container:g,state:"appearing",attr:{text:w.lowValue.label,x:N.x,y:N.y,"text-anchor":l.POSITION_START,fill:w.lowValue.color||F.fill,visibility:"visible"},label:"label",component:s}),C||s.addGraphicalElement("lowValue",i),N.x+=T.getSmartText(w.lowValue.label).width,n=p.setAnimation({el:x||"text",state:"appearing",container:g,attr:{text:S,x:N.x,y:N.y,"text-anchor":l.POSITION_START,visibility:"visible"},label:"label",component:s}),x||s.addGraphicalElement("endBraces",n)),s.labelDrawn=!0};(0,s.addDep)({name:"sparklineAnimation",type:"animationRule",extension:c["default"]});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"dataset"},a.getName=function(){return"sparkLine"},a.parseAttributes=function(){e.prototype.parseAttributes.call(this);var t=this,a=t.getFromEnv("chart"),o=t.config,r=t.config.JSONData,i=a.getFromEnv("chart-attrib");o.showValues=(0,l.pluckNumber)(r.showvalues,i.showvalues,0),o.linethickness=(0,l.pluckNumber)(r.linethickness,i.linethickness,1)},a._setConfigure=function(t){e.prototype._setConfigure.call(this);var a,o,i,n,s,c,u,d,h,g,p,f,m,v,b,k,C,x=this,w=x.getFromEnv("chart"),T=x.config,y=x.config.JSONData,S=w.getFromEnv("dataSource").chart,A=t||y.data,F=x.getFromEnv("xAxis"),N=t&&t.data.length||F.getTicksLen(),E=x.getFromEnv("color-manager"),L=w.config,D=(0,l.parseColor)((0,l.pluck)(S.opencolor,"0099FF")),M=(0,l.parseColor)((0,l.pluck)(S.closecolor,"0099FF")),R=(0,l.parseColor)((0,l.pluck)(S.highcolor,"00CC00")),_=(0,l.parseColor)((0,l.pluck)(S.lowcolor,"CC0000")),I=(0,l.parseColor)((0,l.pluck)(S.anchorcolor,E.getColor("plotFillColor"))),V=(0,l.pluckNumber)(S.showopenanchor,S.drawanchors,S.showanchors,1),O=(0,l.pluckNumber)(S.showcloseanchor,S.drawanchors,S.showanchors,1),P=(0,l.pluckNumber)(S.showhighanchor,S.drawanchors,S.showanchors,1),G=(0,l.pluckNumber)(S.showlowanchor,S.drawanchors,S.showanchors,1),B=(0,l.pluckNumber)(S.anchoralpha,100),H=(0,l.pluckNumber)(S.drawanchors,S.showanchors,0)?(0,l.pluckNumber)(S.anchoralpha,100):0,W=(0,l.pluck)(S.linecolor,E.getColor("plotFillColor"));for(i=x.components.data,d=T.maxValue,h=T.minValue,T.shadow={opacity:(0,l.pluckNumber)(S.showshadow,0)?T.alpha/100:0},(n=(o=i[0]).config).anchorProps.bgColor=(0,l.pluck)(o.anchorbgcolor,D),n.anchorProps.enabled=!!V,n.anchorProps.bgAlpha=V?g:0,n.anchorProps.enabled&&n.hoverEffects&&(n.hoverEffects.anchorColor=(0,l.pluck)(S.openhovercolor,S.anchorhovercolor,S.plotfillhovercolor,(0,l.getLightColor)(D,70)),n.hoverEffects.anchorBgAlpha=(0,l.pluckNumber)(S.openhoveralpha,S.anchorhoveralpha,S.plotfillhoveralpha,100)),m=n.displayValue,(n=(o=i[N-1]).config).anchorProps.bgColor=(0,l.pluck)(o.anchorbgcolor,M),n.anchorProps.enabled=!!O,n.anchorProps.bgAlpha=O?g:0,n.anchorProps.enabled&&n.hoverEffects&&(n.hoverEffects.anchorColor=(0,l.pluck)(S.closehovercolor,S.anchorhovercolor,S.plotfillhovercolor,(0,l.getLightColor)(M,70)),n.hoverEffects.anchorBgAlpha=(0,l.pluckNumber)(S.closehoveralpha,S.anchorhoveralpha,S.plotfillhoveralpha,100)),k=n.displayValue,s=0;s<N;s++)n=(o=i[s]).config,a=A[s],g=(0,l.pluckNumber)(a.anchorbgalpha,B),T.maxRadius=-Infinity,0!==s&&s!==N-1&&(n.anchorProps.bgColor=(0,l.pluck)(a.anchorbgcolor,I),n.anchorProps.bgAlpha=(0,l.pluckNumber)(a.anchorbgalpha,H),n.hoverEffects.anchorColor=(0,l.parseColor)((0,l.pluck)(S.anchorhovercolor,S.plotfillhovercolor,(0,l.getLightColor)(W,70))),n.hoverEffects.anchorBgAlpha=(0,l.pluckNumber)(S.lowhoveralpha,S.anchorhoveralpha,S.plotfillhoveralpha,100)),n.dataLabelStyle=x._configureDataLabelStyle(a),n.anchorProps.radius=(0,l.pluckNumber)(S.anchorradius,a.anchorradius,2),n.anchorProps.borderThickness=0,n.hoverEffects.anchorBorderThickness=0,n.hoverEffects.anchorRadius=(0,l.pluckNumber)(S.anchorhoverradius,S.anchorradius,a.anchorradius,3),T.maxRadius=Math.max(n.anchorProps.radius+n.anchorProps.borderThickness/2,T.maxRadius),n.setValue===h&&(n.anchorProps.bgColor=(0,l.pluck)(a.anchorbgcolor,_),n.hoverEffects.anchorColor=(0,l.pluck)(S.lowhovercolor,S.anchorhovercolor,S.plotfillhovercolor,(0,l.getLightColor)(_,70)),n.hoverEffects.anchorBgAlpha=(0,l.pluckNumber)(S.lowhoveralpha,S.anchorhoveralpha,S.plotfillhoveralpha,100),n.anchorProps.enabled=!!G,n.anchorProps.bgAlpha=G?g:0,f=n.displayValue),n.setValue===d&&(n.anchorProps.bgColor=(0,l.pluck)(a.anchorbgcolor,R),n.hoverEffects.anchorColor=(0,l.pluck)(S.highhovercolor,S.anchorhovercolor,S.plotfillhovercolor,(0,l.getLightColor)(R,70)),n.hoverEffects.anchorBgAlpha=(0,l.pluckNumber)(S.highhoveralpha,S.anchorhoveralpha,S.plotfillhoveralpha,100),n.anchorProps.enabled=!!P,n.anchorProps.bgAlpha=P?g:0,p=n.displayValue),(C=n.setValue)!==r&&null!==C&&(u=1),n._x=s,n._y=n.setValue;for(c=L.sparkValues={openValue:{color:D},closeValue:{color:M},highValue:{color:R},lowValue:{color:_},highLowValue:{}},u&&(c.openValue.label=(0,l.pluckNumber)(S.showopenvalue,1)?m:l.BLANKSTRING,c.closeValue.label=(0,l.pluckNumber)(S.showclosevalue,1)?k:l.BLANKSTRING,(0,l.pluckNumber)(S.showhighlowvalue,1)&&(c.highLowValue.label="["+p+" | "+f+"]",c.highValue.label=p,c.lowValue.label=f)),s=0;s<N;s++){var z=i[s].config;z.setTooltext!==r&&(v=[54,55,56,57,58,59,60,61],b={openValue:c.openValue.label,openDataValue:c.openValue.label,closeValue:c.closeValue.label,closeDataValue:c.closeValue.label,highValue:c.highValue.label,highDataValue:c.highValue.label,lowValue:c.lowValue.label,lowDataValue:c.lowValue.label},z.toolText=(0,l.parseTooltext)(z.setTooltext,v,b,a,S,y),z.finalTooltext=z.setTooltext=z.toolText)}},a.draw=function(){e.prototype.draw.call(this),this._drawSparkValues()},a._drawSparkValues=function(){u.call(this)},t}(n["default"]),h=d;t["default"]=h},1531:(e,t,a)=>{var o=a(269);t.__esModule=!0,t["default"]=void 0;var r={"initial.dataset.sparkWinLoss":o(a(599))["default"]["initial.dataset.column"]};t["default"]=r},1530:(e,t,a)=>{var o=a(269);t.__esModule=!0,t["default"]=void 0;var r,i=o(a(288)),l=a(274),n=o(a(595)),s=a(282),c=o(a(1531)),u=Math,d=u.min,h=u.max,g=function(){var e=this,t=e.getFromEnv("chart"),a=t.config,o=a.dataLabelStyle,r=a.valuepadding+2,i=e.getContainer("labelGroup"),n=a.sparkValues||(a.sparkValues={}),s=e.getGraphicalElement("closeValue"),c=e.getFromEnv("animationManager"),u={"class":"fusioncharts-label","text-anchor":l.POSITION_END,fill:o.color,"font-size":o.fontSize,"font-weight":o.fontWeight,"font-style":o.fontStyle,"font-family":o.fontFamily,visibility:"visible"},d={x:0,y:0};t.getChildContainer("datalabelsGroup").attr({"clip-rect":null}),d.y=.5*a.canvasHeight+a.canvasTop,u["text-anchor"]=l.POSITION_START,d.x=a.canvasWidth+a.canvasLeft+r,n.closeValue&&n.closeValue.label&&(e.addGraphicalElement("closeValue",c.setAnimation({el:s||"text",attr:{text:n.closeValue.label,x:d.x,y:d.y,fill:n.closeValue.color||u.fill,"text-anchor":l.POSITION_START,"line-height":o.lineHeight,"text-bound":[o.backgroundColor,o.borderColor,o.borderThickness,o.borderPadding,o.borderRadius,o.borderDash],visibility:"visible"},container:i,component:e,label:"text"})),d.x+=n.closeValue.smartObj&&n.closeValue.smartObj.width+2+r||0),e.labelDrawn=!0};(0,s.addDep)({name:"sparkwinlossAnimation",type:"animationRule",extension:c["default"]});var p=function(e){function t(){var t;return(t=e.call(this)||this).drawLabel=g,t}(0,i["default"])(t,e);var a=t.prototype;return a.getType=function(){return"dataset"},a.getName=function(){return"sparkWinLoss"},a._setConfigure=function(t,a){var o,i,n,s,c,u,g,p,f,m,v,b,k,C,x,w,T,y,S,A,F,N,E,L,D,M,R,_,I,V,O,P=this,G=P.getFromEnv("chart"),B=G.config,H=P.config,W=P.config.JSONData,z=t||W.data,j=z&&z.length,U=P.getFromEnv("xAxis"),X=U.getTicksLen(),K=t&&t.data.length||d(X,j),Y=G.getFromEnv("dataSource").chart,J=P.getFromEnv("color-manager"),q=P.index||P.positionIndex,Z=B.showplotborder,$=H.plotColor=J.getPlotColor(q),Q=(0,l.pluck)(Y.plotfillcolor,J.getColor("plotFillColor")),ee=(0,l.pluck)(Y.wincolor,J.getColor("winColor")),te=(0,l.pluck)(Y.losscolor,J.getColor("lossColor")),ae=(0,l.pluck)(Y.drawcolor,J.getColor("drawColor")),oe=(0,l.pluck)(Y.scorelesscolor,J.getColor("scorelessColor")),re=Y.winhovercolor,ie=Y.losshovercolor,le=Y.drawhovercolor,ne=Y.scorelesshovercolor,se=0,ce=0,ue=0,de=B.plotborderthickness,he=B.isroundedges,ge=B.plothovereffect,pe=H.plotfillangle,fe=H.plotBorderDashStyle,me=P.components.data,ve=G.isBar,be=G.is3D,ke=H.maxValue||-Infinity,Ce=H.minValue||+Infinity;for(me||(me=P.components.data=[]),e.prototype._setConfigure.call(this),H.plotgradientcolor=l.BLANKSTRING,V=H.showPlotBorder=(0,l.pluckNumber)(Y.showplotborder,H.usePattern?1:0),H.plotborderalpha=u=V?(0,l.pluck)(Y.plotborderalpha,s,l.HUNDREDSTRING):0,H.showTooltip=0,B.showtooltip=0,I=0;I<K;I++){switch(t?(p=t&&t.data[I],m=a!==r?me[O=a+I]:me[O=me.length-K+I]):(m=me[I],p=z[I]),v=m&&m.config,m||(m=me[I]={}),m.config||(v=me[I].config={}),(p.value||"").toLowerCase()){case"w":$=(0,l.pluck)(p.color,ee,Q),k=(0,l.pluck)(p.hovercolor,re,$),v.setValue=f=1,se+=1;break;case"l":$=(0,l.pluck)(p.color,te,Q),k=(0,l.pluck)(p.hovercolor,ie,$),v.setValue=f=-1,ce+=1;break;case"d":$=(0,l.pluck)(p.color,ae,Q),k=(0,l.pluck)(p.hovercolor,le,$),v.setValue=f=.1,ue+=1;break;default:v.setValue=f=null}1===Number(p.scoreless)&&($=(0,l.pluck)(p.color,oe,Q),k=(0,l.pluck)(p.hovercolor,ne,p.color,oe,k)),v.originalPlotColor=(0,l.hashify)($),v.toolText=!1,v.setLink=(0,l.pluck)(p.link),v.setDisplayValue=(0,l.parseUnsafeString)(p.displayvalue),M=(0,l.pluckNumber)(p.dashed),R=(0,l.pluckNumber)(p.dashlen,i),_=n=(0,l.pluckNumber)(p.dashgap,H.plotDashGap),null!==f&&(ke=h(ke,f),Ce=d(Ce,f)),v.plotBorderDashStyle=g=1===M?(0,l.getDashStyle)(R,_):0===M?"none":fe,s=(0,l.pluck)(p.alpha,H.plotfillalpha),u=(0,l.pluck)(p.alpha,H.plotborderalpha,s).toString(),f<0&&!he&&(o=H.plotfillAngle,pe=ve?180-pe:360-pe),v.plotbordercolor=H.usePattern&&!Y.plotbordercolor?$:H.plotbordercolor,v.colorArr=b=(0,l.getColumnColor)($+","+H.plotgradientcolor,s,c=H.plotfillratio,pe,he,v.plotbordercolor,u,ve?1:0,!!be),v.label=(0,l.getValidValue)((0,l.parseUnsafeString)(U.getLabel((0,l.pluckNumber)(O-K,I)).label)),0!==ge&&(k=(0,l.pluck)(p.hovercolor,W.hovercolor,Y.plotfillhovercolor,Y.columnhovercolor,$),C=(0,l.pluck)(p.hoveralpha,W.hoveralpha,Y.plotfillhoveralpha,Y.columnhoveralpha,s),!(x=(0,l.pluck)(p.hovergradientcolor,W.hovergradientcolor,Y.plothovergradientcolor,H.plotgradientcolor))&&(x=""),w=(0,l.pluck)(p.hoverratio,W.hoverratio,Y.plothoverratio,c),T=(0,l.pluckNumber)(360-p.hoverangle,360-W.hoverangle,360-Y.plothoverangle,pe),y=(0,l.pluck)(p.borderhovercolor,W.borderhovercolor,Y.plotborderhovercolor,H.plotbordercolor),S=(0,l.pluck)(p.borderhoveralpha,W.borderhoveralpha,Y.plotborderhoveralpha,u,s),A=(0,l.pluckNumber)(p.borderhoverthickness,W.borderhoverthickness,Y.plotborderhoverthickness,de),F=(0,l.pluckNumber)(p.borderhoverdashed,W.borderhoverdashed,Y.plotborderhoverdashed),N=(0,l.pluckNumber)(p.borderhoverdashgap,W.borderhoverdashgap,Y.plotborderhoverdashgap,i),E=(0,l.pluckNumber)(p.borderhoverdashlen,W.borderhoverdashlen,Y.plotborderhoverdashlen,n),L=F?(0,l.getDashStyle)(E,N):g,v.hoverColor=k,1===ge&&k===$&&(k=(0,l.getLightColor)(k,70)),D=(0,l.getColumnColor)(k+","+x,C,w,T,he,y,S.toString(),ve?1:0,!!be),v.setRolloutAttr={fill:be?[(0,l.toRaphaelColor)(b[0]),!B.use3dlighting]:(0,l.toRaphaelColor)(b[0]),stroke:Z&&(0,l.toRaphaelColor)(b[1]),"stroke-width":de,"stroke-dasharray":g},v.setRolloverAttr={fill:be?[(0,l.toRaphaelColor)(D[0]),!B.use3dlighting]:(0,l.toRaphaelColor)(D[0]),stroke:Z&&(0,l.toRaphaelColor)(D[1]),"stroke-width":A,"stroke-dasharray":L}),o&&(pe=o),O++,v._x=I,v._y=f}H.maxValue=1,H.minValue=-1,1===(0,l.pluckNumber)(Y.showvalue,1)?(B.sparkValues={closeValue:{}},B.sparkValues.closeValue.label=se+"-"+ce+(ue>0?"-"+ue:l.BLANKSTRING)):B.sparkValues=r},t}(n["default"]);t["default"]=p},1523:(e,t,a)=>{t.__esModule=!0,t["default"]=void 0;var o=a(274),r=[{initialAttr:function(){return{opacity:0}},finalAttr:function(){return{opacity:1}}}],i=function(){return r[0].slot=o.FINALSTR,r},l=function(){return r[0].slot=o.INITIALSTR,r},n=function(){return r[0].slot=o.FINALSTR,r},s={"initial.dataset.thermometer":function(){var e=this.config;return{"plot.appearing":function(t){var a=t.attr.path.slice(0);return a[13]=a[15]=e.thmBaseY,[{initialAttr:{opacity:0},finalAttr:{opacity:1},slot:"initial"},{initialAttr:{path:a},finalAttr:{opacity:1},slot:"middle"}]},"plot.updating":null,"text.appearing":i,"text.updating":null,"labelGroup.appearing":n,"labelGroup.updating":null,"path.appearing":l,"path.updating":null}}};t["default"]=s},1522:(e,t,a)=>{var o=a(269);t.__esModule=!0,t["default"]=void 0;var r=o(a(288)),i=a(274),l=a(282),n=o(a(1523)),s=o(a(1494)),c=i.preDefStr.configStr,u=i.preDefStr.POSITION_TOP,d=i.preDefStr.POSITION_MIDDLE,h="60,0",g="100%",p="0,100",f="M",m="A",v="L",b="Z",k=window,C=k.navigator.userAgent,x="rgba(192,192,192,"+(/msie/i.test(C)&&!k.opera?.002:1e-6)+")";(0,l.addDep)({name:"thermometerAnimation",type:"animationRule",extension:n["default"]});var w=function(e){function t(){var t;return(t=e.call(this)||this).addData=i.stubFN,t.removeData=i.stubFN,t}(0,r["default"])(t,e);var a=t.prototype;return a.getName=function(){return"thermometer"},a.getType=function(){return"dataset"},a._manageSpace=function(){var e,t,a,o,r,l=this,n=l.config,s=l.getFromEnv("chart").config,c=s.width,u=s.height,d=s.canvasWidth,h=s.canvasHeight,g=s.canvasLeft,p=s.canvasRight,f=s.canvasTop,m=s.xDefined,v=s.yDefined,b=s.rDefined,k=s.hDefined,C=s.thmOriginX,x=s.thmOriginY,w=s.thmBulbRadius,T=s.thmHeight,y=function(e,t,a,o){var r=t,l=e;return r=(0,i.pluckNumber)(r,o),l=(0,i.pluckNumber)(l,a),r&&l?l/a==r/o?a/l:Math.min(a/l,o/r):1}(s.origW,s.origH,c,u),S=0,A=0,F=0,N=0;return s.dataLabelStyle.fontSize=this.computeFontSize(s.dataLabelStyle.fontSizeWithUnit),h-=o=l._getLabelSpace(),A+=o,b?w*=y:(w=Math.min(d/2,.13*(0,i.pluckNumber)(T,h)),b=!0),s.effectiveR=w,t=2*(e=.643*w),a=1.766*w,S+=e,f+=e,h-=e,m?r=(C*=y)-e-g:(r=(p-g)/2-e)+t>d&&(r=d-t),F+=r,g+=r,N+=(d-=r)-t,v&&(x*=y),k?(T*=y,v?S+=x-T-f:x=f+T):v?T=x-f:x=f+(T=Math.max(h-a,3*w)),A+=f+h-x,n.thmBulbRadius=w,n.thmHeight=T,{top:S,bottom:A,left:F,right:N}},a.draw=function(){var e,t,a,o,r,l,n,s,k,C,w,T,y,S,A,F,N,E,L,D,M,R,_,I,V,O,P,G,B,H,W,z,j,U=this,X=U.config,K=U.getFromEnv("smartLabel"),Y=U.getFromEnv("chart"),J=Y.getChildContainer("datalabelsGroup"),q=Y.getChildContainer("trackerGroup"),Z=U.getFromEnv("toolTipController"),$=U.getFromEnv("scale"),Q=Y.getChildContainer().plotGroup,ee=Y.get(c),te=ee.canvasLeft,ae=ee.canvasTop,oe=ee.canvasHeight,re=ee.effectiveR||10,ie=.643*re,le=ee.use3DLighting,ne=te+ie,se=ae-ie,ce=oe,ue=Math.abs(ee.width-ee.canvasRight-te),de=se+ie,he=de+ce,ge=he+.766*re,pe=(0,i.pluckNumber)(X.value,$.getLimit().min),fe=.33*ie,me=se+fe,ve=$.getPixel(pe),be=.9*ie,ke=ie-fe,Ce=re+be-ie,xe=ne-ie,we=ne+ie,Te=ne-ke,ye=ne+ke,Se=ne-be,Ae=ne+be,Fe=parseInt(ne-.6*ie,10),Ne=ne+ie/2,Ee=X.thmBaseY=ge-Math.abs(Math.sqrt(Ce*Ce-be*be)),Le=U.getContainer("container"),De=U.getGraphicalElement("fluid"),Me=U.getGraphicalElement("topLightGlow"),Re=U.getGraphicalElement("topLight"),_e=U.getGraphicalElement("label"),Ie=U.getContainer("dataLabelContainer"),Ve=U.getGraphicalElement("canvasBorderElement"),Oe=U.getGraphicalElement("bulbBorderLight"),Pe=U.getGraphicalElement("bulbTopLight"),Ge=U.getGraphicalElement("bulbCenterLight"),Be=U.getContainer("trackerContainer"),He=U.getGraphicalElement("cylLeftLight"),We=U.getGraphicalElement("cylRightLight"),ze=U.getGraphicalElement("cylLeftLight1"),je=U.getGraphicalElement("cylRightLight1"),Ue=U.getGraphicalElement("hotElement"),Xe=(0,i.getDarkColor)(X.gaugeFillColor,le?70:80),Ke=X.gaugeFillAlpha,Ye=X.gaugeContainerColor,Je=(0,i.getDarkColor)(Ye,80),qe=(0,i.getLightColor)(Ye,80),Ze=X.gaugeBorderThickness,$e=X.gaugeBorderColor,Qe=X.showHoverEffect,et=X.plotFillHoverAlpha,tt=X.plotFillHoverColor,at=U.getFromEnv("animationManager"),ot=Y.config.dataLabelStyle,rt=X.fluidAttr;rt||(rt=X.fluidAttr={}),Qe&&(rt.hover={fill:(0,i.convertColor)((0,i.getDarkColor)(tt,le?70:80),et)}),rt.out={fill:(0,i.convertColor)(Xe,Ke)},D=[f,Te,se,m,fe,fe,0,0,0,xe,me,v,xe,he,m,re,re,0,1,0,we,he,v,we,me,m,fe,fe,0,0,0,ye,se,b],R={value:X.value,displayValue:X.displayValue,toolText:X.toolText,thmFillColor:X.gaugeFillColor,thmBulbRadius:X.thmBulbRadius,thmHeight:X.thmHeight,thmGlassColor:X.gaugeContainerColor,gaugeFillColor:X.gaugeFillColor,gaugeFillAlpha:X.gaugeFillAlpha,showGaugeBorder:X.showGaugeBorder,gaugeBorderColor:X.rawGaugeBorderColor,gaugeBorderThickness:X.gaugeBorderThickness,gaugeBorderAlpha:X.gaugeBorderAlpha},rt.out.path=[f,Se,Ee,m,Ce,Ce,0,1,0,Ae,Ee,v,Ae,ve,Se,ve,b],rt.out["stroke-width"]=0,_={"stroke-width":Ze,stroke:$e,path:D},I={path:[f,Se,de,v,Ae,de],stroke:(0,i.convertColor)(Xe,40)},V={path:D},r=at.setAnimation({el:Le||"group",attr:{name:"thermometer"},container:Q,component:U,label:"group"}),!Le&&U.addContainer("container",r),C=at.setAnimation({el:Ve||"path",attr:_,container:r,component:U,label:"path"}),!Ve&&U.addGraphicalElement("canvasBorderElement",C),l=at.setAnimation({el:De||"path",attr:rt.out,container:r,component:U,label:"plot"}),!De&&U.addGraphicalElement("fluid",l),s=at.setAnimation({el:Re||"path",attr:I,container:r,component:U,label:"path"}),!Re&&U.addGraphicalElement("topLight",s),le?(O={path:[f,Se,de,v,Ae,de,Ae,me,Se,me,b],"stroke-width":0,fill:(0,i.toRaphaelColor)({FCcolor:{color:Xe+i.COMMASTRING+Xe,alpha:"40,0",ratio:"0,80",radialGradient:!0,cx:.5,cy:1,r:"70%"}})},n=at.setAnimation({el:Me||"path",attr:O,container:r,component:U,label:"path"}),!Me&&U.addGraphicalElement("topLightGlow",n),P={path:M=[f,xe,he,m,re,re,0,0,1,we,he,m,re,re,0,0,0,xe,he,m,re,re,0,1,0,we,he,b],"stroke-width":0,fill:(0,i.toRaphaelColor)({FCcolor:{cx:.5,cy:.5,r:"50%",color:Je+i.COMMASTRING+qe,alpha:"0,50",ratio:"78,30",radialGradient:!0}})},w=at.setAnimation({el:Oe||"path",attr:P,container:r,component:U,label:"path"}),!Oe&&U.addGraphicalElement("bulbBorderLight",w),G={path:M,"stroke-width":0,fill:(0,i.toRaphaelColor)({FCcolor:{cx:.3,cy:.1,r:g,color:qe+i.COMMASTRING+Je,alpha:h,ratio:"0,30",radialGradient:!0}})},T=at.setAnimation({el:Pe||"path",attr:G,container:r,component:U,label:"path"}),!Pe&&U.addGraphicalElement("bulbTopLight",T),B={path:M,"stroke-width":0,fill:(0,i.toRaphaelColor)({FCcolor:{cx:.25,cy:.7,r:g,color:qe+i.COMMASTRING+Je,alpha:"80,0",ratio:"0,70",radialGradient:!0}})},y=at.setAnimation({el:Ge||"path",attr:B,container:r,component:U,label:"path"}),!Ge&&U.addGraphicalElement("bulbCenterLight",y),H={path:[f,ne,se,v,Te,se,m,fe,fe,0,0,0,xe,me,v,xe,he,ne,he,b],"stroke-width":0,fill:(0,i.toRaphaelColor)({FCcolor:{color:qe+i.COMMASTRING+Je,alpha:"50,0",ratio:"0,80",angle:0}})},A=at.setAnimation({el:He||"path",attr:H,container:r,component:U,label:"path"}),!He&&U.addGraphicalElement("cylLeftLight",A),W={path:[f,xe,se,v,ye,se,m,fe,fe,0,0,1,we,me,v,we,he,xe,he,b],"stroke-width":0,fill:(0,i.toRaphaelColor)({FCcolor:{color:qe+i.COMMASTRING+Je+i.COMMASTRING+Je,alpha:"50,0,0",ratio:"0,40,60",angle:180}})},F=at.setAnimation({el:We||"path",attr:W,container:r,component:U,label:"path"}),!We&&U.addGraphicalElement("cylRightLight",F),z={path:[f,Fe,me,v,xe,me,xe,he,Fe,he,b],"stroke-width":0,fill:(0,i.toRaphaelColor)({FCcolor:{color:qe+i.COMMASTRING+Je,alpha:h,ratio:p,angle:180}})},N=at.setAnimation({el:ze||"path",attr:z,container:r,component:U,label:"path"}),!ze&&U.addGraphicalElement("cylLeftLight1",N),j={path:[f,Fe-.01,me,v,Ne,me,Ne,he,Fe-.01,he,b],"stroke-width":0,fill:(0,i.toRaphaelColor)({FCcolor:{color:qe+i.COMMASTRING+Je,alpha:h,ratio:p,angle:0}})},E=at.setAnimation({el:je||"path",attr:j,container:r,component:U,label:"path"}),!je&&U.addGraphicalElement("cylRightLight1",E)):(U.removeGraphicalElement(Me),U.removeGraphicalElement(Oe),U.removeGraphicalElement(Pe),U.removeGraphicalElement(Ge),U.removeGraphicalElement(He),U.removeGraphicalElement(We),U.removeGraphicalElement(ze),U.removeGraphicalElement(je)),S=at.setAnimation({el:Be||"group",attr:{name:"col-hot"},container:q,component:U,label:"group"}),!Be&&U.addContainer("trackerContainer",S),V.stroke=V.fill=x,L=at.setAnimation({el:Ue||"path",attr:V,container:S,component:U,label:"path"}),Ue||(U.addGraphicalElement("hotElement",L),L.on("fc-click",(function(e){Y.plotEventHandler(this,e)})).hover((function(e){X.showHoverEffect&&U.getGraphicalElement("fluid")&&U.getGraphicalElement("fluid").attr(rt.hover),Y.plotEventHandler(this,e,"DataPlotRollOver")}),(function(e){X.showHoverEffect&&U.getGraphicalElement("fluid")&&U.getGraphicalElement("fluid").attr(rt.out),Y.plotEventHandler(this,e,"DataPlotRollOut")}))),X.toolText?Z.enableToolTip(L,X.toolText):Z.disableToolTip(L),L.data("eventArgs",R),k=at.setAnimation({el:Ie||"group",attr:{name:"datalabel"},container:J,component:U,label:"labelGroup"}),K.setStyle(ot),Ie||U.addContainer("dataLabelContainer",k),X.showValue&&(e=ge+re+(X.valuePadding||0),a=(o=K.getSmartText(X.displayValue,ee.width-ee.marginLeft-ee.marginRight-ue/2,ee.height-e-ee.marginBottom)).tooltext||i.BLANKSTRING,t=at.setAnimation({el:_e||"text",attr:{text:o.text,x:ne,y:e,"text-anchor":d,"vertical-align":u,fill:ot.color,"text-bound":[ot.backgroundColor,ot.borderColor,ot.borderThickness,ot.borderPadding,ot.borderRadius,ot.borderDash]},container:k,component:U,label:"text"}),X.showTooltip?Z.enableToolTip(t,a):Z.disableToolTip(t),_e||U.addGraphicalElement("label",t),t.show())},t}(s["default"]);t["default"]=w},1502:(e,t,a)=>{var o=a(269);t.__esModule=!0,t["default"]=function(e){var t=e.getFromEnv("dataSource"),a=t.pointers||t.dials;a||(t.dials=a={dial:[{value:0}]});(0,r.datasetFactory)(e,i["default"],"dataset",1,[a])};var r=a(274),i=o(a(1503))},1489:(e,t,a)=>{var o=a(269);t.__esModule=!0,t["default"]=function(e){var t=e.getChildren("canvas")[0];(0,i.componentFactory)(e,r["default"],"scale",1,e._feedAxesRawData()),e.getChildren("scale")[0].setLinkedItem("canvas",t),e.addToEnv("scale",e.getChildren("scale")[0])};var r=o(a(1490)),i=a(274)},1499:(e,t,a)=>{var o=a(269);t.__esModule=!0,t["default"]=function(e){(0,i.componentFactory)(e,r["default"],"scale",1,e._feedAxesRawData()),e.addToEnv("scale",e.getChildren("scale")[0])};var r=o(a(1500)),i=a(274)},1484:(e,t,a)=>{t.__esModule=!0,t["default"]=function(e){var t,a=e.getFromEnv("dataSource"),r=a.value,i=a.target,l=[],n={};l.push({value:r,target:i}),n.data=l,t=e.getDSdef(),(0,o.datasetFactory)(e,t,"dataset",1,[n])};var o=a(274)},1496:(e,t,a)=>{var o=a(269);t.__esModule=!0,t["default"]=void 0;var r=o(a(1497))["default"];t["default"]=r},1477:(e,t,a)=>{var o=a(269);t.__esModule=!0,t["default"]=void 0;var r=o(a(1478))["default"];t["default"]=r},1485:(e,t,a)=>{var o=a(269);t.__esModule=!0,t["default"]=void 0;var r=o(a(1486))["default"];t["default"]=r},1558:(e,t,a)=>{var o=a(269);t.__esModule=!0,t["default"]=void 0;var r=o(a(1559))["default"];t["default"]=r},1554:(e,t,a)=>{var o=a(269);t.__esModule=!0,t["default"]=void 0;var r=o(a(1555))["default"];t["default"]=r},1508:(e,t,a)=>{var o=a(269);t.__esModule=!0,t["default"]=void 0;var r=o(a(1509))["default"];t["default"]=r},1517:(e,t,a)=>{var o=a(269);t.__esModule=!0,t["default"]=void 0;var r=o(a(1518))["default"];t["default"]=r},1566:(e,t,a)=>{var o=a(269);t.__esModule=!0,t["default"]=void 0;var r=o(a(1567))["default"];t["default"]=r},1570:(e,t,a)=>{var o=a(269);t.__esModule=!0,t["default"]=void 0;var r=o(a(1571))["default"];t["default"]=r},1537:(e,t,a)=>{var o=a(269);t.__esModule=!0,t["default"]=void 0;var r=o(a(1538))["default"];t["default"]=r},1544:(e,t,a)=>{var o=a(269);t.__esModule=!0,t["default"]=void 0;var r=o(a(1539))["default"];t["default"]=r},1545:(e,t,a)=>{var o=a(269);t.__esModule=!0,t["default"]=void 0;var r=o(a(1546))["default"];t["default"]=r},1552:(e,t,a)=>{var o=a(269);t.__esModule=!0,t["default"]=void 0;var r=o(a(1553))["default"];t["default"]=r},1548:(e,t,a)=>{var o=a(269);t.__esModule=!0,t["default"]=void 0;var r=o(a(1549))["default"];t["default"]=r},1550:(e,t,a)=>{var o=a(269);t.__esModule=!0,t["default"]=void 0;var r=o(a(1551))["default"];t["default"]=r},1532:(e,t,a)=>{var o=a(269);t.__esModule=!0,t["default"]=void 0;var r=o(a(1533))["default"];t["default"]=r},1524:(e,t,a)=>{var o=a(269);t.__esModule=!0,t["default"]=void 0;var r=o(a(1525))["default"];t["default"]=r},1536:(e,t,a)=>{var o=a(269);t.__esModule=!0,t["default"]=void 0;var r=o(a(1529))["default"];t["default"]=r},1520:(e,t,a)=>{var o=a(269);t.__esModule=!0,t["default"]=void 0;var r=o(a(1521))["default"];t["default"]=r},1556:(e,t,a)=>{var o=a(269);t.__esModule=!0,t["default"]=void 0;var r=o(a(1557))["default"];t["default"]=r},1516:(e,t,a)=>{var o=a(269);t.__esModule=!0,t["default"]=void 0;var r=o(a(1510))["default"];t["default"]=r},1476:(e,t,a)=>{var o=a(269);t.__esModule=!0,t["default"]=void 0;var r=o(a(1477));t.Bulb=r["default"];var i=o(a(1485));t.Cylinder=i["default"];var l=o(a(1496));t.AngularGauge=l["default"];var n=o(a(1508));t.Hled=n["default"];var s=o(a(1516));t.Vled=s["default"];var c=o(a(1517));t.Hlineargauge=c["default"];var u=o(a(1520));t.Thermometer=u["default"];var d=o(a(1524));t.SparkLine=d["default"];var h=o(a(1532));t.SparkColumn=h["default"];var g=o(a(1536));t.SparkWinLoss=g["default"];var p=o(a(1537));t.RealTimeArea=p["default"];var f=o(a(1544));t.RealTimeColumn=f["default"];var m=o(a(1545));t.RealTimeLine=m["default"];var v=o(a(1548));t.RealTimeStackedArea=v["default"];var b=o(a(1550));t.RealTimeStackedColumn=b["default"];var k=o(a(1552));t.RealTimeLineDY=k["default"];var C=o(a(1554));t.HorizontalBullet=C["default"];var x=o(a(1556));t.VerticalBullet=x["default"];var w=o(a(1558));t.Funnel=w["default"];var T=o(a(1566));t.Pyramid=T["default"];var y=o(a(1570));t.RadialBar=y["default"];var S=o(a(1481)),A={name:"widgets",type:"package",requiresFusionCharts:!0,extension:function(e){e.addDep(S["default"]),e.addDep(l["default"]),e.addDep(r["default"]),e.addDep(i["default"]),e.addDep(n["default"]),e.addDep(s["default"]),e.addDep(c["default"]),e.addDep(u["default"]),e.addDep(d["default"]),e.addDep(h["default"]),e.addDep(g["default"]),e.addDep(p["default"]),e.addDep(f["default"]),e.addDep(m["default"]),e.addDep(v["default"]),e.addDep(b["default"]),e.addDep(k["default"]),e.addDep(C["default"]),e.addDep(x["default"]),e.addDep(w["default"]),e.addDep(T["default"]),e.addDep(y["default"])}};t["default"]=A}}])}));
//# sourceMappingURL=http://localhost:3052/4.1.0/map/eval/fusioncharts.widgets.js.map