if(!_.pie){_.pie=1;(function($){var NK=function(a,b,c,d){if(a>b){var e=a;a=b;b=e}c>d&&(e=c,c=d,d=e);return Math.max(a,c)<=Math.min(b,d)},OK=function(a,b,c,d,e,f,h,k){return NK(a,c,e,h)&&NK(b,d,f,k)&&0>=((c-a)*(f-b)-(d-b)*(e-a))*((c-a)*(k-b)-(d-b)*(h-a))&&0>=((h-e)*(b-f)-(k-f)*(a-e))*((h-e)*(d-f)-(k-f)*(c-e))},PK=function(a,b,c,d,e){var f=!1,h;if(!e)return!1;var k=0;for(h=e.length;k<h-1;k+=2){var l=k==h-2?0:k+2;var m=k==h-2?1:k+3;f=f||OK(e[k],e[k+1],e[l],e[m],a,b,c,d)}return f},QK=function(a,b,c,d){var e=!1,f;if(!d)return!1;var h=
0;for(f=d.length;h<f-1;h+=2)if(!e){e=d[h];var k=d[h+1];e=(a-e)*(a-e)+(b-k)*(b-k)>c*c}return e},rea=function(){return new $.tw},RK=function(a,b,c){$.Sx.call(this,null,[],[],b,c);this.za=a},TK=function(a,b,c,d,e,f){$.oq.call(this,a);this.g=b;this.f=d||null;this.o=e||function(a,b){a.value+=Math.max(0,+b)||0;return a};this.D=f||function(){return{value:0}};this.b=new SK;this.b.j(0,"groupedPoint",!0);this.b.j(0,"name",c)},SK=function(){$.Wp.call(this);$.uq(this);this.f=void 0},VK=function(a,b,c){$.Sx.call(this,
null,[],[],b,c);this.za=a;this.g=UK(this.za);this.Uy=this.za.i("connectorStroke")},WK=function(a,b){$.Vy.call(this,a,b)},YK=function(a,b){$.Wv.call(this);this.Ia("pieFunnelPyramidBase","pie");this.contextMenu(this.ma.contextMenu);$.U(this);this.ed=this.o=this.Vc=this.Aa=this.Uc=null;this.Bg=!0;this.Sb={};this.Zl=function(){var a=this.sourceColor,b=this.aquaStyleObj;return{keys:[{offset:0,color:$.xk(a,.5)},{offset:.95,color:$.yk(a,.4)},{offset:1,color:$.yk(a,.4)}],cx:.5,cy:.5,fx:b.fx,fy:b.fy,mode:b.mode}};
this.D=[];this.state=new $.Cv(this);this.data(a||null,b);this.u(4294967295);$.R(this.xa,[["overlapMode",4096,1],["radius",4,1],["innerRadius",4,1],["startAngle",4112,1],["sort",16,1,0,function(){XK(this)}],["insideLabelsOffset",4100,9],["connectorLength",4100,9],["outsideLabelsCriticalAngle",4096,1],["forceHoverLabels",4096,1],["connectorStroke",16,1],["mode3d",4116,1],["sliceDrawer",16,1]]);var c={};$.R(c,[["explode",4116,1],["fill",528,1],["stroke",528,1],["hatchFill",528,1],["labels",0,0],["outline",
0,0]]);this.ca=new $.Ew(this,c,$.Wk,[[1,"fill",function(a){var b=!1;$.z(a[0])&&(a[0]=a[0].toLowerCase(),b="aquastyle"==a[0]);return this.i("mode3d")&&b?this.i("fill"):$.E(a[0])||b?a[0]:$.Sb.apply(null,a)}]]);this.ca.pa("labelsFactoryConstructor",rea);this.ca.pa("labelsAfterInitCallback",function(a){$.L(a,this.Fd,this);a.qb(this);this.u(4096,1)});this.ca.pa("outlineAfterInitCallback",function(a){$.L(a,this.jfa,this);this.u(16,1)});c={};$.R(c,[["explode",4116,1],["fill",16,1],["stroke",16,1],["hatchFill",
0,0],["labels",0,0],["outline",16,1]]);this.ya=new $.Ew(this,c,$.ln);this.ya.pa("labelsFactoryConstructor",$.Hw);c={};$.R(c,[["explode",4116,1],["fill",16,1],["stroke",16,1],["hatchFill",0,0],["labels",0,0],["outline",16,1]]);this.Da=new $.Ew(this,c,$.mn);this.Da.pa("labelsFactoryConstructor",$.Hw);this.da(!1)},XK=function(a){$.hd(a.la);delete a.Md;a.la=sea(a,a.o);$.L(a.la,a.xd,a);a.u(13104,17)},sea=function(a,b){if(null!=a.Uc){var c=b;b=new TK(b,"value",a.Sq,a.Uc,void 0,function(){return{value:0}});
$.id(c,b);b.pV=!0}c=a.i("sort");"none"!=c&&null!=c&&(b="asc"==c?b.sort("value",function(a,b){return a-b}):b.sort("value",function(a,b){return b-a}),b.pV=!0);return b},$K=function(a,b,c){if(!a)return $.Mk;var d=b+"|"+a+"|"+c,e=ZK[d];if(!e){switch(b){case 2:e=$.Ok;break;case 3:e=$.Pk;break;default:case 1:e=$.Qk}ZK[d]=e=$.qa(tea,a,e,3==b,c)}return e},tea=function(a,b,c,d,e,f,h,k){if(f!=$.Wk&&d){var l=e.Dc(a,f,e.aa(),b,!1,void 0,h);c&&!0===l&&(l=b(e.eh()));if($.p(l)){if(!$.E(l))return l;if(c)return c=
e.oi(h),b(l.call(c,c))}}a=e.Dc(a,0,e.aa(),b,!1,void 0,h);d=$.p(k)?k:a;k=$.z(a)&&"aquastyle"==a;c&&!0===a&&(a=b(e.eh()));$.E(a)&&(c=c?e.oi(h):e.me(d,h),a=b(a.call(c,c)));k&&(c=e.aa(),c={aquaStyleObj:e.Sb,sourceColor:e.Yb().ic(c.ka())},a=e.Zl.call(c));l&&(c=e.me(a,h),a=b(l.call(c,c)));return a},aL=function(a,b,c){c=a.aa().j(c||"hatchSlice");null!=c&&(a=$K("hatchFill",3,!0)(a,b,!1),c.stroke(null).fill(a))},bL=function(a){return $.D(a)&&a.hasOwnProperty("mode")&&a.hasOwnProperty("cx")},cL=function(a){a=
null===a?window.NaN:+a;return!($.ea(a)&&!(0,window.isNaN)(a)&&0<a)},UK=function(a){return"outside"==$.Bj(a.labels().i("position"))},dL=function(a,b){var c=b.ka();a.Ma&&(a.Ma[c]=null)},uea=function(a){a.Za=[];var b=a.i("mode3d");a.U?(a.U.clear(),b&&a.mc.clear()):(a.U=new $.kA(function(){return $.aj()},function(a){a.clear()}),a.U.parent(a.Ua),a.U.zIndex(32),b&&(a.mc=new $.kA(function(){return $.aj()},function(a){a.clear()}),a.mc.parent(a.Ua),a.mc.zIndex(29)));a.P=[];b=a.i("connectorStroke");a.Dd||(a.Dd=
a.Ua.path(),a.Dd.stroke(b))},hL=function(a){var b=a.aa(),c=b.ka(),d=a.i("mode3d"),e="allow-overlap"==a.i("overlapMode");uea(a);var f;if(!e){var h={};var k=f=!1}for(b.reset();b.advance();)if(!cL(b.get("value"))){var l=b.ka(),m=$.Hv(a.state,l);var n=b.j("start");var q=b.j("sweep");var r=(n+q/2)*Math.PI/180;q=$.$a($.bb(r));n=90>q||270<q;var t=eL(a,l);var u=d?.45*a.b:a.b;var v=t[0]+a.b*Math.cos(r);u=t[1]+u*Math.sin(r);d&&(u+=.2*a.b/2);r=n?5:-5;b.j("connector",r);a.Za[2*l]=v;a.Za[2*l+1]=u;b.j("anchor",
n?"left-center":"right-center");v=a.Qd(m,!1);dL(a,v);v.la=q;m=fL(a,m);b.j("explode",m);a.ee&&-1!=(0,$.xa)(a.ee,l)&&v.enabled(!1);if(e)v&&0!=v.enabled()&&(l=v.ka(),dL(a,v),n=a.Kk(v),q=m?a.Mf:a.Re,a.Ja=Math.max(q.left-n.left,n.$a()-q.$a(),q.top-n.top,n.Ra()-q.Ra(),a.Ja),a.P[l]||(u=a.Za[2*l+1]-.2*a.b/2,n=d&&u<a.zc?$.lA(a.mc):$.lA(a.U),a.P[l]=n,n.stroke(a.i("connectorStroke")),gL(a,v,n)));else{if(l=h[m]){u=l[0];r=l[1];t=l[2];var w=l[3]}else l=[],u=[],r=[],t=[],w=[],l.push(u,r,t,w,m),h[m]=l;270<q&&!f&&
(u.length||t&&t.length)&&(f=!0);90<q&&!k&&(r.length||w&&w.length)&&(k=!0);n=n?f?w:r:k?t:u;n.push(v)}}a.kn=window.NaN;if(!e){var x=[];$.ta($.zc(h),function(a){var b=a[3].concat(a[1]),c=a[2].concat(a[0]);a=a[4];this.Kw(c,!1,x,a);this.Kw(b,!0,x,a);x=x.concat(c,b)},a)}b.select(c);a.yc||(a.yc=[]);a.ee||(a.ee=[]);l=a.kn;-1!=(0,$.xa)(a.yc,l)?$.sa(a.yc)!=l&&(a.ee.push(l),a.yc.length=0):a.yc.push(l);a.Ja=Math.round(a.Ja)},iL=function(a){a.b=Math.max(a.b-Math.max(a.Ja,0),0);var b=a.i("innerRadius");a.G=$.E(b)?
b(a.b):$.M(b,a.b);b=a.G/Math.pow(2,.5)*2;a.ga=$.Zl(a.Fc-b/2,a.zc-b/2,b,b);a.eb=new $.I(a.Fc-a.b,a.zc-a.b,2*a.b,2*a.b);b=a.labels();$.U(b);b.Fc(a.Fc);b.zc(a.zc);b.Kx(a.b);b.tD(a.i("startAngle"));b.$x(360);b.fa(a.eb);b.da(!1);a.lb().labels().fa(a.eb)},jL=function(a,b){a.va=b;var c=Math.min(a.ga.width/a.va.width,a.ga.height/a.va.height);(0,window.isFinite)(c)||(c=0);a.f.qj.nc(c,0,0,c,a.ga.left-a.va.left*c+(a.ga.width-c*a.va.width)/2,a.ga.top-a.va.top*c+(a.ga.height-c*a.va.height)/2)},gL=function(a,b,
c){var d=a.data().aa(),e=b.ka(),f=a.i("mode3d");if(d.select(e)){var h=a.Za[2*e];e=a.Za[2*e+1];d=d.j("connector");var k=b.Cc().value,l=$.p(b.i("offsetY"))?b.i("offsetY"):a.labels().i("offsetY");l||(l=0);l=$.M(l,a.b);(b=$.p(b.i("offsetX"))?b.i("offsetX"):a.labels().i("offsetX"))||(b=0);var m=$.ab(k.angle+$.M(b,360)),n=k.radius+l;b=a.Fc+n*Math.cos(m)-d;a=a.zc+(f?k.radiusY+l:n)*Math.sin(m);c.clear().moveTo(h,e).lineTo(b,a).lineTo(b+d,a)}},lL=function(a,b,c){var d=a.aa(),e=d.ka(),f=d.j("start"),h=d.j("sweep");
if(c){var k=d.j("slice");var l=d.j("sliceOutline");var m=d.j("hatchSlice");k&&k.clear();m&&m.clear();l&&l.clear()}else a.Xe&&(k=$.lA(a.Xe),d.j("slice",k)),a.ke&&(l=$.lA(a.ke),d.j("sliceOutline",l)),a.g&&(m=$.lA(a.g),d.j("hatchSlice",m));if(k){var n=a.Dc("outline.offset",b,d,$.Op,!1)||0;c=a.Dc("outline.width",b,d,$.Op,!1)||0;n=$.M(n,a.b);c=$.M(c,a.b);var q=fL(a,b);d.j("explode",q);var r=f+h/2;d=q*Math.cos($.ab(r));q*=Math.sin($.ab(r));var t=a.b;r=t+n;n=t+n+c;t={centerX:a.Fc,centerY:a.zc,innerRadius:a.G,
outerRadius:t,innerOutlineRadius:r,outerOutlineRadius:n,startAngle:f,sweepAngle:h,explodeX:d,explodeY:q,path:k};l&&(c?$.Rh(l,a.Fc+d,a.zc+q,n,r,f,h):l.clear());a.i("sliceDrawer").call(t,t);k.tag={W:a,index:e};if(a.i("mode3d"))for(h=a.D.length,c=a.aa().ka(),f=0;f<h;f++)l=a.D[f],l.index==c&&kL(a,l.type+"Path"+("outerFront"==l.type||"innerBack"==l.type||"outerBack"==l.type||"innerFront"==l.type?l.start:""),b);else if(h=a.aa(),c=h.j("slice"),$.p(c)){d=$K("fill",1,!0);l=d(a,b,!1,null);bL(l)&&null===l.mode&&
(l.mode=a.eb?a.eb:null);c.fill(l);d=$K("stroke",2,!0);f=d(a,b,!1,null);bL(f)&&null===f.mode&&(f.mode=a.eb?a.eb:null);c.stroke(f);if(c=a.aa().j("sliceOutline"))d=a.Dc("outline.enabled",b,h,$.Hp,!1),null===d&&(d=a.Dc("outline.enabled",0,h,$.Hp,!1)),d?(d=$K("outline.fill",1,!0),h=d(a,0,!1,l),l=d(a,b,!1,h),bL(l)&&null===l.mode&&(l.mode=a.eb?a.eb:null),d=$K("outline.stroke",2,!0),f=d(a,b,!1,f),bL(f)&&null===f.mode&&(f.mode=a.eb?a.eb:null)):l=f="none",c.fill(l).stroke(f);aL(a,b)}m&&(m.Vd(k.F()),m.tag={W:a,
index:e},aL(a,b))}},mL=function(a,b,c,d,e,f,h,k,l,m){l+=String(e);if(m=a.Xy(l,m)){var n=.45*d,q=.2*a.b;f<e&&(f+=360);360==Math.abs(h)&&(e=0,f=180);h=$.ab(e);e=$.ab(f);f=b+d*+Math.cos(h).toFixed(5);h=c+n*+Math.sin(h).toFixed(5);b+=d*+Math.cos(e).toFixed(5);c+=n*+Math.sin(e).toFixed(5);m.moveTo(f,h);m.bf(b,c,d,n,!1,!0);m.lineTo(b,c+q);m.bf(f,h+q,d,n,!1,!1);m.lineTo(f,h);m.close();kL(a,l,k)}},nL=function(a,b,c,d,e,f,h,k,l,m){l+=String(e);if(m=a.Xy(l,m)){var n=.45*d,q=.2*a.b;f<e&&(f+=360);360==Math.abs(h)&&
(e=180,f=0);h=$.ab(e);e=$.ab(f);f=b+d*Math.cos(h);h=c+n*Math.sin(h);b+=d*Math.cos(e);c+=n*Math.sin(e);m.moveTo(f,h);m.bf(b,c,d,n,!1,!0);m.lineTo(b,c+q);m.bf(f,h+q,d,n,!1,!1);m.lineTo(f,h);m.close();kL(a,l,k)}},oL=function(a,b,c,d,e,f,h,k,l){var m=$.ab(h);h=.2*a.b;var n=c+f*Math.cos(m);c+=e*Math.cos(m);f=d+.45*f*Math.sin(m);d+=.45*e*Math.sin(m);if(l=a.Xy(b,l))l.moveTo(n,f),l.lineTo(c,d),l.lineTo(c,d+h),l.lineTo(n,f+h),l.lineTo(n,f),l.close(),kL(a,b,k)},pL=function(a,b,c,d){var e=a.labels();$.U(e);
e.fontOpacity(b);e.X();e.da(!1);if(d&&a.P)for(b=0;b<a.P.length;b++)if(d=a.P[b])e=a.i("connectorStroke"),e=$.Ck(e,c),d.stroke(e)},tL=function(a){var b=a.aa(),c=b.ka(),d=$.Hv(a.state,c),e=fL(a,d);d=b.j("start");b=b.j("sweep");var f=d+b;if($.p(d)&&$.p(b)&&b){var h=d+b/2,k=e*Math.cos($.ab(h));e=.45*e*Math.sin($.ab(h));a.D.push({index:c,type:"top",start:d,us:b,Xw:k,Zw:e});a.D.push({index:c,type:"bottom",start:d,us:b,Xw:k,Zw:e});360!=Math.abs(b)&&(a.D.push({index:c,type:"start",angle:d,Xw:k,Zw:e}),a.D.push({index:c,
type:"end",angle:f,Xw:k,Zw:e}));var l=d;var m=f;if(l==m)h=!1;else{l=$.ab(l);m=$.ab(m);h=$.Kl(Math.cos(l),7);var n=$.Kl(Math.cos(m),7);l=qL(h,Math.sin(l));m=qL(n,Math.sin(m));h=1==l||2==l?!0:3==l?1==m||2==m?!0:3==m?h>=n:!1:4==l?4==m?h>=n:!0:!1}if(h)for(l=rL(d,f),h=a.D.length,n=l.length,a.D.length=h+n,m=0;m<n;m++)l[m].index=c,l[m].type="outerFront",l[m].us=b,l[m].Xw=k,l[m].Zw=e,a.D[h+m]=l[m];l=d;m=f;l!=m&&a.G?(l=$.ab(l),m=$.ab(m),h=$.Kl(Math.cos(l),7),n=$.Kl(Math.cos(m),7),l=qL(h,Math.sin(l)),m=qL(n,
Math.sin(m)),h=3==l||4==l?!0:1==l?3==m||4==m?!0:1==m?h<=n:!1:2==l?2==m?h<=n:!0:!1):h=!1;if(h)for(l=sL(d,f),h=a.D.length,n=l.length,a.D.length=h+n,m=0;m<n;m++)l[m].index=c,l[m].type="innerBack",l[m].us=b,l[m].Xw=k,l[m].Zw=e,a.D[h+m]=l[m];l=sL(d,f);h=a.D.length;n=l.length;a.D.length=h+n;for(m=0;m<n;m++)l[m].index=c,l[m].type="outerBack",l[m].us=b,l[m].Xw=k,l[m].Zw=e,a.D[h+m]=l[m];l=rL(d,f);h=a.D.length;n=l.length;a.D.length=h+n;for(m=0;m<n;m++)l[m].index=c,l[m].type="innerFront",l[m].us=b,l[m].Xw=k,
l[m].Zw=e,a.D[h+m]=l[m]}},wL=function(a,b,c){var d=0,e=a.D.length;if($.p(b))for(d=0;d<e;d++){var f=a.D[d];f.index==b&&uL(a,f,c)}else{for(d=0;d<e;d++)switch(f=a.D[d],f.type){case "top":f.Yx=1;break;case "outerFront":f.Yx=f.en?1:$.Kl(Math.sin($.ab(vL(f.start,f.end))),7);break;case "innerBack":f.Yx=f.en?-1:$.Kl(Math.sin($.ab(vL(f.start,f.end))),7);break;case "bottom":f.Yx=-3;break;case "innerFront":f.Yx=0;break;case "outerBack":f.Yx=-2;break;default:f.Yx=$.Kl(Math.sin($.ab(f.angle)),7)}a.D.sort(function(a,
b){return a.Yx-b.Yx});for(d=0;d<e;d++)uL(a,a.D[d])}a.D.length=0},uL=function(a,b,c){var d=a.aa();d.select(b.index);var e=$.Hv(a.state,b.index),f=fL(a,e);d.j("explode",f);d=a.Fc;var h=a.zc;f&&(d+=b.Xw,h+=b.Zw);f=a.b;var k=a.G;switch(b.type){case "top":xL(a,d,h,f,k,b.start,b.us,e,!0,c);break;case "bottom":xL(a,d,h,f,k,b.start,b.us,e,!1,c);break;case "outerFront":mL(a,d,h,f,b.start,b.end,b.us,e,"outerFront",c);break;case "innerBack":nL(a,d,h,k,b.start,b.end,b.us,e,"innerBack",c);break;case "outerBack":mL(a,
d,h,f,b.start,b.end,b.us,e,"outerBack",c);break;case "innerFront":nL(a,d,h,k,b.start,b.end,b.us,e,"innerFront",c);break;case "start":oL(a,"startPath",d,h,f,k,b.angle,e,c);break;case "end":oL(a,"endPath",d,h,f,k,b.angle,e,c)}},xL=function(a,b,c,d,e,f,h,k,l,m){0>d&&(d=0);0>e&&(e=0);if(d<e){var n=d;d=e;e=n}n=(l?"top":"bottom")+"Path";c+=l?0:.2*a.b;h=$.Ya(h,-360,360);if(l=a.Xy(n,m))0>=e?360==Math.abs(h)?l.je(b,c,d,.45*d,f,h,!1):l.moveTo(b,c).je(b,c,d,.45*d,f,h,!0).close():(m=360>Math.abs(h),l.je(b,c,
d,.45*d,f,h).je(b,c,e,.45*e,f+h,-h,m),m&&l.close()),kL(a,n,k)},yL=function(a,b){var c=a.aa(),d=c.ka(),e=c.get("normal"),f=$.On($.p(e)?e.fill:void 0,c.get("fill"),a.fill());b=$.Uk(b);b==$.mn?(e=c.get("selected"),c=$.On($.p(e)?e.fill:void 0,c.get("selectFill"),a.selected().fill(),f),f=a.BI(c,f)):b==$.ln?(e=c.get("hovered"),c=$.On($.p(e)?e.fill:void 0,c.get("hoverFill"),a.lb().fill(),f),f=a.BI(c,f)):f=a.BI(f);f=$.z(f)?$.tk(f):$.tk(f.color);d=a.Yb().ic(d);var h;$.D(d)&&(d.color?h=$.tk(d.color):d.keys&&
d.keys.length&&(h=$.tk(d.keys[0].color)));h=h?h.Mj:d;return f?f.Mj:h},kL=function(a,b,c){var d=a.aa(),e=d.ka(),f=yL(a,c),h=$.mk(f),k=d.j(b);k.tag={W:a,index:e};var l,m=$.qk(h,.3),n=$.pk([255,255,255],h,.1),q=$.Rb($.pk(h,m,.7));n=$.Rb($.pk(m,n,.1));var r=$.Rb($.pk(h,m,.8)),t=$.Rb($.pk(h,m,.2));h=$.Rb($.pk(h,m,.1));var u=$.Uk(c);m=u==$.ln;u=u==$.mn;var v=$.Dk(m?a.lb().fill():u?a.selected().fill():a.fill());t={color:m||u?$.xk(t,.2):t,opacity:v};n={angle:45,keys:[{position:0,opacity:v,color:m||u?$.xk(f,
.2):$.xk(f,.1)},{position:.19,opacity:v,color:m||u?$.xk(n,.2):n},{position:1,opacity:v,color:m||u?$.xk(r,.2):r}]};q=f={angle:-50,keys:[{position:0,opacity:v,color:m||u?$.xk(f,.3):f},{position:1,opacity:v,color:m||u?$.xk(q,.2):q}]};"topPath"==b?l=f:"bottomPath"==b?l=q:$.ac(b,"outer")?l=n:$.ac(b,"inner")?l=t:l={color:m||u?$.xk(h,.2):h,opacity:v};var w;u&&$.Tk(a.selected().stroke())?w=a.selected().stroke():$.Tk(a.stroke())?w=a.stroke():w=l;k.fill(l);k.stroke(w);b="hatch"+String(b.charAt(0)).toUpperCase()+
b.substr(1);if(d=d.j(b))d.Vd(k.F()),d.tag={W:a,index:e},aL(a,c,b)},qL=function(a,b){return 0<=a&&0<=b?1:0>=a&&0<=b?2:0>=a&&0>b?3:4},rL=function(a,b){var c=$.Kl(Math.cos($.ab(a)),7),d=$.Kl(Math.cos($.ab(b)),7),e=qL(c,Math.sin($.ab(a))),f=qL(d,Math.sin($.ab(b))),h=[];if(1==e)switch(f){case 1:c>=d?h.push({start:a,end:b}):(h.push({start:a,end:180,en:!0}),h.push({start:360,end:b}));break;case 2:h.push({start:a,end:b,en:!0});break;case 3:case 4:h.push({start:a,end:180,en:!0})}else if(2==e)switch(f){case 1:h.push({start:a,
end:180});h.push({start:360,end:b});break;case 2:c>=d?h.push({start:a,end:b}):(h.push({start:a,end:180}),h.push({start:360,end:b,en:!0}));break;case 3:case 4:h.push({start:a,end:180})}else if(3==e)switch(f){case 1:h.push({start:360,end:b});break;case 2:h.push({start:360,end:b,en:!0});break;case 3:c>=d&&h.push({start:0,end:180,en:!0})}else if(4==e)switch(f){case 1:h.push({start:360,end:b});break;case 2:h.push({start:360,end:b,en:!0});break;case 3:h.push({start:360,end:180,en:!0});break;case 4:c>=d&&
h.push({start:0,end:180,en:!0})}return h},sL=function(a,b){var c=$.Kl(Math.cos($.ab(a)),7),d=$.Kl(Math.cos($.ab(b)),7),e=qL(c,Math.sin($.ab(a))),f=qL(d,Math.sin($.ab(b))),h=[];if(1==e)switch(f){case 1:c<=d&&h.push({start:180,end:360});break;case 3:h.push({start:180,end:b});break;case 4:h.push({start:180,end:b,en:!0})}else if(2==e)switch(f){case 1:h.push({start:180,end:360,en:!0});break;case 2:c<=d&&h.push({start:180,end:360,en:!0});break;case 3:h.push({start:180,end:b});break;case 4:h.push({start:180,
end:b,en:!0})}else if(3==e)switch(f){case 1:case 2:h.push({start:a,end:360,en:!0});break;case 3:c>=d?(h.push({start:a,end:360}),h.push({start:180,end:b})):h.push({start:a,end:b});break;case 4:h.push({start:a,end:b,en:!0})}else if(4==e)switch(f){case 1:case 2:h.push({start:a,end:360});break;case 3:h.push({start:a,end:360});h.push({start:180,end:b});break;case 4:c>=d?(h.push({start:a,end:360}),h.push({start:180,end:b})):h.push({start:a,end:b})}return h},eL=function(a,b){var c=a.aa();c.select(b);var d=
a.Fc,e=a.zc,f=$.Hv(a.state,b);if(f=fL(a,f)){var h=a.i("mode3d"),k=c.j("start");c=c.j("sweep");c=(k+c/2)*Math.PI/180;h=(h?.45*f:f)*Math.sin(c);d+=f*Math.cos(c);e+=h}return[d,e]},vL=function(a,b){b<a&&(b+=360);return(a+b)/2},fL=function(a,b,c){b=b||0;var d=a.aa();1==d.Eb()?a=0:(c=a.Dc("explode",b,d,$.Op,!1,void 0,c),a=$.p(c)?$.M(c,a.Eh):0);return a},zL=function(a){var b=a.Ya();a.hc($.hj()||$.gj()?"touchstart":"mousemove",a.LO);b.Wc()},AL=function(a,b,c,d){this.G=d;this.g=c;this.Of=b;this.labels=[];
this.y=this.height=0;this.b=[];this.f=a;this.nG=!1;this.Ek=null},BL=function(a,b){b&&(a.labels.push(b),a.Kw())},CL=function(a,b){var c=$.$l(a.kb());return!$.Tl(c,$.$l(b))},vea=function(a){for(var b=0,c=a.labels.length;b<c;b++){var d=a.labels[b],e=a.b[3*b],f=a.b[3*b+1],h=a.b[3*b+2],k=d.Cc().value;k.angle=e;k.radius=f;k.radiusY=h;dL(a.Of,d)}},DL=function(a,b){var c=new YK(a,b);c.pe();return c},EL=function(a,b){var c=new YK(a,b);c.Ia("pie3d");c.pe();return c};$.H(RK,$.Sx);$.g=RK.prototype;
$.g.update=function(){this.b.length=this.f.length=0;for(var a=this.za.If();a.advance();)if(!a.j("missing")){var b=a.j("start"),c=a.j("sweep"),d=this.za.b,e=this.za.IZ();this.b.push(this.za.rl(),0,0,0);this.f.push(b,c,d,e)}};$.g.Ov=function(){pL(this.za,1E-5,1E-5,UK(this.za))};
$.g.Am=function(){for(var a=this.za.If(),b=0;a.advance();)if(!a.j("missing")){a.j("start",this.coords[b++]);a.j("sweep",this.coords[b++]);a.j("radius",this.coords[b++]);a.j("innerRadius",this.coords[b++]);var c=this.za,d=a,e=d.j("slice");e.clear();var f=d.j("start"),h=d.j("sweep"),k=d.j("radius"),l=d.j("innerRadius"),m=$.Hv(c.state,d.ka());if(m=fL(c,m)){var n=f+h/2;e=$.Rh(e,c.Fc+m*Math.cos($.ab(n)),c.zc+m*Math.sin($.ab(n)),k,l,f,h)}else e=$.Rh(e,c.Fc,c.zc,k,l,f,h);if(f=d.j("hatchSlice"))c.aa().select(d.ka()),
f.clear(),f.Vd(e.F()),c=$K("hatchFill",3,!0)(c,$.Hv(c.state,d.ka()),!1,null),f.stroke(null).fill(c)}};$.g.Al=function(){this.Am()};$.g.R=function(){RK.B.R.call(this);this.za=null};$.H(TK,$.oq);$.g=TK.prototype;$.g.AE=function(){var a=[],b=this.Od.aa(),c=void 0,d=void 0;if(this.f)for(;b.advance();){var e=b.get(this.g),f=b.get("name");$.p(f)||(f="Point "+b.ka());this.f(e)?a.push(b.ka()):c?(c.push(e),d.push(f)):(c=[e],d=[f])}else for(e=0,b=b.Eb();e<b;e++)a.push(e);c?(this.b.Wf(0,(0,$.hg)(c,this.o,this.D())),this.b.j(0,"names",d),this.b.j(0,"values",c)):(this.b.Wf(0,c),this.b.j(0,"names",[]),this.b.j(0,"values",[]));return a};
$.g.Eb=function(){$.pq(this);return(this.Tn?this.Tn.length:this.Od.Eb())+this.b.Eb()};$.g.ql=function(a){$.pq(this);var b=this.Od.Eb();return a<b?this.Od.ql(a):this.b.ql(a-b)};$.g.it=function(){return $.Fa(this.Od.it(),this.b)};$.g.Wf=function(a,b){$.pq(this);var c=this.Tn?this.Tn.length:this.Od.Eb();if(a<c)return $.oq.prototype.Wf.apply(this,arguments);a-=c;return this.b.Wf.apply(this.b,arguments)};
$.g.TL=function(a,b,c){var d=this.Tn?this.Tn.length:this.Od.Eb();if(a>d)throw Error("Index can not be masked by this View");return a>=d?(a-=d,2<arguments.length?(this.b.j.apply(this.b,arguments),this):this.b.j.apply(this.b,arguments)):$.oq.prototype.TL.apply(this,arguments)};$.H(SK,$.vq);SK.prototype.Wf=function(a,b){if(!a){var c=this.f;1<arguments.length&&(this.f=b);return c}};SK.prototype.j=function(a,b,c){if(!a)return $.oq.prototype.j.apply(this,arguments)};
SK.prototype.Eb=function(){return $.p(this.f)?1:0};var FL=SK.prototype;FL.row=FL.Wf;FL.getRowsCount=FL.Eb;$.H(VK,$.Sx);VK.prototype.update=function(){this.b.length=this.f.length=0;this.b.push(1E-5,1E-5);this.f.push(1,this.Uy.opacity||1)};VK.prototype.Am=function(){pL(this.za,this.coords[0],this.coords[1],this.g)};VK.prototype.Al=function(){this.Am()};VK.prototype.R=function(){VK.B.R.call(this);this.Uy=this.za=null;delete this.g};$.H(WK,$.Vy);WK.prototype.rl=function(){return this.za.data().j(this.index,"start")};WK.prototype.f=function(){var a=this.za.data(),b=a.j(this.index,"start");a=a.j(this.index,"sweep");return b+a};WK.prototype.b=function(a){$.Uj(405,null,["exploded()","selected()"],!0);return this.selected(a)};var GL=WK.prototype;GL.getStartAngle=GL.rl;GL.getEndAngle=GL.f;GL.hovered=GL.lb;GL.selected=GL.selected;GL.exploded=GL.b;$.H(YK,$.Wv);$.rp(YK,["fill","stroke","hatchFill","outline"],"normal");$.rp(YK,["explode"],"selected");YK.prototype.ra=$.Wv.prototype.ra|16;YK.prototype.qa=$.Wv.prototype.qa|28688;
var HL=function(){var a={};$.ep(a,[$.Y.NA,$.Y.uy,[0,"radius",function(a){return $.on(a,"100%")}],[0,"innerRadius",function(a){return $.E(a)?a:$.on(a)}],[0,"sort",$.rj],[2,"",function(a){return $.on(a,"30%")},"outsideLabelsSpace"],[0,"insideLabelsOffset",$.on],[0,"connectorLength",function(a){return $.on(a,"20%")}],[0,"outsideLabelsCriticalAngle",function(a){return $.$a($.M(a))}],[0,"forceHoverLabels",$.np],[1,"connectorStroke",$.xp],[0,"mode3d",$.op],[0,"sliceDrawer",$.Tp]]);return a}();$.S(YK,HL);
$.g=YK.prototype;$.g.Qa=function(){return this.i("mode3d")?"pie-3d":"pie"};$.g.Cg=function(){return!0};$.g.Qj=function(){return!1};$.g.vi=function(){return!0};$.g.Ne=function(){return[this]};$.g.data=function(a,b){if($.p(a)){if(a){var c=a.title||a.caption;c&&this.title(c);a.rows&&(a=a.rows)}if(this.Vf!==a){this.Vf=a;if(this.o!=a||null===a){$.hd(this.ed);if($.K(a,$.oq)){var d=a;this.ed=null}else $.K(a,$.yq)?d=(this.ed=a).Yd():d=(this.ed=new $.yq($.B(a)||$.z(a)?a:null,b)).Yd();this.o=d.$i()}XK(this)}return this}return this.la};
$.g.xd=function(a){$.W(a,16)&&this.u(13104,17)};$.g.aa=function(){return this.Md||(this.Md=this.la.aa())};$.g.wc=function(){return this.Md=this.la.aa()};$.g.If=function(){return this.la.aa()};$.g.group=function(a,b){return $.p(a)?($.E(a)&&a!=this.Uc?(this.Uc=a,this.Sq=b||"Grouped point",XK(this)):$.Sn(a)&&(this.Uc=null,XK(this)),this):this.Uc};
$.g.Yb=function(a){if($.K(a,$.xr))return this.Hc($.xr,a),this;if($.K(a,$.ur))return this.Hc($.ur,a),this;$.D(a)&&"range"==a.type?this.Hc($.xr):($.D(a)||null==this.Aa)&&this.Hc($.ur);return $.p(a)?(this.Aa.K(a),this):this.Aa};$.g.Hc=function(a,b){if($.K(this.Aa,a))b&&this.Aa.K(b);else{var c=!!this.Aa;$.hd(this.Aa);this.Aa=new a;$.V(this,"palette",this.Aa);this.Aa.Rp();b&&this.Aa.K(b);$.L(this.Aa,this.Df,this);c&&this.u(528,1)}};
$.g.be=function(a){this.Vc||(this.Vc=new $.vr,$.L(this.Vc,this.Df,this));return $.p(a)?(this.Vc.K(a),this):this.Vc};$.g.Df=function(a){$.W(a,2)&&this.u(528,1)};var ZK={};$.g=YK.prototype;$.g.Dc=function(a,b,c,d,e,f,h){var k=!!(b&$.ln),l=!!(b&$.mn);f=l?this.Da:k?this.ya:this.ca;e=a.split(".");f=(0,$.hg)(e,function(a,b){return a[b]()},f);h?a=f:(h=c.get(l?"selected":k?"hovered":"normal"),h=$.p(h)?(0,$.hg)(e,function(a,b){return a?a[b]:a},h):void 0,a=$.On(h,c.get($.Xk(b,a)),f));$.p(a)&&(a=d(a));return a};
$.g.eh=function(){return $.Wb(this.be().ic(this.aa().ka())||"none")};$.g.oi=function(){var a=this.aa();return{index:a.ka(),sourceHatchFill:this.eh(),iterator:a}};$.g.me=function(a,b){var c=this.aa(),d;b||(d=c.get("fill"));return{index:c.ka(),sourceColor:$.Sb(a||d||this.Yb().ic(c.ka())||"blue"),iterator:c,series:this,chart:this}};
$.g.BI=function(a,b){var c=this.aa().ka();if($.z(a)&&"aquastyle"==a)c={aquaStyleObj:this.Sb,sourceColor:this.Yb().ic(c)},c=this.Zl.call(c);else if($.E(a)){var d=1<arguments.length?this.BI.apply(this,$.Ia(arguments,1)):this.Yb().ic(c);c={index:c,sourceColor:d,iterator:this.aa()};c=a.call(c)}else c=a;return c};$.g.ej=function(){return!this.aa().Eb()};$.g.By=function(a){this.f||(this.f=new $.jA(this),$.L(this.f,this.ufa,this),$.V(this,"center",this.f));return $.p(a)?(this.f.K(a),this):this.f};
$.g.ufa=function(a){var b=0,c=0;$.W(a,1)&&(b|=16,c|=1);$.W(a,8)&&(b|=16388,c|=1);this.u(b,c)};$.g.labels=function(a){return $.p(a)?(this.ca.labels(a),this):this.ca.labels()};$.g.Kk=function(a){this.Ma||(this.Ma=[]);var b=a.ka();this.Ma[b]||(this.Ma[b]=$.am(this.labels().Qk(a)));return this.Ma[b]};$.g.Fd=function(a){var b=0,c=0;$.W(a,1)&&(b|=4096,c|=1);$.W(a,8)&&(b|=4100,c|=9);this.u(b,c)};$.g.jfa=function(){this.u(20,1)};
$.g.Ec=function(a){var b=this.aa();if(!this.Td||a)this.Td=new $.$u;this.Td.lg(b).Vi([this.Ad(b.ka()),this]);a={x:{value:b.get("x"),type:"string"},value:{value:b.get("value"),type:"number"},name:{value:b.get("name"),type:"string"},index:{value:b.ka(),type:"number"},chart:{value:this,type:""}};b.j("groupedPoint")&&(a.name={value:b.j("name"),type:"string"},a.groupedPoint={value:!0,type:"string"},a.names={value:b.j("names"),type:""},a.values={value:b.j("values"),type:""});return $.Lt(this.Td,a)};
$.g.Gi=function(){var a=UK(this),b=this.aa(),c=b.j("start"),d=b.j("sweep"),e=1==b.Eb()||360==d;b=$.Hv(this.state,b.ka());b=fL(this,b);c+=d/2;var f=this.i("mode3d");d=this.i("insideLabelsOffset");if(f){if(a)e=this.b+this.ba,d=.45*this.b+this.ba,b&&(e+=b,d+=.45*b);else{var h=this.b;a=.45*this.b;var k=this.G;f=.45*this.G;e&&!k?d=e=0:(e=$.M(d,k+h),d=$.kn(d)?$.M(d,f+a):.45*$.M(d,f+a),b&&(e+=b,d+=.45*b))}return{value:{angle:c,radius:e,radiusY:d}}}return{value:{angle:c,radius:a?this.b+this.ba+b:$.M(d,e&&
!this.G?0:this.b-this.G)+this.G+b,outerRadius:this.b,innerRadius:this.G}}};
$.g.Kw=function(a,b,c,d){var e,f,h,k,l,m,n=null,q=this.aa(),r=[],t=b?$.ta:$.ue;t(a,function(a){a&&0!=a.enabled()&&(q.select(a.ka()),a.Nf(this.Ec()),A=this.Kk(a),!n||CL(n,A)?(n&&r.push(n),n=new AL(b,this,r,d||0),n.RA(a)):n.RA(a))},this);n&&r.push(n);a=0;for(e=r.length;a<e;a++)(n=r[a])&&n.wo&&(f||(f=[]),f=$.Fa(f,n.wo));n=null;f&&($.Oa(f,function(a,b){return a.ka()>b.ka()?1:a.ka()<b.ka()?-1:0}),t(f,function(a){if(a){q.select(a.ka());a.Nf(this.Ec());A=this.Kk(a);h=!0;k=0;for(l=r.length;k<l;k++)h=h&&CL(r[k],
A);if(h){n||(n=new AL(b,this,[],d||0));BL(n,a);m=n.kb();h=!0;for(k=0;k<l;k++)h=h&&CL(r[k],m);n.nG||!h?(n.labels.pop().enabled(!1),n.Kw(),r.push(n),n=null):a.enabled(!0)}else n&&(r.push(n),n=null)}},this),n&&r.push(n));var u,v,w=this.i("mode3d"),x=this.i("connectorStroke");a=0;for(e=r.length;a<e;a++)if(n=r[a]){vea(n);var y=0;for(u=n.labels.length;y<u;y++)if((f=n.labels[y])&&0!=f.enabled()){dL(this,f);t=f.ka();q.select(t);var A=this.Kk(f);if(c){var G=this.Za[2*t],C=this.Za[2*t+1],J=q.j("connector"),
P=f.Cc().value,Q=P.angle;Q=$.ab(Q);P=P.radius;var T=this.Fc+P*Math.cos(Q)-J,wa=this.zc+P*Math.sin(Q);var Aa=0;for(v=c.length;Aa<v;Aa++){Q=c[Aa];dL(this,Q);var Sa=this.Kk(Q),wb=Q.ka(),oc=eL(this,wb),eb=oc[0],bc=oc[1],tb=q.j("start"),Mc=q.j("sweep");oc=this.Za[2*wb];wb=this.Za[2*wb+1];J=q.j("connector");P=Q.Cc().value;Q=P.angle;Q=$.ab(Q);P=P.radius;J=this.Fc+P*Math.cos(Q)-J;P=this.zc+P*Math.sin(Q);Q=$.ab(tb);var pf=eb+this.G*Math.cos(Q),Bb=bc+this.G*Math.sin(Q),nd=eb+this.b*Math.cos(Q),xc=bc+this.b*
Math.sin(Q);Q=$.ab(tb+Mc);tb=eb+this.G*Math.cos(Q);Mc=bc+this.G*Math.sin(Q);eb+=this.b*Math.cos(Q);bc+=this.b*Math.sin(Q);Q=$.$l(A);if($.Tl(Q,$.$l(Sa))||PK(pf,Bb,nd,xc,Q)||PK(tb,Mc,eb,bc,Q)||PK(oc,wb,J,P,Q)||OK(G,C,T,wa,pf,Bb,nd,xc)||OK(G,C,T,wa,tb,Mc,eb,bc)||OK(oc,wb,J,P,G,C,T,wa)||$.Tl(Q,[nd,xc,pf,Bb])||$.Tl(Q,[eb,bc,tb,Mc])){f.enabled(!1);break}}}if(0!=f.enabled()){if(this.ai||this.Bg)Aa=d?this.Mf:this.Re,Aa=Math.max(Aa.left-A.left,A.$a()-Aa.$a(),Aa.top-A.top,A.Ra()-Aa.Ra()),Aa>this.Ja&&(this.kn=
t),this.Ja=Math.max(this.Ja,Aa);this.P[t]||(Aa=this.Za[2*t+1]-.2*this.b/2,Aa=w&&Aa<this.zc?$.lA(this.mc):$.lA(this.U),this.P[t]=Aa,Aa.stroke(x),gL(this,f,Aa))}}}};
$.g.zn=function(a){this.Eh=Math.min(a.width,a.height);var b=fL(this,$.Wk,!0),c=fL(this,$.ln,!0),d=fL(this,$.mn,!0),e=Math.max(b,c||0,d||0),f=this.aa();for(f.reset();f.advance();)b=fL(this,$.Wk),c=fL(this,$.ln),d=fL(this,$.mn),e=Math.max(b,c||0,d||0,e);b=this.ca.labels().enabled()||this.ya.labels().enabled()||this.Da.labels().enabled();e=UK(this)&&b?e:0;this.Re=$.Zl(a.left+e,a.top+e,a.width-2*e,a.height-2*e);b=this.Eh-2*e;c=Math.max($.M(this.i("radius"),b),0);this.i("mode3d")?this.b=Math.min(Math.min(c,
(a.width-2*e)/2),(a.height-2*e)/1.3):this.b=Math.min(b/2,c);this.ba=$.M(this.i("connectorLength"),this.b);this.Oo=this.b;this.Ja=0;this.Fc=this.Re.left+this.Re.width/2;this.zc=this.Re.top+this.Re.height/2;b=$.ab(-145);c=Math.min(a.width,a.height)/2;e=.5*c*Math.cos(b)/a.width+.5;b=.5*c*Math.sin(b)/a.height+.5;0>a.width&&(a.width=0);0>a.height&&(a.height=0);this.Sb.fx=!(0,window.isNaN)(e)&&(0,window.isFinite)(e)?e:0;this.Sb.fy=!(0,window.isNaN)(b)&&(0,window.isFinite)(b)?b:0;this.Sb.mode=a;iL(this)};
$.g.mb=function(){if(this.J(8192)){this.nH();for(var a=this.data().aa(),b,c=0,d=Number.MAX_VALUE,e=-Number.MAX_VALUE,f=0;a.advance();)b=a.get("value"),cL(b)?c++:(b=+b,d=Math.min(b,d),e=Math.max(b,e),f+=b);a=a.Eb()-c;var h;a?h=f/a:d=e=f=h=void 0;this.Fa("count",a);this.Fa("min",d);this.Fa("max",e);this.Fa("sum",f);this.Fa("average",h);this.I(8192)}};$.g.vu=function(){this.Aa&&$.K(this.Aa,$.xr)&&$.yr(this.Aa,this.aa().Eb())};$.g.gI=function(){var a=this.f.Mh.kb();$.mb(a,this.va)||jL(this,a)};
$.g.bJ=function(){this.u(4,1)};
$.g.Ji=function(a){this.mb();$.wt(this.labels());var b=this.aa();b.Eb();var c=this.i("mode3d"),d=this.By();this.J(16384)&&(d&&d.qj&&(this.f.GE(),this.f.qj.parent(this.Ua),this.f.qj.zIndex(25),this.f.qj&&($.K(this.f.Mh,$.Jf)?this.f.qj.Ga().wa("renderfinish",this.gI,!1,this):$.K(this.f.Mh,$.X)&&this.f.qj.wa("chartdraw",this.bJ,!1,this))),this.I(16384));this.J(4)&&(this.Bg=!0,this.zn(a),this.u(4112));if(this.J(16)){this.ai=!0;var e=this.rl();var f=0;for(b.reset();b.advance();)if(f=b.get("value"),cL(f))b.j("missing",
!0);else{f=+f;f=f/this.pg("sum")*360;var h=b.get("state");h="selected"==h?$.mn:"hovered"==h?$.ln:"normal"==h?$.Wk:window.NaN;(0,window.isNaN)(h)||this.state.oh(h,b.ka());b.j("start",e).j("sweep",f).j("explode",fL(this,h));e+=f}}if(this.J(4096)){this.labels().O()||this.labels().O(this.Ua);this.labels().clear();this.yc&&(this.yc.length=0);this.ee&&(this.ee.length=0);this.U&&(this.U.clear(),c&&this.mc.clear());if(this.labels().enabled()){var k=UK(this)?"outsideLabels":"insideLabels";e=$.hq(this,k,!0,
function(){var a=new $.Wp;$.id(this,a);$.V(this,k,a);return a}).ma;this.labels().Wp(e.autoColor);this.labels().disablePointerEvents(e.disablePointerEvents);if(UK(this)){if(this.ai||this.Bg)this.b=this.Oo,this.Ja=Number.NEGATIVE_INFINITY;hL(this);if(this.ai||this.Bg){for(e=5;this.Ja&&(0,window.isFinite)(this.Ja)&&e&&10<Math.abs(this.Ja);)iL(this),this.Ja=Number.NEGATIVE_INFINITY,this.labels().clear(),this.U&&(this.U.clear(),c&&this.mc.clear()),hL(this),e--;this.u(4)}}else for(b.reset();b.advance();)cL(b.get("value"))||
(e=$.Hv(this.state,b.ka()),this.Qd(e,!!(e&$.ln)))}this.labels().X();this.labels().Kd().clip(a);this.u(16);this.I(4096)}if(this.J(16)){a=this.ca.Fs().i("offset")||this.ca.Fs().i("width")||this.ya.Fs().i("offset")||this.ya.Fs().i("width")||this.Da.Fs().i("offset")||this.Da.Fs().i("width");this.ke?this.ke.clear():a&&(this.ke=new $.kA(function(){return $.aj()},function(a){a.clear()}),this.ke.zIndex(30),this.ke.parent(this.Ua));this.Xe?this.Xe.clear():(this.Xe=new $.kA(function(){return $.aj()},function(a){a.clear()}),
this.Xe.zIndex(30),this.Xe.parent(this.Ua));this.g?this.g.clear():(this.g=new $.kA(function(){return $.aj()},function(a){a.clear()}),this.g.parent(this.Ua),this.g.zIndex(31).td(!0));c&&(this.D.length=0);for(b.reset();b.advance();)cL(b.get("value"))||(e=$.Hv(this.state,b.ka()),c?tL(this):lL(this,e));c&&wL(this);b=this.i("connectorStroke");if(this.P)for(c=0;c<this.P.length;c++)(a=this.P[c])&&a.stroke(b);this.G?(c=this.f.i("fill"),a=this.f.i("stroke"),this.Ea||(this.Ea=$.Yi()),e=this.G-$.Xb(a)/2,this.Ea.parent(this.Ua).zIndex(20).stroke(a).fill(c).Zb(e)):
this.Ea&&this.Ea.parent(null);this.Dd&&this.Dd.stroke(b);this.I(16)}this.J(4)&&d&&(b=d.Mh,d=d.qj,$.K(b,$.Jf)?(b=b.kb(),jL(this,b),d.clip(null)):$.K(b,$.X)&&(b.fa(this.ga),b.da(!1),b.X(),d.nc(1,0,0,1,0,0),d.clip($.Yi(this.Fc,this.zc,this.G+2))),this.Ea&&this.G&&this.Ea.lq(this.Fc).mq(this.zc));this.Bg=!1};
$.g.Qd=function(a,b){if(UK(this)){var c=a,d=this.aa();c=$.Uk(c);var e=c==$.ln,f=c==$.mn,h=this.labels(),k=f?this.Da.labels():e?this.ya.labels():null,l=d.get("normal");l=$.p(l)?l.label:void 0;var m=f?d.get("selected"):e?d.get("hovered"):void 0;m=$.p(m)?m.label:void 0;l=$.On(l,d.get("label"));m=f?$.On(m,d.get("selectLabel")):e?$.On(m,d.get("hoverLabel")):null;var n=d.ka();c=h.Wd(n);var q=l&&$.p(l.enabled)?l.enabled:null,r=m&&$.p(m.enabled)?m.enabled:null;e=e||f?null===r?null===k.enabled()?null===q?
c&&$.p(c.enabled())?c.enabled():h.enabled():q:k.enabled():r:null===q?c&&$.p(c.enabled())?c.enabled():h.enabled():q;q=this.Ec(!0);r=this.Gi();if(e){if(f=!c)c=h.add(q,r,n);h=c.enabled();c.yi();$.yt(c,k);c.gd(l,m);c.enabled(h);d=d.j("anchor");$.p(d)&&c.anchor(d);f||c.X()}else c?(h=c.enabled(),c.clear(),c.enabled(h)):(c=h.add(q,r,n),d=d.j("anchor"),$.p(d)&&c.anchor(d),c.enabled(!1));if(b&&(d=c)&&this.P){k=d.ka();var t;(t=this.P[k])?d&&0!=d.enabled()&&e?gL(this,d,t):t.clear():e?gL(this,d,this.Dd):this.Dd.clear()}return c}a=
$.Uk(a);t=a==$.ln;r=a==$.mn;var u=this.aa();c=this.labels();d=r?this.Da.labels():t?this.ya.labels():null;k=u.get("normal");k=$.p(k)?k.label:void 0;l=r?u.get("selected"):t?u.get("hovered"):void 0;l=$.p(l)?l.label:void 0;k=$.On(k,u.get("label"));l=r?$.On(l,u.get("selectLabel")):t?$.On(l,u.get("hoverLabel")):null;m=u.ka();h=c.Wd(m);n=k&&$.p(k.enabled)?k.enabled:null;e=l&&$.p(l.enabled)?l.enabled:null;f=this.Gi();q=this.Ec(!0);var v=this.i("mode3d");r=t||r;var w=!0;if((!r||r&&!this.i("forceHoverLabels"))&&
"allow-overlap"!=this.i("overlapMode")){var x=u.j("start"),y=u.j("sweep");w=this.Fc;var A=this.zc,G=fL(this,a);if(G){var C=(x+y/2)*Math.PI/180;var J=(v?.45*G:G)*Math.sin(C);w+=G*Math.cos(C);A+=J}C=x*Math.PI/180;G=w+this.b*Math.cos(C);J=A+(v?.45*this.b:this.b)*Math.sin(C);C=(x+y)*Math.PI/180;x=w+this.b*Math.cos(C);C=A+(v?.45*this.b:this.b)*Math.sin(C);this.rb?this.rb.clear():this.rb=new $.uw;this.rb.Nf(q);this.rb.Cc(f);this.rb.yi();$.xt(this.rb,this.labels());$.yt(this.rb,c);this.rb.gd(k,l);v=this.labels().Qk(this.rb,
null,null,m);y=(u=(1==u.Eb()||360==y)&&!this.G)||!PK(w,A,x,C,v);C=!QK(w,A,this.b,v);x=u||QK(w,A,this.G,v);w=(u||!PK(G,J,w,A,v))&&y&&C&&x}(r?null===e?null===d.enabled()?null===n?c.enabled():n:d.enabled():e:null===n?c.enabled():n)&&w?(h?(h.Nf(q),h.Cc(f)):h=c.add(q,f,m),h.yi(),$.yt(h,d),h.gd(k,l),t&&!h.O()&&c.Kd()&&(h.O(c.Kd()),h.O().parent()||h.O().parent(c.O()))):h&&c.clear(h.ka());return h};
$.g.HJ=function(){if(!this.i("mode3d")&&this.VA().i("enabled")&&0<this.VA().i("duration"))if(this.jg&&1==this.jg.oc)this.jg.update();else if(this.J(2048)){$.hd(this.jg);this.jg=new $.iA;var a=this.VA().i("duration"),b=a*(1-.85);a=new RK(this,.85*a);b=new VK(this,b);this.jg.add(a);this.jg.add(b);this.jg.wa("begin",function(){this.yj=this.i("connectorStroke");this.pa("connectorStroke","none");$.Pv(this,!0);$.iq(this,{type:"animationstart",chart:this})},!1,this);this.jg.wa("end",function(){this.pa("connectorStroke",
this.yj);$.Pv(this,!1);$.iq(this,{type:"animationend",chart:this})},!1,this);this.jg.play(!1)}};$.g.Xy=function(a,b){var c=this.aa(),d="hatch"+String(a.charAt(0)).toUpperCase()+a.substr(1);if(b){var e=c.j(a);var f=c.j(d);e&&e.clear();f&&f.clear()}else e=$.lA(this.Xe),c.j(a,e),f=$.lA(this.Xe),c.j(d,f);return e};$.g.yba=function(){$.Uj(405,null,["getCenterPoint()","center().getPoint()"],!0);return this.By().Ad()};$.g.dR=function(){return[this.Fc,this.zc]};$.g.lZ=function(){return this.ga};$.g.s8=function(){return this.b};
$.g.IZ=function(){return this.G};$.g.Hba=function(a){return fL(this,a)};$.g.rl=function(){return this.i("startAngle")+-90};$.g.Ad=function(a){var b=new WK(this,a),c;this.aa().select(a)&&b.Yw()&&!cL(c=b.get("value"))&&(a=c/this.pg("sum")*100,b.Fa("percentValue",a),b.Fa("yPercentOfTotal",a));return b};
$.g.Nl=function(a,b){var c=[],d=this.aa().reset(),e="aquastyle"==this.ca.i("fill");if(e){var f=this.Sb;this.Sb={}}for(;d.advance();){var h=d.ka();var k=d.get("legendItem")||{},l=null;$.E(b)&&(l=this.Ec(),l=b.call(l,l),$.ea(l)&&(l=String(l)));$.z(l)||(l=d.j("groupedPoint")?d.j("name"):String($.p(d.get("name"))?d.get("name"):d.get("x")));var m=this.i("mode3d"),n=$K("fill",1,!1),q=$K("stroke",2,!1),r=$K("hatchFill",3,!1);l={enabled:!0,meta:{pointIndex:h,pointValue:d.get("value")},iconType:"square",text:l,
iconStroke:m?$.yk(yL(this,$.Wk),.2):q(this,$.Wk,!1,null),iconFill:m?yL(this,$.Wk):n(this,$.Wk,!1,null),iconHatchFill:r(this,$.Wk,!1,null)};$.Kc(l,k);l.sourceUid=$.oa(this);l.sourceKey=h;c.push(l)}e&&(this.Sb=f);return c};$.g.Vr=function(){return!0};$.g.Lq=function(a){a=a.ei();this.data().aa().select(a)&&this.select(a)};$.g.Ep=function(a,b){var c=a.ei();if(!a||null!=c||(0,window.isNaN)(c))if(c=$.hn(b.domTarget))c.W=this};
$.g.Dp=function(a,b){var c=a.ei();if(!a||null!=c||(0,window.isNaN)(c))if(c=$.hn(b.domTarget))c.W=this};$.g.dba=function(a,b){$.Uj(405,null,["explodeSlice()","select()"],!0);var c=$.Hv(this.state,a);b||!$.p(b)?c&$.mn||this.select(a):this.Pd(a);return this};$.g.eba=function(a){$.Uj(405,null,["explodeSlices()","select()"],!0);$.da(a)?a?this.select():this.Pd():this.select(a);return this};$.g.Hr=function(){return[]};
$.g.Tf=function(a){a=$.X.prototype.Tf.call(this,a);var b=$.hn(a.domTarget).index;if(!$.p(b)&&$.Gv(this.state,$.ln)){var c=$.Mv(this.state,$.ln);c.length&&(b=c[0])}b=$.N(b);(0,window.isNaN)(b)||(a.pointIndex=a.sliceIndex=b);return a};$.g.ih=function(a){(a=this.tg(a))&&this.dispatchEvent(a)};
$.g.tg=function(a){var b;"pointIndex"in a?b=a.pointIndex:"labelIndex"in a?b=a.labelIndex:"markerIndex"in a&&(b=a.markerIndex);b=$.N(b);if((0,window.isNaN)(b))return null;a.pointIndex=b;var c=a.type;switch(c){case "mouseout":c="pointmouseout";break;case "mouseover":c="pointmouseover";break;case "mousemove":c="pointmousemove";break;case "mousedown":c="pointmousedown";break;case "mouseup":c="pointmouseup";break;case "click":c="pointclick";break;case "dblclick":c="pointdblclick";break;default:return null}var d=
this.data().aa();d.select(b)||d.reset();return{type:c,actualTarget:a.target,pie:this,iterator:d,sliceIndex:b,pointIndex:b,target:this,originalEvent:a,point:this.Ad(b)}};$.g.Ta=function(a){return $.p(a)?(this.ca.K(a),this):this.ca};$.g.lb=function(a){return $.p(a)?(this.ya.K(a),this):this.ya};$.g.vl=function(a){return $.p(a)?(a=$.jj(a),a!=this.N&&(this.N=a),this):this.N};$.g.xj=function(a){$.p(a)?this.ti(a):this.nk();return this};
$.g.Cd=function(a){var b;(b=$.Gv(this.state,$.ln))||(b=!!(this.state.uj()&$.ln));b&&this.enabled()&&($.p(a)?this.state.xh($.ln,a):this.state.xh($.ln,!0),zL(this))};$.g.ti=function(a,b){if(!this.enabled())return this;if($.B(a))for(var c=$.Mv(this.state,$.ln),d=0;d<c.length;d++)$.ya(a,c[d])||this.state.xh($.ln,c[d]);$.Kv(this.state,a);$.p(b)&&this.LO(b);return this};$.g.nk=function(){this.enabled()&&this.state.oh($.ln,!0)};$.g.selected=function(a){return $.p(a)?(this.Da.K(a),this):this.Da};
$.g.kj=function(a){return $.p(a)?(a=$.kj(a),a!=this.Si&&(this.Si=a),this):this.Si};$.g.select=function(a){if(!this.enabled())return this;$.p(a)?this.Ai(a):this.Rt();return this};$.g.Rt=function(){zL(this);this.state.oh($.mn,!0)};$.g.Ai=function(a,b){var c=b&&b.shiftKey?void 0:b?$.ln:$.Wk;$.B(a)?(b||this.Pd(),this.state.oh($.mn,a,c)):$.ea(a)&&this.state.oh($.mn,a,c);return this};$.g.Pd=function(a){$.p(a)?this.state.xh($.mn,a):this.state.xh($.mn,!0)};
$.g.Gj=function(a,b){var c=this.aa(),d=c.j("explode");this.i("mode3d")?(tL(this),wL(this,c.ka(),!0)):lL(this,a,!0);cL(c.get("value"))||this.Qd(a);return b||d!=fL(this,a)};$.g.Ql=function(a){var b=this.aa(),c=b.j("sweep"),d=b.get("value"),e=b.ka();1==b.Eb()||360==c||cL(d)&&e!=b.Eb()||(a=!!a,c=UK(this),a||c?c?(this.ai=!1,$.U(this.labels()),this.labels().clear(),hL(this),this.labels().X(),this.labels().da(!1)):(this.labels().clear(),b.select(e)):this.labels().X())};$.g.Ck=$.ia;$.g.zp=$.ia;
$.g.mJ=function(){var a=new $.Ru(0);a.za(this);$.Vu(a,this);$.L(a,this.Po,this);$.V(this,"tooltip",a);return a};$.g.Po=function(){this.Ya().X()};$.g.LO=function(a){var b=$.hq(this,"legend");if(!a||!b||a.target!=b){b=this.Ya();var c=this.Ec();a&&($.U(b),$.iv(b,a.clientX,a.clientY,c),b.da(!1),this.wa($.hj()||$.gj()?"touchstart":"mousemove",this.LO))}};$.g.ek=function(){return this.Ec()};
$.g.F=function(){var a=YK.B.F.call(this);a.data=this.data().F();a.palette=this.Yb().F();a.hatchFillPalette=this.be().F();$.hq(this,"tooltip")&&(a.tooltip=this.Ya().F());this.By()&&(a.center=this.By().F());$.Bp(this,HL,a,"Pie");a.normal=this.ca.F();a.hovered=this.ya.F();a.selected=this.Da.F();return{chart:a}};
$.g.Y=function(a,b){YK.B.Y.call(this,a,b);$.tp(this,HL,a,b);this.group(a.group);this.data(a.data);"center"in a&&this.By().ja(!!b,a.center);"tooltip"in a&&this.Ya().ja(!!b,a.tooltip);"normal"in a&&this.Ta().ja(!!b,a.normal);"hovered"in a&&this.lb().ja(!!b,a.hovered);"selected"in a&&this.selected().ja(!!b,a.selected);"hatchFillPalette"in a&&this.be().ja(!!b,a.hatchFillPalette);"palette"in a&&this.Yb(a.palette)};
$.g.pe=function(){this.ca.Ia(this.ma);$.V(this,"normal",this.ca);this.ca.ja(!0,{});$.V(this,"hovered",this.ya);this.ya.ja(!0,{});$.V(this,"selected",this.Da);this.Da.ja(!0,{})};$.g.R=function(){$.jd(this.jg,this.ca,this.ya,this.Da,this.f,this.ed,this.o,this.la,this.Aa,this.Vc);this.la=this.o=this.ed=this.f=this.Da=this.ya=this.ca=this.jg=null;delete this.Md;this.Vc=this.Aa=null;YK.B.R.call(this)};$.g=AL.prototype;$.g.RA=function(a){a&&(this.labels.push(a),this.mb())};
$.g.kb=function(){if(!this.Ek){var a=this.labels[0]?this.Of.Kk(this.labels[0]).height:0;this.Ek=new $.I(this.x,this.y+a/2,this.width,this.height)}return this.Ek};$.g.Id=function(){this.Ek=null};
$.g.Kw=function(){var a=this.height=0;this.Id();var b=this.G,c=this.Of.By(),d=c?c.Ad():this.Of.dR();var e=this.Of.b+b;c=d.x;d=d.y;var f=this.Of.i("mode3d");if(f){var h=d+.45*e+this.Of.ba-.1+.2*this.Of.b/2;var k=d-(.45*e+this.Of.ba)+.1-.2*this.Of.b/2}else h=d+e+this.Of.ba-.1,k=d-(e+this.Of.ba)+.1;for(var l=0,m=this.labels.length;l<m;l++){var n=this.labels[l];e=this.Of.Kk(n);a+=e.top-this.height-e.height/2;this.height+=e.height}this.y=a/m;a=this.y+this.height;a>h&&(a=h,this.y=h-this.height);0!=this.labels.length&&
(e=this.Of.Kk(this.labels[0]).height,this.y+e<k&&(a=k-e+this.height,this.y=k-e));h=this.Of.i("outsideLabelsCriticalAngle");this.b.length=0;k=this.Of.data().aa();this.width=this.x=window.NaN;this.N=null;this.o=this.D=window.NaN;this.nG=!1;l=0;for(m=this.labels.length;l<m;l++){n=this.labels[l];e=this.Of.Kk(n);var q=l==m-1?0:this.Of.Kk(this.labels[l+1]).height;var r=n.ka();k.select(r);var t=k.j("start");var u=k.j("sweep");(r=$.p(n.i("offsetX"))?n.i("offsetX"):this.Of.labels().i("offsetX"))||(r=0);r=
$.M(r,360);var v=$.p(n.i("offsetY"))?n.i("offsetY"):this.Of.labels().i("offsetY");v||(v=0);n=$.M(v,this.Of.b);var w=$.ab(t+u/2+r);u=this.f?5:-5;var x=this.Of.b+b;var y=this.Of.b+this.Of.ba+b+n;if(f){var A=.45*(this.Of.b+b);var G=.45*(this.Of.b+b+n)+this.Of.ba}else A=x,G=y;t=a;var C=x+this.Of.ba;var J=A+this.Of.ba;Math.abs(t-d)>J&&(J=Math.abs(t-d));J=C*Math.sqrt(Math.pow(J,2)-Math.pow(t-d,2))/J;C=c+(this.f?1:-1)*Math.abs(J);x=c+x*Math.cos(w);A=d+A*Math.sin(w);var P=c+y*Math.cos(w);w=d+G*Math.sin(w);
G=Math.floor($.Wl(C,t,c,d))+v;v=Math.abs($.zb(C-x,t-A,P-x,w-A));y=0>J||G>y;if(v>this.o||(0,window.isNaN)(this.o)||y){this.o=0>J?Number.POSITIVE_INFINITY:v;J=window.Infinity;for(G=w=0;G<this.labels.length;G++)k.select(this.labels[G].ka()),x=k.get("value"),(0,window.isNaN)(+x)||(x=+x),x<J&&(J=x,w=G);this.N=this.labels[w];this.D=w}if(v>h||y)this.nG=!0;u=C+u;C=this.f?u:u-e.width;this.x=(0,window.isNaN)(this.x)?C:this.x>C?C:this.x;C=this.f?u+e.width:u;this.width=(0,window.isNaN)(this.width)?C:this.width<
C?C:this.width;u-=c;t-=d;f&&(t+=.2*this.Of.b/2);C=Math.sqrt(Math.pow(u,2)+Math.pow(t,2))-n;n=Math.sqrt(Math.pow(u,2)+Math.pow(t,2))-n;y=window.NaN;0<u&&0<=t?y=$.bb(Math.atan(t/u)):0<u&&0>t?y=$.bb(Math.atan(t/u))+360:0>u?y=$.bb(Math.atan(t/u))+180:!u&&0<t?y=90:!u&&0>t&&(y=270);y-=r;this.b.push(y,C,n);a-=e.height/2+q/2}this.width-=this.x};
$.g.mb=function(){this.Kw();if(this.nG){var a=this.N,b=this.D;(0,window.isNaN)(b)||(a.enabled(!1),this.wo||(this.wo=[]),this.wo.push(a),$.Ba(this.labels,b,1));var c=this.Of;a=this.labels;var d=this.g,e,f,h=d[d.length-1];if(h!=this){var k=null;b=a.slice();var l=d.length,m=!1;var n=0;for(e=a.length;n<e;n++)if(f=a[n]){var q=c.Kk(f);!h||CL(h,q)?!k||CL(k,q)?(k&&(d.push(k),h=k),q="left-center"==f.anchor(),k=new AL(q,c,d,this.G),BL(k,f)):(BL(k,f),c.nG?(f.enabled(!1),k.wo||(k.wo=[]),k.wo.push(f),k.labels.pop(),
k.Kw()):h&&k&&!CL(h,k.kb())&&(d.pop(),k.labels=$.Fa(h.labels,k.labels),h=null,k.Kw(),m=!0)):(f.enabled(!1),k&&(k.wo||(k.wo=[]),k.wo.push(f)))}if(k)if(0<d.length-l||m)this.labels=k.labels;else{c=k;if(c.wo){d=0;for(n=c.wo.length;d<n;d++)c.wo[d].enabled(!0);c.wo.length=0}b.length!=a.length&&(this.labels=b)}}this.mb()}else if((a=this.g[this.g.length-1])&&(b=a.kb()),b&&!CL(this,b)){this.g.pop();this.labels=$.Fa(a.labels,this.labels);a=0;for(b=this.labels.length;a<b;a++)this.labels[a].enabled(!0);this.mb()}};
var IL=YK.prototype;IL.explodeSlice=IL.dba;IL.explodeSlices=IL.eba;IL.center=IL.By;IL.group=IL.group;IL.data=IL.data;IL.labels=IL.labels;IL.getCenterPoint=IL.yba;IL.getPixelRadius=IL.s8;IL.getPixelInnerRadius=IL.IZ;IL.getPixelExplode=IL.Hba;IL.palette=IL.Yb;IL.tooltip=IL.Ya;IL.hatchFillPalette=IL.be;IL.getType=IL.Qa;IL.getPoint=IL.Ad;IL.toCsv=IL.Xj;IL.hover=IL.xj;IL.unhover=IL.Cd;IL.select=IL.select;IL.unselect=IL.Pd;IL.normal=IL.Ta;IL.hovered=IL.lb;IL.selected=IL.selected;$.Fo.pie=DL;$.Fo["pie-3d"]=EL;$.F("anychart.pie",DL);$.F("anychart.pie3d",EL);}).call(this,$)}
