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

 @version 3.6.0
*/
FusionCharts.register("module",["private","modules.renderer.js-messagelogger",function(){var R=this.hcLib,Xa=R.Raphael,Ha,Ya=R.isIE,ka=R.graphics.HEXtoRGB,y=R.graphics.convertColor,Ia,M,Za,Ea,q,B,h,ua,wa,P,V,Y,ha,Ka,ob=this.window,oa=ob.document,ub=8===oa.documentMode,ea=!0,W=!1,G=R.pluck,qa=R.pluckNumber,vb=R.FC_CONFIG_STRING,xa={display:"block",paddingLeft:"10px",paddingRight:"10px","font-family":"Arial","font-size":"11px"},v=function(h,q){var w=this,B;q||(q="");for(B=w.indexOf(h);-1!==B;)w=w.replace(h,
q),B=w.indexOf(h);return w};Ka=function(v,G,w){var M=v.hcJSON,V=M&&M[vb],P=G&&G.chartWidth,U=G&&G.chartHeight,M=Ea/100*P,ha=q/100*U,ba=(P-M)/2,X=(U-ha)/2,qa=M-18-22,fa=ha-18-22,oa=ua,xa=ua;v=w.html("div",{fill:"transparent",width:P,height:U},{fontSize:"10px",lineHeight:"15px",fontFamily:(V&&V.inCanvasStyle||v.inCanvasStyle).fontFamily},G&&G.container);v.veil=w.html("div",{id:"veil",fill:"000000",width:P,height:U,opacity:.1},void 0,v).on("click",function(){Y&&R.messageLogger.close()});h&&B&&(v.title=
w.html("p",{id:"Title",innerHTML:h,x:5,y:5},{"font-weight":"bold"},v));v.dialog=w.html("div",{id:"dialog",x:ba,y:X,fill:"ffffff",strokeWidth:1,stroke:oa,width:M,height:ha},{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=w.html("div",{id:"dialogBackground",x:0,y:0,fill:xa,width:M,height:ha},void 0,v.dialog);Y&&
(v.closeBtnContainer=w.html("div",{id:"closeBtnContainer",width:18,height:18,x:ba+M-21,y:X+3},{},v),G=new Xa("closeBtnContainer",18,18),P=G.group("closeGroup"),v.closeButton=G.symbol("closeIcon",0,0,6,P).attr({transform:"t9,9","stroke-width":2,stroke:y("999999"),ishot:!0,"stroke-linecap":"round","stroke-linejoin":"round"}).css({cursor:"pointer",_cursor:"hand"}).click(function(){R.messageLogger.close()}));v.logWrapper=w.html("div",{id:"logWrapper",x:(M-qa)/2,y:(ha-fa)/2,width:qa,height:fa},{overflow:"auto"},
v.dialog).on("scroll",function(){var h=this&&this.scrollTop,q=this&&this.scrollHeight,w=this&&this.offsetHeight;W?W=!1:ea=q-h===w?!0:!1});v.log=w.html("div",{id:"log",x:0,y:0},{},v.logWrapper);v.hide();return v};Ha=function(h,q,w,v){if(R.messageLogger)return R.messageLogger;this.chart=h;this.instanceAPI=q;this.renderer=w;this.paper=v;this.menuCreated=!1;this.log=(h=this.ui=Ka(q,w,v))&&h.log;h&&this.updateStatus("INITIALIZED")};Ha.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":Ia?q.hideItem(4):q.hideItem(1);break;case "closed":Ia?q.showItem(3):q.showItem(0);Ia?q.hideItem(4):q.hideItem(1);break;case "active":Ia?q.showItem(4):q.showItem(1),Ia?q.hideItem(3):q.hideItem(0)}},appendMessage:function(h){var q=this.status,w=G(h.msgid,""),B=G(h.msgtitle,""),y=G(h.msgtext,""),M=h&&G(h.msgtype,"literal"),U=h&&!!qa(h.clearlog,0),ha=h&&!!qa(h.hidelog,0),ba=h&&!!qa(h.showlog,0),
X=h&&!!qa(h.msggoestolog,Za),Ea=h&&!!qa(h.msggoestojs,wa);X&&"INITIALIZED"===q&&this.updateStatus("CLOSED");ha&&this.close();U&&this.clear();ba&&this.open();X&&"ACTIVE"!==this.status&&this.show();if((""!==B&&void 0!==B||""!==y&&void 0!==y)&&this.log&&X){var q=this.log,U=h&&h.msgtitle,ha=h&&h.msgtext,ba=h&&G(h.msgtype,"literal"),fa,R;h="";var Y,ta,la;q&&q.element&&(Y=q.element);Y&&(ta=Y.parentElement);U&&(U+=" : ");switch(ba.toLowerCase()){case "info":U&&(fa='<span style="color: #005900">$titleVal$</span>');
ha&&(R="<span>$msgVal$</span>");break;case "literal":U&&(fa='<span style="color: #005900">$titleVal$</span>');ha&&(R="<span>$msgVal$</span>");break;case "error":U&&(fa='<span style="color: #CC0000">$titleVal$</span>');ha&&(R='<span style="color: #CC0000">$msgVal$</span>');break;case "link":U&&(fa='<span style="color: #005900">$titleVal$</span>');ha&&(R='<a href="$msgVal$">$msgVal$</a>');break;default:U&&(fa='<span style="color: #005900">$titleVal$</span>'),ha&&(R="<span>$msgVal$</span>")}fa&&(fa=
fa.replace("$titleVal$",U),h+=fa);R&&(R=v.call(R,"$msgVal$",ha),h+=R);if(Y&&h){fa=oa.createElement("span");for(la in xa)fa.style[la]=xa[la];fa.innerHTML=h;Y.appendChild&&Y.appendChild(fa);Ya&&ub&&(la=Y.innerHTML,Y.innerHTML=la);ea&&(W=!0,Y=ta.scrollHeight,ta.scrollTop=Y)}Ya||(this.ui.element.scrollHeight+=30,this.ui.element.scrollTop=this.ui.element.scrollHeight)}Ea&&P&&(Ea=ob[P],"function"===typeof Ea&&(V?Ea(w,B,y,M):Ea(y)))},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");R.messageLogger=null;delete R.messageLogger;return null}};
Ha.prototype.constructor=Ha;this.core.addEventListener(["rendered","dataupdated","resized"],function(v){var G=v&&v.sender;v=v&&v.eventType;var w=G&&G.jsVars,y=w&&w.hcObj,W=y&&y.options,ea=w&&w.instanceAPI,U=ea&&ea.renderer,y=U&&U.paper,W=W&&W.chart,oa=G&&G.options,oa=oa&&oa.renderer,ba=R&&R.messageLogger,X=ba&&ba.status,xa=w&&w._reflowData,fa=xa&&xa._messageLogger||{},w=fa&&fa.appendedMessages,Ka;if(!oa||"javascript"===oa.toLowerCase())if(M=W&&W.useMessageLog){W&&(Ia=W.showRTMenuItem,Za=W.messageGoesToLog,
wa=W.messageGoesToJS,P=W.messageJSHandler,V=W.messagePassAllToJS,Ea=W.messageLogWPercent,q=W.messageLogHPercent,B=W.messageLogShowTitle,h=W.messageLogTitle,Y=W.messageLogIsCancelable,ua=W.messageLogColor,ua=ua.replace(/^#?([a-f0-9]+)/ig,"$1"),ka(ua),ha=W.alwaysShowMessageLogMenu);ba&&(ba=R.messageLogger=ba.destroy());Ka=(ba=R.messageLogger=new Ha(G,ea,U,y))&&ba.ui&&ba.ui.log&&ba.ui.log.element;if("resized"===v)switch(w&&(Ka.innerHTML=w),X.toLowerCase()){case "active":ba.ui.show();ba.updateStatus(X);
break;case "closed":ba.updateStatus(X)}ha&&(ba.menuCreated=!0);G.addEventListener("RealTimeUpdateComplete",function(h,q){var w=q&&q.updateObject,v=w&&w.msgtitle,B=w&&w.msgtext,y=w&&qa(w.showlog,0),W=w&&qa(w.hidelog,0),V=w&&qa(w.clearlog,0);if(v||B||y||W||V)!M||Ia||!Za||ha||ba.menuCreated||(ea.drawMLMenuButtons.call(U,G),ba.menuCreated=!0),ba.appendMessage(w),fa.appendedMessages=Ka&&Ka.innerHTML,xa._messageLogger=fa});G.addEventListener("beforeDispose",function(){ba&&ba.destroy()})}})}]);
FusionCharts.register("module",["private","modules.renderer.js-realtime",function(){var R=this,Xa=R.window,Ha=Math,Ya=Ha.random,ka=Ha.max,y=R.hcLib.pluckNumber,Ia=function(y,q,B){clearTimeout(B);return setTimeout(y,q)},M,Za;M=function(y){var q=y.sender,B=q.jsVars;y=q.__state;var h=B.instanceAPI,M=h.hcJSON,wa=h.numberFormatter,P=M&&M.alerts&&M.alerts.alert||[],B=B._rtLastUpdatedData&&B._rtLastUpdatedData.values,V=P.length,Y;if(B&&B.length){h=function(h){var B,y=wa.getCleanValue(h),M,Y=function(h){return function(){eval(h.param)}};
for(M=0;M<V;M+=1)if(h=P[M],B=h.action&&h.action.toLowerCase(),h.minvalue<y&&h.maxvalue>y){if("1"!==h.occuronce||!h.hasOccurred){h.hasOccurred=!0;h.state="1";switch(B){case "calljs":setTimeout(Y(h),0);break;case "showannotation":q.showAnnotation&&q.showAnnotation(h.param)}R.raiseEvent("AlertComplete",null,h)}}else"showannotation"===B&&"1"===h.state&&q.hideAnnotation&&q.hideAnnotation(h.param),h.state="2"};M=ka(B.length,0);for(Y=0;Y<M;Y+=1)y.lastSetValues&&B[Y]===y.lastSetValues[Y]||h(B[Y]);y.lastSetValues=
B}};Za=function(Ea){var q=Ea.sender,B=q.__state,h,ua,wa,P,V,Y,ha,Ka,ka,oa,Ha,ea;B.dataSetDuringConstruction&&!B.rtStateChanged&&void 0===B.rtPreInit&&(q.dataReady()?(B.rtStateChanged=!0,B.rtPreInit=!0):B.rtPreInit=!1);B.rtStateChanged&&(B.rtStateChanged=!1,h=q.jsVars,ua=h.hcObj)&&(wa=ua.logic,V=(P=ua.options)&&P.chart||{},Y=1E3*y(V.updateInterval,V.refreshInterval),ha=1E3*y(V.clearInterval,0),Ka=V.dataStreamURL,ka=V.dataStamp,V=Boolean(wa&&wa.realtimeEnabled&&0<Y&&void 0!==Ka&&V),P=P&&P.plotOptions&&
P.plotOptions.series.animation&&P.plotOptions.series.animation.duration||0,oa=B._rtAjaxObj,Ha=function(){q.clearChart&&q.clearChart();ha&&(B._toClearChart=setTimeout(Ha,ha))},ea=function(){var h=Ka,h=h+((-1===Ka.indexOf("?")?"?num=":"&num=")+Ya());ka&&(h+="&dataStamp="+ka);oa.open&&oa.abort();oa.get(h);B._rtAjaxLatencyStart=new Date},0>=Y?(B._toRealtime=clearTimeout(B._toRealtime),oa&&oa.abort()):10>Y&&(Y=10),B._toClearChart=clearTimeout(B._toClearChart),0<ha&&(10>ha?ha=10:B._toClearChart=setTimeout(Ha,
ha)),B._rtStaticRefreshMS=Y,V&&(void 0===B._rtPaused&&(B._rtPaused=!1),B._rtDataUrl=Ka,B.lastSetValues=null,oa=B._rtAjaxObj||(B._rtAjaxObj=new R.ajax),oa.onSuccess=function(y,G,M,V){if(!q.disposed){var P=h.hcObj&&h.hcObj.logic;M=P.linearDataParser&&P.linearDataParser(y,P.multisetRealtime);B._rtAjaxLatencyStart&&(B._rtAjaxLatency=new Date-B._rtAjaxLatencyStart);if(q.isActive()&&M&&ua&&(ua.realtimeUpdate||P.realtimeUpdate)){ka=M.dataStamp?M.dataStamp:null;M.interval=1E3>Y?Y:1E3;G=q.getDataJSON();ua.realtimeUpdate?
ua.realtimeUpdate(M):P.realtimeUpdate(M);h._rtLastUpdatedData=P.multisetRealtime?M:q.getDataJSON();P=(P.realtimeDrawingLatency||0)+(B._rtAjaxLatency||0);R.raiseEvent("realtimeUpdateComplete",{data:y,updateObject:M,prevData:G.values,source:"XmlHttpRequest",url:V,networkLatency:B._rtAjaxLatency,latency:P},Ea.sender);try{Xa.FC_ChartUpdated&&Xa.FC_ChartUpdated(Ea.sender.id)}catch(v){setTimeout(function(){throw v;},1)}B._rtPaused||(P>=B._rtStaticRefreshMS&&(P=B._rtStaticRefreshMS-1),B._toRealtime=setTimeout(ea,
B._rtStaticRefreshMS-P))}else B._toRealtime=clearTimeout(B._toRealtime)}},oa.onError=function(h,G,y,M){B._rtAjaxLatencyStart&&(B._rtAjaxLatency=new Date-B._rtAjaxLatencyStart);R.raiseEvent("realtimeUpdateError",{source:"XmlHttpRequest",url:M,xmlHttpRequestObject:G.xhr,error:h,httpStatus:G.xhr&&G.xhr.status?G.xhr.status:-1,networkLatency:B._rtAjaxLatency},Ea.sender);B._toRealtime=q.isActive()?setTimeout(ea,Y):clearTimeout(B._toRealtime)},B._rtPaused||(B._toRealtime=Ia(ea,P>Y?P:Y,B._toRealtime))),q.removeEventListener("realtimeUpdateComplete",
M),wa.dataObj&&wa.dataObj.alerts&&wa.dataObj.alerts&&wa.dataObj.alerts.alert&&wa.dataObj.alerts.alert.length&&q.addEventListener("realtimeUpdateComplete",M))};R.addEventListener(["beforeDataUpdate","beforeRender"],function(y){y=y.sender;var q=y.__state;y.jsVars&&(y.jsVars._rtLastUpdatedData=null);q._toRealtime&&(q._toRealtime=clearTimeout(q._toRealtime));q._toClearChart&&(q._toClearChart=clearTimeout(q._toClearChart));q._rtAjaxLatencyStart=null;q._rtAjaxLatency=null});R.addEventListener(["renderComplete",
"dataUpdated"],function(y){var q=y.sender.__state;q&&(void 0===q.rtPreInit&&(q.rtPreInit=!1),q._rtPaused&&delete q._rtPaused,q.rtStateChanged||(q.rtStateChanged=!0,Za.apply(this,arguments)))});R.core.addEventListener("beforeDispose",function(y){y=y.sender.__state;y._toRealtime&&(y._toRealtime=clearTimeout(y._toRealtime));y._toClearChart&&(y._toClearChart=clearTimeout(y._toClearChart))});R.core.addEventListener("drawComplete",Za)}]);
FusionCharts.register("module",["private","modules.renderer.js-widgets",function(){function R(){}function Xa(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 Ha(a,e){var c=a.labels,d=c._textY,b=c._righttX,c=c._leftX,f,m,g=e.length;for(f=0;f<g;f+=1)if(m=e[f]&&e[f].label)m.y=d,m.x=m.align===ab?b:c}function Ya(a,e,c,d){var b,f,m,g,p,n;c instanceof Array||(c=this.colorManager.getPlotColor(0));if(a&&0<a.length){for(f=m=a.length-1;0<=f;f-=1)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!==m&&a.splice(f,1)),void 0!==b.label&&(b.label=U(b.label)),void 0!==b.name&&(b.name=U(b.name)),null!==b.maxvalue&&b.minvalue>b.maxvalue&&(g=b.minvalue,b.minvalue=b.maxvalue,b.maxvalue=g);a.sort(Ib);a[0].code||(a[0].code=c[0]);void 0===B(a[0].alpha)&&(a[0].alpha=Qa);f=0;for(m=a.length-1;f<m;f+=1)if(g=f+1,b=a[f],d=a[g],d.code||(d.code=c[g]),void 0===B(d.alpha)&&(d.alpha=Qa),null===b.maxvalue&&
(b.maxvalue=d.minvalue),b.maxvalue>d.minvalue){if(b.maxvalue>d.maxvalue){g=V(b);g.maxvalue=b.maxvalue;n=g.minvalue=d.maxvalue;for(p=f+2;p<m&&a[p].minvalue<n;p+=1);a.splice(p,0,g);m+=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 ka=this,y=ka.hcLib,Ia=y.Raphael,M=y.BLANKSTRING,Za=y.createTrendLine,Ea=y.createContextMenu,q=y.pluck,B=y.getValidValue,
h=y.pluckNumber,ua=y.getFirstDefinedValue,wa=y.getColorCodeString,P=y.FC_CONFIG_STRING,V=y.extend2,Y=y.getDashStyle,ha=y.hashify,Ka=y.hasSVG,ob=y.falseFN,oa=y.getFirstValue,ub=y.getFirstColor,ea=y.graphics.getDarkColor,W=y.graphics.getLightColor,G=y.graphics.convertColor,qa=y.graphics.parseColor,vb=y.graphics.parseAlpha,xa=y.COLOR_TRANSPARENT,v=y.chartAPI,$a=y.parseTooltext,Ob=v.singleseries,w=y.COMMASTRING,bb=y.ZEROSTRING,Fb=y.ONESTRING,Pb=/\\,/ig,U=y.parseUnsafeString,Qb=y.HCstub,ba=ka.window,X=
/msie/i.test(ba.navigator.userAgent)&&!ba.opera,pb=y.regex.hexcode,fa="rgba(192,192,192,"+(X?.002:1E-6)+")",Rb=parseFloat,Sb=parseInt,ta=Math,la=ta.round,Gb=ta.ceil,ya=ta.max,La=ta.min,wb=ta.abs,Hb=ta.atan2,ma=ta.pow,kb=ta.sqrt,cb=ta.PI/180,db=y.regex.dropHash,xb=y.toPrecision,Tb=y.isArray,eb=y.HASHSTRING,S=y.toRaphaelColor,ta=y.TOUCH_THRESHOLD_PIXELS,Ub=y.CLICK_THRESHOLD_PIXELS,yb=void 0!==ba.document.documentElement.ontouchstart,zb=yb?ta:Ub,Vb=y.getPosition,ca=y.plotEventHandler,Ib,Ab,Bb,Cb,fb,
Jb,Kb,Lb,Wb={left:"start",right:"end",center:"middle"},qb={"true":void 0,"false":"crisp"},Db=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},za=function(a,e){var c;a||(a={});for(c in e)a[c]=e[c];return a},lb=function(a){return"object"===typeof a},Ra=function(a){return"string"===typeof a},$=function(a){return void 0!==a&&null!==a},rb=X&&!Ka?"visible":"",sb=y.regex.startsRGBA,Da=y.setLineHeight,Mb=y.pluckFontSize,
Ma=y.POSITION_MIDDLE,Fa=y.POSITION_TOP,mb=y.POSITION_BOTTOM,ab=y.POSITION_RIGHT,Ja=y.POSITION_LEFT,Ga=y.POSITION_MIDDLE,Qa=y.HUNDREDSTRING,hb=y.PXSTRING,Nb=y.COMMASPACE,sa={right:"end",left:"start",middle:"middle",start:"start",end:"end",center:"middle",undefined:"","":""},X=!/fusioncharts\.com$/i.test(ba.location.hostname),Xb=function(){return function(a,e,c){var d,b=this,f=this._Attr,m=Ia.vml?-1.5:0,g=Ia.vml?-1.5:0,p;f||(f=b._Attr={});Ra(a)&&$(e)&&(d=a,a={},a[d]=e);if(Ra(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*cb,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+","+m+","+g},c.duration,"easeIn"):b.attr({transform:"R"+e+","+m+","+g})):b._attr(d,e);return b}},nb=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}}},ta=V({},y.defaultGaugePaletteOptions);R.prototype={numDecimals:function(a){a=xb(a,10);a=Math.abs(a);a=xb(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;a+=c*Math.cos(d);e-=c*Math.sin(d);return{x:a,y:e}},remainderOf:function(a,e){var c=a%e,d=void 0,d=ma(10,void 0===d?2:d),c=la(Number(String(c*d)));return c/=d},boundAngle:function(a){return 0<=a?R.prototype.remainderOf(a,360):360-R.prototype.remainderOf(Math.abs(a),360)},toNearestTwip:function(a){var e=0>a?-1:1;a=Math.abs(a);a=la(100*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=ma(10,void 0===e?2:e);a=la(Number(String(a*c)));
return a/=c}};R.prototype.constructor=R;y.MathExt=R;Ab=function(a,e,c,d,b,f,m,g){var p=a[P].smartLabel,n=e.chart,k=a.chart,l,s,u=0;e=a.title;m=a.subtitle;var t=e.text,r=m.text;b=h(n.captionpadding,b,2);var K=0,E=0,u=0,q=h(n.captiononright,0),J=B(n.captionposition,"top").toLowerCase(),n=0,x={left:0,right:0};g=g.snapLiterals||(g.snapLiterals={});var z=0,F=0;t!==M&&(l=e.style,K=h(parseInt(l.fontHeight,10),parseInt(l.lineHeight,10),12),h(parseInt(l.fontSize,10),10));r!==M&&(s=m.style,E=h(parseInt(s.fontHeight,
10),parseInt(s.lineHeight,10),12),u=h(parseInt(s.fontSize,10),10));if(0<K||0<E){p.setStyle(l);l=p.getSmartText(e.text,c,d);0<l.width&&(l.width+=2,n=l.height);p.setStyle(s);s=p.getSmartText(m.text,c,d-n);0<s.width&&(s.width+=2);p=l.height+0+u/2;switch(J){case "middle":e.y=d/2-l.height;m.y=e.y+p;break;case "bottom":m.y=d-k.marginBottom-k.marginTop-s.height;e.y=m.y-(0<l.height?p:0);break;default:e.y=0,m.y=p}u=Math.max(l.width,s.width);a.title.text=l.text;l.tooltext&&(a.title.originalText=l.tooltext);
a.subtitle.text=s.text;s.tooltext&&(a.subtitle.originalText=s.tooltext);0<u&&(u+=b);a=Math.min(u,c);q?(e.align=m.align=sa.start,x.right=a,e.x=f-u+b,m.x=f-u+b):(e.align=m.align=sa.end,x.left=a,e.x=u-b,m.x=u-b,z=a,F=s.width);e._captionWidth=l.width;m._subCaptionWidth=s.width;g.captionstartx=e.x-z;g.captionstarty=e.y;g.captionwidth=l.width;g.captionheight=n||0;g.captionendx=g.captionstartx+g.captionwidth;g.captionendy=g.captionstarty+g.captionheight;g.subcaptionstartx=m.x-F;g.subcaptionstarty=m.y;g.subcaptionwidth=
0<s.width?s.width:0;g.subcaptionheight=0<s.height?s.height:0;g.subcaptionendx=g.subcaptionstartx+g.subcaptionwidth;g.subcaptionendy=g.subcaptionstarty+g.subcaptionheight}return x};Bb=function(a,e,c,d,b,f){var m=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 n=0,k=0;m.spacingRight=m.spacingLeft=0;$(d)||(d=0);$(b)||(b=0);g?(c-=m.marginRight,a.align=e.align=sa.start,e.x=a.x=c+p+b+2):(a.align=e.align=sa.end,e.x=a.x=m.marginLeft-m.spacingLeft-
p-d-2,n=e._captionWidth,k=a._subCaptionWidth);f.captionstartx=e.x-n;f.subcaptionstartx=a.x-k;f.captionendx=f.captionstartx+f.captionwidth;f.subcaptionendx=f.subcaptionstartx+f.subcaptionwidth};Cb=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 R};Cb.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),m,
g;if(this.userMaxGiven&&this.userMinGiven)a=b,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;f=Math.floor(Math.log(Math.abs(a))/Math.LN10);m=Math.floor(Math.log(Math.abs(e))/Math.LN10);m=Math.max(m,f);f=ma(10,m);2>Math.abs(a)/f&&2>Math.abs(e)/f&&(m--,f=ma(10,m));m=Math.floor(Math.log(a-e)/Math.LN10);m=ma(10,m);0<a-e&&10<=f/m&&(f=m);m=(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&&(m=0);this.max=!1===this.userMaxGiven||!0===this.userMaxGiven&&b<a&&d?m: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;-1!=this.numMajorTM&&2>this.numMajorTM&&(this.numMajorTM=2);if(!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;else if(this.numMajorTM=-1==this.numMajorTM?5:this.numMajorTM,!0===this.adjustTM){a=0;for(e=1;;){c=this.numMajorTM+
a*e;c=0===c?1:c;if(this.isRangeDivisible(this.range,c,this.interval))break;a=-1==e||a>this.numMajorTM?++a:a;if(25<a){c=this.numMajorTM;break}e=a<=this.numMajorTM?-1*e:1}this.numMajorTM=1<c?c:this.numMajorTM}this.majorTickInt=(this.max-this.min)/(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,m=this.tickValueStep,g=U(this.lowerLimitDisplay),p=U(this.upperLimitDisplay),n=this.majorTickInt,k=this.min,l=this.showTickValues,s=!1,u=h(this.showLimits,l);a<d;a+=1)e=xb(Number(k+n*a),10),c=f.scale(e),s=!1,0!==a%m&&a!==d-1?c=M:0===a||a===d-1?u?0===a&&g?(c=g,s=!0):a==d-1&&p&&(c=p,s=!0):c=M:l||(c=M),this.majorTM.push({displayValue:c,
isString:s,value:e});c=n/(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:X,defaultPaletteOptions:ta,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,m=this.realtimeEnabled,g=this.colorManager,p,n=d.alerts,k,l,s,u,t,r,K,E,A,J,x,z,F;l=Qb(d,a,e,this);t=l.chart;k=l[P];l.labels.smartLabel=k.smartLabel=this.smartLabel;
this.width=a;this.height=e;k.width=a;k.height=e;u=l.plotOptions;t.useRoundEdges=1==b.useroundedges;k.tooltext=b.plottooltext;k.targettooltext=b.targettooltext;p=(t.is3D=s=k.is3d=/3d$/.test(f))?y.chartPaletteStr.chart3D:y.chartPaletteStr.chart2D;t.defaultSeriesType=f;r=0<b.palette&&6>b.palette?b.palette:h(this.paletteIndex,1);r-=1;t.paletteIndex=r;f=V({},d.colorrange);this.colorRangeGetter=new Ya(f.color,void 0,this.defaultPaletteOptions.paletteColors[r],this);t.events.click=l.plotOptions.series.point.events.click=
this.linkClickFN;void 0!==q(b.clickurl)&&(t.link=b.clickurl,t.style.cursor="pointer",l.plotOptions.series.point.events.click=function(){t.events.click.call({link:b.clickurl})});K=q(b.basefont,"Verdana,sans");E=Mb(b.basefontsize,10);A=q(b.basefontcolor,g.getColor("baseFontColor"));f=q(b.outcnvbasefont,K);x=Mb(b.outcnvbasefontsize,E);r=x+hb;J=q(b.outcnvbasefontcolor,A).replace(/^#?([a-f0-9]+)/ig,"#$1");E+=hb;A=A.replace(/^#?([a-f0-9]+)/ig,"#$1");this.trendStyle=this.outCanvasStyle={fontFamily:f,color:J,
fontSize:r};z=Da(this.trendStyle);this.inCanvasStyle={fontFamily:K,fontSize:E,color:A};F=Da(this.inCanvasStyle);k.trendStyle=k.outCanvasStyle={fontFamily:f,color:J,fontSize:r};V(l.legend,{title:{style:{fontFamily:q(b.legendcaptionfont,f),fontSize:h(b.legendcaptionfontsize,x)+"px",color:ha(q(b.legendcaptionfontcolor,J)),fontWeight:h(b.legendcaptionfontbold,1)?"bold":"normal"},align:Wb[q(b.legendcaptionalignment)]},itemStyle:{fontFamily:q(b.legenditemfont,f),fontSize:h(b.legenditemfontsize,x)+"px",
color:ha(q(b.legenditemfontcolor,J)),fontWeight:h(b.legenditemfontbold)?"bold":"normal"},itemHiddenStyle:{fontFamily:f,fontSize:x+"px",color:ha(q(b.legenditemhiddencolor,J))},itemHoverStyle:{color:ha(q(b.legenditemhoverfontcolor,b.legenditemfontcolor,J))}});l.legend.title.style.lineHeight=Da(l.legend.title.style);l.legend.itemStyle.lineHeight=Da(l.legend.itemStyle);l.legend.itemHiddenStyle.lineHeight=Da(l.legend.itemHiddenStyle);k=(k=oa(b.valuebordercolor,M))?G(k,h(b.valueborderalpha,b.valuealpha,
100)):M;k=u.series.dataLabels.style={fontFamily:q(b.valuefont,K),fontSize:q(b.valuefontsize,parseInt(E,10))+hb,color:G(q(b.valuefontcolor,A),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?
G(b.valuebgcolor,h(b.valuebgalpha,b.valuealpha,100)):M,borderDash:h(b.valueborderdashed,0)?Y(h(b.valueborderdashlen,4),h(b.valueborderdashgap,2),h(b.valueborderthickness,1)):"none"};Da(k);u.series.dataLabels.color=k.color;this.isDataLabelBold&&(k.fontWeight="bold",delete k.lineHeight,Da(k));l.tooltip.style={fontFamily:K,fontSize:E,lineHeight:F,color:A};l.title.style={fontFamily:q(b.captionfont,f),color:q(b.captionfontcolor,J).replace(/^#?([a-f0-9]+)/ig,"#$1"),fontSize:h(b.captionfontsize,x+3)+hb,
fontWeight:0===h(b.captionfontbold)?"normal":"bold"};l.title.align=q(b.captionalignment,Ma);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);Da(l.title.style);l.subtitle.style={fontFamily:q(b.subcaptionfont,b.captionfont,f),color:q(b.subcaptionfontcolor,b.captionfontcolor,J).replace(/^#?([a-f0-9]+)/ig,"#$1"),fontSize:h(b.subcaptionfontsize,h(ya(h(b.captionfontsize)-
3,-1),x)+h(this.subTitleFontSizeExtender,1))+hb,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;Da(l.subtitle.style);l.chart.trendPointStyle={style:this.trendStyle};l.orphanStyles={defaultStyle:{style:V({},this.inCanvasStyle)}};l.chart.colorRangeStyle={style:{fontFamily:K,fontSize:E,
lineHeight:F,color:A}};Da(l.chart.colorRangeStyle);k=h(b.scaleonresize,1);t.origW=u=h(b.origw,k?this.origRenderWidth:a);t.origH=k=h(b.origh,k?this.origRenderHeight:e);u=(t.autoScale=K=h(b.autoscale,1))?Xa(u,k,a,e):1;this.scaleFactor=t.scaleFactor=u;this.createGaugeAxis&&this.createGaugeAxis(d,l,{fontFamily:f,fontSize:r,lineHeight:z,color:J});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,Nb);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);t.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,s?0:1);t.borderWidth=p?h(b.borderthickness,1):0;t.borderRadius=h(b.borderradius,0);t.borderDashStyle=h(b.borderdashed,0)?Y(h(b.borderdashlen,4),h(b.borderdashgap,2),t.borderWidth):void 0;t.borderColor=G(q(b.bordercolor,s?"#666666":g.getColor("borderColor")),q(b.borderalpha,s?"100":g.getColor("borderAlpha")));t.plotBackgroundColor=t.plotBorderColor=xa;t.plotBorderWidth=0;t.plotShadow=0;t.bgSWF=q(b.bgimage,
b.bgswf);t.bgSWFAlpha=h(b.bgimagealpha,b.bgswfalpha,100);s=q(b.bgimagedisplaymode,"none").toLowerCase();p=B(b.bgimagevalign,M).toLowerCase();f=B(b.bgimagehalign,M).toLowerCase();"tile"==s||"fill"==s||"fit"==s?(p!=Fa&&p!=Ga&&p!=mb&&(p=Ga),"left"!=f&&f!=Ga&&"right"!=f&&(f=Ga)):(p!=Fa&&p!=Ga&&p!=mb&&(p=Fa),"left"!=f&&f!=Ga&&"right"!=f&&(f="left"));t.bgImageDisplayMode=s;t.bgImageVAlign=p;t.bgImageHAlign=f;t.bgImageScale=h(b.bgimagescale,100);t.logoURL=B(b.logourl);t.logoPosition=q(b.logoposition,"tl").toLowerCase();
t.logoAlpha=h(b.logoalpha,100);t.logoLink=B(b.logolink);t.logoScale=h(b.logoscale,100);t.logoLeftMargin=h(b.logoleftmargin,0);t.logoTopMargin=h(b.logotopmargin,0);t.annRenderDelay=B(b.annrenderdelay);s=l.tooltip.style;s.backgroundColor=G(q(s.backgroundColor,b.tooltipbgcolor,b.hovercapbgcolor,b.hovercapbg,g.getColor("toolTipBgColor")),q(b.tooltipbgalpha,100));s.borderColor=G(q(s.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:ya(h(b.tooltipbgalpha,100),h(b.tooltipborderalpha,100))/100}:!1;s.borderWidth=h(b.tooltipborderthickness,1)+"px";b.tooltipborderradius&&(s.borderRadius=h(b.tooltipborderradius,1)+"px");l.tooltip.style.padding=h(b.tooltippadding,this.tooltippadding,3)+"px";b.tooltipcolor&&(s.color=ub(b.tooltipcolor));t.rotateValues=h(b.rotatevalues,0);t.placeValuesInside=h(b.placevaluesinside,
0);t.valuePosition=b.valueposition;t.valuePadding=h(b.valuepadding,4);l.plotOptions.series.shadow=h(b.showshadow,b.showcolumnshadow,this.defaultPlotShadow,this.colorManager.getColor("showShadow"));t.useRoundEdges&&(l.plotOptions.series.shadow=h(b.showshadow,b.showcolumnshadow,1),l.plotOptions.series.borderRadius=1,l.tooltip.borderRadius=2);l.title.text=U(b.caption);l.subtitle.text=U(b.subcaption);b.showtooltip==bb&&(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);t.dataStreamURL=q(b.datastreamurl,"");t.refreshInterval=h(b.refreshinterval,1);t.dataStamp=b.datastamp;t.useMessageLog=h(b.usemessagelog,0);t.messageLogWPercent=La(h(b.messagelogwpercent,80),100);t.messageLogHPercent=La(h(b.messageloghpercent,70),100);t.messageLogShowTitle=h(b.messagelogshowtitle,1);t.messageLogTitle=q(b.messagelogtitle,"Message Log");t.messageLogColor=q(b.messagelogcolor,"#fbfbfb");t.messageGoesToJS=h(b.messagegoestojs,
0);t.messageGoesToLog=h(b.messagegoestolog,1);t.messageJSHandler=q(b.messagejshandler,"");t.messagePassAllToJS=h(b.messagepassalltojs,0);t.messageLogIsCancelable=h(b.messagelogiscancelable,1);t.alwaysShowMessageLogMenu=h(b.alwaysshowmessagelogmenu,t.useMessageLog);t.showRTMenuItem=h(b.showrtmenuitem,0);g=h(b.showgaugeborder,1);t.gaugeBorderColor=q(b.gaugebordercolor,this.gaugeBorderColor,"333333");t.gaugeBorderThickness=g?h(b.gaugeborderthickness,this.gaugeBorderThickness,2):0;t.gaugeBorderAlpha=
q(b.gaugeborderalpha,Qa);t.gaugeFillColor=q(b.gaugefillcolor,b.ledbgcolor,"000000");t.useSameFillColor=h(b.usesamefillcolor,0);t.useSameFillBgColor=h(b.usesamefillbgcolor,t.useSameFillColor);t.colorRangeFillMix=ua(b.colorrangefillmix,b.gaugefillmix,this.colorRangeFillMix,"{light-10},{dark-10},{light-10},{dark-10}");t.colorRangeFillRatio=ua(b.colorrangefillratio,b.gaugefillratio,this.colorRangeFillRatio,b.gaugefillratio,"0,10,80,10");t.showColorRangeBorder=h(b.showcolorrangeborder,b.showgaugeborder,
this.showColorRangeBorder,0);t.colorRangeBorderColor=q(b.colorrangebordercolor,b.gaugebordercolor,"{dark-20}");t.colorRangeBorderThickness=g?h(b.colorrangeborderthickness,b.gaugeborderthickness,1):0;t.colorRangeBorderAlpha=h(b.colorrangeborderalpha,b.gaugeborderalpha,100);t.roundRadius=h(b.roundradius,b.gaugeroundradius,0);t.showShadow=h(b.showshadow,1);t.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=t.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=G(q(b.toolbarbuttoncolor,
"ffffff"));g.labelFill=G(q(b.toolbarlabelcolor,"cccccc"));g.symbolFill=G(q(b.toolbarsymbolcolor,"ffffff"));g.hoverFill=G(q(b.toolbarbuttonhovercolor,"ffffff"));g.stroke=G(q(b.toolbarbuttonbordercolor,"bbbbbb"));g.symbolStroke=G(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"===(M+b.toolbarhalign).toLowerCase()?"l":g.charAt(1);g=c.vAlign="bottom"===(M+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);ba.console&&
ba.console.log&&ba.FC_DEV_ENVIRONMENT&&console.log(l);h(b.showrtmenuitem,0)?(l.callbacks||(l.callbacks=[])).push(this.drawRTMenuButtons):t.useMessageLog&&t.alwaysShowMessageLogMenu&&t.messageGoesToLog&&(l.callbacks||(l.callbacks=[])).push(this.drawMLMenuButtons);m&&n&&(this.hcJSON.alerts=this.parseAlertObj(n));return l},parseAlertObj:function(){return fb.parseAlertObj.apply(this,arguments)},drawMLMenuButtons:function(){var a=this.options,e=a.chart,c=this.menu||(this.menu=[]),d=this.toolbar,a=a[P],
b;c.push(b=Ea({chart:this,basicStyle:a&&a.outCanvasStyle||this.outCanvasStyle||{},items:[{text:"Show Log",visibility:"hidden",onclick:function(){y&&y.messageLogger&&y.messageLogger.open();b.showItem(4);b.hideItem(3)}},{text:"Hide Log",visibility:"hidden",onclick:function(){y&&y.messageLogger&&y.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=[]),m=this.toolbar,c=(c=c[P])&&c.outCanvasStyle||this.outCanvasStyle||{},g,a=(a=e.isUpdateActive||a.eiMethods.isUpdateActive)&&a.call(e);f.push(g=Ea({chart:this,
basicStyle:c,items:[{text:"Stop Update",visibility:a?rb:"hidden",onclick:function(){g.hideItem(0);g.showItem(1);e.stopUpdate()}},{text:"Start Update",visibility:a?"hidden":rb,onclick:function(){g.hideItem(1);g.showItem(0);e.restartUpdate()}},{text:"Clear Chart",onclick:function(){e.clearChart()}},{text:"Show Log",visibility:"hidden",onclick:function(){y&&y.messageLogger&&y.messageLogger.open();g.showItem(4);g.hideItem(3)}},{text:"Hide Log",visibility:"hidden",onclick:function(){y&&y.messageLogger&&
y.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=m.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,m,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[P].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,m=a.length;f<m;f+=1){g=a[f];for(d in c)if(e=d.toLowerCase(),"function"===typeof p[e])p[e](c[d],g,b);Da(g.style)}else{for(d in c)if(e=d.toLowerCase(),"function"===typeof p[e])p[e](c[d],a,b);Da(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")),m=h(a.majortmalpha,100),g=h(h(a.majortmheight)*this.scaleFactor,this.majorTMHeight,6),p=h(a.tickvaluestep,a.tickvaluesstep,1),n=h(a.showtickmarks,1),k=n?h(a.connecttickmarks,this.connectTickMarks,1):0,l=h(a.showtickvalues,n),s=h(a.majortmthickness,1),u=h(b.getCleanValue(a.upperlimit)),b=h(b.getCleanValue(a.lowerlimit)),t=1==h(a.reversescale,0);this.isHorizontal||
(t=!t);p=1>p?1:p;e.scale={min:null,max:null,axisPosition:f,showTickMarks:n,showTickValues:l,showLimits:h(a.showlimits,l),adjustTM:Boolean(h(a.adjusttm,1)),majorTMNumber:h(a.majortmnumber,-1),majorTMColor:G(d,m),majorTMHeight:n?g:0,majorTMThickness:s,minorTMNumber:h(a.minortmnumber,this.minorTMNumber,4),minorTMColor:G(q(a.minortmcolor,d),h(a.minortmalpha,m)),minorTMHeight:n?h(h(a.minortmheight,a.minortmwidth)*this.scaleFactor,la(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:u,lowerLimit:b,upperLimitDisplay:B(a.upperlimitdisplay),lowerLimitDisplay:B(a.lowerlimitdisplay),reverseScale:t,connectorColor:G(q(a.connectorcolor,d),h(a.connectoralpha,m)),connectorThickness:k?h(a.connectorthickness,
s):0,majorTM:[],minorTM:[],trendPoint:[],labels:{style:V({},c)},tickValues:{style:V({},c)},limitValues:{style:V({},c)}}},configureAxis:function(a,e){var c=e.chart,d,b,f,m,g=this.colorManager,p,n,k,l,s,u=this.colorRangeGetter,t=(u=u&&u.colorArr)&&u.length;b=u&&u[0];d=u&&u[t-1];m=this.minDataValue;n=this.maxDataValue;u=a.scale;k=u.lowerLimit;l=u.upperLimit;var t=this.numberFormatter,r;if(a.series[0]&&($(m)&&$(n)?(k=k<=m?k:b&&b.minvalue,l=l>=n?l:d&&d.maxvalue):(k=h(k,b&&b.minvalue),l=h(l,d&&d.maxvalue)),
d=new Cb(k,l,!1,u,this.numberFormatter),d.calculateLimits(this.maxDataValue,this.minDataValue),d.calculateTicks(),u.majorTM=d.getMajorTM(),u.minorTM=d.getMinorTM(),b=u.min=d.min,d=u.max=d.max,e.trendpoints&&(f=e.trendpoints.point)&&0<(p=f.length))){u.trendPoint=[];for(n=0;n<p;n+=1)m=f[n],s=h(m.dashed,0)?Y(q(Math.max(m.dashlen,m.thickness),4),h(m.dashgap,3),h(m.thickness,1)):void 0,k=h(m.startvalue,m.value),l=h(m.endvalue,k),r=k!==l,k<=d&&k>=b&&l<=d&&l>=b&&(u.trendPoint.push({style:V(V(a.chart.trendPointStyle.style),
{}),startValue:k,endValue:l,tooltext:B(U(m.markertooltext)),displayValue:B(U(m.displayvalue),r?M:t.scale(k)),showOnTop:h(m.showontop,c.ticksbelowgauge,c.ticksbelowgraph,1),color:q(m.color,g.getColor("trendLightColor")),alpha:h(m.alpha,99),thickness:h(m.thickness,1),dashStyle:s,useMarker:h(m.usemarker,0),markerColor:G(q(m.markercolor,m.color,g.getColor("trendLightColor")),100),markerBorderColor:G(q(m.markerbordercolor,m.bordercolor,g.getColor("trendDarkColor")),100),markerRadius:h(h(m.markerradius)*
this.scaleFactor,5),markerToolText:oa(m.markertooltext),trendValueDistance:h(h(m.trendvaluedistance,c.trendvaluedistance)*this.scaleFactor,u.tickValueDistance),isZone:r,valueInside:h(m.valueinside,c.placevaluesinside,0),showBorder:h(m.showborder,1),borderColor:G(q(m.bordercolor,m.color,g.getColor("trendDarkColor")),h(m.borderalpha,m.alpha,100)),radius:h(h(m.radius)*this.scaleFactor),innerRadius:h(h(m.innerradius)*this.scaleFactor)}),qa(q(m.bordercolor,m.color,g.getColor("trendDarkColor"))));"lineargauge"===
this.defaultSeriesType&&y.stableSort&&y.stableSort(u.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),m=this.height-(b.marginTop+b.marginBottom);a=a.scale;var g=a.min,p=a.max,n=a.axisPosition,k=a.showLimits,l=a.showTickValues,s=a.tickMarkDistance,u=a.tickValueDistance,t=Math.max(a.majorTMHeight,a.minorTMHeight),r=a.placeTicksInside,K=a.placeValuesInside,E=a.reverseScale,q=0,J=0,x=1,
z,F=a.majorTM.length-1,C=2===n||4===n?!1:!0,D=6;e=C?m-c:f-e;c=0;var T=a.tickValues.style,pa=a.limitValues.style;a.majorTM[0]&&a.majorTM[1]&&(z=a.majorTM[1].value-a.majorTM[0].value);r||(q+=s+t);if(l||k)for(d.setStyle(pa),k=h(parseInt(pa.fontSize,10),10),l=h(parseInt(pa.lineHeight,10),12),l/=2,K||(q+=u),3===n&&(J=k),C?(m=e-q,f=f/(p-g)*z/2+6):(f=e-q,m=m/(p-g)*z+l),a.majorTM[0]&&(z=a.majorTM[0],z.isString?z.displayValue&&(g=d.getSmartText(z.displayValue,f,m),z.displayValue=g.text,z._oriText=g.oriText,
g.tooltext&&(z.originalText=g.tooltext),C?(c=Math.max(c,g.height),z.labelY=1===n&&!K||3===n&&K?k-g.height:J,D=Math.min(6,g.width/2)):(c=Math.max(c,g.width),z.labelY=k-(E?g.height-l:l),z.labelX=0)):x=0,C&&(E?(z.labelX=D,z.align=ab):(z.labelX=-D,z.align=Ja))),a.majorTM[F]&&(z=a.majorTM[F],z.isString?z.displayValue&&(g=d.getSmartText(z.displayValue,f,m),z.displayValue=g.text,z._oriText=g.oriText,g.tooltext&&(z.originalText=g.tooltext),C?(c=Math.max(c,g.height),z.labelY=1===n&&!K||3===n&&K?k-g.height:
J,D=Math.min(6,g.width/2)):(c=Math.max(c,g.width),z.labelY=k-(E?l:g.height-l),z.labelX=0)):(D=6,F+=1),C&&(E?(z.labelX=-D,z.align=Ja):(z.labelX=D,z.align=ab)));x<F;x++)0===x||x===F-1?(d.setStyle(pa),k=h(parseInt(pa.fontSize,10),10),l=h(parseInt(pa.lineHeight,10),12)):(d.setStyle(T),k=h(parseInt(T.fontSize,10),10),l=h(parseInt(T.lineHeight,10),12)),C&&(J=1===n&&K||3===n&&!K?k:0),z=a.majorTM[x],z.displayValue&&(z.labelX=h(z.labelX,0),C?(c=Math.max(c,l),z.labelY=J):(g=d.getOriSize(z.displayValue),c=Math.max(c,
g.width),z.labelY=k-g.height/2));d=q;K||(q+=c);q=Math.min(e,q);a._labelUsedSpace=K?c:q-d;switch(n){case 1:b.marginTop+=q;break;case 2:b.marginRight+=q;break;case 3:b.marginBottom+=q;break;case 4:b.marginLeft+=q}return q},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,m;if(this.isActive()&&d&&d.linearDataParser&&(m=d.linearDataParser(a,d.multisetRealtime))){f=this.getDataJSON();c.realtimeUpdate?c.realtimeUpdate(m):c.logic.realtimeUpdate?
c.logic.realtimeUpdate(m):b&&b.realtimeUpdate&&b.realtimeUpdate(m);e._rtLastUpdatedData=d.multisetRealtime?m:this.getDataJSON();ka.raiseEvent("realtimeUpdateComplete",{data:a,updateObject:m,prevData:f.values,source:"feedData",url:null},e.fcObj);try{ba.FC_ChartUpdated&&ba.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;ka.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),y.raiseEvent("chartCleared",{source:a},this,[this.id,a])))},getDataJSON:function(){var a=0,e,c,d=[],b=[],f=[],m=(e=this.jsVars)&&(e=e.hcObj)&&(e=e.options)&&(e=e.series)&&(e=e[0])&&e.data;for(e=m&&m.length?m.length:0;a<e;a+=1)c=m[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:w,colors:w,toolTexts:w,links:function(a){var b=[],c;a=a.replace(Pb,"_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:w},d=this.chartInstance,b,f,m,g,p,n={},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("="),m=f[1],f=f[0],f!==M&&void 0!==f&&void 0!==m&&(m!==M||e))switch(f=f.toLowerCase(),f){case "label":n.labels=m.split(",");break;case "vline":n.vlines=m.split(",");break;case "vlinelabel":n.vlineLabels=m.split(",");break;case "vlinecolor":n.vlineColors=m.split(",");break;case "vlinethickness":n.vlineThickness=m.split(",");break;case "vlinedashed":n.vlineDashed=m.split(",");break;case "value":n.values=m.split("|");
k=1;break;case "showlabel":n.showLabels=m.split(",");break;case "showvalue":n.valueVisibility=m.split("|");break;case "tooltext":n.toolTexts=m.split("|");break;case "link":n.links=m.split("|");break;case "color":n.colors=m.split("|");break;case "datastamp":n.dataStamp=m;break;case "stopupdate":n.pause="1"==m;break;case "clear":n.clear="1"==m;break;default:n[f]=m}if(e)for(n.values||(n.values=[]),g=n.values.length;g--;){for(f in c)n[f]?"function"===typeof c[f]?n[f][g]&&(n[f][g]=c[f].call(this,n[f][g])):
n[f][g]&&(n[f][g]=n[f][g].split(c[f])):n[f]=[];k=ya(n.values[g].length,k)}n.labels&&(k=ya(k,n.labels.length));n.dimension=k;n.pause&&d.stopUpdate&&d.stopUpdate("datastream");return n},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,m={},g=m.data=[],p,n;e.legend.enabled=!1;Tb(c)||(c="object"!==typeof c?[{value:c}]:[c]);p=0;for(n=this.multiValueGauge?c.length:1;p<n;p++)g.push(this.getPointStub(c[p],
p,e,a));e.series[0]=m;f&&this.pointValueWatcher&&h(d.includecolorrangeinlimits,this.includeColorRangeInLimits)&&(a=h(b[0].minvalue),$(a)&&this.pointValueWatcher(a),a=h(b[f-1].maxvalue),$(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=za(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),m=d-(b.marginTop+b.marginBottom),g=b.marginRight,p=b.marginLeft,n=b.marginTop,k=b.marginBottom,l=La(ya(.3*f,5),f),h=La(ya(.3*m,5),m),u,t,r=0,K;5>l&&10<c&&(l=f=5,K=g+p,g=b.marginRight=(c-f)*g/K,p=b.marginLeft=(c-f)*p/K);5>h&&10<d&&(h=m=5,K=n+k,n=b.marginRight=(d-m)*n/K,k=b.marginLeft=(d-m)*k/K);this.manageTitleSpace&&a.title.alignCaptionWithCanvas&&
(t=this.manageTitleSpace(a,e,l,h));this.placeTickMark&&(u=this.placeTickMark(a,l,h));this.manageTitleSpace&&!a.title.alignCaptionWithCanvas&&(t=this.manageTitleSpace(a,e,l,h));this.placeDataLabels&&(r=this.placeDataLabels(a,l,h,n,g,k,p,u));this.postDataLabelsPlacement&&this.postDataLabelsPlacement(a,l,h);this.fixCaptionAlignment&&this.fixCaptionAlignment(t,a,e,c,0,r)},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 m=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 n=b.style,k=h(parseInt(n.lineHeight,10),12);c=p-c;var p=e.valuePadding,l=0;(a=a.series[0].data[0])&&a.displayValue!==M&&(m.setStyle(n),a.isLabelString?(m=m.getSmartText(a.displayValue,g,c-p),a.displayValue=m.text,m.tooltext&&(a.originalText=m.tooltext)):
m=m.getOriSize(a.displayValue)," "===a.displayValue&&(m={height:k}),0<m.height&&(l=m.height+p),l>c&&(a=l-c,p=a<p?p-a:0,l=c),e.marginBottom+=l,b.align=Ma,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,m=a.max,g=a.axisPosition,p=a.limitValues.style,c=a.reverseScale,n,k=a.majorTM.length-1,g=2===g||4===g?!1:!0,l=h(parseInt(p.fontSize,10),10),s=
h(parseInt(p.lineHeight,10),12)/2;a.majorTM[0]&&a.majorTM[1]&&(n=a.majorTM[1].value-a.majorTM[0].value);g?(b=a._labelUsedSpace,d=d/(m-f)*n/2+6):(d=a._labelUsedSpace,b=b/(m-f)*n+s);e.setStyle(p);a.majorTM[0]&&a.majorTM[0].isString&&(n=a.majorTM[0],n.displayValue&&(f=e.getSmartText(n._oriText,d,b),n.displayValue=f.text,f.tooltext&&(n.originalText=f.tooltext),g?(f=Math.min(6,f.width/2),n.labelX=c?f:-f):n.labelY=l-(c?f.height-s:s)));a.majorTM[k]&&a.majorTM[k].isString&&(n=a.majorTM[k],n.displayValue&&
(f=e.getSmartText(n._oriText,d,b),n.displayValue=f.text,f.tooltext&&(n.originalText=f.tooltext),g?(f=Math.min(6,f.width/2),n.labelX=c?-f:f):n.labelY=l-(c?s:f.height-s)))},getPointStub:function(a,e,c,d,b){var f=c[P];e=this.colorManager;var m=this.numberFormatter;c=m.getCleanValue(a.value);var g=B(a.link),p=B(U(q(a.tooltext,f.tooltext))),f=B(U(a.displayvalue)),n=m.dataLabels(c),k,m=d.chart;d=h(m.showhovereffect);var l,s,u;this.showTooltip?void 0!==p?(b=$a(p,[1,2],{formattedValue:n},a,m),u=!0):b=null===
n?!1:void 0!==b?b+this.tooltipSepChar+n:n:b=!1;a=h(a.showvalue,this.showValues)?void 0!==f?f:B(n," "):M;this.pointValueWatcher&&this.pointValueWatcher(c);this.getPointColorObj&&(k=this.getPointColorObj(m,c));0!==d&&(d||m.gaugefillhovercolor||m.plotfillhovercolor||m.gaugefillhoveralpha||m.plotfillhoveralpha||0===m.gaugefillhoveralpha)&&(d=!0,f=q(m.gaugefillhovercolor,m.plotfillhovercolor,"{dark-10}"),m=h(m.gaugefillhoveralpha,m.plotfillhoveralpha),l={},s={},s.fluidColor=k.code,s.fluidAlpha=k.alpha,
f=(p=/\{/.test(f))?e.parseColorMix(B(k.code,M),f)[0]:f,l.fluidColor=f,l.fluidAlpha=h(m,k.alpha));return{y:c,displayValue:a,toolText:b,isLabelString:u,color:G(k.code,k.alpha),link:g,colorRange:k,doNotSlice:!0,rolloverProperties:{enabled:d,hoverAttr:l,outAttr:s}}},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:X},v.led);v("hled",{friendlyName:"Horizontal LED Gauge",defaultPlotShadow:1,standaloneInit:!0,creditLabel:X,isHorizontal:!0,rendererId:"led",connectTickMarks:1,realtimeEnabled:!0},
v.vled);v("bullet",{creditLabel:X,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:za(V({},ta),{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),m={value:e.target},g=h(b.targetthickness,3),p=q(b.targetcolor,c.getColor("plotFillColor")),n=B(b.targetalpha,100),k=G(p,n),l=h(b.targetfillpercent,60),s,u,t,r;0!==f&&(f||b.targethovercolor||b.targethoveralpha||0===b.targethoveralpha||b.targethoverthickness||0===b.targethoverthickness)&&(f=!0,t={},r={},u=h(b.targethoverthickness,g+2),g!==u&&(t["stroke-width"]=u,r["stroke-width"]=g),s=q(b.targethovercolor,"{dark-10}"),n=h(b.targethoveralpha,n),u&&(r.stroke=
k,u=/\{/.test(s),t.stroke=G(u?c.parseColorMix(p,s)[0]:s,n)),s=!!h(b.showhoveranimation,1));a=this.getPointStub(m,1,a,e);delete a.rolloverProperties;d.data.push(V(a,{borderColor:k,borderWidth:g,targetThickness:g,targetFillPercent:l,rolloverProperties:{enabled:f,hoverAttr:t,outAttr:r,showHoverAnimation:s}}))},getPointStub:function(a,e,c,d,b){var f=this.numberFormatter,m=this.colorManager,g=c[P];c=f.getCleanValue(a.value);var p=B(a.link),n=B(U(e?g.targettooltext:g.tooltext)),k=B(U(a.displayvalue)),l=
f.dataLabels(c),g=this.colorRangeGetter.getColorObj(c),s=d.chart,u=e?f.dataLabels(f.getCleanValue(d.value)):l,t=e?c:f.getCleanValue(d.target),r=e?l:f.dataLabels(t),K=q(s.plotfillcolor,m.getColor("plotFillColor"));e=h(s.plotasdot,0);var f=h(s.showhovereffect),E=h(s.showplotborder,0),A=E?h(s.plotborderthickness,1):0,J=h(s.plotfillpercent,e?25:40),x,z,F,C;d=this.showTooltip?void 0!==n?$a(n,[1,2,26,27],{formattedValue:u,targetValue:t,targetDataValue:r},d,s):null===l?!1:void 0!==b?b+this.tooltipSepChar+
l:l:M;a=h(a.showvalue,this.showValues)?void 0!==k?k:B(l," "):M;this.pointValueWatcher&&this.pointValueWatcher(c);/\{/.test(b=q(s.plotbordercolor,"{dark-20}"))&&(z=!0,b=m.parseColorMix(K,b).join());u=h(s.plotfillalpha,100);k=G(K,u);n=h(s.plotborderalpha,100);l=G(b,n);0!==f&&(f||s.plotfillhovercolor||s.plotfillhoveralpha||0===s.plotfillhoveralpha||s.showplotborderonhover||0===s.showplotborderonhover||s.plotborderhovercolor||s.plotborderhoverthickness||0===s.plotborderhoverthickness||s.plotborderhoveralpha||
0===s.plotborderhoveralpha)&&(f=!0,F={},C={},x=q(s.plotfillhovercolor,"{dark-10}"),u=h(s.plotfillhoveralpha,u),x=/\{/.test(x)?m.parseColorMix(K,x)[0]:x,F.fill=G(x,u),C.fill=k,K=h(s.showplotborderonhover),void 0===K&&(K=s.plotborderhoverthickness||s.plotborderhovercolor||s.plotborderhoveralpha?1:E),K=K?h(s.plotborderhoverthickness,A||1):0,A!==K&&(F["stroke-width"]=K,C["stroke-width"]=A),E=q(s.plotborderhovercolor,"{dark-10}"),n=h(s.plotborderhoveralpha,n),K&&(C.stroke=l,K=/\{/.test(E),F.stroke=G(K?
m.parseColorMix(z?x:b,E)[0]:E,n)),x=!!h(s.showhoveranimation,1));return{y:c,displayValue:a,toolText:d,plotAsDot:e,plotFillPercent:J,color:k,borderColor:l,borderWidth:A,link:p,colorRange:g,doNotSlice:!0,rolloverProperties:{enabled:f,hoverAttr:F,outAttr:C,showHoverAnimation:x}}}},v.linearscalegauge);v("vbullet",{friendlyName:"Vertical Bullet Gauge",creditLabel:X,defaultSeriesType:"bullet",gaugeType:4,ticksOnRight:0,rendererId:"bullet",standaloneInit:!0},v.bullet);v("hbullet",{friendlyName:"Horizontal Bullet Gauge",
creditLabel:X,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),m=a.plotOptions.series.dataLabels,g=m.style,p=h(parseInt(g.fontSize,10),10),b=b-e,n=d.valuePadding,k=0,l=a.series[0].data[0];l&&l.displayValue!==M&&(c.setStyle(g),l.isLabelString?(c=c.getSmartText(l.displayValue,b-n,f),l.displayValue=
c.text,c.tooltext&&(l.originalText=c.tooltext)):c=c.getOriSize(l.displayValue),0<c.height&&(k=c.width+n),k>b&&(k=b),d.marginRight+=k,m.align=Ja,m.x=0,m.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),m=h(b.captionpadding,2),b=h(h(b.captiononright,0)?b.canvasrightmargin:b.canvasleftmargin);$(b)&&(b-=m);c=h(b,f-c);return Ab(a,e,c,d,this.defaultCaptionPadding,this.width,this.height,
this)},fixCaptionAlignment:function(a,e,c,d,b,f){d=e.chart;var m=c.chart,g=h(m.canvasleftmargin),m=h(m.canvasrightmargin);d.marginRight+=a.right;d.marginLeft+=a.left;$(g)&&(d.spacingLeft=d.marginLeft=g,d.spacingLeft-=a.left+0-1);$(m)&&(d.spacingRight=d.marginRight=m,d.spacingRight-=a.right+0-1);Bb(e,c,this.width,b,f,this)}},v.bullet);v("lineargauge",{creditLabel:X,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:V(V({},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,m,g){d=a.scale;b=this.smartLabel;f=a.chart;m=this.width-
(f.marginRight+f.marginLeft);var p=this.height-(f.marginTop+f.marginBottom),n,k=a.plotOptions.series.dataLabels;n=k.style;var l=a.scale&&a.scale.labels&&a.scale.labels.style,s=h(parseInt(n.lineHeight,10),12);c=p-c;e=m-e;var u=f.valuePadding,t,r=0,K=0,q=0,A=0,J=0,x=0,z=a.series&&a.series[0]&&a.series[0].data||[];a=a.scale&&a.scale.trendPoint||[];var F=0,C=z.length,D;for(b.setStyle(n);F<C;F+=1)(D=z[F])&&D.displayValue!==M&&(t=u+D.radius*(3>=D.sides?.5:D.sides%2?1.1-1/D.sides:1),f.valuePadding=Math.max(f.valuePadding,
t),this.isHorizontal?(D.isLabelString?(n=b.getSmartText(D.displayValue,m,c-u),D.displayValue=n.text,n.tooltext&&(D.originalText=n.tooltext)):n=b.getOriSize(D.displayValue)," "===D.displayValue&&(n={height:s}),0<n.height&&(r=n.height+t),r>c&&(r=c),f.pointerOnOpp?(3===d.axisPosition&&(A=Math.max(g,A),r=Math.max(g,r)),K=Math.max(K,r)):(1===d.axisPosition&&(J=Math.max(g,J),r=Math.max(g,r)),q=Math.max(r,q))):(D.isLabelString?(n=b.getSmartText(D.displayValue,e-u,p),D.displayValue=n.text,n.tooltext&&(D.originalText=
n.tooltext)):n=b.getOriSize(D.displayValue),0<n.width&&(x=n.width+t),x>e&&(x=e),f.pointerOnOpp?2===d.axisPosition?(f.marginRight-=g,f.marginRight+=Math.max(g,x)):f.marginRight+=x:4===d.axisPosition?(f.marginLeft-=g,f.marginLeft+=Math.max(g,x)):f.marginLeft+=x),k.align=Ma);b.setStyle(l);F=0;for(C=a.length;F<C;F+=1)(D=a[F])&&D.displayValue!==M&&(t=u+.5*D.markerRadius,f.valuePadding=Math.max(t,f.valuePadding),this.isHorizontal&&(n=b.getOriSize(D.displayValue),0<n.height&&(r=n.height+t),r>c&&(r=c),D.showOnTop?
(1===d.axisPosition&&(J=Math.max(g,J),r=Math.max(g,r)),q=Math.max(q,r)):(3===d.axisPosition&&(A=Math.max(g,A),r=Math.max(g,r)),K=Math.max(r,K)),k.align=Ma));this.isHorizontal&&(f.marginBottom+=K-A,f.marginTop+=q-J,r=q+K-A-J);return r},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,m=this.colorManager,g=c.chart,p=c[P];c=f.getCleanValue(a.value);var n=B(a.link),k=B(U(q(a.tooltext,p.tooltext))),l=B(U(a.displayvalue)),s=f.dataLabels(c),f=this.colorRangeGetter.getColorObj(c);d=d.chart;var p=h(a.alpha,a.bgalpha,g.pointerBgAlpha),u=q(a.color,a.bgcolor,g.pointerBgColor),t=
G(u,p),r=h(a.showborder,d.showplotborder,1),K=h(a.borderalpha,g.pointerBorderAlpha),E=q(a.bordercolor,g.pointerBorderColor),A=G(E,K),J=r?h(a.borderthickness,g.pointerBorderThickness):0,x=h(a.radius,g.pointerRadius),z=h(a.showhovereffect,d.showhovereffect),F,C,D,T,pa,I,w,H=!1,N=!1,v,Aa,L;this.showTooltip?void 0!==k?(b=$a(k,[1,2],{formattedValue:s},a,d),N=!0):b=null===s?!1:void 0!==b?b+this.tooltipSepChar+s:s:b=M;h(a.showvalue,this.showValues)?void 0!==l?H=!0:l=B(s," "):l=M;k=h(a.sides,g.pointerSides);
3>k&&(k=3);this.pointValueWatcher&&this.pointValueWatcher(c);0!==z&&(z||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)&&(z=!0,s=q(a.bghovercolor,d.pointerbghovercolor,d.plotfillhovercolor,"{dark-10}"),D=h(a.bghoveralpha,d.pointerbghoveralpha,d.plotfillhoveralpha),F=h(a.showborderonhover,d.showborderonhover),void 0===F&&(F=a.borderhoverthickness||0===a.borderhoverthickness||a.borderhovercolor||a.borderhoveralpha||0===a.borderhoveralpha?1:r),r=q(a.borderhovercolor,
d.pointerborderhovercolor,"{dark-10}"),pa=h(a.borderhoveralpha,d.pointerborderhoveralpha),T=F?h(a.borderhoverthickness,d.pointerborderhoverthickness,J||1):0,C=h(a.hoverradius,d.pointerhoverradius,x+2),I=!!h(a.showhoveranimation,d.showhoveranimation,1),F={},Aa={},J!==T&&(F["stroke-width"]=T,Aa["stroke-width"]=J),Aa.fill=t,s=(w=/\{/.test(s))?m.parseColorMix(u,s)[0]:s,F.fill=G(s,h(D,p)),T&&(Aa.stroke=A,u=/\{/.test(r),F.stroke=G(u?m.parseColorMix(E,r)[0]:r,h(pa,K))),C&&(I?(v={r:C},L={r:x}):(F.r=C,Aa.r=
x)));return{y:c,displayValue:l,id:q(a.id,"pointer_"+e),editMode:h(a.editmode,d.editmode),isLabelString:H,isTooltextString:N,toolText:b,_tooltext:a.tooltext,plotFillPercent:q(d.plotfillpercent,40),bgalpha:p,color:t,borderAlpha:h(d.showplotborder,1)?g.pointerBorderAlpha:0,borderColor:A,borderWidth:J,radius:x,sides:k,link:n,colorRange:f,doNotSlice:!0,tooltipConstraint:this.tooltipConstraint,rolloverProperties:{enabled:z,hoverAttr:F,hoverAnimAttr:v,outAttr:Aa,outAnimAttr:L}}}},v.linearscalegauge);v("hlineargauge",
{friendlyName:"Horizontal Linear Gauge",creditLabel:X,defaultSeriesType:"lineargauge",rendererId:"hlinear",standaloneInit:!0,isHorizontal:!0},v.lineargauge);v("vlineargauge",{friendlyName:"Vertical Linear Gauge",creditLabel:X,defaultSeriesType:"lineargauge",connectTickMarks:0,standaloneInit:!0},v.lineargauge);v("thermometer",{friendlyName:"Thermometer Gauge",creditLabel:X,defaultSeriesType:"thermometer",rendererId:"thermometer",connectTickMarks:0,tickMarkDistance:0,standaloneInit:!0,realtimeEnabled:!0,
isDataLabelBold:!0,defaultPlotShadow:0,alignCaptionWithCanvas:0,defaultPaletteOptions:za(V({},ta),{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 m=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,Qa);0!==m&&(m||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.gaugeborderalpha,h(d.showgaugeborder,1)?40:0);c.gaugeBorderColor=G(q(d.gaugebordercolor,b.getColor("thmBorderColor")),f);c.gaugeBorderThickness=h(d.gaugeborderthickness,1);c.thmGlassColor=q(d.thmglasscolor,W(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),m=d-(b.marginTop+b.marginBottom),g=b.marginRight,p=b.marginLeft,n=b.marginTop,k=b.marginBottom;d=.3*f;var l=.3*m,s=b.thmOriginX,u=b.thmOriginY,t=b.thmBulbRadius,r=b.thmHeight,K=$(s),q=$(u),A=$(t),J=$(r),x=4===a.scale.axisPosition,z=0,F=0,C,D,T=0;a.title.alignWithCanvas||(m-=
T=this.manageTitleSpace(a,e,0,m/2));this.placeTickMark&&(f-=z=this.placeTickMark(a,2*h(t,4),l));A||(b.thmBulbRadius=t=Math.min(f/2,.13*h(r,m)),A=!0);A&&(D=.643*t,d=C=2*D,A=(2*t-C)/2,K?b.marginLeft=x?b.marginLeft+(F=s-D-z):b.marginLeft+(F=s-D):x?(b.marginLeft+=(c-p-g-A-C)/2-z/2,b.marginRight-=(c-p-g-A-C)/2-z/2,b.marginRight+=F=Math.min(t,f/2)-D):(b.marginLeft+=(c-p-g-A-C)/2-z/2,b.marginRight-=(c-p-g-A-C)/2-z/2,b.marginLeft+=F=Math.min(t,f/2)-D),f-=F);b.marginRight+=f-C;a.title.alignWithCanvas&&(m-=
T=this.manageTitleSpace(a,e,0,m/2));q&&(l=u-T+t);this.placeDataLabels&&(m-=this.placeDataLabels(a,d,l,n,g,k,p));J||(b.thmHeight=q?r=Math.max(u-T+t-D,3*t):r=Math.max(m-D,3*t));b.marginTop=q?b.marginTop+(u-T+t-r):b.marginTop+(m-r);e=1.766*t;b.marginBottom+=e;b.valuePadding+=e;b.thmHeight=b.plotHeight=r-e;this.postDataLabelsPlacement&&this.postDataLabelsPlacement(a,d,l)}},v.gaugebase);v("cylinder",{friendlyName:"Cylinder Gauge",creditLabel:X,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:za(V({},ta),{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,m=c-(b.marginRight+b.marginLeft),g=d-(b.marginTop+b.marginBottom),p=b.marginRight,n=b.marginLeft,k=b.marginTop,l=b.marginBottom,
s=.2*m,u=.3*g,t=h(f.cylyscale,30),r=this.scaleFactor,K=this.numberFormatter;a.title.alignWithCanvas||(g-=this.manageTitleSpace(a,e,m/2,g/2));this.placeTickMark&&(m-=this.placeTickMark(a,s,u));this.placeDataLabels&&(g-=this.placeDataLabels(a,s,u,k,p,l,n)+8,b.valuePadding+=8);this.postDataLabelsPlacement&&this.postDataLabelsPlacement(a,s,u);b.cylHeight=B(f.cylheight);if(50<t||0>t)t=30;b.cylYScale=t/=100;p=Math.max(La(m,1.2*g)/2,5);p=h(B(K.getCleanValue(f.cylradius,!0))*r,p);b.marginLeft=h(B(f.cyloriginx)*
r,b.marginLeft);b.marginLeft+=m/2-p;b.marginRight=c-(b.marginLeft+2*p);a.title.alignWithCanvas&&(g-=this.manageTitleSpace(a,e,m/2,g/2));a=g-p*t*2;K=h(B(K.getCleanValue(f.cylheight,!0))*r,a);t=b.yScaleRadius=p*t;a=b.cylinderTotalHeight=2*t+K;g=g-a+b.marginTop;b.marginTop=h(B(f.cyloriginy)*r-K,t+g);b.marginBottom=d-(b.marginTop+K);b.cylRadius=p;b.cylHeight=K;b.yScaleRadius=t}},v.gaugebase);v("angulargauge",{friendlyName:"Angular Gauge",standaloneInit:!0,drawAnnotations:!0,defaultSeriesType:"angulargauge",
creditLabel:X,rendererId:"angular",isAngular:!0,eiMethods:v.lineargauge.eiMethods,multiValueGauge:!0,realtimeEnabled:!0,defaultPaletteOptions:za(V({},ta),{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/cb;c.gaugeendangle=a.chart.gaugeEndAngle/cb;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=$(b),m=Ka?.001:.01,g=$(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?-m:m,c=b-d);c=360-c;b=360-b;if(360<b||360<c)b-=360,c-=360;a.chart.gaugeStartAngle=
b*cb;a.chart.gaugeEndAngle=c*cb;a.chart.gaugeScaleAngle=-d*cb},series:function(a,e){var c={data:[],colorByPoint:!0},d=a.chart,b=this.colorRangeGetter,f=(b=b&&b.colorArr)&&b.length,m=e[P],g=this.numberFormatter,p=this.colorManager,n,k,l,s=c.showValue=h(d.showvalue,d.showrealtimevalue,0),u=this.scaleFactor,t=0,r=a.dials&&a.dials.dial,K,E,A=h(d.showhovereffect),J,x,z,F,C,D,T,pa,I,w,H,N,v,Aa,L=h(d.editmode,0),y,Q,ib,O,Sa,Z,ga,tb,Eb,aa,na;y=t=h(B(d.pivotradius)*u,5);c.pivotRadius=y;Q=0;ib=r&&r.length;
aa=0;ib||(Q=-1,ib=0,r=[]);for(0!==A&&(A||d.dialborderhovercolor||d.dialborderhoveralpha||0===d.dialborderhoveralpha||d.dialborderhoverthickness||0===d.dialborderhoverthickness||d.dialbghovercolor||d.plotfillhovercolor||d.dialbghoveralpha||d.plotfillhoveralpha||0===d.dialbghoveralpha)&&(A=1);Q<ib;Q+=1){O=r[Q]||{};n=g.getCleanValue(O.value);this.pointValueWatcher&&this.pointValueWatcher(n);Sa=h(O.rearextension,0);t=Math.max(t,Sa*u);l=g.dataLabels(n);Z=B(l,M);tb=h(O.showvalue,s);Eb=h(B(O.valuey)*u);
ga=q(O.tooltext,O.hovertext)?!0:!1;tb&&!$(Eb)&&(aa+=1);k=(k=B(U(q(O.tooltext,O.hovertext,m.tooltext))))?$a(k,[1,2],{formattedValue:l},O,d):Z;v=q(O.color,O.bgcolor,p.getColor("dialColor"));C=h(O.alpha,O.bgalpha,100);Aa=S({FCcolor:{color:v,alpha:C,angle:90}});K=q(O.bordercolor,p.getColor("dialBorderColor"));na=h(O.borderalpha,100);l=G(K,na);E=h(O.borderthickness,1);pa=h(O.radius);I=h(O.basewidth);H=h(O.topwidth,0);w=h(O.baseradius,0);J=h(O.showhovereffect,A);if(0!==J&&(J||O.borderhovercolor||O.borderhoveralpha||
0===O.borderhoveralpha||O.borderhoverthickness||0===O.borderhoverthickness||O.bghovercolor||O.bghoveralpha||0===O.bghoveralpha)){J=!0;N={};T={};x=q(O.borderhovercolor,d.dialborderhovercolor,"{dark-10}");F=h(O.borderhoveralpha,d.dialborderhoveralpha,na);if(z=h(O.borderhoverthickness,d.dialborderhoverthickness,E))N.stroke=l,D=/\{/.test(x),T.stroke=G(D?p.parseColorMix(K,x)[0]:x,F);z!==E&&(T["stroke-width"]=z,N["stroke-width"]=E);K=q(O.bghovercolor,d.dialbghovercolor,d.plotfillhovercolor,"{dark-10}");
C=h(O.bghoveralpha,d.dialbghoveralpha,d.plotfillhoveralpha,C);N.fill=Aa;K=(x=/\{/.test(K))?p.parseColorMix(v,K).join():K;x={FCcolor:{color:K,alpha:C,angle:90}};T.fill=S(x)}c.data.push({rolloverProperties:{enabled:J,hasHoverSizeChange:void 0,hoverRadius:h(NaN*u),baseHoverWidth:h(NaN*u,1.6*y),topHoverWidth:h(NaN*u),rearHoverExtension:h(NaN*u),hoverFill:x,hoverAttr:T,outAttr:N},_tooltext:q(O.tooltext,O.hovertext),y:n,id:q(O.id,Q),color:Aa,showValue:tb,editMode:h(O.editmode,L),borderColor:l,shadowAlpha:na,
borderThickness:E,baseWidth:h(I*u,1.6*y),topWidth:h(H*u),baseRadius:h(w*u),rearExtension:Sa*u,valueX:h(B(O.valuex)*u),valueY:Eb,radius:h(pa*u),link:q(O.link,M),isLabelString:ga,toolText:k,displayValue:tb?q(Z," "):M,doNotSlice:!0})}c.displayValueCount=aa;c.compositPivotRadius=t;e.series[0]=c;f&&this.pointValueWatcher&&h(d.includecolorrangeinlimits,this.includeColorRangeInLimits)&&(c=h(b[0].minvalue),$(c)&&this.pointValueWatcher(c),c=h(b[f-1].maxvalue),$(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,Qa),f.length);d.pivotFillRatio=b.parseRatioList(q(c.pivotfillratio,bb),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=G(q(c.pivotbordercolor,b.getColor("pivotBorderColor")),1==d.showPivotBorder?q(c.pivotborderalpha,Qa):bb);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,m=a.scale,g=a.series[0],p=g.displayValueCount,n=m.tickValues.style,k=h(parseInt(n.lineHeight,10),12),l=h(parseInt(n.fontSize,10),10),s=.8*l,u=.1*k,t=Ka?0:.1*k,r=h(parseInt(a.plotOptions.series.dataLabels.style.lineHeight,10),12),K=c-(b.marginRight+b.marginLeft),q=d-(b.marginTop+b.marginBottom),A=this.scaleFactor,J=g.compositPivotRadius,x,z,F=b.gaugeStartAngle,C=b.gaugeEndAngle,
D,T=p*r+2+g.pivotRadius,pa=0,I=g.valueBelowPivot,w,H,N,v,Aa,L,y,Q,G,O,M,Z,ga,S,P,aa,na,da,ra,ja,V,W,U,R,fa,ba,Y,va,X,ea,ha,ca,ma,la,oa,qa,ta;D=/^\d+\%$/.test(f.gaugeinnerradius)?parseInt(f.gaugeinnerradius,10)/100:.7;q-=this.titleSpaceManager(a,e,K,q/2);I||(pa=T,T=0);g.gaugeOuterRadius=h(Math.abs(B(f.gaugeouterradius)*A));g.gaugeInnerRadius=h(Math.abs(B(f.gaugeinnerradius)*A),g.gaugeOuterRadius*D);var sa=b.gaugeStartAngle,ya=b.gaugeEndAngle,Oa=q,Ea=g.gaugeOuterRadius,Va=h(B(f.gaugeoriginx)*A-b.marginLeft),
Ca=h(B(f.gaugeoriginy)*A-b.marginTop),ka=Math.max(J,l),ua=T,wa=pa,Ha=$(Ea),Ia=$(Va),La=$(Ca),Da=2*Math.PI,xa=Math.PI,za=Math.PI/2,Ga=xa+za,Na,Qa=Va,$a=Ca,Ra,gb,Ta,Fa,Wa,Ya=!1,Za,bb,db,fb,Xa,Ua,eb,Ba,Pa,hb,jb=sa%Da;0>jb&&(jb+=Da);(ka=ka||0)&&ka<K/2&&ka<Oa/2&&(Ya=!0);ua>Oa/2&&(ua=Oa/2);wa>Oa/2&&(wa=Oa/2);Za=Math.cos(sa);bb=Math.sin(sa);db=Math.cos(ya);fb=Math.sin(ya);gb=Math.min(Za,db,0);Fa=Math.max(Za,db,0);Ta=Math.min(bb,fb,0);Wa=Math.max(bb,fb,0);if(!Ha||!Ia||!La){hb=ya-sa;Ua=jb+hb;if(Ua>Da||0>Ua)Fa=
1;if(0<hb){if(jb<za&&Ua>za||Ua>Da+za)Wa=1;if(jb<xa&&Ua>xa||Ua>Da+xa)gb=-1;if(jb<Ga&&Ua>Ga||Ua>Da+Ga)Ta=-1}else{if(jb>za&&Ua<za||Ua<-Ga)Wa=1;if(jb>xa&&Ua<xa||Ua<-xa)gb=-1;if(jb>Ga&&Ua<Ga||Ua<-za)Ta=-1}Ia?Ha||(Ba=K-Va,Pa=-Va,Na=gb?Math.min(Ba/Fa,Pa/gb):Ba/Fa):(eb=Fa-gb,Xa=K/eb,Va=-Xa*gb,Na=Xa,Ya&&(K-Va<ka?(Va=K-ka,Ba=K-Va,Pa=-Va,Na=gb?Math.min(Ba/Fa,Pa/gb):Ba/Fa):Va<ka&&(Va=ka,Ba=K-Va,Pa=-Va,Na=gb?Math.min(Ba/Fa,Pa/gb):Ba/Fa)),Qa=Va);La?Ha||(Ba=Oa-Ca,Pa=-Ca,Na=Math.min(Na,Ta?Math.min(Ba/Wa,Pa/Ta):Ba/
Wa)):(eb=Wa-Ta,Xa=Oa/eb,Ca=-Xa*Ta,Ya&&(Oa-Ca<ka?(Ca=Oa-ka,Ba=Oa-Ca,Pa=-Ca,Na=Math.min(Na,Ta?Math.min(Ba/Wa,Pa/Ta):Ba/Wa)):Ca<ka&&(Ca=ka,Ba=Oa-Ca,Pa=-Ca,Na=Math.min(Na,Ta?Math.min(Ba/Wa,Pa/Ta):Ba/Wa))),Oa-Ca<ua?(Ca=Oa-ua,Ba=Oa-Ca,Pa=-Ca,Na=Math.min(Na,Ta?Math.min(Ba/Wa,Pa/Ta):Ba/Wa)):Ca<wa&&(Ca=wa,Ba=Oa-Ca,Pa=-Ca,Na=Math.min(Na,Ta?Math.min(Ba/Wa,Pa/Ta):Ba/Wa)),Na=Math.min(Na,Xa),$a=Ca);Ra=Na;0>=Ra&&(Ra=Math.min(K/2,Oa/2))}x=g.gaugeOriginX=Qa;z=g.gaugeOriginY=$a;w=m.majorTM;H=0;N=w.length;Aa=a.labels.smartLabel;
M=m.min;Z=m.max-m.min;na=K-x;da=q-z;ra=m.placeValuesInside;ja=Math.cos(89.98*cb);V=-ja;W=$(g.gaugeOuterRadius);U=m.tickValueDistance;R=m.showTickValues;fa=m.showLimits;ba=h(g.gaugeOuterRadius,Ra);Y=h(g.gaugeInnerRadius,ba*D);va=ba;X=.2*ba;oa=1.5*k;ta=(C-F)/Z;if(R||fa)for(ra?Y>U+k?ea=Y-U:(ea=Y,U=0):(va+=U,W||(X+=U)),Aa.setStyle(n);H<N;H+=1)if(O=w[H],qa=F+(O.value-M)*ta,ga=Math.cos(qa),S=Math.sin(qa),v=O.displayValue,L=Aa.getOriSize(v),y=L.width,Q=L.height,G=Q/2,0<y&&0<Q)if(O.x=0,ra)O.align=ga>ja?ab:
ga<V?Ja:Ma,O.isString&&(P=ea*ga,ha=Math.abs(P),ha<y&&(L=Aa.getSmartText(v,Math.max(ha,k),oa),O.displayValue=L.text,L.tooltext&&(O.originalText=L.tooltext),Q=L.height,G=Q/2)),ga>ja||ga<V?(O.y=l-G+t,O.y-=.4*Q*S):O.y=s-(0>S?0:Q-u);else if(O.align=ga>ja?Ja:ga<V?ab:Ma,P=va*ga,aa=va*S,W||(0<aa?(la=G+G*S,da<aa+la&&(aa=da-la,va=Math.max(aa/S,X))):0>aa&&(la=G-G*S,z<-aa+la&&(aa=la-z,va=Math.max(aa/S,X)))),ga>ja)P+y>na&&(W?O.isString&&(L=Aa.getSmartText(v,na-P,oa),O.displayValue=L.text,L.tooltext&&(O.originalText=
L.tooltext),Q=L.height,G=Q/2):(P=na-y,va=Math.max(P/ga,X),P=va*ga,O.isString&&P+y>na&&(L=Aa.getSmartText(v,na-P,oa),O.displayValue=L.text,L.tooltext&&(O.originalText=L.tooltext),Q=L.height,G=Q/2,y=L.width,P=na-y,va=Math.max(P/ga,X)))),O.y=l-G+t+.4*Q*S;else if(ga<V)y-P>x&&(W?O.isString&&(L=Aa.getSmartText(v,x+P,oa),O.displayValue=L.text,L.tooltext&&(O.originalText=L.tooltext),Q=L.height,G=Q/2):(P=y-x,va=Math.max(P/ga,X),P=va*ga,O.isString&&y-P>x&&(L=Aa.getSmartText(v,x+P,oa),O.displayValue=L.text,
L.tooltext&&(O.originalText=L.tooltext),y=L.width,Q=L.height,G=Q/2,P=y-x,va=Math.max(P/ga,X)))),O.y=l-G+t+.4*Q*S;else{0<S?(ca=da,ma=Q+aa):(ca=z,ma=Q-aa);if(!W){if(ma>ca&&(va=Math.max(ca-Q,X),ma=Q+va),O.isString&&ma>ca||y>K)L=Aa.getSmartText(v,K,Math.max(ca-X,k)),O.displayValue=L.text,L.tooltext&&(O.originalText=L.tooltext),Q=L.height,va=Math.max(ca-Q,X)}else if(O.isString&&ma>ca||y>K)L=Aa.getSmartText(v,K,Math.max(Q-ma+ca,k)),O.displayValue=L.text,L.tooltext&&(O.originalText=L.tooltext),Q=L.height;
O.y=s-(0<S?0:Q-u)}W||(g.gaugeOuterRadius=ra?va:va-U,0>=g.gaugeOuterRadius&&(g.gaugeOuterRadius=Math.abs(X)));g.gaugeInnerRadius=h(g.gaugeInnerRadius,g.gaugeOuterRadius*D)}},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:W(a,65)+w+W(a,75)+w+ea(a,65),alpha:e+w+e+w+e,ratio:"0,30,70",radialGradient:!0}}:G(a,e)},getPointStub:function(a,e,c,d,b){var f=c.chart,m=c[P];e=d.chart;c=this.numberFormatter;d=c.getCleanValue(a.value);var g=c.dataLabels(d);c=B(a.link);var p=B(U(q(a.tooltext,m.tooltext))),n=B(U(a.displayvalue)),m=this.colorRangeGetter.getColorObj(d),
k=f.useColorNameAsValue=h(e.usecolornameasvalue,0),l=m.colorObj||m.prevObj||m.nextObj||{},s=this.colorManager,u=U(q(l.label,l.name)),t=q(e.gaugefillalpha,l.alpha,Qa),r=q(l.bordercolor,e.gaugebordercolor,ea(l.code,70)),K=h(l.borderalpha,e.gaugeborderalpha,"90")*t/100,E=h(e.showgaugeborder,0),A=E?h(e.gaugeborderthickness,1):0,J=f.is3D=h(e.is3d,1),x=this.getPointColor(l.code,t,J),z=h(e.showhovereffect),F,C,D,T,pa,I,w,H,N;m.isOnMeetPoint&&(l=m.nextObj);f.gaugeFillAlpha=t;r=(H=/\{/.test(r))?s.parseColorMix(q(l.bordercolor,
l.code),r)[0]:r;f=G(r,K);0!==z&&(z||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)&&(z=!0,F=q(e.gaugefillhovercolor,e.plotfillhovercolor,"{dark-10}"),C=h(e.gaugefillhoveralpha,e.plotfillhoveralpha),D=
h(e.showgaugeborderonhover),void 0===D&&(D=e.gaugeborderhovercolor||e.gaugeborderhoveralpha||0===e.gaugeborderhoveralpha||e.gaugeborderhoverthickness||0===e.gaugeborderhoverthickness?1:E),E=q(e.gaugeborderhovercolor,"{dark-10}"),pa=h(e.gaugeborderhoveralpha),T=D?h(e.gaugeborderhoverthickness,A||1):0,J=!!h(e.is3donhover,J),h(e.showhoveranimation,1),D={},N={},A!==T&&(D["stroke-width"]=T,N["stroke-width"]=A),N.fill=S(x),F=(w=/\{/.test(F))?s.parseColorMix(l.code,F)[0]:q(F,l.code),D.fill=S(this.getPointColor(F,
h(C,t),J)),T&&(N.stroke=f,l=/\{/.test(E),D.stroke=G(l?s.parseColorMix(H?F:r,E)[0]:E,h(pa,K))));this.showTooltip?void 0!==p?(a=$a(p,[1,2],{formattedValue:g},a,e),I=!0):a=k?u:null===g?!1:void 0!==b?b+this.tooltipSepChar+g:g:a=!1;b=void 0!==n?n:k?u:g;this.pointValueWatcher&&this.pointValueWatcher(d);return{y:d,displayValue:b,toolText:a,isLabelString:I,colorName:u,color:x,borderWidth:A,borderColor:f,colorRange:m,link:c,doNotSlice:!0,rolloverProperties:{enabled:z,hoverAttr:D,hoverAnimAttr:void 0,outAttr:N}}},
spaceManager:function(a,e,c,d){var b=this.smartLabel,f=a.series[0],m=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 n=f.marginLeft,k=f.marginTop,l=h(g.valuepadding,4),s=f.useColorNameAsValue,u,t=0,r;this.showValues?(m.y=B(m.y,a.scale.min),m.displayValue=B(m.displayValue,this.numberFormatter.dataLabels(a.scale.min))):m.displayValue=M;r=m.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,u=Math.sqrt(ma(2*a,2)/2),b=b.getSmartText(r,u,u)):(u=(g?d-2*f.gaugeRadius*p:.7*d)-l,b=b.getSmartText(r,c,u),t=b.height+l,a=Math.min(c,d-t)/2);s&&(m.displayValue=b.text,b.tooltext&&(m.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?n+c/2:f.gaugeOriginX*p;p=-1===f.gaugeOriginY?k+(d-t)/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(){V(this.dataObj.chart,{bgcolor:this.dataObj.chart.bgcolor||"#ffffff",bgalpha:this.dataObj.chart.bgalpha||"100"});return this.base.chart.apply(this,arguments)},series:function(){V(this.hcJSON,{legend:{enabled:!1},chart:{plotBackgroundColor:xa,plotBorderColor:xa},series:[{data:[]}]})},spaceManager:function(){},creditLabel:X},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:za(V({},ta),{paletteColors:y.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=G(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===bb?ob: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(/,+?$/,M);if(1===b.highlight){a=b.color.split(/\s{0,},\s{0,}/);e=a.length;for(c=0;c<e;c+=1)a[c]=W(a[c],70);b.color=a.join(",")}f={color:b.color,alpha:b.alpha,borderColor:G(b.borderColor,b.borderAlpha),borderWidth:b.borderThickness}}return{enabled:d,options:b,rolloverOptions:f}},point:function(a,e,c,
d,b){a=b[P];var f=0,m=M,g=[],p=q(d.plotborderthickness,Fb),n=!0,k=!1,l=M,s=b.chart,u=this.isPyramid,t=h(d.showpercentintooltip,1),r=h(d.showlabels,1),K=h(d.showvalues,1),E=h(d.showpercentvalues,d.showpercentagevalues,0),A=q(d.tooltipsepchar,d.hovercapsepchar,Nb),J=q(d.labelsepchar,A),x=q(d.plotbordercolor,d.piebordercolor),z=this.smartLabel,F=this.numberFormatter,C=c.length,D,T=this.colorManager,s=s.issliced=h(d.issliced,0),pa=0,I=h(d.showvalueinlegend,0),Yb=h(d.showlabelinlegend,1),H=h(d.valuebeforelabelinlegend,
0),N=h(d.showvalueaspercentinlegend,1),v=q(d.legendsepchar,", "),Aa=b.plotOptions.series.dataLabels.style,L={apply:d.showshadow==Fb,opacity:1},ia,Q,ib,O,S,Z,ga,V,X,aa,na,da,ra,ja,R;e.isPyramid=u;ra=e.streamlinedData=h(d.streamlineddata,1);e.is2d=h(d.is2d,0);e.isHollow=h(d.ishollow,ra?1:0);na=h(d.percentofprevious,0);aa=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<=aa&&40>=
aa?aa/200:.2;r||K||(b.plotOptions.series.dataLabels.enabled=!1,!1===b.tooltip.enabled&&(n=!1));e.useSameSlantAngle=h(d.usesameslantangle,ra?0:1);for(b=0;b<C;b+=1)ia=c[b],c[b].vline||(ia.cleanValue=aa=F.getCleanValue(ia.value,!0),null!==aa&&(k=!0,R=R||aa,g.push(ia),f+=aa,R=Math.max(R,aa)));if(k){e.valueSum=f;c=F.dataLabels(f);C=g.length;!u&&ra&&g.sort(function(a,b){return b.cleanValue-a.cleanValue});u||ra||e.data.push({showInLegend:!1,y:f,name:"",shadow:L,smartTextObj:D,color:Q,alpha:ib,borderColor:G(O,
S),borderWidth:p,link:B(ia.link),style:y.parsexAxisStyles(ia,{},d,Aa,Q),displayValue:M,doNotSlice:0===h(d.enableslicing,1)});for(b=0;b<g.length;b+=1){ia=g[b];k=ia.cleanValue;da=b?g[b-1].value:k;C=U(q(ia.label,ia.name,M));D=z.getOriSize(C);Q=b&&!u&&ra?b-1:b;Q=q(ia.color,T.getPlotColor(Q));ib=q(ia.alpha,d.plotfillalpha,Qa);O=q(ia.bordercolor,x,W(Q,25)).split(w)[0];S=1!=d.showplotborder?bb:q(ia.borderalpha,d.plotborderalpha,d.pieborderalpha,"80");L.opacity=Math.max(ib,S)/100;if(aa=h(ia.issliced,s))pa+=
1,a.preSliced=aa;ja=u||!ra?f:na?da:R;n&&(ga=F.percentValue(k/ja*100),V=F.dataLabels(k)||M,Z=1===r?C:M,m=1===h(ia.showvalue,K)?1===E?ga:V:M,m=(X=B(U(ia.displayvalue)))?X:m!==M&&Z!==M?Z+J+m:q(Z,m)||M,ra&&(l=na?ga:F.percentValue(k/da*100)),Z=B(U(q(ia.tooltext,a.tooltext))),void 0!==Z?Z=$a(Z,[1,2,3,7,14,24,25,37],{formattedValue:V,label:C,percentValue:na?F.percentValue(k/R*100):ga,sum:c,unformattedSum:f,percentOfPrevValue:l},ia,d):(Z=1===t?ga:V,Z=C!==M?C+A+Z:Z));da=Yb?C:M;I&&(ja=N?F.legendPercentValue(k/
ja*100):F.legendValue(k),da=H?ja+(da&&v+da):(da&&da+v)+ja);ja=this.pointHoverOptions(ia,d,{color:Q,alpha:ib,borderColor:O,borderAlpha:S,borderWidth:p});D={displayValue:m,style:y.parsexAxisStyles(ia,{},d,Aa,Q),categoryLabel:C,toolText:Z,showInLegend:da!==M,y:k,name:da,shadow:L,smartTextObj:D,color:Q,alpha:ib,borderColor:G(O,S),borderWidth:p,link:B(ia.link),isSliced:aa,doNotSlice:0===h(d.enableslicing,1),tooltipConstraint:this.tooltipConstraint,hoverEffects:ja.enabled&&ja.options,rolloverProperties:ja.enabled&&
ja.rolloverOptions};b||u||!ra||(D.showInLegend=!1);e.data.push(D)}f||(e.data=[]);e.labelMaxWidth=0;e.noOFSlicedElement=pa;return e}return null},spaceManager:function(a,e,c,d){var b=this.smartLabel,f=e.chart,m=a.chart,g=q(f.legendposition,mb).toLowerCase(),p=c-(m.marginRight+m.marginLeft);d-=m.marginTop+m.marginBottom;var n=this.isPyramid,k=0,l=0,s,u=a.series[0],t,r,K,E,A,J,x,z,F,C,D,T,pa,I,w,H,N,v,y,L,G;if(u){t=this._tempSnap={top3DSpace:0,bottom3DSpace:0,topLabelSpace:0,rightLabelSpace:0};a.legend.enabled&&
(g===ab?p-=this.placeLegendBlockRight(a,e,p/2,d,!0):d-=this.placeLegendBlockBottom(a,e,p,d/2,!0));g=.1*d;s=h(f.slicingdistance,g);g=s>2*g?0:s;f=Math.min(2*(d-g),p);m.marginTop+=g/2;m.marginBottom+=g/2;u.SlicingDistance=s;l=u.data;x=l.length;z=n?0:1;g=u.labelDistance+3;s=u.showLabelsAtCenter;T=Math.min(f,.3*p);E=p-T;pa=p-T-g;w=0;H=(r=l[0])&&l[0].y?l[0].y:1;N=u.valueSum?u.valueSum:1;v=n?0:1;y=.8/H;L=1==u.useSameSlantAngle;D=(G=!n&&!u.streamlinedData)?l[0].y-l[1].y:0;!n&&r&&l[0].displayValue&&(F=l[0],
r=a.plotOptions.series.dataLabels.style,I=h(Gb(parseFloat(r.lineHeight)+r.borderPadding+r.borderThickness),10),b.setStyle(r),K=b.getSmartText(F.displayValue,p,I),F.displayValue=K.text,K.tooltext&&(F.originalText=K.tooltext),F.labelWidht=b.getOriSize(K.text).width,m.marginTop+=t.topLabelSpace=I+4);for(;z<x;z+=1)F=l[z],r=F.style,I=h(Gb(parseFloat(r.lineHeight)+r.borderPadding+r.borderThickness),10),b.setStyle(r),s?b.getSmartText(F.displayValue,p,I):(J=n?(r=D+F.y/2)?r/N:1:G?.2+y*D:F.y?L?F.y/H:Math.sqrt(F.y/
H):1,r=T*J,C=pa+(T-r)/2,K=b.getSmartText(F.displayValue,C,I),F.displayValue=K.text,K.tooltext&&(F.originalText=K.tooltext),w=Math.max(w,K.width),0<E&&(K=0<K.width?C-K.width:C+g,r=1/(J+1)*(r+2*K+T),E=Math.min(E,r-T)),D+=G?-(l[z+1]&&l[z+1].y||0):F.y);F&&(A=n?1:G?.2:F.y?L?F.y/H:Math.sqrt(F.y/H):1);E=T+E;E>f&&(E=f);D=G?l[0].y-l[1].y:0;if(!s)for(z=n?0:1,x=l.length;z<x;z+=1)F=l[z],J=n?(r=D+F.y/2)?r/N:1:G?.2+y*D:F.y?L?F.y/H:kb(F.y/H):1,r=E*J,C=pa+(T-r)/2,K=b.getSmartText(F.displayValue,C,I),k=ya(k,.5*r+
K.width+g),D+=G?-(l[z+1]&&l[z+1].y||0):F.y;0<w?(t.rightLabelSpace=p-E,l=k-(.5*c-m.marginRight),0<l&&(m.marginRight+=l,m.marginLeft-=l),m.marginRight+=.5*t.rightLabelSpace,m.marginLeft+=.5*t.rightLabelSpace,p-=a.title.alignWithCanvas?t.rightLabelSpace:0):g=0;u.labelDistance=u.connectorWidth=g;this.titleSpaceManager(a,e,p,d/2);(s||!w)&&f<p&&(m.marginLeft+=.5*(p-f-g),m.marginRight+=.5*(p-f-g));u.is2d||(m.marginTop+=t.top3DSpace=E*u.yScale*v/2,m.marginBottom+=t.bottom3DSpace=E*u.yScale*A/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:X},v.gaugebase);v("pyramid",{friendlyName:"Pyramid Chart",subTitleFontSizeExtender:0,drawAnnotations:!0,standaloneInit:!0,defaultSeriesType:"pyramid",defaultPlotShadow:1,useSortedData:!1,isPyramid:1,creditLabel:X,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:za(V({},ta),{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,m,g,p;if("sparkwinloss"==this.name&&(f=e.data||e.dataset&&e.dataset[0]&&e.dataset[0].data,
m={w:1,l:-1,d:.1},0<(g=f&&f.length)))for(;g;)g-=1,p=f[g],p.value=m[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=qa(q(b.opencolor,"0099FF"));m=d.closeColor=qa(q(b.closecolor,"0099FF"));d.highColor=qa(q(b.highcolor,"00CC00"));d.lowColor=qa(q(b.lowcolor,"CC0000"));d.openHoverColor=G(qa(q(b.openhovercolor,b.anchorhovercolor,b.plotfillhovercolor,W(f,70))),h(b.openhoveralpha,b.anchorhoveralpha,
b.plotfillhoveralpha,100));d.closeHoverColor=G(qa(q(b.closehovercolor,b.anchorhovercolor,b.plotfillhovercolor,W(m,70))),h(b.closehoveralpha,b.anchorhoveralpha,b.plotfillhoveralpha,100));d.highHoverColor=G(qa(q(b.highhovercolor,b.anchorhovercolor,b.plotfillhovercolor,W(d.highColor,70))),h(b.highhoveralpha,b.anchorhoveralpha,b.plotfillhoveralpha,100));d.lowHoverColor=G(qa(q(b.lowhovercolor,b.anchorhovercolor,b.plotfillhovercolor,W(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:V({},c)};Da(a.chart.openValue.style);a.chart.openValue.style.color=f;a.chart.closeValue={style:V({},c)};Da(a.chart.openValue.style);a.chart.closeValue.style.color=m;a.chart.highLowValue={style:V({},c)};this.parseStyles(a);0===this.showCanvas&&
(d.plotBackgroundColor=xa);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,bb)},spaceManager:function(a,e,c,d){var b=a[P],f=this.smartLabel||b.smartLabel,m=e.chart,g=a.series[0],p=a.chart,n=c-(p.marginRight+p.marginLeft),k=h(m.canvasleftmargin),l=h(m.canvasrightmargin),s=a.valuePadding=h(m.valuepadding,2),u=a.plotOptions.series.dataLabels.style,
t=parseInt(u.lineHeight,10),r=n,K=b=0,E,A;if(g){d=Ab(a,e,.7*n,d,void 0,c,d,this);r-=d.left+d.right;n=c-(p.marginRight+p.marginLeft);A=E=g=0;f.setStyle(u);$(p.openValue.label)&&(f.setStyle(p.openValue.style),t=h(parseInt(p.openValue.style.lineHeight,10),10),u=f.getSmartText(p.openValue.label,r,1.5*t),0<u.width&&(b=g=u.width+s,r-=g));$(p.closeValue.label)&&(f.setStyle(p.closeValue.style),t=h(parseInt(p.closeValue.style.lineHeight,10),10),u=f.getSmartText(p.closeValue.label,r,1.5*t),0<u.width&&(K=E=
u.width+s,r-=E));$(p.highLowValue.label)&&(f.setStyle(p.highLowValue.style),t=h(parseInt(p.highLowValue.style.lineHeight,10),10),f=f.getSmartText(p.highLowValue.label,r,1.5*t),0<f.width&&(K+=A=f.width+s));p.marginRight+=A+E;p.marginLeft+=g;$(k)?(p.spacingLeft=p.marginLeft=k,p.spacingLeft-=d.left+g):p.marginLeft+=d.left;$(l)?(p.spacingRight=p.marginRight=l,p.spacingRight-=d.right+A+E):p.marginRight+=d.right;this.xAxisMinMaxSetter(a,e,n);p=a.xAxis;l=p.min;n=p.max;k=h(m.periodlength,0);m=G(q(m.periodcolor,
this.colorManager.getColor("periodColor")),h(m.periodalpha,100));s=1;if(0<k)for(;l<=n;l+=k)s?(p.plotBands.push({color:m,from:l,to:Math.min(n,l+k),zIndex:1}),s=0):s=1;Bb(a,e,c,b,K,this)}}},Ob);v("sparkline",{friendlyName:"Spark Line Chart",standaloneInit:!0,defaultSeriesType:"line",rendererId:"sparkline",creditLabel:X,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],m=f&&a.series[0].data,g,p,n,k=this.highValue,l=this.lowValue,s=this.numberFormatter,u=c.openColor,t=c.closeColor,r=c.highColor,K=c.lowColor,E=c.openHoverColor,A=c.closeHoverColor,J=c.highHoverColor,x=c.lowHoverColor,z;z=qa(q(d.anchorcolor,b.getColor("plotFillColor")));var F=h(d.showopenanchor,d.drawanchors,d.showanchors,1),C=h(d.showcloseanchor,d.drawanchors,d.showanchors,1),D=h(d.showhighanchor,d.drawanchors,d.showanchors,1),T=h(d.showlowanchor,d.drawanchors,d.showanchors,
1),pa=h(d.anchoralpha,100),I,w=h(d.drawanchors,d.showanchors,0),H=w?h(d.anchoralpha,100):0,N,v,y=0,L=q(d.linecolor,b.getColor("plotFillColor")),B=h(d.linealpha,100),Q,P;if(0<(b=g=m&&m.length)){p=e.data||e.dataset&&e.dataset[0]&&e.dataset[0].data;f.color=G(L,B);Q=m[0]&&m[0].y||M;for(P=m[b-1]&&m[b-1].y||M;g;)g-=1,f=m[g],n=p[g],z=void 0,I=h(f.anchorbgalpha,pa),f.color=G(q(n.color,L),h(n.alpha,B)),f.marker.fillColor=G(q(f.anchorbgcolor,z),h(f.anchorbgalpha,H)),z=G(qa(q(d.anchorhovercolor,d.plotfillhovercolor,
W(L,70))),h(d.lowhoveralpha,d.anchorhoveralpha,d.plotfillhoveralpha,100)),h(d.anchorhoverradius,f.marker.radius),f.marker.enabled=!!w,f.y==l&&(z=q(f.anchorbgcolor,K),f.marker.fillColor=G(z,I),z=x,f.marker.enabled=!!T,v=s.dataLabels(f.y)),f.y==k&&(z=q(f.anchorbgcolor,r),f.marker.fillColor=G(z,I),z=J,f.marker.enabled=!!D,N=s.dataLabels(f.y)),void 0!==f.toolText&&(f.toolText=$a(f.toolText,[54,55,56,57,58,59,60,61],{openDataValue:s.dataLabels(Q),closeDataValue:s.dataLabels(P),highDataValue:s.dataLabels(k),
lowDataValue:s.dataLabels(l),openValue:Q,closeValue:P,highValue:k,lowValue:l},{},d)),h(n.showvalue,d.showvalue,d.showvalues,0)||(f.displayValue=M),$(f.y)&&(y=1),n=f.hoverEffects,f.marker.enabled&&n&&(n.anchorColor=z,n=f.rolloverProperties,n.radius=h(d.anchorhoverradius,f.marker.radius),n.lineWidth=0,n.lineColor=n.fillColor=z);f=m[0];f.marker.fillColor=G(q(f.anchorbgcolor,u),I);f.marker.enabled=!!F;n=f.hoverEffects;f.marker.enabled&&n&&(n.anchorColor=E,n=f.rolloverProperties,n.radius=h(d.anchorhoverradius,
f.marker.radius),n.lineWidth=0,n.lineColor=n.fillColor=E);u=s.dataLabels(f.y);f.y==l&&T&&(f.marker.fillColor=G(q(f.anchorbgcolor,K),I),f.marker.enabled=!!T);f.y==k&&D&&(f.marker.fillColor=G(q(f.anchorbgcolor,r),I),f.marker.enabled=!!D);f=m[b-1];f.marker.fillColor=G(q(f.anchorbgcolor,t),I);f.marker.enabled=!!C;n=f.hoverEffects;f.marker.enabled&&n&&(n.anchorColor=A,n=f.rolloverProperties,n.radius=h(d.anchorhoverradius,f.marker.radius),n.lineWidth=0,n.lineColor=n.fillColor=A);m=s.dataLabels(f.y);f.y==
l&&T&&(f.marker.fillColor=G(q(f.anchorbgcolor,K),I),f.marker.enabled=!!T);f.y==k&&D&&(f.marker.fillColor=G(q(f.anchorbgcolor,r),I),f.marker.enabled=!!D);c.openValue.label=c.closeValue.label=c.highLowValue.label=c.highLowValue.highLabel=void 0;y&&(c.openValue.label=h(d.showopenvalue,1)?u:M,c.closeValue.label=h(d.showclosevalue,1)?m:M,h(d.showhighlowvalue,1)&&(c.highLowValue.label="["+N+" | "+v+"]",c.highLowValue.highLabel=N,c.highLowValue.lowLabel=v))}}},v.sparkbase);v("sparkcolumn",{friendlyName:"Spark Column Chart",
standaloneInit:!0,rendererId:"cartesian",defaultSeriesType:"column",creditLabel:X,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,m,g,p,n=this.highValue,k=this.lowValue,l=this.numberFormatter,s=q(c.plotfillalpha,Qa),u=q(c.plotfillcolor,d.getColor("plotFillColor")),t=q(c.plotborderalpha,Qa),r=q(c.plotbordercolor),K,E=q(c.highcolor,"000000"),A=q(c.lowcolor,"000000"),J=q(c.highbordercolor,
r),x=q(c.lowbordercolor,r),z=h(c.showplotborder,0)?h(c.plotborderthickness,1):0,F,C,D,T,pa,I;if(0<(d=b&&b.length))for(m=e.data||e.dataset&&e.dataset[0]&&e.dataset[0].data;d;)d-=1,f=b[d],g=m[d],F=q(g.color,u),C=q(g.alpha,s),D=q(g.bordercolor,r),T=q(g.borderalpha,t),pa=q(g.ratio,c.plotfillratio),I=q(360-c.plotfillangle,90),f.y==n&&(F=q(g.color,E),D=q(g.bordercolor,J),p=f.hoverEffects)&&(p.color=q(g.hovercolor,c.highhovercolor,c.plotfillhovercolor,W(F,70)),p.borderColor=q(g.borderhovercolor,c.highborderhovercolor,
c.plotborderhovercolor,D),p.colorArr=p=this.getColumnColor(g,p.color,q(g.hoveralpha,c.highhoveralpha,c.plotfillhoveralpha,C),p.borderColor,T,pa,I,a.chart.useRoundEdges),K=f.rolloverProperties,K.color=p[0],K.borderColor=p[1]),f.y==k&&(F=q(g.color,A),D=q(g.bordercolor,x),p=f.hoverEffects)&&(p.color=q(g.hovercolor,c.lowhovercolor,c.plotfillhovercolor,W(F,70)),p.borderColor=q(g.borderhovercolor,c.lowborderhovercolor,c.plotborderhovercolor,D),p.colorArr=p=this.getColumnColor(g,f.hoverEffects.color,q(g.hoveralpha,
c.lowhoveralpha,c.plotfillhoveralpha,C),f.hoverEffects.borderColor,T,pa,I,a.chart.useRoundEdges),K=f.rolloverProperties,K.color=p[0],K.borderColor=p[1]),void 0!==f.toolText&&(f.toolText=$a(f.toolText,[56,57,60,61],{highValue:n,lowValue:k,highDataValue:l.dataLabels(n),lowDataValue:l.dataLabels(k)},{},c)),p=this.getColumnColor(g,F,C,D,T,pa,I,a.chart.useRoundEdges),f.color=p[0],f.borderColor=p[1],f.borderWidth=z,h(g.showvalue,c.showvalue,c.showvalues,0)||(f.displayValue=M)},getColumnColor:function(a,
e,c,d,b,f,m,g,p,n){var k;d=q(d,ea(e,60));k=e.split(w);a=c.split(w);d=d.split(w);b=b.split(w);n?p={FCcolor:{color:k[0],alpha:a[0]}}:g?(e=k[0],c=a[0],p={FCcolor:{color:ea(e,75)+w+W(e,25)+w+ea(e,80)+w+W(e,65)+w+ea(e,80),alpha:c+w+c+w+c+w+c+w+c,ratio:"0,10,13,57,20",angle:p?"-180":"0"}},d=[ea(e,70)]):(c=vb(c,k.length),p={FCcolor:{color:e,alpha:c,ratio:f,angle:p?180-m:m}});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:X,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,m=q(d.plotfillalpha,Qa),g=q(d.plotfillcolor,b.getColor("plotFillColor")),p=q(d.plotborderalpha,Qa),n=q(d.plotbordercolor),k=h(d.showplotborder,0)?h(d.plotborderthickness,1):0,l=q(d.wincolor,b.getColor("winColor")),s=q(d.losscolor,b.getColor("lossColor")),u=q(d.drawcolor,
b.getColor("drawColor")),b=q(d.scorelesscolor,b.getColor("scorelessColor")),t=d.winhovercolor,r=d.losshovercolor,K=d.drawhovercolor,E=d.scorelesshovercolor,A=M,J,x,z,F,C,D,T=0,pa=0,I=0;x=a.yAxis[0];var w,H,N,v,y,L;a.tooltip.enabled=!1;x.min=-1.1;x.max=1.1;if(0<(v=f&&f.length)){for(y=e.data||e.dataset&&e.dataset[0]&&e.dataset[0].data;v;){v-=1;w=f[v];L=y[v];switch(L.value){case 1:A=q(L.color,l,g);J=q(L.hovercolor,t,A);T+=1;break;case -1:A=q(L.color,s,g);J=q(L.hovercolor,r,A);pa+=1;break;case .1:A=q(L.color,
u,g),J=q(L.hovercolor,K,A),I+=1}1==L.scoreless&&(A=q(L.color,b,g),J=q(L.hovercolor,E,L.color,b,J));x=q(L.alpha,m);z=q(L.bordercolor,n);F=q(L.borderalpha,p);C=q(L.ratio,d.plotfillratio);D=q(360-d.plotfillangle,90);N=this.getColumnColor(L,A,x,z,F,C,D,a.chart.useRoundEdges);w.color=N[0];w.borderColor=N[1];w.borderWidth=k;h(L.showvalue,0)||(w.displayValue=M);if(H=w.hoverEffects)w=w.rolloverProperties,H.color=W(J,70),N=H.colorArr=this.getColumnColor(L,H.color,x,z,F,C,D,a.chart.useRoundEdges),w.color=N[0],
w.borderColor=N[1],H.borderThickness=k,w.borderWidth=k}1==h(d.showvalue,1)&&(c.closeValue.style=V({},a.plotOptions.series.dataLabels.style),c.closeValue.label=T+"-"+pa+(0<I?"-"+I:M))}}},v.sparkcolumn);fb={realtimeEnabled:!0,canvasPaddingModifiers:null,linearDataParser:v.gaugebase.linearDataParser,eiMethods:za({},v.gaugebase.eiMethods),decimals:2,prepareRealtimeValueText:function(){var a=this.hcJSON,e=this.hcJSON[P],c=e.rtLabel,d=a.chart.realtimeValueSeparator,b=new RegExp(d+"$","g");c&&c.label&&(e=
e.realtimeValues.join(d).replace(b,M),c.label.text=e,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),m=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[P];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=
m;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,m=g.length;f<m;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=V({},d.outCanvasStyle),e.fontWeight=b.realtimeValueFontBold?"bold":"normal",b.realtimeValueFontColor&&
(e.color=b.realtimeValueFontColor.replace(db,eb)),b.realtimeValueFontSize&&(e.fontSize=b.realtimeValueFontSize+hb),b.realtimeValueFont&&(e.fontFamily=b.realtimeValueFont),g=h(parseInt(e.fontSize,10),10),d.rtLabel={color:fa,alwaysVisible:!0,isTrend:!0,value:(d.x.catCount-1)/2,width:.01,label:{align:Ma,textAlign:Ma,rotation:0,textVAlign:Fa,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,m,g,p,n;for(a=0;a<d;a+=1)p=c[a],f=e.getCleanValue(p.minvalue),m=e.getCleanValue(p.maxvalue),g=q(p.action,""),p=q(p.param,""),null!==f&&null!==m&&""!==g&&(f>m&&(n=m,m=f,f=n),b.alert.push({minvalue:f,
maxvalue:m,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[P],b;c.push(b=Ea({chart:this,basicStyle:a&&a.outCanvasStyle||this.outCanvasStyle||{},items:[{text:"Show Log",visibility:"hidden",onclick:function(){y&&y.messageLogger&&y.messageLogger.open();b.showItem(4);b.hideItem(3)}},{text:"Hide Log",visibility:"hidden",onclick:function(){y&&y.messageLogger&&y.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=[]),m=this.toolbar,
c=(c=c[P])&&c.outCanvasStyle||this.outCanvasStyle||{},g,p=e.isUpdateActive||a.eiMethods.isUpdateActive,p=p&&p.call(e);f.push(g=Ea({chart:this,basicStyle:c,items:[{text:"Stop Update",visibility:p?rb:"hidden",onclick:function(){g.hideItem(0);g.showItem(1);e.stopUpdate()}},{text:"Start Update",visibility:p?"hidden":rb,onclick:function(){g.hideItem(1);g.showItem(0);e.restartUpdate()}},{text:"Clear Chart",onclick:function(){e.clearChart()}},{text:"Show Log",visibility:"hidden",onclick:function(){y&&y.messageLogger&&
y.messageLogger.open();g.showItem(4);g.hideItem(3)}},{text:"Hide Log",visibility:"hidden",onclick:function(){y&&y.messageLogger&&y.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=m.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,m=[],g=d[0],p=g&&g.RTValueArr,n=p&&p.length||0,k=(d=d[1])&&d.RTValueArr,l=k&&k.length||0,s=a&&a.length||0,u;c=h(c,-.5);for(u=0;u<s;u+=1)if(b=a[u],b.isGrid||b.isVline)if(f=b.value+=e,f<c||f===c&&b.isVline)a.splice(u,1),b.isGrid&&m.push(b),u-=1,s-=1;if(g&&p&&n)for(p.splice(0,-e),n=p.length,delete g.min,
delete g.max,u=0;u<n;u+=1)(a=p[u])&&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,u=0;u<l;u+=1)(a=k[u])&&void 0!==a.min&&(!1===d.min<a.min&&(d.min=a.min),!1===d.max>a.max&&(d.max=a.max));return m},configureAxis:function(a){var e=a[P],c=a.xAxis,d=e.x,b=e.axisGridManager,f=d.catCount,m=e.oriCatTmp,g=e[0],p=g&&g.RTValueArr,n=e[1],k=n&&n.RTValueArr,l=this.dataObj,s=l.chart||(l.chart={}),l=a.series,u=
l[0].data.length,s=this.numDisplaySets=h(s.numdisplaysets,ya(u,15)),t=c.plotLines,r=t&&t.length||0,q=[],E=this.chartInstance.jsVars._reflowData,A;E.hcJSON&&(A=E.hcJSON[P])&&(g.min=A[0]&&A[0].min,g.max=A[0]&&A[0].max,n.min=A[1]&&A[1].min,n.max=A[1]&&A[1].max);n=((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=s-u;if(0<g){for(;r--;)t[r].value+=
g;for(c.plotLines=[];g--;)q[g]={y:null},b.addXaxisCat(c,g,g," ",{},{},{}),p&&p.unshift(null),k&&k.unshift(null),m.unshift(null),n.unshift({label:" "});c.plotLines=c.plotLines.reverse().concat(t)}else g&&(this.shiftPlotLines(c.plotLines,g,-.5,e),m.splice(0,-g));for(g=l.length;g--;)c=l[g],e=c.data,c.data=q.concat(e.slice(-s));this.needsRedraw=0===f;d.catCount=s;return v.msareabase.configureAxis&&v.msareabase.configureAxis.apply(this,arguments)},postSeriesAddition:function(a,e,c,d,b){e=a[P];c=e.isBar;
d=a.chart.rotateValues&&!c?270:0;var f=e[0],m=f.RTValueArr,g=f&&f.stacking100Percent,p,n,k,l,h,u,t,r,q;if(this.isStacked&&m&&(e.showStackTotal||g))for(b=b||0,u=a.series,t=V({},a.plotOptions.series.dataLabels.style),r=parseFloat(t.fontSize),q=!f.stacking100Percent,t.color=a.plotOptions.series.dataLabels.color,f=m.length;b<f;b+=1)if(n=m[b])if(h=(n.n||0)+(n.p||0),e.showStackTotal&&(p=b,n=0>h?n.n:n.p,a.xAxis.plotLines.push({value:p,width:0,isVline:q,isTrend:!q,zIndex:4,_isStackSum:1,_catPosition:b,label:{align:Ma,
textAlign:270===d?0>h?ab:Ja:Ma,offsetScale:q?n:void 0,offsetScaleIndex:0,rotation:d,style:t,verticalAlign:Fa,y:c?0:0>h?270===d?4:r:-4,x:0,text:e.numberFormatter.yAxis(h)}})),g)for(n=0,p=u.length;n<p;n+=1)if(u[n].data){k=u[n].data[b];if(k.y||0===k.y)l=k.y/h*100,k.y=l,k.showPercentValues&&(k.displayValue=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[P];a=f[c||(c=0)];var m;a||(a=f[c]={});c=a.RTValueArr;c||(c=a.RTValueArr=[]);(f=c[b])||(f=c[b]={});d&&(0<=e?f.p?(m=f.p,e=f.p+=e):f.p=e:f.n?(m=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 m}},realtimeUpdate:function(a,e){var c=this.hcJSON,d=this.dataObj,b=d.chart,f="0"===b.allowclear?0:1,m=c[P],g=this.numberFormatter,p=m.x,n=p._labelY,k=p._labelX,l=p._yShipment,s=p._isStagger,u=p._rotation,t=
p._textAlign,r=p._adjustedPx,q=p._staggerLines,E=p._labelHeight,A,J=m.axisGridManager,x=p.catCount,z=this.renderer,F=this.chartInstance.jsVars,C=a.values,D=a.labels||[],T=a.showLabels||[],w=a.colors,I=a.toolTexts,v=a.links,H=c.xAxis,N="0"===d.chart.showlabels,y=c.chart.showRealtimeValue,G=d.categories,L=F._reflowData,ia=[],Q=h(m._startIndex,0),S=p.stepValue,p=a.dimension>x?x:a.dimension,O=x-p,ia=[],Sa=a.vlines,Z,ga,W,R,aa,na,da,ra,ja,X,$=new Date,ba,Y,fa,ca,ea,va;a.clear&&f&&this.realtimeUpdate({dimension:this.numDisplaySets,
values:[],labels:[]},0<a.dimension);if(a.dimension){c.plotOptions.series.animation=!1;Sa?(Z=a.vlineColors||[],ga=a.vlineLabels||[],W=a.vlineThickness||[],R=a.vlineDashed||[]):Sa=[];G||(G=d.categories=[]);G[0]?G[0].category||(G[0].category=[]):G[0]={category:[]};G=G[0].category;ia=this.shiftPlotLines(H.plotLines,-p,-.5,m);for(f=ia.length;f--;)(X=ia[f]).label&&(aa=X.label,aa.text="0"===T[f]||N?"":U(D[f]||M),A=O+f,X.value=A,na=x+f+Q,(A=0===na%S)?(aa.style=H.labels.style,aa.y=s?n+na/S%q*E:l,aa.x=k+(u?
r:0),aa.rotation=u,aa.textAlign=t):aa.style=H.steppedLabels.style,H.plotLines.push(V({},X)),G.shift(),G.push({label:aa.text})),"1"===Sa[f]&&J.addVline(H,{color:Z[f]&&decodeURIComponent(Z[f]),label:ga[f]&&decodeURIComponent(ga[f]),thickness:W[f]&&decodeURIComponent(W[f]),dashed:R[f]&&decodeURIComponent(R[f])},O+f,c);ia=[];m._startIndex=(p+Q)%(s?S*q:S);Q=c.series&&c.series.length;p&&m.oriCatTmp.splice(0,p);m._skipValueWatcher=!1;for(f=0;f<Q;f+=1){Z=c.series[f];W=C&&C[f]||[];R=w&&w[f]||[];S=v&&v[f]||
[];O=I&&I[f]||[];T=Z.yAxis||0;m._rtCounter||(m._rtCounter=1);!ia[f]&&(ia[f]=[]);J=ia[f];ga=Z.data;da=ga.length;N=da-p;for(G=0;N<da;N+=1,G+=1)Sa=decodeURIComponent(B(W[G],null)),ja=g.getCleanValue(Sa),aa=decodeURIComponent(D[G]||""),m.oriCatTmp[N]=aa,ga.shift(),Sa=Z._dataParser({value:Sa,label:aa,color:R&&R[G]&&decodeURIComponent(R[G]),link:S&&S[G]&&decodeURIComponent(S[G]),tooltext:O&&O[G]&&decodeURIComponent(O[G])},N,ja),Sa.y=ja,ga.push(Sa),J.push(Sa),Sa.previousY=this.pointValueWatcher(c,ja,T,this.isStacked,
N);y&&(m.realtimeValues[f]=g.dataLabels(ja,Z.yAxis))}m._rtCounter+=p;this.postSeriesAddition(c,void 0,void 0,void 0,da-p);y&&this.prepareRealtimeValueText();g=c.yAxis[0];C=m[0];I=h(this.isStacked?0:this.setAdaptiveYMin,b.setadaptiveymin,0);w=D=!I;v=(g.max-g.min)/4;if(m.isDual){if(C.max>g.max||C.min<g.min||(!w||0!==g.min)&&g.min!==m._userPMin&&C.min-g.min>v||(!D||0!==g.max)&&g.max!==m._userPMax&&g.max-C.max>v)F._forceReflow=!0,m._skipValueWatcher=!0;g=c.yAxis[1];C=m[1];w=D=!h(b.setadaptivesymin,I);
v=(g.max-g.min)/4;if(C.max>g.max||C.min<g.min||(!w||0!==g.min)&&g.min!==m._userSMin&&C.min-g.min>v||(!D||0!==g.max)&&g.max!==m._userSMax&&g.max-C.max>v)F._forceReflow=!0,m._skipValueWatcher=!0}else if(C.max>g.max||C.min<g.min||(!w||0!==g.min)&&g.min!==m._userMin&&C.min-g.min>v||(!D||0!==g.max)&&g.max!==m._userMax&&g.max-C.max>v)F._forceReflow=!0,m._skipValueWatcher=!0;ba=m[0]&&m[0].RTValueArr;Y=m[1]&&m[1].RTValueArr;F._forceReflow&&(g=c.yAxis[0],C=m[0],fa=m[0]&&m[0].min,ca=m[0]&&m[0].max,ea=m[1]&&
m[1].min,va=m[1]&&m[1].max,G=g.min,Q=g.max,v=h(m.numdivlines,b.numdivlines,this.numdivlines,4),y=b.adjustdiv!==bb,da=h(m._userMax,m._userPMax),ja=h(m._userMin,m._userPMin),f=h(b.showyaxisvalues,b.showyaxisvalue,1),J=h(b.showlimits,f),T=h(b.showdivlinevalue,b.showdivlinevalues,f),N=h(parseInt(b.yaxisvaluesstep,10),parseInt(b.yaxisvaluestep,10),1),N=1>N?1:N,this.axisMinMaxSetter(g,C,da,ja,D,w,v,y),g.plotLines=[],g.plotBands=[],g.labels.enabled=g.labels._enabled,g.gridLineWidth=g._gridLineWidth,g.alternateGridColor=
g._alternateGridColor,this.configurePlotLines(b,c,g,C,J,T,N,m.numberFormatter,!1),G===g.min&&Q===g.max&&(ra=!0),m.isDual?(da=m._userSMax,ja=m._userSMin,I=h(b.setadaptivesymin,I),w=D=!I,J=h(b.showsecondarylimits,J),T=h(b.showdivlinesecondaryvalue,f),g=c.yAxis[1],C=m[1],G=g.min,Q=g.max,this.axisMinMaxSetter(g,C,da,ja,D,w,v,y),g.plotLines=[],g.plotBands=[],g.labels.enabled=g.labels._enabled,g.gridLineWidth=g._gridLineWidth,g.alternateGridColor=g._alternateGridColor,this.configurePlotLines(b,c,g,C,J,
T,N,m.numberFormatter,!0),G===g.min&&Q===g.max&&ra&&(F._forceReflow=!1)):ra&&(F._forceReflow=!1),d.trendlines&&Za(d.trendlines,c.yAxis,m,m.isDual,this.isBar));L.hcJSON&&(b=L.hcJSON[P],delete L.hcJSON[P],V(c.series,L.hcJSON.series,!0),L.hcJSON[P]=b,b=null);V(L,{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=ba;this.hcJSON._FCconf[1].RTValueArr=
Y;if(b)for(a=0;a<d;a+=1)this.hcJSON.series[a].data=b[a].data},postHCJSONCreation:function(a){V(a,{_FCconf:{0:{min:fa,max:ca},1:{min:ea,max:va},_skipValueWatcher:!0,realtimeValues:m.realtimeValues,rtvHTMLWrapper:m.rtvHTMLWrapper}},!0)},hcJSON:{_FCconf:{_userMax:m._userMax,_userMin:m._userMin,_userPMax:m._userPMax,_userSMax:m._userSMax,_userPMin:m._userPMin,_userSMin:m._userSMin,_chartState:m._chartState,_rtCounter:m._rtCounter,_startIndex:m._startIndex,oriCatTmp:m.oriCatTmp,x:{catCount:x,_labelY:n,
_labelX:k,_yShipment:l,_isStagger:s,_rotation:u,_textAlign:t,_adjustedPx:r,_staggerLines:q,_labelHeight:E},0:{min:h(fa,m[0]&&m[0].min),max:h(ca,m[0]&&m[0].max)},1:{min:h(ea,m[1]&&m[1].min),max:h(va,m[1]&&m[1].max)}}}},!0);if(!e){F._forceReflow&&(F._forceReflow=!1,g=c.yAxis[0],n=g.plotBands.concat(g.plotLines),Ha(g,n),z.yAxis[0].realtimeUpdateY(g.min,g.max),m.isDual&&(g=c.yAxis[1],n=g.plotBands.concat(g.plotLines),Ha(g,n),z.yAxis[1].realtimeUpdateY(g.min,g.max)),this.containerElement.resizeTo());z.xAxis[0].realtimeUpdateX(p);
f=0;for(N=ia.length;f<N;f+=1)z.plots[f]&&z.plots[f].realtimeUpdate&&z.plots[f].realtimeUpdate(p,F._forceReflow);this.realtimeDrawingLatency=new Date-$}}},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-=1;for(d=a.length;d;)c=d-1,e=a[c],e.isTrend&&b.push(e),d-=1;return{trendLines:f,trendBands:b}}};za(fb.eiMethods,{clearChart:function(a){a=a&&a.toString&&a.toString();this.feedData("clear=1");y.raiseEvent("ChartCleared",
{source:a},this,[this.id,a])},getDataJSON:function(){return this.jsVars._rtLastUpdatedData||{values:[]}},getData:function(){var a=this.jsVars.hcObj.options,e=a[P].oriCatTmp,c,d=[],b,f,m,g;if(!a||!a.series)return d;a=a.series;b=[];for(m=a.length;m--;)for(c=a[m],b[c.index]=c.name,f=c.data,g=e.length;g--;)c=d[g]||(d[g]=[e[g]]),c[m+1]=f[g].y;b.unshift(null);d.unshift(b);return d}});v("realtimearea",za({friendlyName:"Realtime Data Streaming Area Chart",standaloneInit:!0,multisetRealtime:!0,defaultPlotShadow:1,
creditLabel:X,rendererId:"realtimecartesian"},fb),v.msareabase);v("realtimecolumn",za({friendlyName:"Realtime Data Streaming Column Chart",standaloneInit:!0,multisetRealtime:!0,creditLabel:X,rendererId:"realtimecartesian"},fb),v.mscolumn2dbase);v("realtimeline",za({friendlyName:"Realtime Data Streaming Line Chart",standaloneInit:!0,multisetRealtime:!0,creditLabel:X,rendererId:"realtimecartesian"},fb),v.mslinebase);v("realtimelinedy",za({friendlyName:"Realtime Data Streaming Dual Y-Axis Line Chart",
standaloneInit:!0,multisetRealtime:!0,isDual:!0,creditLabel:X,series:v.mscombibase,rendererId:"realtimecartesian"},fb),v.mslinebase);v("realtimestackedarea",{friendlyName:"Realtime Data Streaming Stacked Area Chart",isStacked:!0,showSum:0,areaAlpha:100,creditLabel:X},v.realtimearea);v("realtimestackedcolumn",{friendlyName:"Realtime Data Streaming Column Chart",isStacked:!0,creditLabel:X},v.realtimecolumn);Ib=function(a,e){return a.minvalue-e.minvalue};Ya.prototype={getColorObj:function(a){for(var e=
this.colorArr,c=0,d=e.length,b,f,m={};c<d;c+=1){m.index=c;b=e[c];f=e[c+1];if(a<b.minvalue)return m.nextObj=b,m;if(a>=b.minvalue&&a<=b.maxvalue)return m.colorObj=b,f&&a==f.minvalue&&(m.nextObj=f,m.isOnMeetPoint=!0),m;m.prevObj=b}m.index=c-1;return m},getColorRangeArr:function(a,e){var c,d=this.colorArr,b,f,m=[],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=V({},d[b]),g.minvalue!==c&&(g.minvalue=c),
m.push(g),p=g,c=g.maxvalue;p.maxvalue=e}return m}};Ya.prototype.constructor=Ya;Jb=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,n,k=this,l,s,u=!1,t=!1,r=this._3dAttr;Ra(b)&&$(d)&&(f=b,b={},b[f]=d);if(Ra(b))k=a[b]?k._3dAttr[b]:k._attr(b);else for(f in b)n=b[f],a[f]?("fluidFill"===f?(n&&n.linearGradient&&n.stops&&n.stops[0]&&(n=n.stops[0][1]),sb.test(n)?(s=new nb(n),l=s.get("hex"),s=100*s.get("a")):
n&&n.FCcolor?(l=n.FCcolor.color.split(w)[0],s=n.FCcolor.alpha.split(w)[0]):pb.test(n)&&(l=n.replace(db,eb)),r.fluidColor=q(l,r.fluidColor,"000000"),r.fluidAlpha=h(s,r.fluidAlpha,100),u=!0):"fluidColor"===f?(r.fluidColor=q(n,r.fluidColor,"000000"),u=!0):"fluidAlpha"===f?(r.fluidAlpha=h(n,r.fluidAlpha,100),u=!0):0<=n&&1>=n&&(r.fluidHRatio=n,t=!0),u&&(n=ea(r.fluidColor,r.is2D?80:70),k.fluid.attr({fill:G(n,r.fluidAlpha)}),k.fluidTop.attr({fill:G(n,r.fluidAlpha)}),k.topLight.attr({stroke:G(n,.4*r.fluidAlpha)}),
k.topLightBorder.attr({fill:S({FCcolor:{color:n+w+n,alpha:"40,0",ratio:"0,80",radialGradient:!0,cx:.5,cy:1,r:"70%"}})})),t&&(n=r.scaleY+r.h*(1-r.fluidHRatio),c?(k.fluid.animate({path:r.fluidPath.concat(["L",r.lx2,n,r.lx1,n,"Z"])},c,"easeIn"),k.fluidTop.animate({path:e.concat(["M",r.lx1,n,"A",r.lCylWidthHalf,1,0,1,0,r.lx2,n,"Z"])},c,"easeIn")):(k.fluid.attr({path:r.fluidPath.concat(["L",r.lx2,n,r.lx1,n,"Z"])}),k.fluidTop.attr({path:e.concat(["M",r.lx1,n,"A",r.lCylWidthHalf,1,0,1,0,r.lx2,n,"Z"])})))):
this._attr(f,n);return k},f=function(a,b,c){this.border.shadow(a,b,c)};return function(a,c,p,n,k,l,s,u,t,r,K,E,A){var J,x,z,F,C,D,T,v,I,y,H,N,B,M,L,ia;lb(a)&&(c=a.y,p=a.r,n=a.h,l=a.renderer,s=a.fluidHRatio,u=a.conColor,t=a.conBorderColor,r=a.conBorderThickness,K=a.fluidColor,E=a.fluidAlpha,A=a.is2D,a=a.x);0<=s&&1>=s||(s=0);u=q(u,"FFFFFF");t=q(t,"#000000");r=h(r,1);K=q(K,"000000");E=h(E,100);ia={x:a,y:c,r:p,h:n,renderer:l,fluidHRatio:s,conColor:u,conBorderColor:t,conBorderThickness:r,fluidStroke:3,
fluidColor:K,is2D:A,fluidAlpha:E};k._attr=k.attr;k.attr=b;k._setAnimate=d;k.shadow=f;k._3dAttr=ia;J=ea(u,80);K=ea(K,A?80:70);u=W(u,80);x=.643*p;z=.33*x;F=x-z;C=a-x;D=a+x;T=a-F;F=a+F;v=c+x;I=v+n;y=I+.766*p;H=c+z;n=v+n*(1-s);s=.9*x;N=p+s-x;B=a-s;M=a+s;y-=Math.abs(Math.sqrt(N*N-s*s));L=parseInt(a-.6*x,10);x=a+x/2;ia.fluidPath=["M",B,y,"A",N,N,0,1,0,M,y];ia.scaleY=v;ia.lx1=B;ia.lx2=M;ia.lCylWidthHalf=s;k.topLight=l.path(["M",B,v,"L",M,v],k).attr({"stroke-width":1,stroke:G(K,40)});k.topLightBorder=l.path(["M",
B,v,"L",M,v,M,H,B,H,"Z"],k).attr({"stroke-width":0,fill:S({FCcolor:{color:K+w+K,alpha:A?"0,0":"40,0",ratio:"0,80",radialGradient:!0,cx:.5,cy:1,r:"70%"}})});k.fluid=l.path(ia.fluidPath.concat(["L",M,n,B,n,"Z"]),k).attr({"stroke-width":0,fill:G(K,E)});k.fluidTop=l.path(e.concat(["M",B,n,"A",s,1,0,1,0,M,n,"Z"]),k).attr({"stroke-width":0,fill:G(K,E)});k.border=l.path(e.concat(["M",T,c,"A",z,z,0,0,0,C,H],["L",C,I],["A",p,p,0,1,0,D,I],["L",D,H],["A",z,z,0,0,0,F,c,"Z"]),k).attr({"stroke-width":r,stroke:t});
A||(k.bulbBorderLight=l.path(e.concat(["M",C,I,"A",p,p,0,0,1,D,I],["M",D,I,"A",p,p,0,0,0,C,I],["M",C,I,"A",p,p,0,1,0,D,I,"Z"]),k).attr({"stroke-width":0,stroke:"#00FF00",fill:S({FCcolor:{cx:.5,cy:.5,r:"50%",color:J+w+u,alpha:"0,50",ratio:"78,30",radialGradient:!0}})}),k.bulbTopLight=l.path(e.concat(["M",C,I,"A",p,p,0,0,1,D,I],["A",p,p,0,0,0,C,I],["A",p,p,0,1,0,D,I,"Z"]),k).attr({"stroke-width":0,fill:S({FCcolor:{cx:.3,cy:.1,r:"100%",color:u+w+J,alpha:"60,0",ratio:"0,30",radialGradient:!0}})}),k.bulbCenterLight=
l.path(e.concat(["M",C,I,"A",p,p,0,1,0,D,I],["A",p,p,0,0,0,C,I],["A",p,p,0,0,1,D,I,"Z"]),k).attr({"stroke-width":0,fill:S({FCcolor:{cx:.25,cy:.7,r:"100%",color:u+w+J,alpha:"80,0",ratio:"0,70",radialGradient:!0}})}),k.cylLeftLight=l.path(e.concat(["M",a,c,"L",T,c],["A",z,z,0,0,0,C,H],["L",C,I,a,I,"Z"]),k).attr({"stroke-width":0,fill:S({FCcolor:{color:u+w+J,alpha:"50,0",ratio:"0,80",angle:0}})}),k.cylRightLight=l.path(e.concat(["M",C,c,"L",F,c],["A",z,z,0,0,1,D,H],["L",D,I,C,I,"Z"]),k).attr({"stroke-width":0,
fill:S({FCcolor:{color:u+w+J+w+J,alpha:"50,0,0",ratio:"0,40,60",angle:180}})}),k.cylLeftLight1=l.path(["M",L,H,"L",C,H,C,I,L,I,"Z"],k).attr({"stroke-width":0,fill:S({FCcolor:{color:u+w+J,alpha:"60,0",ratio:"0,100",angle:180}})}),k.cylRightLight1=l.path(["M",L-.01,H,"L",x,H,x,I,L-.01,I,"Z"],k).attr({"stroke-width":0,fill:S({FCcolor:{color:u+w+J,alpha:"60,0",ratio:"0,100",angle:0}})}));return k}}();Kb=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,n,k=this,l,s,u=!1,t=!1,r=this._3dAttr,K,E,A,J,x,z,F,C;Ra(b)&&$(d)&&(f=b,b={},b[f]=d);if(Ra(b))k=a[b]?k._3dAttr[b]:k._attr(b);else for(f in b)n=b[f],a[f]?("fill"===f?(n&&n.linearGradient&&n.stops&&n.stops[0]&&(n=n.stops[0][1]),sb.test(n)?(s=new nb(n),l=s.get("hex"),s=100*s.get("a")):n&&n.FCcolor?(l=n.FCcolor.color.split(w)[0],s=n.FCcolor.alpha.split(w)[0]):pb.test(n)&&(l=n.replace(db,eb)),r.fluidColor=q(l,r.fluidColor,"000000"),r.fluidAlpha=h(s,r.fluidAlpha,100),u=!0):"color"===
f?(r.fluidColor=q(n,r.fluidColor,"000000"),u=!0):"alpha"===f?(r.fluidAlpha=h(n,r.fluidAlpha,100),u=!0):0<=n&&1>=n&&(r.fluidHRatio=n,t=!0),u&&(n=ea(r.fluidColor,70),K=W(r.fluidColor,70),A=ea(r.conColor,80),E=W(r.conColor,80),s=r.fluidAlpha,J=s+w+s,k.fluid.attr({"stroke-width":0,fill:S({FCcolor:{cx:.5,cy:0,r:"100%",color:K+w+n,alpha:J,ratio:"0,100",radialGradient:!0}})}),k.fluidTop.attr({"stroke-width":3,stroke:G(K,s),fill:S({FCcolor:{cx:.5,cy:.7,r:"100%",color:K+w+n,alpha:J,ratio:"0,100",radialGradient:!0}})}),
k.btnBorderLight.attr({fill:S({FCcolor:{color:E+w+A+w+E+w+E+w+A+w+n+w+A+w+E,alpha:"50,50,50,50,50,"+.7*s+",50,50",ratio:"0,15,0,12,0,15,43,15",angle:0}})})),t&&(A=r.x,n=r.r,K=r.fluidStroke,E=K/2,x=r.h*r.fluidHRatio,K=A-n,A+=n,J=K+E,z=A-E,F=r.y+r.h,x=F-x,C=n*r.r3dFactor,E=n-E,c?(k.fluid.animate({path:e.concat(["M",K,F],["A",n,ya(C,1),0,0,0,A,F],["L",A,x],["A",n,ya(C,1),0,0,0,K,x,"Z"])},c,"easeIn"),k.fluidTop.animate({path:e.concat(["M",J,x],["A",E,C,0,0,0,z,x],["L",z,x],["A",E,C,0,0,0,J,x,"Z"])},c,
"easeIn")):(k.fluid.attr({path:e.concat(["M",K,F],["A",n,C,0,0,0,A,F],["L",A,x],["A",n,C,0,0,1,K,x,"Z"])}),k.fluidTop.attr({path:e.concat(["M",J,x],["A",E,C,0,0,0,z,x],["L",z,x],["A",E,C,0,0,0,J,x,"Z"])})))):this._attr(f,n);return k},f=function(){};return function(a,c,p,n,k,l,s,u,t,r,K,E,A){var J,x,z,F,C,D,T,v,I,y,H,N,B,M,L,ia,Q,P;lb(a)&&(c=a.y,p=a.r,n=a.h,k=a.r3dFactor,l=a.parentGroup,s=a.renderer,u=a.fluidHRatio,t=a.conColor,r=a.conAlpha,K=a.fluidColor,E=a.fluidAlpha,a=a.x);k=h(k,.15);Ia.vml&&(k=
k||.001);0<=u&&1>=u||(u=0);t=q(t,"FFFFFF");r=h(r,30);K=q(K,"000000");E=h(E,100);r={x:a,y:c,r:p,h:n,r3dFactor:k,renderer:s,fluidHRatio:u,conColor:t,conAlpha:r,fluidStroke:3,fluidColor:K,fluidAlpha:E};l=s.group("graphic",l);l._attr=l.attr;l.attr=b;l._setAnimate=d;l.shadow=f;l._3dAttr=r;k*=p;r=p-1.5;J=c+n;n=J-n*u;u=a-p;x=a+p;z=u+1.5;F=x-1.5;C=u-2;D=x+2;T=p+2;v=k+2;I=J+4;y=I+.001;H=ea(t,80);N=ea(t,90);t=W(t,80);B=ea(K,70);K=W(K,70);M=ea(B,90);L=.85*p;ia=a-L;a+=L;Q=Math.sqrt((1-L*L/(p*p))*k*k);L=c+Q;Q=
J+Q;P=c-1;l.btnBorder=s.path(e.concat(["M",C,I],["A",T,v,0,0,0,D,I],["L",D,y],["A",T,v,0,0,0,C,y,"Z"]),l).attr({"stroke-width":4,stroke:G(H,80)});l.btnBorder1=s.path(e.concat(["M",u,I],["A",p,k,0,0,0,x,I],["L",x,y],["A",p,k,0,0,0,u,y,"Z"]),l).attr({"stroke-width":4,stroke:G(H,50)});l.btnBorderLight=s.path(e.concat(["M",u,J],["A",p,k,0,0,0,x,J],["A",p,k,0,0,0,u,J,"Z"]),l).attr({"stroke-width":0,fill:S({FCcolor:{color:t+w+H+w+t+w+t+w+H+w+B+w+H+w+t,alpha:"50,50,50,50,50,70,50,50",ratio:"0,15,0,12,0,15,43,15",
angle:0}})});C=A?t+w+H+w+t+w+H+w+N+w+N+w+H+w+t:t+w+H+w+H+w+H+w+H+w+H+w+H+w+t;l.back=s.path(e.concat(["M",u,J],["A",p,k,0,0,0,x,J],["L",x,c],["A",p,k,0,0,0,u,c,"Z"]),l).attr({"stroke-width":1,stroke:G(H,50),fill:S({FCcolor:{color:C,alpha:"30,30,30,30,30,30,30,30",ratio:"0,15,43,15,0,12,0,15",angle:0}})});C=A?K+w+B:B+w+B;l.fluid=s.path(e.concat(["M",u,J],["A",p,ya(k,1),0,0,0,x,J],["L",x,n],["A",p,ya(k,1),0,0,0,u,n,"Z"]),l).attr({"stroke-width":0,fill:S({FCcolor:{cx:.5,cy:0,r:"100%",color:C,alpha:E+
w+E,ratio:"0,100",radialGradient:!0}})});C=A?K+w+B:B+w+B;l.fluidTop=s.path(e.concat(["M",z,n],["A",r,k,0,0,0,F,n],["L",F,n],["A",r,k,0,0,0,z,n,"Z"]),l).attr({"stroke-width":2,stroke:A?G(K,E):G(M),fill:S({FCcolor:{cx:.5,cy:.7,r:"100%",color:C,alpha:E+w+E,ratio:"0,100",radialGradient:!0}})});C=A?t+w+H+w+t+w+t+w+H+w+t+w+H+w+t:H+w+H+w+H+w+H+w+H+w+H+w+H+w+H;l.front=s.path(e.concat(["M",u,J],["A",p,k,0,0,0,x,J],["L",x,c],["A",p,k,0,0,1,u,c,"Z"]),l).attr({"stroke-width":1,stroke:G(H,50),fill:S({FCcolor:{color:C,
alpha:"30,30,30,30,30,30,30,30",ratio:"0,15,0,12,0,15,43,15",angle:0}})});A&&(l.frontLight=s.path(e.concat(["M",u,J],["A",p,k,1,0,0,ia,Q],["L",ia,L],["A",p,k,0,0,1,u,c,"Z"]),l).attr({"stroke-width":0,stroke:"#"+H,fill:S({FCcolor:{color:C,alpha:"40,0",ratio:"0,100",angle:0}})}));A&&(l.frontLight1=s.path(e.concat(["M",a,Q],["A",p,k,0,0,0,x,J],["L",x,c],["A",p,k,1,0,0,a,L,"Z"]),l).attr({"stroke-width":0,stroke:"#"+H,fill:S({FCcolor:{color:C,alpha:"40,0",ratio:"0,100",angle:180}})}));l.cylinterTop=s.path(e.concat(["M",
u,P],["A",p,k,0,0,0,x,P],["L",x,P],["A",p,k,0,0,0,u,P,"Z"]),l).attr({"stroke-width":2,stroke:G(H,40)});return l}}();Lb=function(){var a={value:!0},e=0,c=function(a){e=Boolean(a)?a.duration:0},d=function(b,c){var d,p,n=this,k=this._3dAttr,l,h,u,t,r,q,E;Ra(b)&&$(c)&&(d=b,b={},b[d]=c);if(Ra(b))n=a[b]?n._3dAttr[b]:n._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=la(l)*k.sizeGapSum-k.ledGap;if(k.LEDCase){h=n.colorArr;t=h.length;for(u=
0;u<t;u+=1)r=h[u],r.maxLEDNoFrac<=l?E=k.LEDLowerFN:q?E=k.LEDUpperFN:(E=void 0,q=r),E&&(r[E](),"show"===E&&r.attr(r.oriShapeArg));q||(q=r);q.show();q.attr(q.hoverShapeArg)}n.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?n.darkShade.animate(l,e,"easeIn"):n.darkShade.attr(l))}}else this._attr(d,p);return n},b=function(){};return function(a,e,g,p,n,k,l,s,u,t,r,K,E,A,J,x,z,F,C,D,T){var w=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"))}},I=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"))}},v,H,N,y,B,L,M,Q,P,O,V,Z,ga,R,X,aa,na,da,ra,ja,U,ba,Y,ca;lb(a)&&(e=a.y,g=a.w,p=a.h,n=a.wGroup,k=a.renderer,l=a.value,s=a.gaugeFillColor,u=a.gaugeBorderColor,t=a.gaugeBorderAlpha,r=a.gaugeBorderThickness,K=a.colorRangeManager,E=a.minValue,A=a.maxValue,J=a.useSameFillColor,x=a.useSameFillBgColor,
z=a.ledSize,F=a.ledGap,C=a.type,a=a.x);l>=E&&l<=A||(l=E);s=q(s,"FFFFFF");u=q(u,"000000").replace(db,eb);t=h(t,1);r=h(r,2);ca={x:a,y:e,w:g,h:p,wGroup:n,renderer:k,value:l,gaugeFillColor:s,gaugeBorderColor:u,gaugeBorderAlpha:t,gaugeBorderThickness:r,colorRangeManager:K,minValue:E,maxValue:A,ledGap:F,ledSize:z,type:C,useSameFillColor:J,useSameFillBgColor:x};n=k.group("graphic",n);n._attr=n.attr;n.attr=d;n._setAnimate=c;n.shadow=b;n._3dAttr=ca;K=K.getColorRangeArr(E,A);v=a;H=e;y=N=!0;B=2===C||4===C?p:
g;L=F+z;M=F/2;Q=M/2;P=B-z;O=A-E;A=0;V=K.length;R=ga=0;X=!1;na=aa="show";da=a;ra=e;ja=r/2;U=a-ja;ba=e-ja;Y=a+g+ja;ja=e+p+ja;J&&(R+=1,aa="hide");x&&(R+=2,na="hide");0>P?(J=1,z=B):(J=parseInt(P/L,10)+1,z+=P%L/J,L=z+F);x=O/J;n.colorArr=[];B=[];1===C?da+=L-F/2:2===C?(y=!1,ra+=L-F/2):3===C?(v=a+g,N=!1,da+=L-F/2):(H=e+p,y=N=!1,ra+=L-F/2);ca.ledGap=F;ca.ledSize=z;ca.sizeGapSum=L;ca.perLEDValueLength=x;ca.isIncrement=N;ca.isXChange=y;ca.LEDLowerFN=aa;ca.LEDUpperFN=na;(ca.LEDCase=R)&&(3===R?Z={x:a,y:e,width:g,
height:p}:X=!0);for(n.border=k.path(["M",U,ba,"L",Y,ba,Y,ja,U,ja,"Z"],n).attr({stroke:G(u,t),"stroke-width":r}).shadow({apply:D});A<V;A+=1)if((u=K[A])&&$(u.maxvalue)&&(t=la((u.maxvalue-E)/x),z=t-ga,ga=t,0<z)){r={r:0};X&&(Z={});z*=L;if(y)if(r.y=H,r.width=z-F,r.height=p,N?(r.x=v,v+=z):(r.x=v-r.width,v-=z),X&&(Z.width=r.x-a,N&&1===R||!N&&2===R?(Z.x=a,Z.width+=r.width):Z.width=g-Z.width),0===A||A===V-1){if(r.width+=Q,N&&A===V-1||!N&&0===A)r.x-=Q,r.width=Math.ceil(r.width)}else r.width+=M,r.x-=Q;else if(r.x=
v,r.width=g,r.height=z-F,N?(r.y=H,H+=z):(r.y=H-r.height,H-=z),X&&(Z.height=r.y-e,N&&1===R||!N&&2===R?(Z.y=e,Z.height+=r.height):Z.height=p-Z.height),0===A||A===V-1){if(r.height+=Q,N&&A===V-1||!N&&0===A)r.y-=Q,r.height=Math.ceil(r.height)}else r.height+=M,r.y-=Q;z=k.rect(r.x,r.y,r.width,r.height,n).attr({"stroke-width":0,fill:S({FCcolor:{color:q(u.code,"000000"),alpha:h(u.alpha,100)}})});z.oriShapeArg=r;z.hoverShapeArg=Z;z.maxLEDNo=t;z.maxLEDNoFrac=(u.maxvalue-E)/x;T&&(z.data("rollover",{"stroke-width":0,
fill:S({FCcolor:{color:ea(q(u.code,"000000"),80)+","+W(q(u.code,"000000"),80),alpha:h(u.alpha,100),angle:C%2?90:0}})}),z.data("rollout",{"stroke-width":0,fill:S({FCcolor:{color:q(u.code,"000000"),alpha:h(u.alpha,100)}})}));n.colorArr.push(z)}n.darkShade=k.rect(a,e,g,p,0,n).attr({"stroke-width":0,fill:G(s,50)});for(A=1;A<J;A+=1)y?(B.push("M",da,ra,"L",da,ra+p),da+=L):(B.push("M",da,ra,"L",da+g,ra),ra+=L);n.LEDGap=k.path(B,n).attr({stroke:G(s,100),"stroke-width":F});n.tracker=k.rect(a,e,g,p,0,n).attr({fill:fa});
T&&n.tracker.hover(w(n),I(n));n.attr({value:l});return n}}();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)),m=this.canvasWidth,g=this.canvasHeight,p=d.valuePadding,n=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)&&$(n)&&n!==M&&(b.dataLabel?
b.dataLabel.attr({text:n}):b.dataLabel=e.text(f).attr({"vertical-align":"top",text:n,x:m/2,y:g,"text-anchor":sa[Ga],fill:c.color,title:a.originalText||"","text-bound":[c.backgroundColor,c.borderColor,c.borderThickness,c.borderPadding,c.borderRadius,c.borderDash]}).css(l),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.canvasWidth,
b=this.canvasHeight,f=this.options.scale,m=f.minorTM,g=f.min,p=f.max,n=f.majorTM,k=f.axisPosition,l=f.minorTMHeight,h=f.majorTMHeight,u=f.connectorColor,t=f.connectorThickness,r=f.minorTMColor,q=f.minorTMThickness,E=f.majorTMColor,A=f.majorTMThickness,J=f.tickMarkDistance,x=f.tickValueDistance,z=f.placeTicksInside,F=f.placeValuesInside,C=Math.max(h,l),c=e.scaleGroup||(e.scaleGroup=a.group("scale",c)),D=Ma,T=Ga,w=f.reverseScale,I=g,v=q/2,H=A/2,g=p-g,y=0,G=0,B=0,L=0,P=0,Q=0,S=0,O=0,R=0,Z=0,V=0,X=0,
W=0,aa=0,na=0,da=0;z?(J=-J,h=-h,l=-l,F?(C=-C,x=-x):C=-J):F&&(C=-J,x=-x);w&&(g=-g,I=p);switch(k){case 1:y=d/g;L=-J;Q=L-H;O=L-v;Z=L-h;X=L-l;aa=L-C-x;D=Ma;T=F?Fa:mb;break;case 2:G=b/g;B=J;P=B+H;S=B+v;R=B+h;V=B+l;W=B+C+x;na=d;D=F?ab:Ja;T=Ga;break;case 3:y=d/g;L=J;Q=L+H;O=L+v;Z=L+h;X=L+l;aa=L+C+x;da=b;D=Ma;T=F?mb:Fa;break;case 4:G=b/g,B=-J,P=B-H,S=B-v,R=B-h,V=B-l,W=B-C-x,D=F?Ja:ab,T=Ga}e.minorTM||(e.minorTM=[]);e.majorTM||(e.majorTM=[]);this.tmLabel||(e.tmLabel=[]);if(l)for(b=0,p=m.length;b<p;b+=1)k=m[b]-
I,d=k*y,k*=G,e.minorTM[b]=a.path(["M",d+S,k+O,"L",d+V,k+X],c).attr({"shape-rendering":qb[1>q],stroke:r,"stroke-linecap":"round","stroke-width":q});b=0;for(p=n.length;b<p;b+=1)m=n[b],k=m.value-I,r=m.displayValue,d=k*y,k*=G,l&&(e.majorTM[b]=a.path(["M",d+P,k+Q,"L",d+R,k+Z],c).attr({"shape-rendering":qb[1>A],stroke:E,"stroke-linecap":"round","stroke-width":A})),r!==M&&(S=0===b||b===p-1?f.limitValues.style:f.tickValues.style,q=m.labelX||0,e.tmLabel[b]=a.text(d+W+q,k+aa,r,c).attr({"text-anchor":sa[m.align||
D],"vertical-align":T,title:m.originalText||""}).css(S));t&&(e.tmConnector=a.path(["M",B,L,"L",g*y+B,g*G+L],c).attr({"shape-rendering":qb[1>t],stroke:u,"stroke-linecap":"round","stroke-width":t}));c.translate(na,da);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||[],m=a.toolTexts||[],g=a.showLabels||[],p=c&&c.length||0,h=[],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),m[p]&&(k.tooltext=m[p],k.hasNewData=!0),k.hasNewData&&(h[p]=d.getPointStub(k,p,e,this.definition)),"0"!=g[p]&&c[p].displayValue||(h[p].displayValue=M);h.length&&(this.lastUpdatedObj=a)&&this.drawValue(h);return Boolean(h.length)}}},v["renderer.root"]);v("renderer.bulb",{drawWidget:function(){var a=this.options,e=a.chart,c=this.paper,d=this.elements,b=e.gaugeRadius,a=a.series[0]&&a.series[0].data&&a.series[0].data[0]||{},f=
a.rolloverProperties||{},m={cx:e.gaugeOriginX,cy:e.gaugeOriginY,stroke:a.borderColor,"stroke-linecap":"round","stroke-width":a.borderWidth,r:e.animation?.001:b},g={r:b},p;null===a.y||isNaN(a.y)||(p=d.bulb=(p=d.bulb)?p.attr(m):c.circle(m,this.layers.dataset),e.animation&&p.animate(g,e.animation.duration,"easeIn"),f.enabled&&p.mouseover(function(){p.attr(f.hoverAttr);f.hoverAnimAttr&&p.animate(f.hoverAnimAttr,100,"easeIn")}).data("hoverAttr",f.hoverAttr).mouseout(function(){p.attr(f.outAttr);f.hoverAnimAttr?
p.animate(g,100,"easeIn"):p.attr(g)}).data("outAttr",f.outAttr))},drawWidgetValue:function(a){var e=this,c=e.elements;a=a[0];var d=a.rolloverProperties||{},b=d.hoverAttr,f=d.outAttr,m={fill:S(a.color),ishot:!0},c=c.bulb,g=c.data("hoverAttr"),p=c.data("outAttr");d.enabled&&(b&&b.stroke&&(g.stroke=b.stroke,p.stroke=f.stroke),b&&b.fill&&(g.fill=b.fill,p.fill=f.fill));c||e.drawWidget();d={value:a.y,displayValue:a.displayValue,toolText:a.toolText};null===a.y||isNaN(a.y)||c.attr(m).click(function(a){ca.call(this,
e,a)}).hover(function(a){ca.call(this,e,a,"DataPlotRollOver")},function(a){ca.call(this,e,a,"DataPlotRollOut")}).tooltip(a.toolText).data("eventArgs",d)},drawScale:function(){},drawWidgetLabel:function(a){var e=this.options.chart,c=this.paper,d=this.elements,b=this.layers,f=e.gaugeRadius,m=e.gaugeOriginX,g=e.gaugeOriginY;a=a[0];var p=d.dataLabel,h=e.dataLabels.style,k={fontFamily:h.fontFamily,fontSize:h.fontSize,lineHeight:h.lineHeight,fontWeight:h.fontWeight,fontStyle:h.fontStyle};b.datalabels||
(b.datalabels=c.group("datalabels").insertAfter(b.dataset));e.placeValuesInside?(e=g,b=Ga):(e=g+f+e.valuePadding,b=Fa);null===a.y||isNaN(a.y)||a.displayValue===M||(p||(d.dataLabel=p=c.text(this.layers.dataset)),p.attr({text:a.displayValue,"text-anchor":"middle",x:m,y:e,title:a.originalText||"","vertical-align":b,fill:h.color,"text-bound":[h.backgroundColor,h.borderColor,h.borderThickness,h.borderPadding,h.borderRadius,h.borderDash]}).css(k))}},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,m=.643*f,g=new nb(d.color),p=g.get("hex").replace(db,M),g=100*g.get("a"),h;d.minValue=a.scale.min;d.maxValue=a.scale.max;h=this.elements.thermometer=Jb(0+m,0-m,f,e.thmHeight,this.layers.dataset,c,0,e.thmGlassColor,e.gaugeBorderColor,e.gaugeBorderThickness,p,g,e.use3DLighting);b.enabled&&h.data("hoverInAttrs",{fluidColor:b.thmFillHoverColor,fluidAlpha:b.thmFillHoverAlpha}).data("hoverOutAttrs",{fluidColor:p,
fluidAlpha:g}).hover(function(){h.attr(h.data("hoverInAttrs"))},function(){h.attr(h.data("hoverOutAttrs"))})},drawWidgetValue:function(a,e){var c=this,d=c.elements,b=c.options.scale,f=b.max,m=b.min,b=a[0],f=(h(b.y,m)-m)/(f-m),g;d.thermometer||c.drawWidget();b.fluidHRatio=f;m={value:b.y,displayValue:b.displayValue,toolText:b.toolText};e&&d.thermometer._setAnimate(e);d.thermometer.attr({fluidHRatio:f,ishot:!0}).click(function(a){ca.call(this,c,a)}).hover(function(a){ca.call(this,c,a,"DataPlotRollOver")},
function(a){ca.call(this,c,a,"DataPlotRollOut")}).data("eventArgs",m);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,m=a.scale,g=m.max,a=a.series[0].data[0],h,n;a.minValue=m.min;a.maxValue=g;b.cylinder=Kb(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},n={color:e.cylFillColor,alpha:e.cylFillAlpha},b.cylinder.hover(function(){b.cylinder.attr(h)},function(){b.cylinder.attr(n)}))},drawWidgetValue:function(a,e){var c=this,d=c.elements,b=c.options.scale,f=b.max,m=b.min,b=a[0],f=(h(b.y,m)-m)/(f-m),g;d.cylinder||c.drawWidget();m={value:b.y,displayValue:b.displayValue,toolText:b.toolText};b.fluidHRatio=f;e&&d.cylinder._setAnimate(e);d.cylinder.attr({fluidHRatio:f,
ishot:!0}).click(function(a){ca.call(this,c,a)}).hover(function(a){ca.call(this,c,a,"DataPlotRollOver")},function(a){ca.call(this,c,a,"DataPlotRollOut")}).data("eventArgs",m);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,m=f.max,g=f.min,a=a.series[0].data[0],h=this.layers.dataset;a.minValue=g;a.maxValue=m;b.led=Lb(0,
0,this.canvasWidth,this.canvasHeight,h,e,0,d.gaugeFillColor,d.gaugeBorderColor,d.gaugeBorderAlpha,d.gaugeBorderThickness,c.colorRangeGetter,g,m,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,m=this.canvasWidth,g=this.canvasHeight,p=b.min,n=b.max,k=b&&b.trendPoint||[],l=d.colorRangeFillMix,s=d.colorRangeFillRatio,u=d.colorRangeBorderColor,t=d.colorRangeBorderAlpha,r=d.colorRangeBorderThickness,q=c.colorRangeGetter.getColorRangeArr(p,n),d=d.showShadow,E,A,J,x,z,F=c.colorManager,C,D,T;a.linear||(a.linear=E=e.group("colorrange",f),a.outerRect=e.rect(E));a.outerRect.attr({x:0,y:0,width:m,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*m/(n-p),y:0,width:(b-a)*m/(n-p),height:g}},A=270):2===c?(f=function(a,b){return{x:0,y:a*g/(n-p),width:m,height:(b-a)*g/(n-p)}},A=180):3===c?(f=function(a,b){return{x:m-b*m/(n-p),y:0,width:(b-a)*m/(n-p),height:g}},A=270):(f=function(a,b){return{x:0,y:g-b*g/(n-p),width:m,height:(b-a)*g/(n-p)}},A=180);a.colorRangeElems||(a.colorRangeElems=[]);c=0;for(b=q.length;c<b;c+=1)x=q[c],z=f(x.minvalue-p,x.maxvalue-p),
x.x=z.x,x.y=z.y,x.width=z.width,x.height=z.height,J=x.code,J=G(wa(J,u),t),d&&Math.max(x.alpha,t),C=F.parseColorMix(x.code,l),D=F.parseAlphaList(x.alpha,C.length),T=h(x.borderAlpha,t),x=D.split(w),x=ya.apply(Math,x),x=ya(r&&T||0,x),a.colorRangeElems[c]||(a.colorRangeElems[c]=e.rect(E)),a.colorRangeElems[c].attr({x:z.x,y:z.y,width:z.width,height:z.height,r:0,"stroke-width":r,stroke:J,fill:S({FCcolor:{color:C.toString(),ratio:s,alpha:D,angle:A}})}).shadow({apply:d,opacity:x/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],z=f(l.startValue-p,l.endValue-p),l.isZone?(a.trendObjElems[c]||(a.trendObjElems[c]=e.rect(E)),a.trendObjElems[c].attr({x:z.x,y:z.y,width:0<z.width?z.width:0,height:0<z.height?z.height:0,r:0,fill:S({FCcolor:{color:l.color,alpha:l.alpha}})})):a.trendObjElems[c]=this.path(["M",z.x,z.y,"L",z.x,z.y+z.height],E).attr({stroke:G(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,m=e.options.scale,g=m.max,p=m.min,n=g-p,k=a[0],l=a[1],s=m&&m.trendPoint||[],u,t,r=l.borderWidth,q=e.logic.isHorizontal,E;t=a.length;var A=0,J=0,x=0,z=0,F=p,C,D,T,w,I,v;q?(A=b/n,z=f/2):(J=f/n,x=b/2);m.reverseScale&&(A=-A,J=-J,F=g);for(;t--;)E=a[t],m=h(E.y,F)-F,E.plotX=E.origX=m*A+x,E.plotY=E.origY=m*J+z;for(t=s.length;t--;)E=
s[t],m=E.startValue-p,E.plotX=E.origX=m*A+x,E.plotY=E.origY=m*J+z;m=function(a){a=h(a,F)-F;return{x:a*A+x,y:a*J+z}}(Math.min(Math.max(p,0),g));$(k.y)&&(k.plotAsDot?(s=t=k.plotFillPercent/100*(q?f:b),a=k.plotX-t/2,g=k.plotY-s/2,q?(k.animInitAttr={x:m.x},k.animAttr={x:a}):(k.animInitAttr={y:m.y},k.animAttr={y:g})):(a=Math.min(k.plotX,m.x),g=Math.min(k.plotY,m.y),s=Math.abs(k.plotY-m.y),t=Math.abs(k.plotX-m.x),q?(k.animInitAttr={x:m.x,width:0},k.animAttr={x:a,width:t},s=k.plotFillPercent/100*f,g-=s/
2):(k.animInitAttr={y:m.y,height:0},k.animAttr={y:g,height:s},t=k.plotFillPercent/100*b,a-=t/2)),p={link:E.link,value:k.y,displayValue:k.displayValue,toolText:E.toolText},E.shapeType="rect",E.shapeArgs={x:a,y:g,height:s,width:t,endY:u,r:0},T=k.rolloverProperties||{},T.enabled&&void 0!==T.plotFillHoverPercent&&(T.showHoverAnimation?(C={},D={}):(C=T.hoverAttr,D=T.outAttr),k.plotAsDot?(C.width=C.height=T.plotFillHoverPercent/100*(q?f:b),C.x=k.plotX-C.width/2,C.y=k.plotY-C.width/2,D.width=D.height=t,
D.x=a,D.y=g):q?(C.height=T.plotFillHoverPercent/100*f,C.y=Math.min(k.plotY,m.y)-C.height/2,D.height=s,D.y=g):(C.width=T.plotFillHoverPercent/100*b,C.x=Math.min(k.plotX,m.x)-C.width/2,D.width=t,D.x=a)),E.graphic=c.rect(a,g,t,s,0,d).attr({fill:E.color,stroke:E.borderColor,ishot:!0,"stroke-width":E.borderWidth}).click(function(a){ca.call(this,e,a)}).hover(function(a){ca.call(this,e,a,"DataPlotRollOver");T.enabled&&(this.attr(T.hoverAttr),T.showHoverAnimation&&this.animate(C,100,"easeOut"))},function(a){ca.call(this,
e,a,"DataPlotRollOut");T.enabled&&(this.attr(T.outAttr),T.showHoverAnimation&&this.animate(D,100,"easeOut"))}).tooltip(E.toolText).data("eventArgs",p));$(l.y)&&(q?(t=f*l.targetFillPercent/100,s=t/2,k=a=l.plotX,p=g=l.plotY-s,u=l.plotY+s,s=t,t=r,E=a-r/2,m=[a+r,l.plotY]):(t=b*l.targetFillPercent/100,s=t/2,E=a=l.plotX-s,g=u=l.plotY,k=l.plotX+s,s=r,p=g-r/2,m=[l.plotX,g+r+10]),l.shapeType="rect",l.tooltipPos=m,l.trackerArgs={x:E,y:p,height:s,width:t,r:0},l.shapeArgs=["M",a,g,"L",k,u],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.displayValue,toolText:l.toolText},w=l.rolloverProperties||{},w.enabled&&void 0!==w.plotFillHoverPercent&&(w.showHoverAnimation?(v={},I={d:l.shapeArgs}):(v=w.hoverAttr,w.outAttr.d=l.shapeArgs),q?(t=f*l.plotFillHoverPercent/100,s=t/2,v.d=["M",a,l.plotY-s,"L",k,l.plotY+s]):(t=b*l.plotFillHoverPercent/100,s=t/2,v.d=["M",l.plotX-s,g,"L",l.plotX+s,u])),l.graphic=c.path(l.shapeArgs,d).attr({stroke:l.borderColor,
"stroke-width":r,"stroke-linecap":"round",ishot:!0,"shape-rendering":qb[1>r]}).click(function(a){ca.call(this,e,a)}).hover(function(a){ca.call(this,e,a,"DataPlotRollOver");w.enabled&&(this.attr(w.hoverAttr),w.showHoverAnimation&&this.animate(v,100,"easeOut"))},function(a){ca.call(this,e,a,"DataPlotRollOut");w.enabled&&(this.attr(w.outAttr),w.showHoverAnimation&&this.animate(I,100,"easeOut"))}).tooltip(l.toolText).data("eventArgs",p))}},v["renderer.widgetbase"]);v("renderer.hbullet",{drawWidgetLabel:function(a){var e=
this.options,c=this.layers,d=this.paper,b=c.datalabels;a=a[0];var f=this.canvasWidth,m=this.canvasHeight,g=e.chart.valuePadding,e=e.plotOptions.series.dataLabels.style,h={fontFamily:e.fontFamily,fontSize:e.fontSize,lineHeight:e.lineHeight,fontWeight:e.fontWeight,fontStyle:e.fontStyle};b||(b=c.datalabels=d.group("datalabels").insertAfter(c.dataset));c=f+g;void 0===a.y||isNaN(a.y)||a.displayValue===M||(a.dataLabel=d.text(c,m/2,a.displayValue,b).attr({"text-anchor":sa[Ja],title:a.originalText||"",fill:e.color,
"text-bound":[e.backgroundColor,e.borderColor,e.borderThickness,e.borderPadding,e.borderRadius,e.borderDash]}).css(h))}},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,m=this.canvasWidth,g=this.canvasHeight,p=b.min,n=b.max,b=b&&b.trendPoint||[],k=d.colorRangeFillMix,l=d.colorRangeFillRatio,s=d.colorRangeBorderColor,u=d.colorRangeBorderAlpha,t=d.colorRangeBorderThickness,r=c.colorRangeGetter.getColorRangeArr(p,
n),K=d.showShadow,E,A,J,x,z,F,C=this.pointOrientation={top:1,bottom:3},D=c.colorManager,T,v,I;a.linear||(a.linear=A=e.group("colorrange",f),a.outerRect=e.rect(A));a.outerRect.attr({x:0,y:0,width:m,height:g,stroke:"none",r:0});J=function(a,b){return{x:a*m/(n-p),y:0,width:(b-a)*m/(n-p),height:g}};a.colorRangeElems||(a.colorRangeElems=[]);c=0;for(E=r.length;c<E;c+=1)z=r[c],F=J(z.minvalue-p,z.maxvalue-p),z.x=F.x,z.y=F.y,z.width=F.width,z.height=F.height,x=z.code,x=G(wa(q(z.bordercolor,x),s),h(z.borderalpha,
u)),K&&Math.max(z.alpha,u),T=D.parseColorMix(z.code,k),v=D.parseAlphaList(z.alpha,T.length),z=h(z.borderAlpha,u),I=v.split(w),I=ya.apply(Math,I),I=ya(t&&z||0,I),a.colorRangeElems[c]||(a.colorRangeElems[c]=e.rect(A)),a.colorRangeElems[c].attr({x:F.x,y:F.y,width:F.width,height:F.height,r:0,"stroke-width":t,stroke:x,fill:S({FCcolor:{color:T.toString(),ratio:l,alpha:v,angle:270}})}).shadow({apply:K,opacity:I/100});for(;a.colorRangeElems[c];)a.colorRangeElems[c].remove(),a.colorRangeElems.splice(c,1);
a.trendObjElems||(a.trendObjElems=[]);c=0;for(E=b.length;c<E;c+=1)k=b[c],F=J(k.startValue-p,k.endValue-p),k.isZone?(a.trendObjElems[c]||(a.trendObjElems[c]=e.rect(A)),a.trendObjElems[c].attr({x:F.x,y:F.y,width:0<F.width?F.width:0,height:0<F.height?F.height:0,r:0,"stroke-width":0,fill:S({FCcolor:{color:k.color,alpha:k.alpha}})}).tooltip(k.tooltext)):a.trendObjElems[c]=e.path(["M",F.x,F.y,"L",F.x,F.y+F.height],A).attr({stroke:G(k.color,k.alpha),"stroke-width":k.thickness,"stroke-dasharray":k.dashStyle}).tooltip(k.tooltext),
k.useMarker&&(k.showOnTop?(s="bottom",l=0):(s="top",l=g),s=90*C[s],k.graphic=e.polypath(3,F.x,l,k.markerRadius,s,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,m=d.paper,g=b.scale,p=b.series&&b.series[0]&&b.series[0].data||[],n=d.canvasWidth,k=d.canvasHeight,k=b.chart.pointerOnOpp?k:0,l=b.chart.showPointerShadow,b=!1!==b.tooltip.enabled,s=(g.max-g.min)/n,u=g.min,t=g.max,r=p.length,q,E,A,J,x={pageX:0,pageY:0},z=function(a){E=d.fusionCharts.getDataJSON();this.dragStartX=a},F=function(){var a,
b=d.fusionCharts;(a=b&&b.jsVars)&&(a._rtLastUpdatedData=b.getDataJSON());ka.raiseEvent("RealTimeUpdateComplete",{data:"&value="+this.updatedValStr,updateObject:{values:[this.updatedValStr]},prevData:E.values,source:"editMode",url:null},b);try{ba.FC_ChartUpdated&&ba.FC_ChartUpdated(b.id)}catch(c){setTimeout(function(){throw c;},1)}this.graphic.tooltip(this.toolText)},C=function(a,b,c,e,f){a=yb&&(yb&&f.sourceEvent&&f.sourceEvent.touches&&f.sourceEvent.touches[0]||f)||x;b=h(this.y,g.min);e=b-(this.dragStartX-
c)*s;var k=0,m=[];e<g.min?e=g.min:e>g.max&&(e=g.max);for(;k<this.index;k+=1)m.push("");m.push(e);b!==e&&d.realtimeUpdate({values:m},{duration:0})&&(this.updatedValStr=m.join("|"),this.dragStartX=c||f.pageX||a.pageX)},D,w,v,I,y,H;I=function(a){ca.call(this,d,a)};y=function(a){var b=this.data("rolloverProperties");b.enabled&&(this.attr(b.hoverAttr),b.hoverAnimAttr&&this.animate(b.hoverAnimAttr,100,"easeIn"));ca.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"));ca.call(this,d,a,"DataPlotRollOut")};r--;)q=p[r],w=q.rolloverProperties||{},J=c&&c.point[r]&&c.point[r].startAngle||q._startAngle,J+=.2,f.pointers||(f.pointers=[]),f.pointers[r]||(void 0!==q.id&&(d.dataById[q.id]={index:r,point:q}),A=l?{opacity:Math.max(q.bgalpha,q.borderalpha)/100}:!1,D=q.editMode?void 0:q.link,v={link:D,value:q.y,displayValue:q.displayValue,toolText:q.toolText},q.graphic=f.pointers[r]=m.polypath(q.sides,
0,k||0,q.radius,J,0,a).attr({fill:q.color,stroke:q.borderColor,ishot:!0,r:q.radius,"stroke-width":q.borderWidth}).shadow(!!A,A&&A.opacity).click(I).hover(y,H).data("eventArgs",v).data("rolloverProperties",w),D&&q.graphic.css({cursor:"pointer",_cursor:"hand"}),q._startAngle=J,q.editMode&&(q.index=r,q.graphic.css({cursor:"pointer",_cursor:"hand"}).attr({ishot:!0}),q.graphic.drag(C,z,F,q,q,q))),q.graphic=f.pointers[r],b&&q.graphic.tooltip(q.toolText),e&&e.duration?q.graphic.animate({polypath:[q.sides,
n*(h(q.y,u)-u)/(t-u),k||0,q.radius,J,0]},e.duration,"easeIn"):q.graphic.attr({polypath:[q.sides,n*(h(q.y,u)-u)/(t-u),k||0,q.radius,J,0]})},drawWidgetLabel:function(a,e){var c=this.options,d=c.scale,b=this.layers,f=this.paper,m=c.chart,g=this.logic,b=b.datalabels||(b.datalabels=f.group("datalabels").insertAfter(b.dataset)),p=d.min,n=d.max,k=g.colorRangeGetter.getColorRangeArr(p,n),g=g.numberFormatter,l=m.colorRangeStyle.style||{},s,u=this.canvasWidth,t=this.canvasHeight,d=d&&d.trendPoint||[],r=m.pointerOnOpp,
K=m.valueInsideGauge;s=m.showGaugeLabels;var E=c.plotOptions.series.dataLabels.style,A,J,x,z,F,C,D,w,v;w=!1;var c=this.smartLabel,I,y,H;H=h(parseInt(E.fontHeight,10),parseInt(E.lineHeight,10),12);var G=m.valuePadding+.5*H,m=m.valuePadding,B=G,E={fontFamily:E.fontFamily,fontSize:E.fontSize,lineHeight:E.lineHeight,fontWeight:E.fontWeight,fontStyle:E.fontStyle},G=K===r?G-H/4:G+H/4;c.setStyle(E);y=c.getOriSize("W...").width;z=this.getPointerLabelXY=function(a,b,c,d){return{x:(a-p)*u/(n-p),y:c?b?t-d-G:
t+G:b?G:-(G+d),align:"middle"}};F=function(a,b){return{x:(a-p+(b-a)/2)*u/(n-p),y:t/2,width:(b-a)*u/(n-p),height:t}};if(a&&a.length)for(E=a.length;E--;)if(x=a[E],0!==x.showvalue&&x.displayValue!==M&&(I=c.getOriSize(x.displayValue),x.setWidth&&(I=c.getSmartText(x.displayValue,x.setWidth,I.height,!0)),C=this.getPointerLabelXY(x.y,K,r,I.height/2),x.isLabelString)){w=!1;for(v=1;!w;){D=a[E+v];if(!D)break;D.isLabelString?w=!0:v+=1}D&&(w=c.getOriSize(D.displayValue),A=z(D.y,K,r,w.height/2),v=A.x-w.width/
2-(C.x+I.width/2),A=A.x-C.x,0>v&&(J=I.width+v,J>A&&(x.setWidth=J=A),J>y?(C=x.setWidth&&x.setWidth<=J?c.getSmartText(x.displayValue,x.setWidth,I.height,!0):c.getSmartText(x.displayValue,J,I.height,!0),x.displayValue=C.text,C.tooltext&&(x.originalText=C.tooltext)):(C=c.getSmartText(x.displayValue,y,I.height,!0),x.displayValue=C.text,C.tooltext&&(x.originalText=C.tooltext),v=2*v+y-4),x.setWidth=null,J=w.width+v-4,D.setWidth=J>A?A:J>y?J:y));x.setWidth&&(C=c.getSmartText(x.displayValue,x.setWidth,I.height,
!0),x.displayValue=C.text,C.tooltext&&(x.originalText=C.tooltext),x.setWidth=null)}this.drawPointerLabels(null,e);l=l||{};c.setStyle(l);if(k&&s)for(E=0,r=k.length;E<r;E+=1)s=k[E],K=q(s.label,s.name),$(K)&&K!==M&&(C=F(s.minvalue,s.maxvalue),I=C.width-4>y&&C.height-4>H?c.getSmartText(K,C.width-4,C.height-4):c.getSmartText(K,C.width,C.height),f.text(b).attr({"text-anchor":Ga,title:I.tooltext||"","vertical-align":Ga,text:I.text,x:C.x,y:C.y,fill:l.color}).css(l));if(d)for(E=0,r=d.length;E<r;E+=1){k=d[E];
k.displayValue=q(k.displayValue,g.dataLabels(k.startValue));c.setStyle(k.style);H=c.getOriSize("Wg").height;I=c.getOriSize(k.displayValue);C=z(k.startValue,0,!k.showOnTop);k.setWidth&&(I=c.getSmartText(k.displayValue,k.setWidth,I.height,!0));w=!1;for(v=1;!w;){D=d[E+v];if(!D)break;D.showOnTop===k.showOnTop?w=!0:v+=1}D&&(w=c.getOriSize(D.displayValue),A=z(D.startValue,0,!D.showOnTop),v=A.x-w.width/2-(C.x+I.width/2),0>v&&(A=A.x-C.x,J=I.width+v,J>A&&(k.setWidth=J=A),J>y?(I=k.setWidth&&k.setWidth<=J?c.getSmartText(k.displayValue,
k.setWidth,I.height,!0):c.getSmartText(k.displayValue,I.width+v-4,I.height,!0),k.displayValue=I.text,I.tooltext&&(k.originalText=I.tooltext)):(I=c.getSmartText(k.displayValue,y,I.height,!0),k.displayValue=I.text,I.tooltext&&(k.originalText=I.tooltext),v=2*v+y-4),k.setWidth=null,J=w.width+v-4,D.setWidth=J>A?A:J>y?J:y));k.setWidth&&(I=c.getSmartText(k.displayValue,k.setWidth,I.height,!0),k.displayValue=I.text,I.tooltext&&(k.originalText=I.tooltext),k.setWidth=null);H=k.showOnTop?-(m+I.height/2):t+B;
l=k.isZone?F(k.startValue,k.endValue).x:C.x;k.dataLabel=f.text(0,H,k.displayValue,b).attr({"text-anchor":sa[C.align],title:k.originalText||""}).css(k.style);k.dataLabel.attr({x:l})}},drawPointerLabels:function(a,e){for(var c=this.layers.datalabels,d=this.paper,b=this.options,f=b.chart,m=f.pointerOnOpp,f=f.valueInsideGauge,g=this.smartLabel,h=b.series&&b.series[0]&&b.series[0].data||[],b=b.plotOptions.series.dataLabels.style,n=h.length,k={fontFamily:b.fontFamily,fontSize:b.fontSize,lineHeight:b.lineHeight,
fontWeight:b.fontWeight,fontStyle:b.fontStyle},l,s,u;n--;)s=h[n],l=s.displayValue,0!==s.showvalue&&l!==M&&(u=g.getOriSize(l),u=this.getPointerLabelXY(s.y,f,m,u.height/2),s.dataLabel?s.dataLabel.attr({text:l,title:s.originalText||""}):s.dataLabel=d.text(c).attr({"text-anchor":sa[u.align],title:s.originalText||"",text:l,x:0,y:u.y,fill:b.color,"text-bound":[b.backgroundColor,b.borderColor,b.borderThickness,b.borderPadding,b.borderRadius,b.borderDash]}).css(k),e&&e.duration?s.dataLabel.animate({x:u.x},
e.duration,"easeIn"):s.dataLabel.attr({x:u.x}))},realtimeUpdate:function(a,e){if(a===this.lastUpdatedObj)return!1;var c=this.options,d=c[P],b=c.series,f=this.numberFormatter,b=b&&b[0]&&b[0].data,m=a.values||[],g=a.labels||[],h=a.toolTexts||[],n=a.showLabels||[],k=b&&b.length||0,l,s,u=null,t=[],r;e=e||c.plotOptions.series.animation;if(k){for(;k--;)c={},r={},l=b[k],void 0!==m[k]&&""!==m[k]?(c.value=r.value=m[k],u=r.displayvalue=r.tooltext=f.dataLabels(r.value),r.hasNewData=!0):r.value=l.y,g[k]&&(r.displayvalue=
g[k],r.hasNewData=!0),"0"==n[k]&&(r.displayvalue=M,r.hasNewData=!0),s=B(U(q(l._tooltext,d.tooltext))),h[k]&&(s=B(U(h[k])),r.hasNewData=!0),r.hasNewData&&(t[k]=r,V(l,{y:r.value,displayValue:l.displayValue||"1"==n[k]?r.displayvalue:M,toolText:void 0!==s?$a(s,[1,2],{formattedValue:u},c):u}));t.length&&(this.lastUpdatedObj=a,this.drawPointerValues(b,e),this.drawPointerLabels(b,e));return Boolean(t.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,m=d.gaugeOuterRadius,g=d.gaugeInnerRadius,p=d.gaugeFillRatio,n=e.gaugeBorderColor,k=e.gaugeBorderThickness,l=e.gaugeBorderAlpha,s=d.gaugeFillMix,u=d.gaugeOriginX,t=d.gaugeOriginY,r=e.gaugeStartAngle,K=e.gaugeEndAngle,E=e.showShadow,e=c.min,A=c.max,J=this.logic,x=J.colorRangeGetter.getColorRangeArr(e,A),z=0,F=x.length,C=A-e,K=K-r,D,v,y=r,I=Math.cos(r),B=Math.sin(r),H=u+m*I;v=t+m*B;var I=u+g*I,B=t+g*B,N,c=c.trendPoint,P;b.trendPointGroup||
(b.trendPointGroup=a.group("trendpoint",f));for(;z<F;z+=1)D=x[z],v=r+(Math.min(D.maxvalue,A)-e)/C*K,I=J.parseColorMix(D.code,s),B=J.parseAlphaList(D.alpha,I.length),H=J.parseRatioList(g/m*100+p,I.length),P=D.bordercolor,N=h(D.borderAlpha,l),P=P&&-1==P.indexOf("{")?G(P,N):J.parseColorMix(D.code,q(P,n))[0],P=G(P,N),D=B.split(w),D=ya.apply(Math,D),D=E?ya(k&&N||0,D):0,N=v,y>v&&(y+=v,v=y-v,y-=v),a.ringpath(u,t,m,g,y,v,f).attr({fill:S({FCcolor:{cx:u,cy:t,r:m,gradientUnits:"userSpaceOnUse",color:I.join(),
alpha:B,ratio:H,radialGradient:!0}}),"stroke-width":k,stroke:P}).shadow({apply:E,opacity:D/100}),y=N;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(u,t));b.pivot||(b.pivot=a.circle(f));b.pivot.attr({cx:u,cy:t,r:d.pivotRadius,fill:S({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:E});f=Math.cos(89.99*cb);p=-f;z=0;for(F=c.length;z<F;z+=1)d=c[z],E=d.isZone,s=r+(d.startValue-e)/C*K,n=h(d.radius,m),k=h(d.innerRadius,E?Math.max(g-15,0):g),l=h(d.trendValueDistance,0),I=Math.cos(s),B=Math.sin(s),H=u+n*I,v=t+n*B,I=u+k*I,B=t+k*B,E?(B=r+(d.endValue-e)/C*K,s>B&&(s+=B,B=s-
B,s-=B),d.graphic=a.ringpath(u,t,n,k,s,B,b.trendPointGroup).attr({fill:G(d.color,d.alpha),"stroke-width":d.showBorder?d.thickness:0,stroke:d.borderColor,"stroke-dasharray":d.dashStyle})):d.graphic=a.path(["M",H,v,"L",I,B],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",H,v,d.markerRadius,(-s+Math.PI)/cb,0,b.trendMarkerGroup).attr({fill:d.markerColor,"stroke-width":1,
stroke:d.markerBorderColor}),""!==d.markerToolText&&d.markerElement.tooltip(d.markerToolText)),d.displayValue!==M&&(v=(d.endValue+d.startValue)/2,B=r+(v-e)/C*K,I=Math.cos(B),B=Math.sin(B),d.valueInside?(v=k-2-l,n=I>f?ab:I<p?Ja:Ma):(v=n+2+l,n=I>f?Ja:I<p?ab:Ma),H=u+v*I,v=t+v*B,k=d.style,d.textElement=a.text(b.trendMarkerGroup).attr({x:H,y:v,text:d.displayValue,title:d.originalText||"","text-anchor":sa[d.align||n],"vertical-align":Fa}).css(k),H=d.textElement.getBBox(),H=H.height,v=I>f||I<p?v+(-(H/2)+
.4*H*B*(d.valueInside?-1:1)):d.valueInside?v+-(0>B?0:H):v+-(0<B?0:H),d.textElement.attr({y:v}))},drawWidgetValue:function(a,e){var c=this,d=c.options,b=d.chart,f=d.scale,m=d.series[0],g=c.paper,p=c.elements,n=Number(m.gaugeOriginX),k=Number(m.gaugeOriginY),l=b.gaugeStartAngle,s=b.gaugeEndAngle,b=b.showShadow,d=!1!==d.tooltip.enabled,u=f.min,q=f.max,r=p.pointGroup,v=q-u,E=s-l,A=v/E,J=0,x,z,F,C,D,w,y,I=a&&a.length,B,H=Xb(l,s),G=Vb(c.container),M=function(a,b){var d;d=[n,k];d=Hb(d[1]-b+G.top,d[0]-a+
G.left);c.rotationStartAngle=d;B=c.fusionCharts.getDataJSON()},P=function(){var a=c.fusionCharts,b;(b=a&&a.jsVars)&&(b._rtLastUpdatedData=a.getDataJSON());ka.raiseEvent("RealTimeUpdateComplete",{data:"&value="+this.updatedValStr,updateObject:{values:[this.updatedValStr]},prevData:B.values,source:"editMode",url:null},a);try{ba.FC_ChartUpdated&&ba.FC_ChartUpdated(a.id)}catch(d){setTimeout(function(){throw d;},1)}},L=function(a,b,d,e){a=[n,k];d=Hb(a[1]-e+G.top,a[0]-d+G.left);e=c.rotationStartAngle;var g;
e=0>d&&0<e?wb(d)-c.rotationStartAngle:0<d&&0>e?wb(c.rotationStartAngle)-d:c.rotationStartAngle-d;e=this.y-e*A;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)},S,Q,R,O,V,Z,X,W,U,aa;void 0===c.dataById&&(c.dataById={});p.pointers||(p.pointers=[]);W=function(a){ca.call(this,c,a)};U=function(a){var b=this.data("rolloverProperties");ca.call(this,
c,a,"DataPlotRollOver");b.enabled&&(a=this.attr("transform"),this.attr("transform",""),this.attr(b.hoverAttr),this.attr("transform",a))};for(aa=function(a){var b=this.data("rolloverProperties");ca.call(this,c,a,"DataPlotRollOut");b.enabled&&(a=this.attr("transform"),this.attr("transform",""),this.attr(b.outAttr),this.attr("transform",a))};J<I;J+=1)s=a[J],Q=s.rolloverProperties||{},$(s.y)||(s.y=u,$(s.toolText)||(s.toolText=u)," "===s.displayValue&&(s.displayValue=u)),void 0!==s.id&&(c.dataById[s.id]=
{index:J,point:s}),s.index=J,x=h(s.radius,(Number(m.gaugeOuterRadius)+Number(m.gaugeInnerRadius))/2),z=s.baseWidth,w=z/2,F=s.topWidth,y=F/2,D=s.rearExtension,C=s.baseRadius,s.tooltipPos=[n,k],p.pointers[J]?C=p.pointers[J]:(S=s.editMode?void 0:s.link,R=["M",x,-y,"L",x,y,-D,w,-D,-w,"Z"],Q.hasHoverSizeChange&&(Q.outAttr.path=R,O=h(Q.hoverRadius,x),V=Q.baseHoverWidth,V/=2,Z=Q.topHoverWidth,Z/=2,X=Q.rearHoverExtension,Q.hoverAttr.path=["M",O,-Z,"L",O,Z,-X,V,-X,-V,"Z"]),S={link:S,value:s.y,displayValue:s.displayValue,
toolText:s.toolText},p.pointers[J]=F?g.path(R,r):g.trianglepath(x,y,-D,w,-D,-w,0,C,C,r),s.graphic=C=p.pointers[J],s.graphic.attr({fill:s.color,stroke:s.borderColor,ishot:!0,"stroke-width":s.borderThickness}).click(W).hover(U,aa).data("eventArgs",S).data("rolloverProperties",Q),(z||F||s.borderThickness)&&s.graphic.shadow({apply:b}),C._attr=C.attr,C.attr=H,C._Attr={tooltipPos:s.tooltipPos,cx:n,cy:k,toolTipRadius:x-D,color:s.color},x=l/cb,C.attr({angle:x}),s.editMode&&(s.index=J,s.graphic.css({cursor:"pointer",
_cursor:"hand"}).attr({ishot:!0}),s.graphic.drag(L,M,P,s,s,s))),s.y>=u&&s.y<=q&&(x=(s.y-u)/v*E,x=(l+x)/cb,C.attr({angle:x},null,e),d&&C.tooltip(s.toolText))},drawWidgetLabel:function(a){var e=this.paper,c=this.layers,d=c.datalabels,b=this.options,f=b.series[0],m=b.plotOptions.series.dataLabels.style,b=f.pivotRadius,g=h(parseInt(m.lineHeight,10),12),p=f.valueBelowPivot,n=f.gaugeOriginX,k={fontFamily:m.fontFamily,fontSize:m.fontSize,lineHeight:m.lineHeight,fontWeight:m.fontWeight,fontStyle:m.fontStyle},
l,s,u,q=f.gaugeOriginY+(p?g/2+b+2:-(g/2)-b-2);d||(d=c.datalabels=e.group("datalabels").insertAfter(c.dataset));Db(a,function(a,b){l=a.displayValue;u=a.valueY;s=h(a.valueX,n);$(u)||(u=p?q+g*b:q-g*b);$(l)&&l!==M&&(a.dataLabel?a.dataLabel.attr({text:l,title:a.originalText||""}):a.dataLabel=e.text(d).attr({x:s,y:u,text:l,"text-anchor":sa[Ma],title:a.originalText||"",fill:m.color,"text-bound":[m.backgroundColor,m.borderColor,m.borderThickness,m.borderPadding,m.borderRadius,m.borderDash]}).css(k))})},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),m=Number(f.gaugeOriginY),g=e.gaugeStartAngle,p=c.min,n=Number(f.gaugeInnerRadius),k=Number(f.gaugeOuterRadius),f=c.max-p,e=e.gaugeEndAngle-g,l=0,s=c.majorTM,u=c.minorTM,q=b.tickMarkGroup,r,v,E,A,J,x,z=Math.cos,F=Math.sin,C=Number(c.minorTMHeight),D=Number(c.majorTMHeight),w=c.placeTicksInside,l=c.placeValuesInside;J=c.tickValueDistance;var y,I,B=c.limitValues.style,H=c.tickValues.style,N=.75*h(parseInt(B.lineHeight,
10),12),M=.75*h(parseInt(H.lineHeight,10),12);w?(w=n,C=w+C,D=w+D):(w=k,C=w-C,D=w-D);y=l?n-J:k+J;b.majorTM||(b.majorTM=[]);b.tmLabel||(b.tmLabel=[]);l=0;for(n=s.length;l<n;l+=1)k=s[l],r=k.value,J=k.displayValue,x=(r-p)*e/f+g,I=z(x),x=F(x),r=a+w*I,v=m+w*x,E=a+D*I,A=m+D*x,b.majorTM[l]=d.path(["M",r,v,"L",E,A],q).attr({stroke:G(c.majorTMColor,c.majorTMAlpha),"stroke-width":c.majorTMThickness,"stroke-linecap":"round"}),""!==J&&(0===l||l===n-1?(E=B,v=m+y*x+(k.y||0)-N):(E=H,v=m+y*x+(k.y||0)-M),r=a+y*I+(k.x||
0),b.tmLabel[l]=d.text(r,v,J,q).attr({"text-anchor":sa[k.align||Ma],title:k.originalText||"","vertical-align":Fa}).css(E));b.minorTM||(b.minorTM=[]);l=0;for(n=u.length;l<n;l+=1)r=u[l],x=(r-p)*e/f+g,r=a+w*z(x),v=m+w*F(x),E=a+C*z(x),A=m+C*F(x),b.minorTM[l]=d.path(["M",r,v,"L",E,A],q).attr({stroke:G(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[P],b=c.series,f=this.numberFormatter,
b=b&&b[0]&&b[0].data,m=a.values||[],g=a.labels||[],h=a.toolTexts||[],n=a.showLabels||[],k=b&&b.length||0,l,s,u=null,t=[],r,v;e=e||c.plotOptions.series.animation;if(k){for(;k--;)r={},c={},v=!1,l=b[k],s=l.id&&(l.id.toLowerCase&&l.id.toLowerCase()||l.id),void 0!==m[k]&&""!==m[k]&&(v=!0)||s&&a[s]?(c.value=r.value=v?m[k]:a[s],u=r.displayvalue=r.tooltext=f.dataLabels(r.value),r.hasNewData=!0):r.value=l.y,g[k]&&(r.displayvalue=g[k],r.hasNewData=!0),"0"==n[k]&&(r.displayvalue=M,r.hasNewData=!0),s=B(U(q(l._tooltext,
d.tooltext))),h[k]&&(s=B(U(h[k])),r.hasNewData=!0),r.hasNewData&&(t[k]=r,V(l,{y:r.value,displayValue:l.displayValue||"1"===n[k]?r.displayvalue:M,toolText:void 0!==s?$a(s,[1,2],{formattedValue:u},c):u}));t.length&&(this.lastUpdatedObj=a,this.drawWidgetValue(b,e),this.drawWidgetLabel(b,e));return Boolean(t.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,n,k,l,s,q){lb(a)&&(c=a.y,d=a.R1,e=a.R2,h=a.h,n=a.r3dFactor,k=a.is2D,q=a.isHollow,s=a.isFunnel,a=a.x);l=a-d;var t=a+d,r=a-e,v=a+e,E=c+h,A,w;if(k)A={silhuette:["M",l,c,"L",t,c,v,E,r,E,"Z"]},s||(A.lighterHalf=["M",l,c,"L",a,c,a,E,r,E,"Z"],A.darkerHalf=["M",a,c,"L",t,c,v,E,a,E,"Z"]);else if(s){r=a;v=c;c=d||.01;t=e||.01;a=q;l=c*n;n*=t;h=v+h;E=ma(t,2)-ma(c,2);d=-2*(ma(t,2)*v-ma(c,2)*h);e=ma(c*n,2)+ma(t*v,2)-ma(t*l,2)-ma(c*h,2);q=kb(ma(d,2)-4*E*e);e=
(-d+q)/(2*E);E=(-d-q)/(2*E);e<h&&e>v?w=E:E<h&&E>v&&(w=e);e=kb((ma(w-v,2)-ma(l,2))/ma(c,2));d=-e;E={x:la(ma(c,2)*e/(w-v)*100)/100,y:la(100*(ma(l,2)/(w-v)+v))/100};e={x:la(ma(t,2)*e/(w-h)*100)/100,y:la(100*(ma(n,2)/(w-h)+h))/100};q={x:la(ma(c,2)*d/(w-v)*100)/100,y:la(100*(ma(l,2)/(w-v)+v))/100};w={x:la(ma(t,2)*d/(w-h)*100)/100,y:la(100*(ma(n,2)/(w-h)+h))/100};E={topLeft:q,bottomLeft:w,topRight:E,bottomRight:e};for(A in E)if(isNaN(E[A].x)||isNaN(E[A].y))E[A].x="topLeft"===A||"bottomLeft"===A?-c:c,E[A].y=
"bottomRight"===A||"bottomLeft"===A?h:v;h=E.topLeft;d=E.bottomLeft;A=r+h.x;w=r+E.topRight.x;v=r+d.x;r+=E.bottomRight.x;h=h.y;d=d.y;E=["A",c,l,0,0,0,w,h];e=["A",c,l,0,1,1,w,h];q=["A",t,n,0,0,1,v,d];t=["A",t,n,0,1,0,v,d];t={front:["M",A,h].concat(E,["L",r,d],q,["Z"]),back:["M",A,h].concat(e,["L",r,d],t,["Z"]),silhuette:["M",A,h].concat(e,["L",r,d],q,["Z"])};a||(t.top=["M",A,h].concat(E,["L",w,h],["A",c,l,0,1,0,A,h],["Z"]));A=t}else A=d*n,w=e*n,h=La(5,d),d=La(2,2*A),e=La(2,d),n=e/n,A={top:["M",l,c,"L",
a,c+A,t,c,a,c-A,"Z"],front:["M",l,c,"L",a,c+A,t,c,v,E,a,E+w,r,E,"Z"],topLight:["M",l,c+.5,"L",a,c+A+.5,a,c+A-d,l+n,c,"Z"],topLight1:["M",t,c+.5,"L",a,c+A+.5,a,c+A-e,t-n,c,"Z"],silhuette:["M",l,c,"L",a,c-A,t,c,v,E,a,E+w,r,E,"Z"],centerLight:["M",a,c+A,"L",a,E+w,a-5,E+w,a-h,c+A,"Z"],centerLight1:["M",a,c+A,"L",a,E+w,a+5,E+w,a+h,c+A,"Z"]};return A},c=function(b,c){var d,g,p=this,n,k,l=!1,s=!1,q=this._3dAttr,t;Ra(b)&&$(c)&&(d=b,b={},b[d]=c);if(Ra(b))p=a[b]?this._3dAttr[b]:this._attr(b);else{for(d in b)g=
b[d],a[d]?(q[d]=g,"fill"===d?(g&&g.linearGradient&&g.stops&&g.stops[0]&&(g=g.stops[0][1]),sb.test(g)?(k=new nb(g),n=k.get("hex"),k=100*k.get("a")):g&&g.FCcolor?(n=g.FCcolor.color.split(w)[0],k=g.FCcolor.opacity.split(w)[0]):pb.test(g)&&(n=g.replace(db,eb),k=h(q.opacity,100)),q.color=n,q.opacity=k,s=!0):"color"===d||"opacity"===d?(q.fill=S(G(q.color,h(q.opacity,100))),s=!0):"stroke"===d||"strokeColor"===d||"strokeAlpha"===d?q.is2D&&("stroke"===d?(g&&g.linearGradient&&g.stops&&g.stops[0]&&(g=g.stops[0][1]),
sb.test(g)?(k=new nb(g),n=k.get("hex"),k=100*k.get("a")):g&&g.FCcolor?(n=g.FCcolor.color.split(w)[0],k=g.FCcolor.opacity.split(w)[0]):pb.test(g)&&(n=g.replace(db,eb),k=h(q.opacity,100)),q.strokeColor=n,q.strokeAlpha=k):q.stroke=G(q.strokeColor,h(q.strokeAlpha,100)),q.isFunnel?this.funnel2D.attr("stroke",q.stroke):this.borderElement.attr("stroke",q.stroke)):"stroke-width"===d?q.is2D&&(q.isFunnel?this.funnel2D.attr(d,g):this.borderElement.attr(d,g)):l=!0):this._attr(d,g);q.is2D?(l&&(n=e(q.x,q.y,q.R1,
q.R2,q.h,q.r3dFactor,q.is2D),p.shadowElement.attr({path:n.silhuette}),q.isFunnel?p.funnel2D.attr({path:n.silhuette}):(p.lighterHalf.attr({path:n.lighterHalf}),p.darkerHalf.attr({path:n.darkerHalf}),p.borderElement.attr({path:n.silhuette}))),s&&(q.isFunnel?p.funnel2D.attr("fill",S(G(q.color,h(q.opacity,100)))):(n=ea(q.color,80),k=W(q.color,80),p.lighterHalf.attr("fill",S(G(k,h(q.opacity,100)))),p.darkerHalf.attr("fill",S(G(n,h(q.opacity,100))))))):(l&&(n=e(q.x,q.y,q.R1,q.R2,q.h,q.r3dFactor,q.is2D),
p.shadowElement.attr("path",n.silhuette),q.isFunnel?(p.front.attr("path",n.front),p.back.attr("path",n.back),p.toptop&&n.top&&p.toptop.attr("path",n.top)):(p.front.attr("path",n.front),p.toptop.attr("path",n.top),p.topLight.attr("path",n.topLight),p.topLight1.attr("path",n.topLight1),p.centerLight.attr("path",n.centerLight),p.centerLight1.attr("path",n.centerLight1))),s&&(n=q.color,k=q.opacity,q.isFunnel?(s=W(n,60),l=ea(n,60),p.back.attr("fill",S({FCcolor:{color:l+w+s+w+n,alpha:k+w+k+w+k,ratio:"0,60,40",
angle:0}})),p.front.attr("fill",S({FCcolor:{color:n+w+s+w+l,alpha:k+w+k+w+k,ratio:"0,40,60",angle:0}})),p.toptop&&p.toptop.attr("fill",S({FCcolor:{color:s+w+l,alpha:k+w+k,ratio:"0,100",angle:-65}}))):(s=W(n,80),d=W(n,70),l=ea(n,80),g="0,"+k,t=n+w+d,q=5/(q.R1*q.r3dFactor)*100,p.centerLight.attr("fill",S({FCcolor:{color:t,alpha:g,ratio:"0,100",angle:0}})),p.centerLight1.attr("fill",S({FCcolor:{color:t,alpha:g,ratio:"0,100",angle:180}})),p.topLight.attr("fill",S({FCcolor:{color:d+w+d+w+n+w+n,alpha:k+
w+k+w+0+w+0,ratio:"0,50,"+q+w+(50-q),angle:-45}})),p.topLight1.attr("fill",S({FCcolor:{color:d+w+n+w+l,alpha:k+w+k+w+k,ratio:"0,50,50",angle:0}})),p.front.attr("fill",S({FCcolor:{color:n+w+n+w+l+w+l,alpha:k+w+k+w+k+w+k,ratio:"0,50,0,50",angle:0}})),p.toptop.attr("fill",S({FCcolor:{color:s+w+n+w+l+w+l,alpha:k+w+k+w+k+w+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,m,g,p,n,k,l,q,u,t){var r=this.layers.dataset;
lb(a)&&(f=a.y,m=a.R1,g=a.R2,p=a.h,n=a.r3dFactor,k=a.gStr,l=a.is2D,q=a.renderer,t=a.isHollow,u=a.isFunnel,a=a.x);n=h(n,.15);a={x:a,y:f,R1:m,R2:g,h:p,r3dFactor:n,is2D:l,isHollow:t,isFunnel:u,renderer:q};f=e(a);k=q.group(k,r);k.Shapeargs=f;k.shadowElement=q.path(f.silhuette,k).attr({fill:fa,stroke:"none"});k._attr=k.attr;k.attr=c;k.shadow=d;k._3dAttr=a;u?l?k.funnel2D=q.path(f.silhuette,k):(k.back=q.path(f.back,k).attr({"stroke-width":0,stroke:"none"}),k.front=q.path(f.front,k).attr({"stroke-width":0,
stroke:"none"}),f.top&&(k.toptop=q.path(f.top,k).attr({"stroke-width":0,stroke:"none"}))):l?(k.lighterHalf=q.path(f.lighterHalf,k).attr({"stroke-width":0}),k.darkerHalf=q.path(f.darkerHalf,k).attr({"stroke-width":0}),k.borderElement=q.path(f.silhuette,k).attr({fill:fa,stroke:"none"})):(k.front=q.path(f.front,k).attr({"stroke-width":0}),k.centerLight=q.path(f.centerLight,k).attr({"stroke-width":0}),k.centerLight1=q.path(f.centerLight1,k).attr({"stroke-width":0}),k.toptop=q.path(f.top,k).attr({"stroke-width":0}),
k.topLight=q.path(f.topLight,k).attr({"stroke-width":0}),k.topLight1=q.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 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(){var a=this.datasets[0],e=a.data,c=this.canvasWidth/
2,d=this.canvasHeight,b=e.length-1,f=e[0],m=f&&e[b].y,g=f&&e[0].y,p,n,k,l,q=this.canvasTop,u=a.yScale,t=a.isHollow,r=a.is2d,v=0,E=this.paper,w={},J=a.streamlinedData,x=a.labelDistance,z=.8/d,F,C=0,D=c+this.canvasLeft,y=a.showLabelsAtCenter,B=.3*h(parseInt(this.options.plotOptions.series.dataLabels.style.fontSize,10),10);p=J?d/(g-m):g?d/g:d;n=c;Db(e,function(d,f){(d.x=f)?(d.isSliced&&(F=d.x,1<F&&!w[F]&&(w[F]=!0,C+=1),F<b&&(w[F+1]=!0,C+=1)),J?(k=1==a.useSameSlantAngle?g?c*d.y/g:c:g?c*kb(d.y/g):c,l=
p*(e[f-1].y-d.y)||1):(v+=l=p*e[f].y,k=c*(1-v*z)),d.shapeArgs={x:D,y:q,R1:n,R2:k,h:l||1,r3dFactor:u,isHollow:t,gStr:"point",is2D:r,renderer:E,isFunnel:!0},y?(d.labelAline="middle",d.labelX=D,d.labelY=(r?q:q+u*n)+l/2+B):(d.labelAline="start",d.labelX=D+x+k+3,d.labelY=q+B+l),q+=l,n=k):(k=1==a.useSameSlantAngle?g?c*e[0].y/g:c:g?c*kb(e[0].y/g):c,d.labelWidht>2*k?(d.labelAline="start",d.labelX=0):(d.labelAline="middle",d.labelX=D),d.labelY=(r?q:q-u*n)-B-3);d.plotX=D;d.plotY=q});a._temp={slicingGapPosition:w,
noOfGap:C}},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,n=c.paper,k=f.tooltip||{},k=k&&!1!==k.enabled,l,h=h.series.animation.duration||0,q=c.layers,u=q.tracker,q=q.datalabels||(q.datalabels=n.group("datalabels").insertAfter(q.dataset)),t=g.showLabelsAtCenter,r=e._temp||{},v=r.slicingGapPosition,r=r.noOfGap,E=e.SlicingDistance,w,J=E/2,x=0,f=f.chart.issliced,z=p.style,z={fontFamily:z.fontFamily,fontSize:z.fontSize,
lineHeight:z.lineHeight,fontWeight:z.fontWeight,fontStyle:z.fontStyle},F=function(a,b){return function(d){a.graphic.attr(b);ca.call(this,c,d,"DataPlotRollOver")}},C=function(a,b){return function(d){a.graphic.attr(b);ca.call(this,c,d,"DataPlotRollOut")}},D,y,B,I,G,H,N,M;if(!(B=c.datasets[0].streamlinedData&&2>b.length)){r&&(w=La(1.5*J,E/r),x=J);E=function(a){return function(){c.legendClick(a,!0,!1)}};J=function(a){return function(){return c.getEventArgs(a)}};M=function(a){return function(){a.attr({visibility:"visible"})}};
b&&b.length||(b=[]);g.singletonCase=B&&2==b.length||1==b.length;e.data||(e.data=[]);for(N=b.length;N--;)I=b[N],D=I.y,y=I.displayValue,l=I.toolText,H=!!I.link,G=f?0:I.isSliced,null!==D&&void 0!==D&&I.shapeArgs?((B=d[N])||(e.data[N].plot=B=d[N]={value:D,displayValue:y,sliced:!!G,chart:c,plotItems:d,seriesData:g,cursor:H?"pointer":"",x:I.x,index:N,graphic:c.pyramidFunnelShape(I.shapeArgs).attr({fill:I.color,opacity:0,"stroke-width":I.borderWidth,stroke:I.borderColor}),dataLabel:n.text(q).attr({text:y,
title:I.originalText||"",ishot:!0,cursor:H?"pointer":"",x:0,y:0}).css(z),trackerObj:n.path(u)},e.data[N].legendClick=E(B),e.data[N].getEventArgs=J(B),D=y={},I.hoverEffects&&(D={color:I.color,opacity:I.alpha,"stroke-width":I.borderWidth,stroke:I.borderColor},y=I.rolloverProperties,y={color:y.color,opacity:y.alpha,"stroke-width":y.borderWidth,stroke:y.borderColor}),!I.doNotSlice&&B.trackerObj.click(c.slice,B),B.trackerObj.mouseup(c.plotMouseUp,B),B.trackerObj.hover(F(B,y),C(B,D)),B.dataLabel.hover(F(B,
y),C(B,D)),k&&B.trackerObj.tooltip(l),!I.doNotSlice&&B.dataLabel.click(c.slice,B),B.dataLabel.mouseup(c.plotMouseUp,B),t&&0===N&&"funnel"==c.type&&g.streamlinedData||(B.connector=n.path(q).attr({"stroke-width":p.connectorWidth,stroke:p.connectorColor,ishot:!0,cursor:H?"pointer":""}).click(c.slice,B).mouseup(c.plotMouseUp,B).hover(F(B,y),C(B,D))),B.dy=0,r&&(x&&(B._startTranslateY=l="t0,"+x,B.dy=B.DistanceAvailed=x,B.graphic.attr({transform:l}),B.dataLabel.attr({transform:l}),B.connector.attr({transform:l})),
v[I.x]&&(x-=w))),h?(q.attr({visibility:"hidden"}),B.graphic.animate({opacity:I.alpha},h,"easeIn",N===b.length-1&&M(q))):B.graphic.attr({opacity:I.alpha})):e.data[N].plot=d[N]={dataLabel:n.text(q).attr({text:y,title:I.originalText||"",x:0,y:0}).css(z)};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,n,k,l,q,u,t;q={hcJSON:{chart:{issliced:!1},series:[]}};q.hcJSON.series[0]={data:n=[]};d=this.sliced=
$(d)?d:!this.sliced;u=-a;t=function(a,c){return function(){ka.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,n[e]={isSliced:!1},k=!1):(n[e]={isSliced:d},k=!0,l=e),p.graphic&&(g=p.dy,g=-g,d&&(p.x<this.x?(g+=u,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&&ka.raiseEvent("SlicingStart",{slicedState:!d,data:b.getPlotData(l)},b.logic.chartInstance),
p.graphic.animate(g,300,"easeIn",k&&t(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"));V(b.logic.chartInstance.jsVars._reflowData,q,!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,m,g,p=a.showLabelsAtCenter,n=Number(c.style.lineHeight.split(/px/)[0]),
k=h(parseInt(c.style.fontSize,10),10),l=.3*k,q=.3*n,u,t,r,v,w,A=a.labelDistance,y,x;for(w=e.length-1;0<=w;w-=1)g=e[w],x=g.displayValue,c=d[w],f=g.labelY,b=g.labelX,m=g.labelAline,y=g.style,k=h(parseInt(y.fontSize,10),10),l=.3*k,k={fontFamily:y.fontFamily,fontSize:y.fontSize,lineHeight:y.lineHeight,fontWeight:y.fontWeight,fontStyle:y.fontStyle},p?f=0===w&&"funnel"==this.type&&a.streamlinedData?f-q+(d[1].DistanceAvailed||0):f-q+(c.DistanceAvailed||0):(v=r=f-l,void 0!==u&&void 0!==t&&t-r<n&&(v=t-n,f=
v+l),u=g.plotY,t=v,"undefined"===typeof x||x===M||0===w&&"funnel"==this.type&&a.streamlinedData||(g=b-3,l=g-A,g=["M",l,r,"L",g,v],c.connector.attr({path:g,"shape-rendering":r===v&&1>v?"crisp":""})),f=0===w&&"funnel"==this.type&&a.streamlinedData?f+(d[1].DistanceAvailed||0):v+(c.DistanceAvailed||0)),x!==M&&c.dataLabel.attr({transform:"t"+b+","+f,"text-anchor":sa[m],text:x,fill:y.color,"font-size":y.fontSize,"text-bound":[y.backgroundColor,y.borderColor,y.borderThickness,y.borderPadding,y.borderRadius,
y.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,n;0<=h;h-=1)g=c[h],n=a[h],b=g.trackerObj,g.graphic&&(d=g.graphic.Shapeargs.silhuette,n={link:n.link,value:n.y,displayValue:n.displayValue,categoryLabel:n.categoryLabel,toolText:n.toolText},b?b.attr({path:d,isTracker:f,fill:fa,stroke:"none",transform:"t0,"+(g._startTranslateY||0),ishot:!0,cursor:g.cursor}):g.trackerObj=e.path(d,p).attr({isTracker:f,fill:fa,
stroke:"none",transform:"t0,"+(g._startTranslateY||0),ishot:!0,cursor:g.cursor}),b.data("eventArgs",n))},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){ca.call(this.trackerObj,this.chart,a)}},v["renderer.piebase"]);v("renderer.pyramid",{type:"pyramid",translate:function(){var a=this.datasets[0],e=a.data,c=this.canvasWidth/2,d=this.canvasHeight,b=e.length-1,f,m,g=this.canvasTop,p=a.yScale,
n=a.is2d,k=this.paper,l=a.valueSum?a.valueSum:1,q=0,u,t={},r=0,v=a.labelDistance,w=a.showLabelsAtCenter,A=.3*h(parseInt(this.options.plotOptions.series.dataLabels.style.fontSize,10),10),y=this.canvasLeft+c,x=d/l,z=0;Db(e,function(a,d){a.x=d;a.isSliced&&((u=a.x)&&!t[u]&&(t[u]=!0,r+=1),u<b&&(t[u+1]=!0,r+=1));q+=a.y;f=c*q/l;m=x*a.y;a.shapeArgs={x:y,y:g,R1:z,R2:f,h:m,r3dFactor:p,gStr:"point",is2D:n,renderer:k};w?(a.labelAline="middle",a.labelX=y,a.labelY=(n?g:g+p*z)+m/2+A):(a.labelAline="start",a.labelX=
y+v+(z+f)/2+3,a.labelY=g+A+m/2);g+=m;a.plotX=y;a.plotY=g-m/2;z=f});a._temp={slicingGapPosition:t,noOfGap:r}},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],n=h.series.dataLabels,k=g.showLabelsAtCenter,h=h.series.animation.duration||0,l=c.paper,q=f.tooltip||{},q=q&&!1!==q.enabled,u,t=c.layers,r=t.tracker,t=t.datalabels||(t.datalabels=l.group("datalabels").insertAfter(t.dataset)),v=p._temp||{},w=v.slicingGapPosition,
v=v.noOfGap,A=p.SlicingDistance,y,x=A/2,p=0,f=f.chart.issliced,z=n.style,z={fontFamily:z.fontFamily,fontSize:z.fontSize,lineHeight:z.lineHeight,fontWeight:z.fontWeight,fontStyle:z.fontStyle},F=function(a,b){return function(d){a.graphic.attr(b);ca.call(this,c,d,"DataPlotRollOver")}},C=function(a,b){return function(d){a.graphic.attr(b);ca.call(this,c,d,"DataPlotRollOut")}},D,B,G,I,M,H,N,P;H=function(a){return function(){c.legendClick(a,!0,!1)}};N=function(a){return function(){return c.getEventArgs(a)}};
P=function(a){return function(){a.attr({visibility:"visible"})}};v&&(y=La(1.5*x,A/v),p=x);b&&b.length||(b=[]);g.singletonCase=1==b.length;for(M=b.length;M--;)x=b[M],D=x.y,B=x.displayValue,u=x.toolText,G=!!x.link,I=f?0:x.isSliced,null!==D&&void 0!==D&&x.shapeArgs?((A=d[M])||(e.data[M].plot=A=d[M]={value:D,sliced:!!I,cursor:G?"pointer":"",chart:c,plotItems:d,seriesData:g,x:x.x,index:M,graphic:c.pyramidFunnelShape(x.shapeArgs).attr({fill:x.color,opacity:h?0:x.alpha,"stroke-width":x.borderWidth,stroke:x.borderColor}),
dataLabel:l.text(t).attr({text:B,title:x.originalText||"",ishot:!0,cursor:G?"pointer":"",x:0,y:0}).css(z),trackerObj:l.path(r)},D=B={},x.hoverEffects&&(D={color:x.color,opacity:x.alpha,"stroke-width":x.borderWidth,stroke:x.borderColor},B=x.rolloverProperties,B={color:B.color,opacity:B.alpha,"stroke-width":B.borderWidth,stroke:B.borderColor}),e.data[M].legendClick=H(A),e.data[M].getEventArgs=N(A),!x.doNotSlice&&A.trackerObj.click(c.slice,A),A.trackerObj.mouseup(c.plotMouseUp,A).hover(F(A,B),C(A,D)),
q&&A.trackerObj.tooltip(u),!x.doNotSlice&&A.dataLabel.click(c.slice,A),A.dataLabel.mouseup(c.plotMouseUp,A).hover(F(A,B),C(A,D)),k&&0===M&&"funnel"==c.type&&g.streamlinedData||(A.connector=l.path(t).attr({"stroke-width":n.connectorWidth,stroke:n.connectorColor,ishot:!0,cursor:G?"pointer":""}).click(c.slice,A).mouseup(c.plotMouseUp,A).hover(F(A,B),C(A,D))),A.dy=0,v&&(p&&(A._startTranslateY=u="t,0,"+p,A.dy=A.DistanceAvailed=p,A.graphic.attr({transform:u}),A.dataLabel.attr({transform:u}),A.connector.attr({transform:u})),
w[x.x]&&(p-=y))),h&&(t.attr("visibility","hidden"),A.graphic.animate({opacity:x.alpha},h,"easeIn",M===b.length-1&&P(t)))):e.data[M].plot=d[M]={dataLabel:l.text(t).attr({text:B,title:x.originalText||"",x:0,y:0}).css(z)};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,n=this.canvasHeight/2,k;d&&(b||(b=e.limitlabels=c.group("limitlabels").insertAfter(e.dataset)),b.translate(this.canvasLeft,this.canvasTop),$(a.openValue.label)&&(d.openValue=c.text(-p,n,a.openValue.label,b).attr({"text-anchor":sa[ab]}).css(a.openValue.style)),e=a.closeValue.label,k=this.canvasWidth+p,$(e)&&(d.closeValue=c.text(this.canvasWidth+p,n,e,b).attr({"text-anchor":sa[Ja]}).css(a.closeValue.style),f.setStyle(a.closeValue.style),
k+=f.getOriSize(e).width+p),$(h)&&(c.text(k,n,"[",b).attr({"text-anchor":sa[Ja]}).css(a.highLowValue.style),f.setStyle(a.highLowValue.style),k+=f.getOriSize("[").width+1,d.highLabel=c.text(k,n,h,b).attr({"text-anchor":sa[Ja]}).css(a.highLowValue.style).css({color:a.highColor}),k+=f.getOriSize(h).width+1),$(g)&&(c.text(k,n,"|",b).attr({"text-anchor":sa[Ja]}).css(a.highLowValue.style),k+=f.getOriSize("|").width+1,d.dataLabel=c.text(k,n,g,b).attr({"text-anchor":sa[Ja]}).css(a.highLowValue.style).css({color:a.lowColor}),
k+=f.getOriSize(g).width+1,c.text(k,n,"]",b).attr({"text-anchor":sa[Ja]}).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),$(h)&&h!==M&&(d.dataLabel=c.text(this.canvasWidth+a.valuePadding,this.canvasHeight/2,h,b).attr({"text-anchor":sa[Ja],fill:f.color,"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,m=a.items,g=a.graphics||(a.graphics=[]),p=d.paper,n=d.layers,k=d.options,l=k.chart,q=!1!==(k.tooltip||{}).enabled,u=d.definition.chart,k=k.plotOptions.series,t=d.xAxis[e.xAxis||0],r=d.yAxis[e.yAxis||0],v=d.logic.isStacked,w=e.numColumns||1,A=e.columnPosition||0,y=l.canvasBorderOpacity=Ia.color(l.plotBorderColor).opacity,x=d.canvasBorderWidth,y=l.isCanvasBorder||(l.isCanvasBorder=0!==y&&0<x),z,x=!1===e.visible?"hidden":"visible",B=l.overlapColumns,C=t.getAxisPosition(0),
C=t.getAxisPosition(1)-C,D=u&&u.plotspacepercent,G=k.groupPadding,P=k.maxColWidth,u=h(u&&u.plotpaddingpercent),D=(1-.01*D)*C||La(C*(1-2*G),P*w),C=D/2,D=D/w,B=La(D-1,1<w?B||void 0!==u?0<u?D*u/100:0:4:0),w=D-B,A=A*D-C+B/2,C=r.max,D=r.min,B=0<C&&0<=D,u=0>=C&&0>D,C=0>C&&0>D?C:0<C&&0<D?D:0,l=h(l.useRoundEdges,0),I=n.dataset=n.dataset||p.group("dataset-orphan"),n=n.tracker,D=d.canvasTop,G=d.canvasLeft,P=d.canvasBottom,V=d.canvasRight,H,N,R,X,L,W,Q,U,O,ba,Z,ga,Y,ea,aa;Y=function(a,b){return function(c){a.attr(b);
ca.call(this,d,c,"dataplotrollover")}};ea=function(a,b){return function(c){a.attr(b);ca.call(this,d,c,"dataplotrollout")}};aa=function(a){ca.call(this,d,a)};v&&(Z=I.shadows||(I.shadows=p.group("shadows",I).toBack()));I=I.column=I.column||p.group("columns",I);if(ga=c.numUpdate||0)for(c=0;c<ga;c+=1)(H=m.shift())&&delete H._state,m.push(H);for(c=0;c<f;c+=1)if(O=c+ga,N=b[c],W=N.y,H=h(N.x,c),U=t.getAxisPosition(H)+A,H=m[c],L=N.toolText,R=N.link,X=N.displayValue||M,z=Rb(N.borderWidth)||0,Q={index:c,link:R,
value:W,displayValue:N.displayValue,categoryLabel:N.categoryLabel,toolText:L,id:a.userID,datasetIndex:a.index,datasetName:a.name,visible:a.visible},O>=f&&(H||(H=m[c]={index:c,value:W,width:w,graphic:null,dataLabel:null,tracker:null}),H&&(H.valueBelowPlot=0>W),O=ba={},N.hoverEffects&&(O={fill:S(N.color),stroke:S(N.borderColor),"stroke-width":z,"stroke-dasharray":N.dashStyle},ba=N.rolloverProperties,ba={fill:S(ba.color),stroke:S(ba.borderColor),"stroke-width":ba.borderWidth,"stroke-dasharray":ba.dashStyle}),
H.graphic||(H.graphic=p.rect(I).attr({visibility:x}),g.push(H.graphic),H.graphic.shadow(k.shadow&&N.shadow,Z)),H.graphic.attr({r:l,fill:S(N.color||""),stroke:S(N.borderColor||""),"stroke-width":z,"stroke-dasharray":N.dashStyle,"stroke-linejoin":"miter"}),H.tracker||(H.tracker=p.rect(n).attr({stroke:fa,fill:fa,visibility:x}),g.push(H.tracker)),H._attrHoverInFn&&H.tracker.unhover(H._attrHoverInFn,H._attrHoverOutFn),H._attrClickFn&&H.tracker.unclick(H._attrClickFn),H.tracker.attr({height:0,width:0,r:l,
"stroke-width":z,stroke:fa,cursor:R?"pointer":"",ishot:!0}).data("eventArgs",Q).click(H._attrClickFn=aa).hover(H._attrHoverInFn=Y(H.graphic,ba),H._attrHoverOutFn=ea(H.graphic,O)).tooltip(L)),H&&(H.index=c),null===W)H&&(H.graphic&&H.graphic.attr({height:0,"stroke-width":0}),H.tracker&&H.tracker.attr({height:0,"stroke-width":0}),H.dataLabel&&H.dataLabel.attr({text:""}));else if(Q=N.previousY,O=r.getAxisPosition(Q||C),N=r.getAxisPosition(W+(Q||0)),L=wb(N-O),0>W&&(N=O),Sb(N)<=D&&(L-=D-N-+y,N=D-+y),la(N+
L)>=P&&(L-=la(N+L)-P+ +!!z+ +y),1>=z&&(la(U)<=G&&(w+=U,U=G-z/2+ +!!z-+y,w-=U),la(U+w)>=V&&(w=V-U+z/2-+!!z+ +y)),O=Ia.crispBound(U,N,w,L,z),U=O.x,N=O.y,w=O.width,L=O.height,y&&!$(Q)&&(u?(z=N-(D-z/2),L+=z,N-=z):B&&(L=P-N+z/2)),1>=L&&(L=1,N+=0>W?0:-L),H&&H.graphic&&(H.graphic.attr({x:U,y:N,width:w,height:L}).data("BBox",O),H.dataLabel&&H.dataLabel.attrs.text!==X&&H.dataLabel.attr({text:X}),d.drawPlotColumnLabel(a,e,c,U,N),R||q))!v&&L<zb&&(N-=(zb-L)/2,L=zb),H.tracker&&H.tracker.attr({x:U,y:N,width:w,
height:L});return a},updatePlotLine:function(a,e,c){var d=this,b=d.paper,f=d.options,m=f.chart,g=f.plotOptions.series,p=a.items,n=a.graphics||(a.graphics=[]),k,l=d.xAxis[e.xAxis||0],q=d.yAxis[e.yAxis||0],u=!1!==(f.tooltip||{}).enabled,f=a.data,t=!1===e.visible?"hidden":"visible",r=f.length,v=g.connectNullData,y,A,B,x,z,F,C,D=null,G,P=e.lineWidth,I=e.color,R,H,N,V,W,L,X,Q,U,O,Y=d.layers,Z=Y.dataset=Y.dataset||b.group("dataset-orphan"),Y=Y.tracker,ga,$,ea,aa,na,da,ra,ja,ha,ma,la,ka,oa,qa;ma=function(a){ca.call(this,
d,a)};la=function(a){return function(b){d.hoverPlotAnchor(this,b,"DataPlotRollOver",a,d)}};ka=function(a){return function(b){d.hoverPlotAnchor(this,b,"DataPlotRollOut",a,d)}};qa=function(b,c,f,g,k,h,l,m,p){return function(){var h=f.imageUrl,q=f.imageScale,r=f.imageAlpha,s=l.imageHoverAlpha,v=l.imageHoverScale,w=this.width*q*.01,x=this.width*v*.01;U={x:b-this.width*q*.005,y:c-this.height*q*.005,width:w,height:this.height*q*.01,alpha:r};O={x:b-this.width*v*.005,y:c-this.height*v*.005,width:x,height:this.height*
v*.01,alpha:s};s=x>w?O:U;g.graphic&&g.graphic.attr(U).attr("src",h).css({opacity:.01*r}).data("alwaysInvisible",0===q).data("setRolloverProperties",l).data("setRolloverAttr",O).data("setRolloutAttr",U).data("anchorRadius",q).data("anchorHoverRadius",v);if(p||u||l)g.tracker.attr(s).attr({cursor:p?"pointer":"",stroke:fa,"stroke-width":f.lineWidth,fill:fa,ishot:!0,visibility:t}).data("eventArgs",k),d.drawTracker&&d.drawTracker.call(d,a,e,m);(ga=g.dataLabel=d.drawPlotLineLabel(a,e,m,b,c))&&n.push(ga)}};
oa=function(b,c,f,g,k,h,l,m){return function(){(ga=g.dataLabel=d.drawPlotLineLabel(a,e,m,b,c))&&n.push(ga)}};$=Z.line||(Z.line=b.group("line-connector",Z));ea=a.lineShadowLayer||(a.lineShadowLayer=b.group("connector-shadow",$));aa=a.anchorShadowLayer||(a.anchorShadowLayer=b.group("anchor-shadow",$));Z=a.lineLayer||(a.lineLayer=b.group("connector",$));$=a.anchorLayer||(a.anchorLayer=b.group("anchors",$));if(ra=c.numUpdate||0)for(c=0;c<ra;c+=1)(k=p.shift())&&delete k._state,p.push(k);for(c=0;c<r;c+=
1)if(da=c+ra,y=f[c],F=y.y,z=h(y.x,c),z=l.getAxisPosition(z),x=y.toolText,A=y.link,B=y.displayValue||M,H=y.marker||{},N=V=H.radius||0,na=H.shadow,W=H.lineWidth||0,L=H.fillColor||"",X=H.lineColor||"",k=H.imageUrl,ha=!!k,k=p[c],k._state||(k._state={}),da>=r&&(k||(k=p[c]={index:c,value:F,graphic:null,connector:null,dataLabel:null,tracker:null}),k.graphic&&"image"===k.graphic.type&&!ha&&(k.graphic&&k.graphic.remove(),k.tracker&&k.tracker.remove(),k.graphic=k.tracker=null),k.graphic||(k.graphic=(ha?b.image($):
b.polypath($)).attr({visibility:t}),n.push(k.graphic)),ha||k.graphic.attr({fill:S(L),"stroke-width":W,stroke:S(X)}),k.connector||(k.connector=b.path(Z).attr({visibility:t}),k.connector.shadow(g.shadow&&y.shadow,ea),n.push(k.connector)),k.connector.attr({"stroke-dasharray":R,stroke:S(G||I),"stroke-width":P,"stroke-linecap":"round","stroke-linejoin":2<P?"round":"miter"}),k.tracker||(k.tracker=(ha?b.rect(Y):b.circle(Y)).attr({stroke:fa,fill:fa,visibility:t}),n.push(k.tracker)),V=ya(V,Q&&Q.radius||0,
m.anchorTrackingRadius),ja={index:c,link:A,value:y.y,displayValue:y.displayValue,categoryLabel:y.categoryLabel,toolText:y.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:V,"stroke-width":W,stroke:fa,cursor:A?"pointer":"",ishot:!0}).data("eventArgs",ja).click(k._attrClickFn=ma).hover(k._attrHoverInFn=la(k),k._attrHoverOutFn=ka(k)).tooltip(x)),
k&&(k.index=c),null===F)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===v&&(D=null);else{G=q.getAxisPosition(F);if(H&&H.enabled)if(R=H.symbol.split("_"),F=k.graphic,U=O={},Q=y.rolloverProperties,ha)da>=r?(R=new ba.Image,R.onload=qa(z,G,H,k,ja,x,Q,c,A),R.onerror=oa(z,G,H,k,ja,x,Q,c),R.src=H.imageUrl):(O=F.data("setRolloverAttr"),
U=F.data("setRolloutAttr"),O&&(O.x=z-.5*O.width,O.y=G-.5*O.height,F&&F.stop(),k.dataLabel&&k.dataLabel.stop(),U.x=z-.5*U.width,U.y=G-.5*U.height,F.attr(U),k.tracker&&k.tracker.attr({x:U.x,y:U.y,fill:fa})));else{if(Q=y.rolloverProperties)U={polypath:[R[1]||2,z,G,N,H.startAngle,0],fill:S(H.fillColor),"stroke-width":H.lineWidth,stroke:S(H.lineColor)},Q=y.rolloverProperties,O={polypath:[Q.sides||2,z,G,Q.radius,Q.startAngle,Q.dip],fill:S(Q.fillColor),"stroke-width":Q.lineWidth,stroke:S(Q.lineColor)};F&&
F.attr({polypath:[R[1]||2,z,G,N,H.startAngle,0],visibility:0===N?"hidden":t}).data("isRealtime",!0).data("alwaysInvisible",0===N).data("setRolloverProperties",Q).data("setRolloverAttr",O).data("setRolloutAttr",U).data("anchorRadius",N).data("anchorHoverRadius",Q&&Q.radius).shadow(na||!1,aa);(A||u)&&k.tracker&&k.tracker.attr({cx:z,cy:G})}k.dataLabel&&k.dataLabel.attrs.text!=B&&k.dataLabel.attr({text:B});ga=d.drawPlotLineLabel(a,e,c,z,G);null!==D?(C=["M",C,w,D],C.push("L",z,w,G),(D=k.connector)&&D.attr({path:C,
"stroke-width":P})):k.connector&&k.connector.attr({path:"M-9999,-9999Lh-1","stroke-width":0});C=z;D=G;G=y.color;R=y.dashStyle||e.dashStyle}return a},updatePlotArea:function(a,e,c){var d=this,b=d.paper,f=d.options,m=f.chart,g=d.logic,p=f.plotOptions.series,n=a.items,k=a.graphics||(a.graphics=[]),l,q=d.xAxis[e.xAxis||0],u=d.yAxis[e.yAxis||0],t=u.axisData.reversed,r=g.isStacked,v=!1!==(f.tooltip||{}).enabled,f="0"===d.definition.chart.drawfullareaborder,g=a.data,y=!1===e.visible?"hidden":"visible",A=
g.length,B=p.connectNullData,x,z,F,C,D,G,P,I=u.max,R=u.min,t=u.getAxisPosition(0<I&&0<R?t?I:R:0>I&&0>R?t?R:I:t?I:0),I=null,H,R=e.lineWidth,N=e.dashStyle,V=S(e.lineColor),U=0,L,W,Q,X,O,Y,Z,$=[],ea=[],ha=[],aa=d.layers,na=aa.dataset=aa.dataset||b.group("dataset-orphan"),aa=aa.tracker,da,ma,ja,la,ka,oa,qa,ta,sa,ua,va,wa,xa,za;u.yBasePos=t;ua=function(a){ca.call(this,d,a)};va=function(a){return function(b){d.hoverPlotAnchor(this,b,"DataPlotRollOver",a,d)}};wa=function(a){return function(b){d.hoverPlotAnchor(this,
b,"DataPlotRollOut",a,d)}};xa=function(b,c,f,g,h,l,m,n,p){return function(){var l=f.imageUrl,q=f.imageScale,r=f.imageAlpha,s=m.imageHoverAlpha,t=m.imageHoverScale,u=this.width*q*.01,w=this.width*t*.01;Y={x:b-this.width*q*.005,y:c-this.height*q*.005,width:u,height:this.height*q*.01,alpha:r};Z={x:b-this.width*t*.005,y:c-this.height*t*.005,width:w,height:this.height*t*.01,alpha:s};s=w>u?Z:Y;g.graphic&&g.graphic.attr(Y).attr("src",l).css({opacity:.01*r}).data("alwaysInvisible",0===q).data("setRolloverProperties",
m).data("setRolloverAttr",Z).data("setRolloutAttr",Y).data("anchorRadius",q).data("anchorHoverRadius",t);if(p||v||m)g.tracker.attr(s).attr({cursor:p?"pointer":"",stroke:fa,"stroke-width":f.lineWidth,fill:fa,ishot:!0,visibility:y}).data("eventArgs",h),d.drawTracker&&d.drawTracker.call(d,a,e,n);(la=g.dataLabel=d.drawPlotLineLabel(a,e,n,b,c))&&k.push(la)}};za=function(b,c,f,g,h,l,m,n){return function(){(la=g.dataLabel=d.drawPlotLineLabel(a,e,n,b,c))&&k.push(la)}};r&&(ja=na.shadows||(na.shadows=b.group("shadows",
na).toBack()));da=na.line||(na.line=b.group("line-connector",na));a.lineShadowLayer||(a.lineShadowLayer=b.group("connector-shadow",da));na=a.anchorShadowLayer||(a.anchorShadowLayer=b.group("anchor-shadow",da));r=a.lineLayer||(a.lineLayer=b.group("connector",da));da=a.anchorLayer||(a.anchorLayer=b.group("anchors",da));if(oa=c.numUpdate||0)for(c=0;c<oa;c+=1)(l=n.shift())&&delete l._state,n.push(l);for(c=0;c<A;c+=1)ka=c+oa,x=g[c],D=x.y,l=h(x.x,c),H=q.getAxisPosition(l),C=x.toolText,z=x.link,F=x.displayValue||
M,L=x.marker||{},W=P=L.radius||0,ma=L.shadow,G=L.lineWidth||0,Q=L.fillColor||"",X=L.lineColor||"",ta=L.imageUrl,sa=!!ta,l=n[c],ka>=A&&(l||(l=n[c]={index:c,graphic:null,connector:null,dataLabel:null,tracker:null}),l.graphic&&"image"===l.graphic.type&&!sa&&(l.graphic&&l.graphic.remove(),l.tracker&&l.tracker.remove(),l.graphic=l.tracker=null),l.graphic||(l.graphic=(sa?b.image(da):b.polypath(da)).attr({visibility:y}),k.push(l.graphic)),sa||l.graphic.attr({fill:S(Q),"stroke-width":G,stroke:S(X)}),l.tracker||
(l.tracker=(sa?b.rect(aa):b.circle(aa)).attr({stroke:fa,fill:fa,visibility:y}),k.push(l.tracker)),P=ya(P,O&&O.radius||0,m.anchorTrackingRadius),qa={index:c,link:z,value:x.y,displayValue:x.displayValue,categoryLabel:x.categoryLabel,toolText:x.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:P,"stroke-width":G,cursor:z?"pointer":"",
ishot:!0}).data("eventArgs",qa).click(l._attrClickFn=ua).hover(l._attrHoverInFn=va(l),l._attrHoverOutFn=wa(l)).tooltip(C)),l&&(l.index=c),null===D?(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===B&&(I=null,0<U&&(1===U?$.splice(-8,8):($=$.concat(ea),$.push("Z")),ea=[]))):(z=x.link,G=x.previousY,P=(P=u.getAxisPosition(G)||null)||t,D=u.getAxisPosition(D+(G||0)),L&&L.enabled&&(G=L.symbol.split("_"),
Q=l.graphic,Y=Z={},O=x.rolloverProperties,sa&&Q?ka>=A?(ka=new ba.Image,ka.onload=xa(H,D,L,l,qa,C,O,c,z),ka.onerror=za(H,D,L,l,qa,C,O,c),ka.src=ta):(Z=Q.data("setRolloverAttr"),Y=Q.data("setRolloutAttr"),Q&&Q.stop(),l.dataLabel&&l.dataLabel.stop(),Z&&(Z.x=H-.5*Z.width,Z.y=D-.5*Z.height,Y.x=H-.5*Y.width,Y.y=D-.5*Y.height,Q.attr(Y),l.tracker&&l.tracker.attr({x:Y.x,y:Y.y,fill:fa}))):(O&&(Y={polypath:[G[1]||2,H,D,W,L.startAngle,0],fill:S(L.fillColor),"stroke-width":L.lineWidth,stroke:S(L.lineColor)},O=
x.rolloverProperties,Z={polypath:[O.sides||2,H,D,O.radius,O.startAngle,O.dip],fill:S(O.fillColor),"stroke-width":O.lineWidth,stroke:S(O.lineColor)}),Q&&Q.attr({polypath:[G[1]||2,H,D,W,L.startAngle,0],visibility:0===W?"hidden":y}).data("isRealtime",!0).data("alwaysInvisible",0===W).data("setRolloverProperties",O).data("setRolloverAttr",Z).data("setRolloutAttr",Y).data("anchorRadius",W).data("anchorHoverRadius",O&&O.radius).shadow(ma||!1,na),(z||v)&&l.tracker&&l.tracker.attr({cx:H,cy:D}))),l.dataLabel&&
l.dataLabel.attrs.text!==F&&l.dataLabel.attr({text:F}),la=d.drawPlotLineLabel(a,e,c,H,D),null===I?(ha.push("M",H,w,D),$.push("M",H,w,P),U=0):ha.push("L",H,w,D),$.push("L",H,w,D),ea.unshift("L",H,w,P),U++,I=D);0<U&&(1===U?$.splice(-8,8):($=$.concat(ea),$.push("Z")));a.graphic||(a.graphic=b.path(void 0).attr({"stroke-dasharray":N,"stroke-width":f?0:R,stroke:V,"stroke-linecap":"round","stroke-linejoin":2<R?"round":"miter"}).shadow(p.shadow&&x.shadow,ja),k.push(a.graphic));a.graphic.attr({path:$});f&&
(a.connector||(a.connector=b.path(r).attr({"stroke-dasharray":N,"stroke-width":R,stroke:V,"stroke-linecap":"round","stroke-linejoin":2<R?"round":"miter"}),k.push(a.connector)),a.connector.attr({path:ha}));return a}},v["renderer.cartesian"])},[3,2,0,"sr2"]]);
