v&&(k=z)),z++;r<=O&&e=v||1<=v?(l=f,d.push(!0)):0v?(l=f,d.push(!0)):d.push(!1))):d.push(!1),f++)}P||(d=!1)}}E||(c=!1);a.J={labels:c,kb:d};
W(a,512)}return a.J}
function rO(a,b,c){var d=c?a.Xy:a.FE;if(m(d[b]))return d[b];var e=a.Jf.stroke().thickness?a.Jf.stroke().thickness:1,f=c?a.Ka():a.ob(),h=c?a.labels():a.kb(),k=a.scale();c=(c?k.Ka():k.ob()).get()[b];var k=k.transform(c),k=Tk(a.Qb()-90+360*k),l=k*Math.PI/180,f=f.enabled()?isNaN(a.Wn)?f.length():a.Wn:0,f=a.hb+f+e/2,e=Math.round(a.zb+f*Math.cos(l)),f=Math.round(a.wb+f*Math.sin(l));a=new se(a,b,c);h=h.measure(a,{value:{x:e,y:f}},void 0,b);a=sO(k,h);h.left+=a.x;h.top+=a.y;return d[b]=h}
g.sM=function(a,b,c,d){var e=this.scale(),e=d?e.Ka().get():e.ob().get();d=d?this.labels():this.kb();e=new se(this,a,e[a]);d.add(e,{value:{x:b,y:c}},a)};g.Wb=function(){if(!this.ad)return!1;if(!this.enabled())return Y(this,1)&&(this.remove(),W(this,1),I(this.Ka(),2),I(this.labels(),2),I(this,386)),!1;W(this,1);return!0};
g.Y=function(){var a=this.scale();if(!a)return ne(2),this;if(!this.Wb())return this;var b,c,d,e;M(this.labels());M(this.kb());M(this.Ka());M(this.ob());Y(this,J)&&(this.Jf.stroke(this.b),W(this,J));if(Y(this,8)){var f=this.zIndex();this.Jf.zIndex(f);this.Ka().zIndex(f);this.ob().zIndex(f);this.labels().zIndex(f);this.kb().zIndex(f);W(this,8)}Y(this,2)&&(f=this.N(),this.Jf.parent(f),this.Ka().N(f),this.labels().N(f),this.ob().N(f),this.kb().N(f),W(this,2));if(Y(this,256)){var h=this.Ka();h.Y();b=h.Rr;
var k=this.ob();k.Y();d=k.Rr;W(this,256)}Y(this,128)&&(c=this.labels(),c.N()||c.N(this.N()),c.ja(this.ja()),c.clear(),c=this.sM,e=this.kb(),e.N()||e.N(this.N()),e.ja(this.ja()),e.clear(),e=this.sM,W(this,128));if(m(b)||m(c)||m(e)||m(d)){pO(this);var l,n,f=Tk(this.Qb()-90),p,q;this.Jf.Sc(this.hb);this.Jf.Ck(this.zb);this.Jf.Dk(this.wb);var r,v,x,y,z,E,F,K,O,P,aa=a.Ka().get(),X=aa.length,na=this.Ka().stroke().thickness?parseFloat(this.jb.stroke().thickness):1,Ga=this.Ka().enabled()?isNaN(this.Wn)?this.Ka().length():
this.Wn:0,xa=this.Jf.stroke().thickness?this.Jf.stroke().thickness:1;if(a instanceof uG){F=qO(this);A(F)?(O=F.labels,P=F.kb):(O=!F,P=!F);var Ua=a.ob().get(),tc=this.Jc.stroke().thickness?parseFloat(this.Jc.stroke().thickness):1,Cb=this.ob().enabled()?isNaN(this.Wn)?this.ob().length():this.Wn:0;K=F=0;for(var hb=Ua.length;Ff?"0"+f:""+f)+"-"+(10>k?"0"+k:""+k)+"-"+h;k=a.B.up();return{dataIntervalUnit:k.fn().unit,dataIntervalUnitCount:k.fn().count,dataIsGrouped:k.zB(),majorIntervalUnit:c,majorIntervalUnitCount:e,minorIntervalUnit:d,minorIntervalUnitCount:e,value:f,tickValue:b,max:a.xa.KH(),min:a.xa.LH(),scale:a.xa}}
g.ba=function(){Lf(this.va);this.va=null;Lf(this.b);this.b=null;Lf(this.Wa);this.Wa=null;Lf(this.j);this.xa=this.j=null;mJ.F.ba.call(this)};g.I=function(){var a=mJ.F.I.call(this);a.height=this.height();a.labels=this.labels().I();a.minorLabels=this.kb().I();a.ticks=this.Ka().I();a.minorTicks=this.ob().I();a.background=this.IE().I();a.showHelperLabel=this.JJ();a.overlapMode=this.JE();return a};
g.aa=function(a){mJ.F.aa.call(this,a);this.height(a.height);this.labels().P(a.labels);this.kb().P(a.minorLabels);this.Ka(a.ticks);this.ob(a.minorTicks);this.IE(a.background);this.JJ(a.showHelperLabel);this.JE(a.overlapMode)};mJ.prototype.height=mJ.prototype.height;mJ.prototype.labels=mJ.prototype.labels;mJ.prototype.minorLabels=mJ.prototype.kb;mJ.prototype.ticks=mJ.prototype.Ka;mJ.prototype.minorTicks=mJ.prototype.ob;mJ.prototype.background=mJ.prototype.IE;mJ.prototype.showHelperLabel=mJ.prototype.JJ;
mJ.prototype.overlapMode=mJ.prototype.JE;function xO(a,b){VH.call(this);this.Ie=a;this.Za=b;this.uc=["value"];this.state=new pc(this);this.j=Nl(0,0,0,0);this.g=this.path=null;this.eb=J|8192}D(xO,VH);g=xO.prototype;g.ya=VH.prototype.ya|64;g.ra=VH.prototype.ra|J|8192;g.nw=function(){var a=this.X(),b=[];if(a.select(this.Mf()))for(var c=0;c=p)&&w(this.O)&&(a=this.O.call({color:a},a)),null===a&&(a="none"),null===r?(r=a,a in this.J?this.J[a].clear():this.J[a]=this.ma.path().clear(),a=this.J[a]):(a!=r&&(r=a,a in this.J?this.J[a].clear():this.J[a]=this.ma.path().clear()),
a=this.J[a]),a.moveTo(e,n).lineTo(l,n).lineTo(l,c).lineTo(e,c).lineTo(e,n),b||this.g.moveTo(e,n).lineTo(l,n).lineTo(l,c).lineTo(e,c).lineTo(e,n),d?(c=n-f,n=c-h):(e=l+f,l=e+h)};g.Rs=DO.prototype.km;g.Lv=function(a){for(var b in this.J)this.J[b].stroke("none").fill(b);a=this.Lc(!0,a);this.g.stroke("none").fill(a)};g.Ma=function(){return"led"};function FO(a,b){var c=a.ja(),d;yO(a)?(d=c.Qa(),c=-c.height):(d=c.left,c=c.width);return(b-d)/c}
g.FA=function(a){return m(a)?(this.O!=a&&(this.O=a,I(this,J,L)),this):this.O};g.ii=function(a){return m(a)?(a=null===a?a:xD(a),this.W!=a&&(this.W=a,I(this,J,L)),this):this.W};g.size=function(a){return m(a)?(a=null===a?a:xD(a),this.qa!=a&&(this.qa=a,I(this,J,L)),this):this.qa};g.count=function(a){return m(a)?(this.ea!=a&&(this.ea=a,I(this,J,L)),this):this.ea};g.Ld=function(a){return m(a)?(this.B!=a&&(this.B&&gF(this.B,this.SM,this),(this.B=a)&&V(this.B,this.SM,this),I(this,J|1048576,L)),this):this.B};
g.SM=function(a){Z(a,6)&&I(this,J|1048576,L)};g.I=function(){var a=DO.F.I.call(this);a.gap=this.ii();a.size=this.size();a.count=this.count();a.colorScale=this.Ld().I();w(this.FA())?N(8,null,["Pointer dimmer"]):a.dimmer=this.FA();return a};g.aa=function(a){DO.F.aa.call(this,a);this.ii(a.gap);this.size(a.size);this.count(a.count);this.FA(a.dimmer);if("colorScale"in a){a=a.colorScale;var b=null;u(a)?b=uJ(a,null):A(a)&&(b=uJ(a.type,null))&&b.P(a);b&&this.Ld(b)}};
g.ba=function(){Lf(this.K);this.K=null;EO(this);Lf(this.B);this.B=null;DO.F.ba.call(this)};DO.prototype.dimmer=DO.prototype.FA;DO.prototype.gap=DO.prototype.ii;DO.prototype.size=DO.prototype.size;DO.prototype.count=DO.prototype.count;DO.prototype.colorScale=DO.prototype.Ld;function GO(a,b){xO.call(this,a,b)}D(GO,xO);g=GO.prototype;g.km=function(){var a=this.ja(),b=ug(this.type()),c=yO(this),d,e;c?(d=a.left+a.width/2,e=zO(this,this.Hm())):(d=zO(this,this.Hm()),e=a.top+a.height/2);a=c?a.width:a.height;this.j.left=d-a/2;this.j.top=e-a/2;this.j.width=a;this.j.height=a;this.path.clear();b.call(null,this.path,d,e,a/2);this.g.gd(this.path.I())};g.Rs=GO.prototype.km;g.Ma=function(){return"marker"};
g.type=function(a){return m(a)?(this.K!=a&&(null===a||(a=xd(a,"star5")),this.K=a,I(this,J,L)),this):this.K||this.Ak};function HO(a,b){return m(b)?(a.Ak=b,a):a.Ak}g.aa=function(a){GO.F.aa.call(this,a);this.type(a.type)};g.I=function(){var a=GO.F.I.call(this);this.K&&(a.type=this.type());return a};GO.prototype.type=GO.prototype.type;function IO(a,b){xO.call(this,a,b);this.uc=["high","low"]}D(IO,CO);IO.prototype.Ma=function(){return"rangeBar"};IO.prototype.SE=function(){var a=this.Ie.X();a.select(this.Mf());a=a.get("low");return wc(this.scale().transform(a),0,1)};IO.prototype.Hm=function(){var a=this.Ie.X();a.select(this.Mf());a=a.get("high");return wc(this.scale().transform(a),0,1)};IO.prototype.nw=function(){var a=IO.F.nw.call(this);a.pop();return a};function JO(a,b){xO.call(this,a,b);this.Pa=this.za=this.$a=this.Ba=this.qa=this.W=this.ea=this.Fa=this.O=this.J=this.B=null}D(JO,xO);g=JO.prototype;g.Ma=function(){return"tank"};g.RH=function(a){a=.1488095238*U(this.width(),a);var b,c,d,e;b=c=d=e=0;yO(this)?c=e=a:b=d=a;return[b,c,d,e]};function KO(a){return 0>=a?0:a*Math.round(1E15*Math.sin(90*Math.PI/180))/1E15}
function LO(a,b,c){if(yO(a)){a=c.width/2;var d=.1488095238*c.width,e=c.left+c.width,f=c.top+c.height;b.moveTo(c.left,c.top).ie(e,c.top,a,d,!1,!0).lineTo(e,f).ie(c.left,f,a,d,!1,!0)}else a=.1488095238*c.height,d=c.height/2,e=c.top+c.height/2+KO(d),b.moveTo(c.left+(0>=a?0:a*Math.round(1E15*Math.cos(90*Math.PI/180))/1E15),e).ie(c.left,c.top,a,d,!0,!0).lineTo(c.left+c.width,c.top).ie(c.left+c.width,e,a,d,!1,!0)}
function MO(a,b,c){if(yO(a)){a=c.width/2;var d=.1488095238*c.width;b.moveTo(c.left,c.top);b.ie(c.left,c.top-.1,a,d,!0,!1)}else{a=.1488095238*c.height;var d=c.height/2,e=c.top+c.height/2+KO(d);b.moveTo(c.left+c.width+1.5,c.top+1);b.ie(c.left+c.width+1.5,e,a,d,!0,!1)}}function NO(a,b,c){if(yO(a))b.moveTo(c.left,c.top),b.ie(c.left,c.top-.1,c.width/2,.1488095238*c.width,!0,!1);else{a=.1488095238*c.height;var d=c.height/2;b.moveTo(c.left+c.width-1,c.top);b.ie(c.left+c.width-1+.1,c.top,a,d,!0,!1)}}
g.PG=function(){this.B||(this.B=this.ma.Xe());this.J||(this.J=this.ma.Xe());this.scale().yd()?(this.J.zIndex(0),this.B.zIndex(1)):(this.B.zIndex(0),this.J.zIndex(1));this.O?this.O.clear():this.O=this.B.path().zIndex(0);this.Fa?this.Fa.clear():this.Fa=this.B.path().zIndex(1);this.ea?this.ea.clear():this.ea=this.B.path().zIndex(2);this.W?this.W.clear():this.W=this.B.path().zIndex(3);this.qa?this.qa.clear():this.qa=this.B.path().zIndex(4);this.Ba?this.Ba.clear():this.Ba=this.J.path().zIndex(0);this.$a?
this.$a.clear():this.$a=this.J.path().zIndex(1);this.za?this.za.clear():this.za=this.J.path().zIndex(2);this.Pa?this.Pa.clear():this.Pa=this.J.path().zIndex(3);this.g?this.g.clear():this.g=this.ma.path();this.xg(this.ma)};
g.km=function(){var a=yO(this),b=this.ja(),c=this.scale(),d=c.yd(),e=zO(this,this.Hm()),f=zO(this,c.transform(c.yn())),c=zO(this,c.transform(c.Io()));a?d?(this.K=Nl(b.left,f,b.width,e-f),this.Ea=Nl(b.left,e,b.width,c-e)):(this.K=Nl(b.left,e,b.width,f-e),this.Ea=Nl(b.left,c,b.width,e-c)):d?(this.K=Nl(e,b.top,f-e,b.height),this.Ea=Nl(c,b.top,e-c,b.height)):(this.K=Nl(f,b.top,e-f,b.height),this.Ea=Nl(e,b.top,c-e,b.height));this.j=this.K;LO(this,this.O,this.K);MO(this,this.Fa,this.K);a=this.ea;b=this.K;
yO(this)?(d=b.width/2,e=.1488095238*b.width,f=b.left+b.width,c=b.top+b.height,a.moveTo(b.left,c-1),a.ie(f,c,d,e,!1,!1)):(d=.1488095238*b.height,e=b.height/2,f=b.top+b.height/2+KO(e),a.moveTo(b.left+1,b.top),a.ie(b.left,f,d,e,!1,!1));LO(this,this.W,this.K);NO(this,this.qa,this.K);LO(this,this.Ba,this.Ea);MO(this,this.$a,this.Ea);LO(this,this.za,this.Ea);NO(this,this.Pa,this.Ea);this.g.gd(this.O.I())};g.Rs=JO.prototype.km;
var OO={thickness:1,opacity:.3,color:"#FFFFFF"},PO={angle:0,keys:[{color:"#FFFFFF",offset:"0",opacity:0},{color:"#FFFFFF",offset:"0.2",opacity:Number(160/255)},{color:"#FFFFFF",offset:"0.25",opacity:Number(140/255)},{color:"#FFFFFF",offset:"0.3",opacity:Number(30/255)},{color:"#FFFFFF",offset:"0.35",opacity:0},{color:"#FFFFFF",offset:"1",opacity:0}]},QO={angle:0,keys:[{color:"#FFFFFF",offset:"0",opacity:0},{color:"#FFFFFF",offset:"0.2",opacity:.3*Number(160/255)},{color:"#FFFFFF",offset:"0.25",opacity:.3*
Number(140/255)},{color:"#FFFFFF",offset:"0.3",opacity:.3*Number(30/255)},{color:"#FFFFFF",offset:"0.35",opacity:0},{color:"#FFFFFF",offset:"1",opacity:0}]};
JO.prototype.Lv=function(a){var b=yO(this),c=b?0:90,d=this.nc(!0,a),e=DC(d),d=CC(d),d={angle:c,keys:[{color:e,offset:"0",opacity:1},{color:e,offset:"0.05",opacity:1},{color:d,offset:"0.85",opacity:1},{color:d,offset:"0.85",opacity:1},{color:e,offset:"1",opacity:1}]};this.O.fill(d);this.O.stroke("none");this.Fa.fill("none");this.Fa.stroke(OO);PO.angle=c;this.W.fill(PO);this.W.stroke("none");d={angle:b?50:140,keys:[{color:"#FFFFFF",offset:"0",opacity:.1},{color:e,offset:"1",opacity:1}]};this.qa.fill(d);
this.qa.stroke("none");this.ea.fill("none");this.ea.stroke(OO);e=DC("#FFFFFF");d=CC("#FFFFFF");d={angle:-c,keys:[{color:e,offset:"0",opacity:.3},{color:e,offset:"0.05",opacity:.3},{color:d,offset:"0.85",opacity:.3},{color:d,offset:"0.85",opacity:.3},{color:e,offset:"1",opacity:.3}]};this.Ba.fill(d);this.Ba.stroke("none");this.$a.fill("none");this.$a.stroke(OO);QO.angle=c;this.za.fill(QO);this.za.stroke("none");d={angle:b?50:140,keys:[{color:"#FFFFFF",offset:"0",opacity:.03},{color:e,offset:"1",opacity:.3}]};
this.Pa.fill(d);this.Pa.stroke("none");a=this.Lc(!0,a);this.g.fill(a);this.g.stroke("none")};JO.prototype.ba=function(){this.Pa=this.za=this.$a=this.Ba=this.qa=this.W=this.ea=this.Fa=this.O=null;Mf(this.B,this.J);this.J=this.B=null;JO.F.ba.call(this)};function RO(a,b){xO.call(this,a,b)}D(RO,xO);g=RO.prototype;g.km=function(){var a=this.ja(),b=this.scale().yd(),c=a.left,d=a.left+a.width,e=zO(this,this.Hm()),a=b?a.top-this.B:a.top+a.height+this.B;this.j.left=c;this.j.top=b?a:e;this.j.width=Math.abs(d-c);this.j.height=Math.abs(a-e);this.path.clear().moveTo(c,e).lineTo(d,e).lineTo(d,a).ie(c,a,this.K,this.K,!0,!b).lineTo(c,e).close();this.g.gd(this.path.I())};
g.Rs=function(){var a=this.ja(),b=this.scale().yd(),c=a.top,d=a.top+a.height,e=zO(this,this.Hm()),a=b?a.left+a.width+this.B:a.left-this.B;this.j.left=b?e:a;this.j.top=c;this.j.width=Math.abs(a-e);this.j.height=Math.abs(d-c);this.path.clear().moveTo(e,c).lineTo(e,d).lineTo(a,d).ie(a,c,this.K,this.K,!0,!b).lineTo(e,c).close();this.g.gd(this.path.I())};g.Ma=function(){return"thermometer"};
g.RH=function(a,b){var c=U(this.width(),a),d=U(this.fA(),c),e=U(this.eA(),b);dO.Mk.length&&!O.Qg.length){X=String(O.Yf[0].get("id"));na=this.g[X];var Zb=na.Ci;for(K=0;KP.ki.length&&!P.Yf.length){Ga=String(P.Qg[0].get("id"));xa=this.g[Ga];var bd=xa.Nj;for(K=0;Kym&&(yj.length=ym);yj.push(Gh);Gh==this.W&&this.b.push(yj.slice(0));var ll,zj;for(ll=Gh.Yf.length;ll--;){var zm=String(Gh.Yf[ll].get("id")),ml=this.g[zm].Ci;zj=ym+1;ml.level=Math.max(zj,ml.level);this.za=Math.max(ml.level,this.za);ng.push(ml)}for(ll=Gh.ki.length;ll--;){var nl=Gh.ki[ll];zj=ym+1;nl.level=Math.max(zj,nl.level);this.za=Math.max(nl.level,this.za);ng.push(nl)}}for(var Am in this.K){var pf=this.K[Am];if(!pf.rn){var Li=pf.Ed,ze=pf.td,
Kr=ze.level-Li.level;if(1Bm&&(Bm=0);gc(ze.Ti,Bm,1,Mi);delete this.K[pf.id]}}}this.Mb.length=0;this.ga.Di=this.W.Di=!0;for(var ol=!1,rk=cP(this,ol),zp=[[this.ga,this.W]],Bj;Bj=dP(rk,zp);){var Mn=zp,Nn=Bj[1],dh=void 0,Cj=rk[Bj[0]],sk=null,Ni=void 0;for(Ni in Cj.Ti)dh=Cj.Ti[Ni].Ed,dh.Di&&(!sk||sk.level>dh.level)&&(sk=
dh);for(var Ap=[sk],dh=sk;dh;){for(var Cm=dh.Ti,Oi=null,Ni=0;Nip.indexOf(r)){q=!1;break}}if(q&&(l++,0>n&&(n=d),l>=h))break}if(!l)throw"non planar!";l=this.Yb?a.width:a.height;d=U(this.df().oe().size(),p);f=U(this.oe().size(),p);var q=Math.max(f,d);f=a.left+q/2;for(d=0;db;b=Math.abs(b);var d=(b-a.oF)/(a.eN-a.oF);if(isNaN(d)||!isFinite(d))d=.5;b=a.pF+d*(a.fN-a.pF);return c?-b:b}function Tf(a){return B(a.xo())+"_"+B(a.Da())}g.vE=function(){return this.ma};g.$b=function(){return this.La};g.X=function(){return this.Oe||this.Hb()};g.Hb=function(){return this.Oe=this.vl()};g.xo=function(){return this.La.sa()};
g.Da=function(a){if(m(a))return a instanceof xc||(a=null),this.ab!=a&&(this.ab&&gF(this.ab,this.Yn,this),(this.ab=a)&&V(this.ab,this.Yn,this),I(this,1024,4|L)),this;this.ab||this.Da(this.Eb.Da());return this.ab};g.Yn=function(a){var b=0;Z(a,4)&&(b|=4);Z(a,2)?b|=L:this.ua(b);I(this,1024,b)};g.KX=function(a,b){return this.Eh(this.xo().transform(a,b),!0)};g.gN=function(a,b){return this.Eh(this.Da().transform(a,b),!1)};
g.error=function(a){this.Xh()||N(12,void 0,[this.vc()]);this.Ea||(this.Ea=new sG(this),V(this.Ea,this.IX,this));return m(a)?(this.Ea.P(a),this):this.Ea};g.IX=function(a){var b=0;Z(a,L)&&(b|=L);Z(a,4)&&(b|=4);I(this,J,b)};g.rJ=function(){this.fc||(this.fc=[]);if(this.ta)for(;this.ta.length;){var a=this.ta.pop();a.clear();a.parent(null);this.fc.push(a)}else this.ta=[]};
g.aQ=function(a){var b=this.X().ka(),c=this.fc.length?this.fc.pop():Sl().zIndex(4E-6);this.ma.bb(c);this.o.xC(c,this.check(131072),b);c.stroke(a);c.fill(null);this.ta.push(c);return c};g.Yj=function(a){return this.error().Yj(a)};g.XM=function(a){var b=a?this.error().Xt():this.error().St(),c;w(b)&&(c=this.ov(),b=Kc(b.call(c,c)));var d;this.check(262144)&&(d=this.dQ(a?"xErrorStroke":"valueErrorStroke"),w(d)?(c=this.ov(b),d=Kc(d.call(c,c))):d&&(d=Kc(d)));return d||b};
g.uz=function(){if(vG(this.error())){var a=this.error(),b=a.mode(),c=this.check(4096);switch(b){case "x":a.Y(!0,c);break;case "value":a.Y(!1,c);break;case "both":a.Y(!0,c),a.Y(!1,c)}}};g.clip=function(a){return m(a)?(null===a&&(a=!1),this.ga!=a&&(this.ga=a,I(this,4096,L)),this):this.ga};g.pv=function(a){this.pa||(this.pa=new GK,V(this.pa,this.JX,this));return m(a)?(this.pa.P(a),this):this.pa};g.JX=function(a){var b=64,c=!1;Z(a,8)&&(b|=8,c=!0);this.ua(b,c)};
g.bi=function(a){var b=this.pv();W(b,b.ra);var c=vJ.prototype.I.call(b);m(b.zs())&&(c.iconTextSpacing=b.zs());m(b.text())&&(c.text=b.text());m(b.us())&&(c.iconEnabled=b.us());m(b.As())&&(c.iconType=b.As());m(b.ys())&&(c.iconSize=b.ys());m(b.wk())&&(c.iconFill=b.wk());m(b.yk())&&(c.iconStroke=b.yk());m(b.xk())&&(c.iconHatchFill=b.xk());m(b.xs())&&(c.iconMarkerType=b.xs());m(b.vs())&&(c.iconMarkerFill=b.vs());m(b.ws())&&(c.iconMarkerStroke=b.ws());m(b.disabled())&&(c.disabled=b.disabled());var b=this.uf("color"),
d=this.bN();c.disabled="disabled"in c?!!c.disabled:!this.enabled();c.meta=this.G();if(!u(c.text)){var e;w(a)&&(e=a.call(d,d));u(e)||(e=this.cQ(d));c.text=e}"marker"!=c.iconType||this.check(8192)||(c.iconFill=this.Aa.fill(),c.iconStroke=this.Aa.stroke());c.iconType=this.nF(c.iconType,d);c.iconEnabled="iconEnabled"in c?!!c.iconEnabled:!0;c.iconStroke=this.kw(c.iconStroke,2,b,d);c.iconFill=this.kw(c.iconFill,1,b,d);c.iconHatchFill=this.kw(c.iconHatchFill,3,jP(this),d);this.Hf()&&this.Ca().enabled()?
(c.iconMarkerType=c.iconMarkerType||this.Aa.type(),c.iconMarkerFill=c.iconMarkerFill||this.Aa.fill(),c.iconMarkerStroke=c.iconMarkerStroke||this.Aa.stroke()):(c.iconMarkerType=null,c.iconMarkerFill=null,c.iconMarkerStroke=null);return c};g.nF=function(a){"marker"==a?(this.check(8192)?a=this.uf("type"):this.Hf()?a=this.Ca().type():a="square","line"==a&&(a="vline")):w(a)||(a=Gd(a));return a};
g.kw=function(a,b,c){if(a)w(a)?(b={sourceColor:c},a=a.call(b,b)):a=T(a);else{if(2==b)a="stroke";else if(3==b){if(this.check(8))return null;a="hatchFill"}else this.check(8)?(a="stroke",b=2):a="fill";a=IC([a],b)(this,Vb,!0)}return a};g.cQ=function(){return this.name()};g.tb=function(a){this.hc||(this.hc=new QM);return m(a)?(this.hc.P(a),this):this.hc};
function IC(a,b){if(!a)return oP;var c=b+"|"+a.join("|"),d=hP[c];if(!d){switch(b){case 2:d=AF;break;case 3:d=CF;break;default:case 1:d=BF}hP[c]=d=qa(pP,a,d,3==b)}return d}function pP(a,b,c,d,e,f){var h;e=nc(e);if(e!=Vb&&1=this.b.hi&&a<=this.b.lastIndex};
function AP(a,b,c,d,e,f){for(var h=a.data().X(),k=a.Da(),l=0,n=0,p=0,q=!1,r=!1;h.advance();){var v=d(h.get("x"));if(!e(v)){var x={};x.x=v;var y,z,E,F,v=!1;y=0;for(z=a.g.Vg.length;yy&&!a.uf("displayNegative"))&&(v=!0);if(a.Xh()){if(tG(a.sa()))for(y=0,z=a.RS.length;yc&&(c=~c,0b-a.b.data[c-1].data.x&&c--));return c}return a.qa.Pm("x",b)}
g.qo=function(a,b){if(this.b){var c=[],d,e;this.b.sr?(d=this.b.sr[rD(a)],e=this.b.sr[rD(b)]):(d=fd(this.b.data,function(b){return a-b.data.x}),0>d&&(d=~d),e=fd(this.b.data,function(a){return b-a.data.x}),0>e&&(e=~e));if(!isNaN(d)&&!isNaN(e)){if(d>e){var f=d;d=e;e=f}for(e=Math.min(e,this.b.data.length-1);d<=e;d++)c.push(d)}return c}c=this.sa();if(e=c instanceof uc)a=c.nm(a),b=c.nm(b);return this.qa.qo(a,b,e)};
g.tf=function(a){var b=this.X();this.mf()&&this.o.$n(a,b.G("shapes"));this.Ql()&&this.gH(b,a);this.g.OC(b,a);this.cN(b,a);this.Eg(b,a)};g.Kh=ca;g.kf=function(a){var b=this.X();this.o.$n(a,b.G("shapes"));this.g.OC(b,a);this.Ql()&&this.gH(b,a)};g.Hd=function(a){return m(a)?(a=null===a?null:od(a),a!=this.Oa&&(this.Oa=a),this):this.Oa};g.qc=function(a){return m(a)?this:this.La.xd().qc()};g.LX=function(a){return m(a)?(this.Hd(ia(a)?a?"multiSelect":"none":a),this):fa(this.Hd())?null:"none"!=this.Hd()};
g.ah=function(a){m(a)?this.th(a):this.enabled()&&this.state.xf(H);return this};g.zd=function(a){var b;if(b=!cc(this.state,H))b=!(this.state.Jd()&H);if(b||!this.enabled())return this;var c;m(a)?c=a:c=this.state.b==Vb?NaN:void 0;this.state.j(H,c);return this};g.th=function(a){if(!this.enabled())return this;if(t(a)){for(var b=kc(this.state,H),c=0;cb&&(b=NaN)}a.pointIndex=b;return a};g.mg=function(a){(a=this.Wf(a))&&this.dispatchEvent(a)};
g.Wf=function(a){var b=a.type;switch(b){case "mouseout":b="pointmouseout";break;case "mouseover":b="pointmouseover";break;case "mousemove":b="pointmousemove";break;case "mousedown":b="pointmousedown";break;case "mouseup":b="pointmouseup";break;case "click":case "touchstart":b="pointclick";break;case "dblclick":b="pointdblclick";break;default:return null}var c;a.target!=this.An()||isNaN(a.markerIndex)?"pointIndex"in a?c=a.pointIndex:"labelIndex"in a?c=a.labelIndex:"markerIndex"in a&&(c=a.markerIndex):
c=vP(this,a.markerIndex);c=G(c);a.pointIndex=c;var d=this.vl();d.select(c)||d.reset();return{type:b,actualTarget:a.target,series:this,iterator:d,pointIndex:c,target:this,originalEvent:a,point:this.Ke(c)}};
g.Ke=function(a){var b;this.Qh()?b=new Ib(this,a):b=new Hb(this,a);this.La.yb();var c=this.La.ha,d=this.check(81920),e=d?b.get("high")-b.get("low"):b.get("value");b.ha.index=a;m(e)&&(b.ha.value=e);var f=b.get("size"),h;ja(c.dataPlotXSum)&&(h=e/c.dataPlotXSum,b.ha.xPercentOfTotal=100*h);ja(this.ha("seriesXSum"))&&(h=e/this.ha("seriesXSum"),b.ha.xPercentOfSeries=100*h);ja(this.ha("seriesBubbleSizeSum"))&&(h=f/this.ha("seriesBubbleSizeSum"),b.ha.bubbleSizePercentOfSeries=100*h,h=f/c.dataPlotBubbleSizeSum,
b.ha.bubbleSizePercentOfTotal=100*h,b.ha.bubbleSize=f);h=d?this.ha("catYRangeSumArr_"):this.ha("catYSumArr_");f=b.get("x");h?(b.ha.categoryName=f,f=h[a],d?(h=e/this.ha("seriesYRangeSum"),b.ha.yPercentOfSeries=100*h,h=e/c.dataPlotYSum,b.ha.yPercentOfTotal=100*h,b.ha.yPercentOfCategory=e/f*100,h=f/c.dataPlotYSum,b.ha.categoryYRangePercentOfTotal=100*h,b.ha.categoryYRangeSum=f,b.ha.categoryYRangeMax=this.ha("catYRangeMaxArr_")[a],b.ha.categoryYRangeMin=this.ha("catYRangeMinArr_")[a],b.ha.categoryYRangeAverage=
this.ha("catYRangeAvgArr_")[a],b.ha.categoryYRangeMedian=this.ha("catYRangeMedianArr_")[a],b.ha.categoryYRangeMode=this.ha("catYRangeModeArr_")[a]):(h=e/this.ha("seriesYSum"),b.ha.yPercentOfSeries=100*h,h=e/c.dataPlotYSum,b.ha.yPercentOfTotal=100*h,b.ha.yPercentOfCategory=e/f*100,h=f/c.dataPlotYSum,b.ha.categoryYPercentOfTotal=100*h,b.ha.categoryYSum=f,b.ha.categoryYMax=this.ha("catYMaxArr_")[a],b.ha.categoryYMin=this.ha("catYMinArr_")[a],b.ha.categoryYAverage=this.ha("catYAvgArr_")[a],b.ha.categoryYMedian=
this.ha("catYMedianArr_")[a],b.ha.categoryYMode=this.ha("catYModeArr_")[a])):(h=f/this.ha("seriesXSum"),b.ha.xPercentOfSeries=100*h,h=e/this.ha("seriesYSum"),b.ha.yPercentOfSeries=100*h,h=f/c.dataPlotXSum,b.ha.xPercentOfTotal=100*h,h=e/c.dataPlotYSum,b.ha.yPercentOfTotal=100*h);return b};
g.I=function(){var a=zP.F.I.call(this);if(this.b){for(var b=[],c=this.data(),d=new Tc(this);d.advance();){var e=d.G("rawIndex");isNaN(e)?b.push({x:d.get("x")}):b.push(IH(c,e))}a.data=b}else a.data=this.data().I();m(this.Hd())&&(a.selectionMode=this.Hd());return a};g.aa=function(a){zP.F.aa.call(this,a);"data"in a&&this.data(a.data||null);m(a.allowPointsSelect)&&this.Hd(ia(a.allowPointsSelect)?a.allowPointsSelect?"multiSelect":"none":a.allowPointsSelect);this.Hd(a.selectionMode)};
g.ba=function(){Lf(this.W);delete this.qa;this.Ta=this.b=this.state=this.Fa=this.Fa=this.W=null;zP.F.ba.call(this)};zP.prototype.data=zP.prototype.data;zP.prototype.xScale=zP.prototype.sa;zP.prototype.hover=zP.prototype.ah;zP.prototype.unhover=zP.prototype.zd;zP.prototype.select=zP.prototype.select;zP.prototype.unselect=zP.prototype.Pd;zP.prototype.selectionMode=zP.prototype.Hd;zP.prototype.allowPointsSelect=zP.prototype.LX;zP.prototype.getPoint=zP.prototype.Ke;zP.prototype.excludePoint=zP.prototype.OP;
zP.prototype.includePoint=zP.prototype.pI;zP.prototype.keepOnlyPoints=zP.prototype.KQ;zP.prototype.includeAllPoints=zP.prototype.oI;zP.prototype.getExcludedPoints=zP.prototype.iN;function GP(a,b,c,d){gP.call(this,a,b,c,d);this.Gc=this.qa=this.wf=this.j=null;this.Zf=!1;this.zI=null;this.GO=!1}D(GP,gP);g=GP.prototype;g.EH=function(){var a=this.xo();return a instanceof HP?this.fa.width/(a.Oq-a.wn):this.La.UL()/(a.KH()-a.LH())*this.fa.width};g.Ke=function(){return null};g.dQ=function(){};g.PH=function(){return SG(this.j)};g.OH=function(){return TG(this.j)};g.lw=function(){return this.La};
function IP(a){var b,c=a.Da();if(a.check(64)&&c instanceof te&&"none"!=c.QO())if(c=c.PO(),"firstVisible"==c)b=a.j,b=QG(b,b.b.yH,b.b.hi);else{b=a.j;var d="seriesStart"==c?void 0:c,c=lj(b.g.b),d=m(d)?hj(c,d,"exact"):0;b=(c=c.qm(d))?new NG(c,b.g,!1,d,null):null}a.Ba=Number(b&&b.get("value"))||0}
g.data=function(a,b,c){if(m(a)){var d=this.lw();M(d);var e;this.j&&(e=this.j,this.j=null,JP(d,e));this.qa&&(Lf(this.qa),this.qa=null);this.wf=a;a instanceof iH||a instanceof hH||(e=new iH,a&&e.ZN(a,!1,c),this.qa=a=e);a instanceof iH&&(a=a.Rz(b),b||(a.g("value",1,"average"),a.g("size",2,"sum"),a.g("open",1,"first"),a.g("high",2,"max"),a.g("low",3,"min"),a.g("close",4,"last"),a.g("volume",5,"sum")),this.qa||(this.qa=a));a instanceof hH?(this.j=a.j(),this.HR()):this.wf=null;d.ia(!0);return this}return this.wf};
g.HR=function(){WG(this.lw().g,this.j,!0)};g.vl=function(){return this.j.X()};g.ov=function(a){return{sourceColor:a||this.uf("color")||"blue"}};g.mF=function(){return{sourceHatchFill:jP(this)}};g.tJ=function(){if(!this.j)return null;for(var a=this.g.Vg,b=[],c=0;ch?k.b.DO[~h]:k.b.WQ[h];c.push(d.eq(m(k)?k:NaN,a.Ba));k=a.j;h=ja(h)&&0>h?k.b.CO[~h]:k.b.RQ[h];c.push(d.eq(m(h)?h:NaN,a.Ba))}if(h=SG(a.j))for(e=0;ec&&(c=h):h>b&&
(b=h)}}this.j=b;this.g=c}Y(this,64)&&(a=this.Fb()||this.zc()||this.md(),!this.Cc&&a&&(this.Cc=new UA(this.RM,ca),this.Cc.parent(this.ma),this.Cc.zIndex(2),this.Cc.Nb(!0)),this.Cc&&this.Cc.clear());Y(this,2)&&(this.ma.parent(this.N()),this.Vr.parent(this.ma),this.Cc&&this.Cc.parent(this.ma),W(this,2));a=this.Ca();b=this.Ib();c=this.Ib();M(a);M(b);M(c);a.clear();a.N(this.N());a.ja(this.ic());UP(this)}};
g.je=function(a,b){var c;a:if(this.enabled()){var d=[],e=this.Da(),f=this.sa(),h=this.X();c=!1;for(var k=0,l=this.uc.length;kn&&0>q||1n&&0>
q||1=f.cb()&&b.top<=f.top&&b.Qa()>=f.Qa())d.width(b.width).height(b.height);else if("drop"==
e.El())this.labels().clear(c);else if(d.width()!=f.width||d.height()!=f.height)d.g=null,d.width(f.width).height(f.height);"alwaysShow"!=e.El()?d.clip(b):d.clip(null)}}}};
g.Eg=function(a){var b=this.X(),c=b.G("shape");if(c&&(a=this.ei(a,!0))){var d=WN(a),c=ag(c.stroke())/2,b=Nl(b.G("x")+c,b.G("y")+c,b.G("width")-2*c,b.G("height")-2*c);a.width(b.width).height(b.height);d.width=null;d.height=null;if(d.adjustByWidth||d.adjustByHeight)d.fontSize=UN(a).Ba;var c=this.labels().measure(a.Bf(),a.ec(),d),c=d.padding.Xx(c),d=b.left<=c.left&&b.cb()>=c.cb()&&b.top<=c.top&&b.Qa()>=c.Qa(),e=this.$b();"alwaysShow"!=e.El()?a.clip(b):a.clip(null);if(!d)if("drop"==e.El())this.labels().clear(a.ka());
else if(a.width()!=c.width||a.height()!=c.height)a.g=null,a.width(c.width).height(c.height)}};
g.bd=function(){this.Ca().Y();this.Ca().ia(!1);this.Ib().ia(!1);this.Zb().ia(!1);W(this.Ca(),4294967295);W(this.Ib(),4294967295);W(this.Zb(),4294967295);this.labels().Y();this.labels().ia(!1);this.Db().ia(!1);this.Pb().ia(!1);W(this.labels(),4294967295);W(this.Db(),4294967295);W(this.Pb(),4294967295);if(Y(this,4)){var a,b;a=this.clip();ia(a)&&(a=this.fa,b=this.cg(),a=b.Sg(a));this.ma.clip(a||null);(b=this.labels().ke())&&b.clip(a||null);(b=this.Ca().ke())&&b.clip(a||null);W(this,4)}Y(this,2)?W(this,
0):W(this,4294967295)};g.remove=function(){this.ma&&this.ma.remove();this.labels().N(null);this.Ca().N(null);VP.F.remove.call(this)};g.Rb=function(a){if(!this.$||a)this.$=new Ie(this,this.uc,!1);this.$.zf();if(a=this.$b().Ld()){var b=this.X().get("heat");a instanceof tJ&&(this.$.color=a.gp(b),(a=a.oj(b))&&(this.$.colorRange={color:a.color,end:a.end,name:a.name,start:a.start,index:a.sourceIndex}))}return this.$};
g.ae=function(a){var b=this.X(),c=b.G("shape");return c?(b=c.Ya(),a=qd(a),{value:AD(b,a)}):{value:{x:b.G("x"),y:b.G("y")}}};function WP(a,b,c){c?(c=a.fa.left,a=a.fa.width):(c=a.fa.Qa(),a=-a.fa.height);return Math.round(c+b*a)}function XP(a,b){var c=a.X().G("shape");m(c)&&(c.stroke(a.dc(!0,b)),c.fill(a.nc(!0,b)))}function YP(a,b){var c=a.X().G("hatchFillShape");null!=c&&c.stroke(null).fill(a.Lc(!0,b))}
g.tf=function(a){var b=this.X().G("shape");if(b){var c=ag(this.dc(!0,a)),b=ag(b.stroke());c!=b?(I(this,J|64),this.je(a,!0),W(this,J|64)):(XP(this,a),YP(this,a));this.Eg(a);ZP(this,a)}};g.Kh=function(){this.labels().Y();this.Ca().Y()};g.kf=function(a){XP(this,a);YP(this,a)};g.clip=function(a){return m(a)?(null===a&&(a=!1),this.Ur!=a&&(this.Ur=a,I(this,4,L|8)),this):this.Ur};
g.sa=function(a){return m(a)?(this.Ta!=a&&(this.Ta&&gF(this.Ta,this.hz,this),this.Ta=a,V(this.Ta,this.hz,this),I(this,J,4|L)),this):this.Ta};g.Da=function(a){return m(a)?(this.ab!=a&&(this.ab&&gF(this.ab,this.hz,this),this.ab=a,V(this.ab,this.hz,this),I(this,J,4|L)),this):this.ab};g.hz=function(a){var b=0;Z(a,4)&&(b|=4);Z(a,2)?b|=L:this.ua(b);I(this,J,b)};
g.Sf=function(a,b){var c;w(a)?(c=1a?b="leftBottom":90==a?b="leftCenter":180>a?b="leftTop":180==a?b="centerTop":270>a?b="rightTop":270==a?b="rightCenter":270q?c=180-c:d>k&&e>q||d>k&ðis.Yr&&(this.Yr=b),be;e=Math.abs(e);e=(e-this.Gp)/(this.Wr-this.Gp);if(isNaN(e)||!isFinite(e))e=.5;e=this.$+e*(this.Yh-this.$);e=b?-e:e;if(0>e&&!this.g)return;b=VA(this.Im);this.X().G("x",c).G("value",d).G("size",e).G("shape",b);e=Math.abs(e);b.moveTo(c+e,d).arcTo(e,e,0,360);this.as(a|this.state.Jd());this.xg(b)}Y(this,64)&&(d=this.X(),c=this.Cc?VA(this.Cc):null,d.G("hatchFillShape",c),d=d.G("shape"),m(d)&&c&&c.gd(d.I()),this.$r(a|this.state.Jd()));
pQ.F.je.call(this,a)}};
g.as=function(a){var b=this.X().G("shape"),c=G(this.X().G("size"));if(m(b)&&!isNaN(c)){if(0>c){var c=this.X(),d=c.get("negativeFill")||this.Uu(),c=a&Bb?this.Sf(c.get("selectNegativeFill")||this.Wu()||d,d):a&H?this.Sf(c.get("hoverNegativeFill")||this.Su()||d,d):this.Sf(d),c=Lc(c),d=this.X(),e=d.get("negativeStroke")||this.Vu();a=a&Bb?this.Sf(d.get("selectNegativeStroke")||this.Xu()||e,e):a&H?this.Sf(d.get("hoverNegativeStroke")||this.Tu()||e,e):this.Sf(e);a=Kc(a)}else c=this.nc(!0,a),a=this.dc(!0,
a);b.stroke(a,2,"none","round");b.fill(c)}};g.$r=function(a){var b=this.X().G("hatchFillShape"),c=G(this.X().G("size"));if(null!=b&&!isNaN(c)){if(0>c){var c=this.X(),d;m(c.get("negativeHatchFill"))?d=c.get("negativeHatchFill"):d=this.Xr();var e;a&Bb?m(c.get("selectHatchFill"))?e=c.get("selectHatchFill"):m(this.Hp())?e=this.Hp():e=d:a&H?m(c.get("hoverHatchFill"))?e=c.get("hoverHatchFill"):m(this.Fp())?e=this.Fp():e=d:e=d;a=RP(this,e)}else a=this.Lc(!0,a);b.stroke(null).fill(a)}};
g.I=function(){var a=pQ.F.I.call(this);a.displayNegative=this.VE();w(this.Uu())?N(8,null,["Bubble Series negativeFill"]):a.negativeFill=T(this.Uu());w(this.Su())?N(8,null,["Bubble Series hoverNegativeFill"]):a.hoverNegativeFill=T(this.Su());w(this.Wu())?N(8,null,["Bubble Series selectNegativeFill"]):a.selectNegativeFill=T(this.Wu());w(this.Vu())?N(8,null,["Bubble Series negativeStroke"]):a.negativeStroke=T(this.Vu());w(this.Tu())?N(8,null,["Bubble Series hoverNegativeStroke"]):a.hoverNegativeStroke=
T(this.Tu());w(this.Xu())?N(8,null,["Bubble Series selectNegativeStroke"]):a.selectNegativeStroke=T(this.Xu());w(this.Xr())?N(8,null,["Bubble Series negativeHatchFill"]):a.negativeHatchFill=T(this.Xr());w(this.Fp())?N(8,null,["Bubble Series hoverNegativeHatchFill"]):a.hoverNegativeHatchFill=T(this.Fp());w(this.Hp())?N(8,null,["Bubble Series selectNegativeHatchFill"]):a.selectNegativeHatchFill=T(this.Hp());return a};
g.aa=function(a){pQ.F.aa.call(this,a);this.VE(a.displayNegative);this.Uu(a.negativeFill);this.Su(a.hoverNegativeFill);this.Wu(a.selectNegativeFill);this.Vu(a.negativeStroke);this.Tu(a.hoverNegativeStroke);this.Xu(a.selectNegativeStroke);this.Xr(a.negativeHatchFill);this.Fp(a.hoverNegativeHatchFill);this.Hp(a.selectNegativeHatchFill)};pQ.prototype.displayNegative=pQ.prototype.VE;pQ.prototype.negativeFill=pQ.prototype.Uu;pQ.prototype.hoverNegativeFill=pQ.prototype.Su;
pQ.prototype.selectNegativeFill=pQ.prototype.Wu;pQ.prototype.negativeStroke=pQ.prototype.Vu;pQ.prototype.hoverNegativeStroke=pQ.prototype.Tu;pQ.prototype.selectNegativeStroke=pQ.prototype.Xu;pQ.prototype.negativeHatchFill=pQ.prototype.Xr;pQ.prototype.hoverNegativeHatchFill=pQ.prototype.Fp;pQ.prototype.selectNegativeHatchFill=pQ.prototype.Hp;pQ.prototype.fill=pQ.prototype.fill;pQ.prototype.hoverFill=pQ.prototype.sc;pQ.prototype.selectFill=pQ.prototype.Dd;pQ.prototype.stroke=pQ.prototype.stroke;
pQ.prototype.hoverStroke=pQ.prototype.gc;pQ.prototype.selectStroke=pQ.prototype.ed;pQ.prototype.hatchFill=pQ.prototype.Fb;pQ.prototype.hoverHatchFill=pQ.prototype.zc;pQ.prototype.selectHatchFill=pQ.prototype.md;function rQ(a,b){nQ.call(this,a,b);this.uc=["points"];this.Ea=["points"]}D(rQ,nQ);aQ.connector=rQ;g=rQ.prototype;g.Ma=function(){return"connector"};g.nz=function(a){return m(a)?(a=G(a)||0,this.K!=a&&(this.K=a,I(this,J,L)),this):this.K};g.mz=function(a){return m(a)?(a=G(a)||0,this.j!=a&&(this.j=a,I(this,J,L)),this):this.j};g.vA=function(a){return m(a)?(a=G(a)||0,this.g!=a&&(this.g=a,I(this,J|64,L|1024)),this):this.g};g.Rb=function(a){if(!this.J||a)this.J=new Le(this,this.uc);this.J.zf();return this.J};
g.ae=function(a){var b=this.X();if(b.G("shape")){var c=b.G("sumDist"),d=b.G("connectorsDist"),e=b.G("points"),f=0;if(u(a))switch(a){case "start":a=0;break;case "middle":a=.5;break;case "end":a=1;break;default:vD(a)?a=parseFloat(a)/100:(a=G(a),isNaN(a)&&(a=.5))}else a=G(a),isNaN(a)&&(a=.5);for(var c=a*c,h=0,k=e.length;h=f&&c<=f+l){var n=(c-f)/l,p=e[h+2],q=e[h+3],r=e[h+4],v=e[h+5],x=e[h+6],y=e[h+7],z=r+(p-r)*(1-n),E=v+(q-v)*(1-n),r=x+(r-x)*(1-n),v=y+(v-y)*(1-n),p=z+(p+(e[h]-
p)*(1-n)-z)*(1-n),q=E+(q+(e[h+1]-q)*(1-n)-E)*(1-n),z=r+(z-r)*(1-n),r=v+(E-v)*(1-n),E=z+(p-z)*(1-n),n=r+(q-r)*(1-n),v=Ol(Ra(Math.atan(Math.sqrt(Math.pow(r-q,2))/Math.sqrt(Math.pow(z-p,2)))),7);zq?v=180-v:z>p&&r>q||z>p&&re?E=-x:f>d&&h>e?E=x-180:f>d&&h