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

 @version 3.10.1
*/
FusionCharts.register("module",["private","modules.renderer.js-charts",function(){function Ka(a){var p={left:a.offsetLeft,top:a.offsetTop};for(a=a.offsetParent;a;)p.left+=a.offsetLeft,p.top+=a.offsetTop,a!==Sa.body&&a!==Sa.documentElement&&(p.left-=a.scrollLeft,p.top-=a.scrollTop),a=a.offsetParent;return p}function sa(a,p){for(var e=[],d=0,u=a.length;d<u;d++)e[d]=p.call(a[d],a[d],d,a);return e}function ga(a,p){var e=p?360:Z;a=(a||0)%e;return 0>a?e+a:a}function Ua(a,p){return a<=$?a:p<=$?p:p>a?0:p}
function Ta(a,p,e,d,u){return ja((p-e[1]-d.top)/u,a-e[0]-d.left)}function Va(a,p,e,d,u,b,v,c,T,t){"object"===typeof a&&(p=a.y,e=a.r,d=a.innerR,u=a.radiusYFactor,b=a.depth,v=a.seriesGroup,c=a.renderer,a=a.x);if(0>u||1<=u)u=.6;a=a||0;p=p||0;e=e||1;d=d||0;b=b||0;this.renderer=c;this.hasOnePoint=T;this.use3DLighting=t;this.cx=a;this.cy=p;this.rx=e;this.ry=e*u;this.radiusYFactor=u;this.isDoughnut=0<d;this.innerRx=d;this.innerRy=d*u;this.depth=b;this.leftX=a-e;this.rightX=a+e;this.leftInnerX=a-d;this.rightInnerX=
a+d;this.depthY=p+b;this.topY=p-this.ry;this.bottomY=this.depthY+this.ry;this.bottomBorderGroup=c.group("bottom-border",v).attr({transform:"t0,"+b});this.outerBackGroup=c.group("outer-back-Side",v);this.slicingWallsBackGroup=c.group("slicingWalls-back-Side",v);this.innerBackGroup=c.group("inner-back-Side",v);this.innerFrontGroup=c.group("inner-front-Side",v);this.slicingWallsFrontGroup=c.group("slicingWalls-front-Side",v);this.topGroup=c.group("top-Side",v);this.moveCmdArr=["M"];this.lineCmdArr=["L"];
this.closeCmdArr=["Z"];this.centerPoint=[a,p];this.leftPoint=[this.leftX,p];this.topPoint=[a,this.topY];this.rightPoint=[this.rightX,p];this.bottomPoint=[a,p+this.ry];this.leftDepthPoint=[this.leftX,this.depthY];this.rightDepthPoint=[this.rightX,this.depthY];this.leftInnerPoint=[this.leftInnerX,p];this.rightInnerPoint=[this.rightInnerX,p];this.leftInnerDepthPoint=[this.leftInnerX,this.depthY];this.rightInnerDepthPoint=[this.rightInnerX,this.depthY];this.pointElemStore=[];this.slicingWallsArr=[];a=
["A",this.rx,this.ry,0,0,1,this.rightX,p];e=["A",this.rx,this.ry,0,0,1,this.leftX,p];d=["A",this.rx,this.ry,0,0,0,this.rightX,this.depthY];u=["A",this.rx,this.ry,0,0,0,this.leftX,this.depthY];b=["A",this.innerRx,this.innerRy,0,0,0,this.rightInnerX,p];p=["A",this.innerRx,this.innerRy,0,0,0,this.leftInnerX,p];v=["A",this.innerRx,this.innerRy,0,0,1,this.rightInnerX,this.depthY];c=["A",this.innerRx,this.innerRy,0,0,1,this.leftInnerX,this.depthY];this.isDoughnut?(this.topBorderPath=this.moveCmdArr.concat(this.leftPoint,
a,e,this.moveCmdArr,this.leftInnerPoint,b,p),this.topPath=this.moveCmdArr.concat(this.leftPoint,a,e,this.lineCmdArr,this.leftInnerPoint,b,p,this.closeCmdArr),this.innerFrontPath=this.moveCmdArr.concat(this.leftInnerPoint,b,this.lineCmdArr,this.rightInnerDepthPoint,c,this.closeCmdArr),this.innerBackPath=this.moveCmdArr.concat(this.rightInnerPoint,p,this.lineCmdArr,this.leftInnerDepthPoint,v,this.closeCmdArr)):this.topBorderPath=this.topPath=this.moveCmdArr.concat(this.leftPoint,a,e,this.closeCmdArr);
this.outerBackPath=this.moveCmdArr.concat(this.leftPoint,a,this.lineCmdArr,this.rightDepthPoint,u,this.closeCmdArr);this.outerFrontPath=this.moveCmdArr.concat(this.rightPoint,e,this.lineCmdArr,this.leftDepthPoint,d,this.closeCmdArr);this.clipPathforOuter=["M",this.leftX,this.topY,"L",this.rightX,this.topY,this.rightX,this.bottomY,this.leftX,this.bottomY,"Z"];this.clipPathforInner=["M",this.leftInnerX,this.topY,"L",this.rightInnerX,this.topY,this.rightInnerX,this.bottomY,this.leftInnerX,this.bottomY,
"Z"];this.clipPathforNoClip=["M",this.leftInnerX,this.topY,"L",this.leftInnerX,this.bottomY,"Z"];this.colorObjs=[]}var ya=this,s=ya.hcLib,na=s.Raphael,x=ya.window,Sa=x.document,Q=s.BLANKSTRING,Ya=s.createTrendLine,l=s.pluck,Ga=s.getValidValue,Na=s.parseTooltext,h=s.pluckNumber,Oa=s.getFirstValue,Za=s.getDefinedColor,oa=s.parseUnsafeString,Aa=s.FC_CONFIG_STRING,Fa=s.extend2,La=s.getDashStyle,L=s.toRaphaelColor,Ia=s.toPrecision,Ma=s.stubFN,pa=s.hasSVG,Ba=s.each,Ea=s.TOUCH_THRESHOLD_PIXELS,Wa=s.CLICK_THRESHOLD_PIXELS,
Da=s.plotEventHandler,b=s.hasTouch?Ea:Wa,c="rgba(192,192,192,"+(s.isIE?.002:1E-6)+")",f=8===x.document.documentMode?"visible":"",k=Math,F=k.sin,M=k.cos,ja=k.atan2,y=k.round,A=k.min,n=k.max,aa=k.abs,K=k.PI,H=k.ceil,r=k.floor,g=k.sqrt,w=K/180,B=180/K,$=Math.PI,Pa=$/2,Z=2*$,ba=$+Pa,va=s.graphics.getColumnColor,ta=s.getFirstColor,la=s.setLineHeight,$a=s.pluckFontSize,ra=s.getFirstAlpha,Y=s.graphics.getDarkColor,da=s.graphics.getLightColor,X=s.graphics.convertColor,ka=s.COLOR_TRANSPARENT,wa=s.POSITION_CENTER,
ha=s.POSITION_TOP,E=s.POSITION_BOTTOM,fa=s.POSITION_RIGHT,ca=s.POSITION_LEFT,ma=s.parsexAxisStyles,ua=s.hashify,q=s.chartAPI,ab=s.graphics.mapSymbolName,Ea=q.singleseries,W=s.COMMASTRING,Ja=s.ZEROSTRING,ia=s.ONESTRING,Qa=s.HUNDREDSTRING,Xa=s.PXSTRING,bb=s.COMMASPACE,Ca=!/fusioncharts\.com$/i.test(x.location.hostname);q("column2d",{standaloneInit:!0,friendlyName:"Column Chart",creditLabel:Ca,rendererId:"cartesian"},q.column2dbase);q("column3d",{friendlyName:"3D Column Chart",defaultSeriesType:"column3d",
defaultPlotShadow:1,is3D:!0,fireGroupEvent:!0,defaultZeroPlaneHighlighted:!1},q.column2d);q("bar2d",{friendlyName:"Bar Chart",isBar:!0,defaultSeriesType:"bar",spaceManager:q.barbase},q.column2d);q("bar3d",{friendlyName:"3D Bar Chart",defaultSeriesType:"bar3d",defaultPlotShadow:1,fireGroupEvent:!0,is3D:!0,defaultZeroPlaneHighlighted:!1},q.bar2d);q("line",{friendlyName:"Line Chart",standaloneInit:!0,creditLabel:Ca,rendererId:"cartesian"},q.linebase);q("area2d",{friendlyName:"Area Chart",standaloneInit:!0,
creditLabel:Ca,rendererId:"cartesian"},q.area2dbase);q("pie2d",{friendlyName:"Pie Chart",standaloneInit:!0,defaultSeriesType:"pie",defaultPlotShadow:1,reverseLegend:1,alignCaptionWithCanvas:0,sliceOnLegendClick:!0,rendererId:"pie",point:function(a,p,e,d,u){a=u[Aa];var b=this.colorManager,v=a.is3d,c=h(d.plotborderthickness),T=h(c,v?.1:1),t=h(d.enablemultislicing,1),U=h(d.use3dlighting,1),m=U?h(d.radius3d,d["3dradius"],90):100,f=h(d.showzeropies,1),q=h(d.showpercentintooltip,1),Ha=h(d.showlabels,1),
N=h(d.showvalues,1),k=h(d.showpercentvalues,d.showpercentagevalues,0),D=l(d.tooltipsepchar,d.hovercapsepchar,bb),xa=l(d.labelsepchar,D),qa=l(d.plotbordercolor,d.piebordercolor),ea=u[Aa].numberFormatter,za=e.length,F=h(d.plotborderdashed,0),I=h(d.plotborderdashlen,5),C=h(d.plotborderdashgap,4),G=h(d.showvalueinlegend,0),Ra=h(d.showlabelinlegend,1),g=h(d.valuebeforelabelinlegend,0),M=h(d.showvalueaspercentinlegend,1),J=h(d.reverseplotorder,0),R=l(d.legendsepchar,", "),S=u.plotOptions.series.dataLabels.style,
y=0,r=[],O,z,P,n,A,V,x,H,w,B,$,E,ca,ja,L,aa,s,Y,K,ba=-1,Z;s=p.centerLabelConfig={label:oa(l(d.defaultcenterlabel,"")),font:l(d.centerlabelfont,S.fontFamily),fontSize:h(d.centerlabelfontsize,parseInt(S.fontSize,10)),color:ta(l(d.centerlabelcolor,d.valuefontcolor,a.inCanvasStyle.color,"555555")),alpha:h(d.centerlabelalpha,100),bold:h(d.centerlabelbold,S.fontWeight),italic:h(d.centerlabelitalic,S.style),bgColor:l(d.centerlabelbgcolor,""),bgAlpha:h(d.centerlabelbgalpha,100),borderColor:l(d.centerlabelbordercolor,
S.borderColor),borderAlpha:h(d.centerlabelborderalpha,100),borderThickness:h(d.centerlabelborderthickness,S.borderThickness),borderRadius:h(d.centerlabelborderradius,S.borderRadius),textPadding:h(d.centerlabeltextpadding,S.borderPadding),padding:h(d.centerlabelpadding,2),bgOval:h(d.centerlabelbgoval,0),shadow:h(d.showcenterlabelshadow,0),hoverColor:d.centerlabelhovercolor&&ta(l(d.centerlabelhovercolor)),hoverAlpha:h(d.centerlabelhoveralpha),toolText:oa(l(d.centerlabeltooltext,""))};100<m&&(m=100);
0>m&&(m=0);h(d.showlegend,0)&&(u.legend.enabled=!0,u.legend.reversed=!Boolean(h(d.reverselegend,0)),p.showInLegend=!0);for(z=0;z<za;z+=1)n=e[z],P=ea.getCleanValue(n.value,!0),null===P||!f&&0===P||(r.push(n),y+=P);0===y&&(r=[]);p.enableRotation=1<r.length?h(d.enablerotation,1):0;p.alphaAnimation=h(d.alphaanimation,1);p.is3D=v;p.placeLabelsInside=d.placevaluesinside;p.use3DLighting=U;p.pieYScale=h(d.pieyscale,40);1>p.pieYScale&&(p.pieYScale=1);100<=p.pieYScale&&(p.pieYScale=80);p.pieYScale/=100;p.pieSliceDepth=
h(d.pieslicedepth,15);1>p.pieSliceDepth&&(p.pieSliceDepth=1);p.managedPieSliceDepth=p.pieSliceDepth;p.enableMultiSlicing=!!t;v&&d.showplotborder!=ia&&!c&&(p.showBorderEffect=1);for(z=r.length-1;0<=z;--z){n=r[z];P=ea.getCleanValue(n.value,!0);O=oa(l(n.label,n.name,Q));za=l(n.color,b.getPlotColor(z));V=l(n.alpha,d.plotfillalpha);x=l(n.bordercolor,qa);H=l(n.borderalpha,d.plotborderalpha,d.pieborderalpha);v&&(x||void 0!==H)&&(p.showBorderEffect=0);x=l(x,da(za,v?90:25)).split(W)[0];H=d.showplotborder==
Ja?Ja:l(H,V,"80");V=l(V,Qa);f={opacity:Math.max(V,H)/100};if(e=Boolean(h(n.issliced,d.issliced,0)))t||(-1!==ba&&(p.data[r.length-ba-1].sliced=!1),ba=z),a.preSliced=e;c=(L=h(n.dashed,F))?La(l(n.dashlen,I),l(n.dashgap,C),T):"none";A=Ga(oa(l(n.tooltext,a.tooltext)));$=ea.percentValue(P/y*100);E=ea.dataLabels(P)||Q;B=1===h(n.showlabel,Ha)?O:Q;w=1===(ca=h(n.showvalue,N))?1===k?$:E:Q;ja=Ga(oa(n.displayvalue));Z=l(ja,O+xa+(k?$:E),Q);w=void 0!==ja&&ca?ja:w!==Q&&B!==Q?B+xa+w:l(B,w);void 0!==A?A=Na(A,[1,2,
3,5,6,7,14,24,25],{formattedValue:E,label:O,yaxisName:oa(d.yaxisname),xaxisName:oa(d.xaxisname),percentValue:$,sum:ea.dataLabels(y),unformattedSum:y},n,d):(A=O,ca=q?$:E,A=A!=Q?A+D+ca:ca);ca=Ra?O:Q;G&&(aa=M?ea.legendPercentValue(P/y*100):ea.legendValue(P),ca=g?aa+(ca&&R+ca):(ca&&ca+R)+aa);L=this.pointHoverOptions(n,p,{plotType:"pie",use3DLighting:U,color:za,alpha:V,borderWidth:T,borderColor:x,borderAlpha:H,borderDashed:L,borderDashGap:l(n.dashgap,C),borderDashLen:h(n.dashlen,I),radius3D:m,shadow:f});
O={label:l((Y=n.centerlabel||d.centerlabel)&&this.replaceMacros(Y,["\\$value","\\$percentValue","\\$displayValue","\\$label"],[E,$,void 0===ja?"":ja,O]),""),font:s.font,fontSize:h(n.centerlabelfontsize,s.fontSize),color:ta(l(n.centerlabelcolor,s.color)),alpha:h(n.centerlabelalpha,s.alpha),bold:h(n.centerlabelbold,s.bold),italic:h(n.centerlabelitalic,s.italic),bgColor:l(n.centerlabelbgcolor,s.bgColor),bgAlpha:h(n.centerlabelbgalpha,s.bgAlpha),borderColor:l(n.centerlabelbordercolor,s.borderColor),borderAlpha:h(n.centerlabelborderalpha,
s.borderAlpha),borderThickness:s.borderThickness,borderRadius:s.borderRadius,textPadding:s.textPadding,padding:s.padding,bgOval:s.bgOval,shadow:s.shadow,hoverColor:(K=l(n.centerlabelhovercolor,s.hoverColor))&&ta(K),hoverAlpha:h(n.centerlabelhoveralpha,s.hoverAlpha),toolText:l(n.centerlabeltooltext,"")};p.data.push({displayValue:w,displayValueArgs:Z,style:ma(n,{},d,S,za),categoryLabel:B,showInLegend:ca!==Q,y:P,name:ca,legendCosmetics:this.parseLegendOptions(d,n),shadow:f,toolText:A,color:this.getPointColor(za,
V,m),_3dAlpha:V,borderColor:X(x,H),borderWidth:T,link:Ga(n.link),sliced:e,dashStyle:c,doNotSlice:l(d.enableslicing,ia)!=ia,hoverEffects:L.enabled&&L.options,rolloverProperties:L.enabled&&L.rolloverOptions,centerLabelConfig:O,radius3D:m})}J&&(p.reversePlotOrder=!0,p.data&&p.data.reverse());p.valueTotal=y;u.legend.enabled=d.showlegend===ia?!0:!1;p.startAngle=h(d.startingangle,0);u.chart.startingAngle=l(1<r.length?d.startingangle:0,0);return p},replaceMacros:function(a,p,e){for(var d=p.length||0,u;d--;)u=
new RegExp(p[d],"gi"),a=a.replace(u,e[d]);return a},containsMacro:function(a,p){for(var e=p.length||0,d;e--;)if(d=new RegExp(p[e],"gi"),d=a.match(d))return!0;return!1},getPointColor:function(a,p,e){var d,u;a=ta(a);p=ra(p);100>e&&pa?(d=Math.floor(85*(100-.35*e))/100,d=Y(a,d),u=Math.floor(50*(100+e))/100,a=da(a,u),p={FCcolor:{color:a+W+d,alpha:p+W+p,ratio:e+","+(100-e),radialGradient:!0,gradientUnits:"userSpaceOnUse"}}):p={FCcolor:{color:a+W+a,alpha:p+W+p,ratio:"0,100"}};return p},configureAxis:function(a,
p){var e=0,d=a[Aa],u=p.chart,b=a.xAxis.labels.style,v,c;v=(v=Oa(u.valuebordercolor,Q))?X(v,h(u.valueborderalpha,u.valuealpha,100)):Q;b={fontFamily:l(u.valuefont,b.fontFamily),fontSize:l(u.valuefontsize,parseInt(b.fontSize,10))+Xa,lineHeight:b.lineHeight,color:X(l(u.valuefontcolor,b.color),h(u.valuefontalpha,u.valuealpha,100)),fontWeight:h(u.valuefontbold)?"bold":"normal",fontStyle:h(u.valuefontitalic)?"italic":"normal",border:v||u.valuebgcolor?h(u.valueborderthickness,1)+"px solid":void 0,borderColor:v,
borderThickness:h(u.valueborderthickness,1),borderPadding:h(u.valueborderpadding,2),borderRadius:h(u.valueborderradius,0),backgroundColor:u.valuebgcolor?X(u.valuebgcolor,h(u.valuebgalpha,u.valuealpha,100)):Q,borderDash:h(u.valueborderdashed,0)?La(h(u.valueborderdashlen,4),h(u.valueborderdashgap,2),h(u.valueborderthickness,1)):"none"};a.plotOptions.series.dataLabels.style=b;delete d.x;delete d[0];delete d[1];a.chart.plotBorderColor=a.chart.plotBackgroundColor=ka;d=d.pieDATALabels=[];if(1===a.series.length&&
(c=a.series[0].data)&&0<(e=a.series[0].data.length)&&a.plotOptions.series.dataLabels.enabled)for(;e--;)c[e]&&void 0!==Ga(c[e].displayValue)&&d.push({text:c[e].displayValue,style:c[e].style})},spaceManager:function(a,p,e,d){var u=a[Aa],b=u.is3d,v=this.name,c=this.colorManager,T=this.smartLabel||u.smartLabel,t=h(u.pieDATALabels&&u.pieDATALabels.length,0),U=0,m=p.chart,f=h(m.managelabeloverflow,0),q=h(m.slicingdistance),Ha=u.preSliced||m.enableslicing!==Ja||m.showlegend===ia&&m.interactivelegend!==Ja?
aa(h(q,20)):0,N=h(m.pieradius,0),k=h(m.enablesmartlabels,m.enablesmartlabel,1),D=k?h(m.skipoverlaplabels,m.skipoverlaplabel,1):0,xa=h(m.issmartlineslanted,1),qa=t?h(m.labeldistance,m.nametbdistance,5):Ha,ea=h(m.smartlabelclearance,5);e-=a.chart.marginRight+a.chart.marginLeft;var za=d-(a.chart.marginTop+a.chart.marginBottom);d=A(za,e);var F=l(m.smartlinecolor,c.getColor("plotFillColor")),I=h(m.smartlinealpha,100),C=h(m.smartlinethickness,.7),c=a.plotOptions.series.dataLabels,G=c.style,Ra=t?h(parseInt(G.lineHeight,
10),12):0,G=a.series[0]||{},g=G.pieYScale,M=G.pieSliceDepth;d=0===N?.15*d:N;var J=0,J=2*d;c.placeLabelsInside=/doughnut2d/.test(v)?0:1===t&&1;c.connectorWidth=C;c.connectorPadding=h(m.connectorpadding,5);c.connectorColor=X(F,I);t&&(k&&(qa=ea),qa+=Ha);ea=J+2*(Ra+qa);za-=this.titleSpaceManager(a,p,e,n(ea<za?za-ea:za/2,parseFloat(a.title.style.lineHeight,10)));m.showlegend===ia&&(l(m.legendposition,E).toLowerCase()!==fa?za-=this.placeLegendBlockBottom(a,p,e,za/2,!0):e-=this.placeLegendBlockRight(a,p,
e/3,za,!0));if(1!==t)for(;t--;)T.setStyle(u.pieDATALabels[t].style),p=T.getOriSize(u.pieDATALabels[t].text),U=n(U,p.width);0===N&&(b?(za-=M,J=A(e/2-U-Ha,(za/2-Ra)/g)-qa):J=A(e/2-U-Ha,za/2-Ra)-qa,J>=d?d=J:q||(Ha=qa=n(A(qa-(d-J),Ha),10)));b&&(t=za-2*(d*g+Ra),M>t&&(G.managedPieSliceDepth=M-t));a.plotOptions.pie3d.slicedOffset=a.plotOptions.pie.slicedOffset=Ha;a.plotOptions.pie3d.size=a.plotOptions.pie.size=2*d;c.distance=qa;c.isSmartLineSlanted=xa;c.enableSmartLabels=k;c.skipOverlapLabels=D;c.manageLabelOverflow=
f;if("doughnut2d"===v||"doughnut3d"===v)if(v=h(m.doughnutradius,0),t=(t=h(m.use3dlighting,1))?h(m.radius3d,m["3dradius"],50):100,100<t&&(t=100),0>t&&(t=0),m=0===v||v>=d?d/2:v,a.plotOptions.pie3d.innerSize=a.plotOptions.pie.innerSize=2*m,0<t&&pa&&(m=parseInt(m/d*100,10),v=(100-m)/2,t=parseInt(v*t/100,10),m=m+W+t+W+2*(v-t)+W+t,a.series[0]&&a.series[0].data))for(f=a.series[0].data,a=0,t=f.length;a<t;a+=1)v=f[a],v.color.FCcolor&&(v.color.FCcolor.ratio=m,v.rolloverProperties.color&&(v.rolloverProperties.color.FCcolor.ratio=
m))},creditLabel:Ca,eiMethods:{isPlotItemSliced:function(a){var p=this.jsVars.hcObj,e,d,u;return p&&p.datasets&&p.datasets[0]&&(e=p.datasets[0].data)&&(u=e.length)&&e[a=u-a-1]&&(d=e[a].plot)&&d.sliced},slicePlotItem:function(a,p){var e=this.jsVars.hcObj,d,u,b,v;return e&&e.datasets&&(d=e.datasets[0])&&(u=d.data)&&(v=u.length)&&u[a=d.reversePlotOrder?a:v-a-1]&&(b=u[a].plot)&&((!!p!==b.sliced||void 0===p)&&e.plotGraphicClick.call(b)||b.sliced)},centerLabel:function(a,p){var e=this.jsVars.hcObj,d=e.options,
u=d.series[0],d=d.plotOptions.pie.innerSize,b=e.canvasLeft+.5*e.canvasWidth,v=e.canvasTop+.5*e.canvasHeight,c=u.centerLabelConfig,T;if("object"!==typeof p)p=c;else for(T in c)void 0===p[T]&&(p[T]=c[T]);p.label=a;u.centerLabelConfig=p;d&&e.drawDoughnutCenterLabel(a||"",b,v,d,d,p,!0)},startingAngle:function(a,p){var e=this.jsVars.hcObj,d=e.datasets[0].plot,u="pie"===e.options.chart.defaultSeriesType,b,v=(b=e.datasets[0].startAngle)*(u?-B:1)+(0>(u?-1:1)*b?360:0);if(!isNaN(a)){if(d.singletonCase||d.isRotating)return;
a+=p?v:0;u?((u=e.options.series[0]).startAngle=-a*w,e.rotate(d,u)):e.rotate(a);v=a}return y(100*((v%=360)+(0>v?360:0)))/100}}},Ea);q.pie2d.eiMethods.togglePieSlice=q.pie2d.eiMethods.sliceDataItem=q.pie2d.eiMethods.slicePlotItem;q.pie2d.eiMethods.enableSlicingMovement=q.pie2d.eiMethods.enablelink=function(){ya.raiseWarning(this,"1301081430","run","JSRenderer~enablelink()","Method deprecated.")};q("pie3d",{friendlyName:"3D Pie Chart",defaultSeriesType:"pie3d",rendererId:"pie3d",creditLabel:Ca,fireGroupEvent:!0,
getPointColor:function(a){return a},defaultPlotShadow:0},q.pie2d);q("doughnut2d",{friendlyName:"Doughnut Chart",getPointColor:function(a,p,e){var d;a=ta(a);p=ra(p);100>e&&pa?(d=Y(a,r(100*(85-.2*(100-e)))/100),a=da(a,r(100*(100-.5*e))/100),p={FCcolor:{color:d+","+a+","+a+","+d,alpha:p+","+p+","+p+","+p,radialGradient:!0,gradientUnits:"userSpaceOnUse",r:e}}):p={FCcolor:{color:a+","+a,alpha:p+","+p,ratio:"0,100"}};return p}},q.pie2d);q("doughnut3d",{friendlyName:"3D Doughnut Chart",defaultSeriesType:"pie3d",
rendererId:"pie3d",fireGroupEvent:!0,getPointColor:q.pie3d,defaultPlotShadow:0},q.doughnut2d);q("pareto2d",{standaloneInit:!0,friendlyName:"Pareto Chart",point:function(a,p,e,d,u){a=e.length;var b=0,v=0,c={},T=this.colorManager,t=/3d$/.test(u.chart.defaultSeriesType),U=this.isBar,m=l(360-d.plotfillangle,90),f=l(d.showplotborder,t?Ja:ia)===ia?t?1:h(d.plotborderthickness,1):0,q=u.chart.useRoundEdges,k=l(d.tooltipsepchar,", "),N=l(d.plotbordercolor,T.getColor("plotBorderColor")).split(W)[0],n=d.showplotborder==
Ja?Ja:l(d.plotborderalpha,d.plotfillalpha,Qa),D=u.xAxis,xa=h(d.showcumulativeline,1),qa=u[Aa],ea=qa.axisGridManager,za=qa.x,M=d.showtooltip!=Ja,I=[],C=h(d.use3dlighting,1),G=u[Aa].numberFormatter,Ra=h(d.showlinevalues,d.showvalues),g=h(d.plotborderdashed,0),F,J=h(d.plotborderdashlen,5),y=h(d.plotborderdashgap,4),r=oa(d.xaxisname),A=oa(d.yaxisname),s=qa.numberFormatter,O=p,z,P,H,x,V,w,ca,B,$,L,E,ja,aa,Y,ba,K,Z,X,ua,da,fa,ka,ma,Pa,la,n=t?d.showplotborder?n:Ja:n,N=t?l(d.plotbordercolor,"#FFFFFF"):N;
H=h(d.useplotgradientcolor,1)?Za(d.plotgradientcolor,T.getColor("plotGradientColor")):Q;for(ba=P=0;P<a;P+=1)fa=e[P],e[P].vline?ea.addVline(D,fa,ba,u):(z=G.getCleanValue(fa.value,!0),null!==z&&(v+=fa.value=z,I.push(fa),ba+=1));a=I.length;I.sort(function(a,e){return e.value-a.value});xa&&0<v?(L=h(d.linedashed,0),K=ta(l(d.linecolor,T.getColor("plotBorderColor"))),c=l(d.linealpha,100),E=h(d.linedashlen,5),aa=h(d.linedashgap,4),P=h(d.linethickness,2),Y={opacity:c/100},da=l(d.valueposition,"auto"),ka=h(d.drawanchors,
d.showanchors),void 0===ka&&(ka=c!=Ja),z=h(d.anchorborderthickness,1),F=h(d.anchorsides,0),ua=h(d.anchorradius,3),X=ta(l(d.anchorbordercolor,K)),e=ta(l(d.anchorbgcolor,T.getColor("anchorBgColor"))),Z=ra(l(d.anchoralpha,Qa)),ba=ra(l(d.anchorbgalpha,Z))*Z/100,L=L?La(E,aa,P):"none",aa=Boolean(h(fa.anchorshadow,d.anchorshadow,0)),E=this.pointHoverOptions(fa,p,{plotType:"anchor",anchorBgColor:e,anchorAlpha:Z,anchorBgAlpha:ba,anchorAngle:l(d.anchorstartangle,90),anchorBorderThickness:z,anchorBorderColor:X,
anchorBorderAlpha:Z,anchorSides:F,anchorRadius:ua,shadow:ja}),c={yAxis:1,data:[],type:"line",color:{FCcolor:{color:K,alpha:c}},lineWidth:P,marker:{enabled:ka,shadow:aa&&1<=ua?{opacity:Z/100}:!1,fillColor:{FCcolor:{color:e,alpha:ba}},lineColor:{FCcolor:{color:X,alpha:Z}},lineWidth:z,radius:ua,symbol:ab(F),startAngle:l(d.anchorstartangle,90)}},O=[O,c],qa[1]||(qa[1]={}),qa[1].stacking100Percent=!0):("1"!==d.showsecondarylimits&&(d.showsecondarylimits="0"),"1"!==d.showdivlinesecondaryvalue&&(d.showdivlinesecondaryvalue=
"0"));qa[1]||(qa[1]={});qa[1].stacking100Percent=!0;for(P=0;P<a;P+=1)fa=I[P],ja=h(fa.showlabel,d.showlabels,1),e=oa(ja?Oa(fa.label,fa.name):Q),ca=l(fa.color,T.getPlotColor()),ea.addXaxisCat(D,P,P,e,fa,{},d,ca),b+=z=fa.value,x=h(fa.dashed,g),V=l(fa.dashgap,y),w=l(fa.dashlen,J),B=l(fa.alpha,d.plotfillalpha,Qa),$=l(fa.ratio,d.plotfillratio),ja={opacity:B/100},ma=l(fa.alpha,n)+Q,ka=va(ca+W+H.replace(/,+?$/,""),B,$,m,q,N+Q,ma+Q,U,t),F=x?La(w,V,f):"none",ba=b/v*100,X=G.percentValue(ba),Z=null===z?z:s.dataLabels(z),
K=Ga(oa(fa.displayvalue)),ua=h(fa.showvalue,qa.showValues)?void 0!==K?K:Z:Q,aa=l(K,Z,Q),qa.showTooltip?void 0!==(K=Ga(oa(l(fa.tooltext,qa.tooltext))))?(Pa={formattedValue:Z,label:e,yaxisName:A,xaxisName:r,cumulativeValue:b,cumulativeDataValue:s.dataLabels(b),cumulativePercentValue:X,sum:s.dataLabels(v),unformattedSum:v},la=[1,2,3,5,6,7,20,21,22,23,24,25],K=Na(K,la,Pa,fa,d)):K=null===Z?!1:e!==Q?e+qa.tooltipSepChar+Z:Z:K=Q,V=this.pointHoverOptions(fa,p,{plotType:"column",is3d:t,isBar:U,use3DLighting:C,
isRoundEdged:q,color:ca,gradientColor:H,alpha:B,ratio:$,angle:m,borderWidth:f,borderColor:N,borderAlpha:ma,borderDashed:x,borderDashGap:V,borderDashLen:w,shadow:ja}),x=l(fa.link),p.data.push({link:x,toolText:K,displayValue:ua,displayValueArgs:aa,categoryLabel:e,y:z,shadow:ja,color:ka[0],borderColor:ka[1],borderWidth:f,use3DLighting:C,dashStyle:F,tooltipConstraint:this.tooltipConstraint,hoverEffects:V.enabled&&V.options,rolloverProperties:V.enabled&&V.rolloverOptions}),this.pointValueWatcher(u,z),
xa&&(z=Ga(oa(l(fa.cumulativeplottooltext,d.cumulativeplottooltext))),ja=1==Ra?X:0===Ra||ua===Q?Q:X,ua=X,K=M?void 0!==z?Na(z,la||[1,2,3,5,6,7,20,21,22,23,24,25],Pa||{formattedValue:Z,label:e,yaxisName:A,xaxisName:r,cumulativeValue:b,cumulativeDataValue:s.dataLabels(b),cumulativePercentValue:X,sum:s.dataLabels(v),unformattedSum:v},fa,d):(e!==Q?e+k:Q)+X:Q,c.data.push({shadow:Y,color:c.color,marker:c.marker,y:ba,toolText:K,displayValue:ja,displayValueArgs:ua,valuePosition:da,categoryLabel:e,link:x,dashStyle:L,
hoverEffects:E.enabled&&E.options,rolloverProperties:E.enabled&&E.rolloverOptions}));za.catCount=a;return O},defaultSeriesType:"column",isDual:!0,creditLabel:Ca,rendererId:"cartesian"},Ea);q("pareto3d",{friendlyName:"3D Pareto Chart",defaultSeriesType:"column3d",fireGroupEvent:!0,defaultPlotShadow:1,is3D:!0},q.pareto2d);q("_mscolumn2d",{standaloneInit:!0,friendlyName:"Multi-series Column Chart",creditLabel:Ca,rendererId:"cartesian"},q.mscolumn2dbase);q("mscolumn2d",{standaloneInit:!0,friendlyName:"Multi-series Column Chart",
creditLabel:Ca,newArchitecture:!0,rendererId:"newcartesian"},q.mscolumn2dbase);q("mscolumn3d",{defaultSeriesType:"column3d",friendlyName:"Multi-series 3D Column Chart",defaultPlotShadow:1,fireGroupEvent:!0,is3D:!0,defaultZeroPlaneHighlighted:!1},q.mscolumn2d);q("msbar2d",{friendlyName:"Multi-series Bar Chart",isBar:!0,newArchitecture:!0,defaultSeriesType:"bar",spaceManager:q.barbase},q.mscolumn2d);q("msbar3d",{defaultSeriesType:"bar3d",friendlyName:"Multi-series 3D Bar Chart",fireGroupEvent:!0,defaultPlotShadow:1,
is3D:!0,defaultZeroPlaneHighlighted:!1},q.msbar2d);q("_msline",{standaloneInit:!0,friendlyName:"Multi-series Line Chart",creditLabel:Ca,rendererId:"cartesian"},q.mslinebase);q("_msarea",{standaloneInit:!0,friendlyName:"Multi-series Area Chart",creditLabel:Ca,rendererId:"cartesian"},q.msareabase);q("msarea",{standaloneInit:!0,friendlyName:"Multi-series Area Chart",creditLabel:Ca,newArchitecture:!0,rendererId:"newareacartesian"},q.msareabase);q("msline",{standaloneInit:!0,friendlyName:"Multi-series Line Chart",
creditLabel:Ca,newArchitecture:!0,rendererId:"newlinecartesian"},q.mslinebase);q("stackedarea2d",{friendlyName:"New Stacked Area Chart",isStacked:!0,areaAlpha:100,rendererId:"newareacartesian",newArchitecture:!0},q.msarea);q("_stackedcolumn2d",{friendlyName:"Stacked Column Chart",isStacked:!0},q._mscolumn2d);q("stackedcolumn2d",{friendlyName:"Stacked Column Chart",isStacked:!0,rendererId:"newcartesian",newArchitecture:!0},q.mscolumn2d);q("stackedcolumn3d",{friendlyName:"3D Stacked Column Chart",isStacked:!0},
q.mscolumn3d);q("stackedbar2d",{friendlyName:"Stacked Bar Chart",isStacked:!0,newArchitecture:!0},q.msbar2d);q("stackedbar3d",{friendlyName:"3D Stacked Bar Chart",isStacked:!0,newArchitecture:!0},q.msbar3d);q("_stackedarea2d",{friendlyName:"Stacked Area Chart",isStacked:!0,areaAlpha:100,showSum:0},q._msarea);q("marimekko",{friendlyName:"Marimekko Chart",isValueAbs:!0,distributedColumns:!0,isStacked:!0,xAxisMinMaxSetter:Ma,postSeriesAddition:function(a,p){var e=a[Aa],d=0,u=a.xAxis,b=100/e.marimekkoTotal,
v=[],c=a.series,T=0,t=Fa({},a.plotOptions.series.dataLabels.style),U=parseInt(t.fontSize,10),m=h(p.chart.plotborderthickness,1),f=a.chart.rotateValues,q=h(p.chart.rotatexaxispercentvalues,0),k=-.5*m-(m%2+(q?1:0)+!a.chart.plotBorderWidth),N=q?U/2*1.2:0,n=f?270:0,D=e[0],xa=D.stacking100Percent,qa=!xa,ea=e.inCanvasStyle,l=this.numberFormatter,F=p.categories&&p.categories[0]&&p.categories[0].category||[],I=0,C=[],G,M,g,A,J,R,S,s,x,O,m=[];e.isXYPlot=!0;e.distributedColumns=!0;u.min=0;u.max=100;u.labels.enabled=
!1;u.gridLineWidth=0;u.alternateGridColor=ka;G=D.stack;p.chart.interactivelegend="0";D=0;for(M=a.xAxis.plotLines.length;D<M;D+=1)g=u.plotLines[D],g.isGrid&&(g.isCat=!0,v[g.value]=g,g._hideLabel=!0);for(D=M=0;D<F.length;D+=1)F[D].vline||(I+=C[M]=l.getCleanValue(F[D].widthpercent||0),M+=1);g=G.floatedcolumn&&G.floatedcolumn[0]||[];if(100===I&&(g&&g.length)!==M)for(;M--;)g[M]||(g[M]={p:null});I=y(I);if(g)for(J=0,M=g.length;J<M;){O=g[J];d+=A=O&&O.p||0;S=100===I?C[J]:A*b;R=T+S/2;s=T+S;m.push(s);for(D=
0;D<c.length;D+=1)if(a.series[D].visible=!0,F=a.series[D].data[J],F._FCX=T,F._FCW=S,x=l.percentValue(F.y/A*100),F.toolText=Na(F.toolText,[14,24,25,111,112],{xAxisPercentValue:l.percentValue(S),percentValue:x,sum:l.dataLabels(A),unformattedSum:A}),xa){if(F.y||0===F.y)G=F.y/A*100,F.y=G,F.showPercentValues&&(F.displayValue=x),e.showPercentValues&&(F.displayValueArgs=x);if(F.previousY||0===F.previousY)F.previousY=F.previousY/A*100}e.showStackTotal&&a.xAxis.plotLines.push({value:R,width:0,isVline:qa,isTrend:!qa,
_isStackSum:1,zIndex:4,label:{align:wa,textAlign:wa,rotation:n,style:t,verticalAlign:ha,offsetScale:qa?0>A?O.n:O.p:void 0,offsetScaleIndex:0,y:0>A?270===f?4:U:-4,x:0,text:l.yAxis(Ia(A,10))}});v[J]&&(v[J].value=R,v[J]._weight=S,v[J]._hideLabel=!1);J+=1;e.showXAxisPercentValues&&J<M&&a.xAxis.plotLines.push({value:s,width:0,isVine:!0,label:{align:wa,textAlign:q?ca:wa,rotation:q?270:0,backgroundColor:"#ffffff",backgroundOpacity:1,borderWidth:"1px",borderType:"solid",borderColor:ea.color,style:{color:ea.color,
fontSize:ea.fontSize,fontFamily:ea.fontFamily,lineHeight:ea.lineHeight},verticalAlign:E,y:k,x:N,text:this.numberFormatter.percentValue(s)},zIndex:5});T=s}J=0;for(M=v.length;J<M;J+=1)v[J]&&v[J]._hideLabel&&(v[J].value=null);D=0;for(M=a.xAxis.plotLines.length;D<M;D+=1)if(g=u.plotLines[D],g.isVline&&!g._isStackSum&&(e=g.value))e-=.5,d=m[r(e)],b=m[H(e)],g.value=d+(b-d)*(e-r(e))},defaultSeriesType:"floatedcolumn"},q._stackedcolumn2d);q("msstackedcolumn2d",{friendlyName:"Multi-series Stacked Column Chart",
msstackedcolumn2d:!0,series:function(a,p,e){var d,u,b,v,c=p[Aa],T=0,t,U;t=[];var m;p.legend.enabled=Boolean(h(a.chart.showlegend,1));if(a.dataset&&0<a.dataset.length){this.categoryAdder(a,p);d=0;for(u=a.dataset.length;d<u;d+=1)if(m=a.dataset[d].dataset)for(b=0,v=m.length;b<v;b+=1,T+=1)t={__positiionIndex:d,__stackIndex:b,hoverEffects:this.parseSeriesHoverOptions(a,p,m[b],e),visible:!h(m[b].initiallyhidden,0),data:[],numColumns:u,columnPosition:d},U=Math.min(c.oriCatTmp.length,m[b].data&&m[b].data.length),
t=this.point(e,t,m[b],a.chart,p,U,T,d),p.series.push(t);if(this.isDual&&a.lineset&&0<a.lineset.length)for(b=0,v=a.lineset.length;b<v;b+=1,T+=1)d=a.lineset[b],t={hoverEffects:this.parseSeriesHoverOptions(a,p,d,e),visible:!h(d.initiallyhidden,0),data:[],yAxis:1,type:"line"},U=Math.min(c.oriCatTmp.length,d.data&&d.data.length),p.series.push(q.msline.point.call(this,"msline",t,d,a.chart,p,U,T));this.configureAxis(p,a);a.trendlines&&Ya(a.trendlines,p.yAxis,p[Aa],this.isDual,this.isBar)}},postSpaceManager:function(a,
p,e){var d=a[Aa],b,c,v;q.base.postSpaceManager.call(this);if(this.isStacked&&d.showStackTotal&&(b=a.chart,a=(p=a.xAxis)&&p.plotLines,b=e-b.marginLeft-b.marginRight,e=d.plotSpacePercent,d=d[0].stack,d=d.column&&d.column.length,c=(1-2*e)/d,p=b/(p.max-p.min),50<p*c&&.1==e))for(p=50/p,e=a&&a.length,d=-((d-1)/2)*p,v=0;v<e;v+=1)c=a[v],c._isStackSum&&(b=c._catPosition+(d+p*c._stackIndex),c.value=b)}},q.stackedcolumn2d);q("_msstackedcolumn2d",{friendlyName:"Multi-series Stacked Column Chart",series:function(a,
p,e){var d,b,c,v,f=p[Aa],T=0,t,U;t=[];var m;p.legend.enabled=Boolean(h(a.chart.showlegend,1));if(a.dataset&&0<a.dataset.length){this.categoryAdder(a,p);d=0;for(b=a.dataset.length;d<b;d+=1)if(m=a.dataset[d].dataset)for(c=0,v=m.length;c<v;c+=1,T+=1)t={hoverEffects:this.parseSeriesHoverOptions(a,p,m[c],e),visible:!h(m[c].initiallyhidden,0),data:[],numColumns:b,columnPosition:d},U=Math.min(f.oriCatTmp.length,m[c].data&&m[c].data.length),t=this.point(e,t,m[c],a.chart,p,U,T,d),p.series.push(t);if(this.isDual&&
a.lineset&&0<a.lineset.length)for(c=0,v=a.lineset.length;c<v;c+=1,T+=1)d=a.lineset[c],t={hoverEffects:this.parseSeriesHoverOptions(a,p,d,e),visible:!h(d.initiallyhidden,0),data:[],yAxis:1,type:"line"},U=Math.min(f.oriCatTmp.length,d.data&&d.data.length),p.series.push(q.msline.point.call(this,"msline",t,d,a.chart,p,U,T));this.configureAxis(p,a);a.trendlines&&Ya(a.trendlines,p.yAxis,p[Aa],this.isDual,this.isBar)}},postSpaceManager:function(a,p,e){var d=a[Aa],b,c,v;q.base.postSpaceManager.call(this);
if(this.isStacked&&d.showStackTotal&&(b=a.chart,a=(p=a.xAxis)&&p.plotLines,b=e-b.marginLeft-b.marginRight,e=d.plotSpacePercent,d=d[0].stack,d=d.column&&d.column.length,c=(1-2*e)/d,p=b/(p.max-p.min),50<p*c&&.1==e))for(p=50/p,e=a&&a.length,d=-((d-1)/2)*p,v=0;v<e;v+=1)c=a[v],c._isStackSum&&(b=c._catPosition+(d+p*c._stackIndex),c.value=b)}},q._stackedcolumn2d);q("mscombi2d",{friendlyName:"Multi-series Combination Chart",standaloneInit:!0,creditLabel:Ca,newArchitecture:!0,rendererId:"newmscombi2d"},q.mscombibase);
q("_mscombi2d",{friendlyName:"Multi-series Combination Chart",standaloneInit:!0,creditLabel:Ca,rendererId:"cartesian"},q.mscombibase);q("mscombi3d",{friendlyName:"Multi-series 3D Combination Chart",series:q.mscombi2d.series,rendererId:"newmscombi2d",eiMethods:function(a){var p={};Ba(a.split(","),function(a){p[a]=function(){ya.raiseWarning(this,"1301081430","run","JSRenderer~"+a+"()","Method not applicable.")}});return p}("view2D,view3D,resetView,rotateView,getViewAngles,fitToStage")},q.mscolumn3d);
q("mscolumnline3d",{friendlyName:"Multi-series Column and Line Chart",use3dlineshift:1},q.mscombi3d);q("stackedcolumn2dline",{friendlyName:"Stacked Column and Line Chart",isStacked:!0,stack100percent:0,newArchitecture:!0},q.mscombi2d);q("stackedcolumn3dline",{friendlyName:"Stacked 3D Column and Line Chart",isStacked:!0,use3dlineshift:1,stack100percent:0},q.mscombi3d);q("mscombidy2d",{friendlyName:"Multi-series Dual Y-Axis Combination Chart",isDual:!0,secondarySeriesType:void 0},q.mscombi2d);q("mscolumn3dlinedy",
{friendlyName:"Multi-series 3D Column and Line Chart",isDual:!0,secondarySeriesType:"line"},q.mscolumnline3d);q("stackedcolumn3dlinedy",{friendlyName:"Stacked 3D Column and Line Chart",isDual:!0,secondarySeriesType:"line"},q.stackedcolumn3dline);q("msstackedcolumn2dlinedy",{friendlyName:"Multi-series Dual Y-Axis Stacked Column and Line Chart",isDual:!0,stack100percent:0,secondarySeriesType:"line",rendererId:"msstackedcolumn2dlinedy"},q.msstackedcolumn2d);q("_msstackedcolumn2dlinedy",{friendlyName:"Multi-series Dual Y-Axis Stacked Column and Line Chart",
isDual:!0,stack100percent:0,secondarySeriesType:"line"},q._msstackedcolumn2d);q("scrollcolumn2d",{friendlyName:"Scrollable Multi-series Column Chart",postSeriesAddition:q.scrollbase.postSeriesAddition,tooltipConstraint:"plot",canvasborderthickness:1,avgScrollPointWidth:40},q.mscolumn2d);q("scrollline2d",{friendlyName:"Scrollable Multi-series Line Chart",postSeriesAddition:q.scrollbase.postSeriesAddition,tooltipConstraint:"plot",canvasborderthickness:1,avgScrollPointWidth:75},q.msline);q("scrollarea2d",
{friendlyName:"Scrollable Multi-series Area Chart",postSeriesAddition:q.scrollbase.postSeriesAddition,tooltipConstraint:"plot",canvasborderthickness:1,avgScrollPointWidth:75},q.msarea);q("scrollstackedcolumn2d",{friendlyName:"Scrollable Stacked Column Chart",postSeriesAddition:function(a,p,e,d){q.base.postSeriesAddition.call(this,a,p,e,d);q.scrollbase.postSeriesAddition.call(this,a,p,e,d)},canvasborderthickness:1,tooltipConstraint:"plot",avgScrollPointWidth:75},q.stackedcolumn2d);q("scrollcombi2d",
{friendlyName:"Scrollable Combination Chart",postSeriesAddition:q.scrollbase.postSeriesAddition,tooltipConstraint:"plot",canvasborderthickness:1,avgScrollPointWidth:40},q.mscombi2d);q("scrollcombidy2d",{friendlyName:"Scrollable Dual Y-Axis Combination Chart",postSeriesAddition:q.scrollbase.postSeriesAddition,tooltipConstraint:"plot",canvasborderthickness:1,avgScrollPointWidth:40},q.mscombidy2d);q("scatter",{friendlyName:"Scatter Chart",isXY:!0,standaloneInit:!0,defaultSeriesType:"scatter",defaultZeroPlaneHighlighted:!1,
creditLabel:Ca},q.scatterbase);Fa(s.eventList,{zoomedOut:"FC_ZoomedOut"});q("bubble",{friendlyName:"Bubble Chart",standaloneInit:!0,standaloneInut:!0,defaultSeriesType:"bubble",rendererId:"bubble",point:function(a,p,e,d,b){a=h(d.ignoreemptydatasets,0);var c=!1,v=this.colorManager,f,T,t,U,m,q,k,Ha,N,F,D,xa,n,g,M,y,I=h(e.showvalues,b[Aa].showValues);f=h(d.bubblescale,1);var C=l(d.negativecolor,"FF0000");T=h(d.minbubbleradius);var G=b.plotOptions.bubble,A=this.numberFormatter,r=p._showRegression=h(e.showregressionline,
d.showregressionline,0),s,J,R,S;p.name=Ga(e.seriesname);t=Boolean(h(e.drawanchors,e.showanchors,d.drawanchors,1));Ha=l(e.plotfillalpha,e.bubblefillalpha,d.plotfillalpha,Qa);N=h(e.showplotborder,d.showplotborder,1);F=ta(l(e.plotbordercolor,d.plotbordercolor,"666666"));D=l(e.plotborderthickness,d.plotborderthickness,1);xa=l(e.plotborderalpha,d.plotborderalpha,"95");N=1===N?D:0;v=l(e.color,e.plotfillcolor,d.plotfillcolor,v.getPlotColor());p.marker={enabled:t,fillColor:this.getPointColor(v,Qa),lineColor:X(F,
N?xa:0),lineWidth:N,symbol:"circle"};p.getPointColor=this.getPointColor;if(D=e.data){y=D.length;G.bubbleScale=f;G.minBubbleRadius=T;if(0===h(e.includeinlegend)||void 0===p.name)p.showInLegend=!1;r&&(p.events={hide:this.hideRLine,show:this.showRLine},s={sumX:0,sumY:0,sumXY:0,sumXsqure:0,sumYsqure:0,xValues:[],yValues:[]},J=h(e.showyonx,d.showyonx,1),R=ta(l(e.regressionlinecolor,d.regressionlinecolor,v)),S=h(e.regressionlinethickness,d.regressionlinethickness,1),f=ra(h(e.regressionlinealpha,d.regressionlinealpha,
100)),R=X(R,f));for(T=0;T<y;T+=1)(U=D[T])?(f=A.getCleanValue(U.y),n=A.getCleanValue(U.x),g=A.getCleanValue(U.z,!0),null===f?p.data.push({y:null,x:n}):(c=!0,k=0!==h(d.use3dlighting,U.is3d,e.is3d,d.is3d),m=ta(l(U.color,0>U.z?C:v)),q=l(U.alpha,Ha),M=this.getPointStub(U,f,n,b,e,I),m=k?this.getPointColor(m,q):{FCcolor:{color:m,alpha:q}},null!==g&&(G.zMax=G.zMax>g?G.zMax:g,G.zMin=G.zMin<g?G.zMin:g),U=this.pointHoverOptions(U,p,{plotType:"bubble",is3d:k,seriesAnchorSymbol:"circle",color:m,negativeColor:C,
alpha:q,borderWidth:N,borderColor:F,borderAlpha:xa,shadow:!1}),p.is3d=k,p.data.push({y:f,x:n,z:g,displayValue:M.displayValue,displayValueArgs:M.displayValueArgs,toolText:M.toolText,link:M.link,hoverEffects:U.enabled&&U.options,rolloverProperties:U.enabled&&U.rolloverOptions,marker:{enabled:t,fillColor:m,lineColor:{FCcolor:{color:F,alpha:xa}},lineWidth:N,symbol:"circle"}}),this.pointValueWatcher(b,f,n,r&&s))):p.data.push({y:null});r&&(e={type:"line",color:R,showInLegend:!1,lineWidth:S,enableMouseTracking:!1,
marker:{enabled:!1},data:this.getRegressionLineSeries(s,J,y),zIndex:0},p=[p,e])}a&&!c&&(p.showInLegend=!1);return p},getPointStub:function(a,p,e,d,b,c){var v=this.dataObj.chart;d=d[Aa];p=null===p?p:d.numberFormatter.dataLabels(p);var f,T=d.tooltipSepChar,t=Ga(oa(l(a.tooltext,b.plottooltext,d.tooltext)));d.showTooltip?void 0!==t?b=Na(t,[4,5,6,7,8,9,10,11,12,13,118],{yDataValue:p,xDataValue:d.numberFormatter.xAxis(e),yaxisName:oa(v.yaxisname),xaxisName:oa(v.xaxisname),zDataValue:d.numberFormatter.dataLabels(a.z)},
a,v,b):null===p?b=!1:(d.seriesNameInToolTip&&(f=l(b&&b.seriesname)),b=f?f+T:Q,b+=e?d.numberFormatter.xAxis(e)+T:Q,b=b+p+(a.z?T+d.numberFormatter.dataLabels(a.z):Q)):b=Q;e=h(a.showvalue,c,d.showValues)?void 0!==l(a.displayvalue,a.name,a.label)?oa(l(a.displayvalue,a.name,a.label)):p:Q;c=l(oa(l(a.displayvalue,a.name,a.label)),p,Q);a=Ga(a.link);return{displayValue:e,displayValueArgs:c,toolText:b,link:a}}},q.scatter);q("ssgrid",{friendlyName:"Grid Component",standaloneInit:!0,defaultSeriesType:"ssgrid",
rendererId:"ssgrid",chart:function(a,b){var e=this.containerElement,d=Fa({},this.dataObj),u=d.chart||(d.chart=d.graph||{}),c=this.chartInstance,v=0,f=[],T=d.data,t=T&&T.length,U=this.smartLabel,m=this.numberFormatter,k=e.offsetHeight,F=e.offsetWidth,n=this.colorManager,N,g,D,xa,M,ea,y,A,I,C,G,r,x,H,J,R,S,ca,w,O,z,P,B,ja,V,E=0;g=0;var e={_FCconf:{0:{stack:{}},1:{stack:{}},x:{stack:{}},noWrap:!1,marginLeftExtraSpace:0,marginRightExtraSpace:0,marginBottomExtraSpace:0,marginTopExtraSpace:0,marimekkoTotal:0},
chart:{ignoreHiddenSeries:!1,events:{},spacingTop:0,spacingRight:0,spacingBottom:0,spacingLeft:0,marginTop:0,marginRight:0,marginBottom:0,marginLeft:0,borderRadius:0,borderColor:"#000000",borderWidth:1,defaultSeriesType:"ssgrid",textDirection:"1"===u.hasrtltext?"rtl":"",style:{fontFamily:l(u.basefont,"Verdana,sans"),fontSize:$a(u.basefontsize,20)+Xa,color:l(u.basefontcolor,n.getColor("baseFontColor")).replace(/^#?([a-f0-9]+)/ig,"#$1")},plotBackgroundColor:ka},labels:{smartLabel:U},colors:"AFD8F8 F6BD0F 8BBA00 FF8E46 008E8E D64646 8E468E 588526 B3AA00 008ED6 9D080D A186BE CC6600 FDC689 ABA000 F26D7D FFF200 0054A6 F7941C CC3300 006600 663300 6DCFF6".split(" "),
credits:{href:s.CREDIT_HREF,text:s.CREDIT_STRING,enabled:Ca},legend:{enabled:!1},series:[],subtitle:{text:Q},title:{text:Q},tooltip:{enabled:!1},exporting:{buttons:{exportButton:{},printButton:{enabled:!1}}}},$=e[Aa],aa=N=g=E=0,K=v=H=0;V=c.jsVars.cfgStore;c=e.chart;M=c.toolbar={button:{}};ea=M.button;delete d.graph;la(e.chart.style);c.events.click=this.linkClickFN;ea.scale=h(u.toolbarbuttonscale,1.15);ea.width=h(u.toolbarbuttonwidth,15);ea.height=h(u.toolbarbuttonheight,15);ea.radius=h(u.toolbarbuttonradius,
2);ea.spacing=h(u.toolbarbuttonspacing,5);ea.fill=X(l(u.toolbarbuttoncolor,"ffffff"));ea.labelFill=X(l(u.toolbarlabelcolor,"cccccc"));ea.symbolFill=X(l(u.toolbarsymbolcolor,"ffffff"));ea.hoverFill=X(l(u.toolbarbuttonhovercolor,"ffffff"));ea.stroke=X(l(u.toolbarbuttonbordercolor,"bbbbbb"));ea.symbolStroke=X(l(u.toolbarsymbolbordercolor,"9a9a9a"));ea.strokeWidth=h(u.toolbarbuttonborderthickness,1);ea.symbolStrokeWidth=h(u.toolbarsymbolborderthickness,1);d=ea.symbolPadding=h(u.toolbarsymbolpadding,5);
ea.symbolHPadding=h(u.toolbarsymbolhpadding,d);ea.symbolVPadding=h(u.toolbarsymbolvpadding,d);ea=M.position=l(u.toolbarposition,"tr").toLowerCase();switch(ea){case "tr":case "tl":case "br":case "bl":break;default:ea="tr"}d=M.hAlign="left"===(Q+u.toolbarhalign).toLowerCase()?"l":ea.charAt(1);ea=M.vAlign="bottom"===(Q+u.toolbarvalign).toLowerCase()?"b":ea.charAt(0);M.hDirection=h(u.toolbarhdirection,"r"===d?-1:1);M.vDirection=h(u.toolbarvdirection,"b"===ea?-1:1);M.vMargin=h(u.toolbarvmargin,6);M.hMargin=
h(u.toolbarhmargin,10);M.x=h(u.toolbarx,"l"===d?0:a);M.y=h(u.toolbary,"t"===ea?0:b);void 0!==l(u.clickurl)&&(c.link=u.clickurl,c.style.cursor="pointer");N=h(V.showpercentvalues,u.showpercentvalues,0);g=l(V.numberitemsperpage,u.numberitemsperpage);h(V.showshadow,u.showshadow,0);v=l(V.basefont,u.basefont,"Verdana,sans");D=$a(V.basefontsize,u.basefontsize,10);D+=Xa;xa=ta(l(V.basefontcolor,u.basefontcolor,n.getColor("baseFontColor")));d=ta(l(V.alternaterowbgcolor,u.alternaterowbgcolor,n.getColor("altHGridColor")));
M=l(V.alternaterowbgalpha,u.alternaterowbgalpha,n.getColor("altHGridAlpha"))+Q;ea=h(V.listrowdividerthickness,u.listrowdividerthickness,1);y=ta(l(V.listrowdividercolor,u.listrowdividercolor,n.getColor("borderColor")));A=h(V.listrowdivideralpha,u.listrowdivideralpha,n.getColor("altHGridAlpha"))+15+Q;I=h(V.colorboxwidth,u.colorboxwidth,8);C=h(V.colorboxheight,u.colorboxheight,8);G=h(V.navbuttonradius,u.navbuttonradius,7);r=ta(l(V.navbuttoncolor,u.navbuttoncolor,n.getColor("canvasBorderColor")));x=ta(l(V.navbuttonhovercolor,
u.navbuttonhovercolor,n.getColor("altHGridColor")));H=h(V.textverticalpadding,u.textverticalpadding,3);J=h(V.navbuttonpadding,u.navbuttonpadding,5);R=h(V.colorboxpadding,u.colorboxpadding,10);S=h(V.valuecolumnpadding,u.valuecolumnpadding,10);ca=h(V.namecolumnpadding,u.namecolumnpadding,5);w=h(V.borderthickness,u.borderthickness,1);O=ta(l(V.bordercolor,u.bordercolor,n.getColor("borderColor")));z=l(V.borderalpha,u.borderalpha,n.getColor("borderAlpha"))+Q;P=l(V.bgcolor,u.bgcolor,"FFFFFF");B=l(V.bgalpha,
u.bgalpha,Qa);ja=l(V.bgratio,u.bgratio,Qa);V=l(V.bgangle,u.bgangle,Ja);c.borderRadius=w/16;c.borderWidth=w;c.borderColor=L({FCcolor:{color:O,alpha:z}});c.backgroundColor={FCcolor:{color:P,alpha:B,ratio:ja,angle:V}};c.borderRadius=h(u.borderradius,0);V={fontFamily:v,fontSize:D,color:xa};la(V);U.setStyle(V);for(v=0;v<t;v+=1)if(D=T[v],w=m.getCleanValue(D.value),O=oa(Oa(D.label,D.name)),xa=ta(l(D.color,n.getPlotColor())),l(D.alpha,u.plotfillalpha,Qa),O!=Q||null!=w)f.push({value:w,label:O,color:xa}),E+=
w,K+=1;for(v=0;v<K;v+=1)D=f[v],w=D.value,D.dataLabel=D.label,D.displayValue=N?m.percentValue(w/E*100):m.dataLabels(w),T=U.getOriSize(D.displayValue),aa=Math.max(aa,T.width+S);g?g>=K?(N=k/K,g=K):(m=k-2*(J+G),N=m/g):(E=parseInt(V.lineHeight,10),E=Math.max(E+2*H,C),g=k/E,g>=K?(N=k/K,g=K):(m=k-2*(J+G),g=Math.floor(m/E),N=m/g));H=F-R-I-ca-aa-S;v=R+I+ca;m=l(u.basefont,"Verdana,sans");aa=$a(u.basefontsize,10);n=l(u.basefontcolor,n.getColor("baseFontColor"));T=l(u.outcnvbasefont,m);D=$a(u.outcnvbasefontsize,
aa);t=D+Xa;u=l(u.outcnvbasefontcolor,n).replace(/^#?([a-f0-9]+)/ig,"#$1");aa+=Xa;n=n.replace(/^#?([a-f0-9]+)/ig,"#$1");$.trendStyle=$.outCanvasStyle={fontFamily:T,color:u,fontSize:t};la($.trendStyle);$.inCanvasStyle={fontFamily:m,fontSize:aa,color:n};e.tooltip.style={fontFamily:m,fontSize:aa,lineHeight:void 0,color:n};e.tooltip.shadow=!1;c.height=k;c.width=F;c.rowHeight=N;c.labelX=v;c.colorBoxWidth=I;c.colorBoxHeight=C;c.colorBoxX=R;c.valueX=R+I+ca+H+S;c.valueColumnPadding=S;c.textStyle=V;c.listRowDividerAttr=
{"stroke-width":ea,stroke:{FCcolor:{color:y,alpha:A}}};c.alternateRowColor={FCcolor:{color:d,alpha:M}};c.navButtonRadius=G;c.navButtonPadding=J;c.navButtonColor=r;c.navButtonHoverColor=x;c.lineHeight=parseInt(V.lineHeight,10);k=[];u=0;$=!0;for(v=0;v<K&0!==g;v+=1)0===v%g&&(k.push({data:[],visible:$}),$=!1,u+=1),D=f[v],F=U.getSmartText(D.dataLabel,H,N),k[u-1].data.push({label:F.text,originalText:F.tooltext,displayValue:D.displayValue,y:D.value,color:D.color});e.series=k;q.base.parseExportOptions.call(this,
e);e.tooltip.enabled=!!e.exporting.enabled;return e},creditLabel:Ca},q.base);q("renderer.bubble",{drawPlotBubble:function(a,p){var e=this,d=e.options,u=d.chart,f=d.plotOptions.series,v=f.dataLabels&&f.dataLabels.style||{},q={fontFamily:v.fontFamily,fontSize:v.fontSize,lineHeight:v.lineHeight,fontWeight:v.fontWeight,fontStyle:v.fontStyle},v=e.paper,T=e.elements,t=a.items,U=a.graphics=a.graphics||[],m=e.xAxis[p.xAxis||0],k=e.yAxis[p.yAxis||0],M=a.data,F=!1!==(d.tooltip||{}).enabled,N,l,f=isNaN(+f.animation)&&
f.animation.duration||1E3*f.animation,D=!1===p.visible?"hidden":"visible",xa=d.plotOptions.bubble,qa=xa.zMax,d=xa.bubbleScale,xa=xa.minBubbleRadius,ea=A(e.canvasHeight,e.canvasWidth)/8,qa=g(qa),r,s,I,C,G,x,w,H,J,R,S;r=e.layers;s=r.dataset=r.dataset||v.group("dataset-orphan");var E=r.tracker,ca,O,z=function(a){Da.call(this,e,a)},P=function(a,d,b){return function(p){a.attr(d);Da.call(this,e,p,b)}};e.addCSSDefinition(".fusioncharts-datalabels .fusioncharts-label",q);r.datalabels?r.datalabels.attr("class",
"fusioncharts-datalabels"):r.datalabels=v.group({"class":"fusioncharts-datalabels"},"datalables").insertAfter(s);q=s.bubble=s.bubble||v.group("bubble",s);u.clipBubbles&&!q.attrs["clip-rect"]&&q.attr({"clip-rect":T["clip-canvas"]});r=0;for(s=M.length;r<s;r+=1){I=M[r];R=S=O=null;J=I.marker;if(null!==I.y&&J&&J.enabled){C=I.link;u=I.toolText;G=h(I.x,r);x=I.y;T={index:r,link:C,value:x,y:x,x:G,z:I.z,displayValue:I.displayValueArgs,toolText:I.toolText,id:a.userID,datasetIndex:a.index,datasetName:a.name,
visible:a.visible};H=k.getAxisPosition(x);w=m.getAxisPosition(G);l=g(I.z);ca=y(l*ea/qa)*d||0;xa&&(ca=n(ca,xa));l=N={};I.hoverEffects&&(l={fill:L(J.fillColor),"stroke-width":J.lineWidth,stroke:L(J.lineColor),r:ca},N=I.rolloverProperties,N={fill:L(N.fillColor),"stroke-width":N.lineWidth,stroke:L(N.lineColor),r:ca*N.scale});R=v.circle(w,H,0,q).attr({fill:L(J.fillColor),ishot:!F,"stroke-width":J.lineWidth,stroke:L(J.lineColor),visibility:D}).animate({r:ca||0},f,"easeOut",e.getAnimationCompleteFn());if(C||
F)ca<b&&(ca=b),S=v.circle(w,H,ca,E).attr({cursor:C?"pointer":"",stroke:c,"stroke-width":J.lineWidth,fill:c,ishot:!!C,visibility:D});(S||R).data("eventArgs",T).click(z).hover(P(R,N,"DataPlotRollOver"),P(R,l,"DataPlotRollOut")).tooltip(u);t[r]={index:r,x:G,y:x,z:I.z,value:x,graphic:R,dataLabel:O,tracker:S};O=e.drawPlotLineLabel(a,p,r,w,H)}else t[r]={index:r,x:G,y:x};O&&U.push(O);R&&U.push(R);S&&U.push(S)}a.visible=!1!==p.visible;return a}},q["renderer.cartesian"]);q("renderer.ssgrid",{drawGraph:function(){var a=
this.options.series,b=this.elements,e=b.plots,d=a.length,c;e||(e=this.plots=this.plots||[],b.plots=e);this.drawSSGridNavButton();for(c=0;c<d;c++)(b=e[c])||e.push(b={items:[],data:a[c].data}),a[c].data&&a[c].data.length&&this.drawPlot(b,a[c]);1<d&&this.nenagitePage(0)},drawPlot:function(a){var b=a.data,e=this.paper,d=this.options.chart,c=d.colorBoxHeight,f=d.colorBoxWidth,v=d.colorBoxX,q=d.labelX,T=d.valueX,t=d.rowHeight,U=d.width,m=d.listRowDividerAttr,h=m["stroke-width"],m=L(m.stroke),k=h%2/2,n=
d.textStyle,N=this.layers,N=N.dataset=N.dataset||e.group("dataset-orphan"),g=L(d.alternateRowColor);a=a.items;var D=0,M,F,l,r;b&&b.length||(b=[]);m={stroke:m,"stroke-width":h};r=0;for(h=b.length;r<h;r+=1)l=b[r],F=l.y,M=a[r]={index:r,value:F,graphic:null,dataLabel:null,dataValue:null,alternateRow:null,listRowDivider:null,hot:null},null!==F&&void 0!==F&&(0===r%2&&(M.alternateRow=e.rect(0,D,U,t,0,N).attr({fill:g,"stroke-width":0})),F=y(D)+k,M.listRowDivider=e.path(["M",0,F,"L",U,F],N).attr(m),M.graphic=
e.rect(v,D+t/2-c/2,f,c,0,N).attr({fill:l.color,"stroke-width":0,stroke:"#000000"}),F=M.dataLabel=e.text().attr({text:l.label,title:l.originalText||"",x:q,y:D+t/2,fill:n.color,direction:d.textDirection,"text-anchor":"start"}).css(n),N.appendChild(F),M=M.dataValue=e.text().attr({text:l.displayValue,title:l.originalText||"",x:T,y:D+t/2,fill:n.color,direction:d.textDirection,"text-anchor":"start"}).css(n),N.appendChild(M),D+=t);F=y(D)+k;e.path(["M",0,F,"L",U,F],N).attr(m)},drawSSGridNavButton:function(){var a=
this,b=a.paper,e=a.options,d=e.chart,c=e.series,f=d.navButtonColor,v=d.navButtonHoverColor,e=d.navButtonRadius,h=.67*e,T=d.navButtonPadding+h+(c&&c[0].data&&c[0].data.length*d.rowHeight)+.5*e,d=d.width-20,t,U,m,q;1<c.length&&(q=a.naviigator=b.group("navigation"),a.navElePrv=c=b.group(q),t=b.path(["M",20,T,"L",20+e+h,T-h,20+e,T,20+e+h,T+h,"Z"]).attr({fill:f,"stroke-width":0,cursor:"pointer"}),c.appendChild(t),m=b.circle(20+e,T,e).attr({fill:ka,"stroke-width":0,cursor:"pointer"}).mouseover(function(){t.attr({fill:v,
cursor:"pointer"})}).mouseout(function(){t.attr({fill:f})}).click(function(){a.nenagitePage(-1)}),c.appendChild(m),a.navEleNxt=c=b.group(q),U=b.path(["M",d,T,"L",d-e-h,T-h,d-e,T,d-e-h,T+h,"Z"]).attr({fill:f,"stroke-width":0,cursor:"pointer"}),c.appendChild(U),b=b.circle(d-e,T,e).attr({fill:ka,"stroke-width":0,cursor:"pointer"}).mouseover(function(){U.attr({fill:v})}).mouseout(function(){U.attr({fill:f})}).click(function(){a.nenagitePage(1)}),c.appendChild(b))},nenagitePage:function(a){var b=this.plots,
e=b.length;a=(this.currentSeriesIndex||0)+(a||0);var d,c=function(a){a.graphic&&a.graphic.hide();a.dataLabel&&a.dataLabel.hide();a.dataValue&&a.dataValue.hide();a.alternateRow&&a.alternateRow.hide();a.listRowDivider&&a.listRowDivider.hide()};if(b[a]){for(d=e;d--;)Ba(b[d].items,c);Ba(b[a].items,function(a){a.graphic&&a.graphic.show();a.dataLabel&&a.dataLabel.show();a.dataValue&&a.dataValue.show();a.alternateRow&&a.alternateRow.show();a.listRowDivider&&a.listRowDivider.show()});this.currentSeriesIndex=
a;ya.raiseEvent("pageNavigated",{pageId:a,data:this.options.series[a].data},this.logic.chartInstance);0===a?this.navElePrv.hide():this.navElePrv.show();a===e-1?this.navEleNxt.hide():this.navEleNxt.show()}}},q["renderer.root"]);Va.prototype={getArcPath:function(a,b,e,d,c,f,v,h,T,t){return e==c&&d==f?[]:["A",v,h,0,t,T,c,f]},parseColor:function(a,b){var e,d,c,f,v,h,T,t,U,m,q=b/2,k,n,N,F,M;M=3;this.use3DLighting?(e=Y(a,80),d=Y(a,75),h=da(a,85),T=da(a,70),t=da(a,40),U=da(a,50),da(a,30),m=da(a,65),Y(a,
85),c=Y(a,69),f=Y(a,75),v=Y(a,95)):(M=10,e=Y(a,90),d=Y(a,87),h=da(a,93),T=da(a,87),t=da(a,80),m=U=da(a,85),da(a,80),v=Y(a,85),c=Y(a,75),f=Y(a,80));k=d+W+h+W+T+W+h+W+d;N=b+W+b+W+b+W+b+W+b;n=d+W+a+W+h+W+a+W+d;F=q+W+q+W+q+W+q+W+q;t=d+W+a+W+t+W+a+W+d;c=f+W+h+W+U+W+h+W+c;f="FFFFFF"+W+"FFFFFF"+W+"FFFFFF"+W+"FFFFFF"+W+"FFFFFF";M=0+W+q/M+W+b/M+W+q/M+W+0;return{frontOuter:{FCcolor:{gradientUnits:"userSpaceOnUse",x1:this.leftX,y1:0,x2:this.rightX,y2:0,color:c,alpha:N,angle:0,ratio:"0,20,15,15,50"}},backOuter:{FCcolor:{gradientUnits:"userSpaceOnUse",
x1:this.leftX,y1:0,x2:this.rightX,y2:0,color:t,alpha:F,angle:0,ratio:"0,62,8,8,22"}},frontInner:{FCcolor:{gradientUnits:"userSpaceOnUse",x1:this.leftInnerX,y1:0,x2:this.rightInnerX,y2:0,color:n,alpha:F,angle:0,ratio:"0,25,5,5,65"}},backInner:{FCcolor:{gradientUnits:"userSpaceOnUse",x1:this.leftInnerX,y1:0,x2:this.rightInnerX,y2:0,color:k,alpha:N,angle:0,ratio:"0,62,8,8,22"}},topBorder:{FCcolor:{gradientUnits:"userSpaceOnUse",x1:this.leftX,y1:0,x2:this.rightX,y2:0,color:f,alpha:M,angle:0,ratio:"0,20,15,15,50"}},
topInnerBorder:{FCcolor:{gradientUnits:"userSpaceOnUse",x1:this.leftInnerX,y1:0,x2:this.rightInnerX,y2:0,color:f,alpha:M,angle:0,ratio:"0,50,15,15,20"}},top:pa?{FCcolor:{gradientUnits:"userSpaceOnUse",radialGradient:!0,cx:this.cx,cy:this.cy,r:this.rx,fx:this.cx-.3*this.rx,fy:this.cy+1.2*this.ry,color:m+W+v,alpha:b+W+b,ratio:"0,100"}}:{FCcolor:{gradientUnits:"objectBoundingBox",color:T+W+T+W+h+W+d,alpha:b+W+b+W+b+W+b,angle:-72,ratio:"0,8,15,77"}},bottom:L(X(a,q)),startSlice:L(X(e,b)),endSlice:L(X(e,
b))}},rotate:function(a){if(!this.hasOnePoint){for(var b=this.pointElemStore,e=0,d=b.length,c;e<d;e+=1)c=b[e],c=c._confObject,c.start+=a,c.end+=a,this.updateSliceConf(c);this.refreshDrawing()}},refreshDrawing:function(){return function(){var a=this.slicingWallsArr,b=0,e,d=a.length,c,f,v,h,q=this.slicingWallsFrontGroup,t=this.slicingWallsBackGroup;a:{var U=a[0]&&a[0]._conf.index,m,k;h=U<=$;c=1;for(e=a.length;c<e;c+=1)if(k=a[c]._conf.index,m=k<=$,m!=h||k<U)break a;c=0}for(;b<d;b+=1,c+=1)c===d&&(c=0),
e=a[c],h=e._conf.index,h<Pa?q.appendChild(e):h<=$?(f?e.insertBefore(f):q.appendChild(e),f=e):h<ba?(v?e.insertBefore(v):t.appendChild(e),v=e):t.appendChild(e)}}(),updateSliceConf:function(a,b){var e=this.getArcPath,d=a.start,c=a.end,f=ga(d),v=ga(c),h,q,t,U,m,k,n,g,N,l,D,r,y,A,s,x,I=this.cx,C=this.cy,G=this.rx,w=this.ry,ca=G+(pa?-1:2),H=w+(pa?-1:2),J=this.innerRx,R=this.innerRy,S=this.depth,E=this.depthY,aa=a.elements,O,z,P,B,K,V,ja;h=M(f);q=F(f);t=M(v);U=F(v);m=I+G*h;k=C+w*q;n=I+ca*h;g=C+H*q;O=k+S;
z=I+G*t;P=C+w*U;N=I+ca*t;l=C+H*U;B=P+S;this.isDoughnut?(D=I+J*h,r=C+R*q,s=r+S,y=I+J*t,A=C+R*U,x=A+S,a.startSlice=["M",m,k,"L",m,O,D,s,D,r,"Z"],a.endSlice=["M",z,P,"L",z,B,y,x,y,A,"Z"]):(a.startSlice=["M",m,k,"L",m,O,I,E,I,C,"Z"],a.endSlice=["M",z,P,"L",z,B,I,E,I,C,"Z"]);pa?(e=(f>v?Z:0)+v-f,a.clipTopPath=this.isDoughnut?["M",m,k,"A",G,w,0,e>$?1:0,1,z,P,"L",y,A,"A",J,R,0,e>$?1:0,0,D,r,"Z"]:["M",m,k,"A",G,w,0,e>$?1:0,1,z,P,"L",this.cx,this.cy,"Z"],a.clipOuterFrontPath1=this.clipPathforNoClip,a.clipTopBorderPath=
["M",n,g,"A",ca,H,0,e>$?1:0,1,N,l,"L",z,P,z,P+1,"A",G,w,0,e>$?1:0,0,m,k+1,"L",m,k,"Z"],d!=c?f>v?f<$?(a.clipOuterFrontPath=["M",this.rightX,C,"A",G,w,0,0,1,z,P,"v",S,"A",G,w,0,0,0,this.rightX,C+S,"Z"],a.clipOuterFrontPath1=["M",this.leftX,C,"A",G,w,0,0,0,m,k,"v",S,"A",G,w,0,0,1,this.leftX,C+S,"Z"],a.clipOuterBackPath=["M",this.rightX,C,"A",G,w,0,1,0,this.leftX,C,"v",S,"A",G,w,0,1,1,this.rightX,C+S,"Z"],this.isDoughnut&&(a.clipInnerBackPath=["M",this.rightInnerX,C,"A",J,R,0,1,0,this.leftInnerX,C,"v",
S,"A",J,R,0,1,1,this.rightInnerX,C+S,"Z"],a.clipInnerFrontPath=["M",this.rightInnerX,C,"A",J,R,0,0,1,y,A,"v",S,"A",J,R,0,0,0,this.rightInnerX,C+S,"Z","M",this.leftInnerX,C,"A",J,R,0,0,0,D,r,"v",S,"A",J,R,0,0,1,this.leftInnerX,C+S,"Z"])):v>$?(a.clipOuterFrontPath=["M",this.rightX,C,"A",G,w,0,1,1,this.leftX,C,"v",S,"A",G,w,0,1,0,this.rightX,C+S,"Z"],a.clipOuterBackPath=["M",this.leftX,C,"A",G,w,0,0,1,z,P,"v",S,"A",G,w,0,0,0,this.leftX,C+S,"Z","M",this.rightX,C,"A",G,w,0,0,0,m,k,"v",S,"A",G,w,0,0,1,
this.rightX,C+S,"Z"],this.isDoughnut&&(a.clipInnerFrontPath=["M",this.rightInnerX,C,"A",J,R,0,1,1,this.leftInnerX,C,"v",S,"A",J,R,0,1,0,this.rightInnerX,C+S,"Z"],a.clipInnerBackPath=["M",this.leftInnerX,C,"A",J,R,0,0,1,y,A,"v",S,"A",J,R,0,0,0,this.leftInnerX,C+S,"Z","M",this.rightInnerX,C,"A",J,R,0,0,0,D,r,"v",S,"A",J,R,0,0,1,this.rightInnerX,C+S,"Z"])):(a.clipOuterFrontPath=["M",this.rightX,C,"A",G,w,0,0,1,z,P,"v",S,"A",G,w,0,0,0,this.rightX,C+S,"Z"],a.clipOuterBackPath=["M",m,k,"A",G,w,0,0,1,this.rightX,
C,"v",S,"A",G,w,0,0,0,m,O,"Z"],this.isDoughnut&&(a.clipInnerFrontPath=["M",this.rightInnerX,C,"A",J,R,0,0,1,y,A,"v",S,"A",J,R,0,0,0,this.rightInnerX,C+S,"Z"],a.clipInnerBackPath=["M",D,r,"A",J,R,0,0,1,this.rightInnerX,C,"v",S,"A",J,R,0,0,0,D,s,"Z"])):f<$?v>$?(a.clipOuterFrontPath=["M",m,k,"A",G,w,0,0,1,this.leftX,C,"v",S,"A",G,w,0,0,0,m,O,"Z"],a.clipOuterBackPath=["M",this.leftX,C,"A",G,w,0,0,1,z,P,"v",S,"A",G,w,0,0,0,this.leftX,C+S,"Z"],this.isDoughnut&&(a.clipInnerFrontPath=["M",D,r,"A",J,R,0,0,
1,this.leftInnerX,C,"v",S,"A",J,R,0,0,0,D,s,"Z"],a.clipInnerBackPath=["M",this.leftInnerX,C,"A",J,R,0,0,1,y,A,"v",S,"A",J,R,0,0,0,this.leftInnerX,C+S,"Z"])):(a.clipOuterFrontPath=["M",m,k,"A",G,w,0,0,1,z,P,"v",S,"A",G,w,0,0,0,m,O,"Z"],a.clipOuterBackPath=this.clipPathforNoClip,this.isDoughnut&&(a.clipInnerFrontPath=["M",D,r,"A",J,R,0,0,1,y,A,"v",S,"A",J,R,0,0,0,D,s,"Z"],a.clipInnerBackPath=this.clipPathforNoClip)):(a.clipOuterFrontPath=this.clipPathforNoClip,a.clipOuterBackPath=["M",m,k,"A",G,w,0,
0,1,z,P,"v",S,"A",G,w,0,0,0,m,O,"Z"],this.isDoughnut&&(a.clipInnerFrontPath=this.clipPathforNoClip,a.clipInnerBackPath=["M",D,r,"A",J,R,0,0,1,y,A,"v",S,"A",J,R,0,0,0,D,s,"Z"])):a.clipOuterFrontPath=a.clipOuterBackPath=a.clipInnerBackPath=a.clipInnerFrontPath=this.clipPathforNoClip,b||(a.elements.startSlice._conf.index=f,a.elements.endSlice._conf.index=v,a.elements.frontOuter._conf.index=Ua(v,f),a.elements.frontOuter1&&(a.elements.frontOuter1._conf.index=f,a.elements.frontOuter1.attr("litepath",[a.clipOuterFrontPath1])),
a.thisElement.attr("litepath",[a.clipTopPath]),a.elements.bottom.attr("litepath",[a.clipTopPath]),a.elements.bottomBorder.attr("litepath",[a.clipTopPath]),a.elements.topBorder&&a.elements.topBorder.attr("litepath",[a.clipTopBorderPath]),a.elements.frontOuter.attr("litepath",[a.clipOuterFrontPath]),a.elements.backOuter.attr("litepath",[a.clipOuterBackPath]),this.isDoughnut&&(a.elements.backInner.attr("litepath",[a.clipInnerBackPath]),a.elements.frontInner.attr("litepath",[a.clipInnerFrontPath]),a.elements.backInner._conf.index=
Ua(v,f)),this.hasOnePoint?(a.elements.startSlice.hide(),a.elements.endSlice.hide()):(a.elements.startSlice.attr("litepath",[a.startSlice]).show(),a.elements.endSlice.attr("litepath",[a.endSlice]).show()))):(n=this.moveCmdArr,g=this.lineCmdArr,N=this.closeCmdArr,K=this.centerPoint,l=this.leftPoint,ca=this.topPoint,H=this.rightPoint,S=this.bottomPoint,V=this.leftDepthPoint,ja=this.rightDepthPoint,h=this.leftInnerPoint,q=this.rightInnerPoint,t=this.leftInnerDepthPoint,U=this.rightInnerDepthPoint,a.clipOuterFrontPath1=
[],d!=c?(f>v?f<$?(d=e(I,C,m,k,this.leftX,C,G,w,1,0),c=e(I,C,this.leftX,C,this.rightX,C,G,w,1,0),P=e(I,C,this.rightX,C,z,P,G,w,1,0),a.clipOuterBackPath=n.concat(l,c,g,ja,e(I,E,this.rightX,E,this.leftX,E,G,w,0,0),N),a.clipOuterFrontPath1=n.concat([m,k],d,g,V,e(I,E,this.leftX,E,m,O,G,w,0,0),N),a.clipOuterFrontPath=n.concat(H,P,g,[z,B],e(I,E,z,B,this.rightX,E,G,w,0,0),N),a.clipTopBorderPath=n.concat([m,k],d,c,P),this.isDoughnut?(m=e(I,C,y,A,this.rightInnerX,C,J,R,0,0),k=e(I,C,this.rightInnerX,C,this.leftInnerX,
C,J,R,0,0),r=e(I,C,this.leftInnerX,C,D,r,J,R,0,0),a.clipInnerBackPath=n.concat(q,k,g,t,e(I,E,this.leftInnerX,E,this.rightInnerX,E,J,R,1,0),N),a.clipInnerFrontPath=n.concat(h,r,g,[D,s],e(I,E,D,s,this.leftInnerX,E,J,R,1,0),N,n,[y,A],m,g,U,e(I,E,this.rightInnerX,E,y,x,J,R,1,0),N),a.clipTopPath=a.clipTopBorderPath.concat(g,[y,A],m,k,r,N),a.clipTopBorderPath=a.clipTopBorderPath.concat(n,[y,A],m,k,r)):a.clipTopPath=a.clipTopBorderPath.concat(g,K,N)):v>$?(d=e(I,C,m,k,this.rightX,C,G,w,1,0),c=e(I,C,this.rightX,
C,this.leftX,C,G,w,1,0),P=e(I,C,this.leftX,C,z,P,G,w,1,0),a.clipOuterFrontPath=n.concat(H,c,g,V,e(I,E,this.leftX,E,this.rightX,E,G,w,0,0),N),a.clipOuterBackPath=n.concat([m,k],d,g,ja,e(I,E,this.rightX,E,m,O,G,w,0,0),N,n,l,P,g,[z,B],e(I,E,z,B,this.leftX,E,G,w,0,0),N),a.clipTopBorderPath=n.concat([m,k],d,c,P),this.isDoughnut?(m=e(I,C,y,A,this.leftInnerX,C,J,R,0,0),k=e(I,C,this.leftInnerX,C,this.rightInnerX,C,J,R,0,0),r=e(I,C,this.rightInnerX,C,D,r,J,R,0,0),a.clipInnerFrontPath=n.concat(h,k,g,U,e(I,
E,this.rightInnerX,E,this.leftInnerX,E,J,R,1,0),N),a.clipInnerBackPath=n.concat(q,r,g,[D,s],e(I,E,D,s,this.rightInnerX,E,J,R,1,0),N,n,[y,A],m,g,t,e(I,E,this.leftInnerX,E,y,x,J,R,1,0),N),a.clipTopPath=a.clipTopBorderPath.concat(g,[y,A],m,k,r,N),a.clipTopBorderPath=a.clipTopBorderPath.concat(n,[y,A],m,k,r)):a.clipTopPath=a.clipTopBorderPath.concat(g,K,N)):(d=e(I,C,m,k,this.rightX,C,G,w,1,0),c=e(I,C,this.rightX,C,z,P,G,w,1,0),a.clipOuterFrontPath=n.concat(H,c,g,[z,B],e(I,E,z,B,this.rightX,E,G,w,0,0),
N),a.clipOuterBackPath=n.concat([m,k],d,g,ja,e(I,E,this.rightX,E,m,O,G,w,0,0),N),a.clipTopBorderPath=n.concat([m,k],d,c),this.isDoughnut?(m=e(I,C,y,A,this.rightInnerX,C,J,R,0,0),k=e(I,C,this.rightInnerX,C,D,r,J,R,0,0),a.clipInnerFrontPath=n.concat([y,A],m,g,U,e(I,E,this.rightInnerX,E,y,x,J,R,1,0),N),a.clipInnerBackPath=n.concat(q,k,g,[D,s],e(I,E,D,s,this.rightInnerX,E,J,R,1,0),N),a.clipTopPath=a.clipTopBorderPath.concat(g,[y,A],m,k,N),a.clipTopBorderPath=a.clipTopBorderPath.concat(n,[y,A],m,k)):a.clipTopPath=
a.clipTopBorderPath.concat(g,K,N)):f<$?v>$?(d=e(I,C,m,k,this.leftX,C,G,w,1,0),c=e(I,C,this.leftX,C,z,P,G,w,1,0),a.clipOuterBackPath=n.concat(l,c,g,[z,B],e(I,E,z,B,this.leftX,E,G,w,0,0),N),a.clipOuterFrontPath=n.concat([m,k],d,g,V,e(I,E,this.leftX,E,m,O,G,w,0,0),N),a.clipTopBorderPath=n.concat([m,k],d,c),this.isDoughnut?(m=e(I,C,y,A,this.leftInnerX,C,J,R,0,0),k=e(I,C,this.leftInnerX,C,D,r,J,R,0,0),a.clipInnerBackPath=n.concat([y,A],m,g,t,e(I,E,this.leftInnerX,E,y,x,J,R,1,0),N),a.clipInnerFrontPath=
n.concat(h,k,g,[D,s],e(I,E,D,s,this.leftInnerX,E,J,R,1,0),N),a.clipTopPath=a.clipTopBorderPath.concat(g,[y,A],m,k,N),a.clipTopBorderPath=a.clipTopBorderPath.concat(n,[y,A],m,k)):a.clipTopPath=a.clipTopBorderPath.concat(g,K,N)):(d=e(I,C,m,k,z,P,G,w,1,0),a.clipOuterBackPath=n.concat([m,k]),a.clipTopBorderPath=a.clipOuterBackPath.concat(d),a.clipOuterFrontPath=a.clipTopBorderPath.concat(g,[z,B],e(I,E,z,B,m,O,G,w,0,0),N),this.isDoughnut?(m=e(I,C,y,A,D,r,J,R,0,0),a.clipInnerBackPath=n.concat([y,A]),a.clipTopPath=
a.clipTopBorderPath.concat(g,[y,A],m,N),a.clipTopBorderPath=a.clipTopBorderPath.concat(n,[y,A],m),a.clipInnerFrontPath=a.clipInnerBackPath.concat(m,g,[D,s],e(I,E,D,s,y,x,J,R,1,0),N)):a.clipTopPath=a.clipTopBorderPath.concat(g,K,N)):(d=e(I,C,m,k,z,P,G,w,1,0),a.clipOuterFrontPath=n.concat([m,k]),a.clipTopBorderPath=a.clipOuterFrontPath.concat(d),a.clipOuterBackPath=a.clipTopBorderPath.concat(g,[z,B],e(I,E,z,B,m,O,G,w,0,0),N),this.isDoughnut?(m=e(I,C,y,A,D,r,J,R,0,0),a.clipInnerFrontPath=n.concat([y,
A]),a.clipTopPath=a.clipTopBorderPath.concat(g,[y,A],m,N),a.clipTopBorderPath=a.clipTopBorderPath.concat(a.clipInnerFrontPath,m),a.clipInnerBackPath=a.clipInnerFrontPath.concat(m,g,[D,s],e(I,E,D,s,y,x,J,R,1,0),N)):a.clipTopPath=a.clipTopBorderPath.concat(g,K,N)),d=n.concat(l,g,H),m=n.concat(ca,g,S),a.clipTopPath=a.clipTopPath.concat(d,m),a.clipOuterFrontPath=a.clipOuterFrontPath.concat(d),a.clipOuterFrontPath1=a.clipOuterFrontPath1.concat(d),a.clipOuterBackPath=a.clipOuterBackPath.concat(d),this.isDoughnut&&
(m=n.concat(h,g,q),a.clipInnerFrontPath=a.clipInnerFrontPath.concat(m),a.clipInnerBackPath=a.clipInnerBackPath.concat(m))):(a.clipTopPath=a.clipOuterFrontPath=a.clipOuterBackPath=[],this.isDoughnut&&(a.clipInnerFrontPath=a.clipInnerBackPath=[])),b||(a.elements.startSlice._conf.index=f,a.elements.endSlice._conf.index=v,a.elements.frontOuter._conf.index=Ua(v,f),a.elements.frontOuter1&&(a.elements.frontOuter1._conf.index=f,aa.frontOuter1.attr({path:a.clipOuterFrontPath1})),a.thisElement.attr({path:a.clipTopPath}),
aa.topBorder.attr({path:a.clipTopBorderPath}),aa.bottom.attr({path:a.clipTopPath}),aa.bottomBorder.attr({path:a.clipTopBorderPath}),aa.frontOuter.attr({path:a.clipOuterFrontPath}),aa.backOuter.attr({path:a.clipOuterBackPath}),this.isDoughnut&&(aa.frontInner.attr({path:a.clipInnerFrontPath}),aa.backInner.attr({path:a.clipInnerBackPath})),this.hasOnePoint?(a.elements.startSlice.hide(),a.elements.endSlice.hide()):(a.elements.startSlice.attr({path:a.startSlice}).show(),a.elements.endSlice.attr({path:a.endSlice}).show())))},
onPlotHover:function(a,b){var e=this.pointElemStore[a]._confObject,d=e.thisElement,c=e.elements,f=this.colorObjs[a],v=f.hoverProps,k=b?v.hoverColorObj:f.color,h=f.showBorderEffect,t=b?v.borderColor:f.borderColor,f=b?v.borderWidth:f.borderWidth;pa?(v={fill:L(k.top),"stroke-width":0},1!==h&&(v.stroke=t,v["stroke-width"]=f),d._attr(v),h&&c.topBorder.attr({fill:L(k.topBorder),"stroke-width":0})):(d._attr({fill:L(k.top),"stroke-width":0}),c.topBorder.attr({stroke:t,"stroke-width":f}));c.bottom.attr({fill:L(k.bottom),
"stroke-width":0});c.bottomBorder.attr({stroke:t,"stroke-width":f});c.frontOuter.attr({fill:L(k.frontOuter),"stroke-width":0});c.backOuter.attr({fill:L(k.backOuter),"stroke-width":0});c.startSlice.attr({fill:L(k.startSlice),stroke:t,"stroke-width":f});c.endSlice.attr({fill:L(k.endSlice),stroke:t,"stroke-width":f});d=ga(e.start);e=ga(e.end);(d>e?Z:0)+e-d>$&&c.frontOuter1.attr({fill:L(k.frontOuter),"stroke-width":0});this.isDoughnut&&(c.frontInner.attr({fill:L(k.frontInner),"stroke-width":0}),c.backInner.attr({fill:L(k.backInner),
"stroke-width":0}))},setAttrs:function(a,b,e,d){var c=a._confObject;a=c.thisElement;var c=c.elements,f=d?this.parseColor(l(e.color,b.color),l(e.alpha,b._3dAlpha)):this.parseColor(b.color,b._3dAlpha);e=d?s.graphics.convertColor(e.bordercolor||b.borderColor,l(e.alpha,b._3dAlpha)):b.borderColor;b=b.borderWidth;pa?(d={fill:L(f.top),"stroke-width":0},d.stroke=e,d["stroke-width"]=b,a._attr(d)):(a._attr({fill:L(f.top),"stroke-width":0}),c.topBorder.attr({stroke:e,"stroke-width":b}));c.bottom.attr({fill:L(f.bottom),
"stroke-width":0});c.bottomBorder.attr({stroke:e,"stroke-width":b});c.frontOuter.attr({fill:L(f.frontOuter),"stroke-width":0});c.backOuter.attr({fill:L(f.backOuter),"stroke-width":0});c.startSlice.attr({fill:L(f.startSlice),stroke:e,"stroke-width":b});c.endSlice.attr({fill:L(f.endSlice),stroke:e,"stroke-width":b});this.isDoughnut&&(c.frontInner.attr({fill:L(f.frontInner),"stroke-width":0}),c.backInner.attr({fill:L(f.backInner),"stroke-width":0}))},createSlice:function(){var a={stroke:!0,strokeWidth:!0,
"stroke-width":!0,dashstyle:!0,"stroke-dasharray":!0,translateX:!0,translateY:!0,"stroke-opacity":!0,transform:!0,fill:!0,opacity:!0,ishot:!0,start:!0,end:!0,cursor:!0},b=function(b,e){var d,c,p=this,f=p._confObject,u,k=f.elements,h,n,q=f.Pie3DManager;"string"===typeof b&&void 0!==e&&null!==e&&(d=b,b={},b[d]=e);if(b&&"string"!==typeof b){void 0!==b.cx&&(b.start=b.cx);void 0!==b.cy&&(b.end=b.cy);for(d in b)if(c=b[d],a[d])if(f[d]=c,"ishot"===d||"cursor"===d){u={};u[d]=c;for(h in k)k[h].attr(u);p._attr(u)}else if("transform"===
d){for(h in k)k[h].attr({transform:b[d]});p._attr({transform:b[d]})}else"stroke"===d||"strokeWidth"===d||"stroke-width"===d||"dashstyle"===d||"stroke-dasharray"===d?(u={},u[d]=c,k.topBorder&&k.topBorder.attr(u),k.startSlice.attr(u),k.endSlice.attr(u),k.bottomBorder.attr(u)):"fill"===d||"start"!==d&&"end"!==d||(n=!0);else p._attr(d,c);n&&(q.updateSliceConf(f),q.refreshDrawing())}else p=p._attr(b);return p},e=function(a,b,d,e){var c=this._confObject.elements,p;for(p in c)if(d)c[p].drag(b,d,e);else c[p].on(a,
b);return d?this.drag(b,d,e):this._on(a,b)},d=function(){var a=this._confObject.elements,b;for(b in a)a[b].hide();return this._hide()},c=function(){var a=this._confObject.elements,b;for(b in a)a[b].show();return this._show()},f=function(){var a=this._confObject,b=a.elements,d;for(d in b)b[d].destroy();pa&&(a.clipTop.destroy(),a.clipOuterFront.destroy(),a.clipOuterBack.destroy(),a.clipOuterFront1&&a.clipOuterFront1.destroy(),a.clipInnerFront&&a.clipInnerFront.destroy(),a.clipInnerBack&&a.clipInnerBack.destroy());
return this._destroy()};return function(a,k,h,t,n,m,q,g,M,F){var r=this.renderer;h=this.parseColor(h,t);a={start:a,end:k,elements:{},Pie3DManager:this};k=this.slicingWallsArr;t=a.elements;var y,w=pa?"litepath":"path";F&&(this.colorObjs[q]={color:h,borderColor:n,borderWidth:m,showBorderEffect:!1},F.hoverColorObj=this.parseColor(F.color,F.alpha),this.colorObjs[q].hoverProps=F);this.updateSliceConf(a,!0);pa?(F={fill:L(h.top),"stroke-width":0},1!==M&&(F.stroke=n,F["stroke-width"]=m),F=r[w](a.clipTopPath,
this.topGroup).attr(F),M&&(t.topBorder=r[w](a.clipTopBorderPath,this.topGroup).attr({fill:L(h.topBorder),"stroke-width":0}))):(F=r[w](a.clipTopPath,this.topGroup).attr({fill:L(h.top),"stroke-width":0}),t.topBorder=r[w](a.clipTopBorderPath,this.topGroup).attr({stroke:n,"stroke-width":m}));t.bottom=r[w](a.clipTopPath,this.bottomBorderGroup).attr({fill:L(h.bottom),"stroke-width":0});t.bottomBorder=r[w](pa?a.clipTopPath:a.clipTopBorderPath,this.bottomBorderGroup).attr({stroke:n,"stroke-width":m});t.frontOuter=
r[w](a.clipOuterFrontPath,this.slicingWallsFrontGroup).attr({fill:L(h.frontOuter),"stroke-width":0});t.backOuter=r[w](a.clipOuterBackPath,this.outerBackGroup).attr({fill:L(h.backOuter),"stroke-width":0});t.startSlice=r[w](a.startSlice,this.slicingWallsFrontGroup).attr({fill:L(h.startSlice),stroke:n,"stroke-width":m});t.endSlice=r[w](a.endSlice,this.slicingWallsFrontGroup).attr({fill:L(h.endSlice),stroke:n,"stroke-width":m});n=ga(a.start);m=ga(a.end);M=(n>m?Z:0)+m-n;M>$&&(t.frontOuter1=r[w](a.clipOuterFrontPath1,
this.slicingWallsFrontGroup).attr({fill:L(h.frontOuter),"stroke-width":0}),t.frontOuter1._conf={index:n,isStart:.5,pIndex:q},pa&&(a.clipOuterFront1=a.clipOuterFrontPath1));t.frontOuter._conf={index:Ua(m,n),isStart:.5,pIndex:q};t.startSlice._conf={index:n,isStart:0,pIndex:q};t.endSlice._conf={index:m,isStart:1,pIndex:q};this.hasOnePoint&&(t.startSlice.hide(),t.endSlice.hide());this.isDoughnut?(t.frontInner=r[w](a.clipInnerFrontPath,this.innerFrontGroup).attr({fill:L(h.frontInner),"stroke-width":0}),
t.backInner=r[w](a.clipInnerBackPath,this.innerBackGroup).attr({fill:L(h.backInner),"stroke-width":0}),t.backInner._conf={index:Ua(m,n),isStart:.5,pIndex:q},M>$?pa?k.push(t.startSlice,t.frontOuter1,t.frontOuter,t.backInner,t.endSlice):k.push(t.startSlice,t.frontOuter1,t.frontOuter,t.endSlice):pa?k.push(t.startSlice,t.frontOuter,t.backInner,t.endSlice):k.push(t.startSlice,t.frontOuter,t.endSlice)):M>$?k.push(t.startSlice,t.frontOuter1,t.frontOuter,t.endSlice):k.push(t.startSlice,t.frontOuter,t.endSlice);
if(void 0!==g){for(y in t)t[y].tooltip(g);F.tooltip(g)}pa&&(a.clipTop=a.clipTopPath,a.clipOuterFront=a.clipOuterFrontPath,a.clipOuterBack=a.clipOuterBackPath,this.isDoughnut&&(a.clipInnerFront=a.clipInnerFrontPath,a.clipInnerBack=a.clipInnerBackPath));F._confObject=a;a.thisElement=F;F._destroy=F.destroy;F.destroy=f;F._show=F.show;F.show=c;F._hide=F.hide;F.hide=d;F._on=F.on;F.on=e;F._attr=F.attr;F.attr=b;this.pointElemStore.push(F);return F}}()};Va.prototype.constructor=Va;q("renderer.pie3d",{type:"pie3d",
isHovered:!1,translate:function(){var a=0,b=this.options,e=b.series[0],d=b.plotOptions.series.dataLabels,c=b.plotOptions.pie3d,f=l(e.startAngle,0)%360,v=e.managedPieSliceDepth,n=e.slicedOffset=c.slicedOffset,q=this.canvasWidth,t=this.canvasHeight,g=[this.canvasLeft+.5*q,this.canvasTop+.5*t-.5*v],m,E,s,x,N,b=e.data,H,D=A(q,t),ca,B,aa,K=d.distance,ja=e.pieYScale,I=e.pieSliceDepth,C=e.slicedOffsetY=n*ja;g.push(c.size,c.innerSize||0);g=sa(g,function(a,b){return(ca=/%$/.test(a))?[q,t-v,D,D][b]*parseInt(a,
10)/100:a});g[2]/=2;g[3]/=2;g.push(g[2]*ja);g.push((g[2]+g[3])/2);g.push(g[5]*ja);e.getX=function(a,b){s=k.asin((a-g[1])/(g[2]+K));return g[0]+(b?-1:1)*M(s)*(g[2]+K)};e.center=g;Ba(b,function(b){a+=b.y});e.labelsRadius=g[2]+K;e.labelsRadiusY=e.labelsRadius*ja;e.quadrantHeight=(t-v)/2;e.quadrantWidth=q/2;x=-f*w;x=y(1E3*x)/1E3;N=x+Z;c=h(parseInt(d.style.fontSize,10),10)+4;e.maxLabels=r(e.quadrantHeight/c);e.labelFontSize=c;e.connectorPadding=h(d.connectorPadding,5);e.isSmartLineSlanted=l(d.isSmartLineSlanted,
!0);e.connectorWidth=h(d.connectorWidth,1);e.enableSmartLabels=d.enableSmartLabels;e.Pie3DManager||(e.Pie3DManager=new Va(g[0],g[1],g[2],g[3],ja,I,this.layers.dataset,this.paper,1===e.data.length,e.use3DLighting));Ba(b,function(b){m=x;H=a?b.y/a:0;x=y(1E3*(x+H*Z))/1E3;x>N&&(x=N);E=x;b.shapeArgs={start:y(1E3*m)/1E3,end:y(1E3*E)/1E3};b.centerAngle=s=(E+m)/2%Z;b.slicedTranslation=[y(M(s)*n),y(F(s)*C)];B=M(s)*g[2];e.radiusY=aa=F(s)*g[4];b.tooltipPos=[g[0]+.7*B,g[1]+aa];b.percentage=100*H;b.total=a})},
drawPlotPie3d:function(a,b){this.translate();var c=this,d=a.items,f=a.data,k=c.options,g=k.plotOptions,n=g.series,q=c.layers,t=c.elements.plots[0],r=c.datasets[0],g=g.series.dataLabels,m=n.dataLabels.style,n=h(a.moveDuration,n.animation.duration),w=c.paper,y=k.tooltip||{},y=y&&!1!==y.enabled,l=r.slicedOffset,A=r.slicedOffsetY,E=c.plotDragMove,D=c.plotDragStart,s=c.plotDragEnd,x=c.plotRollOver,H=c.plotRollOut,ca=!!c.datasets[0].enableRotation,B=b.showBorderEffect,I=f.length,C=k.chart,k=C.usePerPointLabelColor,
C=C.textDirection,G={fontFamily:m.fontFamily,fontSize:m.fontSize,lineHeight:m.lineHeight,fontWeight:m.fontWeight,fontStyle:m.fontStyle},aa=function(a){return function(){c.legendClick(a,!0,!1)}},K=function(a){return function(){return c.getEventArgs(a)}},ja=function(a){return function(b,d,c,e,p){E.call(a,b,d,c,e,p)}},J=function(a){return function(b,d,c){D.call(a,b,d,c)}},R=function(a){return function(b){s.call(a,b)}},S=function(a){return function(b){H.call(a,b)}},$=function(a){return function(b){x.call(a,
b)}},Z,O,z,P,fa,ba,V,W,Y,X;f&&I||(f=[]);t.singletonCase=1===I;t.chartPosition=Ka(c.container);t.pieCenter=r.center;t.timerThreshold=30;for(X=-1;++X<I;)z=f[X],m=z.y,P=z.displayValue,G=z.sliced,W=z.shapeArgs,Z=z.centerAngle,Y=z.toolText,ba=(fa=!!z.link)||ca||!z.doNotSlice,null===m||void 0===m||(O=d[X])||(b.data[X].plot=O=d[X]={chart:c,index:X,seriesData:t,value:m,angle:Z,link:z.link,shapeArgs:W,slicedX:G&&!t.singletonCase?M(Z)*l:0,slicedY:G&&!t.singletonCase?F(Z)*A:0,sliced:G,labelText:P,name:z.name,
label:z.name,percentage:z.percentage,toolText:Y,originalIndex:I-X-1,style:z.style,graphic:r.Pie3DManager.createSlice(W.start,W.end,z.color,z._3dAlpha,z.borderColor,z.borderWidth,X,y?Y:"",B,z.rolloverProperties)},b.data[X].legendClick=aa(O),b.data[X].getEventArgs=K(O),O.graphic.plotItem=O,O.graphic.data("plotItem",O),O.transX=M(Z)*l,O.transY=F(Z)*A,O.slicedTranslation="t"+O.transX+","+O.transY,Z={index:b.reversePlotOrder?X:I-1-X,link:z.link,value:z.y,displayValue:z.displayValueArgs,categoryLabel:z.categoryLabel,
isSliced:z.sliced,toolText:z.toolText},O.graphic.attr({transform:"t"+O.slicedX+","+O.slicedY,ishot:ba,cursor:fa?"pointer":""}).drag(ja(O),J(O),R(O)).data("groupId",X).data("eventArgs",Z).mouseover($(O)).mouseout(S(O)),void 0!==P&&(m=z.style,G={fontFamily:m.fontFamily,fontSize:m.fontSize,lineHeight:m.lineHeight,fontWeight:m.fontWeight,fontStyle:m.fontStyle},O.dataLabel=w.text(q.dataset).css(G).attr({text:P,title:z.originalText||"",fill:(k?L(z.color):m.color)||"#000000","text-bound":[m.backgroundColor,
m.borderColor,m.borderThickness,m.borderPadding,m.borderRadius,m.borderDash],visibility:"hidden",direction:C,ishot:ba,cursor:fa?"pointer":""}).data("eventArgs",Z).hover($(O),S(O)).drag(ja(O),J(O),R(O)).data("plotItem",O),0<g.distance&&(V=g.connectorWidth)&&g.enableSmartLabels&&(O.connector=w.path("M 0 0 l 0 0",q.dataset).attr({"stroke-width":V,stroke:g.connectorColor||"#606060",visibility:"hidden",ishot:ba,cursor:fa?"pointer":""}).data("eventArgs",Z).hover($(O),S(O)).drag(ja(O),J(O),R(O)).data("plotItem",
O))));r.Pie3DManager.refreshDrawing();0<n?c.animate(d,n):c.placeDataLabels(!1,d)},rotate:function(a){var b=this.datasets[0],c=this.elements.plots[0].items,d=b.slicedOffset,f=b.slicedOffsetY,k=b.startAngle,g;a=isNaN(a)?-b._lastAngle:a;g=(a-k)%360;b.startAngle=h(a,b.startAngle)%360;g=-(g*K)/180;b.Pie3DManager&&b.Pie3DManager.rotate(g);Ba(c,function(a){var b=a.graphic,c=a.shapeArgs,e=c.start+=g,c=c.end+=g,p=a.angle=ga((e+c)/2),e=a.sliced,c=M(p),p=F(p);a.slicedTranslation=[y(c*d),y(p*f)];a.transX=a.slicedTranslation[0];
a.transY=a.slicedTranslation[1];a.slicedX=e?M(g)*d:0;a.slicedY=e?F(g)*f:0;b&&e&&a.graphic.attr({transform:"t"+a.slicedTranslation[0]+","+a.slicedTranslation[1]})});this.placeDataLabels(!0,c)},plotRollOver:function(a){var b=this.chart,c=b.datasets[0].Pie3DManager;this.seriesData.isRotating||(Da.call(this.graphic,b,a,"DataPlotRollOver"),c.colorObjs[this.index]&&c.onPlotHover(this.index,!0));b.isHovered=!0},plotRollOut:function(a){var b=this.chart,c=b.datasets[0].Pie3DManager;this.seriesData.isRotating||
(Da.call(this.graphic,b,a,"DataPlotRollOut"),c.colorObjs[this.index]&&c.onPlotHover(this.index,!1));b.isHovered=!1},plotDragStart:function(a,b,c){var d=this.seriesData,f=this.chart.datasets[0];d.isRotating=!1;f.enableRotation&&(a=Ta.call(c,a,b,d.pieCenter,d.chartPosition,f.pieYScale),f.dragStartAngle=a,f._lastAngle=-f.startAngle,f.startingAngleOnDragStart=f.startAngle)},plotDragEnd:function(a){var b=this.chart,c=b.datasets[0],d=c.Pie3DManager,f=c.startAngle,k=this.seriesData,g={hcJSON:{series:[{startAngle:f}]}};
b.disposed||Fa(b.logic.chartInstance.jsVars._reflowData,g,!0);!k.isRotating&&b.plotGraphicClick.call(this,a);k.isRotating&&(setTimeout(function(){k.isRotating=!1},0),ya.raiseEvent("rotationEnd",{startingAngle:ga(f,!0),changeInAngle:f-c.startingAngleOnDragStart},b.logic.chartInstance),!b.isHovered&&d.colorObjs[this.index]&&d.onPlotHover(this.index,!1))},plotDragMove:function(a,b,c,d,f){var k=this.chart;a=k.datasets[0];b=this.seriesData;k.options.series[0].enableRotation&&!b.singletonCase&&(c=Ta.call(f,
c,d,b.pieCenter,b.chartPosition,a.pieYScale),b.isRotating||(a.dragStartAngle!==c&&(b.isRotating=!0),ya.raiseEvent("rotationStart",{startingAngle:ga(a.startAngle,!0)},k.logic.chartInstance)),d=c-a.dragStartAngle,a.dragStartAngle=c,b.moveDuration=0,a._lastAngle+=180*d/K,c=(new Date).getTime(),!a._lastTime||a._lastTime+b.timerThreshold<c)&&(a._lastTime||k.rotate(),b.timerId=setTimeout(function(){k.disposed&&k.disposing||k.rotate()},b.timerThreshold),a._lastTime=c)},animate:function(a,b){var c,d,f,k=
a.length,g,h,n,q=this,F,m=function(){q.disposed||q.disposing||q.placeDataLabels(!1,a)};if(q.datasets[0].alphaAnimation)q.layers.dataset.attr({opacity:0}),q.layers.dataset.animate({opacity:1},b,"ease-in",function(){q.disposed||q.disposing||q.placeDataLabels(!1,a)});else for(c=0;c<k;c++)g=a[c],h=g.graphic,n=g.shapeArgs,g=2*K,h&&(h.attr({start:g,end:g}),F=n.start,n=n.end,d?h.animateWith(d,f,{cx:F-g,cy:n-g},b,"ease-in"):(f=na.animation({cx:F-g,cy:n-g},b,"ease-in",m),d=h.animate(f)))},placeDataLabels:function(){var a=
function(a,b){return a.point.value-b.point.value},b=function(a,b){return a.angle-b.angle},c=["start","start","end","end"],d=[-1,1,1,-1],g=[1,1,-1,-1];return function(q,v){var r=this.datasets[0],w=this.smartLabel,t=this.options.plotOptions.series.dataLabels,l=t.style,m=h(H(parseFloat(l.lineHeight)),12),E=Oa(t.placeInside,!1),s=t.skipOverlapLabels,x=t.manageLabelOverflow,N=t.connectorPadding,ca=t.connectorWidth,D,B,ja=0<t.distance,K=r.center,L=K[1],fa=K[0],I=K[2],C=K[4],G=[[],[],[],[]],X,W,Y,J=this.canvasLeft,
R=this.canvasTop,S=this.canvasWidth,ua,Q,O,z,P,ka,da,V,va,ra,ma,ta=r.labelsRadius,la=y(100*r.labelsRadiusY)/100,na=r.labelFontSize,ha=na,ga=ha/2,N=[N,N,-N,-N],wa=r.maxLabels,oa=r.isSmartLineSlanted,pa=r.enableSmartLabels,ia,r=r.pieSliceDepth/2;q||w.setStyle(l);if(1==v.length)z=v[0],ia=z.dataLabel,z.slicedTranslation=[J,R],ia&&(ia.attr({visibility:f,"text-anchor":"middle",x:fa,y:L+ga-2}),ia.x=fa);else if(E)Ba(v,function(a){if(ia=a.dataLabel){ma=a.angle;ra=L+K[6]*F(ma)+ga-2;da=fa+K[5]*M(ma);ia.x=da;
ia._x=da;ia.y=ra;if(a.sliced){a=a.slicedTranslation;var b=a[1]-R;da+=a[0]-J;ra+=b}ia.attr({visibility:f,align:"middle",x:da,y:ra})}});else{Ba(v,function(a){if(ia=a.dataLabel)ma=a.angle,0>ma&&(ma=Z+ma),X=0<=ma&&ma<Pa?1:ma<$?2:ma<ba?3:0,G[X].push({point:a,angle:ma})});for(Y=E=4;Y--;){if(s&&(z=G[Y].length-wa,0<z))for(G[Y].sort(a),W=G[Y].splice(0,z),Q=0,O=W.length;Q<O;Q+=1)z=W[Q].point,z.dataLabel.attr({visibility:"hidden"}),z.connector&&z.connector.attr({visibility:"hidden"});G[Y].sort(b)}Y=n(G[0].length,
G[1].length,G[2].length,G[3].length);la=n(A(Y,wa)*ha,la+ha);G[1].reverse();G[3].reverse();for(w.setStyle(l);E--;){Q=G[E];O=Q.length;s||(ha=O>wa?la/O:na,ga=ha/2);z=O*ha;l=la;for(Y=0;Y<O;Y+=1,z-=ha)B=aa(la*F(Q[Y].angle)),l<B?B=l:B<z&&(B=z),l=(Q[Y].oriY=B)-ha;W=c[E];O=la-(O-1)*ha;l=0;for(Y=Q.length-1;0<=Y;--Y,O+=ha)z=Q[Y].point,ma=Q[Y].angle,P=z.sliced,ia=z.dataLabel,B=aa(la*F(ma)),B<l?B=l:B>O&&(B=O),l=B+ha,V=(B+Q[Y].oriY)/2,B=fa+g[E]*ta*M(k.asin(V/la)),V*=d[E],V+=L,va=L+C*F(ma),ka=fa+I*M(ma),(2>E&&
B<ka||1<E&&B>ka)&&(B=ka),da=B+N[E],ra=V+ga-2,D=da+N[E],ia.x=D,ia._x=D,x&&(ua=1<E?D-this.canvasLeft:this.canvasLeft+S-D,w.setStyle(z.style),m=h(H(parseFloat(z.style.lineHeight)),12)+(2*H(parseFloat(z.style.border),12)||0),m=w.getSmartText(z.labelText,ua,m),ia.attr({text:m.text}).tooltip(m.tooltext)),ma<$&&(V+=r,va+=r,ra+=r),ia.y=ra,P&&(m=z.transX,P=z.transY,da+=m,B+=m,ka+=m,va+=P,D+=m),ia.attr({visibility:f,"text-anchor":W,x:D,y:V}),ja&&ca&&pa&&(D=z.connector,z.connectorPath=B=["M",ka,va,"L",oa?B:
ka,V,da,V],D?(D.attr({path:B}),D.attr("visibility",f)):z.connector=D=this.paper.path(B).attr({"stroke-width":ca,stroke:t.connectorColor||"#606060",visibility:f}))}}}}()},q["renderer.piebase"]);q("renderer.pie",{drawDoughnutCenterLabel:function(a,b,c,d,k,g,h){var n=this.options.series[0];g=g||n.lastCenterLabelConfig;var q=this.paper,F=this.smartLabel,r=this.layers.dataset,m=this.elements,M=g.padding,w=2*g.textPadding,l={fontFamily:g.font,fontSize:g.fontSize+"px",lineHeight:1.2*g.fontSize+"px",fontWeight:g.bold?
"bold":"",fontStyle:g.italic?"italic":""},y=1.414*(.5*d-M)-w;k=1.414*(.5*k-M)-w;var E;F.setStyle(l);F=F.getSmartText(a,y,k);(k=m.doughnutCenterLabel)?(k.attr("text")!==a&&this.centerLabelChange(a),E=m.centerLabelOvalBg):(g.bgOval&&(m.centerLabelOvalBg=E=q.circle(b,c,.5*d-M,r)),k=m.doughnutCenterLabel=q.text(r).hover(this.centerLabelRollover,this.centerLabelRollout).click(this.centerLabelClick),k.chart=this);a?(k.css(l).attr({x:b,y:c,text:F.text,visibility:f,direction:this.options.chart.textDirection,
fill:L({FCcolor:{color:g.color,alpha:g.alpha}}),"text-bound":g.bgOval?"none":[L({FCcolor:{color:g.bgColor,alpha:g.bgAlpha}}),L({FCcolor:{color:g.borderColor,alpha:g.borderAlpha}}),g.borderThickness,g.textPadding,g.borderRadius]}).tooltip(g.toolText||F.tooltext),g.bgOval&&E&&E.attr({visibility:f,fill:ua(g.bgColor),"fill-opacity":g.bgAlpha/100,stroke:ua(g.borderColor),"stroke-width":g.borderThickness,"stroke-opacity":g.borderAlpha/100})):(k.attr("visibility","hidden"),E&&E.attr("visibility","hidden"));
h&&(n.lastCenterLabelConfig=g)},centerLabelRollover:function(){var a=this.chart,b=a.fusionCharts,c=a.options.series[0].lastCenterLabelConfig,b={height:b.args.height,width:b.args.width,pixelHeight:b.ref.offsetHeight,pixelWidth:b.ref.offsetWidth,id:b.args.id,renderer:b.args.renderer,container:b.options.containerElement,centerLabelText:c&&c.label};this.attr("text")&&ya.raiseEvent("centerLabelRollover",b,a.logic.chartInstance,this,a.hoverOnCenterLabel)},centerLabelRollout:function(){var a=this.chart,
b=a.fusionCharts,c=a.options.series[0].lastCenterLabelConfig,b={height:b.args.height,width:b.args.width,pixelHeight:b.ref.offsetHeight,pixelWidth:b.ref.offsetWidth,id:b.args.id,renderer:b.args.renderer,container:b.options.containerElement,centerLabelText:c&&c.label};this.attr("text")&&ya.raiseEvent("centerLabelRollout",b,a.logic.chartInstance,this,a.hoverOffCenterLabel)},centerLabelClick:function(){var a=this.chart,b=a.fusionCharts,c=a.options.series[0].lastCenterLabelConfig,b={height:b.args.height,
width:b.args.width,pixelHeight:b.ref.offsetHeight,pixelWidth:b.ref.offsetWidth,id:b.args.id,renderer:b.args.renderer,container:b.options.containerElement,centerLabelText:c&&c.label};this.attr("text")&&ya.raiseEvent("centerLabelClick",b,a.logic.chartInstance)},centerLabelChange:function(a){var b=this.fusionCharts;ya.raiseEvent("centerLabelChanged",{height:b.args.height,width:b.args.width,pixelHeight:b.ref.offsetHeight,pixelWidth:b.ref.offsetWidth,id:b.args.id,renderer:b.args.renderer,container:b.options.containerElement,
centerLabelText:a},this.logic.chartInstance)},hoverOnCenterLabel:function(){var a=this.chart.options.series[0].lastCenterLabelConfig;(a.hoverColor||a.hoverAlpha)&&this.attr({fill:L({FCcolor:{color:a.hoverColor||a.color,alpha:a.hoverAlpha||a.alpha}})})},hoverOffCenterLabel:function(){var a=this.chart.options.series[0].lastCenterLabelConfig;(a.hoverColor||a.hoverAlpha)&&this.attr({fill:L({FCcolor:{color:a.color,alpha:a.alpha}})})},drawPlotPie:function(a,b){var c=this,d=a.items,g=a.data,k=c.options,
n=k.series[0],q=k.plotOptions,r=q.pie,t=q.series,w=c.layers,m=w.dataset,E=c.elements.plots[0],q=q.series.dataLabels,l=t.dataLabels.style,y=t.shadow,t=h(a.moveDuration,t.animation.duration),A=c.paper,s=k.tooltip||{},s=s&&!1!==s.enabled,D=((b.startAngle*=-$/180)||0)%Z,B=r.slicedOffset,x=b.valueTotal,ca=Z/x,H=c.canvasLeft+.5*c.canvasWidth,K=c.canvasTop+.5*c.canvasHeight,I=.5*r.size,r=.5*(r.innerSize||0),C=c.plotDragMove,G=c.plotDragStart,ja=c.plotDragEnd,aa=c.plotRollOver,Y=c.plotRollOut,J=!!c.datasets[0].enableRotation,
R=g.length,S=k.chart,k=S.usePerPointLabelColor,S=S.textDirection,fa=n.centerLabelConfig,W=fa.label,O={fontFamily:l.fontFamily,fontSize:l.fontSize,lineHeight:l.lineHeight,fontWeight:l.fontWeight,fontStyle:l.fontStyle},z,P,X,ba,V,Q,ma,ua,da,ka,ra=a.shadowGroup,va,la,ha,ia,ta,Pa=function(a){return function(){c.legendClick(a,!0,!1)}},ga=function(a){return function(){return c.getEventArgs(a)}},wa=function(){c.disposed||c.disposing||c.paper.ca.redrawDataLabels||(c.placeDataLabels(!1,d,a),c.paper.ca.redrawDataLabels=
c.redrawDataLabels)};g&&R||(g=[]);ra||(ra=a.shadowGroup=A.group(m).toBack());E.singletonCase=1===R;E.chartPosition||(E.chartPosition=Ka(c.container));E.pieCenter=[H,K];E.timerThreshold=30;da=ua=D;for(va=R;va--;)P=g[va],O=P.y,X=P.displayValue,V=P.sliced,l=P.toolText,Q=(ba=!!P.link)||J||!P.doNotSlice,null!==O&&void 0!==O&&(z=P.color.FCcolor,z.r=I,z.cx=H,z.cy=K,P.rolloverProperties&&(z=P.rolloverProperties.color.FCcolor,z.r=I,z.cx=H,z.cy=K),da=ua,ua-=E.singletonCase?Z:O*ca,ma=.5*(ua+da),t?ia=ta=D:(ia=
ua,ta=da),(z=d[va])||(b.data[va].plot=z=d[va]={chart:c,index:va,seriesData:E,value:O,angle:ma,slicedX:M(ma)*B,slicedY:F(ma)*B,sliced:V,labelText:X,toolText:l,label:P.name,link:P.link,percentage:x?O*x/100:0,originalIndex:R-va-1,style:P.style,color:P.color,borderColor:P.borderColor,borderWidth:P.borderWidth,rolloverProperties:P.rolloverProperties,center:[H,K],innerDiameter:2*r,centerLabelConfig:P.centerLabelConfig,graphic:A.ringpath(H,K,I,r,ia,ta,w.dataset).attr({"stroke-width":P.borderWidth,"stroke-linejoin":"round",
stroke:P.borderColor,fill:L(P.color),"stroke-dasharray":P.dashStyle,redrawDataLabels:D,ishot:Q,cursor:ba?"pointer":""}).shadow(y&&P.shadow,ra).drag(C,G,ja).hover(aa,Y)},s&&z.graphic.tooltip(l),b.data[va].legendClick=Pa(z),b.data[va].getEventArgs=ga(z),z.graphic.data("plotItem",z),ba={index:b.reversePlotOrder?va:R-1-va,link:P.link,value:P.y,displayValue:P.displayValueArgs,categoryLabel:P.categoryLabel,isSliced:P.sliced,toolText:P.toolText},z.graphic.data("eventArgs",ba),void 0!==X&&(l=P.style,O={fontFamily:l.fontFamily,
fontSize:l.fontSize,lineHeight:l.lineHeight,fontWeight:l.fontWeight,fontStyle:l.fontStyle},z.dataLabel=A.text(m).css(O).attr({text:X,fill:(k?L(P.color):l.color)||"#000000","text-bound":[l.backgroundColor,l.borderColor,l.borderThickness,l.borderPadding,l.borderRadius,l.borderDash],ishot:Q,direction:S,visibility:"hidden"}).drag(C,G,ja).hover(aa,Y).data("eventArgs",ba).hide(),z.dataLabel.data("plotItem",z),0<q.distance&&(ka=q.connectorWidth)&&q.enableSmartLabels&&(z.connector=A.path("M 0 0 l 0 0",m).attr({"stroke-width":ka,
stroke:q.connectorColor||"#606060",visibility:f,ishot:!0}).data("eventArgs",ba).drag(C,G,ja).hover(aa,Y),z.connector.data("plotItem",z)))),z.angle=ma,z.transX=M(ma)*B,z.transY=F(ma)*B,z.slicedTranslation="t"+M(ma)*B+","+F(ma)*B,t?la?z.graphic.animateWith(la,ha,{ringpath:[H,K,I,r,ua,da],transform:z.sliced?z.slicedTranslation:""},t,"easeIn"):(ha=na.animation({ringpath:[H,K,I,r,ua,da],redrawDataLabels:c,transform:z.sliced?z.slicedTranslation:""},t,"easeIn",wa),la=z.graphic.animate(ha)):z.graphic.attr({transform:z.sliced?
z.slicedTranslation:""}));W&&r&&c.drawDoughnutCenterLabel(W,H,K,2*r,2*r,fa,!0);n.lastCenterLabelConfig=fa;t?n.doughnutCenterLabel&&n.doughnutCenterLabel.attr({"fill-opacity":0}).animate(na.animation({"fill-opacity":100},100).delay(100<t?t-100:0)):c.placeDataLabels(!1,d,a)},rotate:function(a,b){var c=a.items,d=a.data,f=this.options.plotOptions.pie,g=f.slicedOffset,k=Z/b.valueTotal,h=this.canvasLeft+.5*this.canvasWidth,n=this.canvasTop+.5*this.canvasHeight,q=.5*f.size,f=.5*(f.innerSize||0),r,m,l,w,
E;l=(b.startAngle||0)%Z;for(E=d.length;E--;)r=d[E],m=r.y,null!==m&&void 0!==m&&(r=c[E],w=l,l-=r.seriesData.singletonCase?Z:m*k,m=.5*(l+w),r.angle=m,r.transX=M(m)*g,r.transY=F(m)*g,r.slicedTranslation="t"+M(m)*g+","+F(m)*g,r.graphic.attr({ringpath:[h,n,q,f,l,w],transform:r.sliced?r.slicedTranslation:""}));this.placeDataLabels(!0,c,a)}},q["renderer.piebase"])},[3,2,2,"sr4"]]);
FusionCharts.register("module",["private","modules.renderer.js-zoomline",function(){var Ka=this,sa=Ka.hcLib,ga=Ka.window,Ua=/msie/i.test(ga.navigator.userAgent)&&!ga.opera,Ta=sa.chartAPI,Va=sa.chartAPI,ya=sa.extend2,s=sa.raiseEvent,na=sa.pluck,x=sa.pluckNumber,Sa=sa.getFirstColor,Q=sa.graphics.convertColor,Ya=sa.bindSelectionEvent,l=sa.createTrendLine,Ga=sa.parseUnsafeString,Na=sa.regescape,h=sa.Raphael,Oa=sa.hasTouch,Za=sa.getMouseCoordinate,oa=sa.FC_CONFIG_STRING,Aa="rgba(192,192,192,"+(Ua?.002:
1E-6)+")",Fa=ga.Math,La=Fa.ceil,L=Fa.floor,Ia=Fa.max,Ma=Fa.min,pa=Fa.cos,Ba=Fa.sin,Ea=ga.parseFloat,Wa=ga.parseInt,Da;ya(sa.eventList,{zoomed:"FC_Zoomed",pinned:"FC_Pinned",resetzoomchart:"FC_ResetZoomChart"});Ta("zoomline",{friendlyName:"Zoomable and Panable Multi-series Line Chart",rendererId:"zoomline",standaloneInit:!0,hasVDivLine:!0,defaultSeriesType:"stepzoom",canvasborderthickness:1,defaultPlotShadow:1,chart:function(){for(var b=Ta.msline.chart.apply(this,arguments),c=b[oa],f=this.dataObj.chart,
k=this.colorManager.getColor("canvasBorderColor"),h=b.chart,l=0,s=b.series,y=s&&s.length||0,A;y--;)A=s[y],l=Ia(l,A&&A.showAnchors&&A.attrs&&A.attrs.anchors&&(A.attrs.anchors.r||0)+(A.attrs.anchors["stroke-width"]||0)||0);ya(h,{animation:!1,zoomType:"x",canvasPadding:Ia(l,x(f.canvaspadding,0)),overFlowingMarkerWidth:l,scrollColor:Sa(na(f.scrollcolor,this.colorManager.getColor("altHGridColor"))),scrollShowButtons:!!x(f.scrollshowbuttons,1),scrollHeight:x(f.scrollheight,16)||16,scrollBarFlat:c.flatScrollBars,
allowPinMode:x(f.allowpinmode,1),skipOverlapPoints:x(f.skipoverlappoints,1),showToolBarButtonTooltext:x(f.showtoolbarbuttontooltext,1),btnResetChartTooltext:na(f.btnresetcharttooltext,"Reset Chart"),btnZoomOutTooltext:na(f.btnzoomouttooltext,"Zoom out one level"),btnSwitchToZoomModeTooltext:na(f.btnswitchtozoommodetooltext,"<strong>Switch to Zoom Mode</strong><br/>Select a subset of data to zoom into it for detailed view"),btnSwitchToPinModeTooltext:na(f.btnswitchtopinmodetooltext,"<strong>Switch to Pin Mode</strong><br/>Select a subset of data and compare with the rest of the view"),
pinPaneFill:Q(na(f.pinpanebgcolor,k),x(f.pinpanebgalpha,15)),zoomPaneFill:Q(na(f.zoompanebgcolor,"#b9d5f1"),x(f.zoompanebgalpha,30)),zoomPaneStroke:Q(na(f.zoompanebordercolor,"#3399ff"),x(f.zoompaneborderalpha,80)),showPeakData:x(f.showpeakdata,0),maxPeakDataLimit:x(f.maxpeakdatalimit,f.maxpeaklimit,null),minPeakDataLimit:x(f.minpeakdatalimit,f.minpeaklimit,null),crossline:{enabled:x(f.showcrossline,1),line:{"stroke-width":x(f.crosslinethickness,1),stroke:Sa(na(f.crosslinecolor,"#000000")),"stroke-opacity":x(f.crosslinealpha,
20)/100},labelEnabled:x(f.showcrosslinelabel,f.showcrossline,1),labelstyle:{fontSize:Ea(f.crosslinelabelsize)?Ea(f.crosslinelabelsize)+"px":c.outCanvasStyle.fontSize,fontFamily:na(f.crosslinelabelfont,c.outCanvasStyle.fontFamily)},valueEnabled:x(f.showcrosslinevalues,f.showcrossline,1),valuestyle:{fontSize:Ea(f.crosslinevaluesize)?Ea(f.crosslinevaluesize)+"px":c.inCanvasStyle.fontSize,fontFamily:na(f.crosslinevaluefont,c.inCanvasStyle.fontFamily)}},useCrossline:x(f.usecrossline,1),tooltipSepChar:na(f.tooltipsepchar,
", "),showTerminalValidData:x(f.showterminalvaliddata,0)});return b},preSeriesAddition:function(){var b=this.dataObj,c=b.chart,f=this.hcJSON,k=f[oa],h=this.smartLabel,l=x(c.compactdatamode,0),s=na(c.dataseparator,"|"),y=x(c.showlabels,1),A=c.labeldisplay&&c.labeldisplay.toLowerCase(),n=y&&x(c.labelheight),aa="rotate"===A?270:x(c.rotatelabels,1)?270:0,K=f.xAxis.labels.style,H=Ea(K.lineHeight),r=f.chart.labelPadding=x(c.labelpadding,.2*H)+f.chart.plotBorderWidth,g,w,B,$=0,L=-1,Z,ba,Q;0>n&&(n=void 0);
0>r&&(r=(f.chart.plotBorderWidth||0)+2);g=(g=b.categories)&&g[0]||{};b=g.category;delete g.category;f.categories=A=ya({data:w=l&&b&&b.split&&b.split(s)||b||[],rotate:aa,wrap:"none"!==A},g);void 0!==b&&(g.category=b);g=w.length||0;if(Z=!l&&y&&0!==n&&g||0){for(;Z--;)w[Z]=w[Z]&&(B=w[Z].label||"")&&((ba=B.length)>$&&($=ba,L=Z,B)||B)||"";$&&(B=w[L])}else if(l&&g&&!n)if(aa){l=ga.document.createElement("div");n=ga.document.createElement("span");l.setAttribute("class","fusioncharts-zoomline-localsmartlabel");
l.style.cssText="display:block;width:1px;position:absolute;";for(Q in K)l.style[Q]=K[Q];n.innerHTML=b.replace(/\s*/g,"").replace(/\{br\}/ig,"<br />").replace(new RegExp(Na(s),"g")," ");l.appendChild(n);ga.document.body.appendChild(l);n=n.offsetWidth||void 0;l.parentNode.removeChild(l)}else B=w[g-1]||w[0];void 0!==n&&0!==n||!y||(B?(h.setStyle(K),B=h.getSmartText(B),n=aa?B.width:B.height):n=H*(aa&&3||1));n>.3*k.height&&(n=.3*k.height);A.labelHeight=n&&n+6||0;A.show=n&&y||0;A.css=ya({},K);aa?(A.css.rotation=
aa,A.css["text-anchor"]="end"):A.css["vertical-align"]="top";f.xAxis.min=0;f.xAxis.max=g&&g-1||0;n+=x(c.scrollheight,16)||16;f.chart.marginBottom+=r;k.marginBottomExtraSpace+=n;na(c.caption,c.subcaption)||(k.marginTopExtraSpace+=16)},series:function(){var b=this.dataObj,c=b.chart,f=b.dataset,k=this.hcJSON,h=k[oa],M=h[0],s=h[1],y=k.series,A=h.isDual,n=x(c.yaxismaxvalue),aa=x(c.yaxisminvalue),K=x(c.syaxismaxvalue),H=x(c.syaxisminvalue),r=x(c.pyaxismaxvalue),g=x(c.pyaxisminvalue),w=x(c.forceyaxislimits,
0),B=x(c.forcepyaxislimits,0),$=x(c.forcesyaxislimits,0),L=x(c.compactdatamode,0),Z=na(c.dataseparator,"|"),ba=Na(c.indecimalseparator),Q=Na(c.inthousandseparator),ta=!1,la=x(c.drawanchors,c.showanchors,1),ga=!!x(c.showlegend,1),ra,Y=Infinity,da=-Infinity,X=Infinity,ka=-Infinity,wa;ra=k.categories.data.length;if(f&&f.length&&ra){ba&&(ba=new RegExp(ba,"g"));Q&&(Q=new RegExp(Q,"g"));!Q&&!ba&&L&&w&&(A?void 0!==r&&void 0!==g&&void 0!==K&&void 0!==H:void 0!==n&&void 0!==aa)?A?(ka=Ia(K,H),X=Ma(K,H),da=
Ia(r,g),Y=Ma(g,r)):(w=!0,da=Ia(n,aa),Y=Ma(aa,n)):w=!1;!Q&&!ba&&L&&$&&void 0!==K&&void 0!==H?($=!0,ka=Ia(K,H),X=Ma(K,H)):$=!1;!Q&&!ba&&L&&B&&void 0!==r&&void 0!==g?(B=!0,da=Ia(r,g),Y=Ma(g,r)):B=!1;aa=0;for(K=f.length;aa<K;aa++){n=f[aa];H=n.data;delete n.data;L?(r=H||"",Q&&(r=r.replace(Q,"")),ba&&(r=r.replace(ba,".")),r=r.split(Z)):r=H||[];r.length>ra&&(r.length=ra);"s"===na(n.parentyaxis,"p").toLowerCase()&&(ta=!0);wa=r.length;if(L)if(!(w||B||"p"!==na(n.parentyaxis,"p").toLowerCase()&&A))for(;wa--;)g=
Ea(r[wa]),isNaN(g)&&(g=void 0),g>da&&(da=g),g<=Y&&(Y=g),r[wa]=g;else{if(!(w||$||"s"!==na(n.parentyaxis,"p").toLowerCase()&&A))for(;wa--;)g=Ea(r[wa]),isNaN(g)&&(g=void 0),g>ka&&(ka=g),g<=X&&(X=g),r[wa]=g}else if(!(w||B||"p"!==na(n.parentyaxis,"p").toLowerCase()&&A))for(;wa--;)g=r[wa]&&r[wa].value||"",Q&&(g=g.replace(Q,"")),ba&&(g=g.replace(ba,".")),g=Ea(g),isNaN(g)&&(g=void 0),g>da&&(da=g),g<=Y&&(Y=g),r[wa]=g;else if(!(w||$||"s"!==na(n.parentyaxis,"p").toLowerCase()&&A))for(;wa--;)g=r[wa]&&r[wa].value||
"",Q&&(g=g.replace(Q,"")),ba&&(g=g.replace(ba,".")),g=Ea(g),isNaN(g)&&(g=void 0),g>ka&&(ka=g),g<=X&&(X=g),r[wa]=g;y.push(g={index:aa,type:"zoomline",data:r,name:n.seriesname||"",showInLegend:n.seriesname&&x(n.includeinlegend,1)&&ga||!1,showAnchors:x(n.drawanchors,n.showanchors,la),visible:!x(n.initiallyhidden,0),lineWidth:2,yAxis:A&&"s"===na(n.parentyaxis,"p").toLowerCase()?1:0});r.length=ra;void 0!==H&&(n.data=H);g.attrs=this.seriesGraphicsAttrs(n);H=g.attrs.anchors;g.color=g.attrs.graphics.stroke;
g.ancorRadius=H.r+H["stroke-width"]/2;g.marker={enabled:!!x(n.drawanchors,n.showanchors,la),fillColor:H.fill,lineColor:H.stroke,lineWidth:1,symbol:"circle"}}!ta&&A&&(h.isDual=!1,c.yaxismaxvalue=c.pyaxismaxvalue,c.yaxisminvalue=c.pyaxisminvalue);-Infinity!==da&&Infinity!==Y||(da=Y=void 0);A=Wa(x(c.displaystartindex,1),10)-1;w=Wa(x(c.displayendindex,ra||2),10)-1;1>(f=x(c.pixelsperpoint,15))&&(f=1);(y=x(c.pixelsperlabel,c.xaxisminlabelwidth,k.categories.rotate?20:60))<f&&(y=f);(0>A||A>=(ra-1||1))&&(A=
0);(w<=A||w>(ra-1||1))&&(w=ra-1||1);k.stepZoom={cnd:x(c.connectnulldata,0),amrd:x(c.anchorminrenderdistance,20),nvl:x(c.numvisiblelabels,0),cdm:L,oppp:f,oppl:y,dsi:A,dei:w,vdl:w-A,dmax:M.max=da,dmin:M.min=Y,dsecondarymax:s.max=ka,dsecondarymin:s.min=X,clen:ra,offset:0,step:1,llen:0,alen:0,ddsi:A,ddei:w,ppc:0};this.configureAxis(k,b);b.trendlines&&l(b.trendlines,k.yAxis,h,!1,this.isBar)}},seriesGraphicsAttrs:function(b){var c=this.dataObj.chart,f="0"!=(b.dashed||c.linedashed||"0"),k,l,f={"stroke-width":x(b.linethickness,
c.linethickness,2),stroke:Sa(na(b.color,c.linecolor,this.colorManager.getPlotColor())),"stroke-opacity":x(b.alpha,c.linealpha,100)/100,"stroke-dasharray":f?[x(b.linedashlen,c.linedashlen,5),x(b.linedashgap,c.linedashgap,4)]:"none","stroke-linejoin":"round","stroke-linecap":"round"};k=ya({},f);l=f["stroke-width"]+x(c.pinlinethicknessdelta,1);k["stroke-width"]=0<l&&l||0;k["stroke-dasharray"]=[3,2];return{graphics:f,pin:k,shadow:{opacity:f["stroke-opacity"],apply:x(c.showshadow,+!h.vml)},anchors:{"stroke-linejoin":"round",
"stroke-linecap":"round",r:x(b.anchorradius,c.anchorradius,f["stroke-width"]+2),stroke:Sa(na(b.anchorbordercolor,c.anchorbordercolor,f.stroke)),"stroke-opacity":x(b.anchorborderalpha,c.anchorborderalpha,100)/100,"stroke-width":x(b.anchorborderthickness,c.anchorborderthickness,f["stroke-width"]),fill:Sa(na(b.anchorbgcolor,c.anchorbgcolor,"#ffffff")),"fill-opacity":x(b.anchorbgalpha,c.anchorbgalpha,100)/100,opacity:x(b.anchoralpha,c.anchoralpha,100)/100},anchorShadow:x(c.anchorshadow,c.showshadow,+!h.vml)&&
{apply:!0,opacity:x(b.anchoralpha,c.anchoralpha,100)/100}}},eiMethods:{zoomOut:function(){var b=this.jsVars,c;if(b&&(c=b.hcObj))return c.zoomOut&&b.hcObj.zoomOut()},zoomTo:function(b,c){var f=this.jsVars,k;if(f&&(k=f.hcObj))return k.zoomRange&&f.hcObj.zoomRange(b,c)},resetChart:function(){var b=this.jsVars,c;b&&(c=b.hcObj)&&(c.pinRangePixels&&b.hcObj.pinRangePixels(),c.resetZoom&&b.hcObj.resetZoom())},setZoomMode:function(b){var c=this.jsVars,f;c&&(f=c.hcObj)&&f.activatePin&&f.activatePin(!b)},getViewStartIndex:function(){var b=
this.jsVars,c;if(b&&b.hcObj&&(c=b.hcObj._zoominfo))return c.ddsi},getViewEndIndex:function(){var b=this.jsVars,c;if(b&&b.hcObj&&(c=b.hcObj._zoominfo))return b=c.ddei-1,(b>=c.clen?c.clen:b)-1}}},Ta.msline);Ta("zoomlinedy",{rendererId:"zoomline",isDual:!0,friendlyName:"Zoomable and Panable Multi-series Dual-axis Line Chart"},Ta.zoomline);Va("renderer.zoomline",{resetZoom:function(){var b=this._zoomhistory,c=this.options.stepZoom;if(!b.length)return!1;b.length=0;this.zoomTo(c.dsi,c.dei)&&s("zoomReset",
this._zoomargs,this.fusionCharts,[this.fusionCharts.id]);return!0},zoomOut:function(){var b=this._zoomhistory.pop(),c=this.options.stepZoom,f,k,h;b?(f=b.dsi,k=b.dei):this._prezoomed&&(f=0,k=c.clen-1);(h=this.zoomTo(f,k))&&Ka.raiseEvent("zoomedout",h,this.fusionCharts);return!0},zoomRangePixels:function(b,c){var f=this._zoomhistory,k=this._zoominfo,h=k.ppp,k=k.ddsi,l;f.push(this._zoominfo);(l=this.zoomTo(k+L(b/h),k+L(c/h)))?Ka.raiseEvent("zoomedin",l,this.fusionCharts):f.pop()},zoomRange:function(b,
c){var f=this._zoomhistory,k;f.push(this._zoominfo);(k=this.zoomTo(+b,+c))?Ka.raiseEvent("zoomedin",k,this.fusionCharts):f.pop()},zoomTo:function(b,c){var f=this.xlabels.data,k=this._zoominfo,h=this._zoomhistory,l=k.clen;0>b&&(b=0);b>=l-1&&(b=l-1);c<=b&&(c=b+1);c>l-1&&(c=l-1);if(b===c||b===k.dsi&&c===k.dei)return!1;this.pinRangePixels();k=ya({},k);k.dsi=b;k.dei=c;k=this._zoominfo=k;this.updatePlotZoomline();this.zoomOutButton[k.vdl===k.clen-1?"hide":"show"]();this.resetButton[h.length?"show":"hide"]();
this.elements.zoomscroller.attr({"scroll-ratio":k.vdl/(l-!!l),"scroll-position":[k.dsi/(l-k.vdl-1),!0]});f={level:h.length+1,startIndex:b,startLabel:f[b],endIndex:c,endLabel:f[c]};s("zoomed",f,this.fusionCharts,[this.fusionCharts.id,b,c,f.startLabel,f.endLabel,f.level]);return f},activatePin:function(b){var c=this._zoominfo,f=this.options.chart,k=this.pinButton;if(k&&c.pinned^(b=!!b))return b||this.pinRangePixels(),s("zoomModeChanged",{pinModeActive:b},this.fusionCharts,[]),f.showToolBarButtonTooltext&&
k.tooltip(f[b&&"btnSwitchToZoomModeTooltext"||"btnSwitchToPinModeTooltext"]||""),k.attr("button-active",b),c.pinned=b},pinRangePixels:function(b,c){var f=this.paper,k=this.elements,h=this.xlabels.data,l=this._zoominfo,x=this.layers.zoompin,y=k.pinrect,A=k["clip-pinrect"],n=this._pingrouptransform,aa=this.plots,K=c-b,H,r;if(l&&x&&y){if(b===c)return x.hide(),k.pintracker.hide(),this.pinButton.attr("button-active",!1),l.pinned=!1;for(r=aa.length;r--;)y=aa[r],H=y.pinline,H||(H=y.pinline=f.path(void 0,
x).attr(y.attrPin)),H.attr("path",y.graphic.attrs.path);A[0]=b+this.canvasLeft;A[2]=K;x.attr({"clip-rect":A,transform:n}).show();k.pintracker.__pindragdelta=0;k.pintracker.show().attr({transform:n,x:b,width:K});b=this.getValuePixel(b);c=this.getValuePixel(c);s("pinned",{startIndex:b,endIndex:c,startLabel:h[b],endLabel:h[c]},this.fusionCharts,[this.fusionCharts.id,b,c,h[b],h[c]]);return l.pinned=!0}},getValuePixel:function(b){var c=this._zoominfo;return c.ddsi+L(b/c.ppp)},getParsedLabel:function(b){var c=
this.xlabels;return c.parsed[b]||(c.parsed[b]=Ga(c.data[b]||""))},drawGraph:function(){var b=this,c=b.paper,f=b.canvasLeft,k=b.canvasTop,l=b.canvasWidth,M=b.canvasHeight,s=b.options,y=s.chart,A=y.plotBorderWidth,n=y.useRoundEdges,x=y.showToolBarButtonTooltext,K=y.crossline,H=b.layers,r=b.toolbar,g=b.elements,w=y.allowPinMode,B=s.categories,L=!1,Q,Z,ba,va,ta,la,ga;la=b._zoominfo=ya({},s.stepZoom);b._zoomhistory=[];la.clen&&(L=b._prezoomed=la.dei-la.dsi<la.clen-1,ta=b._visw=b.canvasWidth-2*y.canvasPadding,
va=b._visx=b.canvasLeft+y.canvasPadding,b._visout=-(b.chartHeight+b.canvasHeight+1E3),b.base.drawGraph.apply(b,arguments),b._ypvr=b.yAxis[0]&&b.yAxis[0].pixelValueRatio||0,ga=b._ymin||(b._ymin=b.yAxis[0].endY),b._yminValue=b.yAxis[0].min,s=H.dataset.attr("clip-rect",[b._visx-y.overFlowingMarkerWidth,b.canvasTop,b._visw+2*y.overFlowingMarkerWidth,b.canvasHeight]),ba=H.scroll||(H.scroll=c.group("scroll").insertAfter(H.layerAboveDataset)),b.xlabels=[],b.xlabels.show=B.show,b.xlabels.height=B.labelHeight,
b.xlabels.wrap=B.wrap,b.xlabels.rotate=B.rotate,b.xlabels.data=B.data||[],b.xlabels.parsed=[],b.xlabels.css=B.css,b.xlabels.group=c.group("zoomline-plot-xlabels",H.datalabels),H.datalabels.transform(["T",va,k+M+y.scrollHeight+y.labelPadding]),b._lcmd=B.rotate?"y":"x",w&&(w=h.crispBound(0,k-ga,0,M,A),Q=g["clip-pinrect"]=[w.x,k,w.width,w.height],Z=H.zoompin=c.group("zoompin").insertBefore(s).transform(b._pingrouptransform=["T",va,ga]).hide(),g.pinrect=c.rect(0,k-ga,b._visw,M,H.zoompin).attr({"stroke-width":0,
stroke:"none",fill:y.pinPaneFill,"shape-rendering":"crisp",ishot:!0}),g.pintracker=c.rect(H.tracker).attr({transform:Z.transform(),x:0,y:k-ga,width:0,height:M,stroke:"none",fill:Aa,ishot:!0,cursor:h.svg&&"ew-resize"||"e-resize"}).drag(function(b){var c=va+b+this.__pindragdelta,f=this.__pinboundleft,k=this.__pinboundright,n=this.data("cliprect").slice(0);c<f?c=f:c>k&&(c=k);Z.transform(["T",c,ga]);g.pintracker.transform(Z.transform());h.svg||(n[0]=n[0]+c-va-this.__pindragdelta,Z.attr("clip-rect",n));
this.__pindragoffset=b},function(){this.__pinboundleft=0-Q[0]+va+f;this.__pinboundright=this.__pinboundleft+ta-Q[2];this.data("cliprect",Z.attr("clip-rect"));Z._.clipispath=!0},function(){Z._.clipispath=!1;this.__pindragdelta=this.__pindragoffset;delete this.__pindragoffset;delete this.__pinboundleft;delete this.__pinboundright}),b.pinButton=r.add("pinModeIcon",function(){b.activatePin(!b._zoominfo.pinned)},{tooltip:x&&y.btnSwitchToPinModeTooltext||""})),A++,w=h.crispBound(f-A,k+M+A,l+A+A,y.scrollHeight,
A),A--,g.zoomscroller=c.scroller(w.x+(n&&-1||A%2),w.y-(n&&4||2),w.width-(!n&&2||0),w.height,!0,{showButtons:y.scrollShowButtons,scrollRatio:la.vdl/(la.clen-!!la.clen),scrollPosition:[la.dsi/(la.clen-la.vdl-1),!1],displayStyleFlat:y.scrollBarFlat},ba).attr({fill:y.scrollColor,r:n&&2||0}).scroll(b.updatePlotZoomline,b),n&&g.zoomscroller.shadow(!0),function(){var c;h.eve.on("raphael.scroll.start."+g.zoomscroller.id,function(f){c=f;b.crossline&&b.crossline.disable(!0);Ka.raiseEvent("scrollstart",{scrollPosition:f},
b.logic.chartInstance)});h.eve.on("raphael.scroll.end."+g.zoomscroller.id,function(f){b.crossline&&b.crossline.disable(!1);Ka.raiseEvent("scrollend",{prevScrollPosition:c,scrollPosition:f},b.logic.chartInstance)})}(),Ya(b,{attr:{stroke:y.zoomPaneStroke,fill:y.zoomPaneFill,strokeWidth:0},selectionStart:function(){},selectionEnd:function(c){var g=c.selectionLeft-f;c=g+c.selectionWidth;b.crossline&&b.crossline.hide();b[b._zoominfo.pinned?"pinRangePixels":"zoomRangePixels"](g,c)}}),b.zoomOutButton=r.add("zoomOutIcon",
function(){b.zoomOut()},{tooltip:x&&y.btnZoomOutTooltext||""})[L&&"show"||"hide"](),b.resetButton=r.add("resetIcon",function(){b.resetZoom()},{tooltip:x&&y.btnResetChartTooltext||""}).hide(),w=b.resetButton.attr("fill"),w[2]="rgba(255,255,255,0)",b.resetButton.attr("fill",[w[0],w[1],w[2],w[3]]),K&&0!==K.enabled&&1===y.useCrossline&&(b.crossline=new Da(b,K)),b.updatePlotZoomline())},drawPlotZoomline:function(b,c){var f=this.paper,k=c.attrs,h=c.visible,l=h?"show":"hide",s=this.layers.dataset,y=b.group||
(b.group=f.group("plot-zoomline-dataset",s)),s=b.anchorGroup||(b.anchorGroup=f.group("plot-zoomline-anchors",s)),f=b.graphic||(b.graphic=f.path(void 0,y)),A=["T",this._visx,this._ymin||(this._ymin=this.yAxis[0].endY)];b.yAxis=c.yAxis;y.transform(A)[l]();s.transform(A)[l]();b.graphic=f.attr(k.graphics).shadow(k.shadow);b.attrPin=k.pin;b.visible=h;b.anchors=[];b.anchors.show=c.showAnchors;b.anchors.attrs=k.anchors;b.anchors.attrsShadow=k.anchorShadow;b.anchors.left=-(k.anchors.r+.5*k.anchors["stroke-width"]);
b.anchors.right=this._visw-b.anchors.right},updatePlotZoomline:function(b,c){var f=this.paper,k=this._ypvr,h=this._visw,l=this.xlabels,s=l.css,y=l.group,A=this.plots,n=this.options.chart.textDirection,x,K,H,r,g,w,B,L;!c&&(c=this._zoominfo);r=c.oppp;g=c.vdl=c.dei-c.dsi;w=c.ppl=c.nvl?h/c.nvl:c.oppl;h=c.step=(H=c.ppp=h/g)<r?La(r/H):1;r=c.lskip=La(Ia(w,Ea(s.lineHeight))/H/h);void 0!==b?(w=(c.clen-g-1)*b,c.offset=(w-(w=Wa(w)))*H,g=w+g):(w=c.dsi,g=c.dei,c.offset=0);B=c.norm=w%h;c.ddsi=w-=B;c.ddei=g=g+2*
h-B;c.pvr=k;c._ymin=this._ymin;c._yminValue=this._yminValue;k=l.show?La((g-w)/h/r):0;B=c.llen-1;c.llen=k;L=c.ppc=H*r*h;y.trackTooltip(!0);if(k>B)for(r=B,B=k;r<B;r++)(x=l[r])&&x.show()||(l[r]=f.text(0,0,"",y).css(s).attr({direction:n}));else for(r=k,B+=1;r<B;r++)l[r].hide();k=H*h<c.amrd?0:La((g-w)/h);s=k-c.alen;c.alen=k;l.wrap&&(l.rotate?(l._width=l.height,l._height=L):(l._width=L,l._height=l.height));for(x=A.length;x--;){y=A[x];c.plotName=y.name||"";n=y.anchors;H=this.yAxis[y.yAxis];c.pvr=H.pixelValueRatio;
c._yminValue=H.min;if(n.show&&s){K=n.attrs;r=0;for(B=k;r<B;r++)n[r]=n[r]&&n[r].show()||f.circle(K,y.anchorGroup);r=k;for(B=n.length;r<B;r++)n[r]&&n[r].hide()}this.drawPlotZoomlineGraphics(c,y.data,y.graphic,n,!x&&l,K,y.anchorGroup)}ga.FC_DEV_ENVIRONMENT&&ga.jQuery&&(FusionCharts["debugger"].enable()?(this.debug=this.debug||(ga.jQuery("#fc-zoominfo").length||ga.jQuery("body").append('<pre id="fc-zoominfo">'),ga.jQuery("#fc-zoominfo").css({position:"absolute",left:"10px",top:"0","pointer-events":"none",
opacity:.7,width:"250px",zIndex:"999",border:"1px solid #cccccc","box-shadow":"1px 1px 3px #cccccc",background:"#ffffff"})),this.debug.text(JSON.stringify(c,0,2))):(this.debug&&ga.jQuery("#fc-zoominfo").remove(),delete this.debug))},drawPlotZoomlineGraphics:function(b,c,f,k,h,l,s){var y=this.smartLabel,A=this.paper,n=this.numberFormatter,x=this.options.chart,K=x.useCrossline,H=x.showTerminalValidData,r=x.showPeakData,g=x.maxPeakDataLimit,w=x.minPeakDataLimit,B=[],L=!b.cnd,Q=b.ddei,Z=b.clen,ba=b.step,
va=b.lskip,ga=b.ppp,la=b.offset,na=b.pvr,ra=this._visw,Y=this._visout,da=this._lcmd,X,ka="M",wa,ha,E=h&&h[0],fa,ca,ma=k[0],ua={},q={},oa,W,pa,ia=0,ya,sa,Aa,Ca=-b.norm,a=b.ddsi,p=0,e,d,u=x.tooltipSepChar,Da,v,Ea=c.length,T=!1,t=!1,U,m=!1,Ba=!1,Fa;E&&(h.group.transform(["T",-la,0]),Aa=h.wrap,fa=h._height,ca=h._width,Aa&&y.setStyle(h.css));h=function(a,b){var c=a&&a.length,d=Math.max.apply(Math,a),e=Math.min.apply(Math,a),f=0;if(d>g||e<w)for(;f<c;){e=a[f];if(e>g||e<w)d=b+f,Da(e,d,d,!0);f+=1}};for(Da=
function(a,f,g,h){var m=void 0,q=void 0,r=void 0;K||(d=e+u+n.yAxis(a),d=b.plotName&&b.plotName+u+d||d);ya=ia/3+p;W=g*ga;X=W-la;if(void 0===(wa=c[f])){if(L)ka="M",oa=Y,X=W-la,pa=Y;else{if(0===ya){for(m=f;0<m&&(--m,q=c[m],void 0===q););q&&(W=m*ga*-1,oa=Y,B[ia++]=ka,B[ia++]=W,B[ia++]=pa=(q-b._yminValue)*na,ka="L")}if(f===Q){for(m=f;m<Z&&(m+=1,r=c[m],void 0===r););r&&(W=m*ga,oa=Y,B[ia++]=ka,B[ia++]=W,B[ia++]=pa=(r-b._yminValue)*na,ka="L")}}p++}else B[ia++]=ka,T?(T=!1,B[ia++]=oa=X=U*ga/(ba*v)*f):t?(t=
!1,ba>=f-U&&(B[ia-1]="L"),b.pppCopy=b.pppCopy||ga,B[ia++]=oa=X=b.pppCopy*f):B[ia++]=oa=X=W-la,B[ia++]=pa=(wa-b._yminValue)*na,ka="L";if(void 0===oa||void 0===pa)oa=pa=Y;ma&&(ma=ma.attr((ua.cx=oa,ua.cy=pa,ua)).next);h&&k.push(A.circle(l,s))};a<=Q;a+=ba,Ca+=ba){e=this.getParsedLabel(a);sa=c[a];Fa=a;if(H)if(0===a&&void 0===c[a]){v=0;for(ha=U=a;ha<Ea;)if(void 0!==c[ha]||m?m=!0:ha++,void 0===c[U]&&!Ba&&U<=Ea?(U+=ba,v++):Ba=!0,m&&Ba){m=Ba=!1;break}0!==ha%ba&&(T=!0,sa=c[ha],Fa=ha)}else if(a>=Ea&&void 0===
c[a]){for(ha=U=a;0<ha&&(void 0!==c[ha]||m?m=!0:ha--,void 0===c[U]&&!Ba&&0<=U?U-=ba:Ba=!0,!m||!Ba););0!==ha%ba&&(t=!0,sa=c[ha],Fa=ha)}Da(sa,Fa,Ca);!E||ya%va||(sa=E.attrs,ha=e,X=0>X||X>ra?Y:W,E._prevtext===ha?delete q.text:q.text=E._prevtext=ha,sa[da]===X?delete q[da]:q[da]=X,Aa&&ha&&(q.text=y.getSmartText(ha,ca,fa).text),E.tooltip(y.getSmartText(ha,ca,fa).tooltext),E=E.attr(q).next);r&&1<ba&&(ha=Ma(a+1,Q),sa=Ma(ha+ba,Q),sa=sa===Q?c.slice(ha):c.slice(ha,sa),h(sa,ha))}Q>=Z&&ma&&ma.attr((ua.cx=Y,ua.cy=
Y,ua));f.attr("path",B);K||function(a,b,c){var e=c.plotName;f.tooltipListenerAttached||(f.tooltipListenerAttached=!0,f.mousemove(function(c){var g=a._zoominfo,h=a._visx,k=g.step,m=g.ppp*k;c=Za(a.container,c).chartX-h;var q,h=x.tooltipSepChar;c=(c+=m/2+g.offset)-c%m;q=(q=a.getValuePixel(c))+q%k;d=a.getParsedLabel(q)+h+n.yAxis(b[q]);d=e&&e+h+d||d;f.tooltip(d)}))}(this,c,b)},legendClick:function(b){var c=!b.visible,f=c?"show":"hide";b.group[f]();b.anchorGroup[f]();this.base.legendClick.apply(this,arguments);
return b.visible=c},dispose:function(){var b;this.crossline&&(this.crossline.dispose(),delete this.crossline);(b=this.elements.pintracker)&&(b.undrag(),delete this.elements.pintracker);delete this.zoomOutButton;delete this.resetButton;delete this.pinButton;this.xlabels&&(this.xlabels.length=0);delete this.xlabels;this.base.dispose.apply(this)}},Va["renderer.cartesian"]);Da=function(b,c){var f=b.paper,h=b.options.chart,l=this.left=b._visx,s=this.width=b._visw,x=this.top=b.canvasTop,y=this.height=b.canvasHeight,
A=this._visout=b._visout,n=this.plots=b.plots,L=b.layers.dataset,K,H=c.labelstyle,r=c.valuestyle,g=b.yAxis[0],w=b.yAxis[1];K=this.group=f.group("crossline-labels",L).attr({transform:["T",l,b._ymin]});this.tracker=f.rect(l,x,s,y,L).attr({stroke:"none","stroke-width":0,fill:Aa}).toFront().mousedown(this.onMouseDown,this).mouseup(this.onMouseUp,this,!0).mouseout(this.onMouseOut,this).mousemove(this.onMouseMove,this);Oa&&this.tracker.touchstart(this.onMouseMove,this);this.container=b.container;this.line=
f.path(void 0,L).attr(ya({path:["M",l,x,"l",0,y]},c.line)).toBack();l=this.labels=c.valueEnabled&&f.set();c.labelEnabled&&(this.positionLabel=f.text(A,x+y+(h.scrollHeight||0)+2.5,"").insertAfter(b.xlabels.group.parent).css(H).attr({"vertical-align":"top",direction:h.textDirection,"text-bound":["rgba(255,255,255,1)","rgba(0,0,0,1)",1,2.5]}));this.hide();this.ppixelRatio=b.yAxis[0].pixelValueRatio;this.spixelRatio=b.yAxis[1].pixelValueRatio;this.yminValue=b._yminValue;this.pyaxisminvalue=g.min;this.pyaxismaxvalue=
g.max;this.syaxisminvalue=w.min;this.syaxismaxvalue=w.max;this.positionLabels=b.xlabels||{data:[],parsed:[]};this.getZoomInfo=function(){return b._zoominfo};this.getDataIndexFromPixel=function(c){return b.getValuePixel(c)};this.getPositionLabel=function(c){return b.getParsedLabel(c)};if(c.valueEnabled){x=0;for(y=n.length;x<y;x++)H=n[x],H=H.graphic.attrs.stroke,l.push(f.text(0,A,"",K).css(r).attr({fill:H,direction:h.textDirection,"text-bound":["rgba(255,255,255,0.8)","rgba(0,0,0,0.2)",1,2.5]}));this.numberFormatter=
b.numberFormatter}};Da.prototype.disable=function(b){void 0!==b&&(this.disabled=!!b)&&this.visible&&this.hide();return this.disabled};Da.prototype.onMouseOut=function(){this.hide()};Da.prototype.onMouseDown=function(){!Oa&&this.hide();this._mouseIsDown=!0};Da.prototype.onMouseUp=function(){!Oa&&this.hide();delete this._mouseIsDown};Da.prototype.onMouseMove=function(b){if(!(this.disabled||this._mouseIsDown&&!Oa)){var c=this.getZoomInfo(),f=this.line,h=this.left,l=c.step,s=c.ppp*l;b=Za(this.container,
b).chartX-h;var x;b=(b+=s/2+c.offset)-b%s;x=(x=this.getDataIndexFromPixel(La(b)))+x%l;b-=c.offset;f.transform(["T",L(b),0]);this.hidden&&this.show();if(x!==this.position||this.hidden)this.position=x,this.lineX=b,this.updateLabels()}};Da.prototype.updateLabels=function(){var b=this,c=b.labels,f=b.plots,h=b.width,l=b.position,s=b.lineX,x=L(s),y=b.ppixelRatio,A=b.spixelRatio,n=b.yminValue,Q=b._visout,K=b.numberFormatter,H=b.pyaxisminvalue,r=b.pyaxismaxvalue,g=b.syaxisminvalue,w=b.syaxismaxvalue,B=function(){function c(){this.y=
0;this.lRef=void 0;this.__index=this.__shift=0}function f(b){for(var c=0;c<b;)this.push(c++);return this}function h(b){var c,f,g,k,l=Number.POSITIVE_INFINITY;for(c=0;c<this.length;c++)f=this[c]-b,0>f?g=B.NEG:g=B.POS,f=A(f),f<=l&&(l=f,k={absValue:f,noScaleSide:g});return k}function g(b){this.holes=f.call([],b)}var k=-1*b.height,l=n*y,r=0,w,s={},x,A=Math.abs,F=Math.floor,B={};"function"!=typeof Object.create&&(Object.create=function(){function b(){}var c=Object.prototype.hasOwnProperty;return function(f){var g,
h,k;if("object"!=typeof f)throw new TypeError("Object prototype may only be an Object or null");b.prototype=f;k=new b;b.prototype=null;if(1<arguments.length)for(h in g=Object(arguments[1]),g)c.call(g,h)&&(k[h]=g[h]);return k}}());Array.prototype.indexOf||(Array.prototype.indexOf=function(b,c){var f,g,h;if(null==this)throw new TypeError('"this" is null or not defined');g=Object(this);h=g.length>>>0;if(0===h)return-1;f=+c||0;Infinity===Math.abs(f)&&(f=0);if(f>=h)return-1;for(f=Math.max(0<=f?f:h-Math.abs(f),
0);f<h;){if(f in g&&g[f]===b)return f;f++}return-1});Array.prototype.forEach||(Array.prototype.forEach=function(b,c){var f,g,h,k,l;if(null==this)throw new TypeError(" this is null or not defined");h=Object(this);k=h.length>>>0;if("function"!==typeof b)throw new TypeError(b+" is not a function");1<arguments.length&&(f=c);for(g=0;g<k;)g in h&&(l=h[g],b.call(f,l,g,h)),g++});c.prototype.constructor=c;c.prototype.applyShift=function(b){this.__shift=b;this.lRef.calcY=this.y+=b*r};c.prototype.applyDirectIndex=
function(b){this.__index=b;this.lRef.calcY=this.y=k-b*r*-1};try{Object.defineProperty(B,"POS",{enumerable:!1,configurable:!1,get:function(){return 1}}),Object.defineProperty(B,"NEG",{enumerable:!1,configurable:!1,get:function(){return-1}})}catch(M){B.POS=1,B.NEG=-1}g.prototype=Object.create(Array.prototype);g.prototype.constructor=g;g.prototype.repositionHoles=function(){var b,c=0,f;for(b=this.holes.length=0;b<this.length;b++)f=this[b],!f&&(this.holes[c++]=b)};g.prototype.attachShift=function(b,f,
g){var k,l=this.length;if(b===Q)g.calcY=Q;else if(l=f>l-1?l-1:f,k=this[l],f=new c,f.y=b,f.lRef=g,k){b=h.call(this.holes,l);g=l+b.absValue*b.noScaleSide;if(b.noScaleSide===B.POS)return f.applyDirectIndex(g),this.splice(g,1,f),this.holes.splice(this.holes.indexOf(g),1),g;if(b.noScaleSide===B.NEG){b=this.splice(g+1,this.length-1);this.pop();b.forEach(function(b){b&&b.applyShift(-1)});for([].push.apply(this,b);this[g];)g++;this.push(0);this.repositionHoles();b=h.call(this.holes,g);g+=b.absValue*b.noScaleSide;
f.applyDirectIndex(g);this.splice(g,1,f);this.repositionHoles();return this.length-1}}else f.applyDirectIndex(l),this.splice(l,1,f),this.holes.splice(this.holes.indexOf(l),1)};try{Object.defineProperty(s,"top",{enumerable:!1,configurable:!1,get:function(){return k}}),Object.defineProperty(s,"bottom",{enumerable:!1,configurable:!1,get:function(){return l}})}catch(H){s.top=k,s.bottom=l}s.init=function(b,c){var f;r=b+2;k+=r/2;x=F(A(k)/r);w=new g(x);for(f=0;f<x;f++)w.push(0)};s.occupy=function(b,c){var f=
F(A(k-b)/r);w.attachShift(b,f,c)};return s}();c&&(c[0].attr({text:K.yAxis("0")}),B.init(c[0].getBBox().height,c.length),c.forEach(function(b,c){var h=f[c],k=h.data[l],n=h.yAxis;B.occupy(void 0===k||!h.visible||(n?k>w||k<g:k>r||k<H)?Q:n?(k-g)*A:(k-H)*y,b)}));c&&c.forEach(function(b,c){var g;b.attr({text:K.yAxis(f[c].data[l])});g=.5*b.getBBox().width+10;b.attr({x:Ia(0,Ma(x,h)),y:b.calcY,"text-anchor":s<=g&&"start"||s+g>=h&&"end"||"middle"})});b.positionLabel&&b.positionLabel.attr({x:s+b.left,text:b.getPositionLabel(l)})};
Da.prototype.show=function(){this.disabled||(this.hidden=!1,this.group.attr("visibility","visible"),this.line.attr("visibility","visible"),this.positionLabel&&this.positionLabel.attr("visibility","visible"))};Da.prototype.hide=function(){this.hidden=!0;this.group.attr("visibility","hidden");this.line.attr("visibility","hidden");this.positionLabel&&this.positionLabel.attr("visibility","hidden")};Da.prototype.dispose=function(){for(var b in this)this.hasOwnProperty(b)&&delete this[b]};h.addSymbol({pinModeIcon:function(b,
c,f){var h=.5*f,l=b-f,s=b+f,x=b-h,y=b+h,A=b+.5,n=A+1,L=A+1.5,K=c-f,H=c+h,r=c-h,h=c+(f-h);return["M",l,K,"L",x,r,x,h,l,H,b-.5,H,b,c+f+.5,A,H,s,H,y,h,y,r,s,K,L,K,L,r,L,h,n,h,n,r,L,r,L,K,"Z"]},zoomOutIcon:function(b,c,f){b-=.2*f;c-=.2*f;var k=.8*f,l=h.rad(43),s=h.rad(48),x=b+k*pa(l),l=c+k*Ba(l),y=b+k*pa(s),s=c+k*Ba(s),A=h.rad(45),n=x+f*pa(A),L=l+f*Ba(A),K=y+f*pa(A);f=s+f*Ba(A);return["M",x,l,"A",k,k,0,1,0,y,s,"Z","M",x+1,l+1,"L",n,L,K,f,y+1,s+1,"Z","M",b-2,c,"L",b+2,c,"Z"]},resetIcon:function(b,c,f){var h=
b-f,l=(Fa.PI/2+Fa.PI)/2;b+=f*pa(l);var l=c+f*Ba(l),s=2*f/3;return["M",h,c,"A",f,f,0,1,1,b,l,"L",b+s,l-1,b+2,l+s-.5,b,l]}})}]);
