if(!_.cartesian_3d){_.cartesian_3d=1;(function($){var T9=function(a,b,c){if(a=a.f[b])a.zIndex=c},ila=function(a){return $.oa(a.Lk())+"_"+$.oa(a.bb())},jla=function(a,b){var c=0;(0,$.ue)(a,function(a,e,f){b.call(void 0,a,e,f)&&++c},void 0);return c},U9=function(){$.yx.call(this)},V9=function(){$.yx.call(this)},W9=function(){$.ty.call(this)},X9=function(){$.wy.call(this)},Y9=function(){$.zy.call(this)},Z9=function(a){$.$y.call(this,a)},$9=function(a){$.$y.call(this,a)},kla=function(a,b,c){if(!b.j("skipDrawing")){var d=b.j("x"),e=b.j("zero"),f=b.j("value");
a.sa||(d+=a.f,e-=a.b,f-=a.b);b=c.bottom;var h=c.back,k=c.left,l=c.right,m=c.front,n=c.top,q=c.rightHatch,r=c.frontHatch;c=c.topHatch;var t=a.g,u=a.D,v=m.stroke().thickness%2/2||0;if(a.sa){var w=a.o;var x=Math.min(e,f)+a.f;d=d-w/2-a.b;a=Math.abs(e-f);e=v;f=0}else a=a.o,x=d-a/2,d=Math.min(e,f),w=Math.abs(e-f),f=e=-v;b.moveTo(x+v,d+w).lineTo(x+a,d+w).lineTo(x+a+t-v,d+w-u+v).lineTo(x+t,d+w-u).close();h.moveTo(x+t,d-u).lineTo(x+t+a,d-u).lineTo(x+t+a,d-u+w).lineTo(x+t,d-u+w).close();k.moveTo(x,d).lineTo(x+
t+e,d-u+v).lineTo(x+t,d+w-u).lineTo(x,d+w-v).close();l.moveTo(x+a,d).lineTo(x+a+t+f,d-u+v).lineTo(x+a+t,d+w-u).lineTo(x+a,d+w-v).close();q.moveTo(x+a,d).lineTo(x+a+t+f,d-u+v).lineTo(x+a+t,d+w-u).lineTo(x+a,d+w-v).close();m.moveTo(x,d).lineTo(x+a,d).lineTo(x+a,d+w).lineTo(x,d+w).close();r.moveTo(x,d).lineTo(x+a,d).lineTo(x+a,d+w).lineTo(x,d+w).close();n.moveTo(x+v,d).lineTo(x+a,d).lineTo(x+a+t-v,d-u+v).lineTo(x+t,d-u).close();c.moveTo(x+v,d).lineTo(x+a,d).lineTo(x+a+t-v,d-u+v).lineTo(x+t,d-u).close()}},
a$=function(a){$.$y.call(this,a)},b$=function(){$.cA.call(this);this.Ia("cartesian","cartesian3dBase","cartesian3d");this.Ma=0;this.Zd="cartesian-3d"},c$=function(a){var b=$.hn(a.domTarget);if(b&&b.W&&b.W.check(4)){var c=$.hn(a.relatedDomTarget);c&&c.W&&c.W==b.W&&c.index==b.index||(b=b.W)&&!b.Ed&&b.enabled()&&(c=b.ri(),b.qb(null),b.uh(a.OL),b.qb(c))}},lla=function(a,b,c){var d,e,f;var h=$.Sk("fill",1,!0)(a,c);c=$.D(h)?h.opacity:1;var k=$.D(h)?h.color:h;h=$.tk(k);if(null===h)a=k=d=e=f=h="none";else{k=
h.Mj;var l=$.mk(k);e=$.qk(l,.2);h=$.qk(l,.25);f=$.pk([255,255,255],l,.1);d=$.Rb($.pk(l,e,.7));f=$.Rb($.pk(e,f,.1));l=$.Rb($.pk(l,e,.1));a={angle:a.i("isVertical")?0:90,opacity:c,keys:[$.xk(d,.2),$.xk(k,.3)]};k=$.xk(l,.2);d=$.xk(d,.2);e=$.Rb(e);h=$.Rb(h)}b.bottom.fill({color:e,opacity:c});b.back.fill({color:f,opacity:c});b.left.fill({color:h,opacity:c});b.right.fill({color:k,opacity:c});b.top.fill({color:d,opacity:c});b.front.fill(a)},mla=function(){var a=new b$;a.pa("defaultSeriesType","column");
a.pe();$.Uy(a);a.ug();return a},e$=function(a,b){var c=d$(a),d=a.g,e=a.Rh;!b&&a.i("zDistribution")&&(e=(e-d*(c-1))/c);return e},f$=function(a,b){var c=d$(a),d=a.U,e=a.qh;!b&&a.i("zDistribution")&&(e=(e-d*(c-1))/c);return e},d$=function(a){return jla(a.hb,function(a){return!!(a&&a.enabled()&&a.check($.Dz))})},nla=function(a,b){for(var c=0,d=0,e=Math.min(a.hb.length-1,b);d<=e;d++){var f=a.hb[d];f&&f.enabled()&&f.check($.Dz)&&c++}return c-1},ola=function(a){var b=new b$;b.Ia("area3d");b.Zd="area-3d";
b.pa("defaultSeriesType","area");b.pe();b.ug();$.Uy(b);arguments.length&&b.Ak.apply(b,arguments);return b},pla=function(a){var b=new b$;b.Ia("bar","bar3d");b.Zd="bar-3d";b.pa("defaultSeriesType","bar");b.pe();b.ug();$.Uy(b);arguments.length&&b.Ak.apply(b,arguments);return b},qla=function(a){var b=new b$;b.Ia("column","column3d");b.Zd="column-3d";b.pa("defaultSeriesType","column");b.pe();b.ug();$.Uy(b);arguments.length&&b.Ak.apply(b,arguments);return b},rla=function(a){var b=new b$;b.Ia("line3d");
b.Zd="line-3d";b.pa("defaultSeriesType","line");b.pe();b.ug();$.Uy(b);arguments.length&&b.Ak.apply(b,arguments);return b},sla={KA:"area",ID:"bar",JD:"column",Bs:"line",Oja:"line-2d"},tla={name:"top",Lb:"path",Pb:null,Rb:"stroke",Vb:!0,Ab:!1,zIndex:3E-6},g$={name:"bottom",Lb:"path",Pb:null,Rb:"stroke",Vb:!0,Ab:!1,zIndex:2E-6},h$={name:"left",Lb:"path",Pb:null,Rb:"stroke",Vb:!0,Ab:!1,zIndex:1E-6},i$={name:"right",Lb:"path",Pb:null,Rb:"stroke",Vb:!0,Ab:!1,zIndex:4E-6},j$={name:"back",Lb:"path",Pb:null,
Rb:"stroke",Vb:!0,Ab:!1,zIndex:0},k$={name:"frontHatch",Lb:"path",Pb:"hatchFill",Rb:null,Vb:!0,Ab:!0,zIndex:8E-6},ula={name:"rightHatch",Lb:"path",Pb:"hatchFill",Rb:null,Vb:!0,Ab:!0,zIndex:7E-6},vla={name:"topHatch",Lb:"path",Pb:"hatchFill",Rb:null,Vb:!0,Ab:!0,zIndex:6E-6};$.H(U9,$.yx);$.g=U9.prototype;$.g.Xf=function(a){var b=0;$.W(a,4)&&(b|=4);$.W(a,2)&&(b|=1);this.u(20,b|8)};
$.g.kF=function(a){var b=this.fa()||$.Zl(0,0,0,0);a=Math.round(b.Ra()-a*b.height);var c=this.wh().stroke();c=$.Tn(c);a=$.O(a,c);c=b.tb()+this.Rh;var d=a-this.qh;this.o.moveTo(b.tb(),a).lineTo(c,d).lineTo(b.$a()+this.Rh,d)};$.g.lF=function(a){var b=this.fa()||$.Zl(0,0,0,0);a=Math.round(b.tb()+a*b.width);var c=this.wh().stroke();c=$.Tn(c);a=$.O(a,c);c=a+this.Rh;var d=Math.ceil($.O(b.Ra()-this.qh,1));this.o.moveTo(a,Math.ceil($.O(b.Ra(),1))).lineTo(c,d).lineTo(c,b.$b()-this.qh)};
$.g.hF=function(a,b,c,d){if(!(0,window.isNaN)(b)){var e=this.fa()||$.Zl(0,0,0,0);var f=Math.round(e.Ra()-b*e.height);var h=Math.round(e.Ra()-a*e.height);1==a?h-=d:h+=d;1==b?f-=d:f+=d;c.moveTo(e.tb(),f).lineTo(e.tb()+this.Rh,f-this.qh).lineTo(e.$a()+this.Rh,f-this.qh).lineTo(e.$a()+this.Rh,h-this.qh).lineTo(e.tb()+this.Rh,h-this.qh).lineTo(e.tb(),h).close()}};
$.g.iF=function(a,b,c,d){if(!(0,window.isNaN)(b)){var e=this.fa()||$.Zl(0,0,0,0);var f=Math.round(e.tb()+b*e.width);var h=Math.round(e.tb()+a*e.width);1==a?h+=d:h-=d;1==b?f+=d:f-=d;c.moveTo(f+this.Rh,e.$b()-this.qh).lineTo(h+this.Rh,e.$b()-this.qh).lineTo(h+this.Rh,e.Ra()-this.qh).lineTo(h,e.Ra()).lineTo(f,e.Ra()).lineTo(f+this.Rh,e.Ra()-this.qh).close()}};$.H(V9,U9);$.Vs(V9,U9);var l$=U9.prototype;l$.isHorizontal=l$.Fb;l$.scale=l$.scale;l$.axis=l$.axis;l$=V9.prototype;
$.F("anychart.standalones.grids.linear3d",function(){var a=new V9;a.K($.cl("standalones.linearGrid"));return a});l$.layout=l$.se;l$.draw=l$.X;l$.parentBounds=l$.fa;l$.container=l$.O;$.H(W9,$.ty);
W9.prototype.qr=function(){var a=$.Ya(this.scale().transform(this.value(),.5),0,1);if(!(0,window.isNaN)(a)){var b=0==$.cx(this).vk()%2?0:-.5,c=this.fa(),d=this.cp();$.cx(this).clear();var e=this.sc().Rh,f=this.sc().qh;if("horizontal"==this.se()){var h=Math.round(c.$b()+c.height-a*c.height);1==a?h-=b:h+=b;$.cx(this).moveTo(c.tb(),h).lineTo(c.tb()+e,h-f).lineTo(c.$a()+e,h-f)}else"vertical"==this.se()&&(h=Math.round(c.tb()+a*c.width),1==a?h+=b:h-=b,$.cx(this).moveTo(h+e,c.$b()-f).lineTo(h+e,c.Ra()-f).lineTo(h,
c.Ra()));c.top-=f;c.height+=f;c.width+=e;$.cx(this).clip(d.Wi(c))}};$.H(X9,$.wy);
X9.prototype.qr=function(){var a=this.se(),b=this.i("from"),c=this.i("to");this.i("from")>this.i("to")&&(b=this.i("to"),c=this.i("from"));var d=$.Ya(this.scale().transform(b,0),0,1),e=$.Ya(this.scale().transform(c,1),0,1);if(!(0,window.isNaN)(d)&&!(0,window.isNaN)(e)){c=this.fa();b=this.cp();$.cx(this).clear();var f=this.sc().Rh,h=this.sc().qh;if("horizontal"==a){e=Math.floor(c.Ra()-c.height*e);d=Math.ceil(c.Ra()-c.height*d);a=c.tb();var k=c.$a();$.cx(this).moveTo(a,e).lineTo(a+f,e-h).lineTo(k+f,
e-h).lineTo(k+f,d-h).lineTo(a+f,d-h).lineTo(a,d).close()}else"vertical"==a&&(a=c.Ra(),k=c.$b(),d=Math.floor(c.tb()+c.width*d),e=Math.ceil(c.tb()+c.width*e),$.cx(this).moveTo(d,a).lineTo(d+f,a-h).lineTo(d+f,k-h).lineTo(e+f,k-h).lineTo(e+f,a-h).lineTo(e,a).close());c.top-=h;c.height+=h;c.width+=f;$.cx(this).clip(b.Wi(c))}};$.H(Y9,$.zy);Y9.prototype.fa=function(a,b,c,d){b=Y9.B.fa.call(this,a,b,c,d);$.p(a)||(a=this.sc().Rh,c=this.sc().qh,b.top-=c,b.height+=c,b.width+=a);return b};$.H(Z9,$.$y);$.mE[2]=Z9;$.g=Z9.prototype;$.g.type=2;$.g.flags=$.Dz|49;$.g.lh={top:"path",bottom:"path",left:"path",right:"path",back:"path",front:"path",cap:"path",frontHatch:"path"};$.g.qI=function(){for(var a=this.W.If();a.advance();){var b=a.j("shapes");if(b){var c=a.j("zIndex");this.Pc.Hs(c+1E-8*a.ka(),b)}}};
$.g.od=function(a){Z9.B.od.call(this,a);this.U=!0;a=this.W.za;var b=this.W.ka(),c=this.W.Fg(),d=ila(this.W);this.Ma=!c||b==a.J_[d];this.Ja=a.zK(b,c);this.P=a.AK(b,c);this.b=e$(a,c);this.g=f$(a,c);a.Wa().Kf()?(T9(this.Pc,"left",4E-6),T9(this.Pc,"right",1E-6)):(T9(this.Pc,"left",1E-6),T9(this.Pc,"right",4E-6));a.bb().Kf()?(T9(this.Pc,"top",2E-6),T9(this.Pc,"bottom",3E-6)):(T9(this.Pc,"top",3E-6),T9(this.Pc,"bottom",2E-6))};
$.g.ko=function(a){var b=this.Pc.Sc(this.vc,null,this.W.zIndex()),c=a.j("x")+this.Ja,d=a.j("zero")-this.P,e=a.j("zeroMissing");a=a.j("value")-this.P;b.front.moveTo(c,d).lineTo(c,a);b.frontHatch.moveTo(c,d).lineTo(c,a);this.W.Fg()?this.f=[c,d,e]:(b.back.moveTo(c+this.b,d-this.g).lineTo(c+this.b,a-this.g),b.bottom.moveTo(c,d).lineTo(c+this.b,d-this.g),"none"==this.W.bb().Dm()&&a>=d&&b.cap.moveTo(c,d).lineTo(c+this.b,d-this.g),b.left.moveTo(c,d).lineTo(c,a).lineTo(c+this.b,a-this.g).lineTo(c+this.b,
d-this.g).close());this.D=c;this.G=a;this.gi=this.la=d};
$.g.Pf=function(a){var b=this.Pc.Sc(this.vc),c=a.j("x")+this.Ja,d=a.j("zero")-this.P,e=a.j("zeroMissing");a=a.j("value")-this.P;this.W.Fg()?this.f.push(c,d,e):(b.bottom.lineTo(c+this.b,d-this.g),b.back.lineTo(c+this.b,a-this.g));e=b.front.sW();this.Ma&&(this.U?b.top.moveTo(e.x,e.y).lineTo(e.x+this.b,e.y-this.g).lineTo(c+this.b,a-this.g).lineTo(c,a).close():b.top.moveTo(e.x,e.y).lineTo(c,a).lineTo(c+this.b,a-this.g).lineTo(e.x+this.b,e.y-this.g).close(),this.U=!this.U);if("none"==this.W.bb().Dm()){var f=
(d-e.y)*(c-e.x)/(a-e.y)+e.x;0<a-e.y&&e.y<=d&&a>d?b.cap.moveTo(f,d).lineTo(f+this.b,d-this.g):0>a-e.y&&e.y>d&&a<=d&&b.cap.lineTo(f+this.b,d-this.g).lineTo(f,d).close()}b.front.lineTo(c,a);b.frontHatch.lineTo(c,a);this.D=c;this.G=a;this.la=d};
$.g.hm=function(){if(this.N){var a=this.Pc.Sc(this.vc),b=a.front,c=a.frontHatch;if(this.f){for(var d=window.NaN,e=window.NaN,f=!1,h=this.f.length-1;0<=h;h-=3){var k=this.f[h-2],l=this.f[h-1],m=this.f[h];m&&!(0,window.isNaN)(d)?(b.lineTo(d,l),c.lineTo(d,l)):f&&!(0,window.isNaN)(e)&&(b.lineTo(k,e),c.lineTo(k,e));b.lineTo(k,l);c.lineTo(k,l);d=k;e=l;f=m}b.close();c.close();this.f=null}else(0,window.isNaN)(this.D)||(b.lineTo(this.D,this.gi).close(),c.lineTo(this.D,this.gi).close(),a.back.lineTo(this.D+
this.b,this.gi-this.g).close(),a.bottom.lineTo(this.D,this.gi).close(),"none"==this.W.bb().Dm()&&this.G>=this.W.gi&&a.cap.lineTo(this.D+this.b,this.gi-this.g).lineTo(this.D,this.gi).close());(0,window.isNaN)(this.D)||a.right.moveTo(this.D,this.la).lineTo(this.D,this.G).lineTo(this.D+this.b,this.G-this.g).lineTo(this.D+this.b,this.la-this.g).close()}};$.H($9,$.$y);$.mE[7]=$9;$.g=$9.prototype;$.g.type=7;$.g.flags=$.Dz|263717;$.g.lh={top:"path",bottom:"path",left:"path",right:"path",back:"path",front:"path",frontHatch:"path",rightHatch:"path",topHatch:"path"};$.g.od=function(a){$9.B.od.call(this,a);a=this.W.za;var b=this.W.ka(),c=this.W.Fg();this.f=a.zK(b,c);this.b=a.AK(b,c);this.g=e$(a,c);this.D=f$(a,c)};$.g.qI=function(a){for(var b=this.W.If();b.advance();){var c=b.j("shapes");c&&(a=b.j("zIndex"),this.Pc.Hs(a+1E-8*b.ka(),c))}};
$.g.Pf=function(a,b){var c=a.j("zIndex")+1E-8*(a.j("directIndex")+a.ka());c=this.Pc.Sc(b,null,c);kla(this,a,c)};$.g.Gs=function(a){var b=a.j("shapes"),c;for(c in b)b[c].clear();kla(this,a,b)};$.H(a$,$.$y);$.mE[33]=a$;$.g=a$.prototype;$.g.type=33;$.g.flags=$.Dz|32848;$.g.lh={path:"path"};$.g.qI=function(){for(var a=this.W.If();a.advance();){var b=a.j("shapes");if(b){var c=a.j("zIndex");this.Pc.Hs(c+1E-8*a.ka(),b)}}};$.g.od=function(a){a$.B.od.call(this,a);this.G=!0;a=this.W.za;var b=this.W.ka();this.P=a.zK(b,!1);this.U=a.AK(b,!1);this.g=e$(a,!1);this.D=f$(a,!1)};$.g.ko=function(a){this.b=a.j("x")+this.P;this.f=a.j("value")-this.U};
$.g.Pf=function(a){var b=this.Pc.Sc(this.vc),c=a.j("x")+this.P;a=a.j("value")-this.U;this.G?b.path.moveTo(this.b,this.f).lineTo(this.b+this.g,this.f-this.D).lineTo(c+this.g,a-this.D).lineTo(c,a).close():b.path.moveTo(this.b,this.f).lineTo(c,a).lineTo(c+this.g,a-this.D).lineTo(this.b+this.g,this.f-this.D).close();this.G=!this.G;this.b=c;this.f=a};$.H(b$,$.cA);b$.prototype.cg=function(a){c$(a);b$.B.cg.call(this,a)};b$.prototype.rg=function(a){c$(a);b$.B.rg.call(this,a)};b$.prototype.dj=function(a){c$(a);b$.B.dj.call(this,a)};b$.prototype.ih=function(a){c$(a);b$.B.ih.call(this,a)};var m$={},n$=$.nE|5767168;
m$.area={zb:2,Db:1,Ib:[{name:"top",Lb:"path",Pb:null,Rb:null,Vb:!1,Ab:!1,zIndex:3E-6},g$,h$,i$,j$,$.oF,{name:"cap",Lb:"path",Pb:null,Rb:null,Vb:!1,Ab:!1,zIndex:3.5E-6},k$],Hb:null,Bb:function(a,b,c){var d,e,f,h;c=$.Sk("fill",1,!0)(a,c);a=$.D(c)?c.opacity:1;var k=$.D(c)?c.color:c;c=$.tk(k);if(null===c)k=d=e=f=h=c="none";else{k=c.Mj;f=$.mk(k);var l=$.qk(f,.2);e=$.qk(f,.3);c=$.qk(f,.25);h=$.pk([255,255,255],f,.1);d=$.Rb($.pk(f,l,.7));e=$.Rb($.pk(f,e,.7));h=$.Rb($.pk(l,h,.1));f=$.Rb($.pk(f,l,.1));k={angle:90,
opacity:a,keys:[$.xk(d,.2),$.xk(k,.3)]};d=$.xk(e,.2);e=f=$.xk(f,.2);c=$.Rb(c)}b.bottom.fill({color:f,opacity:a});b.back.fill({color:h,opacity:a});b.left.fill({color:c,opacity:a});b.right.fill({color:e,opacity:a});b.top.fill({color:d,opacity:a});b.cap.fill({color:f,opacity:a});b.front.fill(k);b.top.stroke({color:d,thickness:.8})},vb:n$,Cb:"value",wb:"zero"};m$.bar={zb:7,Db:2,Ib:[tla,g$,h$,i$,j$,$.oF,k$,ula,vla],Hb:null,Bb:lla,vb:n$,Cb:"value",wb:"zero"};
m$.column={zb:7,Db:2,Ib:[tla,g$,h$,i$,j$,$.oF,k$,ula,vla],Hb:null,Bb:lla,vb:n$,Cb:"value",wb:"zero"};m$.line={zb:33,Db:1,Ib:[{name:"path",Lb:"path",Pb:null,Rb:null,Vb:!1,Ab:!1,zIndex:0}],Hb:null,Bb:function(a,b,c){c=$.Sk("fill",1,!0)(a,c);a=$.D(c)?c.opacity:1;c=$.D(c)?c.color:c;c=$.tk(c);null===c?c="none":(c=c.Mj,c=$.mk(c),c=$.Rb($.pk(c,$.qk(c,.3),.7)),c=$.xk(c,.2));b.path.fill({color:c,opacity:a}).stroke({color:c,thickness:.8})},vb:n$,Cb:"value",wb:"value"};
m$["line-2d"]={zb:8,Db:1,Ib:[{name:"stroke",Lb:"path",Pb:null,Rb:"stroke",Vb:!0,Ab:!1,zIndex:9E-6}],Hb:null,Bb:null,vb:n$|2097152,Cb:"value",wb:"value"};b$.prototype.Bi=m$;$.ay(b$,b$.prototype.Bi);$.Fo["cartesian-3d"]=mla;$.g=b$.prototype;$.g.ds=function(a){return $.ij(sla,a,"column")};$.g.cL=function(){return!0};$.g.zK=function(a,b){if(b||!this.i("zDistribution"))var c=0;else c=d$(this),a=nla(this,a),c=c-a-1,c*=e$(this,b)+this.g;return c};
$.g.AK=function(a,b){if(b||!this.i("zDistribution"))var c=0;else c=d$(this),a=nla(this,a),c=c-a-1,c*=f$(this,b)+this.U;return c};$.g.cE=function(){return new U9};$.g.NW=function(){var a=new W9;a.Ba=this;return a};$.g.OW=function(){var a=new X9;a.Ba=this;return a};$.g.PW=function(){var a=new Y9;a.Ba=this;return a};
$.g.UT=function(){this.J_={};for(var a=this.Ne(),b,c="none"!=this.bb().Dm(),d="direct"==this.bb().hw(),e=[30],f=!0,h=1;h<a.length;h++)a[h].Qa()==a[h-1].Qa()?e.push(e[h-1]):(e.push(30+(1-1/(h+1))),f=!1);for(h=0;h<a.length;h++){var k=30+(1-1/(h+1));b=a.length-h-1;var l=c&&d?b:h;if((b=a[l])&&b.enabled())if(b.check($.Dz)){if(b.Cg())for(l=b.wc();l.advance();){var m=b,n=h;var q=a.length;var r=e[h],t=f,u=m.aa(),v=$.N(u.get("value")),w=u.ka();n+=1;var x=.01,y="none"!=this.bb().Dm(),A=this.Wa().Kf();w=A?u.Eb()-
w:w+1;r=this.i("zDistribution")?30+(1-1/n):t?30:r;this.bb().Kf()^0>v&&(n=-n);m.i("isVertical")?y||this.i("zDistribution")?(m=w,w=n,n=m,m=1-1/Math.abs(w),r=0<w?r+x*(n+m):r-x*(q-n+m)):(A&&(n=q-Math.abs(n)+1),w=w*q-q+Math.abs(n),x*=w,r+=x,this.bb().Kf()&&(v=-v),0>v&&(x=-x),r+=x):(y||this.i("zDistribution")||(A&&(n=q-Math.abs(n)+1),w=w*q-q+Math.abs(n)),x*=w,r+=x);u.j("zIndex",r);u.j("directIndex",w*n);q=r;k<q&&(k=q)}else b.zIndex()!=b.Ch&&b.zIndex()!=k&&(k=b.zIndex()),b.check(32)&&(this.J_[ila(b)]=l);
b.zIndex(k)}else k=1E-5*b.bh()+32,b.Ch=k}};
$.g.mZ=function(a){a=a.clone().round();var b=this.UB(a),c=d$(this),d=this.i("zAngle"),e=this.i("zAspect"),f=this.i("zPadding"),h=this.i("zDistribution"),k=$.ab(d);d=$.ab(90-d);if($.kn(e)){var l=(0,window.parseFloat)(e)/100;e=l*Math.sin(d);for(var m=l*Math.sin(k),n=l=0,q=this.Ne(),r,t=0;t<q.length;t++)if((r=q[t])&&r.enabled()&&r.check($.Dz)){var u=r.Wa();u=1/("ordinal"==u.Qa()?u.values().length:r.aa().Eb());var v=this.i("barsPadding");var w=this.i("barGroupsPadding");v=r.Fg()||h?1/(1+w):1/(c+(c-1)*
v+w);u*=v;!r.Fg()&&h?(l+=u*e,n+=u*m):l||(l=u*e,n=u*m)}this.g=Math.round(f*Math.sin(d));this.U=Math.round(f*Math.sin(k));f=this.Tr?b.height/(1+l):b.width/(1+l);this.Rh=f*l;this.qh=f*n;!this.kC&&h&&(this.Rh+=this.g*(c-1),this.qh+=this.U*(c-1));this.Rh=Math.round(this.Rh);this.qh=Math.round(this.qh)}else this.Ma=!this.kC&&h?e*c+f*(c-1):$.N(e),this.Rh=Math.round(this.Ma*Math.sin(d)),this.qh=Math.round(this.Ma*Math.sin(k)),h=c-1,f*h>=this.Ma&&(f=(this.Ma-c)/h),this.g=Math.round(f*Math.sin(d)),this.U=Math.round(f*
Math.sin(k));this.Rh=Math.max(this.Rh,0)||0;this.qh=Math.max(this.qh,0)||0;this.g=Math.max(this.g,0)||0;this.U=Math.max(this.U,0)||0;a.top+=this.qh;a.height-=this.qh;a.width-=this.Rh;return a};$.g.FJ=function(a,b,c){if(!this.kC&&this.i("zDistribution")){if(0<a){a=1+this.i("barGroupsPadding");for(var d=1/a,e=0;e<b.length;e++)a=b[e].W,a.check(262144)&&c^a.i("isVertical")&&($.vz(a,.5),$.uz(a,d))}}else b$.B.FJ.call(this,a,b,c)};
$.g.Tf=function(a){var b=$.hn(a.target);return(b=b&&b.W)&&!b.Ed&&b.enabled()?b.Tf(a):b$.B.Tf.call(this,a)};$.g.Y=function(a,b){b$.B.Y.call(this,a,b)};var o$=b$.prototype;$.F("anychart.cartesian3d",mla);o$.xScale=o$.Wa;o$.yScale=o$.bb;o$.crosshair=o$.Mg;o$.xGrid=o$.Im;o$.yGrid=o$.Jm;o$.xMinorGrid=o$.dr;o$.yMinorGrid=o$.gr;o$.xAxis=o$.ah;o$.getXAxesCount=o$.dC;o$.yAxis=o$.fi;o$.getYAxesCount=o$.fC;o$.getSeries=o$.Oe;o$.zIndex=o$.zIndex;o$.lineMarker=o$.um;o$.rangeMarker=o$.Cm;o$.textMarker=o$.Gm;
o$.palette=o$.Yb;o$.markerPalette=o$.lf;o$.hatchFillPalette=o$.be;o$.getType=o$.Qa;o$.addSeries=o$.Ak;o$.getSeriesAt=o$.Zh;o$.getSeriesCount=o$.jk;o$.removeSeries=o$.Vn;o$.removeSeriesAt=o$.nn;o$.removeAllSeries=o$.Ro;o$.getPlotBounds=o$.ag;o$.xZoom=o$.fq;o$.yZoom=o$.gq;o$.xScroller=o$.Zo;o$.yScroller=o$.ir;o$.getStat=o$.pg;o$.getXScales=o$.lx;o$.getYScales=o$.nx;$.Fo["area-3d"]=ola;$.Fo["bar-3d"]=pla;$.Fo["column-3d"]=qla;$.Fo["line-3d"]=rla;$.F("anychart.area3d",ola);$.F("anychart.bar3d",pla);$.F("anychart.column3d",qla);$.F("anychart.line3d",rla);}).call(this,$)}
