/*
 FusionCharts JavaScript Library
 Copyright FusionCharts Technologies LLP
 License Information at <http://www.fusioncharts.com/license>

 @version 3.10.1
*/
FusionCharts.register("module",["private","modules.renderer.js-messagelogger",function(){var V=this.hcLib,mb=V.Raphael,Fa,eb=V.isIE,qa=V.graphics.HEXtoRGB,I=V.graphics.convertColor,Ga,J,Ta,Ka,q,E,h,Ua,Ba,U,Y,fa,ta,Na,ub=this.window,pa=ub.document,zb=8===pa.documentMode,na=!0,da=!1,L=V.pluck,xa=V.pluckNumber,Ab=V.FC_CONFIG_STRING,Ya={display:"block",paddingLeft:"10px",paddingRight:"10px","font-family":"Arial","font-size":"11px"},v=function(h,q){var y=this,E;q||(q="");for(E=y.indexOf(h);-1!==E;)y=y.replace(h,
q),E=y.indexOf(h);return y};Na=function(v,L,y){var J=v.hcJSON,Y=J&&J[Ab],U=L&&L.chartWidth,ca=L&&L.chartHeight,J=Ka/100*U,ta=q/100*ca,ka=(U-J)/2,ja=(ca-ta)/2,xa=J-18-22,ra=ta-18-22,pa=Ua,qa=Ua;v=y.html("div",{fill:"transparent",width:U,height:ca},{fontSize:"10px",lineHeight:"15px",fontFamily:(Y&&Y.inCanvasStyle||v.inCanvasStyle).fontFamily},L&&L.container);v.veil=y.html("div",{id:"veil",fill:"000000",width:U,height:ca,opacity:.1},void 0,v).on("click",function(){fa&&V.messageLogger.close()});h&&E&&
(v.title=y.html("p",{id:"Title",innerHTML:h,x:5,y:5},{"font-weight":"bold"},v));v.dialog=y.html("div",{id:"dialog",x:ka,y:ja,fill:"ffffff",strokeWidth:1,stroke:pa,width:J,height:ta},{borderRadius:"5px",boxShadow:"1px 1px 3px #000000","-webkit-border-radius":"5px","-webkit-box-shadow":"1px 1px 3px #000000",filter:'progid:DXImageTransform.Microsoft.Shadow(Strength=4, Direction=135, Color="#000000")'},v);v.logBackground=y.html("div",{id:"dialogBackground",x:0,y:0,fill:qa,width:J,height:ta},void 0,v.dialog);
fa&&(v.closeBtnContainer=y.html("div",{id:"closeBtnContainer",width:18,height:18,x:ka+J-21,y:ja+3},{},v),L=new mb("closeBtnContainer",18,18),U=L.group("closeGroup"),v.closeButton=L.symbol("closeIcon",0,0,6,U).attr({transform:"t9,9","stroke-width":2,stroke:I("999999"),ishot:!0,"stroke-linecap":"round","stroke-linejoin":"round"}).css({cursor:"pointer",_cursor:"hand"}).click(function(){V.messageLogger.close()}));v.logWrapper=y.html("div",{id:"logWrapper",x:(J-xa)/2,y:(ta-ra)/2,width:xa,height:ra},{overflow:"auto"},
v.dialog).on("scroll",function(){var h=this&&this.scrollTop,q=this&&this.scrollHeight,y=this&&this.offsetHeight;da?da=!1:na=q-h===y?!0:!1});v.log=y.html("div",{id:"log",x:0,y:0},{},v.logWrapper);v.hide();return v};Fa=function(h,q,y,v){if(V.messageLogger)return V.messageLogger;this.chart=h;this.instanceAPI=q;this.renderer=y;this.paper=v;this.menuCreated=!1;this.log=(h=this.ui=Na(q,y,v))&&h.log;h&&this.updateStatus("INITIALIZED")};Fa.prototype={STATUS:"",updateStatus:function(h){var q=this.renderer,
q=q&&q.menu instanceof Array&&q.menu[0];this.status=h;switch(q&&this.status.toLowerCase()){case "initialized":Ga?q.hideItem(4):q.hideItem(1);break;case "closed":Ga?q.showItem(3):q.showItem(0);Ga?q.hideItem(4):q.hideItem(1);break;case "active":Ga?q.showItem(4):q.showItem(1),Ga?q.hideItem(3):q.hideItem(0)}},appendMessage:function(h){var q=this.status,y=L(h.msgid,""),E=L(h.msgtitle,""),J=L(h.msgtext,""),I=h&&L(h.msgtype,"literal"),ca=h&&!!xa(h.clearlog,0),ta=h&&!!xa(h.hidelog,0),ka=h&&!!xa(h.showlog,
0),ja=h&&!!xa(h.msggoestolog,Ta),Ka=h&&!!xa(h.msggoestojs,Ba);ja&&"INITIALIZED"===q&&this.updateStatus("CLOSED");ta&&this.close();ca&&this.clear();ka&&this.open();ja&&"ACTIVE"!==this.status&&this.show();if((""!==E&&void 0!==E||""!==J&&void 0!==J)&&this.log&&ja){var q=this.log,ca=h&&h.msgtitle,ta=h&&h.msgtext,ka=h&&L(h.msgtype,"literal"),ra,V;h="";var fa,ya,ha;q&&q.element&&(fa=q.element);fa&&(ya=fa.parentElement);ca&&(ca+=" : ");switch(ka.toLowerCase()){case "info":ca&&(ra='<span style="color: #005900">$titleVal$</span>');
ta&&(V="<span>$msgVal$</span>");break;case "literal":ca&&(ra='<span style="color: #005900">$titleVal$</span>');ta&&(V="<span>$msgVal$</span>");break;case "error":ca&&(ra='<span style="color: #CC0000">$titleVal$</span>');ta&&(V='<span style="color: #CC0000">$msgVal$</span>');break;case "link":ca&&(ra='<span style="color: #005900">$titleVal$</span>');ta&&(V='<a href="$msgVal$">$msgVal$</a>');break;default:ca&&(ra='<span style="color: #005900">$titleVal$</span>'),ta&&(V="<span>$msgVal$</span>")}ra&&
(ra=ra.replace("$titleVal$",ca),h+=ra);V&&(V=v.call(V,"$msgVal$",ta),h+=V);if(fa&&h){ra=pa.createElement("span");for(ha in Ya)ra.style[ha]=Ya[ha];ra.innerHTML=h;fa.appendChild&&fa.appendChild(ra);eb&&zb&&(ha=fa.innerHTML,fa.innerHTML=ha);na&&(da=!0,fa=ya.scrollHeight,ya.scrollTop=fa)}eb||(this.ui.element.scrollHeight+=30,this.ui.element.scrollTop=this.ui.element.scrollHeight)}Ka&&U&&(Ka=ub[U],"function"===typeof Ka&&(Y?Ka(y,E,J,I):Ka(J)))},hide:function(){"ACTIVE"===this.status&&(this.ui.hide(),this.updateStatus("BEFORE CLOSE"))},
close:function(){"ACTIVE"===this.status&&(this.ui.hide(),this.updateStatus("CLOSED"))},open:function(){"ACTIVE"!==this.status&&(this.ui.show(),this.updateStatus("ACTIVE"))},show:function(){"ACTIVE"!==this.status&&"CLOSED"!==this.status&&(this.ui.show(),this.updateStatus("ACTIVE"))},clear:function(){var h=this.log;if(h=h&&h.element)for(;h.hasChildNodes();)h.removeChild(h.lastChild)},destroy:function(){this.hide();this.updateStatus("DESTROYED");V.messageLogger=null;delete V.messageLogger;return null}};
Fa.prototype.constructor=Fa;this.core.addEventListener(["rendered","dataupdated","resized"],function(v){var L=v&&v.sender;v=v&&v.eventType;var y=L&&L.jsVars,I=y&&y.hcObj,da=I&&I.options,na=y&&y.instanceAPI,ca=na&&na.renderer,I=ca&&ca.paper,da=da&&da.chart,pa=L&&L.options,pa=pa&&pa.renderer,ka=V&&V.messageLogger,ja=ka&&ka.status,Ya=y&&y._reflowData,ra=Ya&&Ya._messageLogger||{},y=ra&&ra.appendedMessages,Na;if(!pa||"javascript"===pa.toLowerCase())if(J=da&&da.useMessageLog){da&&(Ga=da.showRTMenuItem,
Ta=da.messageGoesToLog,Ba=da.messageGoesToJS,U=da.messageJSHandler,Y=da.messagePassAllToJS,Ka=da.messageLogWPercent,q=da.messageLogHPercent,E=da.messageLogShowTitle,h=da.messageLogTitle,fa=da.messageLogIsCancelable,Ua=da.messageLogColor,Ua=Ua.replace(/^#?([a-f0-9]+)/ig,"$1"),qa(Ua),ta=da.alwaysShowMessageLogMenu);ka&&(ka=V.messageLogger=ka.destroy());Na=(ka=V.messageLogger=new Fa(L,na,ca,I))&&ka.ui&&ka.ui.log&&ka.ui.log.element;if("resized"===v)switch(y&&(Na.innerHTML=y),ja.toLowerCase()){case "active":ka.ui.show();
ka.updateStatus(ja);break;case "closed":ka.updateStatus(ja)}ta&&(ka.menuCreated=!0);L.addEventListener("RealTimeUpdateComplete",function(h,q){var y=q&&q.updateObject,v=y&&y.msgtitle,E=y&&y.msgtext,I=y&&xa(y.showlog,0),da=y&&xa(y.hidelog,0),Y=y&&xa(y.clearlog,0);if(v||E||I||da||Y)!J||Ga||!Ta||ta||ka.menuCreated||(na.drawMLMenuButtons.call(ca,L),ka.menuCreated=!0),ka.appendMessage(y),ra.appendedMessages=Na&&Na.innerHTML,Ya._messageLogger=ra});L.addEventListener("beforeDispose",function(){ka&&ka.destroy()})}})}]);
FusionCharts.register("module",["private","modules.renderer.js-realtime",function(){var V=this,mb=V.window,Fa=Math,eb=Fa.random,qa=Fa.max,I=V.hcLib.pluckNumber,Ga=function(I,q,E){clearTimeout(E);return setTimeout(I,q)},J,Ta;J=function(I){var q=I.sender,E=q.jsVars;I=q.__state;var h=E.instanceAPI,J=h.hcJSON,Ba=h.numberFormatter,U=J&&J.alerts&&J.alerts.alert||[],E=E._rtLastUpdatedData&&E._rtLastUpdatedData.values,Y=U.length,fa;if(E&&E.length){h=function(h){var E,I=Ba.getCleanValue(h),J,fa=function(h){return function(){eval(h.param)}};
for(J=0;J<Y;J+=1)if(h=U[J],E=h.action&&h.action.toLowerCase(),h.minvalue<=I&&h.maxvalue>=I){if("1"!==h.occuronce||!h.hasOccurred){h.hasOccurred=!0;h.state="1";switch(E){case "calljs":setTimeout(fa(h),0);break;case "showannotation":q.showAnnotation&&q.showAnnotation(h.param)}V.raiseEvent("AlertComplete",{alertValue:I,alertMaxValue:h.maxvalue,alertMinValue:h.minvalue},q)}}else"showannotation"===E&&"1"===h.state&&q.hideAnnotation&&q.hideAnnotation(h.param),h.state="2"};J=qa(E.length,0);for(fa=0;fa<J;fa+=
1)I.lastSetValues&&E[fa]===I.lastSetValues[fa]||h(E[fa]);I.lastSetValues=E}};Ta=function(Ka){var q=Ka.sender,E=q.__state,h,qa,Ba,U,Y,fa,ta,Na,Fa,pa,Ta,na;E.dataSetDuringConstruction&&!E.rtStateChanged&&void 0===E.rtPreInit&&(q.dataReady()?(E.rtStateChanged=!0,E.rtPreInit=!0):E.rtPreInit=!1);E.rtStateChanged&&(E.rtStateChanged=!1,h=q.jsVars,qa=h.hcObj)&&(Ba=qa.logic,Y=(U=qa.options)&&U.chart||{},fa=1E3*I(Y.updateInterval,Y.refreshInterval),ta=1E3*I(Y.clearInterval,0),Na=Y.dataStreamURL,Fa=Y.dataStamp,
Y=Boolean(Ba&&Ba.realtimeEnabled&&0<fa&&void 0!==Na&&Y),U=U&&U.plotOptions&&U.plotOptions.series.animation&&U.plotOptions.series.animation.duration||0,pa=E._rtAjaxObj,Ta=function(){q.clearChart&&q.clearChart();ta&&(E._toClearChart=setTimeout(Ta,ta))},na=function(){var h=Na,h=h+((-1===Na.indexOf("?")?"?num=":"&num=")+eb());Fa&&(h+="&dataStamp="+Fa);pa.open&&pa.abort();pa.get(h);E._rtAjaxLatencyStart=new Date},0>=fa?(E._toRealtime=clearTimeout(E._toRealtime),pa&&pa.abort()):10>fa&&(fa=10),E._toClearChart=
clearTimeout(E._toClearChart),0<ta&&(10>ta?ta=10:E._toClearChart=setTimeout(Ta,ta)),E._rtStaticRefreshMS=fa,Y&&(void 0===E._rtPaused&&(E._rtPaused=!1),E._rtDataUrl=Na,E.lastSetValues=null,pa=E._rtAjaxObj||(E._rtAjaxObj=new V.ajax),pa.onSuccess=function(I,L,J,Y){if(!q.disposed){var U=h.hcObj&&h.hcObj.logic;J=U.linearDataParser&&U.linearDataParser(I,U.multisetRealtime);E._rtAjaxLatencyStart&&(E._rtAjaxLatency=new Date-E._rtAjaxLatencyStart);if(q.isActive()&&J&&qa&&(qa.realtimeUpdate||U.realtimeUpdate)){Fa=
J.dataStamp?J.dataStamp:null;J.interval=1E3>fa?fa:1E3;L=q.getDataJSON();qa.realtimeUpdate?qa.realtimeUpdate(J):U.realtimeUpdate(J);h._rtLastUpdatedData=U.multisetRealtime?J:q.getDataJSON();U=(U.realtimeDrawingLatency||0)+(E._rtAjaxLatency||0);V.raiseEvent("realtimeUpdateComplete",{data:I,updateObject:J,prevData:L.values,source:"XmlHttpRequest",url:Y,networkLatency:E._rtAjaxLatency,latency:U},Ka.sender);try{mb.FC_ChartUpdated&&mb.FC_ChartUpdated(Ka.sender.id)}catch(v){setTimeout(function(){throw v;
},1)}E._rtPaused||(U>=E._rtStaticRefreshMS&&(U=E._rtStaticRefreshMS-1),E._toRealtime=setTimeout(na,E._rtStaticRefreshMS-U))}else E._toRealtime=clearTimeout(E._toRealtime)}},pa.onError=function(h,J,I,U){E._rtAjaxLatencyStart&&(E._rtAjaxLatency=new Date-E._rtAjaxLatencyStart);V.raiseEvent("realtimeUpdateError",{source:"XmlHttpRequest",url:U,xmlHttpRequestObject:J.xhr,error:h,httpStatus:J.xhr&&J.xhr.status?J.xhr.status:-1,networkLatency:E._rtAjaxLatency},Ka.sender);E._toRealtime=q.isActive()?setTimeout(na,
fa):clearTimeout(E._toRealtime)},E._rtPaused||(E._toRealtime=Ga(na,U>fa?U:fa,E._toRealtime))),q.removeEventListener("realtimeUpdateComplete",J),Ba.dataObj&&Ba.dataObj.alerts&&Ba.dataObj.alerts&&Ba.dataObj.alerts.alert&&Ba.dataObj.alerts.alert.length&&q.addEventListener("realtimeUpdateComplete",J))};V.addEventListener(["beforeDataUpdate","beforeRender"],function(J){J=J.sender;var q=J.__state;J.jsVars&&(J.jsVars._rtLastUpdatedData=null);q._toRealtime&&(q._toRealtime=clearTimeout(q._toRealtime));q._toClearChart&&
(q._toClearChart=clearTimeout(q._toClearChart));q._rtAjaxLatencyStart=null;q._rtAjaxLatency=null});V.addEventListener(["renderComplete","dataUpdated"],function(J){var q=J.sender.__state;q&&(void 0===q.rtPreInit&&(q.rtPreInit=!1),q._rtPaused&&delete q._rtPaused,q.rtStateChanged||(q.rtStateChanged=!0,Ta.apply(this,arguments)))});V.core.addEventListener("beforeDispose",function(J){J=J.sender.__state;J._toRealtime&&(J._toRealtime=clearTimeout(J._toRealtime));J._toClearChart&&(J._toClearChart=clearTimeout(J._toClearChart))});
V.core.addEventListener("drawComplete",Ta)}]);
FusionCharts.register("module",["private","modules.renderer.js-widgets",function(){function V(){}function mb(a,e,c,d){e=h(e,d);a=h(a,c);return e&&a?a/c==e/d?c/a:Math.min(c/a,d/e):1}function Fa(a,e){var c=a.labels,d=c._textY,b=c._righttX,c=c._leftX,f,n,g=e.length;for(f=0;f<g;f+=1)if(n=e[f]&&e[f].label)n.y=d,n.x=n.align===gb?b:c}function eb(a,e,c,d){var b,f,n,g,p,m;c instanceof Array||(c=this.colorManager.getPlotColor(0));if(a&&0<a.length){for(f=n=a.length-1;0<=f;--f)if(b=a[f])b.minvalue=d.numberFormatter.getCleanValue(b.minvalue),
b.maxvalue=d.numberFormatter.getCleanValue(b.maxvalue),null===b.minvalue&&(null!==b.maxvalue?b.minvalue=b.maxvalue:f!==n&&a.splice(f,1)),void 0!==b.label&&(b.label=ca(b.label)),void 0!==b.name&&(b.name=ca(b.name)),null!==b.maxvalue&&b.minvalue>b.maxvalue&&(g=b.minvalue,b.minvalue=b.maxvalue,b.maxvalue=g);a.sort(Nb);a[0].code||(a[0].code=c[0]);void 0===E(a[0].alpha)&&(a[0].alpha=Ia);f=0;for(n=a.length-1;f<n;f+=1)if(g=f+1,b=a[f],d=a[g],d.code||(d.code=c[g]),void 0===E(d.alpha)&&(d.alpha=Ia),null===
b.maxvalue&&(b.maxvalue=d.minvalue),b.maxvalue>d.minvalue){if(b.maxvalue>d.maxvalue){g=Y(b);g.maxvalue=b.maxvalue;m=g.minvalue=d.maxvalue;for(p=f+2;p<n&&a[p].minvalue<m;p+=1);a.splice(p,0,g);n+=1}b.maxvalue=d.minvalue}b=a[f];null===b.maxvalue&&(b.maxvalue=b.minvalue)}a&&0<a.length||(e||(e={code:"CCCCCC",alpha:"100",bordercolor:"000000",borderalpha:"100"}),a=[e],this.defaultAsigned=!0);this.colorArr=a}var qa=this,I=qa.hcLib,Ga=I.Raphael,J=I.BLANKSTRING,Ta=I.createTrendLine,Ka=I.createContextMenu,q=
I.pluck,E=I.getValidValue,h=I.pluckNumber,Ua=I.getFirstDefinedValue,Ba=I.getColorCodeString,U=I.FC_CONFIG_STRING,Y=I.extend2,fa=I.getDashStyle,ta=I.hashify,Na=I.hasSVG,ub=I.falseFN,pa=I.getFirstValue,zb=I.getFirstColor,na=I.graphics.getDarkColor,da=I.graphics.getLightColor,L=I.graphics.convertColor,xa=I.graphics.parseColor,Ab=I.graphics.parseAlpha,Ya=I.COLOR_TRANSPARENT,v=I.chartAPI,ab=I.parseTooltext,Vb=v.singleseries,y=I.COMMASTRING,fb=I.ZEROSTRING,Kb=I.ONESTRING,Wb=/\\,/ig,ca=I.parseUnsafeString,
Xb=I.HCstub,ka=qa.window,ja=/msie/i.test(ka.navigator.userAgent)&&!ka.opera,vb=I.regex.hexcode,ra="rgba(192,192,192,"+(ja?.002:1E-6)+")",Yb=parseFloat,Zb=parseInt,ya=Math,ha=ya.round,Lb=ya.ceil,Ca=ya.max,La=ya.min,Bb=ya.abs,Mb=ya.atan2,ia=ya.pow,pb=ya.sqrt,hb=ya.PI/180,ib=I.regex.dropHash,Cb=I.toPrecision,$b=I.isArray,nb=I.HASHSTRING,X=I.toRaphaelColor,ya=I.TOUCH_THRESHOLD_PIXELS,ac=I.CLICK_THRESHOLD_PIXELS,Db=void 0!==ka.document.documentElement.ontouchstart,Eb=Db?ya:ac,bc=I.getPosition,la=I.plotEventHandler,
Nb,Fb,Gb,Hb,kb,Ob,Pb,Qb,cc={left:"start",right:"end",center:"middle"},wb={"true":void 0,"false":"crisp"},dc=function(a,e,c){var d=0,b=a.length;if(c)for(;d<b;d++){if(!1===e.call(c,a[d],d,a))return d}else for(;d<b;d++)if(!1===e.call(a[d],a[d],d,a))return d},Ma=function(a,e){var c;a||(a={});for(c in e)a[c]=e[c];return a},qb=function(a){return"object"===typeof a},bb=function(a){return"string"===typeof a},ga=function(a){return void 0!==a&&null!==a},xb=ja&&!Na?"visible":"",yb=I.regex.startsRGBA,Oa=I.setLineHeight,
Rb=I.pluckFontSize,Va=I.POSITION_MIDDLE,cb=I.POSITION_TOP,rb=I.POSITION_BOTTOM,gb=I.POSITION_RIGHT,Wa=I.POSITION_LEFT,Aa=I.POSITION_MIDDLE,Ia=I.HUNDREDSTRING,ob=I.PXSTRING,Sb=I.COMMASPACE,Ha={right:"end",left:"start",middle:"middle",start:"start",end:"end",center:"middle",undefined:"","":""},ja=!/fusioncharts\.com$/i.test(ka.location.hostname),ec=function(){return function(a,e,c){var d,b=this,f=this._Attr,n=Ga.vml?-1.5:0,g=Ga.vml?-1.5:0,p;f||(f=b._Attr={});bb(a)&&ga(e)&&(d=a,a={},a[d]=e);if(bb(a)||
void 0===a)b="angle"==a?b._Attr[a]:b._attr(a);else for(d in a)e=a[d],"angle"===d?(f[d]=e,p=e*hb,f.tooltipPos[0]=f.cx+f.toolTipRadius*Math.cos(p),f.tooltipPos[1]=f.cy+f.toolTipRadius*Math.sin(p),f.prevValue=e,c&&c.duration?b.animate({transform:"R"+e+","+n+","+g},c.duration,"easeIn"):b.attr({transform:"R"+e+","+n+","+g})):b._attr(d,e);return b}},sb=function(a){var e=[],c;(function(a){(c=/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=[parseInt(c[1],
10),parseInt(c[2],10),parseInt(c[3],10),parseFloat(c[4])]:(c=/#([a-fA-F0-9]{2})([a-fA-F0-9]{2})([a-fA-F0-9]{2})/.exec(a))&&(e=[parseInt(c[1],16),parseInt(c[2],16),parseInt(c[3],16),1])})(a);return{get:function(c){return e&&!isNaN(e[0])?"rgb"===c?"rgb("+e[0]+","+e[1]+","+e[2]+")":"hex"===c?"#"+("000000"+(e[0]<<16|e[1]<<8|e[2]).toString(16)).slice(-6):"a"===c?e[3]:"rgba("+e.join(",")+")":a},brighten:function(a){if(!isNaN(a)&&0!==a){var b;for(b=0;3>b;b++)e[b]+=parseInt(255*a,10),0>e[b]&&(e[b]=0),255<
e[b]&&(e[b]=255)}return this},setOpacity:function(a){e[3]=a;return this}}},ya=Y({},I.defaultGaugePaletteOptions);V.prototype={numDecimals:function(a){a=Cb(a,10);a=Math.abs(a);a=Cb(a-Math.floor(a),10);a=String(a).length-2;return 0>a?0:a},toRadians:function(a){return a/180*Math.PI},toDegrees:function(a){return a/Math.PI*180},flashToStandardAngle:function(a){return-1*a},standardToFlashAngle:function(a){return-1*a},flash180ToStandardAngle:function(a){var e=360-(0>(a%=360)?a+360:a);return 360==e?0:e},
getAngularPoint:function(a,e,c,d){d*=Math.PI/180;return{x:a+c*Math.cos(d),y:e-c*Math.sin(d)}},remainderOf:function(a,e){var c=a%e,d=void 0,d=ia(10,void 0===d?2:d),c=ha(Number(String(c*d)));return c/=d},boundAngle:function(a){return 0<=a?V.prototype.remainderOf(a,360):360-V.prototype.remainderOf(Math.abs(a),360)},toNearestTwip:function(a){var e=0>a?-1:1;a=ha(100*Math.abs(a));var c=Math.floor(a/5);return(2<Number(String(a-5*c))?5*c+5:5*c)/100*e},roundUp:function(a,e){var c=ia(10,void 0===e?2:e);a=ha(Number(String(a*
c)));return a/=c}};V.prototype.constructor=V;I.MathExt=V;Fb=function(a,e,c,d,b,f,n,g){var p=a[U].smartLabel,m=e.chart,k=a.chart,l,t,r=0;e=a.title;n=a.subtitle;var u=e.text,w=n.text;b=h(m.captionpadding,b,2);var C=0,F=0,r=0,x=h(m.captiononright,0),q=E(m.captionposition,"top").toLowerCase(),m=0,z={left:0,right:0};g=g.snapLiterals||(g.snapLiterals={});var A=0,B=0;u!==J&&(l=e.style,C=h(parseInt(l.fontHeight,10),parseInt(l.lineHeight,10),12),h(parseInt(l.fontSize,10),10));w!==J&&(t=n.style,F=h(parseInt(t.fontHeight,
10),parseInt(t.lineHeight,10),12),r=h(parseInt(t.fontSize,10),10));if(0<C||0<F){p.setStyle(l);l=p.getSmartText(e.text,c,d);0<l.width&&(l.width+=2,m=l.height);p.setStyle(t);t=p.getSmartText(n.text,c,d-m);0<t.width&&(t.width+=2);p=l.height+0+r/2;switch(q){case "middle":e.y=d/2-l.height;n.y=e.y+p;break;case "bottom":n.y=d-k.marginBottom-k.marginTop-t.height;e.y=n.y-(0<l.height?p:0);break;default:e.y=0,n.y=p}r=Math.max(l.width,t.width);a.title.text=l.text;l.tooltext&&(a.title.originalText=l.tooltext);
a.subtitle.text=t.text;t.tooltext&&(a.subtitle.originalText=t.tooltext);0<r&&(r+=b);a=Math.min(r,c);x?(e.align=n.align=Ha.start,z.right=a,e.x=f-r+b,n.x=f-r+b):(e.align=n.align=Ha.end,z.left=a,e.x=r-b,n.x=r-b,A=a,B=t.width);e._captionWidth=l.width;n._subCaptionWidth=t.width;g.captionstartx=e.x-A;g.captionstarty=e.y;g.captionwidth=l.width;g.captionheight=m||0;g.captionendx=g.captionstartx+g.captionwidth;g.captionendy=g.captionstarty+g.captionheight;g.subcaptionstartx=n.x-B;g.subcaptionstarty=n.y;g.subcaptionwidth=
0<t.width?t.width:0;g.subcaptionheight=0<t.height?t.height:0;g.subcaptionendx=g.subcaptionstartx+g.subcaptionwidth;g.subcaptionendy=g.subcaptionstarty+g.subcaptionheight}return z};Gb=function(a,e,c,d,b,f){var n=a.chart,g=e.chart;e=a.title;var p=h(g.captionpadding,2),g=h(g.captiononright,0);a=a.subtitle;f=f.snapLiterals;var m=0,k=0;n.spacingRight=n.spacingLeft=0;ga(d)||(d=0);ga(b)||(b=0);g?(c-=n.marginRight,a.align=e.align=Ha.start,e.x=a.x=c+p+b+2):(a.align=e.align=Ha.end,e.x=a.x=n.marginLeft-n.spacingLeft-
p-d-2,m=e._captionWidth,k=a._subCaptionWidth);f.captionstartx=e.x-m;f.subcaptionstartx=a.x-k;f.captionendx=f.captionstartx+f.captionwidth;f.subcaptionendx=f.subcaptionstartx+f.subcaptionwidth};Hb=function(a,e,c,d,b){this.userMin=a;this.userMax=e;this.numMajorTM=h(d.majorTMNumber,-1);this.numMinorTM=h(d.minorTMNumber,5);this.adjustTM=d.adjustTM;this.tickValueStep=h(d.tickValueStep,1);this.showLimits=h(d.showLimits,1);this.showTickValues=h(d.showTickValues,1);this.nf=b;this.stopMaxAtZero=c;this.setMinAsZero=
!d.setAdaptiveMin;this.upperLimitDisplay=d.upperLimitDisplay;this.lowerLimitDisplay=d.lowerLimitDisplay;this.userMaxGiven=null===this.userMax||void 0===this.userMax||""===this.userMax?!1:!0;this.userMinGiven=null===this.userMin||void 0===this.userMin||""===this.userMin?!1:!0;this.majorTM=[];this.minorTM=[];this.MathExt=new V};Hb.prototype={setAxisCoords:function(a,e){this.startAxisPos=a;this.endAxisPos=e},calculateLimits:function(a,e){var c=!0,d=!0,b=Number(this.userMax),f=Number(this.userMin),n,
g;if(this.userMaxGiven&&this.userMinGiven)b>a&&(a=b),f<e&&(e=f);else if(isNaN(a)&&(a=.9,d=!1),isNaN(e)&&(e=0,c=!1),a===e&&0===a&&(isNaN(b)||(a=b),isNaN(b)||0===b))a=.9;n=Math.max(Math.floor(Math.log(Math.abs(e))/Math.LN10),Math.floor(Math.log(Math.abs(a))/Math.LN10));f=ia(10,n);2>Math.abs(a)/f&&2>Math.abs(e)/f&&(n--,f=ia(10,n));n=ia(10,Math.floor(Math.log(a-e)/Math.LN10));0<a-e&&10<=f/n&&(f=n);n=(Math.floor(a/f)+1)*f;0>e?g=-1*(Math.floor(Math.abs(e/f))+1)*f:this.setMinAsZero?g=0:(g=Math.floor(Math.abs(e/
f)-1)*f,g=0>g?0:g);this.stopMaxAtZero&&0>=a&&(n=0);this.max=!1===this.userMaxGiven||!0===this.userMaxGiven&&b<a&&d?n:b;this.min=!1===this.userMinGiven||!0===this.userMinGiven&&Number(this.userMin)>e&&c?g:Number(this.userMin);this.min>this.max?this.min==Number(this.userMin)&&this.max==b?(c=this.min,this.min=this.max,this.max=c):this.min==Number(this.userMin)?this.max=this.min+1:this.max==b&&(this.min=this.max-1):this.min==this.max&&(this.max=this.min+1);this.range=Math.abs(this.max-this.min);this.interval=
f;this.calcTickInterval()},calcTickInterval:function(){var a,e,c=0;-1!=this.numMajorTM&&2>this.numMajorTM&&(this.numMajorTM=2);!1===this.userMinGiven&&!1===this.userMaxGiven&&-1!==this.numMajorTM?(this.numMajorTM=-1==this.numMajorTM?5:this.numMajorTM,a=this.getDivisibleRange(this.min,this.max,this.numMajorTM,this.interval,!0),e=a-this.range,this.range=a,0<this.max?this.max+=e:this.min-=e):(this.numMajorTM=-1==this.numMajorTM?5:this.numMajorTM,!0===this.adjustTM&&(a=function(a,b){for(var c=0,e=1,g;;){g=
b.numMajorTM+c*e;g=0===g?1:g;if(b.isRangeDivisible(a,g,b.interval))break;c=-1==e||c>b.numMajorTM?++c:c;if(25<c){g=b.numMajorTM;break}e=c<=b.numMajorTM?-1*e:1}b.numMajorTM=1<g?g:b.numMajorTM},e=this.numMajorTM,a(this.range,this),2===this.numMajorTM&&(this.numMajorTM=e,a(this.range+1,this),c=1)));this.majorTickInt=(this.max-this.min+c)/(this.numMajorTM-1)},isRangeDivisible:function(a,e,c){return this.MathExt.numDecimals(a/(e-1))>this.MathExt.numDecimals(c)?!1:!0},getDivisibleRange:function(a,e,c,d,
b){if(3>c)return this.range;a=Math.abs(e-a);e=a/(c-1);this.isRangeDivisible(a,c,d)||(b&&Number(e)/Number(d)<(1<d?2:.5)&&(d/=10),e=(Math.floor(e/d)+1)*d,a=e*(c-1));return a},calculateTicks:function(){this.majorTM=[];this.minorTM=[];for(var a=0,e,c,d=this.numMajorTM,b=this.numMinorTM,f=this.nf,n=this.tickValueStep,g=ca(this.lowerLimitDisplay),p=ca(this.upperLimitDisplay),m=this.majorTickInt,k=this.min,l=this.showTickValues,t=!1,r=h(this.showLimits,l);a<d;a+=1)e=a<d-1?Cb(Number(k+m*a),10):this.max,c=
f.scale(e),t=!1,0!==a%n&&a!==d-1?c=J:0===a||a===d-1?r?0===a&&g?(c=g,t=!0):a==d-1&&p&&(c=p,t=!0):c=J:l||(c=J),this.majorTM.push({displayValue:c,isString:t,value:e});c=m/(b+1);for(a=0;a<d-1;a+=1)for(e=1;e<=b;e+=1)this.minorTM.push(this.majorTM[a].value+c*e)},returnDataAsTick:function(a,e){var c={};c.value=a;c.displayValue=this.nf.dataLabels(a);c.showValue=e;return c},getMax:function(){return this.max},getMin:function(){return this.min},getMajorTM:function(){return this.majorTM},getMinorTM:function(){return this.minorTM},
getAxisPosition:function(a){if(void 0===this.startAxisPos||void 0===this.endAxisPos)throw Error("Cannot calculate position, as axis co-ordinates have not been defined. Please use setAxisCoords() method to define the same.");return this.startAxisPos+(this.endAxisPos-this.startAxisPos)/(this.max-this.min)*(a-this.min)},getValueFromPosition:function(a){if(void 0===this.startAxisPos||void 0===this.endAxisPos)throw Error("Cannot calculate value, as axis co-ordinates have not been defined. Please use setAxisCoords() method to define the same.");
var e,c;e=this.max-this.min;c=a-this.startAxisPos;return c/(c+(this.endAxisPos-a))*e+this.min}};v("gaugebase",{creditLabel:ja,defaultPaletteOptions:ya,multiValueGauge:!1,decimals:2,formatnumberscale:0,drawAnnotations:!0,useScaleRecursively:!0,includeColorRangeInLimits:!1,init:function(a,e,c){var d=c.jsVars;this.rtLatestSeriesData=d&&d._rtLastUpdatedData?d._rtLastUpdatedData:null;return v.base.init.apply(this,arguments)},chart:function(a,e){var c=this.name,d=this.dataObj||{},b=d.chart||{},f=this.defaultSeriesType,
n=this.realtimeEnabled,g=this.colorManager,p,m=d.alerts,k,l,t,r,u,w,C,F,x,W,z,A,B;l=Xb(d,a,e,this);u=l.chart;k=l[U];l.labels.smartLabel=k.smartLabel=this.smartLabel;this.width=a;this.height=e;k.width=a;k.height=e;r=l.plotOptions;u.useRoundEdges=1==b.useroundedges;k.tooltext=b.plottooltext;k.targettooltext=b.targettooltext;p=(u.is3D=t=k.is3d=/3d$/.test(f))?I.chartPaletteStr.chart3D:I.chartPaletteStr.chart2D;u.defaultSeriesType=f;w=0<b.palette&&6>b.palette?b.palette:h(this.paletteIndex,1);--w;u.paletteIndex=
w;f=Y({},d.colorrange);this.colorRangeGetter=new eb(f.color,void 0,this.defaultPaletteOptions.paletteColors[w],this);u.events.click=l.plotOptions.series.point.events.click=this.linkClickFN;void 0!==q(b.clickurl)&&(u.link=b.clickurl,u.style.cursor="pointer",l.plotOptions.series.point.events.click=function(){u.events.click.call({link:b.clickurl})});C=q(b.basefont,"Verdana,sans");F=Rb(b.basefontsize,10);x=q(b.basefontcolor,g.getColor("baseFontColor"));f=q(b.outcnvbasefont,C);z=Rb(b.outcnvbasefontsize,
F);w=z+ob;W=q(b.outcnvbasefontcolor,x).replace(/^#?([a-f0-9]+)/ig,"#$1");F+=ob;x=x.replace(/^#?([a-f0-9]+)/ig,"#$1");this.trendStyle=this.outCanvasStyle={fontFamily:f,color:W,fontSize:w};A=Oa(this.trendStyle);this.inCanvasStyle={fontFamily:C,fontSize:F,color:x};B=Oa(this.inCanvasStyle);k.trendStyle=k.outCanvasStyle={fontFamily:f,color:W,fontSize:w};Y(l.legend,{title:{style:{fontFamily:q(b.legendcaptionfont,f),fontSize:h(b.legendcaptionfontsize,z)+"px",color:ta(q(b.legendcaptionfontcolor,W)),fontWeight:h(b.legendcaptionfontbold,
1)?"bold":"normal"},align:cc[q(b.legendcaptionalignment)]},itemStyle:{fontFamily:q(b.legenditemfont,f),fontSize:h(b.legenditemfontsize,z)+"px",color:ta(q(b.legenditemfontcolor,W)),fontWeight:h(b.legenditemfontbold)?"bold":"normal"},itemHiddenStyle:{fontFamily:f,fontSize:z+"px",color:ta(q(b.legenditemhiddencolor,W))},itemHoverStyle:{color:ta(q(b.legenditemhoverfontcolor,b.legenditemfontcolor,W))}});l.legend.title.style.lineHeight=Oa(l.legend.title.style);l.legend.itemStyle.lineHeight=Oa(l.legend.itemStyle);
l.legend.itemHiddenStyle.lineHeight=Oa(l.legend.itemHiddenStyle);k=(k=pa(b.valuebordercolor,J))?L(k,h(b.valueborderalpha,b.valuealpha,100)):J;k=r.series.dataLabels.style={fontFamily:q(b.valuefont,C),fontSize:q(b.valuefontsize,parseInt(F,10))+ob,color:L(q(b.valuefontcolor,x),h(b.valuefontalpha,b.valuealpha,100)),fontWeight:h(b.valuefontbold)?"bold":"normal",fontStyle:h(b.valuefontitalic)?"italic":"normal",border:k||b.valuebgcolor?h(b.valueborderthickness,1)+"px solid":void 0,borderColor:k,borderThickness:h(b.valueborderthickness,
1),borderPadding:h(b.valueborderpadding,2),borderRadius:h(b.valueborderradius,0),backgroundColor:b.valuebgcolor?L(b.valuebgcolor,h(b.valuebgalpha,b.valuealpha,100)):J,borderDash:h(b.valueborderdashed,0)?fa(h(b.valueborderdashlen,4),h(b.valueborderdashgap,2),h(b.valueborderthickness,1)):"none"};Oa(k);r.series.dataLabels.color=k.color;this.isDataLabelBold&&(k.fontWeight="bold",delete k.lineHeight,Oa(k));l.tooltip.style={fontFamily:C,fontSize:F,lineHeight:B,color:x};l.title.style={fontFamily:q(b.captionfont,
f),color:q(b.captionfontcolor,W).replace(/^#?([a-f0-9]+)/ig,"#$1"),fontSize:h(b.captionfontsize,z+3)+ob,fontWeight:0===h(b.captionfontbold)?"normal":"bold"};l.title.align=q(b.captionalignment,Va);l.title.isOnTop=h(b.captionontop,1);l.title.alignWithCanvas=h(b.aligncaptionwithcanvas,this.alignCaptionWithCanvas,1);l.title.horizontalPadding=h(b.captionhorizontalpadding,l.title.alignWithCanvas?0:15);Oa(l.title.style);l.subtitle.style={fontFamily:q(b.subcaptionfont,b.captionfont,f),color:q(b.subcaptionfontcolor,
b.captionfontcolor,W).replace(/^#?([a-f0-9]+)/ig,"#$1"),fontSize:h(b.subcaptionfontsize,h(Ca(h(b.captionfontsize)-3,-1),z)+h(this.subTitleFontSizeExtender,1))+ob,fontWeight:0===h(b.subcaptionfontbold,this.subTitleFontWeight,b.captionfontbold)?"normal":"bold"};l.subtitle.align=l.title.align;l.subtitle.isOnTop=l.title.isOnTop;l.subtitle.alignWithCanvas=l.title.alignWithCanvas;l.subtitle.horizontalPadding=l.title.horizontalPadding;Oa(l.subtitle.style);l.chart.trendPointStyle={style:this.trendStyle};
l.orphanStyles={defaultStyle:{style:Y({},this.inCanvasStyle)}};l.chart.colorRangeStyle={style:{fontFamily:C,fontSize:F,lineHeight:B,color:x}};Oa(l.chart.colorRangeStyle);k=h(b.scaleonresize,1);u.origW=r=h(b.origw,k?this.origRenderWidth:a);u.origH=k=h(b.origh,k?this.origRenderHeight:e);r=(u.autoScale=C=h(b.autoscale,1))?mb(r,k,a,e):1;this.scaleFactor=u.scaleFactor=r;this.createGaugeAxis&&this.createGaugeAxis(d,l,{fontFamily:f,fontSize:w,lineHeight:A,color:W});this.parseStyles(l);delete l.xAxis.labels.style.backgroundColor;
delete l.xAxis.labels.style.borderColor;delete l.yAxis[0].labels.style.backgroundColor;delete l.yAxis[0].labels.style.borderColor;delete l.yAxis[1].labels.style.backgroundColor;delete l.yAxis[1].labels.style.borderColor;this.showTooltip=h(b.showtooltip,this.showtooltip,1);this.tooltipSepChar=q(b.tooltipsepchar,Sb);this.showValues=h(b.showvalues,b.showvalue,this.showValues,1);this.seriesNameInToolTip=h(b.seriesnameintooltip,1);this.showTooltip||(l.tooltip.enabled=!1);l.plotOptions.series.connectNullData=
h(b.connectnulldata,0);u.backgroundColor={FCcolor:{color:q(b.bgcolor,g.getColor(p.bgColor)),alpha:q(b.bgalpha,g.getColor(p.bgAlpha)),angle:q(b.bgangle,g.getColor(p.bgAngle)),ratio:q(b.bgratio,g.getColor(p.bgRatio))}};p=h(b.showborder,t?0:1);u.borderWidth=p?h(b.borderthickness,1):0;u.borderRadius=h(b.borderradius,0);u.borderDashStyle=h(b.borderdashed,0)?fa(h(b.borderdashlen,4),h(b.borderdashgap,2),u.borderWidth):"none";u.borderColor=L(q(b.bordercolor,t?"#666666":g.getColor("borderColor")),q(b.borderalpha,
t?"100":g.getColor("borderAlpha")));u.plotBackgroundColor=u.plotBorderColor=Ya;u.plotBorderWidth=0;u.plotShadow=0;u.bgSWF=q(b.bgimage,b.bgswf);u.bgSWFAlpha=h(b.bgimagealpha,b.bgswfalpha,100);t=q(b.bgimagedisplaymode,"none").toLowerCase();p=E(b.bgimagevalign,J).toLowerCase();f=E(b.bgimagehalign,J).toLowerCase();"tile"==t||"fill"==t||"fit"==t?(p!=cb&&p!=Aa&&p!=rb&&(p=Aa),"left"!=f&&f!=Aa&&"right"!=f&&(f=Aa)):(p!=cb&&p!=Aa&&p!=rb&&(p=cb),"left"!=f&&f!=Aa&&"right"!=f&&(f="left"));u.bgImageDisplayMode=
t;u.bgImageVAlign=p;u.bgImageHAlign=f;u.bgImageScale=h(b.bgimagescale,100);u.logoURL=E(b.logourl);u.logoPosition=q(b.logoposition,"tl").toLowerCase();u.logoAlpha=h(b.logoalpha,100);u.logoLink=E(b.logolink);u.logoScale=h(b.logoscale,100);u.logoLeftMargin=h(b.logoleftmargin,0);u.logoTopMargin=h(b.logotopmargin,0);u.annRenderDelay=E(b.annrenderdelay);t=l.tooltip.style;t.backgroundColor=L(q(t.backgroundColor,b.tooltipbgcolor,b.hovercapbgcolor,b.hovercapbg,g.getColor("toolTipBgColor")),q(b.tooltipbgalpha,
100));t.borderColor=L(q(t.borderColor,b.tooltipbordercolor,b.hovercapbordercolor,b.hovercapborder,g.getColor("toolTipBorderColor")),q(b.tooltipborderalpha,100));l.tooltip.constrain=h(b.constraintooltip,1);l.tooltip.shadow=h(b.showtooltipshadow,b.showshadow,1)?{enabled:!0,opacity:Ca(h(b.tooltipbgalpha,100),h(b.tooltipborderalpha,100))/100}:!1;t.borderWidth=h(b.tooltipborderthickness,1)+"px";b.tooltipborderradius&&(t.borderRadius=h(b.tooltipborderradius,1)+"px");l.tooltip.style.padding=h(b.tooltippadding,
this.tooltippadding,3)+"px";b.tooltipcolor&&(t.color=zb(b.tooltipcolor));u.rotateValues=h(b.rotatevalues,0);u.placeValuesInside=h(b.placevaluesinside,0);u.valuePosition=b.valueposition;u.valuePadding=h(b.valuepadding,4);l.plotOptions.series.shadow=h(b.showshadow,b.showcolumnshadow,this.defaultPlotShadow,this.colorManager.getColor("showShadow"));u.useRoundEdges&&(l.plotOptions.series.shadow=h(b.showshadow,b.showcolumnshadow,1),l.plotOptions.series.borderRadius=1,l.tooltip.borderRadius=2);l.title.text=
ca(b.caption);l.subtitle.text=ca(b.subcaption);b.showtooltip==fb&&(l.tooltip.enabled=!1);g=h(b.plotspacepercent,20);if(80<g||0>g)g=20;this.plotSpacePercent=l.plotOptions.series.groupPadding=g/200;this.parseExportOptions(l);u.dataStreamURL=q(b.datastreamurl,"");u.refreshInterval=h(b.refreshinterval,1);u.dataStamp=b.datastamp;u.useMessageLog=h(b.usemessagelog,0);u.messageLogWPercent=La(h(b.messagelogwpercent,80),100);u.messageLogHPercent=La(h(b.messageloghpercent,70),100);u.messageLogShowTitle=h(b.messagelogshowtitle,
1);u.messageLogTitle=q(b.messagelogtitle,"Message Log");u.messageLogColor=q(b.messagelogcolor,"#fbfbfb");u.messageGoesToJS=h(b.messagegoestojs,0);u.messageGoesToLog=h(b.messagegoestolog,1);u.messageJSHandler=q(b.messagejshandler,"");u.messagePassAllToJS=h(b.messagepassalltojs,0);u.messageLogIsCancelable=h(b.messagelogiscancelable,1);u.alwaysShowMessageLogMenu=h(b.alwaysshowmessagelogmenu,u.useMessageLog);u.showRTMenuItem=h(b.showrtmenuitem,0);g=h(b.showgaugeborder,1);u.gaugeBorderColor=q(b.gaugebordercolor,
this.gaugeBorderColor,"333333");u.gaugeBorderThickness=g?h(b.gaugeborderthickness,this.gaugeBorderThickness,2):0;u.gaugeBorderAlpha=q(b.gaugeborderalpha,Ia);u.gaugeFillColor=q(b.gaugefillcolor,b.ledbgcolor,"000000");u.useSameFillColor=h(b.usesamefillcolor,0);u.useSameFillBgColor=h(b.usesamefillbgcolor,u.useSameFillColor);u.colorRangeFillMix=Ua(b.colorrangefillmix,b.gaugefillmix,this.colorRangeFillMix,"{light-10},{dark-10},{light-10},{dark-10}");u.colorRangeFillRatio=Ua(b.colorrangefillratio,b.gaugefillratio,
this.colorRangeFillRatio,b.gaugefillratio,"0,10,80,10");u.showColorRangeBorder=h(b.showcolorrangeborder,b.showgaugeborder,this.showColorRangeBorder,0);u.colorRangeBorderColor=q(b.colorrangebordercolor,b.gaugebordercolor,"{dark-20}");u.colorRangeBorderThickness=g?h(b.colorrangeborderthickness,b.gaugeborderthickness,1):0;u.colorRangeBorderAlpha=h(b.colorrangeborderalpha,b.gaugeborderalpha,100);u.roundRadius=h(b.roundradius,b.gaugeroundradius,0);u.showShadow=h(b.showshadow,1);u.gaugeType=h(b.gaugetype,
this.gaugeType,1);this.preSeriesAddition&&this.preSeriesAddition(l,d,a,e);this.series(d,l,c,a,e);this.postSeriesAddition&&this.postSeriesAddition(l,d,a,e);this.configureAxis&&this.configureAxis(l,d);this.spaceManager&&this.spaceManager(l,d,a,e);this.postSpaceManager&&this.postSpaceManager();this.updateSnapPoints&&this.updateSnapPoints(l);this.latestDataUpdater&&this.latestDataUpdater(l,d,a,e);c=u.toolbar={button:{}};g=c.button;g.scale=h(b.toolbarbuttonscale,1.15);g.width=h(b.toolbarbuttonwidth,15);
g.height=h(b.toolbarbuttonheight,15);g.radius=h(b.toolbarbuttonradius,2);g.spacing=h(b.toolbarbuttonspacing,5);g.fill=L(q(b.toolbarbuttoncolor,"ffffff"));g.labelFill=L(q(b.toolbarlabelcolor,"cccccc"));g.symbolFill=L(q(b.toolbarsymbolcolor,"ffffff"));g.hoverFill=L(q(b.toolbarbuttonhovercolor,"ffffff"));g.stroke=L(q(b.toolbarbuttonbordercolor,"bbbbbb"));g.symbolStroke=L(q(b.toolbarsymbolbordercolor,"9a9a9a"));g.strokeWidth=h(b.toolbarbuttonborderthickness,1);g.symbolStrokeWidth=h(b.toolbarsymbolborderthickness,
1);d=g.symbolPadding=h(b.toolbarsymbolpadding,5);g.symbolHPadding=h(b.toolbarsymbolhpadding,d);g.symbolVPadding=h(b.toolbarsymbolvpadding,d);g=c.position=q(b.toolbarposition,"tr").toLowerCase();switch(g){case "tr":case "tl":case "br":case "bl":break;default:g="tr"}d=c.hAlign="left"===(J+b.toolbarhalign).toLowerCase()?"l":g.charAt(1);g=c.vAlign="bottom"===(J+b.toolbarvalign).toLowerCase()?"b":g.charAt(0);c.hDirection=h(b.toolbarhdirection,"r"===d?-1:1);c.vDirection=h(b.toolbarvdirection,"b"===g?-1:
1);c.vMargin=h(b.toolbarvmargin,6);c.hMargin=h(b.toolbarhmargin,10);c.x=h(b.toolbarx,"l"===d?0:a);c.y=h(b.toolbary,"t"===g?0:e);ka.console&&ka.console.log&&ka.FC_DEV_ENVIRONMENT&&console.log(l);h(b.showrtmenuitem,0)?(l.callbacks||(l.callbacks=[])).push(this.drawRTMenuButtons):u.useMessageLog&&u.alwaysShowMessageLogMenu&&u.messageGoesToLog&&(l.callbacks||(l.callbacks=[])).push(this.drawMLMenuButtons);n&&m&&(this.hcJSON.alerts=this.parseAlertObj(m));return l},parseAlertObj:function(){return kb.parseAlertObj.apply(this,
arguments)},drawMLMenuButtons:function(){var a=this.options,e=a.chart,c=this.menu||(this.menu=[]),d=this.toolbar,a=a[U],b;c.push(b=Ka({chart:this,basicStyle:a&&a.outCanvasStyle||this.outCanvasStyle||{},items:[{text:"Show Log",visibility:"hidden",onclick:function(){I&&I.messageLogger&&I.messageLogger.open();b.showItem(4);b.hideItem(3)}},{text:"Hide Log",visibility:"hidden",onclick:function(){I&&I.messageLogger&&I.messageLogger.close();b.showItem(3);b.hideItem(4)}}],position:{x:e.spacingLeft,y:this.chartHeight-
e.spacingBottom+(e.showFormBtn||e.showRestoreBtn?10:-15)}}));b.hideItem(1);this.elements.configureButton=d.add("loggerIcon",function(a,c){return function(){b.visible?b.hide():b.show({x:a,y:c+1})}}(),{x:e.spacingLeft,y:this.chartHeight-e.spacingBottom+(e.showFormBtn||e.showRestoreBtn?10:-15),tooltip:"Show & Hide Message"})},drawRTMenuButtons:function(){var a=this.logic,e=a.chartInstance,c=this.options,d=c.chart,b=d&&d.alwaysShowMessageLogMenu,f=this.menu||(this.menu=[]),n=this.toolbar,c=(c=c[U])&&
c.outCanvasStyle||this.outCanvasStyle||{},g,a=(a=e.isUpdateActive||a.eiMethods.isUpdateActive)&&a.call(e);f.push(g=Ka({chart:this,basicStyle:c,items:[{text:"Stop Update",visibility:a?xb:"hidden",onclick:function(){g.hideItem(0);g.showItem(1);e.stopUpdate()}},{text:"Start Update",visibility:a?"hidden":xb,onclick:function(){g.hideItem(1);g.showItem(0);e.restartUpdate()}},{text:"Clear Chart",onclick:function(){e.clearChart()}},{text:"Show Log",visibility:"hidden",onclick:function(){I&&I.messageLogger&&
I.messageLogger.open();g.showItem(4);g.hideItem(3)}},{text:"Hide Log",visibility:"hidden",onclick:function(){I&&I.messageLogger&&I.messageLogger.close();g.showItem(3);g.hideItem(4)}}],position:{x:d.spacingLeft,y:this.chartHeight-d.spacingBottom+(d.showFormBtn||d.showRestoreBtn?10:-15)}}));g.hideItem(2);g.hideItem(0);g.hideItem(1);g.showItem(a?0:1);!b&&g.hideItem(3);g.hideItem(4);this.elements.configureButton=n.add("configureIcon",function(a,b){return function(){g.visible?g.hide():g.show({x:a,y:b+
1})}}(),{x:d.spacingLeft,y:this.chartHeight-d.spacingBottom+(d.showFormBtn||d.showRestoreBtn?10:-15),tooltip:"Manage RealTime Update"})},latestDataUpdater:function(a){var e=this.chartInstance;a=(a=a.series&&a.series)&&a[0]&&a[0].data;var c,d,b;if((e=e&&e.jsVars&&e.jsVars._rtLastUpdatedData)&&a)for(c=0,d=e.values&&e.values.length;c<d;c+=1)if(b=a[c])b.y=e.values[c],b.displayValue=e.labels[c],b.toolText=e.toolTexts[c]},styleApplicationDefinition_font:function(a,e,c){var d,b=!1,f,n,g,p=this.styleMapForFont;
switch(e){case "caption":a=a.title;break;case "datalabels":a=a.plotOptions.series.dataLabels;break;case "value":a=a.plotOptions.series.dataLabels;break;case "datavalues":a=a.plotOptions.series.dataLabels;b=!0;break;case "subcaption":a=a.subtitle;break;case "tooltip":a=a.tooltip;break;case "trendvalues":a=a.chart.trendPointStyle;break;case "xaxisname":a=a.xAxis.title;break;case "vlinelabels":a={style:a[U].divlineStyle};break;case "gaugelabels":a=a.chart.colorRangeStyle;break;case "tickvalues":a=a.scale.tickValues;
break;case "limitvalues":a=a.scale.limitValues;break;case "openvalue":a=a.chart.openValue;break;case "closevalue":a=a.chart.closeValue;break;case "highlowvalue":a=a.chart.highLowValue;break;case "legend":a={style:a.legend.itemStyle};break;default:a.orphanStyles[e]=a={text:"",style:{}}}if("object"===typeof a)if(a instanceof Array)for(f=0,n=a.length;f<n;f+=1){g=a[f];for(d in c)if(e=d.toLowerCase(),"function"===typeof p[e])p[e](c[d],g,b);Oa(g.style)}else{for(d in c)if(e=d.toLowerCase(),"function"===
typeof p[e])p[e](c[d],a,b);Oa(a.style)}},createGaugeAxis:function(a,e,c){a=a.chart;var d=this.colorManager,b=this.numberFormatter,f=this.isHorizontal?h(a.ticksbelowgauge,a.ticksbelowgraph,this.ticksbelowgauge,1)?3:1:h(a.ticksonright,this.ticksOnRight,1)?2:4,d=q(a.majortmcolor,d.getColor("tickColor")),n=h(a.majortmalpha,100),g=h(h(a.majortmheight)*this.scaleFactor,this.majorTMHeight,6),p=h(a.tickvaluestep,a.tickvaluesstep,1),m=h(a.showtickmarks,1),k=m?h(a.connecttickmarks,this.connectTickMarks,1):
0,l=h(a.showtickvalues,m),t=h(a.majortmthickness,1),r=h(b.getCleanValue(a.upperlimit)),b=h(b.getCleanValue(a.lowerlimit)),u=1==h(a.reversescale,0);this.isHorizontal||(u=!u);p=1>p?1:p;e.scale={min:null,max:null,axisPosition:f,showTickMarks:m,showTickValues:l,showLimits:h(a.showlimits,l),adjustTM:Boolean(h(a.adjusttm,1)),majorTMNumber:h(a.majortmnumber,-1),majorTMColor:L(d,n),majorTMHeight:m?g:0,majorTMThickness:t,minorTMNumber:h(a.minortmnumber,this.minorTMNumber,4),minorTMColor:L(q(a.minortmcolor,
d),h(a.minortmalpha,n)),minorTMHeight:m?h(h(a.minortmheight,a.minortmwidth)*this.scaleFactor,ha(g/2)):0,minorTMThickness:h(a.minortmthickness,1),tickMarkDistance:h(h(a.tickmarkdistance,a.tickmarkgap)*this.scaleFactor,this.tickMarkDistance,3),tickValueDistance:h(h(a.tickvaluedistance,a.displayvaluedistance)*this.scaleFactor,2)+2,placeTicksInside:h(a.placeticksinside,0),placeValuesInside:h(a.placevaluesinside,0),tickValueStep:p,setAdaptiveMin:h(a.setadaptivemin,0),upperLimit:r,lowerLimit:b,upperLimitDisplay:E(a.upperlimitdisplay),
lowerLimitDisplay:E(a.lowerlimitdisplay),reverseScale:u,connectorColor:L(q(a.connectorcolor,d),h(a.connectoralpha,n)),connectorThickness:k?h(a.connectorthickness,t):0,majorTM:[],minorTM:[],trendPoint:[],labels:{style:Y({},c)},tickValues:{style:Y({},c)},limitValues:{style:Y({},c)}}},configureAxis:function(a,e){var c=e.chart,d,b,f,n,g=this.colorManager,p,m,k,l,t,r=this.colorRangeGetter,u=(r=r&&r.colorArr)&&r.length;b=r&&r[0];d=r&&r[u-1];n=this.minDataValue;m=this.maxDataValue;r=a.scale;k=r.lowerLimit;
l=r.upperLimit;var u=this.numberFormatter,w;if(a.series[0]&&(ga(n)&&ga(m)?(k=k<=n?k:b&&b.minvalue,l=l>=m?l:d&&d.maxvalue):(k=h(k,b&&b.minvalue),l=h(l,d&&d.maxvalue)),d=new Hb(k,l,!1,r,this.numberFormatter),d.calculateLimits(this.maxDataValue,this.minDataValue),d.calculateTicks(),r.majorTM=d.getMajorTM(),r.minorTM=d.getMinorTM(),b=r.min=d.min,d=r.max=d.max,e.trendpoints&&(f=e.trendpoints.point)&&0<(p=f.length))){r.trendPoint=[];for(m=0;m<p;m+=1)n=f[m],t=h(n.dashed,0)?fa(q(Math.max(n.dashlen,n.thickness),
4),h(n.dashgap,3),h(n.thickness,1)):"none",k=h(n.startvalue,n.value),l=h(n.endvalue,k),w=k!==l,k<=d&&k>=b&&l<=d&&l>=b&&(r.trendPoint.push({style:Y(Y(a.chart.trendPointStyle.style),{}),startValue:k,endValue:l,tooltext:E(ca(n.markertooltext)),displayValue:E(ca(n.displayvalue),w?J:u.scale(k)),showOnTop:h(n.showontop,c.ticksbelowgauge,c.ticksbelowgraph,1),color:q(n.color,g.getColor("trendLightColor")),alpha:h(n.alpha,99),thickness:h(n.thickness,1),dashStyle:t,useMarker:h(n.usemarker,0),markerColor:L(q(n.markercolor,
n.color,g.getColor("trendLightColor")),100),markerBorderColor:L(q(n.markerbordercolor,n.bordercolor,g.getColor("trendDarkColor")),100),markerRadius:h(h(n.markerradius)*this.scaleFactor,5),markerToolText:pa(n.markertooltext),trendValueDistance:h(h(n.trendvaluedistance,c.trendvaluedistance)*this.scaleFactor,r.tickValueDistance),isZone:w,valueInside:h(n.valueinside,c.placevaluesinside,0),showBorder:h(n.showborder,1),borderColor:L(q(n.bordercolor,n.color,g.getColor("trendDarkColor")),h(n.borderalpha,
n.alpha,100)),radius:h(h(n.radius)*this.scaleFactor),innerRadius:h(h(n.innerradius)*this.scaleFactor)}),xa(q(n.bordercolor,n.color,g.getColor("trendDarkColor"))));"lineargauge"===this.defaultSeriesType&&I.stableSort&&I.stableSort(r.trendPoint,function(a,b){return a.startValue-b.startValue})}},placeTickMark:function(a,e,c){var d=this.smartLabel,b=a.chart,f=this.width-(b.marginRight+b.marginLeft),n=this.height-(b.marginTop+b.marginBottom);a=a.scale;var g=a.min,p=a.max,m=a.axisPosition,k=a.showLimits,
l=a.showTickValues,t=a.tickMarkDistance,r=a.tickValueDistance,u=Math.max(a.majorTMHeight,a.minorTMHeight),w=a.placeTicksInside,C=a.placeValuesInside,F=a.reverseScale,x=0,q=0,z=1,A,B=a.majorTM.length-1,D=2===m||4===m?!1:!0,R=6;e=D?n-c:f-e;c=0;var G=a.tickValues.style,M=a.limitValues.style;a.majorTM[0]&&a.majorTM[1]&&(A=a.majorTM[1].value-a.majorTM[0].value);w||(x+=t+u);if(l||k)for(d.setStyle(M),k=h(parseInt(M.fontSize,10),10),l=h(parseInt(M.lineHeight,10),12),l/=2,C||(x+=r),3===m&&(q=k),D?(n=e-x,f=
f/(p-g)*A/2+6):(f=e-x,n=n/(p-g)*A+l),a.majorTM[0]&&(A=a.majorTM[0],A.isString?A.displayValue&&(g=d.getSmartText(A.displayValue,f,n),A.displayValue=g.text,A._oriText=g.oriText,g.tooltext&&(A.originalText=g.tooltext),D?(c=Math.max(c,g.height),A.labelY=1===m&&!C||3===m&&C?k-g.height:q,R=Math.min(6,g.width/2)):(c=Math.max(c,g.width),A.labelY=k-(F?g.height-l:l),A.labelX=0)):z=0,D&&(F?(A.labelX=R,A.align=gb):(A.labelX=-R,A.align=Wa))),a.majorTM[B]&&(A=a.majorTM[B],A.isString?A.displayValue&&(g=d.getSmartText(A.displayValue,
f,n),A.displayValue=g.text,A._oriText=g.oriText,g.tooltext&&(A.originalText=g.tooltext),D?(c=Math.max(c,g.height),A.labelY=1===m&&!C||3===m&&C?k-g.height:q,R=Math.min(6,g.width/2)):(c=Math.max(c,g.width),A.labelY=k-(F?l:g.height-l),A.labelX=0)):(R=6,B+=1),D&&(F?(A.labelX=-R,A.align=Wa):(A.labelX=R,A.align=gb)));z<B;z++)0===z||z===B-1?(d.setStyle(M),k=h(parseInt(M.fontSize,10),10),l=h(parseInt(M.lineHeight,10),12)):(d.setStyle(G),k=h(parseInt(G.fontSize,10),10),l=h(parseInt(G.lineHeight,10),12)),D&&
(q=1===m&&C||3===m&&!C?k:0),A=a.majorTM[z],A.displayValue&&(A.labelX=h(A.labelX,0),D?(c=Math.max(c,l),A.labelY=q):(g=d.getOriSize(A.displayValue),c=Math.max(c,g.width),A.labelY=k-g.height/2));d=x;C||(x+=c);x=Math.min(e,x);a._labelUsedSpace=C?c:x-d;switch(m){case 1:b.marginTop+=x;break;case 2:b.marginRight+=x;break;case 3:b.marginBottom+=x;break;case 4:b.marginLeft+=x}return x},eiMethods:{feedData:function(a){var e=this.jsVars,c=e.hcObj,d=c.logic,b=c.options&&c.options.series&&c.options.series[0],
f,n;if(this.isActive()&&d&&d.linearDataParser&&(n=d.linearDataParser(a,d.multisetRealtime))){f=this.getDataJSON();c.realtimeUpdate?c.realtimeUpdate(n):c.logic.realtimeUpdate?c.logic.realtimeUpdate(n):b&&b.realtimeUpdate&&b.realtimeUpdate(n);e._rtLastUpdatedData=d.multisetRealtime?n:this.getDataJSON();qa.raiseEvent("realtimeUpdateComplete",{data:a,updateObject:n,prevData:f.values,source:"feedData",url:null},e.fcObj);try{ka.FC_ChartUpdated&&ka.FC_ChartUpdated(e.fcObj.id)}catch(g){setTimeout(function(){throw g;
},0)}return!0}return!1},getData:function(){var a,e=(a=this.jsVars)&&(a=a.hcObj)&&(a=a.options)&&(a=a.series)&&(a=a[0])&&a.data;return(a=e&&e[0])?h(a.value,a.y):null},setData:function(a,e){var c="";if(a&&a.toString||""===a||0===a)c="value="+a.toString();if(e&&e.toString||""===e)c=c+"&label="+e.toString();c&&this.feedData(c)},stopUpdate:function(a){var e=this.__state;clearTimeout(e._toRealtime);e._rtAjaxObj&&e._rtAjaxObj.abort();e._rtPaused=!0;qa.raiseEvent("realimeUpdateStopped",{source:a},this)},
restartUpdate:function(){var a=this.__state;a._rtDataUrl&&a._rtPaused&&(a._rtPaused=!1,a._rtAjaxObj.get(a._rtDataUrl))},isUpdateActive:function(){return!this.__state._rtPaused},clearChart:function(a){var e=this.jsVars,c;a=a&&a.toString&&a.toString();(c=e.hcObj)&&(c=c.options)&&(c=c.scale)&&(e=c.min,isNaN(e)||(this.jsVars.hcObj.fusionCharts.feedData("&showLabel=0&value="+e),I.raiseEvent("chartCleared",{source:a},this,[this.id,a])))},getDataJSON:function(){var a=0,e,c,d=[],b=[],f=[],n=(e=this.jsVars)&&
(e=e.hcObj)&&(e=e.options)&&(e=e.series)&&(e=e[0])&&e.data;for(e=n&&n.length?n.length:0;a<e;a+=1)c=n[a],d.push(h(c.value,c.y)),b.push(c.displayValue||""),f.push(c.toolText||"");return{values:d,labels:b,toolTexts:f}},showLog:function(){return this.feedData("showLog=1")},hideLog:function(){return this.feedData("hideLog=1")},clearLog:function(){return this.feedData("clearLog=1")}},linearDataParser:function(a,e){var c={values:y,colors:y,toolTexts:y,links:function(a){var b=[],c;a=a.replace(Wb,"_fc_escaped_comma_");
b=a.split(",");a=0;for(c=b.length;a<c;a+=1)b[a]=b[a].replace(/_fc_escaped_comma_/ig,",");return b},valueVisibility:y},d=this.chartInstance,b,f,n,g,p,m={},k=0;a=a&&a.toString&&a.toString()||"";b=a.split("&");g=0;for(p=b.length;g<p;g+=1)if(f=b[g].split("="),n=f[1],f=f[0],f!==J&&void 0!==f&&void 0!==n&&(n!==J||e))switch(f=f.toLowerCase(),f){case "label":m.labels=n.split(",");break;case "vline":m.vlines=n.split(",");break;case "vlinelabel":m.vlineLabels=n.split(",");break;case "vlinecolor":m.vlineColors=
n.split(",");break;case "vlinethickness":m.vlineThickness=n.split(",");break;case "vlinedashed":m.vlineDashed=n.split(",");break;case "value":m.values=n.split("|");k=1;break;case "showlabel":m.showLabels=n.split(",");break;case "showvalue":m.valueVisibility=n.split("|");break;case "tooltext":m.toolTexts=n.split("|");break;case "link":m.links=n.split("|");break;case "color":m.colors=n.split("|");break;case "datastamp":m.dataStamp=n;break;case "stopupdate":m.pause="1"==n;break;case "clear":m.clear=
"1"==n;break;default:m[f]=n}if(e)for(m.values||(m.values=[]),g=m.values.length;g--;){for(f in c)m[f]?"function"===typeof c[f]?m[f][g]&&(m[f][g]=c[f].call(this,m[f][g])):m[f][g]&&(m[f][g]=m[f][g].split(c[f])):m[f]=[];k=Ca(m.values[g].length,k)}m.labels&&(k=Ca(k,m.labels.length));m.dimension=k;m.pause&&d.stopUpdate&&d.stopUpdate("datastream");return m},series:function(){var a=this.dataObj,e=this.hcJSON,c=a.pointers&&a.pointers.pointer||a.value,d=a.chart,b=this.colorRangeGetter,f=(b=b&&b.colorArr)&&
b.length,n={},g=n.data=[],p,m;e.legend.enabled=!1;$b(c)||(c="object"!==typeof c?[{value:c}]:[c]);p=0;for(m=this.multiValueGauge?c.length:1;p<m;p++)g.push(this.getPointStub(c[p],p,e,a));e.series[0]=n;f&&this.pointValueWatcher&&h(d.includecolorrangeinlimits,this.includeColorRangeInLimits)&&(a=h(b[0].minvalue),ga(a)&&this.pointValueWatcher(a),a=h(b[f-1].maxvalue),ga(a)&&this.pointValueWatcher(a))},pointValueWatcher:function(a){null!==a&&(this.maxDataValue=this.maxDataValue>a?this.maxDataValue:a,this.minDataValue=
this.minDataValue<a?this.minDataValue:a)},updateSnapPoints:function(a){var e=a.chart,c=this.width,d=this.height,b=e.marginBottom;a=e.marginLeft;var f=e.marginRight,e=e.marginTop,c=Ma(this.snapLiterals||(this.snapLiterals={}),{chartstartx:0,chartstarty:0,chartwidth:c,chartheight:d,chartendx:c,chartendy:d,chartcenterx:c/2,chartcentery:d/2,chartbottommargin:b,chartleftmargin:a,chartrightmargin:f,charttopmargin:e,canvasstartx:a,canvasstarty:e,canvaswidth:c-a-f,canvasheight:d-e-b,canvasendx:c-f,canvasendy:d-
b});c.gaugestartx=c.canvasstartx;c.gaugestarty=c.canvasstarty;c.gaugeendx=c.canvasendx;c.gaugeendy=c.canvasendy;c.gaugecenterx=c.canvascenterx=a+c.canvaswidth/2;c.gaugecentery=c.canvascentery=e+c.canvasheight/2}},v.base);v("linearscalegauge",{spaceManager:function(a,e,c,d){var b=a.chart,f=c-(b.marginRight+b.marginLeft),n=d-(b.marginTop+b.marginBottom),g=b.marginRight,p=b.marginLeft,m=b.marginTop,k=b.marginBottom,l=La(Ca(.3*f,5),f),h=La(Ca(.3*n,5),n),r,u,w=0,C;5>l&&10<c&&(l=f=5,C=g+p,g=b.marginRight=
(c-f)*g/C,p=b.marginLeft=(c-f)*p/C);5>h&&10<d&&(h=n=5,C=m+k,m=b.marginRight=(d-n)*m/C,k=b.marginLeft=(d-n)*k/C);this.manageTitleSpace&&a.title.alignCaptionWithCanvas&&(u=this.manageTitleSpace(a,e,l,h));this.placeTickMark&&(r=this.placeTickMark(a,l,h));this.manageTitleSpace&&!a.title.alignCaptionWithCanvas&&(u=this.manageTitleSpace(a,e,l,h));this.placeDataLabels&&(w=this.placeDataLabels(a,l,h,m,g,k,p,r));this.postDataLabelsPlacement&&this.postDataLabelsPlacement(a,l,h);I.adjustVerticalCanvasMargin(a,
e,d-(b.marginTop+b.marginBottom),a.xAxis);this.fixCaptionAlignment&&this.fixCaptionAlignment(u,a,e,c,0,w)},manageTitleSpace:function(a,e,c,d){c=a.chart;return this.titleSpaceManager(a,e,this.width-(c.marginRight+c.marginLeft),this.height-(c.marginTop+c.marginBottom)-d)},placeDataLabels:function(a,e,c,d,b,f){var n=this.smartLabel;e=a.chart;var g=this.width-(e.marginRight+e.marginLeft),p=this.height-(e.marginTop+e.marginBottom);d=e.marginBottom;b=a.plotOptions.series.dataLabels;var m=b.style,k=h(parseInt(m.lineHeight,
10),12);c=p-c;var p=e.valuePadding,l=0;(a=a.series[0].data[0])&&a.displayValue!==J&&(n.setStyle(m),a.isLabelString?(n=n.getSmartText(a.displayValue,g,c-p),a.displayValue=n.text,n.tooltext&&(a.originalText=n.tooltext)):n=n.getOriSize(a.displayValue)," "===a.displayValue&&(n={height:k}),0<n.height&&(l=n.height+p),l>c&&(a=l-c,p=a<p?p-a:0,l=c),e.marginBottom+=l,b.align=Va,e.valuePadding=d-f+p);return l},postDataLabelsPlacement:function(a){var e=this.smartLabel,c=a.chart,d=this.width-(c.marginRight+c.marginLeft),
b=this.height-(c.marginTop+c.marginBottom);a=a.scale;var f=a.min,n=a.max,g=a.axisPosition,p=a.limitValues.style,c=a.reverseScale,m,k=a.majorTM.length-1,g=2===g||4===g?!1:!0,l=h(parseInt(p.fontSize,10),10),t=h(parseInt(p.lineHeight,10),12)/2;a.majorTM[0]&&a.majorTM[1]&&(m=a.majorTM[1].value-a.majorTM[0].value);g?(b=a._labelUsedSpace,d=d/(n-f)*m/2+6):(d=a._labelUsedSpace,b=b/(n-f)*m+t);e.setStyle(p);a.majorTM[0]&&a.majorTM[0].isString&&(m=a.majorTM[0],m.displayValue&&(f=e.getSmartText(m._oriText,d,
b),m.displayValue=f.text,f.tooltext&&(m.originalText=f.tooltext),g?(f=Math.min(6,f.width/2),m.labelX=c?f:-f):m.labelY=l-(c?f.height-t:t)));a.majorTM[k]&&a.majorTM[k].isString&&(m=a.majorTM[k],m.displayValue&&(f=e.getSmartText(m._oriText,d,b),m.displayValue=f.text,f.tooltext&&(m.originalText=f.tooltext),g?(f=Math.min(6,f.width/2),m.labelX=c?-f:f):m.labelY=l-(c?t:f.height-t)))},getPointStub:function(a,e,c,d,b){var f=c[U];e=this.colorManager;var n=this.numberFormatter;c=n.getCleanValue(a.value);var g=
E(a.link),p=E(ca(q(a.tooltext,f.tooltext))),f=E(ca(a.displayvalue)),m=n.dataLabels(c),k,n=d.chart;d=h(n.showhovereffect);var l,t,r;this.showTooltip?void 0!==p?(b=ab(p,[1,2],{formattedValue:m},a,n),r=!0):b=null===m?!1:void 0!==b?b+this.tooltipSepChar+m:m:b=!1;a=h(a.showvalue,this.showValues)?void 0!==f?f:E(m," "):J;m=q(f,m,J);this.pointValueWatcher&&this.pointValueWatcher(c);this.getPointColorObj&&(k=this.getPointColorObj(n,c));0!==d&&(d||n.gaugefillhovercolor||n.plotfillhovercolor||n.gaugefillhoveralpha||
n.plotfillhoveralpha||0===n.gaugefillhoveralpha)&&(d=!0,f=q(n.gaugefillhovercolor,n.plotfillhovercolor,"{dark-10}"),n=h(n.gaugefillhoveralpha,n.plotfillhoveralpha),l={},t={},t.fluidColor=k.code,t.fluidAlpha=k.alpha,f=(p=/\{/.test(f))?e.parseColorMix(E(k.code,J),f)[0]:f,l.fluidColor=f,l.fluidAlpha=h(n,k.alpha));return{y:c,displayValue:a,displayValueArgs:m,toolText:b,isLabelString:r,color:L(k.code,k.alpha),link:g,colorRange:k,doNotSlice:!0,rolloverProperties:{enabled:d,hoverAttr:l,outAttr:t}}},getPointColorObj:function(a,
e){return this.colorRangeGetter.getColorObj(e)}},v.gaugebase);v("led",{singleValued:!0,isDataLabelBold:!0,preSeriesAddition:function(a,e){var c=e.chart,d=a.chart;d.ledGap=h(c.ledgap,2);d.ledSize=h(c.ledsize,2);d.plotHoverEffect=h(c.showhovereffect,0)}},v.linearscalegauge);v("vled",{friendlyName:"Vertical LED Gauge",defaultSeriesType:"led",defaultPlotShadow:1,standaloneInit:!0,realtimeEnabled:!0,chartleftmargin:15,chartrightmargin:15,charttopmargin:10,chartbottommargin:10,showTooltip:0,connectTickMarks:0,
rendererId:"led",creditLabel:ja},v.led);v("hled",{friendlyName:"Horizontal LED Gauge",defaultPlotShadow:1,standaloneInit:!0,creditLabel:ja,isHorizontal:!0,rendererId:"led",connectTickMarks:1,realtimeEnabled:!0},v.vled);v("bullet",{creditLabel:ja,defaultSeriesType:"bullet",defaultPlotShadow:1,drawAnnotations:!0,realtimeEnabled:!1,subTitleFontSizeExtender:0,subTitleFontWeight:0,connectTickMarks:0,minorTMNumber:0,majorTMHeight:4,chartleftmargin:10,chartrightmargin:15,charttopmargin:5,chartbottommargin:5,
isDataLabelBold:!0,defaultPaletteOptions:Ma(Y({},ya),{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:["0,100","0,100","0,100","0,100","0,100"],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]}),preSeriesAddition:function(){var a=this.dataObj.chart;this.hcJSON.chart.colorRangeBorderThickness=
h(a.showgaugeborder,a.showcolorrangeborder,0)?h(a.colorrangeborderthickness,a.gaugeborderthickness,this.gaugeBorderThickness,2):0},postSeriesAddition:function(a){var e=this.dataObj,c=this.colorManager,d=a.series[0],b=e.chart,f=h(b.showhovereffect),n={value:e.target},g=h(b.targetthickness,3),p=q(b.targetcolor,c.getColor("plotFillColor")),m=E(b.targetalpha,100),k=L(p,m),l=h(b.targetfillpercent,60),t,r,u,w;0!==f&&(f||b.targethovercolor||b.targethoveralpha||0===b.targethoveralpha||b.targethoverthickness||
0===b.targethoverthickness)&&(f=!0,u={},w={},r=h(b.targethoverthickness,g+2),g!==r&&(u["stroke-width"]=r,w["stroke-width"]=g),t=q(b.targethovercolor,"{dark-10}"),m=h(b.targethoveralpha,m),r&&(w.stroke=k,r=/\{/.test(t),u.stroke=L(r?c.parseColorMix(p,t)[0]:t,m)),t=!!h(b.showhoveranimation,1));a=this.getPointStub(n,1,a,e);delete a.rolloverProperties;d.data.push(Y(a,{borderColor:k,borderWidth:g,targetThickness:g,targetFillPercent:l,rolloverProperties:{enabled:f,hoverAttr:u,outAttr:w,showHoverAnimation:t}}))},
getPointStub:function(a,e,c,d,b){var f=this.numberFormatter,n=this.colorManager,g=c[U];c=f.getCleanValue(a.value);var p=E(a.link),m=E(ca(e?g.targettooltext:g.tooltext)),k=E(ca(a.displayvalue)),l=f.dataLabels(c),g=this.colorRangeGetter.getColorObj(c),t=d.chart,r=e?f.dataLabels(f.getCleanValue(d.value)):l,u=e?c:f.getCleanValue(d.target),w=e?l:f.dataLabels(u),C=q(t.plotfillcolor,n.getColor("plotFillColor"));e=h(t.plotasdot,0);var f=h(t.showhovereffect),F=h(t.showplotborder,0),x=F?h(t.plotborderthickness,
1):0,W=h(t.plotfillpercent,e?25:40),z,A,B,D;d=this.showTooltip?void 0!==m?ab(m,[1,2,26,27],{formattedValue:r,targetValue:u,targetDataValue:w},d,t):null===l?!1:void 0!==b?b+this.tooltipSepChar+l:l:J;a=h(a.showvalue,this.showValues)?void 0!==k?k:E(l," "):J;m=q(k,l,J);this.pointValueWatcher&&this.pointValueWatcher(c);/\{/.test(b=q(t.plotbordercolor,"{dark-20}"))&&(A=!0,b=n.parseColorMix(C,b).join());u=h(t.plotfillalpha,100);k=L(C,u);r=h(t.plotborderalpha,100);l=L(b,r);0!==f&&(f||t.plotfillhovercolor||
t.plotfillhoveralpha||0===t.plotfillhoveralpha||t.showplotborderonhover||0===t.showplotborderonhover||t.plotborderhovercolor||t.plotborderhoverthickness||0===t.plotborderhoverthickness||t.plotborderhoveralpha||0===t.plotborderhoveralpha)&&(f=!0,B={},D={},z=q(t.plotfillhovercolor,"{dark-10}"),u=h(t.plotfillhoveralpha,u),z=/\{/.test(z)?n.parseColorMix(C,z)[0]:z,B.fill=L(z,u),D.fill=k,C=h(t.showplotborderonhover),void 0===C&&(C=t.plotborderhoverthickness||t.plotborderhovercolor||t.plotborderhoveralpha?
1:F),C=C?h(t.plotborderhoverthickness,x||1):0,x!==C&&(B["stroke-width"]=C,D["stroke-width"]=x),F=q(t.plotborderhovercolor,"{dark-10}"),r=h(t.plotborderhoveralpha,r),C&&(D.stroke=l,C=/\{/.test(F),B.stroke=L(C?n.parseColorMix(A?z:b,F)[0]:F,r)),z=!!h(t.showhoveranimation,1));return{y:c,displayValue:a,displayValueArgs:m,toolText:d,plotAsDot:e,plotFillPercent:W,color:k,borderColor:l,borderWidth:x,link:p,colorRange:g,doNotSlice:!0,rolloverProperties:{enabled:f,hoverAttr:B,outAttr:D,showHoverAnimation:z}}}},
v.linearscalegauge);v("vbullet",{friendlyName:"Vertical Bullet Gauge",creditLabel:ja,defaultSeriesType:"bullet",gaugeType:4,ticksOnRight:0,rendererId:"bullet",standaloneInit:!0},v.bullet);v("hbullet",{friendlyName:"Horizontal Bullet Gauge",creditLabel:ja,defaultSeriesType:"hbullet",gaugeType:1,standaloneInit:!0,isHorizontal:!0,defaultCaptionPadding:5,rendererId:"hbullet",placeDataLabels:function(a,e){var c=this.smartLabel,d=a.chart,b=this.width-(d.marginRight+d.marginLeft),f=this.height-(d.marginTop+
d.marginBottom),n=a.plotOptions.series.dataLabels,g=n.style,p=h(parseInt(g.fontSize,10),10),b=b-e,m=d.valuePadding,k=0,l=a.series[0].data[0];l&&l.displayValue!==J&&(c.setStyle(g),l.isLabelString?(c=c.getSmartText(l.displayValue,b-m,f),l.displayValue=c.text,c.tooltext&&(l.originalText=c.tooltext)):c=c.getOriSize(l.displayValue),0<c.height&&(k=c.width+m),k>b&&(k=b),d.marginRight+=k,n.align=Wa,n.x=0,n.y=p-c.height/2);return k},manageTitleSpace:function(a,e,c){var d=a.chart,b=e.chart,f=this.width-(d.marginRight+
d.marginLeft),d=this.height-(d.marginTop+d.marginBottom),n=h(b.captionpadding,2),b=h(h(b.captiononright,0)?b.canvasrightmargin:b.canvasleftmargin);ga(b)&&(b-=n);c=h(b,f-c);return Fb(a,e,c,d,this.defaultCaptionPadding,this.width,this.height,this)},fixCaptionAlignment:function(a,e,c,d,b,f){d=e.chart;var n=c.chart,g=h(n.canvasleftmargin),n=h(n.canvasrightmargin);d.marginRight+=a.right;d.marginLeft+=a.left;ga(g)&&(d.spacingLeft=d.marginLeft=g,d.spacingLeft-=a.left+0-1);ga(n)&&(d.spacingRight=d.marginRight=
n,d.spacingRight-=a.right+0-1);Gb(e,c,this.width,b,f,this)}},v.bullet);v("lineargauge",{creditLabel:ja,defaultSeriesType:"lineargauge",multiValueGauge:!0,realtimeEnabled:!0,gaugeType:1,chartleftmargin:15,chartrightmargin:15,charttopmargin:10,chartbottommargin:10,colorRangeFillMix:"{light-10},{dark-20},{light-50},{light-85}",colorRangeFillRatio:"0,8,84,8",isDataLabelBold:!0,eiMethods:Y(Y({},v.gaugebase.eiMethods),{getData:function(a){var e,c=(e=this.jsVars)&&(e=e.hcObj)&&(e=e.options)&&(e=e.series)&&
(e=e[0])&&e.data;e=c&&c.length?c.length:0;return void 0!==a&&0<a&&a<=e?(a=c[a-1],h(a.value,a.y)):null},getDataForId:function(a){var e,c=(e=this.jsVars)&&(e=e.hcObj)&&e.dataById;return c[a]&&c[a].point?(a=c[a].point,h(a.value,a.y)):null},setData:function(a,e,c){var d="",b,f=(b=this.jsVars)&&(b=b.hcObj)&&(b=b.options)&&(b=b.series)&&(b=b[0])&&b.data;b=f&&f.length||0;f=0;if(0<a&&a<=b&&(e&&e.toString()||""===e||0===e)){for(f=a;--f;)d+="|";a="value="+(d+e);if(c&&c.toString||""===c)a+="&label="+d+c.toString();
this.feedData(a)}},setDataForId:function(a,e,c){var d,b=(d=this.jsVars)&&(d=d.hcObj)&&d.dataById;b[a]&&void 0!==b[a].index&&this.setData(b[a].index+1,e,c)}}),placeDataLabels:function(a,e,c,d,b,f,n,g){d=a.scale;b=this.smartLabel;f=a.chart;n=this.width-(f.marginRight+f.marginLeft);var p=this.height-(f.marginTop+f.marginBottom),m,k=a.plotOptions.series.dataLabels;m=k.style;var l=a.scale&&a.scale.labels&&a.scale.labels.style,t=h(parseInt(m.lineHeight,10),12);c=p-c;e=n-e;var r=f.valuePadding,u,w=0,C=0,
F=0,x=0,q=0,z=0,A=a.series&&a.series[0]&&a.series[0].data||[];a=a.scale&&a.scale.trendPoint||[];var B=0,D=A.length,R;for(b.setStyle(m);B<D;B+=1)(R=A[B])&&R.displayValue!==J&&(u=r+R.radius*(3>=R.sides?.5:R.sides%2?1.1-1/R.sides:1),f.valuePadding=Math.max(f.valuePadding,u),this.isHorizontal?(R.isLabelString?(m=b.getSmartText(R.displayValue,n,c-r),R.displayValue=m.text,m.tooltext&&(R.originalText=m.tooltext)):m=b.getOriSize(R.displayValue)," "===R.displayValue&&(m={height:t}),0<m.height&&(w=m.height+
u),w>c&&(w=c),f.pointerOnOpp?(3===d.axisPosition&&(x=Math.max(g,x),w=Math.max(g,w)),C=Math.max(C,w)):(1===d.axisPosition&&(q=Math.max(g,q),w=Math.max(g,w)),F=Math.max(w,F))):(R.isLabelString?(m=b.getSmartText(R.displayValue,e-r,p),R.displayValue=m.text,m.tooltext&&(R.originalText=m.tooltext)):m=b.getOriSize(R.displayValue),0<m.width&&(z=m.width+u),z>e&&(z=e),f.pointerOnOpp?2===d.axisPosition?(f.marginRight-=g,f.marginRight+=Math.max(g,z)):f.marginRight+=z:4===d.axisPosition?(f.marginLeft-=g,f.marginLeft+=
Math.max(g,z)):f.marginLeft+=z),k.align=Va);b.setStyle(l);B=0;for(D=a.length;B<D;B+=1)(R=a[B])&&R.displayValue!==J&&(u=r+.5*R.markerRadius,f.valuePadding=Math.max(u,f.valuePadding),this.isHorizontal&&(m=b.getOriSize(R.displayValue),0<m.height&&(w=m.height+u),w>c&&(w=c),R.showOnTop?(1===d.axisPosition&&(q=Math.max(g,q),w=Math.max(g,w)),F=Math.max(F,w)):(3===d.axisPosition&&(x=Math.max(g,x),w=Math.max(g,w)),C=Math.max(w,C)),k.align=Va));this.isHorizontal&&(f.marginBottom+=C-x,f.marginTop+=F-q,w=F+C-
x-q);return w},preSeriesAddition:function(a,e){var c=a.chart,d=e.chart,b=this.colorManager,f=a.scale;c.pointerRadius=h(d.pointerradius,10);c.pointerBgColor=q(d.pointerbgcolor,d.pointercolor,b.getColor("pointerBgColor"));c.pointerBgAlpha=h(d.pointerbgalpha,100);c.pointerBorderColor=q(d.pointerbordercolor,b.getColor("pointerBorderColor"));c.pointerBorderThickness=h(d.pointerborderthickness,1);c.pointerBorderAlpha=h(d.pointerborderalpha,100);c.pointerSides=h(d.pointersides,3);c.showGaugeLabels=h(d.showgaugelabels,
1);c.showPointerShadow=h(d.showpointershadow,d.showshadow,1);c.valuePadding=h(d.valuepadding,2);this.isHorizontal?(c.pointerOnOpp=h(d.pointerontop,1==f.axisPosition?0:1)?0:1,c.gaugeType=f.reverseScale?2:1,c.valueAbovePointer=h(d.valueabovepointer,c.pointerOnOpp?0:1,1),c.valueInsideGauge=c.valueAbovePointer===c.pointerOnOpp?1:0):(c.pointerOnOpp=h(d.pointeronright,2==f.axisPosition?0:1),c.gaugeType=f.reverseScale?4:3)},getPointStub:function(a,e,c,d,b){var f=this.numberFormatter,n=this.colorManager,
g=c.chart,p=c[U];c=f.getCleanValue(a.value);var m=E(a.link),k=E(ca(q(a.tooltext,p.tooltext))),l=E(ca(a.displayvalue)),t=f.dataLabels(c),f=this.colorRangeGetter.getColorObj(c);d=d.chart;var p=h(a.alpha,a.bgalpha,g.pointerBgAlpha),r=q(a.color,a.bgcolor,g.pointerBgColor),u=L(r,p),w=h(a.showborder,d.showplotborder,1),C=h(a.borderalpha,g.pointerBorderAlpha),F=q(a.bordercolor,g.pointerBorderColor),x=L(F,C),W=w?h(a.borderthickness,g.pointerBorderThickness):0,z=h(a.radius,g.pointerRadius),A=h(a.showhovereffect,
d.showhovereffect),B,D,R,G,M,ma,N,H,K=!1,T=!1,y,O,Q;this.showTooltip?void 0!==k?(b=ab(k,[1,2],{formattedValue:t},a,d),T=!0):b=null===t?!1:void 0!==b?b+this.tooltipSepChar+t:t:b=J;h(a.showvalue,this.showValues)?void 0!==l?(k=l,K=!0):k=E(t," "):k=J;t=q(l,t,J);l=h(a.sides,g.pointerSides);3>l&&(l=3);this.pointValueWatcher&&this.pointValueWatcher(c);0!==A&&(A||a.bghovercolor||d.pointerbghovercolor||d.plotfillhovercolor||a.bghoveralpha||d.pointerbghoveralpha||d.plotfillhoveralpha||0===a.bghoveralpha||0===
d.pointerbghoveralpha||a.showborderonhover||d.showborderonhover||0===a.showborderonhover||0===d.showborderonhover||a.borderhoverthickness||d.pointerborderhoverthickness||0===a.borderhoverthickness||0===d.pointerborderhoverthickness||a.borderhovercolor||d.pointerborderhovercolor||a.borderhoveralpha||d.pointerborderhoveralpha||0===a.borderhoveralpha||0===d.pointerborderhoveralpha||a.hoverradius||d.pointerhoverradius||0===a.hoverradius||0===d.pointerhoverradius)&&(A=!0,R=q(a.bghovercolor,d.pointerbghovercolor,
d.plotfillhovercolor,"{dark-10}"),G=h(a.bghoveralpha,d.pointerbghoveralpha,d.plotfillhoveralpha),B=h(a.showborderonhover,d.showborderonhover),void 0===B&&(B=a.borderhoverthickness||0===a.borderhoverthickness||a.borderhovercolor||a.borderhoveralpha||0===a.borderhoveralpha?1:w),w=q(a.borderhovercolor,d.pointerborderhovercolor,"{dark-10}"),ma=h(a.borderhoveralpha,d.pointerborderhoveralpha),M=B?h(a.borderhoverthickness,d.pointerborderhoverthickness,W||1):0,D=h(a.hoverradius,d.pointerhoverradius,z+2),
N=!!h(a.showhoveranimation,d.showhoveranimation,1),B={},O={},W!==M&&(B["stroke-width"]=M,O["stroke-width"]=W),O.fill=u,R=(H=/\{/.test(R))?n.parseColorMix(r,R)[0]:R,B.fill=L(R,h(G,p)),M&&(O.stroke=x,r=/\{/.test(w),B.stroke=L(r?n.parseColorMix(F,w)[0]:w,h(ma,C))),D&&(N?(y={r:D},Q={r:z}):(B.r=D,O.r=z)));return{y:c,displayValue:k,displayValueArgs:t,id:q(a.id,"pointer_"+e),editMode:h(a.editmode,d.editmode),isLabelString:K,isTooltextString:T,toolText:b,_tooltext:a.tooltext,plotFillPercent:q(d.plotfillpercent,
40),bgalpha:p,color:u,borderAlpha:h(d.showplotborder,1)?g.pointerBorderAlpha:0,borderColor:x,borderWidth:W,radius:z,sides:l,link:m,colorRange:f,doNotSlice:!0,tooltipConstraint:this.tooltipConstraint,rolloverProperties:{enabled:A,hoverAttr:B,hoverAnimAttr:y,outAttr:O,outAnimAttr:Q}}}},v.linearscalegauge);v("hlineargauge",{friendlyName:"Horizontal Linear Gauge",creditLabel:ja,defaultSeriesType:"lineargauge",rendererId:"hlinear",standaloneInit:!0,isHorizontal:!0},v.lineargauge);v("vlineargauge",{friendlyName:"Vertical Linear Gauge",
creditLabel:ja,defaultSeriesType:"lineargauge",connectTickMarks:0,standaloneInit:!0},v.lineargauge);v("thermometer",{friendlyName:"Thermometer Gauge",creditLabel:ja,defaultSeriesType:"thermometer",rendererId:"thermometer",connectTickMarks:0,tickMarkDistance:0,standaloneInit:!0,realtimeEnabled:!0,isDataLabelBold:!0,defaultPlotShadow:0,alignCaptionWithCanvas:0,defaultPaletteOptions:Ma(Y({},ya),{thmBorderColor:["545454","60634E","415D6F","845001","68001B"],thmFillColor:["999999","ADB68F","A2C4C8","FDB548",
"FF7CA0"]}),preSeriesAddition:function(a,e){var c=a.chart,d=e.chart,b=this.colorManager,f;f=this.numberFormatter;var n=h(d.showhovereffect);c.thmOriginX=h(d.thmoriginx,d.gaugeoriginx);c.thmOriginY=h(d.thmoriginy,d.gaugeoriginy);c.thmBulbRadius=h(f.getCleanValue(d.thmbulbradius,!0));c.thmHeight=h(f.getCleanValue(h(d.thmheight,d.gaugeheight),!0));c.gaugeFillColor=q(d.gaugefillcolor,d.thmfillcolor,b.getColor("thmFillColor"));c.gaugeFillAlpha=h(d.gaugefillalpha,d.thmfillalpha,Ia);0!==n&&(n||d.thmfillhovercolor||
d.plotfillhovercolor||d.thmfillhoveralpha||d.plotfillhoveralpha||0===d.thmfillhoveralpha)&&(c.plotHoverEffects={},c.plotHoverEffects.enabled=!0,f=q(d.thmfillhovercolor,d.plotfillhovercolor,"{dark-10}"),c.plotHoverEffects.thmFillHoverColor=/\{/.test(f)?b.parseColorMix(c.gaugeFillColor,f)[0]:f,c.plotHoverEffects.thmFillHoverAlpha=q(d.thmfillhoveralpha,d.plotfillhoveralpha,c.gaugeFillAlpha));f=h(d.showgaugeborder,1)?h(d.gaugeborderalpha,40):0;c.gaugeBorderColor=L(q(d.gaugebordercolor,b.getColor("thmBorderColor")),
f);c.gaugeBorderThickness=h(d.gaugeborderthickness,1);c.thmGlassColor=q(d.thmglasscolor,da(c.gaugeFillColor,30));c.use3DLighting=!h(d.use3dlighting,1)},getPointColorObj:function(a){return{code:q(a.gaugefillcolor,a.thmfillcolor,this.colorManager.getColor("thmFillColor")),alpha:h(a.gaugefillalpha,a.thmfillalpha,100)}},getPointStub:v.linearscalegauge,placeDataLabels:v.linearscalegauge,manageTitleSpace:v.linearscalegauge,spaceManager:function(a,e,c,d){var b=a.chart,f=c-(b.marginRight+b.marginLeft);d-=
b.marginTop+b.marginBottom;var n=b.marginRight,g=b.marginLeft,p=b.marginTop,m=b.marginBottom,k=.3*f,l=.3*d,t=b.thmOriginX,r=b.thmOriginY,u=b.thmBulbRadius,w=b.thmHeight,C=ga(t),F=ga(r),x=ga(u),q=ga(w),z=4===a.scale.axisPosition,A=0,B=0,D,R,G=0;a.title.alignWithCanvas||(d-=G=this.manageTitleSpace(a,e,0,d/2));this.placeTickMark&&(f-=A=this.placeTickMark(a,2*h(u,4),l));x||(b.thmBulbRadius=u=Math.min(f/2,.13*h(w,d)),x=!0);x&&(R=.643*u,k=D=2*R,x=(2*u-D)/2,C?b.marginLeft=z?b.marginLeft+(B=t-R-A):b.marginLeft+
(B=t-R):z?(b.marginLeft+=(c-g-n-x-D)/2-A/2,b.marginRight-=(c-g-n-x-D)/2-A/2,b.marginRight+=B=Math.min(u,f/2)-R):(b.marginLeft+=(c-g-n-x-D)/2-A/2,b.marginRight-=(c-g-n-x-D)/2-A/2,b.marginLeft+=B=Math.min(u,f/2)-R),f-=B);b.marginRight+=f-D;a.title.alignWithCanvas&&(d-=G=this.manageTitleSpace(a,e,0,d/2));F&&(l=r-G+u);this.placeDataLabels&&(d-=this.placeDataLabels(a,k,l,p,n,m,g));q||(b.thmHeight=F?w=Math.max(r-G+u-R,3*u):w=Math.max(d-R,3*u));b.marginTop=F?b.marginTop+(r-G+u-w):b.marginTop+(d-w);e=1.766*
u;b.marginBottom+=e;b.valuePadding+=e;b.thmHeight=b.plotHeight=w-e;this.postDataLabelsPlacement&&this.postDataLabelsPlacement(a,k,l);b.marginBottom+=F?d-r-u+G:0}},v.gaugebase);v("cylinder",{friendlyName:"Cylinder Gauge",creditLabel:ja,defaultSeriesType:"cylinder",connectTickMarks:0,rendererId:"cylinder",tickMarkDistance:2,standaloneInit:!0,charttopmargin:10,chartbottommargin:10,chartrightmargin:10,chartleftmargin:10,isDataLabelBold:!0,realtimeEnabled:!0,alignCaptionWithCanvas:0,defaultPaletteOptions:Ma(Y({},
ya),{cylFillColor:["CCCCCC","ADB68F","E1F5FF","FDB548","FF7CA0"],periodColor:["EEEEEE","ECEEE6","E6ECF0","FFF4E6","FFF2F5"]}),preSeriesAddition:function(a,e){var c=a.chart,d=e.chart,b=this.colorManager,f=h(d.showhovereffect);c.cylFillColor=q(d.gaugefillcolor,d.cylfillcolor,b.getColor("cylFillColor"));c.cylFillAlpha=q(d.gaugefillalpha,d.cylfillalpha,100);0!==f&&(f||d.cylfillhovercolor||d.plotfillhovercolor||d.cylfillhoveralpha||d.plotfillhoveralpha||0===d.cylfillhoveralpha)&&(c.plotHoverEffects={},
c.plotHoverEffects.enabled=!0,f=q(d.cylfillhovercolor,d.plotfillhovercolor,"{dark-10}"),c.plotHoverEffects.cylFillHoverColor=/\{/.test(f)?b.parseColorMix(c.cylFillColor,f)[0]:f,c.plotHoverEffects.cylFillHoverAlpha=q(d.cylfillhoveralpha,d.plotfillhoveralpha,c.cylFillAlpha));c.cylGlassColor=q(d.cylglasscolor,"FFFFFF");c.cyl3DLighting=h(d.use3dlighting,"1")},getPointColorObj:function(a){return{code:q(a.gaugefillcolor,a.thmfillcolor,this.colorManager.getColor("cylFillColor")),alpha:h(a.gaugefillalpha,
a.thmfillalpha,100)}},getPointStub:v.linearscalegauge,placeDataLabels:v.linearscalegauge,manageTitleSpace:v.linearscalegauge,spaceManager:function(a,e,c,d){var b=a.chart,f=e.chart,n=c-(b.marginRight+b.marginLeft),g=d-(b.marginTop+b.marginBottom),p=b.marginRight,m=b.marginLeft,k=b.marginTop,l=b.marginBottom,t=.2*n,r=.3*g,u=h(f.cylyscale,30),w=this.scaleFactor,C=this.numberFormatter;a.title.alignWithCanvas||(g-=this.manageTitleSpace(a,e,n/2,g/2));this.placeTickMark&&(n-=this.placeTickMark(a,t,r));this.placeDataLabels&&
(g-=this.placeDataLabels(a,t,r,k,p,l,m)+8,b.valuePadding+=8);this.postDataLabelsPlacement&&this.postDataLabelsPlacement(a,t,r);b.cylHeight=E(f.cylheight);if(50<u||0>u)u=30;b.cylYScale=u/=100;p=Math.max(La(n,1.2*g)/2,5);p=h(E(C.getCleanValue(f.cylradius,!0))*w,p);b.marginLeft=h(E(f.cyloriginx)*w,b.marginLeft);b.marginLeft+=n/2-p;b.marginRight=c-(b.marginLeft+2*p);a.title.alignWithCanvas&&(g-=this.manageTitleSpace(a,e,n/2,g/2));a=g-p*u*2;C=h(E(C.getCleanValue(f.cylheight,!0))*w,a);u=b.yScaleRadius=
p*u;a=b.cylinderTotalHeight=2*u+C;g=g-a+b.marginTop;b.marginTop=h(E(f.cyloriginy)*w-C,u+g);b.marginBottom=d-(b.marginTop+C);b.cylRadius=p;b.cylHeight=C;b.yScaleRadius=u}},v.gaugebase);v("angulargauge",{friendlyName:"Angular Gauge",standaloneInit:!0,drawAnnotations:!0,defaultSeriesType:"angulargauge",creditLabel:ja,rendererId:"angular",isAngular:!0,eiMethods:v.lineargauge.eiMethods,multiValueGauge:!0,realtimeEnabled:!0,defaultPaletteOptions:Ma(Y({},ya),{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"]}),subTitleFontSizeExtender:0,charttopmargin:5,chartrightmargin:5,chartbottommargin:5,chartleftmargin:5,defaultPlotShadow:1,gaugeBorderColor:"{dark-20}",gaugeBorderThickness:1,updateSnapPoints:function(a){v.gaugebase.updateSnapPoints.apply(this,
arguments);var e=a.series[0],c=this.snapLiterals;c.gaugestartangle=a.chart.gaugeStartAngle/hb;c.gaugeendangle=a.chart.gaugeEndAngle/hb;c.chartcenterx=a.chart.origW/2;c.chartcentery=a.chart.origH/2;c.gaugecenterx=e.gaugeOriginX;c.gaugecentery=e.gaugeOriginY;c.gaugeinnerradius=e.gaugeInnerRadius;c.gaugeouterradius=e.gaugeOuterRadius;c.dial=function(c){var b=a.series[0],f=c[1]||c[0],e=(c=b.data[Number(c[0])||0])&&c.graphic;if(e){e=e.matrix;switch(f){case "startx":b=b.gaugeOriginX+e.x(-c.rearExtension,
0);break;case "starty":b=b.gaugeOriginY+e.y(-c.rearExtension,0);break;case "endx":b=b.gaugeOriginX+e.x(c.radius,0);break;case "endy":b=b.gaugeOriginY+e.y(c.radius,0);break;default:b=0}return b}return 0}},preSeriesAddition:function(a,e){var c=e.chart,d=h(c.gaugescaleangle,180),b=h(c.gaugestartangle),c=h(c.gaugeendangle),f=ga(b),n=Na?.001:.01,g=ga(c);if(360<d||-360>d)d=0<d?360:-360;if(360<c||-360>c)c%=360;if(360<b||-360>b)b%=360;if(f&&g){if(d=b-c,360<d||-360>d)d%=360,c=b-d}else if(f){if(c=b-d,360<c||
-360>c)c%=360,b+=0<c?-360:360}else if(g){if(b=c+d,360<b||-360>b)b%=360,c+=0<b?-360:360}else 360===d?(b=180,c=-180):-360===d?c=b=-180:(b=90+d/2,c=b-d);360===Math.abs(d)&&(d+=0<d?-n:n,c=b-d);c=360-c;b=360-b;if(360<b||360<c)b-=360,c-=360;a.chart.gaugeStartAngle=b*hb;a.chart.gaugeEndAngle=c*hb;a.chart.gaugeScaleAngle=-d*hb},series:function(a,e){var c={data:[],colorByPoint:!0},d=a.chart,b=this.colorRangeGetter,f=(b=b&&b.colorArr)&&b.length,n=e[U],g=this.numberFormatter,p=this.colorManager,m,k,l,t=c.showValue=
h(d.showvalue,d.showrealtimevalue,0),r=this.scaleFactor,u=0,w=a.dials&&a.dials.dial,C,F,x=h(d.showhovereffect),W,z,A,B,D,R,G,M,ma,N,H,K,T,y,O=h(d.editmode,0),Q,S,v,P,I,ba,sa,Z,aa,ea,oa;Q=u=h(E(d.pivotradius)*r,5);c.pivotRadius=Q;S=0;v=w&&w.length;ea=0;v||(S=-1,v=0,w=[]);for(0!==x&&(x||d.dialborderhovercolor||d.dialborderhoveralpha||0===d.dialborderhoveralpha||d.dialborderhoverthickness||0===d.dialborderhoverthickness||d.dialbghovercolor||d.plotfillhovercolor||d.dialbghoveralpha||d.plotfillhoveralpha||
0===d.dialbghoveralpha)&&(x=1);S<v;S+=1){P=w[S]||{};m=g.getCleanValue(P.value);this.pointValueWatcher&&this.pointValueWatcher(m);I=h(P.rearextension,0);u=Math.max(u,I*r);l=g.dataLabels(m);ba=E(l,J);Z=h(P.showvalue,t);aa=h(E(P.valuey)*r);sa=q(P.tooltext,P.hovertext)?!0:!1;Z&&!ga(aa)&&(ea+=1);k=(k=E(ca(q(P.tooltext,P.hovertext,n.tooltext))))?ab(k,[1,2],{formattedValue:l},P,d):ba;T=q(P.color,P.bgcolor,p.getColor("dialColor"));D=h(P.alpha,P.bgalpha,100);y=X({FCcolor:{color:T,alpha:D,angle:90}});C=q(P.bordercolor,
p.getColor("dialBorderColor"));oa=h(P.borderalpha,100);l=L(C,oa);F=h(P.borderthickness,1);M=h(P.radius);ma=h(P.basewidth);H=h(P.topwidth,0);N=h(P.baseradius,0);W=h(P.showhovereffect,x);if(0!==W&&(W||P.borderhovercolor||P.borderhoveralpha||0===P.borderhoveralpha||P.borderhoverthickness||0===P.borderhoverthickness||P.bghovercolor||P.bghoveralpha||0===P.bghoveralpha)){W=!0;K={};G={};z=q(P.borderhovercolor,d.dialborderhovercolor,"{dark-10}");B=h(P.borderhoveralpha,d.dialborderhoveralpha,oa);if(A=h(P.borderhoverthickness,
d.dialborderhoverthickness,F))K.stroke=l,R=/\{/.test(z),G.stroke=L(R?p.parseColorMix(C,z)[0]:z,B);A!==F&&(G["stroke-width"]=A,K["stroke-width"]=F);C=q(P.bghovercolor,d.dialbghovercolor,d.plotfillhovercolor,"{dark-10}");D=h(P.bghoveralpha,d.dialbghoveralpha,d.plotfillhoveralpha,D);K.fill=y;C=(z=/\{/.test(C))?p.parseColorMix(T,C).join():C;z={FCcolor:{color:C,alpha:D,angle:90}};G.fill=X(z)}c.data.push({rolloverProperties:{enabled:W,hasHoverSizeChange:void 0,hoverRadius:h(NaN*r),baseHoverWidth:h(NaN*
r,1.6*Q),topHoverWidth:h(NaN*r),rearHoverExtension:h(NaN*r),hoverFill:z,hoverAttr:G,outAttr:K},_tooltext:q(P.tooltext,P.hovertext),y:m,id:q(P.id,S),color:y,showValue:Z,editMode:h(P.editmode,O),borderColor:l,shadowAlpha:oa,borderThickness:F,baseWidth:h(ma*r,1.6*Q),topWidth:h(H*r),baseRadius:h(N*r),rearExtension:I*r,valueX:h(E(P.valuex)*r),valueY:aa,radius:h(M*r),link:q(P.link,J),isLabelString:sa,toolText:k,displayValue:Z?q(ba," "):J,displayValueArgs:q(ba,J),doNotSlice:!0})}c.displayValueCount=ea;c.compositPivotRadius=
u;e.series[0]=c;f&&this.pointValueWatcher&&h(d.includecolorrangeinlimits,this.includeColorRangeInLimits)&&(c=h(b[0].minvalue),ga(c)&&this.pointValueWatcher(c),c=h(b[f-1].maxvalue),ga(c)&&this.pointValueWatcher(c))},postSeriesAddition:function(a,e){var c=e.chart,d=a.series[0],b=this.colorManager,f;d.valueBelowPivot=h(c.valuebelowpivot,0);d.gaugeFillMix=c.gaugefillmix;d.gaugeFillRatio=c.gaugefillratio;void 0===d.gaugeFillMix&&(d.gaugeFillMix="{light-10},{light-70},{dark-10}");void 0===d.gaugeFillRatio?
d.gaugeFillRatio=",6":""!==d.gaugeFillRatio&&(d.gaugeFillRatio=","+d.gaugeFillRatio);f=b.parseColorMix(q(c.pivotfillcolor,c.pivotcolor,c.pivotbgcolor,b.getColor("pivotColor")),q(c.pivotfillmix,"{light-10},{light-30},{dark-20}"));d.pivotFillAlpha=b.parseAlphaList(q(c.pivotfillalpha,Ia),f.length);d.pivotFillRatio=b.parseRatioList(q(c.pivotfillratio,fb),f.length);d.pivotFillColor=f.join();d.pivotFillAngle=h(c.pivotfillangle,0);d.isRadialGradient="radial"==q(c.pivotfilltype,"radial").toLowerCase();d.showPivotBorder=
h(c.showpivotborder,0);d.pivotBorderThickness=h(c.pivotborderthickness,1);d.pivotBorderColor=L(q(c.pivotbordercolor,b.getColor("pivotBorderColor")),1==d.showPivotBorder?q(c.pivotborderalpha,Ia):fb);this.parseColorMix=b.parseColorMix;this.parseAlphaList=b.parseAlphaList;this.parseRatioList=b.parseRatioList},spaceManager:function(a,e,c,d){var b=a.chart,f=e.chart,n=a.scale,g=a.series[0],p=g.displayValueCount,m=n.tickValues.style,k=h(parseInt(m.lineHeight,10),12),l=h(parseInt(m.fontSize,10),10),t=.8*
l,r=.1*k,u=Na?0:.1*k,w=h(parseInt(a.plotOptions.series.dataLabels.style.lineHeight,10),12),C=c-(b.marginRight+b.marginLeft),F=d-(b.marginTop+b.marginBottom),x=this.scaleFactor,q=g.compositPivotRadius,z,A,B=b.gaugeStartAngle,D=b.gaugeEndAngle,R,G=p*w+2+g.pivotRadius,M=0,ma=g.valueBelowPivot,N,H,K,T,y,O,Q,S,v,P,J,I,L,Z,aa,ea,oa,ua,wa,va,za,Da,lb,Qa,X,U,Y,Ja,Ra,Jb,da,ca,V,ka,fa,ja,ra;R=/^\d+\%$/.test(f.gaugeinnerradius)?parseInt(f.gaugeinnerradius,10)/100:.7;F-=this.titleSpaceManager(a,e,C,F/2);ma||
(M=G,G=0);g.gaugeOuterRadius=h(Math.abs(E(f.gaugeouterradius)*x));g.gaugeInnerRadius=h(Math.abs(E(f.gaugeinnerradius)*x),g.gaugeOuterRadius*R);var na=b.gaugeStartAngle,ta=b.gaugeEndAngle,la=F,qa=g.gaugeOuterRadius,ia=h(E(f.gaugeoriginx)*x-b.marginLeft),ha=h(E(f.gaugeoriginy)*x-b.marginTop),pa=Math.max(q,l),xa=G,ya=M,Ca=ga(qa),Ha=ga(ia),Ka=ga(ha),Fa=2*Math.PI,Ba=Math.PI,Ga=Math.PI/2,La=Ba+Ga,Sa,Oa=ia,Ta=ha,Ma,Aa,Za,Ia,db,Ya=!1,ab,bb,cb,eb,Ua,$a,fb,Ea,Xa,ib,jb=na%Fa;0>jb&&(jb+=Fa);(pa=pa||0)&&pa<C/
2&&pa<la/2&&(Ya=!0);xa>la/2&&(xa=la/2);ya>la/2&&(ya=la/2);ab=Math.cos(na);bb=Math.sin(na);cb=Math.cos(ta);eb=Math.sin(ta);Aa=Math.min(ab,cb,0);Ia=Math.max(ab,cb,0);Za=Math.min(bb,eb,0);db=Math.max(bb,eb,0);if(!Ca||!Ha||!Ka){ib=ta-na;$a=jb+ib;if($a>Fa||0>$a)Ia=1;if(0<ib){if(jb<Ga&&$a>Ga||$a>Fa+Ga)db=1;if(jb<Ba&&$a>Ba||$a>Fa+Ba)Aa=-1;if(jb<La&&$a>La||$a>Fa+La)Za=-1}else{if(jb>Ga&&$a<Ga||$a<-La)db=1;if(jb>Ba&&$a<Ba||$a<-Ba)Aa=-1;if(jb>La&&$a<La||$a<-Ga)Za=-1}Ha?Ca||(Ea=C-ia,Xa=-ia,Sa=Aa?Math.min(Ea/
Ia,Xa/Aa):Ea/Ia):(fb=Ia-Aa,Ua=C/fb,ia=-Ua*Aa,Sa=Ua,Ya&&(C-ia<pa?(ia=C-pa,Ea=C-ia,Xa=-ia,Sa=Aa?Math.min(Ea/Ia,Xa/Aa):Ea/Ia):ia<pa&&(ia=pa,Ea=C-ia,Xa=-ia,Sa=Aa?Math.min(Ea/Ia,Xa/Aa):Ea/Ia)),Oa=ia);Ka?Ca||(Ea=la-ha,Xa=-ha,Sa=Math.min(Sa,Za?Math.min(Ea/db,Xa/Za):Ea/db)):(fb=db-Za,Ua=la/fb,ha=-Ua*Za,Ya&&(la-ha<pa?(ha=la-pa,Ea=la-ha,Xa=-ha,Sa=Math.min(Sa,Za?Math.min(Ea/db,Xa/Za):Ea/db)):ha<pa&&(ha=pa,Ea=la-ha,Xa=-ha,Sa=Math.min(Sa,Za?Math.min(Ea/db,Xa/Za):Ea/db))),la-ha<xa?(ha=la-xa,Ea=la-ha,Xa=-ha,Sa=
Math.min(Sa,Za?Math.min(Ea/db,Xa/Za):Ea/db)):ha<ya&&(ha=ya,Ea=la-ha,Xa=-ha,Sa=Math.min(Sa,Za?Math.min(Ea/db,Xa/Za):Ea/db)),Sa=Math.min(Sa,Ua),Ta=ha);Ma=Sa;0>=Ma&&(Ma=Math.min(C/2,la/2))}z=g.gaugeOriginX=Oa;A=g.gaugeOriginY=Ta;N=n.majorTM;H=0;K=N.length;y=a.labels.smartLabel;J=n.min;I=n.max-n.min;oa=C-z;ua=F-A;wa=n.placeValuesInside;va=Math.cos(89.98*hb);za=-va;Da=ga(g.gaugeOuterRadius);lb=n.tickValueDistance;Qa=n.showTickValues;X=n.showLimits;U=h(g.gaugeOuterRadius,Ma);Y=h(g.gaugeInnerRadius,U*R);
Ja=U;Ra=.2*U;fa=1.5*k;ra=(D-B)/I;if(Qa||X)for(wa?Y>lb+k?Jb=Y-lb:(Jb=Y,lb=0):(Ja+=lb,Da||(Ra+=lb)),y.setStyle(m);H<K;H+=1)if(P=N[H],ja=B+(P.value-J)*ra,L=Math.cos(ja),Z=Math.sin(ja),T=P.displayValue,O=y.getOriSize(T),Q=O.width,S=O.height,v=S/2,0<Q&&0<S)if(P.x=0,wa)P.align=L>va?gb:L<za?Wa:Va,P.isString&&(aa=Jb*L,da=Math.abs(aa),da<Q&&(O=y.getSmartText(T,Math.max(da,k),fa),P.displayValue=O.text,O.tooltext&&(P.originalText=O.tooltext),S=O.height,v=S/2)),L>va||L<za?(P.y=l-v+u,P.y-=.4*S*Z):P.y=t-(0>Z?0:
S-r);else if(P.align=L>va?Wa:L<za?gb:Va,aa=Ja*L,ea=Ja*Z,Da||(0<ea?(ka=v+v*Z,ua<ea+ka&&(ea=ua-ka,Ja=Math.max(ea/Z,Ra))):0>ea&&(ka=v-v*Z,A<-ea+ka&&(ea=ka-A,Ja=Math.max(ea/Z,Ra)))),L>va)aa+Q>oa&&(Da?P.isString&&(O=y.getSmartText(T,oa-aa,fa),P.displayValue=O.text,O.tooltext&&(P.originalText=O.tooltext),S=O.height,v=S/2):(aa=oa-Q,Ja=Math.max(aa/L,Ra),aa=Ja*L,P.isString&&aa+Q>oa&&(O=y.getSmartText(T,oa-aa,fa),P.displayValue=O.text,O.tooltext&&(P.originalText=O.tooltext),S=O.height,v=S/2,Q=O.width,aa=oa-
Q,Ja=Math.max(aa/L,Ra)))),P.y=l-v+u+.4*S*Z;else if(L<za)Q-aa>z&&(Da?P.isString&&(O=y.getSmartText(T,z+aa,fa),P.displayValue=O.text,O.tooltext&&(P.originalText=O.tooltext),S=O.height,v=S/2):(aa=Q-z,Ja=Math.max(aa/L,Ra),aa=Ja*L,P.isString&&Q-aa>z&&(O=y.getSmartText(T,z+aa,fa),P.displayValue=O.text,O.tooltext&&(P.originalText=O.tooltext),Q=O.width,S=O.height,v=S/2,aa=Q-z,Ja=Math.max(aa/L,Ra)))),P.y=l-v+u+.4*S*Z;else{0<Z?(ca=ua,V=S+ea):(ca=A,V=S-ea);if(!Da){if(V>ca&&(Ja=Math.max(ca-S,Ra),V=S+Ja),P.isString&&
V>ca||Q>C)O=y.getSmartText(T,C,Math.max(ca-Ra,k)),P.displayValue=O.text,O.tooltext&&(P.originalText=O.tooltext),S=O.height,Ja=Math.max(ca-S,Ra)}else if(P.isString&&V>ca||Q>C)O=y.getSmartText(T,C,Math.max(S-V+ca,k)),P.displayValue=O.text,O.tooltext&&(P.originalText=O.tooltext),S=O.height;P.y=t-(0<Z?0:S-r)}Da||(g.gaugeOuterRadius=wa?Ja:Ja-lb,0>=g.gaugeOuterRadius&&(g.gaugeOuterRadius=Math.abs(Ra)));g.gaugeInnerRadius=h(g.gaugeInnerRadius,g.gaugeOuterRadius*R)}},v.gaugebase);v("bulb",{friendlyName:"Bulb Gauge",
defaultSeriesType:"bulb",defaultPlotShadow:1,standaloneInit:!0,drawAnnotations:!0,charttopmargin:10,chartrightmargin:10,chartbottommargin:10,chartleftmargin:10,realtimeEnabled:!0,isDataLabelBold:!0,rendererId:"bulb",preSeriesAddition:function(a){a=a.chart;a.colorRangeGetter=this.colorRangeGetter;a.defaultColors=this.colorManager.getPlotColor(0);a.defaultColLen=a.defaultColors.length},getPointColor:function(a,e,c){return c?{FCcolor:{cx:.4,cy:.4,r:"80%",color:da(a,65)+y+da(a,75)+y+na(a,65),alpha:e+
y+e+y+e,ratio:"0,30,70",radialGradient:!0}}:L(a,e)},getPointStub:function(a,e,c,d,b){var f=c.chart,n=c[U];e=d.chart;c=this.numberFormatter;d=c.getCleanValue(a.value);var g=c.dataLabels(d);c=E(a.link);var p=E(ca(q(a.tooltext,n.tooltext))),m=E(ca(a.displayvalue)),n=this.colorRangeGetter.getColorObj(d),k=f.useColorNameAsValue=h(e.usecolornameasvalue,0),l=n.colorObj||n.prevObj||n.nextObj||{},t=this.colorManager,r=ca(q(l.label,l.name)),u=q(e.gaugefillalpha,l.alpha,Ia),w=q(l.bordercolor,e.gaugebordercolor,
na(l.code,70)),C=h(l.borderalpha,e.gaugeborderalpha,"90")*u/100,F=h(e.showgaugeborder,0),x=F?h(e.gaugeborderthickness,1):0,W=f.is3D=h(e.is3d,1),z=this.getPointColor(l.code,u,W),A=h(e.showhovereffect),B,D,R,G,M,ma,N,H,K;n.isOnMeetPoint&&(l=n.nextObj);f.gaugeFillAlpha=u;w=(H=/\{/.test(w))?t.parseColorMix(q(l.bordercolor,l.code),w)[0]:w;f=L(w,C);0!==A&&(A||e.gaugefillhovercolor||e.plotfillhovercolor||e.gaugefillhoveralpha||e.plotfillhoveralpha||0===e.gaugefillhoveralpha||e.is3donhover||0===e.is3donhover||
e.showgaugeborderonhover||0===e.showgaugeborderonhover||e.gaugeborderhovercolor||e.gaugeborderhoveralpha||0===e.gaugeborderhoveralpha||e.gaugeborderhoverthickness||0===e.gaugeborderhoverthickness)&&(A=!0,B=q(e.gaugefillhovercolor,e.plotfillhovercolor,"{dark-10}"),D=h(e.gaugefillhoveralpha,e.plotfillhoveralpha),R=h(e.showgaugeborderonhover),void 0===R&&(R=e.gaugeborderhovercolor||e.gaugeborderhoveralpha||0===e.gaugeborderhoveralpha||e.gaugeborderhoverthickness||0===e.gaugeborderhoverthickness?1:F),
F=q(e.gaugeborderhovercolor,"{dark-10}"),M=h(e.gaugeborderhoveralpha),G=R?h(e.gaugeborderhoverthickness,x||1):0,W=!!h(e.is3donhover,W),h(e.showhoveranimation,1),R={},K={},x!==G&&(R["stroke-width"]=G,K["stroke-width"]=x),K.fill=X(z),B=(N=/\{/.test(B))?t.parseColorMix(l.code,B)[0]:q(B,l.code),R.fill=X(this.getPointColor(B,h(D,u),W)),G&&(K.stroke=f,l=/\{/.test(F),R.stroke=L(l?t.parseColorMix(H?B:w,F)[0]:F,h(M,C))));this.showTooltip?void 0!==p?(a=ab(p,[1,2],{formattedValue:g},a,e),ma=!0):a=k?r:null===
g?!1:void 0!==b?b+this.tooltipSepChar+g:g:a=!1;b=void 0!==m?m:k?r:g;this.pointValueWatcher&&this.pointValueWatcher(d);return{y:d,displayValue:b,displayValueArgs:b,toolText:a,isLabelString:ma,colorName:r,color:z,borderWidth:x,borderColor:f,colorRange:n,link:c,doNotSlice:!0,rolloverProperties:{enabled:A,hoverAttr:R,hoverAnimAttr:void 0,outAttr:K}}},spaceManager:function(a,e,c,d){var b=this.smartLabel,f=a.series[0],n=f&&f.data[0],f=a.chart,g=e.chart,p=f.scaleFactor=this.scaleFactor;c-=f.marginRight+
f.marginLeft;d-=f.marginTop+f.marginBottom;var m=f.marginLeft,k=f.marginTop,l=h(g.valuepadding,4),t=f.useColorNameAsValue,r,u=0,w;n.y=E(n.y,a.scale.min);n.displayValue=this.showValues?E(n.displayValue,this.numberFormatter.dataLabels(a.scale.min)):J;w=n.displayValue;f.gaugeOriginX=h(g.gaugeoriginx,g.bulboriginx,-1);f.gaugeOriginY=h(g.gaugeoriginy,g.bulboriginy,-1);f.gaugeRadius=h(g.gaugeradius,g.bulbradius,-1);g=-1!==f.gaugeRadius;d-=e=this.titleSpaceManager(a,e,c,.3*d);k+=e;f.dataLabels={style:a.plotOptions.series.dataLabels.style};
e=f.dataLabels.style;b.setStyle(e);1==f.placeValuesInside?(a=g?f.gaugeRadius*p:Math.min(c,d)/2,r=Math.sqrt(ia(2*a,2)/2),b=b.getSmartText(w,r,r)):(r=(g?d-2*f.gaugeRadius*p:.7*d)-l,b=b.getSmartText(w,c,r),u=b.height+l,a=Math.min(c,d-u)/2);t&&(n.displayValue=b.text,b.tooltext&&(n.originalText=b.tooltext));f.valuePadding=l;f.valueTextHeight=b.height;f.labelLineHeight=parseInt(e.lineHeight,10);a=g?f.gaugeRadius*p:a;b=-1===f.gaugeOriginX?m+c/2:f.gaugeOriginX*p;p=-1===f.gaugeOriginY?k+(d-u)/2:f.gaugeOriginY*
p;f.marginTop=f.marginLeft=0;f.gaugeRadius=a;f.gaugeOriginX=b;f.gaugeOriginY=p},updateSnapPoints:function(a){v.gaugebase.updateSnapPoints.apply(this,arguments);this.snapLiterals.gaugeradius=a.chart.gaugeRadius}},v.gaugebase);v("drawingpad",{friendlyName:"DrawingPad Component",standaloneInit:!0,defaultSeriesType:"drawingpad",rendererId:"drawingpad",defaultPlotShadow:1,drawAnnotations:!0,chartleftmargin:0,charttopmargin:0,chartrightmargin:0,chartbottommargin:0,chart:function(){Y(this.dataObj.chart,
{bgcolor:this.dataObj.chart.bgcolor||"#ffffff",bgalpha:this.dataObj.chart.bgalpha||"100"});return this.base.chart.apply(this,arguments)},series:function(){Y(this.hcJSON,{legend:{enabled:!1},chart:{plotBackgroundColor:Ya,plotBorderColor:Ya},series:[{data:[]}]})},spaceManager:function(){},creditLabel:ja},v.bulb);v("funnel",{friendlyName:"Funnel Chart",standaloneInit:!0,defaultSeriesType:"funnel",sliceOnLegendClick:!0,defaultPlotShadow:1,subTitleFontSizeExtender:0,tooltippadding:3,drawAnnotations:!0,
isDataLabelBold:!1,formatnumberscale:1,rendererId:"funnel",alignCaptionWithCanvas:0,defaultPaletteOptions:Ma(Y({},ya),{paletteColors:I.defaultPaletteOptions.paletteColors}),preSeriesAddition:function(a,e){var c=e.chart,d=this.colorManager,b=a.plotOptions.series.dataLabels;b.connectorWidth=h(c.smartlinethickness,1);b.connectorColor=L(q(c.smartlinecolor,d.getColor("baseFontColor")),h(c.smartlinealpha,100));h(c.showlegend,0)?(a.legend.enabled=!0,a.legend.reversed=!Boolean(h(c.reverselegend,0))):a.legend.enabled=
!1;a.plotOptions.series.point.events.legendItemClick=c.interactivelegend===fb?ub:function(){this.slice()}},series:function(a,e,c){a.data&&0<a.data.length&&(a=this.point(c,{data:[],colorByPoint:!0,showInLegend:!0},a.data,a.chart,e))&&e.series.push(a)},pointHoverOptions:function(a,e,c){var d=h(a.showhovereffect,e.showhovereffect),b={enabled:d},f={};void 0===d&&(d=b.enabled=void 0!==q(a.hovercolor,e.plotfillhovercolor,a.hoveralpha,e.plotfillhoveralpha,a.borderhovercolor,e.plotborderhovercolor,a.borderhoverthickness,
e.plotborderhoverthickness,a.borderhoveralpha,e.plotborderhoveralpha));if(d){b.highlight=h(a.highlightonhover,e.highlightonhover);b.color=q(a.hovercolor,e.plotfillhovercolor);b.alpha=q(a.hoveralpha,e.plotfillhoveralpha,c.alpha);b.borderColor=q(a.borderhovercolor,e.plotborderhovercolor,c.borderColor);b.borderThickness=h(a.borderhoverthickness,e.plotborderhoverthickness,c.borderWidth);b.borderAlpha=q(a.borderhoveralpha,e.plotborderhoveralpha,c.borderAlpha);0!==b.highlight&&void 0===b.color&&(b.highlight=
1);b.color=q(b.color,c.color).replace(/,+?$/,J);if(1===b.highlight){a=b.color.split(/\s{0,},\s{0,}/);e=a.length;for(c=0;c<e;c+=1)a[c]=da(a[c],70);b.color=a.join(",")}f={color:b.color,alpha:b.alpha,borderColor:L(b.borderColor,b.borderAlpha),borderWidth:b.borderThickness}}return{enabled:d,options:b,rolloverOptions:f}},point:function(a,e,c,d,b){a=b[U];var f=0,n=J,g=[],p=q(d.plotborderthickness,Kb),m=!0,k=!1,l=J,t=b.chart,r=this.isPyramid,u=h(d.showpercentintooltip,1),w=h(d.showlabels,1),C=h(d.showvalues,
1),F=h(d.showpercentvalues,d.showpercentagevalues,0),x=q(d.tooltipsepchar,d.hovercapsepchar,Sb),W=q(d.labelsepchar,x),z=q(d.plotbordercolor,d.piebordercolor),A=this.smartLabel,B=this.numberFormatter,D=c.length,R,G=this.colorManager,t=t.issliced=h(d.issliced,0),M=0,ma=h(d.showvalueinlegend,0),N=h(d.showlabelinlegend,1),H=h(d.valuebeforelabelinlegend,0),K=h(d.showvalueaspercentinlegend,1),T=q(d.legendsepchar,", "),Tb=b.plotOptions.series.dataLabels.style,O={apply:d.showshadow==Kb,opacity:1},Q,S,tb,
P,Pa,ba,sa,Z,aa,ea,oa,ua,wa,va,za,Da;e.isPyramid=r;wa=e.streamlinedData=h(d.streamlineddata,1);e.is2d=h(d.is2d,0);e.use3DLighting=1===h(d.use3dlighting,1);e.isHollow=h(d.ishollow,wa?1:0);oa=h(d.percentofprevious,0);ea=h(this.isPyramid?d.pyramidyscale:d.funnelyscale);e.labelDistance=Math.abs(h(d.labeldistance,d.nametbdistance,50));e.showLabelsAtCenter=h(d.showlabelsatcenter,0);e.yScale=0<=ea&&40>=ea?ea/200:.2;w||C||(b.plotOptions.series.dataLabels.enabled=!1,!1===b.tooltip.enabled&&(m=!1));e.useSameSlantAngle=
h(d.usesameslantangle,wa?0:1);for(b=0;b<D;b+=1)Q=c[b],c[b].vline||(Q.cleanValue=ea=B.getCleanValue(Q.value,!0),null!==ea&&(k=!0,za=za||ea,g.push(Q),f+=ea,za=Math.max(za,ea)));if(k){e.valueSum=f;c=B.dataLabels(f);D=g.length;!r&&wa&&g.sort(function(a,b){return b.cleanValue-a.cleanValue});r||wa||e.data.push({showInLegend:!1,y:f,name:"",shadow:O,smartTextObj:R,color:S,alpha:tb,borderColor:L(P,Pa),borderWidth:p,link:E(Q.link),style:I.parsexAxisStyles(Q,{},d,Tb,S),displayValue:J,doNotSlice:0===h(d.enableslicing,
1)});for(b=0;b<g.length;b+=1){Q=g[b];k=Q.cleanValue;ua=b?g[b-1].value:k;D=ca(q(Q.label,Q.name,J));R=A.getOriSize(D);S=b&&!r&&wa?b-1:b;S=q(Q.color,G.getPlotColor(S));tb=q(Q.alpha,d.plotfillalpha,Ia);P=q(Q.bordercolor,z,da(S,25)).split(y)[0];Pa=1!=d.showplotborder?fb:q(Q.borderalpha,d.plotborderalpha,d.pieborderalpha,"80");O.opacity=Math.max(tb,Pa)/100;if(ea=h(Q.issliced,t))M+=1,a.preSliced=ea;va=r||!wa?f:oa?ua:za;m&&(sa=B.percentValue(k/va*100),Z=B.dataLabels(k)||J,ba=1===w?D:J,n=1===h(Q.showvalue,
C)?1===F?sa:Z:J,aa=E(ca(Q.displayvalue)),Da=q(aa,D+W+(F?sa:Z),J),n=aa?aa:n!==J&&ba!==J?ba+W+n:q(ba,n)||J,wa&&(l=oa?sa:B.percentValue(k/ua*100)),ba=E(ca(q(Q.tooltext,a.tooltext))),void 0!==ba?ba=ab(ba,[1,2,3,7,14,24,25,37],{formattedValue:Z,label:D,percentValue:oa?B.percentValue(k/za*100):sa,sum:c,unformattedSum:f,percentOfPrevValue:l},Q,d):(ba=1===u?sa:Z,ba=D!==J?D+x+ba:ba));ua=N?D:J;ma&&(va=K?B.legendPercentValue(k/va*100):B.legendValue(k),ua=H?va+(ua&&T+ua):(ua&&ua+T)+va);va=this.pointHoverOptions(Q,
d,{color:S,alpha:tb,borderColor:P,borderAlpha:Pa,borderWidth:p});R={displayValue:n,displayValueArgs:Da,style:I.parsexAxisStyles(Q,{},d,Tb,S),categoryLabel:D,toolText:ba,legendCosmetics:v.singleseries.parseLegendOptions(d,Q),showInLegend:ua!==J,y:k,name:ua,shadow:O,smartTextObj:R,color:S,alpha:tb,borderColor:L(P,Pa),borderWidth:p,link:E(Q.link),isSliced:ea,doNotSlice:0===h(d.enableslicing,1),tooltipConstraint:this.tooltipConstraint,hoverEffects:va.enabled&&va.options,rolloverProperties:va.enabled&&
va.rolloverOptions};b||r||!wa||(R.showInLegend=!1);e.data.push(R)}f||(e.data=[]);e.labelMaxWidth=0;e.noOFSlicedElement=M;return e}return null},spaceManager:function(a,e,c,d){var b=this.smartLabel,f=e.chart,n=a.chart,g=q(f.legendposition,rb).toLowerCase(),p=c-(n.marginRight+n.marginLeft);d-=n.marginTop+n.marginBottom;var m=this.isPyramid,k=0,l=0,t,r,u=a.series[0],w,C,F,x,W,z,A,B,D,R,G,M,ma,N,H,K,y,v,O,Q,S,J=n.marginLeft;if(u){w=this._tempSnap={top3DSpace:0,bottom3DSpace:0,topLabelSpace:0,rightLabelSpace:0};
a.legend.enabled&&(g===gb?p-=this.placeLegendBlockRight(a,e,p/2,d,!0):d-=this.placeLegendBlockBottom(a,e,p,d/2,!0));r=.1*d;t=h(f.slicingdistance,r);r=t>2*r?0:t;f=Math.min(2*(d-r),p);n.marginTop+=r/2;n.marginBottom+=r/2;u.SlicingDistance=t;l=u.data;A=l.length;B=m?0:1;r=u.labelDistance+3;t=u.showLabelsAtCenter;M=Math.min(f,.3*p);x=p-M;ma=p-M-r;H=0;K=(C=l[0])&&l[0].y?l[0].y:1;y=u.valueSum?u.valueSum:1;v=m?0:1;O=.8/K;Q=1==u.useSameSlantAngle;G=(S=!m&&!u.streamlinedData)?l[0].y-l[1].y:0;!m&&C&&l[0].displayValue&&
(D=l[0],C=a.plotOptions.series.dataLabels.style,N=h(Lb(parseFloat(C.lineHeight)+C.borderPadding+C.borderThickness),10),b.setStyle(C),F=b.getSmartText(D.displayValue,p,N),D.displayValue=F.text,F.tooltext&&(D.originalText=F.tooltext),D.labelWidht=b.getOriSize(F.text).width,n.marginTop+=w.topLabelSpace=N+4);for(;B<A;B+=1)D=l[B],C=D.style,N=h(Lb(parseFloat(C.lineHeight)+C.borderPadding+C.borderThickness),10),b.setStyle(C),t?b.getSmartText(D.displayValue,p,N):(z=m?(C=G+D.y/2)?C/y:1:S?.2+O*G:D.y?Q?D.y/
K:Math.sqrt(D.y/K):1,C=M*z,R=ma+(M-C)/2,F=b.getSmartText(D.displayValue,R,N),D.displayValue=F.text,F.tooltext&&(D.originalText=F.tooltext),H=Math.max(H,F.width),0<x&&(F=0<F.width?R-F.width:R+r,C=1/(z+1)*(C+2*F+M),x=Math.min(x,C-M)),G+=S?-(l[B+1]&&l[B+1].y||0):D.y);D&&(W=m?1:S?.2:D.y?Q?D.y/K:Math.sqrt(D.y/K):1);x=M+x;x>f&&(x=f);G=S?l[0].y-l[1].y:0;if(!t)for(B=m?0:1,A=l.length;B<A;B+=1)D=l[B],z=m?(C=G+D.y/2)?C/y:1:S?.2+O*G:D.y?Q?D.y/K:pb(D.y/K):1,C=x*z,R=ma+(M-C)/2,F=b.getSmartText(D.displayValue,R,
N),k=Ca(k,.5*C+F.width+r),G+=S?-(l[B+1]&&l[B+1].y||0):D.y;0<H?(w.rightLabelSpace=p-x,l=k-(.5*c-n.marginRight),0<l&&(n.marginRight+=l,n.marginLeft-=l),a.legend.enabled&&g===gb?n.marginLeft<J&&(n.marginLeft=J):(n.marginRight+=.5*w.rightLabelSpace,n.marginLeft+=.5*w.rightLabelSpace),p-=a.title.alignWithCanvas?w.rightLabelSpace:0):r=0;u.labelDistance=u.connectorWidth=r;this.titleSpaceManager(a,e,p,d/2);(t||!H)&&f<p&&(n.marginLeft+=.5*(p-f-r),n.marginRight+=.5*(p-f-r));u.is2d||(n.marginTop+=w.top3DSpace=
x*u.yScale*v/2,n.marginBottom+=w.bottom3DSpace=x*u.yScale*W/2)}},updateSnapPoints:function(){v.gaugebase.updateSnapPoints.apply(this,arguments);var a=this.snapLiterals,e=this._tempSnap||{};a.plotwidth=a.canvaswidth;a.plotsemiwidth=a.canvaswidth/2;a.plotheight=a.canvasheight+e.top3DSpace+e.bottom3DSpace;a.plotstartx=a.canvasstartx;a.plotstarty=a.canvasstarty-e.top3DSpace;a.plotendx=a.canvasendx;a.plotendy=a.canvasendy+e.bottom3DSpace;a.canvaswidth+=e.rightLabelSpace;a.canvasheight=a.plotheight+e.topLabelSpace;
a.canvasstarty=a.plotstarty-e.topLabelSpace;a.canvasendy=a.plotendy;a.canvasendx+=e.rightLabelSpace},eiMethods:{sliceDataItem:function(a){var e=this.jsVars.hcObj,c;if(e&&e.series&&(c=e.series[0])&&c.data&&c.data[a]&&c.data[a].slice)return c.data[c.xIncrement-1-a].slice()}},useSortedData:!0,creditLabel:ja},v.gaugebase);v("pyramid",{friendlyName:"Pyramid Chart",subTitleFontSizeExtender:0,drawAnnotations:!0,standaloneInit:!0,defaultSeriesType:"pyramid",defaultPlotShadow:1,useSortedData:!1,isPyramid:1,
creditLabel:ja,rendererId:"pyramid"},v.funnel);v("sparkbase",{defaultPlotShadow:0,useSortedData:!1,subTitleFontSizeExtender:0,subTitleFontWeight:0,drawAnnotations:!0,showYAxisValues:0,numdivlines:0,chartrightmargin:3,chartleftmargin:3,charttopmargin:3,chartbottommargin:3,decimals:2,showTrendlineLabel:0,zeroplanethickness:0,tooltippadding:1,useScaleRecursively:!0,showTrendlineLabels:0,showAxisLimitGridLines:0,styleApplicationDefinition_font:v.gaugebase.styleApplicationDefinition_font,defaultPaletteOptions:Ma(Y({},
ya),{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:["","","","",""],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"]}),preSeriesAddition:function(a,e){var c=a.plotOptions.series.dataLabels.style,d=a.chart,b=e.chart,c={fontFamily:c.fontFamily,fontSize:c.fontSize,lineHeight:c.lineHeight,fontWeight:c.fontWeight,
fontStyle:c.fontStyle},f,n,g,p;if("sparkwinloss"==this.name&&(f=e.data||e.dataset&&e.dataset[0]&&e.dataset[0].data,n={w:1,l:-1,d:.1},0<(g=f&&f.length)))for(;g;)--g,p=f[g],p.value=n[p.value.toLowerCase()];d.borderWidth=h(b.showborder,this.showBorder,0)?h(b.borderthickness,1):0;d.plotBorderWidth=h(b.canvasborderthickness,1);f=d.openColor=xa(q(b.opencolor,"0099FF"));n=d.closeColor=xa(q(b.closecolor,"0099FF"));d.highColor=xa(q(b.highcolor,"00CC00"));d.lowColor=xa(q(b.lowcolor,"CC0000"));d.openHoverColor=
L(xa(q(b.openhovercolor,b.anchorhovercolor,b.plotfillhovercolor,da(f,70))),h(b.openhoveralpha,b.anchorhoveralpha,b.plotfillhoveralpha,100));d.closeHoverColor=L(xa(q(b.closehovercolor,b.anchorhovercolor,b.plotfillhovercolor,da(n,70))),h(b.closehoveralpha,b.anchorhoveralpha,b.plotfillhoveralpha,100));d.highHoverColor=L(xa(q(b.highhovercolor,b.anchorhovercolor,b.plotfillhovercolor,da(d.highColor,70))),h(b.highhoveralpha,b.anchorhoveralpha,b.plotfillhoveralpha,100));d.lowHoverColor=L(xa(q(b.lowhovercolor,
b.anchorhovercolor,b.plotfillhovercolor,da(d.lowColor,70))),h(b.lowhoveralpha,b.anchorhoveralpha,b.plotfillhoveralpha,100));this.forceHoverEnable=q(b.openhovercolor,b.closehovercolor,b.highhovercolor,b.lowhovercolor,b.openhoveralpha,b.closehoveralpha,b.highhoveralpha,b.lowhoveralpha,b.winhovercolor,b.losshovercolor,b.drawhovercolor,b.scorelesshovercolor);a.chart.openValue={style:Y({},c)};Oa(a.chart.openValue.style);a.chart.openValue.style.color=f;a.chart.closeValue={style:Y({},c)};Oa(a.chart.openValue.style);
a.chart.closeValue.style.color=n;a.chart.highLowValue={style:Y({},c)};this.parseStyles(a);0===this.showCanvas&&(d.plotBackgroundColor=Ya);this.showCanvasBorder||(d.plotBorderWidth=0);d.useRoundEdges||(d.plotShadow=0);b.zeroplanethickness=q(b.zeroplanethickness,this.zeroplanethickness);delete b.yaxisname;delete b.xaxisname;b.showlabels=q(b.showlabels,fb)},spaceManager:function(a,e,c,d){var b=a[U],f=this.smartLabel||b.smartLabel,n=e.chart,g=a.series[0],p=a.chart,m=c-(p.marginRight+p.marginLeft),k=h(n.canvasleftmargin),
l=h(n.canvasrightmargin),t=a.valuePadding=h(n.valuepadding,2),r=a.plotOptions.series.dataLabels.style,u=parseInt(r.lineHeight,10),w=m,C=b=0,F,x;if(g){d=Fb(a,e,.7*m,d,void 0,c,d,this);w-=d.left+d.right;m=c-(p.marginRight+p.marginLeft);x=F=g=0;f.setStyle(r);ga(p.openValue.label)&&(f.setStyle(p.openValue.style),u=h(parseInt(p.openValue.style.lineHeight,10),10),r=f.getSmartText(p.openValue.label,w,1.5*u),0<r.width&&(b=g=r.width+t,w-=g));ga(p.closeValue.label)&&(f.setStyle(p.closeValue.style),u=h(parseInt(p.closeValue.style.lineHeight,
10),10),r=f.getSmartText(p.closeValue.label,w,1.5*u),0<r.width&&(C=F=r.width+t,w-=F));ga(p.highLowValue.label)&&(f.setStyle(p.highLowValue.style),u=h(parseInt(p.highLowValue.style.lineHeight,10),10),f=f.getSmartText(p.highLowValue.label,w,1.5*u),0<f.width&&(C+=x=f.width+t));p.marginRight+=x+F;p.marginLeft+=g;ga(k)?(p.spacingLeft=p.marginLeft=k,p.spacingLeft-=d.left+g):p.marginLeft+=d.left;ga(l)?(p.spacingRight=p.marginRight=l,p.spacingRight-=d.right+x+F):p.marginRight+=d.right;this.xAxisMinMaxSetter(a,
e,m);p=a.xAxis;l=p.min;m=p.max;k=h(n.periodlength,0);n=L(q(n.periodcolor,this.colorManager.getColor("periodColor")),h(n.periodalpha,100));t=1;if(0<k)for(;l<=m;l+=k)t?(p.plotBands.push({color:n,from:l,to:Math.min(m,l+k),zIndex:1}),t=0):t=1;Gb(a,e,c,b,C,this)}}},Vb);v("sparkline",{friendlyName:"Spark Line Chart",standaloneInit:!0,defaultSeriesType:"line",rendererId:"sparkline",creditLabel:ja,showtooltip:0,showCanvas:0,point:v.linebase.point,lineThickness:1,anchorRadius:2,anchorBorderThickness:0,postSeriesAddition:function(a,
e){var c=a.chart,d=e.chart,b=this.colorManager,f=a.series&&a.series[0],n=f&&a.series[0].data,g,p,m,k=this.highValue,l=this.lowValue,t=this.numberFormatter,r=c.openColor,u=c.closeColor,w=c.highColor,C=c.lowColor,F=c.openHoverColor,x=c.closeHoverColor,W=c.highHoverColor,z=c.lowHoverColor,A;A=xa(q(d.anchorcolor,b.getColor("plotFillColor")));var B=h(d.showopenanchor,d.drawanchors,d.showanchors,1),D=h(d.showcloseanchor,d.drawanchors,d.showanchors,1),R=h(d.showhighanchor,d.drawanchors,d.showanchors,1),
G=h(d.showlowanchor,d.drawanchors,d.showanchors,1),M=h(d.anchoralpha,100),ma,N=h(d.drawanchors,d.showanchors,0),H=N?h(d.anchoralpha,100):0,K,y,v=0,O=q(d.linecolor,b.getColor("plotFillColor")),Q=h(d.linealpha,100),S,E;if(0<(b=g=n&&n.length)){p=e.data||e.dataset&&e.dataset[0]&&e.dataset[0].data;f.color=L(O,Q);S=n[0]&&n[0].y||J;for(E=n[b-1]&&n[b-1].y||J;g;)--g,f=n[g],m=p[g],A=void 0,ma=h(f.anchorbgalpha,M),f.color=L(q(m.color,O),h(m.alpha,Q)),f.marker.fillColor=L(q(f.anchorbgcolor,A),h(f.anchorbgalpha,
H)),A=L(xa(q(d.anchorhovercolor,d.plotfillhovercolor,da(O,70))),h(d.lowhoveralpha,d.anchorhoveralpha,d.plotfillhoveralpha,100)),h(d.anchorhoverradius,f.marker.radius),f.marker.enabled=!!N,f.y==l&&(A=q(f.anchorbgcolor,C),f.marker.fillColor=L(A,ma),A=z,f.marker.enabled=!!G,y=t.dataLabels(f.y)),f.y==k&&(A=q(f.anchorbgcolor,w),f.marker.fillColor=L(A,ma),A=W,f.marker.enabled=!!R,K=t.dataLabels(f.y)),void 0!==f.toolText&&(f.toolText=ab(f.toolText,[54,55,56,57,58,59,60,61],{openDataValue:t.dataLabels(S),
closeDataValue:t.dataLabels(E),highDataValue:t.dataLabels(k),lowDataValue:t.dataLabels(l),openValue:S,closeValue:E,highValue:k,lowValue:l},{},d)),h(m.showvalue,d.showvalue,d.showvalues,0)||(f.displayValue=J),ga(f.y)&&(v=1),m=f.hoverEffects,f.marker.enabled&&m&&(m.anchorColor=A,m=f.rolloverProperties,m.radius=h(d.anchorhoverradius,f.marker.radius),m.lineWidth=0,m.lineColor=m.fillColor=A);f=n[0];f.marker.fillColor=L(q(f.anchorbgcolor,r),ma);f.marker.enabled=!!B;m=f.hoverEffects;f.marker.enabled&&m&&
(m.anchorColor=F,m=f.rolloverProperties,m.radius=h(d.anchorhoverradius,f.marker.radius),m.lineWidth=0,m.lineColor=m.fillColor=F);r=t.dataLabels(f.y);f.y==l&&G&&(f.marker.fillColor=L(q(f.anchorbgcolor,C),ma),f.marker.enabled=!!G);f.y==k&&R&&(f.marker.fillColor=L(q(f.anchorbgcolor,w),ma),f.marker.enabled=!!R);f=n[b-1];f.marker.fillColor=L(q(f.anchorbgcolor,u),ma);f.marker.enabled=!!D;m=f.hoverEffects;f.marker.enabled&&m&&(m.anchorColor=x,m=f.rolloverProperties,m.radius=h(d.anchorhoverradius,f.marker.radius),
m.lineWidth=0,m.lineColor=m.fillColor=x);n=t.dataLabels(f.y);f.y==l&&G&&(f.marker.fillColor=L(q(f.anchorbgcolor,C),ma),f.marker.enabled=!!G);f.y==k&&R&&(f.marker.fillColor=L(q(f.anchorbgcolor,w),ma),f.marker.enabled=!!R);c.openValue.label=c.closeValue.label=c.highLowValue.label=c.highLowValue.highLabel=void 0;v&&(c.openValue.label=h(d.showopenvalue,1)?r:J,c.closeValue.label=h(d.showclosevalue,1)?n:J,h(d.showhighlowvalue,1)&&(c.highLowValue.label="["+K+" | "+y+"]",c.highLowValue.highLabel=K,c.highLowValue.lowLabel=
y))}}},v.sparkbase);v("sparkcolumn",{friendlyName:"Spark Column Chart",standaloneInit:!0,rendererId:"cartesian",defaultSeriesType:"column",creditLabel:ja,showCanvasBorder:!0,point:v.column2dbase.point,useFlatColor:!0,postSeriesAddition:function(a,e){var c=e.chart,d=this.colorManager,b=a.series&&a.series[0]&&a.series[0].data,f,n,g,p,m=this.highValue,k=this.lowValue,l=this.numberFormatter,t=q(c.plotfillalpha,Ia),r=q(c.plotfillcolor,d.getColor("plotFillColor")),u=q(c.plotborderalpha,Ia),w=q(c.plotbordercolor),
C,F=q(c.highcolor,"000000"),x=q(c.lowcolor,"000000"),W=q(c.highbordercolor,w),z=q(c.lowbordercolor,w),A=h(c.showplotborder,0)?h(c.plotborderthickness,1):0,B,D,R,G,M,ma;if(0<(d=b&&b.length))for(n=e.data||e.dataset&&e.dataset[0]&&e.dataset[0].data;d;)--d,f=b[d],g=n[d],B=q(g.color,r),D=q(g.alpha,t),R=q(g.bordercolor,w),G=q(g.borderalpha,u),M=q(g.ratio,c.plotfillratio),ma=q(360-c.plotfillangle,90),f.y==m&&(B=q(g.color,F),R=q(g.bordercolor,W),p=f.hoverEffects)&&(p.color=q(g.hovercolor,c.highhovercolor,
c.plotfillhovercolor,da(B,70)),p.borderColor=q(g.borderhovercolor,c.highborderhovercolor,c.plotborderhovercolor,R),p.colorArr=p=this.getColumnColor(g,p.color,q(g.hoveralpha,c.highhoveralpha,c.plotfillhoveralpha,D),p.borderColor,G,M,ma,a.chart.useRoundEdges),C=f.rolloverProperties,C.color=p[0],C.borderColor=p[1]),f.y==k&&(B=q(g.color,x),R=q(g.bordercolor,z),p=f.hoverEffects)&&(p.color=q(g.hovercolor,c.lowhovercolor,c.plotfillhovercolor,da(B,70)),p.borderColor=q(g.borderhovercolor,c.lowborderhovercolor,
c.plotborderhovercolor,R),p.colorArr=p=this.getColumnColor(g,f.hoverEffects.color,q(g.hoveralpha,c.lowhoveralpha,c.plotfillhoveralpha,D),f.hoverEffects.borderColor,G,M,ma,a.chart.useRoundEdges),C=f.rolloverProperties,C.color=p[0],C.borderColor=p[1]),void 0!==f.toolText&&(f.toolText=ab(f.toolText,[56,57,60,61],{highValue:m,lowValue:k,highDataValue:l.dataLabels(m),lowDataValue:l.dataLabels(k)},{},c)),p=this.getColumnColor(g,B,D,R,G,M,ma,a.chart.useRoundEdges),f.color=p[0],f.borderColor=p[1],f.borderWidth=
A,h(g.showvalue,c.showvalue,c.showvalues,0)||(f.displayValue=J)},getColumnColor:function(a,e,c,d,b,f,n,g,p,m){var k;d=q(d,na(e,60));k=e.split(y);a=c.split(y);d=d.split(y);b=b.split(y);m?p={FCcolor:{color:k[0],alpha:a[0]}}:g?(e=k[0],c=a[0],p={FCcolor:{color:na(e,75)+y+da(e,25)+y+na(e,80)+y+da(e,65)+y+na(e,80),alpha:c+y+c+y+c+y+c+y+c,ratio:"0,10,13,57,20",angle:p?"-180":"0"}},d=[na(e,70)]):(c=Ab(c,k.length),p={FCcolor:{color:e,alpha:c,ratio:f,angle:p?180-n:n}});return[p,{FCcolor:{color:d[0],alpha:b[0]}}]}},
v.sparkbase);v("sparkwinloss",{friendlyName:"Spark Win-Loss Chart",standaloneInit:!0,defaultSeriesType:"column",rendererId:"sparkwinloss",creditLabel:ja,showCanvasBorder:!1,showCanvas:0,showtooltip:0,postSeriesAddition:function(a,e){var c=a.chart,d=e.chart,b=this.colorManager,f=a.series&&a.series[0]&&a.series[0].data,n=q(d.plotfillalpha,Ia),g=q(d.plotfillcolor,b.getColor("plotFillColor")),p=q(d.plotborderalpha,Ia),m=q(d.plotbordercolor),k=h(d.showplotborder,0)?h(d.plotborderthickness,1):0,l=q(d.wincolor,
b.getColor("winColor")),t=q(d.losscolor,b.getColor("lossColor")),r=q(d.drawcolor,b.getColor("drawColor")),b=q(d.scorelesscolor,b.getColor("scorelessColor")),u=d.winhovercolor,w=d.losshovercolor,C=d.drawhovercolor,F=d.scorelesshovercolor,x=J,W,z,A,B,D,R,G=0,M=0,ma=0;z=a.yAxis[0];var y,H,K,T,v,O;a.tooltip.enabled=!1;z.min=-1.1;z.max=1.1;if(0<(T=f&&f.length)){for(v=e.data||e.dataset&&e.dataset[0]&&e.dataset[0].data;T;){--T;y=f[T];O=v[T];switch(O.value){case 1:x=q(O.color,l,g);W=q(O.hovercolor,u,x);G+=
1;break;case -1:x=q(O.color,t,g);W=q(O.hovercolor,w,x);M+=1;break;case .1:x=q(O.color,r,g),W=q(O.hovercolor,C,x),ma+=1}1==O.scoreless&&(x=q(O.color,b,g),W=q(O.hovercolor,F,O.color,b,W));z=q(O.alpha,n);A=q(O.bordercolor,m);B=q(O.borderalpha,p);D=q(O.ratio,d.plotfillratio);R=q(360-d.plotfillangle,90);K=this.getColumnColor(O,x,z,A,B,D,R,a.chart.useRoundEdges);y.color=K[0];y.borderColor=K[1];y.borderWidth=k;h(O.showvalue,0)||(y.displayValue=J);if(H=y.hoverEffects)y=y.rolloverProperties,H.color=da(W,70),
K=H.colorArr=this.getColumnColor(O,H.color,z,A,B,D,R,a.chart.useRoundEdges),y.color=K[0],y.borderColor=K[1],H.borderThickness=k,y.borderWidth=k}1==h(d.showvalue,1)&&(c.closeValue.style=Y({},a.plotOptions.series.dataLabels.style),c.closeValue.label=G+"-"+M+(0<ma?"-"+ma:J))}}},v.sparkcolumn);kb={realtimeEnabled:!0,canvasPaddingModifiers:null,linearDataParser:v.gaugebase.linearDataParser,eiMethods:Ma({},v.gaugebase.eiMethods),decimals:2,prepareRealtimeValueText:function(){var a=this.hcJSON,e=this.hcJSON[U],
c=e.rtLabel,d=a.chart.realtimeValueSeparator,b=new RegExp(d+"$","g");c&&c.label&&(d=e.realtimeValues.join(d).replace(b,J),e=h(parseInt(e.outCanvasStyle.fontSize,10),10),c.label.y=.8*e+(a.xAxis.title.margin||0),c.label.text=d,a.xAxis.plotLines&&(a.xAxis.plotLines[0]=c))},chart:function(){var a=this.dataObj.chart,e=this.numberFormatter,c,d,b,f=h(a.showrealtimevalue,1),n=h(a.realtimevaluepadding),g,p,a=this.dataObj.chart;a.adjustdiv="0";f&&(a.xaxisname=a.xaxisname?"<br/>"+a.xaxisname:"<br/>");c=v.msareabase.chart.apply(this,
arguments);b=c.chart;d=c[U];g=c.series;d.isDual?(d._userPMin=h(a.pyaxisminvalue),d._userPMax=h(a.pyaxismaxvalue),d._userSMin=h(a.syaxisminvalue),d._userSMax=h(a.syaxismaxvalue)):(d._userMin=h(a.yaxisminvalue),d._userMax=h(a.yaxismaxvalue));b.dataStreamURL=q(a.datastreamurl,"");b.refreshInterval=h(a.refreshinterval,1);b.updateInterval=h(a.updateinterval,b.refreshInterval);b.clearInterval=h(a.clearchartinterval,0);b.dataStamp=a.datastamp;b.useMessageLog=h(a.usemessagelog,0);b.messageLogWPercent=La(h(a.messagelogwpercent,
80),100);b.messageLogHPercent=La(h(a.messageloghpercent,70),100);b.messageLogShowTitle=h(a.messagelogshowtitle,1);b.messageLogTitle=q(a.messagelogtitle,"Message Log");b.messageLogColor=q(a.messagelogcolor,"#fbfbfb");b.messageGoesToJS=h(a.messagegoestojs,0);b.messageGoesToLog=h(a.messagegoestolog,1);b.messageJSHandler=q(a.messagejshandler,"");b.messagePassAllToJS=h(a.messagepassalltojs,0);b.messageLogIsCancelable=h(a.messagelogiscancelable,1);b.alwaysShowMessageLogMenu=h(a.alwaysshowmessagelogmenu,
b.useMessageLog);b.showRTMenuItem=h(a.showrtmenuitem,0);b.showRealtimeValue=f;b.realtimeValueSeparator=q(a.realtimevaluesep,", ");b.realtimeValuePadding=n;b.realtimeValueFont=q(a.realtimevaluefont,"");b.realtimeValueFontBold=q(a.realtimevaluefontbold,0);b.realtimeValueFontColor=q(a.realtimevaluefontcolor,"");b.realtimeValueFontSize=h(a.realtimevaluefontsize,"");if(f){if(!d.realtimeValues)for(d.realtimeValues=[],f=0,n=g.length;f<n;f++)a=g[f],p=(p=a.data)&&p.length&&p[p.length-1]&&p[p.length-1].y,d.realtimeValues[f]=
e.dataLabels(p,a.yAxis);d.rtLabel||(e=Y({},d.outCanvasStyle),e.fontWeight=b.realtimeValueFontBold?"bold":"normal",b.realtimeValueFontColor&&(e.color=b.realtimeValueFontColor.replace(ib,nb)),b.realtimeValueFontSize&&(e.fontSize=b.realtimeValueFontSize+ob),b.realtimeValueFont&&(e.fontFamily=b.realtimeValueFont),g=h(parseInt(e.fontSize,10),10),d.rtLabel={color:ra,alwaysVisible:!0,isTrend:!0,value:(d.x.catCount-1)/2,width:.01,label:{align:Va,textAlign:Va,rotation:0,textVAlign:cb,text:" ",x:0,y:.8*g+(c.xAxis.title.margin|
0),style:e}},c.xAxis.plotLines.splice(0,0,d.rtLabel))}b.showRTMenuItem?(c.callbacks||(c.callbacks=[])).push(this.drawRTMenuButtons):b.useMessageLog&&b.alwaysShowMessageLogMenu&&b.messageGoesToLog&&(c.callbacks||(c.callbacks=[])).push(this.drawMLMenuButtons);this.dataObj.alerts&&(this.hcJSON.alerts=this.parseAlertObj(this.dataObj.alerts));return c},parseAlertObj:function(a){var e=this.numberFormatter,c=a&&a.alert,d=c.length,b={alert:[]},f,n,g,p,m;for(a=0;a<d;a+=1)p=c[a],f=e.getCleanValue(p.minvalue),
n=e.getCleanValue(p.maxvalue),g=q(p.action,""),p=q(p.param,""),null!==f&&null!==n&&""!==g&&(f>n&&(m=n,n=f,f=m),b.alert.push({minvalue:f,maxvalue:n,param:p,action:g}));return b},drawMLMenuButtons:function(){var a=this.options,e=a.chart,c=this.menu||(this.menu=[]),d=this.toolbar,a=a[U],b;c.push(b=Ka({chart:this,basicStyle:a&&a.outCanvasStyle||this.outCanvasStyle||{},items:[{text:"Show Log",visibility:"hidden",onclick:function(){I&&I.messageLogger&&I.messageLogger.open();b.showItem(4);b.hideItem(3)}},
{text:"Hide Log",visibility:"hidden",onclick:function(){I&&I.messageLogger&&I.messageLogger.close();b.showItem(3);b.hideItem(4)}}],position:{x:e.spacingLeft,y:this.chartHeight-e.spacingBottom+(e.showFormBtn||e.showRestoreBtn?10:-15)}}));b.hideItem(1);this.elements.configureButton=d.add("loggerIcon",function(a,c){return function(){b.visible?b.hide():b.show({x:a,y:c+1})}}(),{x:e.spacingLeft,y:this.chartHeight-e.spacingBottom+(e.showFormBtn||e.showRestoreBtn?10:-15),tooltip:"Show & Hide Message"})},
drawRTMenuButtons:function(){var a=this.logic,e=a.chartInstance,c=this.options,d=c.chart,b=d&&d.alwaysShowMessageLogMenu,f=this.menu||(this.menu=[]),n=this.toolbar,c=(c=c[U])&&c.outCanvasStyle||this.outCanvasStyle||{},g,p=e.isUpdateActive||a.eiMethods.isUpdateActive,p=p&&p.call(e);f.push(g=Ka({chart:this,basicStyle:c,items:[{text:"Stop Update",visibility:p?xb:"hidden",onclick:function(){g.hideItem(0);g.showItem(1);e.stopUpdate()}},{text:"Start Update",visibility:p?"hidden":xb,onclick:function(){g.hideItem(1);
g.showItem(0);e.restartUpdate()}},{text:"Clear Chart",onclick:function(){e.clearChart()}},{text:"Show Log",visibility:"hidden",onclick:function(){I&&I.messageLogger&&I.messageLogger.open();g.showItem(4);g.hideItem(3)}},{text:"Hide Log",visibility:"hidden",onclick:function(){I&&I.messageLogger&&I.messageLogger.close();g.showItem(3);g.hideItem(4)}}],position:{x:d.spacingLeft,y:this.chartHeight-d.spacingBottom+(d.showFormBtn||d.showRestoreBtn?10:-15)}}));h(a.dataObj.chart.allowclear,1)||g.hideItem(2);
g.hideItem(0);g.hideItem(1);!b&&g.hideItem(3);g.hideItem(4);g.showItem(p?0:1);this.elements.configureButton=n.add("configureIcon",function(a,b){return function(){g.visible?g.hide():g.show({x:a,y:b+1})}}(),{x:d.spacingLeft,y:this.chartHeight-d.spacingBottom+(d.showFormBtn||d.showRestoreBtn?10:-15),tooltip:"Manage RealTime Update"})},shiftPlotLines:function(a,e,c,d){var b,f,n=[],g=d[0],p=g&&g.RTValueArr,m=p&&p.length||0,k=(d=d[1])&&d.RTValueArr,l=k&&k.length||0,t=a&&a.length||0,r;c=h(c,-.5);for(r=0;r<
t;r+=1)if(b=a[r],b.isGrid||b.isVline)if(f=b.value+=e,f<c||f===c&&b.isVline)a.splice(r,1),b.isGrid&&n.push(b),--r,--t;if(g&&p&&m)for(p.splice(0,-e),m=p.length,delete g.min,delete g.max,r=0;r<m;r+=1)(a=p[r])&&void 0!==a.min&&(!1===g.min<a.min&&(g.min=a.min),!1===g.max>a.max&&(g.max=a.max));if(d&&k&&l)for(k.splice(0,-e),l=k.length,delete d.min,delete d.max,r=0;r<l;r+=1)(a=k[r])&&void 0!==a.min&&(!1===d.min<a.min&&(d.min=a.min),!1===d.max>a.max&&(d.max=a.max));return n},configureAxis:function(a){var e=
a[U],c=a.xAxis,d=e.x,b=e.axisGridManager,f=d.catCount,n=e.oriCatTmp,g=e[0],p=g&&g.RTValueArr,m=e[1],k=m&&m.RTValueArr,l=this.dataObj,t=l.chart||(l.chart={}),l=a.series,r=l[0].data.length,t=this.numDisplaySets=h(t.numdisplaysets,Ca(r,15)),u=c.plotLines,w=u&&u.length||0,C=[],F=this.chartInstance.jsVars._reflowData,x;F.hcJSON&&(x=F.hcJSON[U])&&(g.min=x[0]&&x[0].min,g.max=x[0]&&x[0].max,m.min=x[1]&&x[1].min,m.max=x[1]&&x[1].max);m=((this.dataObj.categories||(this.dataObj.categories=[{category:[]}]))[0]||
(this.dataObj.categories[0]={category:[]})).category||(this.dataObj.categories[0].category=[]);0===f&&(this.chartInstance.jsVars._forceReflow=!0);g=t-r;if(0<g){for(;w--;)u[w].value+=g;for(c.plotLines=[];g--;)C[g]={y:null},b.addXaxisCat(c,g,g," ",{},{},{}),p&&p.unshift(null),k&&k.unshift(null),n.unshift(null),m.unshift({label:" "});c.plotLines=c.plotLines.reverse().concat(u)}else g&&(this.shiftPlotLines(c.plotLines,g,-.5,e),n.splice(0,-g));for(g=l.length;g--;)c=l[g],e=c.data,c.data=C.concat(e.slice(-t));
this.needsRedraw=0===f;d.catCount=t;return v.msareabase.configureAxis&&v.msareabase.configureAxis.apply(this,arguments)},postSeriesAddition:function(a,e,c,d,b){e=a[U];c=e.isBar;d=a.chart.rotateValues&&!c?270:0;var f=e[0],n=f.RTValueArr,g=f&&f.stacking100Percent,p,m,k,l,h,r,u,w,C;if(this.isStacked&&n&&(e.showStackTotal||g))for(b=b||0,r=a.series,u=Y({},a.plotOptions.series.dataLabels.style),w=parseFloat(u.fontSize),C=!f.stacking100Percent,u.color=a.plotOptions.series.dataLabels.color,f=n.length;b<f;b+=
1)if(m=n[b])if(h=(m.n||0)+(m.p||0),e.showStackTotal&&(p=b,m=0>h?m.n:m.p,a.xAxis.plotLines.push({value:p,width:0,isVline:C,isTrend:!C,zIndex:4,_isStackSum:1,_catPosition:b,label:{align:Va,textAlign:270===d?0>h?gb:Wa:Va,offsetScale:C?m:void 0,offsetScaleIndex:0,rotation:d,style:u,verticalAlign:cb,y:c?0:0>h?270===d?4:w:-4,x:0,text:e.numberFormatter.yAxis(h)}})),g)for(m=0,p=r.length;m<p;m+=1)if(r[m].data){k=r[m].data[b];if(k.y||0===k.y)l=k.y/h*100,k.y=l,k.showPercentValues&&(k.displayValue=this.numberFormatter.percentValue(l)),
e.showPercentValues&&(k.displayValueArgs=this.numberFormatter.percentValue(l)),k.showPercentInToolTip&&(k.toolText=k.toolText+parseInt(100*l,10)/100+"%");if(k.previousY||0===k.previousY)k.previousY=k.previousY/h*100}},pointValueWatcher:function(a,e,c,d,b){if(null!==e){var f=a[U];a=f[c||(c=0)];var n;a||(a=f[c]={});c=a.RTValueArr;c||(c=a.RTValueArr=[]);(f=c[b])||(f=c[b]={});d&&(0<=e?f.p?(n=f.p,e=f.p+=e):f.p=e:f.n?(n=f.n,e=f.n+=e):f.n=e);!1===f.max>e&&(f.max=e,!1===a.max>e&&(a.max=e));!1===f.min<e&&
(f.min=e,!1===a.min<e&&(a.min=e));return n}},realtimeUpdate:function(a,e){var c=this.hcJSON,d=this.dataObj,b=d.chart,f="0"===b.allowclear?0:1,n=c[U],g=this.numberFormatter,p=n.x,m=p._labelY,k=p._labelX,l=p._yShipment,t=p._isStagger,r=p._rotation,u=p._textAlign,w=p._adjustedPx,C=p._staggerLines,F=p._labelHeight,x,q=n.axisGridManager,z=p.catCount,A=this.renderer,B=this.chartInstance.jsVars,D=a.values,R=a.labels||[],G=a.showLabels||[],M=a.colors,y=a.toolTexts,N=a.links,H=c.xAxis,K="0"===d.chart.showlabels,
T=c.chart.showRealtimeValue,v=d.categories,O=B._reflowData,Q=[],S=h(n._startIndex,0),L=p.stepValue,p=a.dimension>z?z:a.dimension,P=z-p,Q=[],Pa=a.vlines,ba=I.placeHorizontalAxis,sa,Z,aa,ea,oa,ua,wa,va,za,Da,X=new Date,Qa,Ub,Ib,V,Ja,Ra;a.clear&&f&&this.realtimeUpdate({dimension:this.numDisplaySets,values:[],labels:[]},0<a.dimension);if(a.dimension){c.plotOptions.series.animation=!1;Pa?(sa=a.vlineColors||[],Z=a.vlineLabels||[],aa=a.vlineThickness||[],ea=a.vlineDashed||[]):Pa=[];v||(v=d.categories=[]);
v[0]?v[0].category||(v[0].category=[]):v[0]={category:[]};v=v[0].category;Q=this.shiftPlotLines(H.plotLines,-p,-.5,n);for(f=Q.length;f--;)(Da=Q[f]).label&&(oa=Da.label,oa.text="0"===G[f]||K?"":ca(R[f]||J),x=P+f,Da.value=x,wa=z+f+S,(x=0===wa%L)?(oa.style=H.labels.style,oa.y=t?m+wa/L%C*F:l,oa.x=k+(r?w:0),oa.rotation=r,oa.textAlign=u):oa.style=H.steppedLabels.style,H.plotLines.push(Y({},Da)),v.shift(),v.push({label:oa.text})),"1"===Pa[f]&&q.addVline(H,{color:sa[f]&&decodeURIComponent(sa[f]),label:Z[f]&&
decodeURIComponent(Z[f]),thickness:aa[f]&&decodeURIComponent(aa[f]),dashed:ea[f]&&decodeURIComponent(ea[f])},P+f,c);Q=[];n._startIndex=(p+S)%(t?L*C:L);S=c.series&&c.series.length;p&&n.oriCatTmp.splice(0,p);n._skipValueWatcher=!1;for(f=0;f<S;f+=1){sa=c.series[f];aa=D&&D[f]||[];ea=M&&M[f]||[];L=N&&N[f]||[];P=y&&y[f]||[];G=sa.yAxis||0;n._rtCounter||(n._rtCounter=1);!Q[f]&&(Q[f]=[]);q=Q[f];Z=sa.data;ua=Z.length;K=ua-p;for(v=0;K<ua;K+=1,v+=1)Pa=decodeURIComponent(E(aa[v],null)),za=g.getCleanValue(Pa),
oa=decodeURIComponent(R[v]||""),n.oriCatTmp[K]=oa,Z.shift(),Pa=sa._dataParser({value:Pa,label:oa,color:ea&&ea[v]&&decodeURIComponent(ea[v]),link:L&&L[v]&&decodeURIComponent(L[v]),tooltext:P&&P[v]&&decodeURIComponent(P[v])},K,za),Pa.y=za,Z.push(Pa),q.push(Pa),Pa.previousY=this.pointValueWatcher(c,za,G,this.isStacked,K);T&&(n.realtimeValues[f]=g.dataLabels(za,sa.yAxis))}n._rtCounter+=p;this.postSeriesAddition(c,void 0,void 0,void 0,ua-p);g=c.yAxis[0];D=n[0];y=h(this.isStacked?0:this.setAdaptiveYMin,
b.setadaptiveymin,0);M=R=!y;N=(g.max-g.min)/4;if(n.isDual){if(D.max>g.max||D.min<g.min||(!M||0!==g.min)&&g.min!==n._userPMin&&D.min-g.min>N||(!R||0!==g.max)&&g.max!==n._userPMax&&g.max-D.max>N)B._forceReflow=!0,n._skipValueWatcher=!0;g=c.yAxis[1];D=n[1];M=R=!h(b.setadaptivesymin,y);N=(g.max-g.min)/4;if(D.max>g.max||D.min<g.min||(!M||0!==g.min)&&g.min!==n._userSMin&&D.min-g.min>N||(!R||0!==g.max)&&g.max!==n._userSMax&&g.max-D.max>N)B._forceReflow=!0,n._skipValueWatcher=!0}else if(D.max>g.max||D.min<
g.min||(!M||0!==g.min)&&g.min!==n._userMin&&D.min-g.min>N||(!R||0!==g.max)&&g.max!==n._userMax&&g.max-D.max>N)B._forceReflow=!0,n._skipValueWatcher=!0;Qa=n[0]&&n[0].RTValueArr;Ub=n[1]&&n[1].RTValueArr;B._forceReflow&&(g=c.yAxis[0],D=n[0],Ib=n[0]&&n[0].min,V=n[0]&&n[0].max,Ja=n[1]&&n[1].min,Ra=n[1]&&n[1].max,S=g.min,sa=g.max,N=h(n.numdivlines,b.numdivlines,this.numdivlines,4),ua=b.adjustdiv!==fb,za=h(n._userMax,n._userPMax),f=h(n._userMin,n._userPMin),q=h(b.showyaxisvalues,b.showyaxisvalue,1),G=h(b.showlimits,
q),K=h(b.showdivlinevalue,b.showdivlinevalues,q),v=h(parseInt(b.yaxisvaluesstep,10),parseInt(b.yaxisvaluestep,10),1),v=1>v?1:v,this.axisMinMaxSetter(g,D,za,f,R,M,N,ua),g.plotLines=[],g.plotBands=[],g.labels.enabled=g.labels._enabled,g.gridLineWidth=g._gridLineWidth,g.alternateGridColor=g._alternateGridColor,this.configurePlotLines(b,c,g,D,G,K,v,n.numberFormatter,!1),S===g.min&&sa===g.max&&(va=!0),n.isDual?(za=n._userSMax,f=n._userSMin,y=h(b.setadaptivesymin,y),M=R=!y,G=h(b.showsecondarylimits,G),
K=h(b.showdivlinesecondaryvalue,q),g=c.yAxis[1],D=n[1],S=g.min,sa=g.max,this.axisMinMaxSetter(g,D,za,f,R,M,N,ua),g.plotLines=[],g.plotBands=[],g.labels.enabled=g.labels._enabled,g.gridLineWidth=g._gridLineWidth,g.alternateGridColor=g._alternateGridColor,this.configurePlotLines(b,c,g,D,G,K,v,n.numberFormatter,!0),S===g.min&&sa===g.max&&va&&(B._forceReflow=!1)):va&&(B._forceReflow=!1),d.trendlines&&Ta(d.trendlines,c.yAxis,n,n.isDual,this.isBar));O.hcJSON&&(b=O.hcJSON[U],delete O.hcJSON[U],Y(c.series,
O.hcJSON.series,!0),O.hcJSON[U]=b,b=null);Y(O,{preReflowAdjustments:function(){this.dataObj.categories=d.categories},postReflowAdjustments:function(){var a,b=c.series,d=b&&b.length;this.hcJSON.xAxis.plotLines=H.plotLines;this.hcJSON._FCconf[0].RTValueArr=Qa;this.hcJSON._FCconf[1].RTValueArr=Ub;if(b)for(a=0;a<d;a+=1)this.hcJSON.series[a].data=b[a].data},postHCJSONCreation:function(a){Y(a,{_FCconf:{0:{min:Ib,max:V},1:{min:Ja,max:Ra},_skipValueWatcher:!0,realtimeValues:n.realtimeValues,rtvHTMLWrapper:n.rtvHTMLWrapper}},
!0)},hcJSON:{_FCconf:{_userMax:n._userMax,_userMin:n._userMin,_userPMax:n._userPMax,_userSMax:n._userSMax,_userPMin:n._userPMin,_userSMin:n._userSMin,_chartState:n._chartState,_rtCounter:n._rtCounter,_startIndex:n._startIndex,oriCatTmp:n.oriCatTmp,x:{catCount:z,_labelY:m,_labelX:k,_yShipment:l,_isStagger:t,_rotation:r,_textAlign:u,_adjustedPx:w,_staggerLines:C,_labelHeight:F},0:{min:h(Ib,n[0]&&n[0].min),max:h(V,n[0]&&n[0].max)},1:{min:h(Ja,n[1]&&n[1].min),max:h(Ra,n[1]&&n[1].max)}}}},!0);if(!e){B._forceReflow&&
(B._forceReflow=!1,g=c.yAxis[0],m=g.plotBands.concat(g.plotLines),Fa(g,m),A.yAxis[0].realtimeUpdateY(g.min,g.max),n.isDual&&(g=c.yAxis[1],m=g.plotBands.concat(g.plotLines),Fa(g,m),A.yAxis[1].realtimeUpdateY(g.min,g.max)),this.containerElement.resizeTo());ba.call(this,c.xAxis,n.x,c,this.dataObj,n.x._canvasWidth,n.x._availableHeight,n.x._minCanvasWidth);T&&this.prepareRealtimeValueText();A.xAxis[0].realtimeUpdateX(p);f=0;for(K=Q.length;f<K;f+=1)A.plots[f]&&A.plots[f].realtimeUpdate&&A.plots[f].realtimeUpdate(p,
B._forceReflow);this.realtimeDrawingLatency=new Date-X}}},extractTrendLines:function(a){var e=a.plotLines;a=a.plotBands;for(var c,d=e.length,b=[],f=[];d;)c=d-1,c=e[c],c.isTrend&&f.push(c),--d;for(d=a.length;d;)c=d-1,e=a[c],e.isTrend&&b.push(e),--d;return{trendLines:f,trendBands:b}}};Ma(kb.eiMethods,{clearChart:function(a){a=a&&a.toString&&a.toString();this.feedData("clear=1");I.raiseEvent("ChartCleared",{source:a},this.FusionCharts,[this.id,a])},getDataJSON:function(){return this.jsVars._rtLastUpdatedData||
{values:[]}},getData:function(){var a=this.jsVars.hcObj.options,e=a[U].oriCatTmp,c,d=[],b,f,n,g;if(!a||!a.series)return d;a=a.series;b=[];for(n=a.length;n--;)for(c=a[n],b[c.index]=c.name,f=c.data,g=e.length;g--;)c=d[g]||(d[g]=[e[g]]),c[n+1]=f[g].y;b.unshift(null);d.unshift(b);return d}});v("realtimearea",Ma({friendlyName:"Realtime Data Streaming Area Chart",standaloneInit:!0,multisetRealtime:!0,defaultPlotShadow:1,creditLabel:ja,rendererId:"realtimecartesian"},kb),v.msareabase);v("realtimecolumn",
Ma({friendlyName:"Realtime Data Streaming Column Chart",standaloneInit:!0,multisetRealtime:!0,creditLabel:ja,rendererId:"realtimecartesian"},kb),v.mscolumn2dbase);v("realtimeline",Ma({friendlyName:"Realtime Data Streaming Line Chart",standaloneInit:!0,multisetRealtime:!0,creditLabel:ja,rendererId:"realtimecartesian"},kb),v.mslinebase);v("realtimelinedy",Ma({friendlyName:"Realtime Data Streaming Dual Y-Axis Line Chart",standaloneInit:!0,multisetRealtime:!0,isDual:!0,creditLabel:ja,series:v.mscombibase,
rendererId:"realtimecartesian"},kb),v.mslinebase);v("realtimestackedarea",{friendlyName:"Realtime Data Streaming Stacked Area Chart",isStacked:!0,showSum:0,areaAlpha:100,creditLabel:ja},v.realtimearea);v("realtimestackedcolumn",{friendlyName:"Realtime Data Streaming Column Chart",isStacked:!0,creditLabel:ja},v.realtimecolumn);Nb=function(a,e){return a.minvalue-e.minvalue};eb.prototype={getColorObj:function(a){for(var e=this.colorArr,c=0,d=e.length,b,f,n={};c<d;c+=1){n.index=c;b=e[c];f=e[c+1];if(a<
b.minvalue)return n.nextObj=b,n;if(a>=b.minvalue&&a<=b.maxvalue)return n.colorObj=b,f&&a==f.minvalue&&(n.nextObj=f,n.isOnMeetPoint=!0),n;n.prevObj=b}n.index=c-1;return n},getColorRangeArr:function(a,e){var c,d=this.colorArr,b,f,n=[],g,p;if(!this.defaultAsigned&&(a>e&&(c=a,a=e,e=c),a<e&&(b=this.getColorObj(a),f=this.getColorObj(e),b&&f))){c=a;b=b.index;for(f=f.index;b<=f;b+=1)g=Y({},d[b]),g.minvalue!==c&&(g.minvalue=c),n.push(g),p=g,c=g.maxvalue;p.maxvalue=e}return n}};eb.prototype.constructor=eb;
Ob=function(){var a={fluidHRatio:!0,fluidColor:!0,fluidAlpha:!0,fluidFill:!0},e=[],c=0,d=function(a){c=Boolean(a)?a.duration:0},b=function(b,d){var f,m,k=this,l,t,r=!1,u=!1,w=this._3dAttr;bb(b)&&ga(d)&&(f=b,b={},b[f]=d);if(bb(b))k=a[b]?k._3dAttr[b]:k._attr(b);else for(f in b)m=b[f],a[f]?("fluidFill"===f?(m&&m.linearGradient&&m.stops&&m.stops[0]&&(m=m.stops[0][1]),yb.test(m)?(t=new sb(m),l=t.get("hex"),t=100*t.get("a")):m&&m.FCcolor?(l=m.FCcolor.color.split(y)[0],t=m.FCcolor.alpha.split(y)[0]):vb.test(m)&&
(l=m.replace(ib,nb)),w.fluidColor=q(l,w.fluidColor,"000000"),w.fluidAlpha=h(t,w.fluidAlpha,100),r=!0):"fluidColor"===f?(w.fluidColor=q(m,w.fluidColor,"000000"),r=!0):"fluidAlpha"===f?(w.fluidAlpha=h(m,w.fluidAlpha,100),r=!0):0<=m&&1>=m&&(w.fluidHRatio=m,u=!0),r&&(m=na(w.fluidColor,w.is2D?80:70),k.fluid.attr({fill:L(m,w.fluidAlpha)}),k.fluidTop.attr({fill:L(m,w.fluidAlpha)}),k.topLight.attr({stroke:L(m,.4*w.fluidAlpha)}),k.topLightBorder.attr({fill:X({FCcolor:{color:m+y+m,alpha:"40,0",ratio:"0,80",
radialGradient:!0,cx:.5,cy:1,r:"70%"}})})),u&&(m=w.scaleY+w.h*(1-w.fluidHRatio),c?(k.fluid.animate({path:w.fluidPath.concat(["L",w.lx2,m,w.lx1,m,"Z"])},c,"easeIn"),k.fluidTop.animate({path:e.concat(["M",w.lx1,m,"A",w.lCylWidthHalf,1,0,1,0,w.lx2,m,"Z"])},c,"easeIn")):(k.fluid.attr({path:w.fluidPath.concat(["L",w.lx2,m,w.lx1,m,"Z"])}),k.fluidTop.attr({path:e.concat(["M",w.lx1,m,"A",w.lCylWidthHalf,1,0,1,0,w.lx2,m,"Z"])})))):this._attr(f,m);return k},f=function(a,b,c){this.border.shadow(a,b,c)};return function(a,
c,p,m,k,l,t,r,u,w,C,F,x){var W,z,A,B,D,R,G,M,v,N,H,K,T,J,O,Q;qb(a)&&(c=a.y,p=a.r,m=a.h,l=a.renderer,t=a.fluidHRatio,r=a.conColor,u=a.conBorderColor,w=a.conBorderThickness,C=a.fluidColor,F=a.fluidAlpha,x=a.is2D,a=a.x);0<=t&&1>=t||(t=0);r=q(r,"FFFFFF");u=q(u,"#000000");w=h(w,1);C=q(C,"000000");F=h(F,100);Q={x:a,y:c,r:p,h:m,renderer:l,fluidHRatio:t,conColor:r,conBorderColor:u,conBorderThickness:w,fluidStroke:3,fluidColor:C,is2D:x,fluidAlpha:F};k._attr=k.attr;k.attr=b;k._setAnimate=d;k.shadow=f;k._3dAttr=
Q;W=na(r,80);C=na(C,x?80:70);r=da(r,80);z=.643*p;A=.33*z;B=z-A;D=a-z;R=a+z;G=a-B;B=a+B;M=c+z;v=M+m;N=v+.766*p;H=c+A;m=M+m*(1-t);t=.9*z;K=p+t-z;T=a-t;J=a+t;N-=Math.abs(Math.sqrt(K*K-t*t));O=parseInt(a-.6*z,10);z=a+z/2;Q.fluidPath=["M",T,N,"A",K,K,0,1,0,J,N];Q.scaleY=M;Q.lx1=T;Q.lx2=J;Q.lCylWidthHalf=t;k.topLight=l.path(["M",T,M,"L",J,M],k).attr({"stroke-width":1,stroke:L(C,40)});k.topLightBorder=l.path(["M",T,M,"L",J,M,J,H,T,H,"Z"],k).attr({"stroke-width":0,fill:X({FCcolor:{color:C+y+C,alpha:x?"0,0":
"40,0",ratio:"0,80",radialGradient:!0,cx:.5,cy:1,r:"70%"}})});k.fluid=l.path(Q.fluidPath.concat(["L",J,m,T,m,"Z"]),k).attr({"stroke-width":0,fill:L(C,F)});k.fluidTop=l.path(e.concat(["M",T,m,"A",t,1,0,1,0,J,m,"Z"]),k).attr({"stroke-width":0,fill:L(C,F)});k.border=l.path(e.concat(["M",G,c,"A",A,A,0,0,0,D,H],["L",D,v],["A",p,p,0,1,0,R,v],["L",R,H],["A",A,A,0,0,0,B,c,"Z"]),k).attr({"stroke-width":w,stroke:u});x||(k.bulbBorderLight=l.path(e.concat(["M",D,v,"A",p,p,0,0,1,R,v],["M",R,v,"A",p,p,0,0,0,D,
v],["M",D,v,"A",p,p,0,1,0,R,v,"Z"]),k).attr({"stroke-width":0,stroke:"#00FF00",fill:X({FCcolor:{cx:.5,cy:.5,r:"50%",color:W+y+r,alpha:"0,50",ratio:"78,30",radialGradient:!0}})}),k.bulbTopLight=l.path(e.concat(["M",D,v,"A",p,p,0,0,1,R,v],["A",p,p,0,0,0,D,v],["A",p,p,0,1,0,R,v,"Z"]),k).attr({"stroke-width":0,fill:X({FCcolor:{cx:.3,cy:.1,r:"100%",color:r+y+W,alpha:"60,0",ratio:"0,30",radialGradient:!0}})}),k.bulbCenterLight=l.path(e.concat(["M",D,v,"A",p,p,0,1,0,R,v],["A",p,p,0,0,0,D,v],["A",p,p,0,0,
1,R,v,"Z"]),k).attr({"stroke-width":0,fill:X({FCcolor:{cx:.25,cy:.7,r:"100%",color:r+y+W,alpha:"80,0",ratio:"0,70",radialGradient:!0}})}),k.cylLeftLight=l.path(e.concat(["M",a,c,"L",G,c],["A",A,A,0,0,0,D,H],["L",D,v,a,v,"Z"]),k).attr({"stroke-width":0,fill:X({FCcolor:{color:r+y+W,alpha:"50,0",ratio:"0,80",angle:0}})}),k.cylRightLight=l.path(e.concat(["M",D,c,"L",B,c],["A",A,A,0,0,1,R,H],["L",R,v,D,v,"Z"]),k).attr({"stroke-width":0,fill:X({FCcolor:{color:r+y+W+y+W,alpha:"50,0,0",ratio:"0,40,60",angle:180}})}),
k.cylLeftLight1=l.path(["M",O,H,"L",D,H,D,v,O,v,"Z"],k).attr({"stroke-width":0,fill:X({FCcolor:{color:r+y+W,alpha:"60,0",ratio:"0,100",angle:180}})}),k.cylRightLight1=l.path(["M",O-.01,H,"L",z,H,z,v,O-.01,v,"Z"],k).attr({"stroke-width":0,fill:X({FCcolor:{color:r+y+W,alpha:"60,0",ratio:"0,100",angle:0}})}));return k}}();Pb=function(){var a={fluidHRatio:!0,color:!0,alpha:!0,fill:!0},e=[],c=0,d=function(a){c=Boolean(a)?a.duration:0},b=function(b,d){var f,m,k=this,l,t,r=!1,u=!1,w=this._3dAttr,C,F,x,W,
z,A,B,D;bb(b)&&ga(d)&&(f=b,b={},b[f]=d);if(bb(b))k=a[b]?k._3dAttr[b]:k._attr(b);else for(f in b)m=b[f],a[f]?("fill"===f?(m&&m.linearGradient&&m.stops&&m.stops[0]&&(m=m.stops[0][1]),yb.test(m)?(t=new sb(m),l=t.get("hex"),t=100*t.get("a")):m&&m.FCcolor?(l=m.FCcolor.color.split(y)[0],t=m.FCcolor.alpha.split(y)[0]):vb.test(m)&&(l=m.replace(ib,nb)),w.fluidColor=q(l,w.fluidColor,"000000"),w.fluidAlpha=h(t,w.fluidAlpha,100),r=!0):"color"===f?(w.fluidColor=q(m,w.fluidColor,"000000"),r=!0):"alpha"===f?(w.fluidAlpha=
h(m,w.fluidAlpha,100),r=!0):0<=m&&1>=m&&(w.fluidHRatio=m,u=!0),r&&(m=na(w.fluidColor,70),C=da(w.fluidColor,70),x=na(w.conColor,80),F=da(w.conColor,80),t=w.fluidAlpha,W=t+y+t,k.fluid.attr({"stroke-width":0,fill:X({FCcolor:{cx:.5,cy:0,r:"100%",color:C+y+m,alpha:W,ratio:"0,100",radialGradient:!0}})}),k.fluidTop.attr({"stroke-width":3,stroke:L(C,t),fill:X({FCcolor:{cx:.5,cy:.7,r:"100%",color:C+y+m,alpha:W,ratio:"0,100",radialGradient:!0}})}),k.btnBorderLight.attr({fill:X({FCcolor:{color:F+y+x+y+F+y+F+
y+x+y+m+y+x+y+F,alpha:"50,50,50,50,50,"+.7*t+",50,50",ratio:"0,15,0,12,0,15,43,15",angle:0}})})),u&&(x=w.x,m=w.r,C=w.fluidStroke,F=C/2,z=w.h*w.fluidHRatio,C=x-m,x+=m,W=C+F,A=x-F,B=w.y+w.h,z=B-z,D=m*w.r3dFactor,F=m-F,c?(k.fluid.animate({path:e.concat(["M",C,B],["A",m,Ca(D,1),0,0,0,x,B],["L",x,z],["A",m,Ca(D,1),0,0,0,C,z,"Z"])},c,"easeIn"),k.fluidTop.animate({path:e.concat(["M",W,z],["A",F,D,0,0,0,A,z],["L",A,z],["A",F,D,0,0,0,W,z,"Z"])},c,"easeIn")):(k.fluid.attr({path:e.concat(["M",C,B],["A",m,D,
0,0,0,x,B],["L",x,z],["A",m,D,0,0,1,C,z,"Z"])}),k.fluidTop.attr({path:e.concat(["M",W,z],["A",F,D,0,0,0,A,z],["L",A,z],["A",F,D,0,0,0,W,z,"Z"])})))):this._attr(f,m);return k},f=function(){};return function(a,c,p,m,k,l,t,r,u,w,C,F,x){var W,z,A,B,D,R,G,v,ma,N,H,K,T,J,O,Q,S,E;qb(a)&&(c=a.y,p=a.r,m=a.h,k=a.r3dFactor,l=a.parentGroup,t=a.renderer,r=a.fluidHRatio,u=a.conColor,w=a.conAlpha,C=a.fluidColor,F=a.fluidAlpha,a=a.x);k=h(k,.15);Ga.vml&&(k=k||.001);0<=r&&1>=r||(r=0);u=q(u,"FFFFFF");w=h(w,30);C=q(C,
"000000");F=h(F,100);w={x:a,y:c,r:p,h:m,r3dFactor:k,renderer:t,fluidHRatio:r,conColor:u,conAlpha:w,fluidStroke:3,fluidColor:C,fluidAlpha:F};l=t.group("graphic",l);l._attr=l.attr;l.attr=b;l._setAnimate=d;l.shadow=f;l._3dAttr=w;k*=p;w=p-1.5;W=c+m;m=W-m*r;r=a-p;z=a+p;A=r+1.5;B=z-1.5;D=r-2;R=z+2;G=p+2;v=k+2;ma=W+4;N=ma+.001;H=na(u,80);K=na(u,90);u=da(u,80);T=na(C,70);C=da(C,70);J=na(T,90);O=.85*p;Q=a-O;a+=O;S=Math.sqrt((1-O*O/(p*p))*k*k);O=c+S;S=W+S;E=c-1;l.btnBorder=t.path(e.concat(["M",D,ma],["A",G,
v,0,0,0,R,ma],["L",R,N],["A",G,v,0,0,0,D,N,"Z"]),l).attr({"stroke-width":4,stroke:L(H,80)});l.btnBorder1=t.path(e.concat(["M",r,ma],["A",p,k,0,0,0,z,ma],["L",z,N],["A",p,k,0,0,0,r,N,"Z"]),l).attr({"stroke-width":4,stroke:L(H,50)});l.btnBorderLight=t.path(e.concat(["M",r,W],["A",p,k,0,0,0,z,W],["A",p,k,0,0,0,r,W,"Z"]),l).attr({"stroke-width":0,fill:X({FCcolor:{color:u+y+H+y+u+y+u+y+H+y+T+y+H+y+u,alpha:"50,50,50,50,50,70,50,50",ratio:"0,15,0,12,0,15,43,15",angle:0}})});D=x?u+y+H+y+u+y+H+y+K+y+K+y+H+
y+u:u+y+H+y+H+y+H+y+H+y+H+y+H+y+u;l.back=t.path(e.concat(["M",r,W],["A",p,k,0,0,0,z,W],["L",z,c],["A",p,k,0,0,0,r,c,"Z"]),l).attr({"stroke-width":1,stroke:L(H,50),fill:X({FCcolor:{color:D,alpha:"30,30,30,30,30,30,30,30",ratio:"0,15,43,15,0,12,0,15",angle:0}})});D=x?C+y+T:T+y+T;l.fluid=t.path(e.concat(["M",r,W],["A",p,Ca(k,1),0,0,0,z,W],["L",z,m],["A",p,Ca(k,1),0,0,0,r,m,"Z"]),l).attr({"stroke-width":0,fill:X({FCcolor:{cx:.5,cy:0,r:"100%",color:D,alpha:F+y+F,ratio:"0,100",radialGradient:!0}})});D=
x?C+y+T:T+y+T;l.fluidTop=t.path(e.concat(["M",A,m],["A",w,k,0,0,0,B,m],["L",B,m],["A",w,k,0,0,0,A,m,"Z"]),l).attr({"stroke-width":2,stroke:x?L(C,F):L(J),fill:X({FCcolor:{cx:.5,cy:.7,r:"100%",color:D,alpha:F+y+F,ratio:"0,100",radialGradient:!0}})});D=x?u+y+H+y+u+y+u+y+H+y+u+y+H+y+u:H+y+H+y+H+y+H+y+H+y+H+y+H+y+H;l.front=t.path(e.concat(["M",r,W],["A",p,k,0,0,0,z,W],["L",z,c],["A",p,k,0,0,1,r,c,"Z"]),l).attr({"stroke-width":1,stroke:L(H,50),fill:X({FCcolor:{color:D,alpha:"30,30,30,30,30,30,30,30",ratio:"0,15,0,12,0,15,43,15",
angle:0}})});x&&(l.frontLight=t.path(e.concat(["M",r,W],["A",p,k,1,0,0,Q,S],["L",Q,O],["A",p,k,0,0,1,r,c,"Z"]),l).attr({"stroke-width":0,stroke:"#"+H,fill:X({FCcolor:{color:D,alpha:"40,0",ratio:"0,100",angle:0}})}));x&&(l.frontLight1=t.path(e.concat(["M",a,S],["A",p,k,0,0,0,z,W],["L",z,c],["A",p,k,1,0,0,a,O,"Z"]),l).attr({"stroke-width":0,stroke:"#"+H,fill:X({FCcolor:{color:D,alpha:"40,0",ratio:"0,100",angle:180}})}));l.cylinterTop=t.path(e.concat(["M",r,E],["A",p,k,0,0,0,z,E],["L",z,E],["A",p,k,
0,0,0,r,E,"Z"]),l).attr({"stroke-width":2,stroke:L(H,40)});return l}}();Qb=function(){var a={value:!0},e=0,c=function(a){e=Boolean(a)?a.duration:0},d=function(b,c){var d,p,m=this,k=this._3dAttr,l,h,r,u,w,C,q;bb(b)&&ga(c)&&(d=b,b={},b[d]=c);if(bb(b))m=a[b]?m._3dAttr[b]:m._attr(b);else for(d in b)if(p=b[d],a[d]){if(p>=k.minValue&&p<=k.maxValue){k[d]=p;l=(p-k.minValue)/k.perLEDValueLength;p=ha(l)*k.sizeGapSum-k.ledGap;if(k.LEDCase){h=m.colorArr;u=h.length;for(r=0;r<u;r+=1)w=h[r],w.maxLEDNoFrac<=l?q=
k.LEDLowerFN:C?q=k.LEDUpperFN:(q=void 0,C=w),q&&(w[q](),"show"===q&&w.attr(w.oriShapeArg));C||(C=w);C.show();C.attr(C.hoverShapeArg)}m.darkShade&&(l={},k.isXChange?(l.width=Math.ceil(k.w-p),k.isIncrement&&(l.x=k.x+p)):(l.height=Math.ceil(k.h-p),k.isIncrement&&(l.y=k.y+p)),e?m.darkShade.animate(l,e,"easeIn"):m.darkShade.attr(l))}}else this._attr(d,p);return m},b=function(){};return function(a,e,g,p,m,k,l,t,r,u,w,C,F,x,W,z,A,B,D,v,G){var y=function(a){var b=0,c,d;return function(){b=0;for(c=a.colorArr.length;b<
c;b+=1)d=a.colorArr[b],d.attr(d.data("rollover"))}},ma=function(a){var b=0,c,d;return function(){b=0;for(c=a.colorArr.length;b<c;b+=1)d=a.colorArr[b],d.attr(d.data("rollout"))}},N,H,K,T,J,O,Q,S,E,P,I,ba,sa,Z,aa,ea,oa,ua,wa,va,za,Da,U,Qa;qb(a)&&(e=a.y,g=a.w,p=a.h,m=a.wGroup,k=a.renderer,l=a.value,t=a.gaugeFillColor,r=a.gaugeBorderColor,u=a.gaugeBorderAlpha,w=a.gaugeBorderThickness,C=a.colorRangeManager,F=a.minValue,x=a.maxValue,W=a.useSameFillColor,z=a.useSameFillBgColor,A=a.ledSize,B=a.ledGap,D=a.type,
a=a.x);l>=F&&l<=x||(l=F);t=q(t,"FFFFFF");r=q(r,"000000").replace(ib,nb);u=h(u,1);w=h(w,2);Qa={x:a,y:e,w:g,h:p,wGroup:m,renderer:k,value:l,gaugeFillColor:t,gaugeBorderColor:r,gaugeBorderAlpha:u,gaugeBorderThickness:w,colorRangeManager:C,minValue:F,maxValue:x,ledGap:B,ledSize:A,type:D,useSameFillColor:W,useSameFillBgColor:z};m=k.group("graphic",m);m._attr=m.attr;m.attr=d;m._setAnimate=c;m.shadow=b;m._3dAttr=Qa;C=C.getColorRangeArr(F,x);N=a;H=e;T=K=!0;J=2===D||4===D?p:g;O=B+A;Q=B/2;S=Q/2;E=J-A;P=x-F;
x=0;I=C.length;Z=sa=0;aa=!1;oa=ea="show";ua=a;wa=e;va=w/2;za=a-va;Da=e-va;U=a+g+va;va=e+p+va;W&&(Z+=1,ea="hide");z&&(Z+=2,oa="hide");0>E?(W=1,A=J):(W=parseInt(E/O,10)+1,A+=E%O/W,O=A+B);z=P/W;m.colorArr=[];J=[];1===D?ua+=O-B/2:2===D?(T=!1,wa+=O-B/2):3===D?(N=a+g,K=!1,ua+=O-B/2):(H=e+p,T=K=!1,wa+=O-B/2);Qa.ledGap=B;Qa.ledSize=A;Qa.sizeGapSum=O;Qa.perLEDValueLength=z;Qa.isIncrement=K;Qa.isXChange=T;Qa.LEDLowerFN=ea;Qa.LEDUpperFN=oa;(Qa.LEDCase=Z)&&(3===Z?ba={x:a,y:e,width:g,height:p}:aa=!0);for(m.border=
k.path(["M",za,Da,"L",U,Da,U,va,za,va,"Z"],m).attr({stroke:L(r,u),"stroke-width":w}).shadow({apply:v});x<I;x+=1)if((r=C[x])&&ga(r.maxvalue)&&(u=ha((r.maxvalue-F)/z),A=u-sa,sa=u,0<A)){w={r:0};aa&&(ba={});A*=O;if(T)if(w.y=H,w.width=A-B,w.height=p,K?(w.x=N,N+=A):(w.x=N-w.width,N-=A),aa&&(ba.width=w.x-a,K&&1===Z||!K&&2===Z?(ba.x=a,ba.width+=w.width):ba.width=g-ba.width),0===x||x===I-1){if(w.width+=S,K&&x===I-1||!K&&0===x)w.x-=S,w.width=Math.ceil(w.width)}else w.width+=Q,w.x-=S;else if(w.x=N,w.width=g,
w.height=A-B,K?(w.y=H,H+=A):(w.y=H-w.height,H-=A),aa&&(ba.height=w.y-e,K&&1===Z||!K&&2===Z?(ba.y=e,ba.height+=w.height):ba.height=p-ba.height),0===x||x===I-1){if(w.height+=S,K&&x===I-1||!K&&0===x)w.y-=S,w.height=Math.ceil(w.height)}else w.height+=Q,w.y-=S;A=k.rect(w.x,w.y,w.width,w.height,m).attr({"stroke-width":0,fill:X({FCcolor:{color:q(r.code,"000000"),alpha:h(r.alpha,100)}})});A.oriShapeArg=w;A.hoverShapeArg=ba;A.maxLEDNo=u;A.maxLEDNoFrac=(r.maxvalue-F)/z;G&&(A.data("rollover",{"stroke-width":0,
fill:X({FCcolor:{color:na(q(r.code,"000000"),80)+","+da(q(r.code,"000000"),80),alpha:h(r.alpha,100),angle:D%2?90:0}})}),A.data("rollout",{"stroke-width":0,fill:X({FCcolor:{color:q(r.code,"000000"),alpha:h(r.alpha,100)}})}));m.colorArr.push(A)}m.darkShade=k.rect(a,e,g,p,0,m).attr({"stroke-width":0,fill:L(t,50)});for(x=1;x<W;x+=1)T?(J.push("M",ua,wa,"L",ua,wa+p),ua+=O):(J.push("M",ua,wa,"L",ua+g,wa),wa+=O);m.LEDGap=k.path(J,m).attr({stroke:L(t,100),"stroke-width":B});m.tracker=k.rect(a,e,g,p,0,m).attr({fill:ra});
G&&m.tracker.hover(y(m),ma(m));m.attr({value:l});return m}}();v("renderer.drawingpad",{deleteme:function(a){this.container.innerHTML="called from drawingpad: "+a}},v["renderer.root"]);v("renderer.widgetbase",{drawLegend:function(){},drawGraph:function(){var a=this.elements,e=this.paper,c=this.layers,d=this.options,b=c.dataset;d.nativeMessage||(c.dataset||(b=a.widgetGroup=c.dataset=e.group("dataset"),c.tracker=e.group("hot"),c.tracker.insertAfter(c.dataset)),c.datalabels||(c.datalabels=e.group("datalabels").insertAfter(b)),
b.translate(this.canvasLeft,this.canvasTop),c.datalabels.translate(this.canvasLeft,this.canvasTop),d.tooltip&&!1!==d.tooltip.enabled&&e.tooltip(d.tooltip.style,d.tooltip.shadow,d.tooltip.constrain),this.drawWidget(),this.drawScale(),this.drawValue())},drawWidgetValue:function(){},drawValue:function(a,e){var c=this.options,d=e||c.plotOptions.series.animation,c=c.series&&c.series[0]&&c.series[0].data||[],b;if(c.length){if(a&&(b=a.length))for(;b--;)c[b]&&(c[b]=a[b]);this.drawWidgetValue(c,d);this.drawWidgetLabel(c,
d)}},drawWidgetLabel:function(a){var e=this.paper,c=this.options,d=c.chart,b=this.elements,f=this.layers;a=a[0];var f=f.datalabels||(f.datalabels=e.group("datalabels").insertAfter(f.dataset)),n=this.canvasWidth,g=this.canvasHeight,p=d.valuePadding,m=a.displayValue,k=h(d.yScaleRadius,0),c=c.plotOptions.series.dataLabels.style,l={fontFamily:c.fontFamily,fontSize:c.fontSize,lineHeight:c.lineHeight,fontWeight:c.fontWeight,fontStyle:c.fontStyle},g=g+p+k;null!==a.y&&!isNaN(a.y)&&ga(m)&&m!==J&&(b.dataLabel?
b.dataLabel.attr({text:m}):b.dataLabel=e.text(f).attr({"vertical-align":"top",text:m,x:n/2,y:g,"text-anchor":Ha[Aa],fill:c.color,direction:d.textDirection,"text-bound":[c.backgroundColor,c.borderColor,c.borderThickness,c.borderPadding,c.borderRadius,c.borderDash]}).css(l).tooltip(a.originalText),e=b.dataLabel.getBBox(),0>e.x+d.spacingLeft&&(e=e.width-d.spacingLeft,d.origW<e&&(e=d.origW-d.spacingLeft),b.dataLabel.attr({x:e/2})))},drawScale:function(){var a=this.paper,e=this.elements,c=this.layers.dataset,
d=this.options,b=this.canvasWidth,f=this.canvasHeight,n=d.scale,g=n.minorTM,d=d.chart.textDirection,p=n.min,m=n.max,k=n.majorTM,l=n.axisPosition,h=n.minorTMHeight,r=n.majorTMHeight,u=n.connectorColor,w=n.connectorThickness,C=n.minorTMColor,q=n.minorTMThickness,x=n.majorTMColor,W=n.majorTMThickness,z=n.tickMarkDistance,A=n.tickValueDistance,B=n.placeTicksInside,D=n.placeValuesInside,v=Math.max(r,h),c=e.scaleGroup||(e.scaleGroup=a.group("scale",c)),G=Va,y=Aa,ma=n.reverseScale,N=p,H=q/2,K=W/2,p=m-p,
T=0,E=0,O=0,Q=0,S=0,L=0,P=0,I=0,ba=0,sa=0,Z=0,aa=0,ea=0,oa=0,ua=0,wa=0,va,za={},Da=this.smartLabel;B?(z=-z,r=-r,h=-h,D?(v=-v,A=-A):v=-z):D&&(v=-z,A=-A);ma&&(p=-p,N=m);switch(l){case 1:T=b/p;Q=-z;L=Q-K;I=Q-H;sa=Q-r;aa=Q-h;oa=Q-v-A;G=Va;y=D?cb:rb;break;case 2:E=f/p;O=z;S=O+K;P=O+H;ba=O+r;Z=O+h;ea=O+v+A;ua=b;G=D?gb:Wa;y=Aa;break;case 3:T=b/p;Q=z;L=Q+K;I=Q+H;sa=Q+r;aa=Q+h;oa=Q+v+A;wa=f;G=Va;y=D?rb:cb;break;case 4:E=f/p,O=-z,S=O-K,P=O-H,ba=O-r,Z=O-h,ea=O-v-A,G=D?Wa:gb,y=Aa}e.minorTM||(e.minorTM=[]);e.majorTM||
(e.majorTM=[]);this.tmLabel||(e.tmLabel=[]);if(h)for(b=0,m=g.length;b<m;b+=1)r=g[b]-N,z=r*T,r*=E,e.minorTM[b]=a.path(["M",z+P,r+I,"L",z+Z,r+aa],c).attr({"shape-rendering":wb[1>q],stroke:C,"stroke-linecap":"round","stroke-width":q});b=0;for(m=k.length;b<m;b+=1)if(q=k[b],r=q.value-N,Z=q.displayValue,z=r*T,r*=E,h&&(e.majorTM[b]=a.path(["M",z+S,r+L,"L",z+ba,r+sa],c).attr({"shape-rendering":wb[1>W],stroke:x,"stroke-linecap":"round","stroke-width":W})),Z!==J){C=0===b||b===m-1?n.limitValues.style:n.tickValues.style;
g=q.labelX||0;P=z+ea;Da.getSmartText(Z);aa=Da.getSmartText(Z.charAt(0)).height;I=r+oa;ma?(b==k.length-1?(f=k[b-1],r=f.value-N,r*=E,f=r+oa,f-=aa/2):b||(f=k[b+1],r=f.value-N,r*=E,f=r+oa,f=I-f-aa/2),f=Math.max(f,aa),Z=Da.getSmartText(Z,Number.POSITIVE_INFINITY,f),aa=Da.getSmartText(Z.text).height,b==k.length-1&&.5*aa>this.canvasTop?I=.5*aa-this.canvasTop:!b&&.5*aa>this.chartHeight-this.canvasBottom&&(I-=.5*aa-(this.chartHeight-this.canvasBottom))):Z=this.smartLabel.getSmartText(Z,Number.POSITIVE_INFINITY,
f);za[b]=Z.width;if(1===l||3===l)if(aa=b===m-1?P+g-Z.width:P-(Z.width/2+g),0===b?r=Number.NEGATIVE_INFINITY:(r=void 0===va?b-1:va,A=A=z=void 0,0>r?r=Number.NEGATIVE_INFINITY:(z=e.tmLabel[r],A=za[r],A=0===r?z?z.node.scrollWidth?z.node.scrollWidth>A?z.node.scrollWidth:A:A:0:z?z.node.scrollWidth?(z.node.scrollWidth>A?z.node.scrollWidth:A)/2:A/2:0,r=z?z.attrs.x+A:0)),r>=aa)if(b===m-1)e.tmLabel[va].remove();else continue;else va=b;e.tmLabel[b]=a.text(P+g,I,Z.text,c).attr({"text-anchor":Ha[q.align||G],
direction:d,"vertical-align":y}).css(C).tooltip(Z.tooltext)}w&&(e.tmConnector=a.path(["M",O,Q,"L",p*T+O,p*E+Q],c).attr({"shape-rendering":wb[1>w],stroke:u,"stroke-linecap":"round","stroke-width":w}));c.translate(ua,wa);return c},realtimeUpdate:function(a){if(a===this.lastUpdatedObj)return!1;var e=this.options,c=e.series,d=this.logic,c=c&&c[0]&&c[0].data,b=a.values||[],f=a.labels||[],n=a.toolTexts||[],g=a.showLabels||[],p=c&&c.length||0,m=[],k;if(p){for(;p--;)k={},void 0!==b[p]&&""!==b[p]?(k.value=
b[p],k.hasNewData=!0):k.value=c[p].y,f[p]&&(k.displayvalue=f[p],k.hasNewData=!0),n[p]&&(k.tooltext=n[p],k.hasNewData=!0),k.hasNewData&&(m[p]=d.getPointStub(k,p,e,this.definition)),"0"!=g[p]&&c[p].displayValue||(m[p].displayValue=J);m.length&&(this.lastUpdatedObj=a)&&this.drawValue(m);return Boolean(m.length)}}},v["renderer.root"]);v("renderer.bulb",{drawWidget:function(){var a=this,e=a.options,c=e.chart,d=a.paper,b=a.elements,f=c.gaugeRadius,e=e.series[0]&&e.series[0].data&&e.series[0].data[0]||{},
n=e.rolloverProperties||{},g={cx:c.gaugeOriginX,cy:c.gaugeOriginY,stroke:e.borderColor,"stroke-linecap":"round","stroke-width":e.borderWidth,r:c.animation?.001:f},p={r:f},m;null===e.y||isNaN(e.y)||(m=b.bulb=(m=b.bulb)?m.attr(g):d.circle(g,a.layers.dataset),c.animation&&m.animate(p,c.animation.duration,"easeIn"),m.click(function(b){la.call(this,a,b)}).hover(function(b){la.call(this,a,b,"DataPlotRollOver")},function(b){la.call(this,a,b,"DataPlotRollOut")}),n.enabled&&m.mouseover(function(){m.attr(n.hoverAttr);
n.hoverAnimAttr&&m.animate(n.hoverAnimAttr,100,"easeIn")}).data("hoverAttr",n.hoverAttr).mouseout(function(){m.attr(n.outAttr);n.hoverAnimAttr?m.animate(p,100,"easeIn"):m.attr(p)}).data("outAttr",n.outAttr))},drawWidgetValue:function(a){var e=this.elements;a=a[0];var c=a.rolloverProperties||{},d=c.hoverAttr,b=c.outAttr,f={fill:X(a.color),ishot:!0},e=e.bulb,n=e.data("hoverAttr"),g=e.data("outAttr");c.enabled&&(d&&d.stroke&&(n.stroke=d.stroke,g.stroke=b.stroke),d&&d.fill&&(n.fill=d.fill,g.fill=b.fill));
e||this.drawWidget();c={value:a.y,displayValue:a.displayValueArgs,toolText:a.toolText};null===a.y||isNaN(a.y)||e.attr(f).tooltip(a.toolText).data("eventArgs",c)},drawScale:function(){},drawWidgetLabel:function(a){var e=this.options.chart,c=this.paper,d=this.elements,b=this.layers,f=e.gaugeRadius,n=e.gaugeOriginX,g=e.gaugeOriginY;a=a[0];var p=d.dataLabel,m=e.dataLabels.style,k={fontFamily:m.fontFamily,fontSize:m.fontSize,lineHeight:m.lineHeight,fontWeight:m.fontWeight,fontStyle:m.fontStyle};b.datalabels||
(b.datalabels=c.group("datalabels").insertAfter(b.dataset));e.placeValuesInside?(b=g,f=Aa):(b=g+f+e.valuePadding,f=cb);null===a.y||isNaN(a.y)||a.displayValue===J||(p||(d.dataLabel=p=c.text(this.layers.dataset)),p.attr({text:a.displayValue,"text-anchor":"middle",x:n,y:b,"vertical-align":f,fill:m.color,direction:e.textDirection,"text-bound":[m.backgroundColor,m.borderColor,m.borderThickness,m.borderPadding,m.borderRadius,m.borderDash]}).css(k).tooltip(a.originalText))}},v["renderer.widgetbase"]);v("renderer.thermometer",
{drawWidget:function(){var a=this.options,e=a.chart,c=this.paper,d=a.series[0].data[0],b=e.plotHoverEffects||{},f=e.thmBulbRadius,n=.643*f,g=new sb(d.color),p=g.get("hex").replace(ib,J),g=100*g.get("a"),m;d.minValue=a.scale.min;d.maxValue=a.scale.max;m=this.elements.thermometer=Ob(0+n,0-n,f,e.thmHeight,this.layers.dataset,c,0,e.thmGlassColor,e.gaugeBorderColor,e.gaugeBorderThickness,p,g,e.use3DLighting);b.enabled&&m.data("hoverInAttrs",{fluidColor:b.thmFillHoverColor,fluidAlpha:b.thmFillHoverAlpha}).data("hoverOutAttrs",
{fluidColor:p,fluidAlpha:g}).hover(function(){m.attr(m.data("hoverInAttrs"))},function(){m.attr(m.data("hoverOutAttrs"))})},drawWidgetValue:function(a,e){var c=this,d=c.elements,b=c.options.scale,f=b.max,n=b.min,b=a[0],f=(h(b.y,n)-n)/(f-n),g;d.thermometer||c.drawWidget();b.fluidHRatio=f;n={value:b.y,displayValue:b.displayValueArgs,toolText:b.toolText};e&&d.thermometer._setAnimate(e);d.thermometer.attr({fluidHRatio:f,ishot:!0}).click(function(a){la.call(this,c,a)}).hover(function(a){la.call(this,c,
a,"DataPlotRollOver")},function(a){la.call(this,c,a,"DataPlotRollOut")}).data("eventArgs",n);if(b.toolText&&(g=d.thermometer.bottom)){do g.tooltip(b.toolText);while(g=g.next)}}},v["renderer.widgetbase"]);v("renderer.cylinder",{drawWidget:function(){var a=this.options,e=a.chart,c=e.plotHoverEffects||{},d=this.paper,b=this.elements,f=this.layers.dataset,n=a.scale,g=n.max,a=a.series[0].data[0],h,m;a.minValue=n.min;a.maxValue=g;b.cylinder=Pb(e.cylRadius,0,e.cylRadius,e.cylHeight,e.cylYScale,f,d,0,e.cylGlassColor,
"100",e.cylFillColor,e.cylFillAlpha,e.cyl3DLighting);c.enabled&&(h={color:c.cylFillHoverColor,alpha:c.cylFillHoverAlpha},m={color:e.cylFillColor,alpha:e.cylFillAlpha},b.cylinder.hover(function(){b.cylinder.attr(h)},function(){b.cylinder.attr(m)}))},drawWidgetValue:function(a,e){var c=this,d=c.elements,b=c.options.scale,f=b.max,n=b.min,b=a[0],f=(h(b.y,n)-n)/(f-n),g;d.cylinder||c.drawWidget();n={value:b.y,displayValue:b.displayValueArgs,toolText:b.toolText};b.fluidHRatio=f;e&&d.cylinder._setAnimate(e);
d.cylinder.attr({fluidHRatio:f,ishot:!0}).click(function(a){la.call(this,c,a)}).hover(function(a){la.call(this,c,a,"DataPlotRollOver")},function(a){la.call(this,c,a,"DataPlotRollOut")}).data("eventArgs",n);if(b.toolText&&(g=d.cylinder.bottom)){do g.tooltip(b.toolText);while(g=g.next)}}},v["renderer.widgetbase"]);v("renderer.led",{drawWidget:function(){var a=this.options,e=this.paper,c=this.logic,d=a.chart,b=this.elements,f=a.scale,n=f.max,g=f.min,a=a.series[0].data[0],h=this.layers.dataset;a.minValue=
g;a.maxValue=n;b.led=Qb(0,0,this.canvasWidth,this.canvasHeight,h,e,0,d.gaugeFillColor,d.gaugeBorderColor,d.gaugeBorderAlpha,d.gaugeBorderThickness,c.colorRangeGetter,g,n,d.useSameFillColor,d.useSameFillBgColor,d.ledSize,d.ledGap,c.isHorizontal?f.reverseScale?3:1:f.reverseScale?4:2,d.showShadow,d.plotHoverEffect)},drawWidgetValue:function(a,e){var c=this.elements,d=a[0].y;c.led||this.drawWidget();e&&c.led._setAnimate(e);c.led.attr({value:d})}},v["renderer.widgetbase"]);v("renderer.bullet",{drawWidget:function(){var a=
this.options,e=this.paper,c=this.logic,d=a.chart,b=a.scale,a=this.elements,f=this.layers.dataset,n=this.canvasWidth,g=this.canvasHeight,p=b.min,m=b.max,k=b&&b.trendPoint||[],l=d.colorRangeFillMix,t=d.colorRangeFillRatio,r=d.colorRangeBorderColor,u=d.colorRangeBorderAlpha,w=d.colorRangeBorderThickness,C=c.colorRangeGetter.getColorRangeArr(p,m),d=d.showShadow,q,x,v,z,A,B=c.colorManager,D,R,G;a.linear||(a.linear=q=e.group("colorrange",f),a.outerRect=e.rect(q));a.outerRect.attr({x:0,y:0,width:n,height:g,
stroke:"none",r:0});c=c.isHorizontal?b.reverseScale?3:1:b.reverseScale?4:2;1===c?(f=function(a,b){return{x:a*n/(m-p),y:0,width:(b-a)*n/(m-p),height:g}},x=270):2===c?(f=function(a,b){return{x:0,y:a*g/(m-p),width:n,height:(b-a)*g/(m-p)}},x=180):3===c?(f=function(a,b){return{x:n-b*n/(m-p),y:0,width:(b-a)*n/(m-p),height:g}},x=270):(f=function(a,b){return{x:0,y:g-b*g/(m-p),width:n,height:(b-a)*g/(m-p)}},x=180);a.colorRangeElems||(a.colorRangeElems=[]);c=0;for(b=C.length;c<b;c+=1)z=C[c],A=f(z.minvalue-
p,z.maxvalue-p),z.x=A.x,z.y=A.y,z.width=A.width,z.height=A.height,v=z.code,v=L(Ba(v,r),u),D=B.parseColorMix(z.code,l),R=B.parseAlphaList(z.alpha,D.length),G=h(z.borderAlpha,u),z=R.split(y),z=Ca.apply(Math,z),z=Ca(w&&G||0,z),a.colorRangeElems[c]||(a.colorRangeElems[c]=e.rect(q)),a.colorRangeElems[c].attr({x:A.x,y:A.y,width:A.width,height:A.height,r:0,"stroke-width":w,stroke:v,fill:X({FCcolor:{color:D.toString(),ratio:t,alpha:R,angle:x}})}).shadow({apply:d,opacity:z/100});for(;a.colorRangeElems[c];)a.colorRangeElems[c].remove(),
a.colorRangeElems.splice(c,1);a.trendObjElems||(a.trendObjElems=[]);c=0;for(b=k.length;c<b;c+=1)l=k[c],A=f(l.startValue-p,l.endValue-p),l.isZone?(a.trendObjElems[c]||(a.trendObjElems[c]=e.rect(q)),a.trendObjElems[c].attr({x:A.x,y:A.y,width:0<A.width?A.width:0,height:0<A.height?A.height:0,r:0,fill:X({FCcolor:{color:l.color,alpha:l.alpha}})})):a.trendObjElems[c]=this.path(["M",A.x,A.y,"L",A.x,A.y+A.height],q).attr({stroke:L(l.color,l.alpha),"stroke-width":l.thickness,"stroke-dasharray":l.dashStyle});
for(;a.trendObjElems[c];)a.trendObjElems[c].remove(),a.trendObjElems.splice(c,1)},drawWidgetValue:function(a){var e=this,c=e.paper,d=e.layers.dataset,b=e.canvasWidth,f=e.canvasHeight,n=e.options.scale,g=n.max,p=n.min,m=g-p,k=a[0],l=a[1],t=n&&n.trendPoint||[],r,u,w=l.borderWidth,q=e.logic.isHorizontal,F;u=a.length;var x=0,v=0,z=0,A=0,B=p,D,y,G,M,J,N;q?(x=b/m,A=f/2):(v=f/m,z=b/2);n.reverseScale&&(x=-x,v=-v,B=g);for(;u--;)F=a[u],n=h(F.y,B)-B,F.plotX=F.origX=n*x+z,F.plotY=F.origY=n*v+A;for(u=t.length;u--;)F=
t[u],n=F.startValue-p,F.plotX=F.origX=n*x+z,F.plotY=F.origY=n*v+A;n=function(a){a=h(a,B)-B;return{x:a*x+z,y:a*v+A}}(Math.min(Math.max(p,0),g));ga(k.y)&&(k.plotAsDot?(t=u=k.plotFillPercent/100*(q?f:b),a=k.plotX-u/2,g=k.plotY-t/2,q?(k.animInitAttr={x:n.x},k.animAttr={x:a}):(k.animInitAttr={y:n.y},k.animAttr={y:g})):(a=Math.min(k.plotX,n.x),g=Math.min(k.plotY,n.y),t=Math.abs(k.plotY-n.y),u=Math.abs(k.plotX-n.x),q?(k.animInitAttr={x:n.x,width:0},k.animAttr={x:a,width:u},t=k.plotFillPercent/100*f,g-=t/
2):(k.animInitAttr={y:n.y,height:0},k.animAttr={y:g,height:t},u=k.plotFillPercent/100*b,a-=u/2)),p={link:F.link,value:k.y,displayValue:k.displayValueArgs,toolText:F.toolText},F.shapeType="rect",F.shapeArgs={x:a,y:g,height:t,width:u,endY:r,r:0},G=k.rolloverProperties||{},G.enabled&&void 0!==G.plotFillHoverPercent&&(G.showHoverAnimation?(D={},y={}):(D=G.hoverAttr,y=G.outAttr),k.plotAsDot?(D.width=D.height=G.plotFillHoverPercent/100*(q?f:b),D.x=k.plotX-D.width/2,D.y=k.plotY-D.width/2,y.width=y.height=
u,y.x=a,y.y=g):q?(D.height=G.plotFillHoverPercent/100*f,D.y=Math.min(k.plotY,n.y)-D.height/2,y.height=t,y.y=g):(D.width=G.plotFillHoverPercent/100*b,D.x=Math.min(k.plotX,n.x)-D.width/2,y.width=u,y.x=a)),F.graphic=c.rect(a,g,u,t,0,d).attr({fill:F.color,stroke:F.borderColor,ishot:!0,"stroke-width":F.borderWidth}).click(function(a){la.call(this,e,a)}).hover(function(a){la.call(this,e,a,"DataPlotRollOver");G.enabled&&(this.attr(G.hoverAttr),G.showHoverAnimation&&this.animate(D,100,"easeOut"))},function(a){la.call(this,
e,a,"DataPlotRollOut");G.enabled&&(this.attr(G.outAttr),G.showHoverAnimation&&this.animate(y,100,"easeOut"))}).tooltip(F.toolText).data("eventArgs",p));ga(l.y)&&(q?(u=f*l.targetFillPercent/100,t=u/2,k=a=l.plotX,p=g=l.plotY-t,r=l.plotY+t,t=u,u=w,F=a-w/2,n=[a+w,l.plotY]):(u=b*l.targetFillPercent/100,t=u/2,F=a=l.plotX-t,g=r=l.plotY,k=l.plotX+t,t=w,p=g-w/2,n=[l.plotX,g+w+10]),l.shapeType="rect",l.tooltipPos=n,l.trackerArgs={x:F,y:p,height:t,width:u,r:0},l.shapeArgs=["M",a,g,"L",k,r],l.animInitAttr={d:["M",
l.plotX,l.plotY,"L",l.plotX,l.plotY]},l.animAttr={d:l.shapeArgs},p={link:l.link,value:l.y,displayValue:l.displayValueArgs,toolText:l.toolText},M=l.rolloverProperties||{},M.enabled&&void 0!==M.plotFillHoverPercent&&(M.showHoverAnimation?(N={},J={d:l.shapeArgs}):(N=M.hoverAttr,M.outAttr.d=l.shapeArgs),q?(u=f*l.plotFillHoverPercent/100,t=u/2,N.d=["M",a,l.plotY-t,"L",k,l.plotY+t]):(u=b*l.plotFillHoverPercent/100,t=u/2,N.d=["M",l.plotX-t,g,"L",l.plotX+t,r])),l.graphic=c.path(l.shapeArgs,d).attr({stroke:l.borderColor,
"stroke-width":w,"stroke-linecap":"round",ishot:!0,"shape-rendering":wb[1>w]}).click(function(a){la.call(this,e,a)}).hover(function(a){la.call(this,e,a,"DataPlotRollOver");M.enabled&&(this.attr(M.hoverAttr),M.showHoverAnimation&&this.animate(N,100,"easeOut"))},function(a){la.call(this,e,a,"DataPlotRollOut");M.enabled&&(this.attr(M.outAttr),M.showHoverAnimation&&this.animate(J,100,"easeOut"))}).tooltip(l.toolText).data("eventArgs",p))}},v["renderer.widgetbase"]);v("renderer.hbullet",{drawWidgetLabel:function(a){var e=
this.options,c=e.chart,d=this.layers,b=this.paper,f=d.datalabels;a=a[0];var n=this.canvasWidth,g=this.canvasHeight,h=c.valuePadding,e=e.plotOptions.series.dataLabels.style,m={fontFamily:e.fontFamily,fontSize:e.fontSize,lineHeight:e.lineHeight,fontWeight:e.fontWeight,fontStyle:e.fontStyle};f||(f=d.datalabels=b.group("datalabels").insertAfter(d.dataset));d=n+h;void 0===a.y||isNaN(a.y)||a.displayValue===J||(a.dataLabel=b.text(d,g/2,a.displayValue,f).attr({"text-anchor":Ha[Wa],fill:e.color,direction:c.textDirection,
"text-bound":[e.backgroundColor,e.borderColor,e.borderThickness,e.borderPadding,e.borderRadius,e.borderDash]}).css(m).tooltip(a.originalText))}},v["renderer.bullet"]);v("renderer.hlinear",{drawWidget:function(){var a=this.options,e=this.paper,c=this.logic,d=a.chart,b=a.scale,a=this.elements,f=this.layers.dataset,n=this.canvasWidth,g=this.canvasHeight,p=b.min,m=b.max,b=b&&b.trendPoint||[],k=d.colorRangeFillMix,l=d.colorRangeFillRatio,t=d.colorRangeBorderColor,r=d.colorRangeBorderAlpha,u=d.colorRangeBorderThickness,
w=c.colorRangeGetter.getColorRangeArr(p,m),C=d.showShadow,F,x,v,z,A,B,D=this.pointOrientation={top:1,bottom:3},R=c.colorManager,G,M,J;a.linear||(a.linear=x=e.group("colorrange",f),a.outerRect=e.rect(x));a.outerRect.attr({x:0,y:0,width:n,height:g,stroke:"none",r:0});v=function(a,b){return{x:a*n/(m-p),y:0,width:(b-a)*n/(m-p),height:g}};a.colorRangeElems||(a.colorRangeElems=[]);c=0;for(F=w.length;c<F;c+=1)A=w[c],B=v(A.minvalue-p,A.maxvalue-p),A.x=B.x,A.y=B.y,A.width=B.width,A.height=B.height,z=A.code,
z=L(Ba(q(A.bordercolor,z),t),h(A.borderalpha,r)),G=R.parseColorMix(A.code,k),M=R.parseAlphaList(A.alpha,G.length),A=h(A.borderAlpha,r),J=M.split(y),J=Ca.apply(Math,J),J=Ca(u&&A||0,J),a.colorRangeElems[c]||(a.colorRangeElems[c]=e.rect(x)),a.colorRangeElems[c].attr({x:B.x,y:B.y,width:B.width,height:B.height,r:0,"stroke-width":u,stroke:z,fill:X({FCcolor:{color:G.toString(),ratio:l,alpha:M,angle:270}})}).shadow({apply:C,opacity:J/100});for(;a.colorRangeElems[c];)a.colorRangeElems[c].remove(),a.colorRangeElems.splice(c,
1);a.trendObjElems||(a.trendObjElems=[]);c=0;for(F=b.length;c<F;c+=1)k=b[c],B=v(k.startValue-p,k.endValue-p),k.isZone?(a.trendObjElems[c]||(a.trendObjElems[c]=e.rect(x)),a.trendObjElems[c].attr({x:B.x,y:B.y,width:0<B.width?B.width:0,height:0<B.height?B.height:0,r:0,"stroke-width":0,fill:X({FCcolor:{color:k.color,alpha:k.alpha}})}).tooltip(k.tooltext)):a.trendObjElems[c]=e.path(["M",B.x,B.y,"L",B.x,B.y+B.height],x).attr({stroke:L(k.color,k.alpha),"stroke-width":k.thickness,"stroke-dasharray":k.dashStyle}).tooltip(k.tooltext),
k.useMarker&&(k.showOnTop?(t="bottom",l=0):(t="top",l=g),t=90*D[t],k.graphic=e.polypath(3,B.x,l,k.markerRadius,t,0,f).attr({fill:k.markerColor,stroke:k.markerBorderColor,"stroke-width":1}).shadow({apply:d.showShadow}).tooltip(k.tooltext));for(;a.trendObjElems[c];)a.trendObjElems[c].remove(),a.trendObjElems.splice(c,1)},drawWidgetValue:function(a,e){var c=a&&a.length||0,d=this.options.chart,b=this.pointOrientation,f={point:[],showPointerShadow:d.showPointerShadow},d=d.pointerOnOpp?"top":"bottom";for(this.dataById=
{};c--;)f.point[c]={startAngle:90*b[d]};this.drawPointerValues(null,e,f)},drawPointerValues:function(a,e,c){var d=this;a=d.layers.dataset;var b=d.options,f=d.elements,n=d.paper,g=b.scale,p=b.series&&b.series[0]&&b.series[0].data||[],m=d.canvasWidth,k=d.canvasHeight,k=b.chart.pointerOnOpp?k:0,l=b.chart.showPointerShadow,b=!1!==b.tooltip.enabled,t=(g.max-g.min)/m,r=g.min,u=g.max,w=p.length,q,F,x,v,z={pageX:0,pageY:0},A=function(a){F=d.fusionCharts.getDataJSON();this.dragStartX=a},B=function(){var a,
b=d.fusionCharts;(a=b&&b.jsVars)&&(a._rtLastUpdatedData=b.getDataJSON());qa.raiseEvent("RealTimeUpdateComplete",{data:"&value="+this.updatedValStr,updateObject:{values:[this.updatedValStr]},prevData:F.values,source:"editMode",url:null},b);try{ka.FC_ChartUpdated&&ka.FC_ChartUpdated(b.id)}catch(c){setTimeout(function(){throw c;},1)}this.graphic.tooltip(this.toolText)},D=function(a,b,c,e,f){a=Db&&(Db&&f.sourceEvent&&f.sourceEvent.touches&&f.sourceEvent.touches[0]||f)||z;b=h(this.y,g.min);e=b-(this.dragStartX-
c)*t;var n=0,k=[];e<g.min?e=g.min:e>g.max&&(e=g.max);for(;n<this.index;n+=1)k.push("");k.push(e);b!==e&&d.realtimeUpdate({values:k},{duration:0})&&(this.updatedValStr=k.join("|"),this.dragStartX=c||f.pageX||a.pageX)},y,G,M,J,N,H;J=function(a){la.call(this,d,a)};N=function(a){var b=this.data("rolloverProperties");b.enabled&&(this.attr(b.hoverAttr),b.hoverAnimAttr&&this.animate(b.hoverAnimAttr,100,"easeIn"));la.call(this,d,a,"DataPlotRollOver")};for(H=function(a){var b=this.data("rolloverProperties");
b.enabled&&(this.attr(b.outAttr),b.outAnimAttr&&this.animate(b.outAnimAttr,100,"easeIn"));la.call(this,d,a,"DataPlotRollOut")};w--;)q=p[w],G=q.rolloverProperties||{},v=c&&c.point[w]&&c.point[w].startAngle||q._startAngle,v+=.2,f.pointers||(f.pointers=[]),f.pointers[w]||(void 0!==q.id&&(d.dataById[q.id]={index:w,point:q}),x=l?{opacity:Math.max(q.bgalpha,q.borderalpha)/100}:!1,y=q.editMode?void 0:q.link,M={link:y,value:q.y,displayValue:q.displayValueArgs,toolText:q.toolText},q.graphic=f.pointers[w]=
n.polypath(q.sides,0,k||0,q.radius,v,0,a).attr({fill:q.color,stroke:q.borderColor,ishot:!0,r:q.radius,"stroke-width":q.borderWidth}).shadow(!!x,x&&x.opacity).click(J).hover(N,H).data("eventArgs",M).data("rolloverProperties",G),y&&q.graphic.css({cursor:"pointer",_cursor:"hand"}),q._startAngle=v,q.editMode&&(q.index=w,q.graphic.css({cursor:"pointer",_cursor:"hand"}).attr({ishot:!0}),q.graphic.drag(D,A,B,q,q,q))),q.graphic=f.pointers[w],b&&q.graphic.tooltip(q.toolText),e&&e.duration?q.graphic.animate({polypath:[q.sides,
m*(h(q.y,r)-r)/(u-r),k||0,q.radius,v,0]},e.duration,"easeIn"):q.graphic.attr({polypath:[q.sides,m*(h(q.y,r)-r)/(u-r),k||0,q.radius,v,0]})},drawWidgetLabel:function(a,e){var c=this.options,d=c.scale,b=this.layers,f=this.paper,n=c.chart,g=this.logic,b=b.datalabels||(b.datalabels=f.group("datalabels").insertAfter(b.dataset)),p=d.min,m=d.max,k=n.textDirection,l=g.colorRangeGetter.getColorRangeArr(p,m),g=g.numberFormatter,t=n.colorRangeStyle.style||{},r,u=this.canvasWidth,w=this.canvasHeight,C=n.marginRight,
d=d&&d.trendPoint||[],F=n.pointerOnOpp,x=n.valueInsideGauge;r=n.showGaugeLabels;var v=c.plotOptions.series.dataLabels.style,z,A,B,D,y,G,M,E,N;E=!1;var c=this.smartLabel,H,K,T;T=h(parseInt(v.fontHeight,10),parseInt(v.lineHeight,10),12);var L=n.valuePadding+.5*T,n=n.valuePadding,O=L,Q,v={fontFamily:v.fontFamily,fontSize:v.fontSize,lineHeight:v.lineHeight,fontWeight:v.fontWeight,fontStyle:v.fontStyle},L=x===F?L-T/4:L+T/4;c.setStyle(v);K=c.getOriSize("W...").width;D=this.getPointerLabelXY=function(a,
b,c,d,e){b=c?b?w-d-L:w+L:b?L:-(L+d);Q=(a-p)*u/(m-p);Q+e>u+C&&(Q=u-e+C);return{x:Q,y:b,align:"middle"}};y=function(a,b){return{x:(a-p+(b-a)/2)*u/(m-p),y:w/2,width:(b-a)*u/(m-p),height:w}};if(a&&a.length)for(v=a.length;v--;)if(B=a[v],0!==B.showvalue&&B.displayValue!==J&&(H=c.getOriSize(B.displayValue),B.setWidth&&(H=c.getSmartText(B.displayValue,B.setWidth,H.height,!0)),G=this.getPointerLabelXY(B.y,x,F,H.height/2,H.width/2),B.isLabelString)){E=!1;for(N=1;!E;){M=a[v+N];if(!M)break;M.isLabelString?E=
!0:N+=1}M&&(E=c.getOriSize(M.displayValue),z=D(M.y,x,F,E.height/2),N=z.x-E.width/2-(G.x+H.width/2),z=z.x-G.x,0>N&&(A=H.width+N,A>z&&(B.setWidth=A=z),A>K?(G=B.setWidth&&B.setWidth<=A?c.getSmartText(B.displayValue,B.setWidth,H.height,!0):c.getSmartText(B.displayValue,A,H.height,!0),B.displayValue=G.text,G.tooltext&&(B.originalText=G.tooltext)):(G=c.getSmartText(B.displayValue,K,H.height,!0),B.displayValue=G.text,G.tooltext&&(B.originalText=G.tooltext),N=2*N+K-4),B.setWidth=null,A=E.width+N-4,M.setWidth=
A>z?z:A>K?A:K));B.setWidth&&(G=c.getSmartText(B.displayValue,B.setWidth,H.height,!0),B.displayValue=G.text,G.tooltext&&(B.originalText=G.tooltext),B.setWidth=null)}this.drawPointerLabels(null,e);t=t||{};c.setStyle(t);if(l&&r)for(v=0,F=l.length;v<F;v+=1)r=l[v],x=q(r.label,r.name),ga(x)&&x!==J&&(G=y(r.minvalue,r.maxvalue),H=G.width-4>K&&G.height-4>T?c.getSmartText(x,G.width-4,G.height-4):c.getSmartText(x,G.width,G.height),f.text(b).attr({"text-anchor":Aa,"vertical-align":Aa,text:H.text,x:G.x,y:G.y,
direction:k,fill:t.color}).css(t).tooltip(H.tooltext));if(d)for(v=0,F=d.length;v<F;v+=1){l=d[v];l.displayValue=q(l.displayValue,g.dataLabels(l.startValue));c.setStyle(l.style);T=c.getOriSize("Wg").height;H=c.getOriSize(l.displayValue);G=D(l.startValue,0,!l.showOnTop);l.setWidth&&(H=c.getSmartText(l.displayValue,l.setWidth,H.height,!0));E=!1;for(N=1;!E;){M=d[v+N];if(!M)break;M.showOnTop===l.showOnTop?E=!0:N+=1}M&&(E=c.getOriSize(M.displayValue),z=D(M.startValue,0,!M.showOnTop),N=z.x-E.width/2-(G.x+
H.width/2),0>N&&(z=z.x-G.x,A=H.width+N,A>z&&(l.setWidth=A=z),A>K?(H=l.setWidth&&l.setWidth<=A?c.getSmartText(l.displayValue,l.setWidth,H.height,!0):c.getSmartText(l.displayValue,H.width+N-4,H.height,!0),l.displayValue=H.text,H.tooltext&&(l.originalText=H.tooltext)):(H=c.getSmartText(l.displayValue,K,H.height,!0),l.displayValue=H.text,H.tooltext&&(l.originalText=H.tooltext),N=2*N+K-4),l.setWidth=null,A=E.width+N-4,M.setWidth=A>z?z:A>K?A:K));l.setWidth&&(H=c.getSmartText(l.displayValue,l.setWidth,H.height,
!0),l.displayValue=H.text,H.tooltext&&(l.originalText=H.tooltext),l.setWidth=null);T=l.showOnTop?-(n+H.height/2):w+O;t=l.isZone?y(l.startValue,l.endValue).x:G.x;l.dataLabel=f.text(0,T,l.displayValue,b).attr({"text-anchor":Ha[G.align],direction:k}).css(l.style).tooltip(l.originalText);l.dataLabel.attr({x:t})}},drawPointerLabels:function(a,e){for(var c=this.layers.datalabels,d=this.paper,b=this.options,f=b.chart,n=f.marginLeft,g=f.pointerOnOpp,h=f.valueInsideGauge,f=f.textDirection,m=this.smartLabel,
k=b.series&&b.series[0]&&b.series[0].data||[],b=b.plotOptions.series.dataLabels.style,l=k.length,t={fontFamily:b.fontFamily,fontSize:b.fontSize,lineHeight:b.lineHeight,fontWeight:b.fontWeight,fontStyle:b.fontStyle},r,u,q,C;l--;)u=k[l],r=u.displayValue,0!==u.showvalue&&r!==J&&(m.setStyle(t),C=m.getOriSize(r),q=this.getPointerLabelXY(u.y,h,g,C.height/2,C.width/2),u.dataLabel?u.dataLabel.attr({text:r,title:u.originalText||""}):u.dataLabel=d.text(c).attr({"text-anchor":Ha[q.align],text:r,x:0,y:q.y,fill:b.color,
direction:f,"text-bound":[b.backgroundColor,b.borderColor,b.borderThickness,b.borderPadding,b.borderRadius,b.borderDash]}).css(t).tooltip(u.originalText),q.x+n<C.width/2&&(q.x=C.width/2-n),e&&e.duration?u.dataLabel.animate({x:q.x},e.duration,"easeIn"):u.dataLabel.attr({x:q.x}))},realtimeUpdate:function(a,e){if(a===this.lastUpdatedObj)return!1;var c=this.options,d=c[U],b=c.series,f=this.numberFormatter,b=b&&b[0]&&b[0].data,n=a.values||[],g=a.labels||[],h=a.toolTexts||[],m=a.showLabels||[],k=b&&b.length||
0,l,t,r=null,u=[],w;e=e||c.plotOptions.series.animation;if(k){for(;k--;)c={},w={},l=b[k],void 0!==n[k]&&""!==n[k]?(c.value=w.value=n[k],r=w.displayvalue=w.tooltext=f.dataLabels(w.value),w.hasNewData=!0):w.value=l.y,g[k]&&(w.displayvalue=g[k],w.hasNewData=!0),"0"==m[k]&&(w.displayvalue=J,w.hasNewData=!0),t=E(ca(q(l._tooltext,d.tooltext))),h[k]&&(t=E(ca(h[k])),w.hasNewData=!0),w.hasNewData&&(u[k]=w,Y(l,{y:w.value,displayValue:l.displayValue||"1"==m[k]?w.displayvalue:J,toolText:void 0!==t?ab(t,[1,2],
{formattedValue:r},c):r}));u.length&&(this.lastUpdatedObj=a,this.drawPointerValues(b,e),this.drawPointerLabels(b,e));return Boolean(u.length)}}},v["renderer.widgetbase"]);v("renderer.angular",{drawWidget:function(){var a=this.options,e=a.chart,c=a.scale,d=a.series[0],a=this.paper,b=this.elements,f=this.layers.dataset,n=d.gaugeOuterRadius,g=d.gaugeInnerRadius,p=d.gaugeFillRatio,m=e.gaugeBorderColor,k=e.gaugeBorderThickness,l=e.gaugeBorderAlpha,t=d.gaugeFillMix,r=d.gaugeOriginX,u=d.gaugeOriginY,w=e.gaugeStartAngle,
C=e.gaugeEndAngle,F=e.showShadow,e=e.textDirection,x=c.min,v=c.max,z=this.logic,A=z.colorRangeGetter.getColorRangeArr(x,v),B=0,D=A.length,R=v-x,C=C-w,G,M,E=w,N=Math.cos(w),H=Math.sin(w),K=r+n*N;M=u+n*H;var N=r+g*N,H=u+g*H,T,c=c.trendPoint,I,O=this.smartLabel;b.trendPointGroup||(b.trendPointGroup=a.group("trendpoint",f));for(;B<D;B+=1)G=A[B],M=w+(Math.min(G.maxvalue,v)-x)/R*C,N=z.parseColorMix(G.code,t),H=z.parseAlphaList(G.alpha,N.length),K=z.parseRatioList(g/n*100+p,N.length),I=G.bordercolor,T=h(G.borderAlpha,
l),I=I&&-1==I.indexOf("{")?L(I,T):z.parseColorMix(G.code,q(I,m))[0],I=L(I,T),G=H.split(y),G=Ca.apply(Math,G),G=F?Ca(k&&T||0,G):0,T=M,E>M&&(E+=M,M=E-M,E-=M),a.ringpath(r,u,n,g,E,M,f).attr({fill:X({FCcolor:{cx:r,cy:u,r:n,gradientUnits:"userSpaceOnUse",color:N.join(),alpha:H,ratio:K,radialGradient:!0}}),"stroke-width":k,stroke:I}).shadow({apply:F,opacity:G/100}),E=T;b.tickMarkGroup||(b.tickMarkGroup=a.group("tickmark",f));b.trendMarkerGroup||(b.trendMarkerGroup=a.group("trendmarker",f));b.pointGroup||
(b.pointGroup=a.group("pointers",f).translate(r,u));b.pivot||(b.pivot=a.circle(f));b.pivot.attr({cx:r,cy:u,r:d.pivotRadius,fill:X({FCcolor:d.isRadialGradient?{color:d.pivotFillColor,alpha:d.pivotFillAlpha,ratio:d.pivotFillRatio,radialGradient:!0,angle:d.pivotFillAngle,cx:.5,cy:.5,r:"50%"}:{color:d.pivotFillColor,alpha:d.pivotFillAlpha,ratio:d.pivotFillRatio,radialGradient:!1,angle:d.pivotFillAngle}}),"stroke-width":d.pivotBorderThickness,stroke:d.pivotBorderColor}).shadow({apply:F});f=Math.cos(89.99*
hb);p=-f;B=0;for(D=c.length;B<D;B+=1)d=c[B],F=d.isZone,t=w+(d.startValue-x)/R*C,m=h(d.radius,n),k=h(d.innerRadius,F?Math.max(g-15,0):g),l=h(d.trendValueDistance,0),N=Math.cos(t),H=Math.sin(t),K=r+m*N,M=u+m*H,N=r+k*N,H=u+k*H,F?(H=w+(d.endValue-x)/R*C,t>H&&(t+=H,H=t-H,t-=H),d.graphic=a.ringpath(r,u,m,k,t,H,b.trendPointGroup).attr({fill:L(d.color,d.alpha),"stroke-width":d.showBorder?d.thickness:0,stroke:d.borderColor,"stroke-dasharray":d.dashStyle})):d.graphic=a.path(["M",K,M,"L",N,H],b.tickMarkGroup).attr({"stroke-width":d.showBorder?
d.thickness:0,stroke:d.borderColor,"stroke-linecap":"round","stroke-dasharray":d.dashStyle}),d.useMarker&&(d.markerElement=a.polypath("3",K,M,d.markerRadius,(-t+Math.PI)/hb,0,b.trendMarkerGroup).attr({fill:d.markerColor,"stroke-width":1,stroke:d.markerBorderColor}),""!==d.markerToolText&&d.markerElement.tooltip(d.markerToolText)),d.displayValue!==J&&(M=(d.endValue+d.startValue)/2,H=w+(M-x)/R*C,N=Math.cos(H),H=Math.sin(H),t=O.getSmartText(d.displayValue).width,M=d.valueInside?k-2-l:m+2+l,K=r+M*N,M=
u+M*H,m=O.getSmartText(d.displayValue).height,m=O.getSmartText(d.displayValue,this.canvasWidth,m),K=this.canvasWidth<K+t?this.canvasWidth-t/2:K<t?t/2:K,t>this.canvasWidth&&(K=this.canvasWidth/2),k=d.style,d.textElement=a.text(b.trendMarkerGroup).attr({x:K,y:M,text:m.text,direction:e,"text-anchor":Va,"vertical-align":cb}).css(k).tooltip(m.oriText),K=d.textElement.getBBox(),K=K.height,M=N>f||N<p?M+(-(K/2)+.4*K*H*(d.valueInside?-1:1)):d.valueInside?M+-(0>H?0:K):M+-(0<H?0:K),d.textElement.attr({y:M}))},
drawWidgetValue:function(a,e){var c=this,d=c.options,b=d.chart,f=d.scale,n=d.series[0],g=c.paper,p=c.elements,m=Number(n.gaugeOriginX),k=Number(n.gaugeOriginY),l=b.gaugeStartAngle,t=b.gaugeEndAngle,b=b.showShadow,d=!1!==d.tooltip.enabled,r=f.min,u=f.max,q=p.pointGroup,C=u-r,F=t-l,x=C/F,v=0,z,A,B,D,y,G,M,J=a&&a.length,N,H=ec(l,t),K=bc(c.container),E=function(a,b){var d;d=[m,k];d=Mb(d[1]-b+K.top,d[0]-a+K.left);c.rotationStartAngle=d;N=c.fusionCharts.getDataJSON()},L=function(){var a=c.fusionCharts,
b;(b=a&&a.jsVars)&&(b._rtLastUpdatedData=a.getDataJSON());qa.raiseEvent("RealTimeUpdateComplete",{data:"&value="+this.updatedValStr,updateObject:{values:[this.updatedValStr]},prevData:N.values,source:"editMode",url:null},a);try{ka.FC_ChartUpdated&&ka.FC_ChartUpdated(a.id)}catch(d){setTimeout(function(){throw d;},1)}},O=function(a,b,d,e){a=[m,k];d=Mb(a[1]-e+K.top,a[0]-d+K.left);e=c.rotationStartAngle;var g;e=0>d&&0<e?Bb(d)-c.rotationStartAngle:0<d&&0>e?Bb(c.rotationStartAngle)-d:c.rotationStartAngle-
d;e=this.y-e*x;a=[];b=0;g=this.index;e<f.min?e=f.min:e>f.max&&(e=f.max);for(;b<g;b+=1)a.push("");a.push(e);e!==this.value&&c.realtimeUpdate({values:a},{duration:0})&&(this.updatedValStr=a.join("|"),c.rotationStartAngle=d)},Q,I,U,P,X,ba,sa,Z,aa,ea;void 0===c.dataById&&(c.dataById={});p.pointers||(p.pointers=[]);Z=function(a){la.call(this,c,a)};aa=function(a){var b=this.data("rolloverProperties");la.call(this,c,a,"DataPlotRollOver");b.enabled&&(a=this.attr("transform"),this.attr("transform",""),this.attr(b.hoverAttr),
this.attr("transform",a))};for(ea=function(a){var b=this.data("rolloverProperties");la.call(this,c,a,"DataPlotRollOut");b.enabled&&(a=this.attr("transform"),this.attr("transform",""),this.attr(b.outAttr),this.attr("transform",a))};v<J;v+=1)t=a[v],I=t.rolloverProperties||{},ga(t.y)||(t.y=r,ga(t.toolText)||(t.toolText=r)," "===t.displayValue&&(t.displayValue=r)),void 0!==t.id&&(c.dataById[t.id]={index:v,point:t}),t.index=v,z=h(t.radius,(Number(n.gaugeOuterRadius)+Number(n.gaugeInnerRadius))/2),A=t.baseWidth,
G=A/2,B=t.topWidth,M=B/2,y=t.rearExtension,D=t.baseRadius,t.tooltipPos=[m,k],p.pointers[v]?D=p.pointers[v]:(Q=t.editMode?void 0:t.link,U=["M",z,-M,"L",z,M,-y,G,-y,-G,"Z"],I.hasHoverSizeChange&&(I.outAttr.path=U,P=h(I.hoverRadius,z),X=I.baseHoverWidth,X/=2,ba=I.topHoverWidth,ba/=2,sa=I.rearHoverExtension,I.hoverAttr.path=["M",P,-ba,"L",P,ba,-sa,X,-sa,-X,"Z"]),Q={link:Q,value:t.y,displayValue:t.displayValueArgs,toolText:t.toolText},p.pointers[v]=B?g.path(U,q):g.trianglepath(z,M,-y,G,-y,-G,0,D,D,q),
t.graphic=D=p.pointers[v],t.graphic.attr({fill:t.color,stroke:t.borderColor,ishot:!0,"stroke-width":t.borderThickness}).click(Z).hover(aa,ea).data("eventArgs",Q).data("rolloverProperties",I),(A||B||t.borderThickness)&&t.graphic.shadow({apply:b}),D._attr=D.attr,D.attr=H,D._Attr={tooltipPos:t.tooltipPos,cx:m,cy:k,toolTipRadius:z-y,color:t.color},z=l/hb,D.attr({angle:z}),t.editMode&&(t.index=v,t.graphic.css({cursor:"pointer",_cursor:"hand"}).attr({ishot:!0}),t.graphic.drag(O,E,L,t,t,t))),t.y>=r&&t.y<=
u&&(z=(t.y-r)/C*F,z=(l+z)/hb,D.attr({angle:z},null,e),d&&D.tooltip(t.toolText))},drawWidgetLabel:function(a){var e=this.paper,c=this.layers,d=c.datalabels,b=this.options,f=b.series[0],n=b.plotOptions.series.dataLabels.style,g=f.pivotRadius,p=h(parseInt(n.lineHeight,10),12),m=f.valueBelowPivot,k=f.gaugeOriginX,l=b.chart.textDirection,t={fontFamily:n.fontFamily,fontSize:n.fontSize,lineHeight:n.lineHeight,fontWeight:n.fontWeight,fontStyle:n.fontStyle},r,u,q,C=f.gaugeOriginY+(m?p/2+g+2:-(p/2)-g-2);d||
(d=c.datalabels=e.group("datalabels").insertAfter(c.dataset));dc(a,function(a,b){r=a.displayValue;q=a.valueY;u=h(a.valueX,k);ga(q)||(q=m?C+p*b:C-p*b);ga(r)&&r!==J&&(a.dataLabel?a.dataLabel.attr({text:r,title:a.originalText||""}):a.dataLabel=e.text(d).attr({x:u,y:q,text:r,"text-anchor":Ha[Va],direction:l,fill:n.color,"text-bound":[n.backgroundColor,n.borderColor,n.borderThickness,n.borderPadding,n.borderRadius,n.borderDash]}).css(t).tooltip(a.originalText))})},drawScale:function(){var a=this.options,
e=a.chart,c=a.scale,d=this.paper,b=this.elements,f=a.series[0],a=Number(f.gaugeOriginX),n=Number(f.gaugeOriginY),g=e.gaugeStartAngle,p=c.min,m=e.textDirection,k=Number(f.gaugeInnerRadius),l=Number(f.gaugeOuterRadius),f=c.max-p,e=e.gaugeEndAngle-g,t=0,r=c.majorTM,u=c.minorTM,q=b.tickMarkGroup,C,F,x,v,z,A,B=Math.cos,D=Math.sin,y=Number(c.minorTMHeight),G=Number(c.majorTMHeight),M=c.placeTicksInside,t=c.placeValuesInside;z=c.tickValueDistance;var J,N,H=c.limitValues.style,K=c.tickValues.style,E=.75*
h(parseInt(H.lineHeight,10),12),I=.75*h(parseInt(K.lineHeight,10),12);M?(M=k,y=M+y,G=M+G):(M=l,y=M-y,G=M-G);J=t?k-z:l+z;b.majorTM||(b.majorTM=[]);b.tmLabel||(b.tmLabel=[]);t=0;for(k=r.length;t<k;t+=1)l=r[t],C=l.value,z=l.displayValue,A=(C-p)*e/f+g,N=B(A),A=D(A),C=a+M*N,F=n+M*A,x=a+G*N,v=n+G*A,b.majorTM[t]=d.path(["M",C,F,"L",x,v],q).attr({stroke:L(c.majorTMColor,c.majorTMAlpha),"stroke-width":c.majorTMThickness,"stroke-linecap":"round"}),""!==z&&(0===t||t===k-1?(x=H,F=n+J*A+(l.y||0)-E):(x=K,F=n+J*
A+(l.y||0)-I),C=a+J*N+(l.x||0),b.tmLabel[t]=d.text(C,F,z,q).attr({"text-anchor":Ha[l.align||Va],direction:m,"vertical-align":cb}).css(x).tooltip(l.originalText));b.minorTM||(b.minorTM=[]);t=0;for(k=u.length;t<k;t+=1)C=u[t],A=(C-p)*e/f+g,C=a+M*B(A),F=n+M*D(A),x=a+y*B(A),v=n+y*D(A),b.minorTM[t]=d.path(["M",C,F,"L",x,v],q).attr({stroke:L(c.minorTMColor,c.minorTMAlpha),"stroke-width":c.minorTMThickness,"stroke-linecap":"round"})},realtimeUpdate:function(a,e){if(a===this.lastUpdatedObj)return!1;var c=
this.options,d=c[U],b=c.series,f=this.numberFormatter,b=b&&b[0]&&b[0].data,n=a.values||[],g=a.labels||[],h=a.toolTexts||[],m=a.showLabels||[],k=b&&b.length||0,l,t,r=null,u=[],w,C;e=e||c.plotOptions.series.animation;if(k){for(;k--;)w={},c={},C=!1,l=b[k],t=l.id&&(l.id.toLowerCase&&l.id.toLowerCase()||l.id),void 0!==n[k]&&""!==n[k]&&(C=!0)||t&&a[t]?(c.value=w.value=C?n[k]:a[t],r=w.displayvalue=w.tooltext=f.dataLabels(w.value),w.hasNewData=!0):w.value=l.y,g[k]&&(w.displayvalue=g[k],w.hasNewData=!0),"0"==
m[k]&&(w.displayvalue=J,w.hasNewData=!0),t=E(ca(q(l._tooltext,d.tooltext))),h[k]&&(t=E(ca(h[k])),w.hasNewData=!0),w.hasNewData&&(u[k]=w,Y(l,{y:w.value,displayValue:l.displayValue||"1"===m[k]?w.displayvalue:J,toolText:void 0!==t?ab(t,[1,2],{formattedValue:r},c):r}));u.length&&(this.lastUpdatedObj=a,this.drawWidgetValue(b,e),this.drawWidgetLabel(b,e));return Boolean(u.length)}}},v["renderer.widgetbase"]);v("renderer.funnel",{type:"funnel",pyramidFunnelShape:function(){var 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},e=function(a,c,d,e,h,m,k,l,t,r,u){qb(a)&&(c=a.y,d=a.R1,e=a.R2,h=a.h,m=a.r3dFactor,k=a.is2D,r=a.isHollow,t=a.isFunnel,a=a.x);l=a-d;u=a+d;var q=a-e,C=a+e,v=c+h,x,y;if(k)x={silhuette:["M",l,c,"L",u,c,C,v,q,v,"Z"]},t||(a=Math.round(a),x.lighterHalf=["M",l,c,"L",a,c,a,v,q,v,"Z"],x.darkerHalf=["M",a,c,"L",u,c,C,v,a,v,"Z"]);else if(t){q=a;C=c;c=d||.01;u=e||.01;a=r;l=c*m;m*=u;h=C+h;v=ia(u,2)-ia(c,2);d=-2*(ia(u,2)*C-ia(c,
2)*h);e=ia(c*m,2)+ia(u*C,2)-ia(u*l,2)-ia(c*h,2);r=pb(ia(d,2)-4*v*e);e=(-d+r)/(2*v);v=(-d-r)/(2*v);e<h&&e>C?y=v:v<h&&v>C&&(y=e);e=pb((ia(y-C,2)-ia(l,2))/ia(c,2));d=-e;v={x:ha(ia(c,2)*e/(y-C)*100)/100,y:ha(100*(ia(l,2)/(y-C)+C))/100};e={x:ha(ia(u,2)*e/(y-h)*100)/100,y:ha(100*(ia(m,2)/(y-h)+h))/100};r={x:ha(ia(c,2)*d/(y-C)*100)/100,y:ha(100*(ia(l,2)/(y-C)+C))/100};y={x:ha(ia(u,2)*d/(y-h)*100)/100,y:ha(100*(ia(m,2)/(y-h)+h))/100};v={topLeft:r,bottomLeft:y,topRight:v,bottomRight:e};for(x in v)if(isNaN(v[x].x)||
isNaN(v[x].y))v[x].x="topLeft"===x||"bottomLeft"===x?-c:c,v[x].y="bottomRight"===x||"bottomLeft"===x?h:C;h=v.topLeft;d=v.bottomLeft;x=q+h.x;y=q+v.topRight.x;C=q+d.x;q+=v.bottomRight.x;h=h.y;d=d.y;v=["A",c,l,0,0,0,y,h];e=["A",c,l,0,1,1,y,h];r=["A",u,m,0,0,1,C,d];u=["A",u,m,0,1,0,C,d];u={front:["M",x,h].concat(v,["L",q,d],r,["Z"]),back:["M",x,h].concat(e,["L",q,d],u,["Z"]),silhuette:["M",x,h].concat(e,["L",q,d],r,["Z"])};a||(u.top=["M",x,h].concat(v,["L",y,h],["A",c,l,0,1,0,x,h],["Z"]));x=u}else x=
d*m,y=e*m,h=La(5,d),d=La(2,2*x),e=La(2,d),m=e/m,x={top:["M",l,c,"L",a,c+x,u,c,a,c-x,"Z"],front:["M",l,c,"L",a,c+x,u,c,C,v,a,v+y,q,v,"Z"],topLight:["M",l,c+.5,"L",a,c+x+.5,a,c+x-d,l+m,c,"Z"],topLight1:["M",u,c+.5,"L",a,c+x+.5,a,c+x-e,u-m,c,"Z"],silhuette:["M",l,c,"L",a,c-x,u,c,C,v,a,v+y,q,v,"Z"],centerLight:["M",a,c+x,"L",a,v+y,a-5,v+y,a-h,c+x,"Z"],centerLight1:["M",a,c+x,"L",a,v+y,a+5,v+y,a+h,c+x,"Z"]};return x},c=function(b,c){var d,g,p=this,m,k,l=!1,t=!1,r=this._3dAttr,q;bb(b)&&ga(c)&&(d=b,b={},
b[d]=c);if(bb(b))p=a[b]?this._3dAttr[b]:this._attr(b);else{for(d in b)g=b[d],a[d]?(r[d]=g,"fill"===d?(g&&g.linearGradient&&g.stops&&g.stops[0]&&(g=g.stops[0][1]),yb.test(g)?(k=new sb(g),m=k.get("hex"),k=100*k.get("a")):g&&g.FCcolor?(m=g.FCcolor.color.split(y)[0],k=g.FCcolor.opacity.split(y)[0]):vb.test(g)&&(m=g.replace(ib,nb),k=h(r.opacity,100)),r.color=m,r.opacity=k,t=!0):"color"===d||"opacity"===d?(r.fill=X(L(r.color,h(r.opacity,100))),t=!0):"stroke"===d||"strokeColor"===d||"strokeAlpha"===d?r.is2D&&
("stroke"===d?(g&&g.linearGradient&&g.stops&&g.stops[0]&&(g=g.stops[0][1]),yb.test(g)?(k=new sb(g),m=k.get("hex"),k=100*k.get("a")):g&&g.FCcolor?(m=g.FCcolor.color.split(y)[0],k=g.FCcolor.opacity.split(y)[0]):vb.test(g)&&(m=g.replace(ib,nb),k=h(r.opacity,100)),r.strokeColor=m,r.strokeAlpha=k):r.stroke=L(r.strokeColor,h(r.strokeAlpha,100)),r.isFunnel?this.funnel2D.attr("stroke",r.stroke):this.borderElement.attr("stroke",r.stroke)):"stroke-width"===d?r.is2D&&(r.isFunnel?this.funnel2D.attr(d,g):this.borderElement.attr(d,
g)):l=!0):this._attr(d,g);r.is2D?(l&&(m=e(r.x,r.y,r.R1,r.R2,r.h,r.r3dFactor,r.is2D),p.shadowElement.attr({path:m.silhuette}),r.isFunnel?p.funnel2D.attr({path:m.silhuette}):(p.lighterHalf.attr({path:m.lighterHalf}),p.darkerHalf.attr({path:m.darkerHalf}),p.borderElement.attr({path:m.silhuette}))),t&&(r.isFunnel?p.funnel2D.attr("fill",X(L(r.color,h(r.opacity,100)))):(!1===r.use3DLighting?m=k=r.color:(m=na(r.color,80),k=da(r.color,80)),p.lighterHalf.attr("fill",X(L(k,h(r.opacity,100)))),p.darkerHalf.attr("fill",
X(L(m,h(r.opacity,100))))))):(l&&(m=e(r.x,r.y,r.R1,r.R2,r.h,r.r3dFactor,r.is2D),p.shadowElement.attr("path",m.silhuette),r.isFunnel?(p.front.attr("path",m.front),p.back.attr("path",m.back),p.toptop&&m.top&&p.toptop.attr("path",m.top)):(p.front.attr("path",m.front),p.toptop.attr("path",m.top),p.topLight.attr("path",m.topLight),p.topLight1.attr("path",m.topLight1),p.centerLight.attr("path",m.centerLight),p.centerLight1.attr("path",m.centerLight1))),t&&(m=r.color,k=r.opacity,r.isFunnel?(t=da(m,60),l=
na(m,60),p.back.attr("fill",X({FCcolor:{color:l+y+t+y+m,alpha:k+y+k+y+k,ratio:"0,60,40",angle:0}})),p.front.attr("fill",X({FCcolor:{color:m+y+t+y+l,alpha:k+y+k+y+k,ratio:"0,40,60",angle:0}})),p.toptop&&p.toptop.attr("fill",X({FCcolor:{color:t+y+l,alpha:k+y+k,ratio:"0,100",angle:-65}}))):(t=da(m,80),d=da(m,70),l=na(m,80),g="0,"+k,q=m+y+d,r=5/(r.R1*r.r3dFactor)*100,p.centerLight.attr("fill",X({FCcolor:{color:q,alpha:g,ratio:"0,100",angle:0}})),p.centerLight1.attr("fill",X({FCcolor:{color:q,alpha:g,
ratio:"0,100",angle:180}})),p.topLight.attr("fill",X({FCcolor:{color:d+y+d+y+m+y+m,alpha:k+y+k+y+0+y+0,ratio:"0,50,"+r+y+(50-r),angle:-45}})),p.topLight1.attr("fill",X({FCcolor:{color:d+y+m+y+l,alpha:k+y+k+y+k,ratio:"0,50,50",angle:0}})),p.front.attr("fill",X({FCcolor:{color:m+y+m+y+l+y+l,alpha:k+y+k+y+k+y+k,ratio:"0,50,0,50",angle:0}})),p.toptop.attr("fill",X({FCcolor:{color:t+y+m+y+l+y+l,alpha:k+y+k+y+k+y+k,ratio:"0,25,30,45",angle:-45}})))))}return p},d=function(){var a=this.shadowElement;d&&a.shadow.apply(a,
arguments)};return function(a,f,n,g,p,m,k,l,t,r,q,w){var v=this.layers.dataset;qb(a)&&(f=a.y,n=a.R1,g=a.R2,p=a.h,m=a.r3dFactor,k=a.gStr,l=a.is2D,w=a.use3DLighting,t=a.renderer,q=a.isHollow,r=a.isFunnel,a=a.x);m=h(m,.15);a={x:a,y:f,R1:n,R2:g,h:p,r3dFactor:m,is2D:l,use3DLighting:w,isHollow:q,isFunnel:r,renderer:t};f=e(a);k=t.group(k,v);k.Shapeargs=f;k.shadowElement=t.path(f.silhuette,k).attr({fill:ra,stroke:"none"});k._attr=k.attr;k.attr=c;k.shadow=d;k._3dAttr=a;r?l?k.funnel2D=t.path(f.silhuette,k):
(k.back=t.path(f.back,k).attr({"stroke-width":0,stroke:"none"}),k.front=t.path(f.front,k).attr({"stroke-width":0,stroke:"none"}),f.top&&(k.toptop=t.path(f.top,k).attr({"stroke-width":0,stroke:"none"}))):l?(k.lighterHalf=t.path(f.lighterHalf,k).attr({"stroke-width":0}),k.darkerHalf=t.path(f.darkerHalf,k).attr({"stroke-width":0}),k.borderElement=t.path(f.silhuette,k).attr({fill:ra,stroke:"none"})):(k.front=t.path(f.front,k).attr({"stroke-width":0}),k.centerLight=t.path(f.centerLight,k).attr({"stroke-width":0}),
k.centerLight1=t.path(f.centerLight1,k).attr({"stroke-width":0}),k.toptop=t.path(f.top,k).attr({"stroke-width":0}),k.topLight=t.path(f.topLight,k).attr({"stroke-width":0}),k.topLight1=t.path(f.topLight1,k).attr({"stroke-width":0}));return k}}(),getPlotData:function(a){var e=this.datasets[0],c=e.data[a],d=e.userData||(e.userData=[]),e="y name color alpha borderColor borderWidth link displayValue datasetIndex toolText".split(" "),b;if(d[a])a=d[a];else{a=d[a]={};for(d=0;d<e.length;d++)a[b=e[d]]=c[b];
a.value=a.y;a.label=a.name;delete a.y;delete a.name}return a},translate:function(){function a(){var b=[],c=0;this.set=function(a,d){c++;b[a]=d};this.get=function(a){return b[a]};this.getAll=function(){return b};this.mergeWith=function(c){var d,e,f=b.slice(0);if(!(c instanceof Array))if(c instanceof a)c=c.getAll();else return;for(d in c)e=c[d],f[d]||(f[d]=e);return f};this.getEffectiveLength=function(){return c}}function e(a){this.distributionLength=a;this.distributedMatrix=[];this.altDistributedMatrix=
[];this.nonDistributedMatrix={};this.forcePushObj={};this.flags={exhaustion:!1}}function c(a,c){var e,f,h,m=!1,p=0,r;e={flag:!1,point:void 0,sLabel:void 0,setAll:function(a,b,c){this.flag=a;this.point=b;this.sLabel=c}};var t={point:void 0,sLabel:void 0,set:function(a,b){return function(c,d){var e,f;c.dontPlot||(this.point&&this.sLabel?(e=a(this.point,this.sLabel),f=a(c,d),b(e,f)&&(this.point=c,this.sLabel=d)):(this.point=c,this.sLabel=d))}}},P={},aa={},S={},Z={};qa.extend(P,e);qa.extend(aa,e);P.setAll=
function(a,b,c){var d=this.point,e=this.sLabel;this.flag=a;d&&e?(a=d.labelX-(e.oriTextWidth-e.width),d=b.labelX-(c.oriTextWidth-c.width),a>d&&(this.point=b,this.sLabel=c)):(this.point=b,this.sLabel=c)};aa.setAll=function(a,b,c){var d=this.point,e=this.sLabel;this.flag=a;d&&e?(a=d.labelX+e.oriTextWidth,d=b.labelX+c.oriTextWidth,a<d&&(this.point=b,this.sLabel=c)):(this.point=b,this.sLabel=c)};qa.extend(S,t);qa.extend(Z,t);S.set=function(){return t.set.apply(S,[function(a){return a.labelX},function(a,
b){return a>b?!0:!1}])}();Z.set=function(){return t.set.apply(Z,[function(a,b){return a.labelX+b.oriTextWidth},function(a,b){return a<b?!0:!1}])}();e=0;for(f=a.length;e<f;e++)if(h=a[e])(h.x=e)?(c&&(m=!m),h.isSliced&&(H=h.x,1<H&&!G[H]&&(G[H]=!0,K+=1),H<l&&(G[H+1]=!0,K+=1)),M?(y=1==n.useSameSlantAngle?q?k*h.y/q:k:q?k*pb(h.y/q):k,x=w*(g[e-1].y-h.y)||1):(D+=x=w*g[e].y,y=k*(1-D*N)),h.shapeArgs={x:I,y:J,R1:v,R2:y,h:x||1,r3dFactor:z,isHollow:A,gStr:"point",is2D:B,renderer:R,isFunnel:!0},b.smartLabel.setStyle(h.style),
h.oriText=h.displayValue,r=r=b.smartLabel.getSmartText(h.displayValue,Number.POSITIVE_INFINITY,Number.POSITIVE_INFINITY),L?(h.labelAline="middle",h.labelX=I,h.labelY=(B?J:J+z*v)+x/2+O):(h.labelAline="start",(h.alignmentSwitch=m)?(h.labelX=I-(E+y+3+r.width),S.set(h,r)):(h.labelX=I+E+y+3,Z.set(h,r)),h.distributionFactor=h.distributionFactor||0,p=h.distributionFactor*Q,h.labelY=J+O+x+p),c&&(m&&0>h.labelX?(p=h.labelX+r.width,p=b.smartLabel.getSmartText(h.displayValue,p,Number.POSITIVE_INFINITY,!0),h.labelX=
2,h.isLabelTruncated=!0,h.displayValue=p.text,h.virtualWidth=p.maxWidth,P.setAll(!0,h,p)):!m&&h.labelX+r.width>b.chartWidth&&(p=b.smartLabel.getSmartText(h.displayValue,b.chartWidth-h.labelX,Number.POSITIVE_INFINITY,!0),h.isLabelTruncated=!0,h.displayValue=p.text,h.virtualWidth=p.maxWidth,aa.setAll(!0,h,p))),h.pWidth=h.virtualWidth=h.virtualWidth||r.width,J+=x,v=y):(h.oriText=h.displayValue,y=1==n.useSameSlantAngle?q?k*g[0].y/q:k:q?k*pb(g[0].y/q):k,h.labelWidht>2*y&&!c?(h.labelAline="start",h.labelX=
0):(h.labelAline="middle",h.labelX=I),r=2*E,h.displayValue=b.smartLabel.getSmartText(h.displayValue,2*y+r,Number.POSITIVE_INFINITY,!0).text,h.labelY=(B?J:J-z*v)-O-3),h.plotX=I,h.plotY=J;d(a,{lTrimmedInfo:P,rTrimmedInfo:aa,lLargestLabel:S,rLargestLabel:Z})}function d(a,c){var d=0,e=c.lTrimmedInfo,f=c.rTrimmedInfo,g=c.lLargestLabel,h=c.rLargestLabel,k=0;if(!e.flag||!f.flag){if(f.flag){if(!g.point)return;d=f.sLabel;d=d.oriTextWidth-d.width;g=g.point.labelX-3;d=-Math.ceil(Math.min(d,g))}else if(e.flag){if(!h.point)return;
d=e.sLabel;d=d.oriTextWidth-d.width;g=aa-(h.point.labelX+h.sLabel.width);d=Math.ceil(Math.min(d,g))}if(d)for(h=0,e=a.length;h<e;h++)g=a[h],!h&&M?g.labelX+=d:(g.alignmentSwitch?(f=0>d?b.smartLabel.getSmartText(g.oriText,g.pWidth,Number.POSITIVE_INFINITY,!0):b.smartLabel.getSmartText(g.oriText,g.pWidth+d,Number.POSITIVE_INFINITY,!0),g.isLabelTruncated&&(k=f.width-g.pWidth)):f=0<d?b.smartLabel.getSmartText(g.oriText,g.pWidth,Number.POSITIVE_INFINITY,!0):b.smartLabel.getSmartText(g.oriText,g.pWidth-d,
Number.POSITIVE_INFINITY,!0),g.virtualWidth=f.width,g.displayValue=f.text,g.labelX+=d-k,g.shapeArgs&&(g.shapeArgs.x+=d),k=0);else for(h=0,e=a.length;h<e;h++)g=a[h],0<(k=g.labelX+g.pWidth-aa)&&(g.lOverflow=k,g.labelX-=k,b.isLegendRight?g.displayValue=b.smartLabel.getSmartText(g.oriText,g.pWidth-k,Number.POSITIVE_INFINITY,!0).text:(g.lOverflow=k,g.labelX-=k))}}var b=this,f=b.options,n=b.datasets[0],g=n.data,p=b.canvasWidth,m=b.canvasHeight,k=p/2,l=g.length-1,t=g[0],r=t&&g[l].y,q=t&&g[0].y,w,v,y,x,J=
b.canvasTop,z=n.yScale,A=n.isHollow,B=n.is2d,D=0,R=b.paper,G={},M=n.streamlinedData,E=n.labelDistance,N=.8/m,H,K=0,I=k+b.canvasLeft,L=n.showLabelsAtCenter,O=.3*h(parseInt(f.plotOptions.series.dataLabels.style.fontSize,10),10),Q=Number(b.options.plotOptions.series.dataLabels.style.lineHeight.split(/px/)[0]),S,X=0,P,U,ba,sa,Z,aa=b.chartWidth-3,t=0,ea;Object.keys||(Object.keys=function(){var a=Object.prototype.hasOwnProperty,b=!{toString:null}.propertyIsEnumerable("toString"),c="toString toLocaleString valueOf hasOwnProperty isPrototypeOf propertyIsEnumerable constructor".split(" "),
d=c.length;return function(e){if("object"!==typeof e&&("function"!==typeof e||null===e))throw new TypeError("Object.keys called on non-object");var f=[],g;for(g in e)a.call(e,g)&&f.push(g);if(b)for(g=0;g<d;g++)a.call(e,c[g])&&f.push(c[g]);return f}}());Array.prototype.forEach||(Array.prototype.forEach=function(a,b){var c,d,e,f,g;if(null==this)throw new TypeError(" this is null or not defined");e=Object(this);f=e.length>>>0;if("function"!==typeof a)throw new TypeError(a+" is not a function");1<arguments.length&&
(c=b);for(d=0;d<f;)d in e&&(g=e[d],a.call(c,g,d,e)),d++});if(M){w=m/(q-r);P=0;for(r=g.length;P<r;P++)t+=g[P].y;P=t?m/t:m}else w=q?m/q:m;v=k;b.globalMinXShift=0;b.alignmentType={};try{Object.defineProperty(b.alignmentType,"default",{configurable:!1,enumerable:!0,get:function(){return 1}})}catch(oa){b.alignmentType["default"]=1}try{Object.defineProperty(b.alignmentType,"alternate",{configurable:!1,enumerable:!0,get:function(){return 2}})}catch(oa){b.alignmentType.alternate=2}a.prototype.constructor=
a;e.prototype.constructor=e;e.prototype.push=function(a,b){this.nonDistributedMatrix[b]=this.nonDistributedMatrix[b]||[];this.nonDistributedMatrix[b].push(a)};e.prototype.forcePush=function(a,b){this.forcePushObj[b]=a};e.prototype.distribute=function(b){var c,d=!0,e=new a,f=new a,h=new a,k=new a,n=this.flags,l,m,p,r,t,q=0;if(b){if(0<g.length-this.distributionLength)for(m in this.nonDistributedMatrix)for(c=this.nonDistributedMatrix[m],r=1;r<c.length;r++)t=c[r],t.dontPlot=!0,t.displayValue=""}else if(0<
g.length-2*this.distributionLength)for(m in this.nonDistributedMatrix)for(c=this.nonDistributedMatrix[m],r=1;r<c.length-1;r++)t=c[r],t.dontPlot=!0,t.displayValue="";if(g.length>this.distributionLength&&!b){n.exhaustion=!0;for(m in this.nonDistributedMatrix)for(c=this.nonDistributedMatrix[m],r=0,b=c.length;r<b;r++)t=c[r],t.dontPlot?d?l=h:l=k:(d?l=e:l=f,l.getEffectiveLength()>parseInt(m,10)?t.distributionFactor=l.getEffectiveLength()-1-m:t.distributionFactor=0),l.set(q++,t),d=!d;this.distributedMatrix=
e.mergeWith(h);this.altDistributedMatrix=f.mergeWith(k)}else{for(p in this.nonDistributedMatrix)for(c=this.nonDistributedMatrix[p],r=0,b=c.length;r<b;r++)t=c[r],t.dontPlot?l=h:(l=e,l.getEffectiveLength()>parseInt(p,10)?t.distributionFactor=l.getEffectiveLength()-1-p:t.distributionFactor=0),l.set(q++,t);this.distributedMatrix=e.mergeWith(h)}};e.prototype.getDistributedResult=function(){var a,c=[],d=(a=b.options.legend)&&"right"===a.align&&1||0;a.width?d&&(aa-=a.width+f.chart.spacingRight):d=0;b.isLegendRight=
d;this.distribute(d);d?(a=b.alignmentType["default"],c.push(this.distributedMatrix)):(a=this.flags.exhaustion?b.alignmentType.alternate:b.alignmentType["default"],this.flags.exhaustion?[].push.call(c,this.distributedMatrix,this.altDistributedMatrix):c.push(this.distributedMatrix));return{forceMatrix:this.forcePushObj,suggestion:a,matrix:c}};S=new e(Math.floor(m/Q));ea=M?P:w;g.forEach(function(a,b){var c;c=0;!M&&0===b||!M&&b===g.length-1?S.forcePush(a,b):(c=a.y*ea,X+=a.y*ea,c=X-c+c/2,c=Math.floor(c/
Q),S.push(a,c))});m=S.getDistributedResult();g.length=0;if(void 0===m.matrix[1])[].push.apply(g,m.matrix[0]);else for(P=m.matrix[0],U=m.matrix[1],r=Math.max(P.length,U.length),t=0;t<r;t++)sa=P[t],ba=U[t],g.push(sa?sa:ba);if(0<Object.keys(m.forceMatrix).length)for(Z in m.forceMatrix)[].splice.apply(g,[parseInt(Z,10),0].concat(m.forceMatrix[Z]));switch(m.suggestion){case b.alignmentType["default"]:c(g,!1);break;case b.alignmentType.alternate:b.labelAlignment=b.alignmentType.alternate,k=p/3,b.canvasLeft=
b.chartWidth/2-k,I=b.canvasLeft+k,v=k,c(g,!0)}n._temp={slicingGapPosition:G,noOfGap:K}},drawPlotFunnel:function(a,e){this.translate();var c=this,d=a.items,b=a.data,f=c.options,h=f.plotOptions,g=c.elements.plots[0],p=h.series.dataLabels,m=c.paper,k=f.tooltip||{},k=k&&!1!==k.enabled,l,h=h.series.animation.duration||0,t=c.layers,r=t.tracker,t=t.datalabels||(t.datalabels=m.group("datalabels").insertAfter(t.dataset)),q=g.showLabelsAtCenter,w=e._temp||{},v=w.slicingGapPosition,w=w.noOfGap,y=e.SlicingDistance,
x,J=y/2,z=0,A=f.chart.issliced,f=f.chart.textDirection,B=p.style,B={fontFamily:B.fontFamily,fontSize:B.fontSize,lineHeight:B.lineHeight,fontWeight:B.fontWeight,fontStyle:B.fontStyle},D=function(a,b){return function(d){a.graphic.attr(b);la.call(this,c,d,"DataPlotRollOver")}},R=function(a,b){return function(d){a.graphic.attr(b);la.call(this,c,d,"DataPlotRollOut")}},G,M,E,N,H,K,I,L;if(!(E=c.datasets[0].streamlinedData&&2>b.length)){w&&(x=La(1.5*J,y/w),z=J);y=function(a){return function(){c.legendClick(a,
!0,!1)}};J=function(a){return function(){return c.getEventArgs(a)}};L=function(a){return function(){a.attr({visibility:"visible"})}};t.trackTooltip(!0);b&&b.length||(b=[]);g.singletonCase=E&&2==b.length||1==b.length;e.data||(e.data=[]);for(I=b.length;I--;)N=b[I],G=N.y,M=N.displayValue,l=N.toolText,K=!!N.link,H=A?0:N.isSliced,null!==G&&void 0!==G&&N.shapeArgs?((E=d[I])||(e.data[I].plot=E=d[I]={value:G,displayValue:M,sliced:!!H,chart:c,plotItems:d,seriesData:g,cursor:K?"pointer":"",x:N.x,index:I,graphic:c.pyramidFunnelShape(N.shapeArgs).attr({fill:N.color,
opacity:0,"stroke-width":N.borderWidth,stroke:N.borderColor}),dataLabel:m.text(t).attr({text:M,ishot:!0,cursor:K?"pointer":"",direction:f,x:0,y:0}).css(B).tooltip(N.originalText),trackerObj:m.path(r)},e.data[I].legendClick=y(E),e.data[I].getEventArgs=J(E),G=M={},N.hoverEffects&&(G={color:N.color,opacity:N.alpha,"stroke-width":N.borderWidth,stroke:N.borderColor},M=N.rolloverProperties,M={color:M.color,opacity:M.alpha,"stroke-width":M.borderWidth,stroke:M.borderColor}),!N.doNotSlice&&E.trackerObj.click(c.slice,
E),E.trackerObj.mouseup(c.plotMouseUp,E),E.trackerObj.hover(D(E,M),R(E,G)),E.dataLabel.hover(D(E,M),R(E,G)),k&&E.trackerObj.tooltip(l),!N.doNotSlice&&E.dataLabel.click(c.slice,E),E.dataLabel.mouseup(c.plotMouseUp,E),q&&0===I&&"funnel"==c.type&&g.streamlinedData||(E.connector=m.path(t).attr({"stroke-width":p.connectorWidth,stroke:p.connectorColor,ishot:!0,cursor:K?"pointer":""}).click(c.slice,E).mouseup(c.plotMouseUp,E).hover(D(E,M),R(E,G))),E.dy=0,w&&(z&&(E._startTranslateY=l="t0,"+z,E.dy=E.DistanceAvailed=
z,E.graphic.attr({transform:l}),E.dataLabel.attr({transform:l}),E.connector.attr({transform:l})),v[N.x]&&(z-=x))),h?(t.attr({visibility:"hidden"}),E.graphic.animate({opacity:N.alpha},h,"easeIn",I===b.length-1&&L(t))):E.graphic.attr({opacity:N.alpha})):e.data[I].plot=d[I]={dataLabel:m.text(t).attr({text:M,direction:f,x:0,y:0}).css(B).tooltip(N.originalText)};c.drawDataLabels();c.drawTracker(a,e)}},slice:function(a,e,c,d){var b=this.chart;a=b.datasets[0].SlicingDistance/2;c=e=0;var f=this.plotItems,
h=f.length,g,p,m,k,l,t,r,q;t={hcJSON:{chart:{issliced:!1},series:[]}};t.hcJSON.series[0]={data:m=[]};d=this.sliced=ga(d)?d:!this.sliced;r=-a;q=function(a,c){return function(){qa.raiseEvent("SlicingEnd",{slicedState:a,data:b.getPlotData(c)},b.logic.chartInstance)}};for(e=0;e<h;e+=1)p=f[e],p!==this?(p.sliced=!1,m[e]={isSliced:!1},k=!1):(m[e]={isSliced:d},k=!0,l=e),p.graphic&&(g=p.dy,g=-g,d&&(p.x<this.x?(g+=r,c+=1):p.x==this.x?c?e==h-1&&(g+=.5*a):g+=.5*-a:g+=a),p.graphic.attr({transform:"t0,"+p.dy}),
p.dy+=g,g={transform:"...t0,"+g},k&&qa.raiseEvent("SlicingStart",{slicedState:!d,data:b.getPlotData(l)},b.logic.chartInstance),p.graphic.animate(g,300,"easeIn",k&&q(d,l)),p.dataLabel&&p.dataLabel.animate(g,300,"easeIn"),p.connector&&p.connector.animate(g,300,"easeIn"),p.trackerObj&&p.trackerObj.animate(g,300,"easeIn"),1==e&&!f[0].graphic&&f[0].dataLabel&&f[0].dataLabel.animate(g,300,"easeIn"));Y(b.logic.chartInstance.jsVars._reflowData,t,!0)},drawDataLabels:function(){var a=this.datasets[0],e=a.data,
c=this.options.plotOptions.series.dataLabels,d=this.elements.plots[0].items,b,f,n,g,p=a.showLabelsAtCenter,m=Number(c.style.lineHeight.split(/px/)[0]),k=h(parseInt(c.style.fontSize,10),10),l=.3*k,t=.3*m,r,q,w,v,y=a.labelDistance,x,E,z={};for(v=e.length-1;0<=v;--v)g=e[v],E=g.displayValue,c=d[v],f=g.labelY,b=g.labelX,n=g.labelAline,x=g.style,k=h(parseInt(x.fontSize,10),10),l=.3*k,k={fontFamily:x.fontFamily,fontSize:x.fontSize,lineHeight:x.lineHeight,fontWeight:x.fontWeight,fontStyle:x.fontStyle},p?
f=0===v&&"funnel"==this.type&&a.streamlinedData?f-t+(d[1].DistanceAvailed||0):f-t+(c.DistanceAvailed||0):(w=f-l-g.distributionFactor*m,l=f-l,q=z[g.alignmentSwitch],void 0!==r&&void 0!==q&&q-l<m&&(f=l=q-m),g.displayValue&&(z[g.alignmentSwitch]=l),r=g.plotY,this.labelAlignment===this.alignmentType.alternate?g.alignmentSwitch?(q=b+3+g.virtualWidth,g=q+y+g.distributionFactor*this.globalMinXShift):(q=b-3,g=q-(y-(g.lOverflow||0))-g.distributionFactor*this.globalMinXShift):(q=b-3,g=q-(y-(g.lOverflow||0))-
g.distributionFactor*this.globalMinXShift),"undefined"===typeof E||E===J||0===v&&"funnel"==this.type&&a.streamlinedData||(g=["M",g,w,"L",q,l],c.connector.attr({path:g,"shape-rendering":w===l&&1>l?"crisp":""})),f=0===v&&"funnel"==this.type&&a.streamlinedData?f+(d[1].DistanceAvailed||0):l+(c.DistanceAvailed||0)),E!==J&&c.dataLabel.attr({transform:"t"+b+","+f,"text-anchor":Ha[n],text:E,fill:x.color,"font-size":x.fontSize,"text-bound":[x.backgroundColor,x.borderColor,x.borderThickness,x.borderPadding,
x.borderRadius,x.borderDash]}).css(k)},drawTracker:function(a){var e=this.paper,c=a.items;a=a.data;for(var d,b,f=+new Date,h=a.length-1,g,p=this.layers.tracker,m,k;0<=h;--h)g=c[h],k=a[h],b=g.trackerObj,g.graphic&&(d=g.graphic.Shapeargs.silhuette,m={link:k.link,value:k.y,displayValue:k.displayValueArgs,categoryLabel:k.categoryLabel,dataIndex:g.index||"",toolText:k.toolText},k.datasetIndex=g.index,b?b.attr({path:d,isTracker:f,fill:ra,stroke:"none",transform:"t0,"+(g._startTranslateY||0),ishot:!0,cursor:g.cursor}):
g.trackerObj=e.path(d,p).attr({isTracker:f,fill:ra,stroke:"none",transform:"t0,"+(g._startTranslateY||0),ishot:!0,cursor:g.cursor}),b.data("eventArgs",m))},getEventArgs:function(a){return a.chart.getPlotData(a.index)},legendClick:function(a){var e=a.chart;e.slice.call(e.plots[0].items[a.index])},plotMouseUp:function(a){la.call(this.trackerObj,this.chart,a)}},v["renderer.piebase"]);v("renderer.pyramid",{type:"pyramid",translate:function(){function a(){var b=[],c=0;this.set=function(a,d){c++;b[a]=d};
this.get=function(a){return b[a]};this.getAll=function(){return b};this.mergeWith=function(c){var d,e,f=b.slice(0);if(!(c instanceof Array))if(c instanceof a)c=c.getAll();else return;for(d in c)e=c[d],f[d]||(f[d]=e);return f};this.getEffectiveLength=function(){return c}}function e(a){this.distributionLength=a;this.distributedMatrix=[];this.altDistributedMatrix=[];this.nonDistributedMatrix={};this.flags={exhaustion:!1}}function c(a,c){var e,f,g,h,n=0,m=!1;e={flag:!1,point:void 0,sLabel:void 0,setAll:function(a,
b,c){this.flag=a;this.point=b;this.sLabel=c}};var p={point:void 0,sLabel:void 0,set:function(a,b){return function(c,d){var e,f;c.dontPlot||(this.point&&this.sLabel?(e=a(this.point,this.sLabel),f=a(c,d),b(e,f)&&(this.point=c,this.sLabel=d)):(this.point=c,this.sLabel=d))}}},O={},L={},P={},Q={};qa.extend(O,e);qa.extend(L,e);O.setAll=function(a,b,c){var d=this.point,e=this.sLabel;this.flag=a;d&&e?(a=d.labelX-(e.oriTextWidth-e.width),d=b.labelX-(c.oriTextWidth-c.width),a>d&&(this.point=b,this.sLabel=c)):
(this.point=b,this.sLabel=c)};L.setAll=function(a,b,c){var d=this.point,e=this.sLabel;this.flag=a;d&&e?(a=d.labelX+e.oriTextWidth,d=b.labelX+c.oriTextWidth,a<d&&(this.point=b,this.sLabel=c)):(this.point=b,this.sLabel=c)};qa.extend(P,p);qa.extend(Q,p);P.set=function(){return p.set.apply(P,[function(a){return a.labelX},function(a,b){return a>b?!0:!1}])}();Q.set=function(){return p.set.apply(Q,[function(a,b){return a.labelX+b.oriTextWidth},function(a,b){return a<b?!0:!1}])}();e=0;for(f=a.length;e<f;e++)if(g=
e,h=a[e])h.x=g,c&&(m=!m),h.isSliced&&((A=h.x)&&!B[A]&&(B[A]=!0,D+=1),A<l&&(B[A+1]=!0,D+=1)),h.oriText=h.displayValue,b.smartLabel.setStyle(h.style),g=b.smartLabel.getSmartText(h.displayValue,Number.POSITIVE_INFINITY,Number.POSITIVE_INFINITY),z+=h.y,t=k*z/E,r=N*h.y,h.shapeArgs={x:I,y:q,R1:K,R2:t,h:r,r3dFactor:v,gStr:"point",is2D:y,use3DLighting:F,renderer:x},G?(h.labelAline="middle",h.labelX=I,h.labelY=(y?q:q+v*K)+r/2+M):(h.labelAline="start",(h.alignmentSwitch=m)?(h.labelX=I-((K+t)/2+3+J+g.width),
h.labelX-=h.distributionFactor*b.globalMinXShift,P.set(h,g)):(h.labelX=I+J+(K+t)/2+3,h.labelX+=h.distributionFactor*b.globalMinXShift,Q.set(h,g)),c&&(m&&0>h.labelX?(n=h.labelX+g.width,n=b.smartLabel.getSmartText(h.displayValue,n,Number.POSITIVE_INFINITY,!0),h.labelX=2,h.displayValue=n.text,h.virtualWidth=n.width,O.setAll(!0,h,n)):!m&&h.labelX+g.width>b.chartWidth&&(n=b.smartLabel.getSmartText(h.displayValue,b.chartWidth-h.labelX,Number.POSITIVE_INFINITY,!0),h.displayValue=n.text,h.virtualWidth=n.width,
L.setAll(!0,h,n))),h.pWidth=h.virtualWidth||g.width,n=h.distributionFactor*H,h.labelY=q+M+r/2+n),q+=r,h.plotX=I,h.plotY=q-r/2,K=t,h.virtualWidth=h.virtualWidth||g.width;d(a,{lTrimmedInfo:O,rTrimmedInfo:L,lLargestLabel:P,rLargestLabel:Q})}function d(a,c){var d=0,e=c.lTrimmedInfo,f=c.rTrimmedInfo,g=c.lLargestLabel,h=c.rLargestLabel;if(!e.flag||!f.flag){if(f.flag){if(!g.point)return;d=f.sLabel;d=d.oriTextWidth-d.width;h=g.point.labelX-3;d=-Math.ceil(Math.min(d,h))}else if(e.flag){if(!h.point)return;
g=e.point;d=e.sLabel;d=d.oriTextWidth-d.width;h=O-(h.point.labelX+h.sLabel.width);d=Math.ceil(Math.min(d,h));g.labelX-=d}if(d)for(g=0,e=a.length;g<e;g++)h=a[g],f=h.alignmentSwitch?0>d?b.smartLabel.getSmartText(h.oriText,h.pWidth,Number.POSITIVE_INFINITY,!0):b.smartLabel.getSmartText(h.oriText,h.pWidth+d,Number.POSITIVE_INFINITY,!0):0<d?b.smartLabel.getSmartText(h.oriText,h.pWidth,Number.POSITIVE_INFINITY,!0):b.smartLabel.getSmartText(h.oriText,h.pWidth-d,Number.POSITIVE_INFINITY,!0),h.virtualWidth=
f.width,h.displayValue=f.text,h.labelX+=d,h.shapeArgs.x+=d;else for(g=0,e=a.length;g<e;g++)h=a[g],0<(d=h.labelX+h.pWidth-O)&&(b.isLegendRight?h.displayValue=b.smartLabel.getSmartText(h.oriText,h.pWidth-d,Number.POSITIVE_INFINITY,!0).text:(h.lOverflow=d,h.labelX-=d))}}var b=this,f=b.options,n=b.datasets[0],g=n.data,p=b.canvasWidth,m=b.canvasHeight,k=p/2,l=g.length-1,t,r,q=b.canvasTop,v=n.yScale,y=n.is2d,F=n.use3DLighting,x=b.paper,E=n.valueSum?n.valueSum:1,z=0,A,B={},D=0,J=n.labelDistance,G=n.showLabelsAtCenter,
M=.3*h(parseInt(f.plotOptions.series.dataLabels.style.fontSize,10),10),I=0,N=m/E,H=Number(b.options.plotOptions.series.dataLabels.style.lineHeight.split(/px/)[0]),K=0,L,X=0,O=b.chartWidth-3,Q,S,U,P,Y,ba;Array.prototype.forEach||(Array.prototype.forEach=function(a,b){var c,d,e,f,g;if(null==this)throw new TypeError(" this is null or not defined");e=Object(this);f=e.length>>>0;if("function"!==typeof a)throw new TypeError(a+" is not a function");1<arguments.length&&(c=b);for(d=0;d<f;)d in e&&(g=e[d],
a.call(c,g,d,e)),d++});b.globalMinXShift=Math.floor(H/Math.cos(Math.atan(k/2/m)));b.alignmentType={};try{Object.defineProperty(b.alignmentType,"default",{configurable:!1,enumerable:!0,get:function(){return 1}})}catch(sa){b.alignmentType["default"]=1}try{Object.defineProperty(b.alignmentType,"alternate",{configurable:!1,enumerable:!0,get:function(){return 2}})}catch(sa){b.alignmentType.alternate=2}a.prototype.constructor=a;e.prototype.constructor=e;e.prototype.push=function(a,b){this.nonDistributedMatrix[b]=
this.nonDistributedMatrix[b]||[];this.nonDistributedMatrix[b].push(a)};e.prototype.distribute=function(b){var c,d=!0,e=new a,f=new a,h=new a,k=new a,n=this.flags,l,m,p,r,q,t=0;if(b){if(0<g.length-this.distributionLength)for(m in this.nonDistributedMatrix)for(c=this.nonDistributedMatrix[m],r=1;r<c.length;r++)q=c[r],q.dontPlot=!0,q.displayValue=""}else if(0<g.length-2*this.distributionLength)for(m in this.nonDistributedMatrix)for(c=this.nonDistributedMatrix[m],r=1;r<c.length-1;r++)q=c[r],q.dontPlot=
!0,q.displayValue="";if(g.length>this.distributionLength&&!b){n.exhaustion=!0;for(m in this.nonDistributedMatrix)for(c=this.nonDistributedMatrix[m],r=0,b=c.length;r<b;r++)q=c[r],q.dontPlot?d?l=h:l=k:(d?l=e:l=f,l.getEffectiveLength()>parseInt(m,10)?q.distributionFactor=l.getEffectiveLength()-1-m:q.distributionFactor=0),l.set(t++,q),d=!d;this.distributedMatrix=e.mergeWith(h);this.altDistributedMatrix=f.mergeWith(k)}else{for(p in this.nonDistributedMatrix)for(c=this.nonDistributedMatrix[p],r=0,b=c.length;r<
b;r++)q=c[r],q.dontPlot?l=h:(l=e,l.getEffectiveLength()>parseInt(p,10)?q.distributionFactor=l.getEffectiveLength()-1-p:q.distributionFactor=0),l.set(t++,q);this.distributedMatrix=e.mergeWith(h)}};e.prototype.getDistributedResult=function(){var a,c=[],d=(a=b.options.legend)&&"right"===a.align&&1||0;a.width?d&&(O-=a.width+f.chart.spacingRight):d=0;b.isLegendRight=d;this.distribute(d);d?(a=b.alignmentType["default"],c.push(this.distributedMatrix)):(a=this.flags.exhaustion?b.alignmentType.alternate:b.alignmentType["default"],
this.flags.exhaustion?[].push.call(c,this.distributedMatrix,this.altDistributedMatrix):c.push(this.distributedMatrix));return{suggestion:a,matrix:c}};L=new e(Math.floor(m/H));g.forEach(function(a){var b=0,b=a.y*N;X+=a.y*N;L.push(a,Math.floor((X-b+b/2)/H))});m=L.getDistributedResult();g.length=0;if(void 0===m.matrix[1])[].push.apply(g,m.matrix[0]);else for(S=m.matrix[0],U=m.matrix[1],P=Math.max(S.length,U.length),Q=0;Q<P;Q++)ba=S[Q],Y=U[Q],g.push(ba?ba:Y);switch(m.suggestion){case b.alignmentType["default"]:I=
b.canvasLeft+k;c(g,!1);break;case b.alignmentType.alternate:b.labelAlignment=b.alignmentType.alternate,k=p/3,b.canvasLeft=b.chartWidth/2-k,I=b.canvasLeft+k,c(g,!0)}n._temp={slicingGapPosition:B,noOfGap:D}},drawPlotPyramid:function(a,e){this.translate();var c=this,d=a.items,b=a.data,f=c.options,h=f.plotOptions,g=c.elements.plots[0],p=c.datasets[0],m=h.series.dataLabels,k=g.showLabelsAtCenter,h=h.series.animation.duration||0,l=c.paper,q=f.tooltip||{},q=q&&!1!==q.enabled,r,u=c.layers,v=u.tracker,u=u.datalabels||
(u.datalabels=l.group("datalabels").insertAfter(u.dataset)),y=p._temp||{},F=y.slicingGapPosition,y=y.noOfGap,x=p.SlicingDistance,E,z=x/2,p=0,A=f.chart.issliced,f=f.chart.textDirection,B=m.style,B={fontFamily:B.fontFamily,fontSize:B.fontSize,lineHeight:B.lineHeight,fontWeight:B.fontWeight,fontStyle:B.fontStyle},D=function(a,b){return function(d){a.graphic.attr(b);la.call(this,c,d,"DataPlotRollOver")}},J=function(a,b){return function(d){a.graphic.attr(b);la.call(this,c,d,"DataPlotRollOut")}},G,M,I,
N,H,K,L,X;K=function(a){return function(){c.legendClick(a,!0,!1)}};L=function(a){return function(){return c.getEventArgs(a)}};X=function(a){return function(){a.attr({visibility:"visible"})}};u.trackTooltip(!0);y&&(E=La(1.5*z,x/y),p=z);b&&b.length||(b=[]);g.singletonCase=1==b.length;for(H=b.length;H--;)z=b[H],G=z.y,M=z.displayValue,r=z.toolText,I=!!z.link,N=A?0:z.isSliced,null!==G&&void 0!==G&&z.shapeArgs?((x=d[H])||(e.data[H].plot=x=d[H]={value:G,sliced:!!N,cursor:I?"pointer":"",chart:c,plotItems:d,
seriesData:g,x:z.x,index:H,graphic:c.pyramidFunnelShape(z.shapeArgs).attr({fill:z.color,opacity:h?0:z.alpha,"stroke-width":z.borderWidth,stroke:z.borderColor}),dataLabel:l.text(u).attr({text:M,direction:f,ishot:!0,cursor:I?"pointer":"",x:0,y:0}).css(B).tooltip(z.originalText),trackerObj:l.path(v)},G=M={},z.hoverEffects&&(G={color:z.color,opacity:z.alpha,"stroke-width":z.borderWidth,stroke:z.borderColor},M=z.rolloverProperties,M={color:M.color,opacity:M.alpha,"stroke-width":M.borderWidth,stroke:M.borderColor}),
e.data[H].legendClick=K(x),e.data[H].getEventArgs=L(x),!z.doNotSlice&&x.trackerObj.click(c.slice,x),x.trackerObj.mouseup(c.plotMouseUp,x).hover(D(x,M),J(x,G)),q&&x.trackerObj.tooltip(r),!z.doNotSlice&&x.dataLabel.click(c.slice,x),x.dataLabel.mouseup(c.plotMouseUp,x).hover(D(x,M),J(x,G)),k&&0===H&&"funnel"==c.type&&g.streamlinedData||(x.connector=l.path(u).attr({"stroke-width":m.connectorWidth,stroke:m.connectorColor,ishot:!0,cursor:I?"pointer":""}).click(c.slice,x).mouseup(c.plotMouseUp,x).hover(D(x,
M),J(x,G))),x.dy=0,y&&(p&&(x._startTranslateY=r="t,0,"+p,x.dy=x.DistanceAvailed=p,x.graphic.attr({transform:r}),x.dataLabel.attr({transform:r}),x.connector.attr({transform:r})),F[z.x]&&(p-=E))),h&&(u.attr("visibility","hidden"),x.graphic.animate({opacity:z.alpha},h,"easeIn",H===b.length-1&&X(u)))):e.data[H].plot=d[H]={dataLabel:l.text(u).attr({text:M,direction:f,x:0,y:0}).css(B).tooltip(z.originalText)};c.drawDataLabels();c.drawTracker(a,e)}},v["renderer.funnel"]);v("renderer.sparkline",{callbacks:[function(){if(!this.options.nativeMessage){var a=
this.options,e=this.layers,c=this.paper,d=a.series[0]&&a.series[0].data&&a.series[0].data[0],b=e.limitlabels,f=this.smartLabel,a=a.chart,h=a.highLowValue.highLabel,g=a.highLowValue.lowLabel,p=a.valuePadding,m=this.canvasHeight/2,k;d&&(b||(b=e.limitlabels=c.group("limitlabels").insertAfter(e.dataset)),b.translate(this.canvasLeft,this.canvasTop),ga(a.openValue.label)&&(d.openValue=c.text(-p,m,a.openValue.label,b).attr({direction:a.textDirection,"text-anchor":Ha[gb]}).css(a.openValue.style)),e=a.closeValue.label,
k=this.canvasWidth+p,ga(e)&&(d.closeValue=c.text(this.canvasWidth+p,m,e,b).attr({direction:a.textDirection,"text-anchor":Ha[Wa]}).css(a.closeValue.style),f.setStyle(a.closeValue.style),k+=f.getOriSize(e).width+p),ga(h)&&(c.text(k,m,"[",b).attr({direction:a.textDirection,"text-anchor":Ha[Wa]}).css(a.highLowValue.style),f.setStyle(a.highLowValue.style),k+=f.getOriSize("[").width+1,d.highLabel=c.text(k,m,h,b).attr({direction:a.textDirection,"text-anchor":Ha[Wa]}).css(a.highLowValue.style).css({color:a.highColor}),
k+=f.getOriSize(h).width+1),ga(g)&&(c.text(k,m,"|",b).attr({direction:a.textDirection,"text-anchor":Ha[Wa]}).css(a.highLowValue.style),k+=f.getOriSize("|").width+1,d.dataLabel=c.text(k,m,g,b).attr({direction:a.textDirection,"text-anchor":Ha[Wa]}).css(a.highLowValue.style).css({color:a.lowColor}),k+=f.getOriSize(g).width+1,c.text(k,m,"]",b).attr({direction:a.textDirection,"text-anchor":Ha[Wa]}).css(a.highLowValue.style)))}}]},v["renderer.cartesian"]);v("renderer.sparkwinloss",{callbacks:[function(){if(!this.options.nativeMessage){var a=
this.options,e=this.layers,c=this.paper,d=a.series[0]&&a.series[0].data&&a.series[0].data[0],b=e.limitlabels,f=a.plotOptions.series.dataLabels&&a.plotOptions.series.dataLabels.style||{},a=a.chart,h=a.closeValue.label,g={fontFamily:f.fontFamily,fontSize:f.fontSize,lineHeight:f.lineHeight,fontWeight:f.fontWeight,fontStyle:f.fontStyle};d&&(b||(b=e.limitlabels=c.group("limitlabels").insertAfter(e.dataset)),b.translate(this.canvasLeft,this.canvasTop),ga(h)&&h!==J&&(d.dataLabel=c.text(this.canvasWidth+
a.valuePadding,this.canvasHeight/2,h,b).attr({"text-anchor":Ha[Wa],fill:f.color,direction:a.textDirection,"text-bound":[f.backgroundColor,f.borderColor,f.borderThickness,f.borderPadding,f.borderRadius,f.borderDash]}).css(g)))}}]},v["renderer.cartesian"]);v("renderer.realtimecartesian",{updatePlotColumn:function(a,e,c){var d=this,b=a.data,f=b.length,n=a.items,g=a.graphics||(a.graphics=[]),p=d.paper,m=d.layers,k=d.options,l=k.chart,q=!1!==(k.tooltip||{}).enabled,r=d.definition.chart,k=k.plotOptions.series,
u=d.xAxis[e.xAxis||0],v=d.yAxis[e.yAxis||0],y=d.logic.isStacked,F=e.numColumns||1,x=e.columnPosition||0,E=l.canvasBorderOpacity=Ga.color(l.plotBorderColor).opacity,z=d.canvasBorderWidth,E=l.isCanvasBorder||(l.isCanvasBorder=0!==E&&0<z),A,z=!1===e.visible?"hidden":"visible",B=l.overlapColumns,D=u.getAxisPosition(0),I=u.getAxisPosition(1)-D,G=r&&r.plotspacepercent,M=k.groupPadding,L=k.maxColWidth,D=h(r&&r.plotpaddingpercent),G=(1-.01*G)*I||La(I*(1-2*M),L*F),I=G/2,G=G/F,B=La(G-1,1<F?B||void 0!==D?0<
D?G*D/100:0:4:0),F=G-B,x=x*G-I+B/2,I=v.max,G=v.min,B=0<I&&0<=G,D=0>=I&&0>G,I=0>I&&0>G?I:0<I&&0<G?G:0,l=h(l.useRoundEdges,0),N=m.dataset=m.dataset||p.group("dataset-orphan"),m=m.tracker,G=d.canvasTop,M=d.canvasLeft,L=d.canvasBottom,H=d.canvasRight,K,T,U,O,Q,S,Y,P,V,ba,ca,Z,aa,ea,oa=h(r.variableindex,1),da=-1,r=function(a,b){return function(c){a.attr(b);la.call(this,d,c,"dataplotrollover")}};aa=function(a,b){return function(c){a.attr(b);la.call(this,d,c,"dataplotrollout")}};ea=function(a){la.call(this,
d,a)};y&&(ba=N.shadows||(N.shadows=p.group("shadows",N).toBack()));N=N.column=N.column||p.group("columns",N);if(ca=c.numUpdate||0)for(c=0;c<ca;c+=1)(K=n.shift())&&delete K._state,K&&delete K.tracker,n.push(K);for(c=0;c<f;c+=1){Y=c+ca;T=b[c];S=T.y;K=h(T.x,c);P=u.getAxisPosition(K)+x;K=n[c];Q=T.toolText;U=T.link;O=T.displayValue||J;A=Yb(T.borderWidth)||0;V=parseInt(oa)?K&&K.index||(da+1)%f:c;Z={index:V,link:U,value:S,displayValue:T.displayValueArgs,categoryLabel:T.categoryLabel,toolText:Q,id:a.userID,
datasetIndex:a.index,datasetName:a.name,visible:a.visible};Y>=f&&(K||(K=n[c]={index:V,value:S,width:F,graphic:null,dataLabel:null,tracker:null}),K&&(K.valueBelowPlot=0>S),Y=V={},T.hoverEffects&&(Y={fill:X(T.color),stroke:X(T.borderColor),"stroke-width":A,"stroke-dasharray":T.dashStyle},V=T.rolloverProperties,V={fill:X(V.color),stroke:X(V.borderColor),"stroke-width":V.borderWidth,"stroke-dasharray":V.dashStyle}),K.graphic||(K.graphic=p.rect(N).attr({visibility:z}),g.push(K.graphic),K.graphic.shadow(k.shadow&&
T.shadow,ba)),K.graphic.attr({r:l,fill:X(T.color||""),stroke:X(T.borderColor||""),"stroke-width":A,"stroke-dasharray":T.dashStyle,"stroke-linejoin":"miter"}),K.tracker||(K.tracker=p.rect(m).attr({stroke:ra,fill:ra,visibility:z}),g.push(K.tracker)),K._attrHoverInFn&&K.tracker.unhover(K._attrHoverInFn,K._attrHoverOutFn),K._attrClickFn&&K.tracker.unclick(K._attrClickFn),K.tracker.attr({height:0,width:0,r:l,"stroke-width":A,stroke:ra,cursor:U?"pointer":"",ishot:!0}).data("eventArgs",Z).click(K._attrClickFn=
ea).hover(K._attrHoverInFn=r(K.graphic,V),K._attrHoverOutFn=aa(K.graphic,Y)).tooltip(Q));if(null===S)K&&(K.graphic&&K.graphic.attr({height:0,"stroke-width":0}),K.tracker&&K.tracker.attr({height:0,"stroke-width":0}),K.dataLabel&&K.dataLabel.attr({text:""}));else if(Y=T.previousY,V=v.getAxisPosition(Y||I),T=v.getAxisPosition(S+(Y||0)),Q=Bb(T-V),0>S&&(T=V),Zb(T)<=G&&(Q-=G-T-+E,T=G-+E),ha(T+Q)>=L&&(Q-=ha(T+Q)-L+ +!!A+ +E),1>=A&&(ha(P)<=M&&(F+=P,P=M-A/2+ +!!A-+E,F-=P),ha(P+F)>=H&&(F=H-P+A/2-+!!A+ +E)),
V=Ga.crispBound(P,T,F,Q,A),P=V.x,T=V.y,F=V.width,Q=V.height,E&&!ga(Y)&&(D?(A=T-(G-A/2),Q+=A,T-=A):B&&(Q=L-T+A/2)),1>=Q&&(Q=1,T+=0>S?0:-Q),K&&K.graphic&&(K.graphic.attr({x:P,y:T,width:F,height:Q}).data("BBox",V),K.tracker.data("eventArgs",Z),K.dataLabel&&K.dataLabel.attrs.text!==O&&K.dataLabel.attr({text:O}),d.drawPlotColumnLabel(a,e,c,P,T),U||q))!y&&Q<Eb&&(T-=(Eb-Q)/2,Q=Eb),K.tracker&&K.tracker.attr({x:P,y:T,width:F,height:Q});da=K&&(da=K.index)||da}return a},updateRealtimeAnchorImage:function(a,
e,c,d,b,f,h,g,p,m){var k,l,q=b.graphic,r,u,v,y,F,x,E,z,A;c=!1===c.visible?"hidden":"visible";k=this.layers;var B=function(a){var b=a.length,c="",d;for(d=0;d<b;d+=1)c+=" "+a[d];return c};k=k.dataset=k.dataset||g.group("dataset-orphan");k=k.line||(k.line=g.group("line-connector",k));d=d.anchorShadowLayer||(d.anchorShadowLayer=g.group("anchor-shadow",k));if(l=b.graphicImage){k=f.symbol.split("_");r="spoke"===k[0]?1:0;u=f.radius;v=f.shadow;y=f.imagePadding;F=x=E=z={};E=l.data("setRolloverAttr");z=l.data("setRolloutAttr");
A=h.rolloverProperties.radius-y-h.rolloverProperties.lineWidth;y=u-y-f.lineWidth;F&&(r=g.polypath(k[1]||2,a,e,0<y?y:0,f.startAngle,r).attr({visibility:"hidden"}),y=B(r.attrs.path),r.remove(),r=g.polypath(k[1]||2,a,e,0<A?A:0,h.rolloverProperties.startAngle,h.rolloverProperties.dip).attr({visibility:"hidden"}),g=B(r.attrs.path),r.remove(),E.x=a-.5*E.width,E.y=e-.5*E.height,E["clip-path"]=g,l&&l.stop(),b.dataLabel&&b.dataLabel.stop(),z.x=a-.5*z.width,z.y=e-.5*z.height,z["clip-path"]=y,l.attr(z));if(g=
h.rolloverProperties)x={polypath:[k[1]||2,a,e,u,f.startAngle,0],fill:X(f.fillColor),"stroke-width":f.lineWidth,stroke:X(f.lineColor)},g=h.rolloverProperties,F={polypath:[g.sides||2,a,e,g.radius,g.startAngle,g.dip],fill:X(g.fillColor),"stroke-width":g.lineWidth,stroke:X(g.lineColor)};q&&q.attr({polypath:[k[1]||2,a,e,u,f.startAngle,0],visibility:0===u?"hidden":c}).data("isRealtime",!0).data("alwaysInvisible",0===u).data("setRolloverProperties",g).data("setRolloverAttr",F).data("setRolloutAttr",x).data("anchorRadius",
u).data("anchorHoverRadius",g&&g.radius).shadow(v||!1,d);(p||m)&&b.tracker&&b.tracker.attr({cx:a,cy:e})}else F=q.data("setRolloverAttr"),x=q.data("setRolloutAttr"),F&&(F.x=a-.5*F.width,F.y=e-.5*F.height,q&&q.stop(),b.dataLabel&&b.dataLabel.stop(),x.x=a-.5*x.width,x.y=e-.5*x.height,q.attr(x),b.tracker&&b.tracker.attr({x:x.x,y:x.y,fill:ra}))},updatePlotLine:function(a,e,c){var d=this,b=d.paper,f=d.options,n=f.chart,g=f.plotOptions.series,p=a.items,m=a.graphics||(a.graphics=[]),k,l=d.xAxis[e.xAxis||
0],q=d.yAxis[e.yAxis||0],f=!1!==(f.tooltip||{}).enabled,r=a.data,u=!1===e.visible?"hidden":"visible",v=r.length,C=g.connectNullData,F,x,E,z,A,B,D,I=null,G,M=e.lineWidth,L=e.color,N,H,K,T,U,O,Q,S,V=d.layers,P=V.dataset=V.dataset||b.group("dataset-orphan"),V=V.tracker,Y,ba,ca,Z,aa,ea,da,ga,fa,ha,ja,ia,na;ha=function(a){la.call(this,d,a)};ja=function(a){return function(b){d.hoverPlotAnchor(this,b,"DataPlotRollOver",a,d)}};ia=function(a){return function(b){d.hoverPlotAnchor(this,b,"DataPlotRollOut",a,
d)}};na=function(b,c,f,g,h,k,l,n){return function(){(Y=g.dataLabel=d.drawPlotLineLabel(a,e,n,b,c))&&m.push(Y)}};ba=P.line||(P.line=b.group("line-connector",P));ca=a.lineShadowLayer||(a.lineShadowLayer=b.group("connector-shadow",ba));Z=a.anchorShadowLayer||(a.anchorShadowLayer=b.group("anchor-shadow",ba));P=a.lineLayer||(a.lineLayer=b.group("connector",ba));ba=a.anchorLayer||(a.anchorLayer=b.group("anchors",ba));if(da=c.numUpdate||0)for(c=0;c<da;c+=1)(k=p.shift())&&delete k._state,p.push(k);for(c=
0;c<v;c+=1)if(ea=c+da,F=r[c],B=F.y,A=h(F.x,c),A=l.getAxisPosition(A),z=F.toolText,x=F.link,E=F.displayValue||J,H=F.marker||{},K=T=H.radius||0,aa=H.shadow,U=H.lineWidth||0,O=H.fillColor||"",Q=H.lineColor||"",k=H.imageUrl,fa=!!k,k=p[c],k._state||(k._state={}),ea>=v&&(k||(k=p[c]={index:c,value:B,graphic:null,connector:null,dataLabel:null,tracker:null}),k.graphic&&"image"===k.graphic.type&&!fa&&(k.graphic&&k.graphic.remove(),k.tracker&&k.tracker.remove(),k.graphic=k.tracker=null),k.graphicImage&&k.graphicImage.remove(),
k.graphic||(k.graphic=(fa?b.image(ba):b.polypath(ba)).attr({visibility:u}),m.push(k.graphic)),fa||k.graphic.attr({fill:X(O),"stroke-width":U,stroke:X(Q)}),k.connector||(k.connector=b.path(P).attr({visibility:u}),k.connector.shadow(g.shadow&&F.shadow,ca),m.push(k.connector)),k.connector.attr({"stroke-dasharray":N,stroke:X(G||L),"stroke-width":M,"stroke-linecap":"round","stroke-linejoin":2<M?"round":"miter"}),k.tracker||(k.tracker=(fa?b.rect(V):b.circle(V)).attr({stroke:ra,fill:ra,visibility:u}),m.push(k.tracker)),
T=Ca(T,S&&S.radius||0,n.anchorTrackingRadius),ga={index:c,link:x,value:F.y,displayValue:F.displayValueArgs,categoryLabel:F.categoryLabel,toolText:F.toolText,id:a.userID,datasetIndex:a.index,datasetName:a.name,visible:a.visible},k._attrClickFn&&k.tracker.unclick(k._attrClickFn),k._attrHoverInFn&&k.tracker.unhover(k._attrHoverInFn,k._attrHoverOutFn),k.tracker.attr({r:T,"stroke-width":U,stroke:ra,cursor:x?"pointer":"",ishot:!0}).data("eventArgs",ga).click(k._attrClickFn=ha).hover(k._attrHoverInFn=ja(k),
k._attrHoverOutFn=ia(k)).tooltip(z)),k&&(k.index=c),null===B)k&&(k.graphic&&k.graphic.attr({polypath:[2,0,0,0,0,0],"stroke-width":0}),k.dataLabel&&k.dataLabel.attr({text:""}),k.connector&&k.connector.attr({path:"M-9999,-9999Lh-1","stroke-width":0}),k.tracker&&k.tracker.attr({r:0,"stroke-width":0})),0===C&&(I=null);else{G=q.getAxisPosition(B);if(H&&H.enabled)if(T=H.symbol.split("_"),U=k.graphic,N=B={},S=F.rolloverProperties,fa)ea>=v?(N=new ka.Image,x={isTooltip:f,setLink:x,hotLayer:V},N.onload=d.onAnchorImageLoad(this,
a,e,A,G,H,k,ga,z,S,c,ba,x),N.onerror=na(A,G,H,k,ga,z,S,c),N.src=H.imageUrl):this.updateRealtimeAnchorImage(A,G,e,a,k,H,F,b,x,f);else{if(S=F.rolloverProperties)N={polypath:[T[1]||2,A,G,K,H.startAngle,0],fill:X(H.fillColor),"stroke-width":H.lineWidth,stroke:X(H.lineColor)},S=F.rolloverProperties,B={polypath:[S.sides||2,A,G,S.radius,S.startAngle,S.dip],fill:X(S.fillColor),"stroke-width":S.lineWidth,stroke:X(S.lineColor)};U&&U.attr({polypath:[T[1]||2,A,G,K,H.startAngle,0],visibility:0===K?"hidden":u}).data("isRealtime",
!0).data("alwaysInvisible",0===K).data("setRolloverProperties",S).data("setRolloverAttr",B).data("setRolloutAttr",N).data("anchorRadius",K).data("anchorHoverRadius",S&&S.radius).shadow(aa||!1,Z);(x||f)&&k.tracker&&k.tracker.attr({cx:A,cy:G})}k.dataLabel&&k.dataLabel.attrs.text!=E&&k.dataLabel.attr({text:E});Y=d.drawPlotLineLabel(a,e,c,A,G);null!==I?(D=["M",D,y,I],D.push("L",A,y,G),(I=k.connector)&&I.attr({path:D,"stroke-width":M})):k.connector&&k.connector.attr({path:"M-9999,-9999Lh-1","stroke-width":0});
D=A;I=G;G=F.color;N=F.dashStyle||e.dashStyle}return a},updatePlotArea:function(a,e,c){var d=this,b=d.paper,f=d.options,n=f.chart,g=d.logic,p=f.plotOptions.series,m=a.items,k=a.graphics||(a.graphics=[]),l,q=d.xAxis[e.xAxis||0],r=d.yAxis[e.yAxis||0],u=r.axisData.reversed,v=g.isStacked,f=!1!==(f.tooltip||{}).enabled,g="0"===d.definition.chart.drawfullareaborder,C=a.data,E=!1===e.visible?"hidden":"visible",x=C.length,I=p.connectNullData,z,A,B,D,L,G,M,U=r.max,N=r.min,u=r.getAxisPosition(0<U&&0<N?u?U:N:
0>U&&0>N?u?N:U:u?U:0),U=null,H,N=e.lineWidth,K=e.dashStyle,T=X(e.lineColor),V=0,O,Q,S,Y,P,ca,ba=[],da=[],Z=[],aa=d.layers,ea=aa.dataset=aa.dataset||b.group("dataset-orphan"),aa=aa.tracker,fa,ga,ha,ja,ia,na,pa,ta,qa,xa,ya,Aa,Ba;r.yBasePos=u;xa=function(a){la.call(this,d,a)};ya=function(a){return function(b){d.hoverPlotAnchor(this,b,"DataPlotRollOver",a,d)}};Aa=function(a){return function(b){d.hoverPlotAnchor(this,b,"DataPlotRollOut",a,d)}};Ba=function(b,c,f,g,h,l,m,n){return function(){(ja=g.dataLabel=
d.drawPlotLineLabel(a,e,n,b,c))&&k.push(ja)}};v&&(ha=ea.shadows||(ea.shadows=b.group("shadows",ea).toBack()));fa=ea.line||(ea.line=b.group("line-connector",ea));a.lineShadowLayer||(a.lineShadowLayer=b.group("connector-shadow",fa));ea=a.anchorShadowLayer||(a.anchorShadowLayer=b.group("anchor-shadow",fa));v=a.lineLayer||(a.lineLayer=b.group("connector",fa));fa=a.anchorLayer||(a.anchorLayer=b.group("anchors",fa));if(na=c.numUpdate||0)for(c=0;c<na;c+=1)(l=m.shift())&&delete l._state,m.push(l);for(c=0;c<
x;c+=1)ia=c+na,z=C[c],L=z.y,l=h(z.x,c),H=q.getAxisPosition(l),D=z.toolText,A=z.link,B=z.displayValue||J,O=z.marker||{},Q=M=O.radius||0,ga=O.shadow,G=O.lineWidth||0,S=O.fillColor||"",Y=O.lineColor||"",ta=O.imageUrl,qa=!!ta,l=m[c],ia>=x&&(l||(l=m[c]={index:c,graphic:null,connector:null,dataLabel:null,tracker:null}),l.graphic&&"image"===l.graphic.type&&!qa&&(l.graphic&&l.graphic.remove(),l.tracker&&l.tracker.remove(),l.graphic=l.tracker=null),l.graphicImage&&!qa&&(l.graphicImage&&l.graphicImage.remove(),
l.graphic&&l.graphic.remove(),l.tracker&&l.tracker.remove(),l.graphic=l.tracker=null),l.graphic||(l.graphic=(qa?b.image(fa):b.polypath(fa)).attr({visibility:E}),k.push(l.graphic)),qa||l.graphic.attr({fill:X(S),"stroke-width":G,stroke:X(Y)}),l.tracker||(l.tracker=(qa?b.rect(aa):b.circle(aa)).attr({stroke:ra,fill:ra,visibility:E}),k.push(l.tracker)),M=Ca(M,P&&P.radius||0,n.anchorTrackingRadius),pa={index:c,link:A,value:z.y,displayValue:z.displayValueArgs,categoryLabel:z.categoryLabel,toolText:z.toolText,
id:a.userID,datasetIndex:a.index,datasetName:a.name,visible:a.visible},l._attrHoverInFn&&l.tracker.unhover(l._attrHoverInFn,l._attrHoverOutFn),l._attrClickFn&&l.tracker.unclick(l._attrClickFn),l.tracker.attr({r:M,"stroke-width":G,cursor:A?"pointer":"",ishot:!0}).data("eventArgs",pa).click(l._attrClickFn=xa).hover(l._attrHoverInFn=ya(l),l._attrHoverOutFn=Aa(l)).tooltip(D)),l&&(l.index=c),null===L?(l&&(l.graphic&&l.graphic.attr({polypath:[2,0,0,0,0,0],"stroke-width":0}),l.dataLabel&&l.dataLabel.attr({text:""}),
l.tracker&&l.tracker.attr({r:0,"stroke-width":0})),0===I&&(U=null,0<V&&(1===V?ba.splice(-8,8):(ba=ba.concat(da),ba.push("Z")),da=[]))):(A=z.link,G=z.previousY,M=(M=r.getAxisPosition(G)||null)||u,L=r.getAxisPosition(L+(G||0)),O&&O.enabled&&(Y=O.symbol.split("_"),ca=l.graphic,G=S={},P=z.rolloverProperties,qa&&ca?ia>=x?(ia=new ka.Image,A={isTooltip:f,setLink:A,hotLayer:aa},ia.onload=d.onAnchorImageLoad(this,a,e,H,L,O,l,pa,D,P,c,fa,A),ia.onerror=Ba(H,L,O,l,pa,D,P,c),ia.src=ta):this.updateRealtimeAnchorImage(H,
L,e,a,l,O,z,b,A,f):(P&&(G={polypath:[Y[1]||2,H,L,Q,O.startAngle,0],fill:X(O.fillColor),"stroke-width":O.lineWidth,stroke:X(O.lineColor)},P=z.rolloverProperties,S={polypath:[P.sides||2,H,L,P.radius,P.startAngle,P.dip],fill:X(P.fillColor),"stroke-width":P.lineWidth,stroke:X(P.lineColor)}),ca&&ca.attr({polypath:[Y[1]||2,H,L,Q,O.startAngle,0],visibility:0===Q?"hidden":E}).data("isRealtime",!0).data("alwaysInvisible",0===Q).data("setRolloverProperties",P).data("setRolloverAttr",S).data("setRolloutAttr",
G).data("anchorRadius",Q).data("anchorHoverRadius",P&&P.radius).shadow(ga||!1,ea),(A||f)&&l.tracker&&l.tracker.attr({cx:H,cy:L}))),l.dataLabel&&l.dataLabel.attrs.text!==B&&l.dataLabel.attr({text:B}),ja=d.drawPlotLineLabel(a,e,c,H,L),null===U?(Z.push("M",H,y,L),ba.push("M",H,y,M),V=0):Z.push("L",H,y,L),ba.push("L",H,y,L),da.unshift("L",H,y,M),V++,U=L);0<V&&(1===V?ba.splice(-8,8):(ba=ba.concat(da),ba.push("Z")));a.graphic||(a.graphic=b.path(void 0).attr({"stroke-dasharray":K,"stroke-width":g?0:N,stroke:T,
"stroke-linecap":"round","stroke-linejoin":2<N?"round":"miter"}).shadow(p.shadow&&z.shadow,ha),k.push(a.graphic));a.graphic.attr({path:ba});g&&(a.connector||(a.connector=b.path(v).attr({"stroke-dasharray":K,"stroke-width":N,stroke:T,"stroke-linecap":"round","stroke-linejoin":2<N?"round":"miter"}),k.push(a.connector)),a.connector.attr({path:Z}));return a}},v["renderer.cartesian"])},[3,2,0,"sr2"]]);
