if(!_.annotations){_.annotations=1;(function($){var FZ=function(a,b,c,d,e){var f=e.left+e.width,h=e.top+e.height,k=(d-b)/(c-a),l,m,p=!1;if((0,window.isNaN)(k))if(a<e.left||a>f||b<e.top||b>h)p=!0;else{var q=l=a;var r=m=b}else if(k)if((0,window.isFinite)(k)){var t=b-a*k,u=k*e.left+t,v=k*f+t;u<e.top&&v<e.top||u>h&&v>h?p=!0:(l=(e.top-t)/k,k=(h-t)/k,u<e.top?(q=l,r=e.top):u>h?(q=k,r=h):(q=e.left,r=u),v<e.top?m=e.top:v>h?(l=k,m=h):(l=f,m=v))}else a<e.left||a>f?p=!0:(q=l=a,r=e.top,m=h);else b<e.top||b>h?p=!0:(q=e.left,l=f,r=m=b);if(p)return null;if(a>
c||a==c&&b>d)a=q,q=l,l=a,a=r,r=m,m=a;return[q,r,l,m]},GZ=function(a,b,c,d,e){if(e=FZ(a,b,c,d,e)){if(c-=a){d=e[0]-a;var f=e[2]-a}else if(c=d-b)d=e[1]-b,f=e[3]-b;else return e;0>f*c?e=null:0>c*d&&(e[0]=a,e[1]=b)}return e},HZ=function(a,b,c,d,e){if(e=FZ(a,b,c,d,e)){var f;if(f=c-a){var h=e[0]-a;var k=e[2]-a;var l=e[0]-c;var m=e[2]-c}else if(f=d-b)h=e[1]-b,k=e[3]-b,l=e[1]-d,m=e[3]-d;else return e;0>k*f||0<l*f?e=null:(0>h*f&&(e[0]=a,e[1]=b),0<m*f&&(e[2]=c,e[3]=d))}return e},IZ=function(a){function b(){return new $.Px(!0,
!0,!0)}$.Y.call(this);this.Fa("chart.defaultAnnotationSettings.base");this.nb=a;this.va=this.O=null;this.state=$.Zl;this.ya=0;this.ba=this.ye&1?"xAnchor":null;this.ga=this.ye&2?"valueAnchor":null;this.Ra=7<=this.ye;this.He=!1;this.coords={};this.coords.xAnchor=window.NaN;this.coords.valueAnchor=window.NaN;this.coords.secondXAnchor=window.NaN;this.coords.secondValueAnchor=window.NaN;this.coords.thirdXAnchor=window.NaN;this.coords.thirdValueAnchor=window.NaN;this.ka=null;this.ea=new $.J(0,0,0,0);this.hc=
!0;$.T(this.ua,Oha);a={};$.T(a,this.$f());this.ca=new $.Yx(this,a,$.Zl);this.ca.pa("markersFactoryConstructor",function(){return new $.Px(!0,!0)});this.ca.pa("markersAfterInitCallback",$.ey);a={};$.T(a,this.$f());this.xa=new $.Yx(this,a,$.po);this.xa.pa("labelsFactoryConstructor",$.$x);this.xa.pa("markersFactoryConstructor",b);a={};$.T(a,this.$f());this.Ca=new $.Yx(this,a,$.qo);this.Ca.pa("labelsFactoryConstructor",$.$x);this.Ca.pa("markersFactoryConstructor",b)},Pha=function(a){a.ob();a.ba&&(a.Ma[a.ba]=
a.Va().Fc((a.D-a.ea.left)/a.ea.width));a.ga&&(a.Ma[a.ga]=a.bb().Fc((a.ea.Ua()-a.G)/a.ea.height));a.D=a.G=window.NaN;a.Ja=!1;a.B(64)},JZ=function(a,b,c,d,e){b&&(a.coords[b]=a.ka[b]+d,a.Ma[b]=a.Va().Fc((a.coords[b]-a.ea.left)/a.ea.width));c&&(a.coords[c]=a.ka[c]+e,a.Ma[c]=a.bb().Fc((a.ea.Ua()-a.coords[c])/a.ea.height))},KZ=function(a){a.ob();return!a.ba&&!a.ga},LZ=function(a,b){return a.ea.left+b*a.ea.width},MZ=function(a,b){return a.ea.Ua()-b*a.ea.height},NZ=function(a,b){if(!a)return Qha;var c=b+
"|"+a+"|true",d=Rha[c];if(!d){switch(b){case 2:d=$.Rl;break;case 3:d=$.Sl;break;default:case 1:d=$.Tl}Rha[c]=d=$.qa(Sha,a,d,3==b,!0)}return d},Sha=function(a,b,c,d,e,f,h){f=$.Xl(f);if(d&&f!=$.Zl){var k=e.zc(a,f,b);c&&!0===k&&(k=b(e.ph()));if($.n(k)){if(!$.E(k))return k;if(c)return c=e.Fi(),b(k.call(c,c))}}a=e.zc(a,0,b);c&&!0===a&&(a=b(e.ph()));$.E(a)&&(c=c?e.Fi():e.Ae(void 0,h),a=b(a.call(c,c)));k&&(c=e.Ae(a,h),a=b(k.call(c,c)));return a},Qha=function(){return"none"},OZ=function(a){$.Yq.call(this);
this.Ba=a;this.g=this.b=null;this.j=!1;this.f=[];this.Eu(!1)},PZ=function(a,b){if(a.j!=b){a.j=b;$.V(a.Ba);for(var c=0;c<a.f.length;c++){var d=a.f[c],e=b;d.ba!=e&&(d.ba=e,!e&&d.g&&(d.g.ac("mouseout",d.ET,!1,d),d.g.ac("mousedown",d.CT,!1,d),$.Sd($.fl,"mouseup",d.FT,!1,d),$.Sd($.fl,"mousemove",d.DT,!1,d)),d.B(128,1))}a.Ba.da(!0)}},RZ=function(a,b){if($.z(b)){var c=b;var d=void 0}else $.D(b)&&(c=b.type,d=b);c=$.xk(Tha,c,"line");c=new QZ[c](a);c.Fa("chart.defaultAnnotationSettings."+$.om(c.Na()));c.RA();
c.K(d);return c},WZ=function(a){IZ.call(this,a);this.wa=null;this.b=NZ("stroke",2);$.T(this.ua,SZ);$.T(this.ua,TZ);$.T(this.ua,UZ);$.T(this.ua,VZ)},XZ=function(a){IZ.call(this,a);this.wa=null;this.j=NZ("stroke",2);this.b=NZ("fill",1);this.f=NZ("hatchFill",3);$.T(this.ua,SZ);$.T(this.ua,TZ);$.T(this.ua,UZ);$.T(this.ua,VZ)},YZ=function(a){IZ.call(this,a);this.f=this.b=null;this.N=[];this.ab=NZ("stroke",2);this.xc=NZ("trend",2);this.eb=!1;$.T(this.ua,SZ);$.T(this.ua,TZ);$.T(this.ua,UZ);this.ca.pa("labelsAfterInitCallback",
$.dy)},ZZ=function(a,b){var c=a.EB().Rf();c=1-(b-c.top)/c.height;return a.bb().Fc(c)},Uha=function(a,b){var c=a.EB().Rf();c=(b-c.left)/c.width;return a.Va().Fc(c)},$Z=function(a){YZ.call(this,a)},a_=function(a){YZ.call(this,a);this.Ga=[];this.j=null;this.Ob=NZ("grid",2)},b_=function(a){YZ.call(this,a)},c_=function(a){YZ.call(this,a)},d_=function(a){IZ.call(this,a);this.b=!1;this.wa=null;this.N=NZ("stroke",2);this.f=NZ("fill",1);this.j=NZ("hatchFill",3);$.iq(this.ua,"channelWidth",320,1);$.T(this.ua,
SZ);$.T(this.ua,TZ);$.T(this.ua,UZ)},e_=function(a){var b=a.bb().Fc(.5),c=a.i("channelWidth");return(.5-a.bb().transform(b+c))*a.ea.height},Vha=function(a,b){var c=a.bb().Fc(.5),d=.5+b/a.ea.height;d=a.bb().Fc(d);return c-d},Wha=function(a){for(var b=0;b<a.wa.length;b++)a.wa[b].clear()},f_=function(a){IZ.call(this,a);this.wa=null;this.b=NZ("stroke",2);$.T(this.ua,TZ)},g_=function(a){IZ.call(this,a);this.wa=null;this.j=NZ("stroke",2);this.b=NZ("fill",1);this.f=NZ("hatchFill",3);$.T(this.ua,SZ);$.T(this.ua,
TZ);$.T(this.ua,UZ)},h_=function(a){IZ.call(this,a);this.wa=null;this.b=NZ("stroke",2);$.T(this.ua,SZ);$.T(this.ua,TZ);$.T(this.ua,UZ)},i_=function(a){IZ.call(this,a);this.Fa("defaultFontSettings");$.T(this.ua,SZ);$.T(this.ua,TZ);$.T(this.ua,Xha);$.vq(this.ua,256,16,1,1);delete this.ua.fontFamily;delete this.ua.fontStyle;delete this.ua.fontVariant;delete this.ua.fontWeight;delete this.ua.fontSize;delete this.ua.fontColor;delete this.ua.fontOpacity},j_=function(a){return"left-top"==a||"left-center"==
a||"left-bottom"==a},Yha=function(a){return"right-top"==a||"right-center"==a||"right-bottom"==a},Zha=function(a){return"left-top"==a||"center-top"==a||"right-top"==a},$ha=function(a){return"left-bottom"==a||"center-bottom"==a||"right-bottom"==a},k_=function(a){IZ.call(this,a);this.wa=null;this.b=NZ("stroke",2);$.T(this.ua,SZ);$.T(this.ua,TZ);$.T(this.ua,UZ)},l_=function(a){IZ.call(this,a);this.hc=!1;this.wa=null;this.j=NZ("stroke",2);this.b=NZ("fill",1);this.f=NZ("hatchFill",3);$.T(this.ua,SZ);$.T(this.ua,
TZ);$.T(this.ua,aia)},m_=function(a){IZ.call(this,a);this.wa=null;this.b=NZ("stroke",2);$.T(this.ua,SZ);$.T(this.ua,TZ);$.T(this.ua,UZ)},n_=function(a){IZ.call(this,a);this.wa=null;this.j=NZ("stroke",2);this.b=NZ("fill",1);this.f=NZ("hatchFill",3);$.T(this.ua,SZ);$.T(this.ua,TZ);$.T(this.ua,UZ)},o_=function(a){IZ.call(this,a);this.wa=null;this.j=NZ("stroke",2);this.b=NZ("fill",1);this.f=NZ("hatchFill",3);$.T(this.ua,SZ);$.T(this.ua,TZ);$.T(this.ua,UZ);$.T(this.ua,VZ)},p_=function(a){IZ.call(this,
a);this.wa=null;this.j=NZ("stroke",2);this.b=NZ("fill",1);this.f=NZ("hatchFill",3);$.T(this.ua,SZ);$.T(this.ua,TZ);$.T(this.ua,UZ);$.T(this.ua,VZ)},q_=function(a){IZ.call(this,a);this.wa=null;this.b=NZ("stroke",2);$.T(this.ua,SZ)},r_=function(a){IZ.call(this,a);this.wa=null;this.j=NZ("stroke",2);this.b=NZ("fill",1);this.f=NZ("hatchFill",3);$.T(this.ua,SZ);$.T(this.ua,TZ);$.T(this.ua,UZ)},s_=function(a,b){$.Y.call(this);this.b=a;a.f&&a.f.push(this);this.Ga=b;this.wf=[];this.g=this.f=null;this.ba=!1;
this.G=this.D=window.NaN;this.j=this.$e=null},t_=function(a,b){var c=$.Wj(a.P().Ha());a.D=b.clientX-c.x;a.G=b.clientY-c.y},u_=function(a,b,c){var d=!c||b!=a.j;c?(a.wf.push(b),a.j=null,a.f&&b.P(a.f)):a.j=b;var e=b.O!=a;b.Ja=!c;b.O=a;e&&b.B(64);b.ib(a);$.L(b,a.CY,a);d&&a.B(64,1)},v_=function(a,b){if($.n(b)){$.td(a.wf);a.wf.length=0;if($.A(b))for(var c=0;c<b.length;c++)u_(a,RZ(a.b,b[c]),!0);return a}return(0,$.Wa)(a.wf,function(a){return a.F()})},w_=function(a){this.g=a;this.b=null;this.j=window.NaN;
$.ag.call(this,a.f.fa());this.ra("start",this.dea,!1,this);this.ra("end",this.bea,!1,this)},Tha={yma:"ray",Xs:"line",tla:"infinite-line",vna:"vertical-line",rla:"horizontal-line",y7:"rectangle",s6:"ellipse",lna:"triangle",kna:"trend-channel",ela:"finite-trend-channel",uja:"andrews-pitchfork",bla:"fibonacci-fan",ala:"fibonacci-arc",cla:"fibonacci-retracement",dla:"fibonacci-timezones",yu:"marker",wla:"label",sla:"horizontal-range",wna:"vertical-range"},QZ={},x_={};$.gq(x_,0,"color",$.Gq);
$.gq(x_,0,"allowEdit",$.uq);$.gq(x_,0,"hoverGap",function(a){return $.O(a,window.NaN,!0)});var Oha=[["color",16,1],["allowEdit",1024,1],["hoverGap",256,1]],y_={};$.gq(y_,0,"xAnchor",$.tq);var SZ=[["xAnchor",192,1]],z_={};$.gq(z_,0,"valueAnchor",$.tq);var TZ=[["valueAnchor",192,1]],A_={};$.gq(A_,0,"secondXAnchor",$.tq);$.gq(A_,0,"secondValueAnchor",$.tq);var UZ=[["secondXAnchor",192,1],["secondValueAnchor",192,1]],B_={};$.gq(B_,0,"thirdXAnchor",$.tq);$.gq(B_,0,"thirdValueAnchor",$.tq);
var VZ=[["thirdXAnchor",192,1],["thirdValueAnchor",192,1]],C_={};$.gq(C_,0,"markerType",$.Ik);$.gq(C_,0,"anchor",$.Bk);$.gq(C_,0,"offsetX",$.qq);$.gq(C_,0,"offsetY",$.qq);var aia=[["markerType",256,1],["anchor",256,1],["offsetX",256,1],["offsetY",256,1]],D_=$.kq();delete D_.fontFamily;delete D_.fontStyle;delete D_.fontVariant;delete D_.fontWeight;delete D_.fontSize;delete D_.fontColor;delete D_.fontOpacity;
$.hq(D_,[[0,"text",$.oq],[0,"anchor",$.Bk],[0,"offsetX",$.qq],[0,"offsetY",$.qq],[0,"width",$.mq],[0,"height",$.mq]]);
var Xha=[["text",256,1],["anchor",256,1],["offsetX",256,1],["offsetY",256,1],["width",256,1],["height",256,1]],E_=[["stroke",272,1]],bia=[["grid",16,1]],cia=[["size",256,1]],dia=[["fontFamily",256,1],["fontStyle",256,1],["fontVariant",256,1],["fontWeight",256,1],["fontSize",256,1],["fontColor",16,1],["fontOpacity",16,1],["fontDecoration",256,1]],F_=$.Ga([["fill",16,1],["hatchFill",16,1]],E_),eia=$.Ga(E_,[["trend",16,1]]),fia=[["labels",0,0]];$.H(IZ,$.iu);$.xq(IZ,["markers"],"normal");$.U(IZ,x_);$.g=IZ.prototype;$.g.$f=function(){return[["markers",0,0]]};$.g.Sa=function(a){return $.n(a)?(this.ca.K(a),this):this.ca};$.g.mb=function(a){return $.n(a)?(this.xa.K(a),this):this.xa};$.g.selected=function(a){return $.n(a)?(this.Ca.K(a),this):this.Ca};$.g.zc=function(a,b){return(0==b?this.ca:1==b?this.xa:this.Ca).i(a)};$.g.sa=$.iu.prototype.sa|2E3;$.g.qa=$.iu.prototype.qa;$.g.ye=0;var Rha={};$.g=IZ.prototype;$.g.wc=null;$.g.cb=null;$.g.Na=function(){return this.type};
$.g.mc=function(){return this.nb.mc()};$.g.EB=function(){return this.O&&this.O.Ga};$.g.bb=function(a){if($.n(a)){var b=$.Xs(this.wc,a,null,15,null,this.UN,this);if(b||null===a)a=this.wc==b,b||$.Zq(this.wc,this.UN,this),(this.wc=b)&&b.da(a),a||this.B(64,1);return this}return(this.wc?this.wc:this.EB()&&this.EB().bb())||null};
$.g.Va=function(a){if($.n(a)){var b=a&&$.E(a.Na)&&a.Na(),c=(b="stock-scatter-date-time"==b||"stock-ordinal-date-time"==b)?a:$.Xs(this.cb,a,null,15,null,this.UN,this);if(c||null===a)a=this.cb==c,c||$.Zq(this.cb,this.UN,this),(this.cb=c)&&!b&&c.da(a),a||this.B(64,1);return this}return this.cb||this.mc().Va()};$.g.kB=function(a,b){this.D=a;this.G=b;this.B(128)};$.g.tI=function(){this.ka=this.coords;this.coords=$.Qc(this.coords)};
$.g.TH=function(a,b,c){switch(a){case -1:this.ye&3&&(JZ(this,this.ye&1?"xAnchor":null,this.ye&2?"valueAnchor":null,b,c),this.ye&7&&(JZ(this,"secondXAnchor","secondValueAnchor",b,c),this.ye&15&&JZ(this,"thirdXAnchor","thirdValueAnchor",b,c)));break;case 0:JZ(this,this.ye&1?"xAnchor":null,this.ye&2?"valueAnchor":null,b,c);break;case 1:JZ(this,"secondXAnchor","secondValueAnchor",b,c);break;case 2:JZ(this,"thirdXAnchor","thirdValueAnchor",b,c)}this.B(768);this.$();return this};
$.g.$s=function(a){this.state=a;this.B(528)};
$.g.ob=function(){if(this.J(64)){var a=this.Va();var b=this.bb();if(!a||!b)return!1;var c,d,e,f,h;var k=c=d=e=f=h=window.NaN;var l=0,m=0;this.ye&1&&(k=LZ(this,a.transform(this.dd("xAnchor"),.5)),(0,window.isNaN)(k)?m|=1:l|=1);this.ye&2&&(c=MZ(this,b.transform(this.dd("valueAnchor"),.5)),(0,window.isNaN)(c)?m|=2:l|=2);this.ye&4&&(d=LZ(this,a.transform(this.dd("secondXAnchor"),.5)),e=MZ(this,b.transform(this.dd("secondValueAnchor"),.5)),(0,window.isNaN)(d)||(0,window.isNaN)(e)?m|=4:l|=4);this.ye&8&&
(f=LZ(this,a.transform(this.dd("thirdXAnchor"),.5)),h=MZ(this,b.transform(this.dd("thirdValueAnchor"),.5)),(0,window.isNaN)(f)||(0,window.isNaN)(h)?m|=8:l|=8);a=!1;var p=b=null;m&3?(b=this.ye&1?"xAnchor":null,p=this.ye&2?"valueAnchor":null,a=3<this.ye,this.U=this.ye&3):m&4?(b="secondXAnchor",p="secondValueAnchor",a=7<this.ye,this.U=4):m&8?(b="thirdXAnchor",p="thirdValueAnchor",this.U=8):this.U=0;this.coords.xAnchor=k;this.coords.valueAnchor=c;this.coords.secondXAnchor=d;this.coords.secondValueAnchor=
e;this.coords.thirdXAnchor=f;this.coords.thirdValueAnchor=h;this.ya=l;this.ba=b;this.ga=p;this.Ra=a;this.He=this.wk();(0,window.isNaN)(this.D)||(0,window.isNaN)(this.G)||this.B(128);this.B(768);this.I(64)}this.J(128)&&((0,window.isNaN)(this.D)||(0,window.isNaN)(this.G)?this.g=this.ya:(this.ba&&(this.coords[this.ba]=this.D),this.ga&&(this.coords[this.ga]=this.G),this.g=this.ya|this.U),this.B(768),this.I(128));return this.He||!(0,window.isNaN)(this.D)&&!(0,window.isNaN)(this.G)};
$.g.wk=function(){var a=this.ea;if(2==this.ye){var b=this.coords.valueAnchor;return b>=a.top&&b<=a.Ua()}b=[];b.push(this.coords.xAnchor);b.push(this.coords.secondXAnchor);b.push(this.coords.thirdXAnchor);for(var c=!0,d=!0,e=0;e<b.length;e++)(0,window.isNaN)(b[e])||(c=c&&b[e]<a.left,d=d&&b[e]>a.$a());return!c&&!d};
$.g.$=function(){if(!this.Bc())return this;$.V(this);this.J(4)&&(this.ea=this.lb(),this.B(64),this.I(4));this.yg();var a=this.ob();this.LN();this.J(16)&&(this.hg(this.state),this.I(16));if(this.J(256)){if(a)15==this.ye&&15==this.g?this.eL(this.coords.xAnchor,this.coords.valueAnchor,this.coords.secondXAnchor,this.coords.secondValueAnchor,this.coords.thirdXAnchor,this.coords.thirdValueAnchor):7<=this.ye&&7<=this.g?this.Jo(this.coords.xAnchor,this.coords.valueAnchor,this.coords.secondXAnchor,this.coords.secondValueAnchor):
(3<=this.ye&&3<=this.g||this.g==this.ye)&&this.dm(this.coords.xAnchor,this.coords.valueAnchor);else return this.remove(),this.B(2),this.da(!1),this;this.I(256)}this.J(1024)&&(this.va.td(!this.i("allowEdit")),this.I(1024));if(this.J(512)){if(this.hc){a=this.Sa().Eb();var b=this.mb().Eb().enabled()||this.selected().Eb().enabled();$.V(a);!1!==a.enabled()||b?(a.P(this.va),a.clear(),a.ja(this.ea),a.Mh=5,this.aL(this.state)):(a.clear(),a.P(null));a.$();a.da(!1)}this.I(512)}this.J(8)&&(this.va.zIndex(this.zIndex()),
this.I(8));this.J(2)&&(this.va.parent(this.P()),this.I(2));this.da(!1);return this};$.g.LN=function(){};$.g.Bc=function(){var a=IZ.u.Bc.call(this);!a||this.O&&this.Va()&&this.bb()||(this.remove(),this.B(2),a=!1);return a};$.g.remove=function(){this.va&&this.va.remove();var a=this.Sa().Eb();a.remove();a.B(2)};$.g.yg=function(){this.va||(this.va=$.lk(),this.va.cursor("move"),this.va.tag=this)};$.g.dm=function(){};$.g.Jo=function(a,b){this.dm(a,b)};$.g.eL=function(a,b,c,d){this.Jo(a,b,c,d)};$.g.hg=function(){};
$.g.Ae=function(a){return{sourceColor:a||this.i("color")||"blue"}};$.g.Fi=function(){return{sourceHatchFill:this.ph()}};$.g.ph=function(){return $.$b("diagonal-brick")};$.g.UN=function(a){$.X(a,2)&&this.B(64,1)};$.g.bp=function(a){$.X(a,1)&&this.B(512,1)};$.g.xI=$.ia;
$.g.aL=function(a){var b=this.Sa().Eb();a=$.Xl(a);switch(a){case $.po:a=this.mb().Eb();break;case $.qo:a=this.selected().Eb();break;default:a=null}if(a&&null!==a.enabled()?a.enabled():b.enabled())for(var c=this.hC(),d=0;d<c.length;d++){var e=c[d],f=b.Vq(d);f?f.uc(e):f=b.add(e,d);f.oi();$.Sx(f,a||b);f.kd();f.$();this.xI(f,d)}else b.clear()};
$.g.hC=function(){var a=[];if(1==this.ye){var b=this.coords.xAnchor;(0,window.isNaN)(b)||a.push({x:b,y:this.ea.top+this.ea.height/2})}else 2==this.ye?(b=this.coords.valueAnchor,(0,window.isNaN)(b)||a.push({x:this.ea.left+this.ea.width/2,y:b})):this.ye&this.g&3&&(a.push({x:this.coords.xAnchor,y:this.coords.valueAnchor}),this.ye&this.g&4&&(a.push({x:this.coords.secondXAnchor,y:this.coords.secondValueAnchor}),this.ye&this.g&8&&a.push({x:this.coords.thirdXAnchor,y:this.coords.thirdValueAnchor})));return(0,$.Wa)(a,
function(a){return{value:a}})};$.g.select=function(){this.O.b.select(this)};$.g.ae=function(){this.O.b.ae()};$.g.th=function(a){return null!=this.Ma[a]};$.g.RA=function(){"label"==$.om(this.Na())&&this.ca.Fa("defaultFontSettings");$.W(this,"normal",this.ca);this.ca.ia(!0,{});$.W(this,"hovered",this.xa);this.xa.ia(!0,{});$.W(this,"selected",this.Ca);this.Ca.ia(!0,{})};
$.g.F=function(){var a=IZ.u.F.call(this);a.type=this.Na();$.Hq(this,x_,a,"Annotation");a.normal=this.ca.F();a.hovered=this.xa.F();a.selected=this.Ca.F();return a};$.g.X=function(a,b){IZ.u.X.call(this,a,b);$.zq(this,x_,a);this.ca.ia(!!b,a);this.ca.ia(!!b,a.normal);this.xa.ia(!!b,a.hovered);this.Ca.ia(!!b,a.selected)};$.g.R=function(){$.qd(this.va);this.va=null;delete this.nb;this.wc=this.cb=this.O=null;delete this.Ma;delete this.ma;IZ.u.R.call(this)};var G_=IZ.prototype;G_.getType=G_.Na;
G_.getChart=G_.mc;G_.getPlot=G_.EB;G_.yScale=G_.bb;G_.xScale=G_.Va;G_.select=G_.select;G_.normal=G_.Sa;G_.hovered=G_.mb;G_.selected=G_.selected;$.H(OZ,$.Yq);$.g=OZ.prototype;$.g.mc=function(){return this.Ba};$.g.Oj=function(a){this.b!=a&&this.g!=a&&(this.Pd(),a.$s($.po),this.Eu()&&a.$());this.g=a};$.g.Pd=function(){this.g&&(this.g!=this.b&&(this.g.$s($.Zl),this.Eu()&&this.g.$()),this.g=null)};$.g.select=function(a){if(this.b!=a){this.ae();if(this.b)return this;this.Ba.dispatchEvent({type:"annotationSelect",annotation:a})&&(this.b=a,a.$s($.qo),this.Eu()&&KZ(a)?a.$():PZ(this,!0))}return this};
$.g.ae=function(){this.b&&this.Ba.dispatchEvent({type:"annotationUnselect",annotation:this.b})&&(this.b.$s(this.g==this.b?$.po:$.Zl),this.Eu()&&this.b.$(),this.b=null,PZ(this,!1));return this};$.g.t9=function(){return this.b};$.g.Eu=function(a){return $.n(a)?(this.D=!!a,this):this.D};$.g.u9=function(){for(var a=0;a<this.f.length;a++)this.f[a].DY();return this};$.g.v9=function(a){var b=a.O;this.b==a&&(this.b=null,PZ(this,!1));b?b.XP(a):$.qd(a);return this};
$.g.rd=function(a){return this.Eu()?(this.WP(),a=RZ(this,a),this.select(a),this.b||($.qd(a),a=null),a):null};$.g.WP=function(){$.V(this.Ba);if(this.b&&!KZ(this.b)){var a=this.b.O;a?a.XP(this.b):$.qd(this.b);this.b=null}PZ(this,!1);this.Ba.da(!0)};$.g.R=function(){$.td(this.f);this.f=null;OZ.u.R.call(this)};var H_=OZ.prototype;H_.startDrawing=H_.rd;H_.cancelDrawing=H_.WP;H_.getSelectedAnnotation=H_.t9;H_.removeAnnotation=H_.v9;H_.removeAllAnnotations=H_.u9;H_.select=H_.select;H_.unselect=H_.ae;
$.F("anychart.annotations.ChartController",OZ);$.H(WZ,IZ);$.xq(WZ,["stroke"],"normal");$.U(WZ,y_);$.U(WZ,z_);$.U(WZ,A_);$.U(WZ,B_);QZ["andrews-pitchfork"]=WZ;$.g=WZ.prototype;$.g.type="andrews-pitchfork";$.g.ye=15;$.g.$f=function(){var a=WZ.u.$f.call(this);return $.Ga(a,E_)};$.g.yg=function(){WZ.u.yg.call(this);this.wa||(this.wa=[this.va.path(),this.va.path()],this.wa[0].zIndex(0),this.wa[1].zIndex(3))};$.g.dm=function(a,b){for(var c=0;c<this.wa.length;c++){var d=this.wa[c];d.clear();d.moveTo(a,b).lineTo(a,b)}};
$.g.Jo=function(a,b,c,d){for(var e=0;e<this.wa.length;e++){var f=this.wa[e];f.clear();f.moveTo(a,b).lineTo(a,b);f.moveTo(c,d).lineTo(c,d)}};
$.g.eL=function(a,b,c,d,e,f){var h=(c+e)/2-a,k=(d+f)/2-b;h||k||(h=10);a=GZ(a,b,a+h,b+k,this.ea);b=GZ(c,d,c+h,d+k,this.ea);h=GZ(e,f,e+h,f+k,this.ea);c=HZ(c,d,e,f,this.ea);for(d=0;d<this.wa.length;d++)e=this.wa[d],e.clear(),f=!1,b&&(e.moveTo(b[2],b[3]).lineTo(b[0],b[1]),f=!0),c?(f?e.lineTo(c[0],c[1]):e.moveTo(c[0],c[1]),e.lineTo(c[2],c[3]),f=!0):f=!1,h&&(f?e.lineTo(h[0],h[1]):e.moveTo(h[0],h[1]),e.lineTo(h[2],h[3])),a&&e.moveTo(a[0],a[1]).lineTo(a[2],a[3])};
$.g.hg=function(a){WZ.u.hg.call(this,a);this.wa[0].fill(null).stroke(this.b(this,a));this.wa[1].fill($.Ul).stroke($.Ul,2*this.hoverGap())};$.g.wk=function(){var a=WZ.u.wk.call(this);if(!a){a=this.coords.xAnchor;var b=(this.coords.secondXAnchor+this.coords.thirdXAnchor)/2-a;a=!(0,window.isNaN)(b)&&!(a<this.ea.left&&0>=b||a>this.ea.$a()&&0<=b)}return a};
$.g.F=function(){var a=WZ.u.F.call(this);$.Hq(this,y_,a,"Annotation");$.Hq(this,z_,a,"Annotation");$.Hq(this,A_,a,"Annotation");$.Hq(this,B_,a,"Annotation");return a};$.g.X=function(a,b){$.zq(this,y_,a);$.zq(this,z_,a);$.zq(this,A_,a);$.zq(this,B_,a);WZ.u.X.call(this,a,b)};$.g.R=function(){WZ.u.R.call(this);$.td(this.wa);delete this.b};$.H(XZ,IZ);$.xq(XZ,["fill","hatchFill","stroke"],"normal");$.U(XZ,y_);$.U(XZ,z_);$.U(XZ,A_);$.U(XZ,B_);QZ.ellipse=XZ;$.g=XZ.prototype;$.g.type="ellipse";$.g.ye=7;$.g.$f=function(){var a=XZ.u.$f.call(this);return $.Ga(a,F_)};$.g.yg=function(){XZ.u.yg.call(this);this.wa||(this.wa=[this.va.path(),this.va.path(),this.va.path()],this.wa[0].zIndex(0),this.wa[1].zIndex(1),this.wa[2].zIndex(3))};$.g.dm=function(a,b){for(var c=0;c<this.wa.length;c++){var d=this.wa[c];d.clear();d.moveTo(a,b).lineTo(a,b)}};
$.g.Jo=function(a,b,c,d){var e=(b+d)/2;c=(a-c)/2;b=(b-d)/2;for(d=0;d<this.wa.length;d++){var f=this.wa[d];f.clear();f.moveTo(a,e);f.arcTo(c,b,0,360)}};$.g.hg=function(a){XZ.u.hg.call(this,a);this.wa[0].stroke(this.j(this,a));this.wa[0].fill(this.b(this,a));this.wa[1].stroke(null).fill(this.f(this,a));this.wa[2].fill($.Ul).stroke($.Ul,2*this.hoverGap())};$.g.F=function(){var a=XZ.u.F.call(this);$.Hq(this,y_,a,"Annotation");$.Hq(this,z_,a,"Annotation");$.Hq(this,A_,a,"Annotation");return a};
$.g.X=function(a,b){XZ.u.X.call(this,a,b);$.zq(this,y_,a);$.zq(this,z_,a);$.zq(this,A_,a)};$.g.R=function(){XZ.u.R.call(this);$.td(this.wa);delete this.j;delete this.b;delete this.f};$.H(YZ,IZ);$.xq(YZ,["stroke","trend","labels"],"normal");$.U(YZ,y_);$.U(YZ,z_);$.U(YZ,A_);$.g=YZ.prototype;$.g.sa=IZ.prototype.sa|6144;$.g.ye=7;$.g.tJ=function(a){if($.n(a)){if($.A(a)){for(var b=this.N.length=0;b<a.length;b++){var c=$.N(a[b]);(0,window.isNaN)(c)||this.N.push(c)}this.B(6400,1)}return this}return $.Ja(this.N,0)};$.g.$f=function(){var a=YZ.u.$f.call(this);return $.Ga(a,fia,eia,fia)};$.g.$s=function(a){YZ.u.$s.call(this,a);this.B(2048)};
$.g.yg=function(){YZ.u.yg.call(this);this.b||(this.b=[this.va.path(),this.va.path()],this.b[0].zIndex(2),this.b[1].zIndex(3))};
$.g.LN=function(){if(this.J(4096)){this.f||(this.f=[]);var a;for(a=this.f.length;a<this.N.length;a++)this.f.push(this.va.path().zIndex(0));for(a=this.N.length;a<this.f.length;a++)$.qd(this.f[a]);this.f.length=this.N.length;this.B(2304);this.I(4096)}this.J(256)&&this.B(2048);if(this.J(2048)){this.eb=!1;a=this.Sa().labels();var b=this.mb().labels().enabled()||this.selected().labels().enabled();$.V(a);7!=this.g||!1===a.enabled()&&!b?(a.clear(),a.P(null)):(a.P(this.va),a.clear(),a.ja(this.ea),a.Mh=4,
this.eb=!0,this.B(256));a.$();(b=a.jm())&&b.td(!0);a.da(!1);this.I(2048)}};$.g.dm=function(a,b){for(var c=0;c<this.b.length;c++){var d=this.b[c];d.clear();d.moveTo(a,b).lineTo(a,b)}};
$.g.Jo=function(a,b,c,d){for(var e=0;e<this.b.length;e++){var f=this.b[e];f.clear();f.moveTo(a,b).lineTo(c,d)}for(e=0;e<this.f.length;e++)this.f[e].clear();a=this.Sa().labels();var h;this.state&$.qo?h=this.selected().labels():this.state&$.po?h=this.mb().labels():h=null;b=!this.eb||h&&null!==h.enabled()?h.enabled():a.enabled();$.V(a);this.$R(a,h,b);b||a.clear();a.$();a.da(!1)};
$.g.$R=function(a,b,c){for(var d=0;d<this.N.length;d++){var e=this.f[d],f=e.stroke();this.VF(d,this.N[d],e,this.b[1],a,b,c,$.Wo(f))}};$.g.VF=function(){};$.g.hg=function(a){YZ.u.hg.call(this,a);var b=this.xc(this,a);$.n(b)||(b=this.ab(this,a));this.b[0].fill(null).stroke(b);this.b[1].fill($.Ul).stroke($.Ul,2*this.hoverGap());for(b=0;b<this.f.length;b++)this.f[b].fill(null).stroke(this.ab(this,a,b))};$.g.Ae=function(a,b){var c=YZ.u.Ae.call(this,a,b);$.n(b)&&(c.level=this.N[b]);return c};
$.g.Zd=function(a){$.X(a,1)&&this.B(2048,1)};$.g.Ec=function(a,b,c){this.de||(this.de=new $.rw);$.av(this.de,{annotation:{value:this,type:""},level:{value:a,type:"number"},levelValue:{value:c?b:this.bb().UD(b,2),type:c?"date-time":"number"},rawLevelValue:{value:b,type:c?"date-time":"number"}});return this.de};
$.g.yf=function(a,b,c,d,e,f){if(d&&e){var h=b.Vd(a);h?(h.lf(d),h.uc(e)):h=b.add(d,e,a);h.oi();$.Ou(h,c);f&&h.Vk(f);h.$();if((a=b.hl(h))&&a.length){b=this.b[1];b.moveTo(a[0],a[1]);for(c=2;c<a.length;c+=2)b.lineTo(a[c],a[c+1]);b.close()}}else b.clear(a)};$.g.RA=function(a){YZ.u.RA.call(this,a);this.tJ(this.i("levels"))};$.g.F=function(){var a=YZ.u.F.call(this);a.levels=this.tJ();$.Hq(this,y_,a,"Annotation");$.Hq(this,z_,a,"Annotation");$.Hq(this,A_,a,"Annotation");return a};
$.g.X=function(a,b){YZ.u.X.call(this,a,b);this.tJ(a.levels);$.zq(this,y_,a);$.zq(this,z_,a);$.zq(this,A_,a)};$.g.R=function(){YZ.u.R.call(this);$.td(this.b);$.td(this.f);this.f=this.b=null;delete this.ab;delete this.xc};var gia=YZ.prototype;gia.levels=gia.tJ;$.H($Z,YZ);QZ["fibonacci-arc"]=$Z;$Z.prototype.type="fibonacci-arc";$Z.prototype.VF=function(a,b,c,d,e,f,h){var k=this.coords.valueAnchor,l=this.coords.secondXAnchor,m=this.coords.secondValueAnchor,p=m+b*(k-m),q=$.dn(l+b*(this.coords.xAnchor-l),p,l,m);p<m?(c.ze(l,m,q,q,180,180),d.ze(l,m,q,q,180,180)):(c.ze(l,m,q,q,0,180),d.ze(l,m,q,q,0,180));h&&(k<m?(d=m-q,c="center-bottom"):(d=m+q,c="center-top"),l={x:l,y:d},this.yf(a,e,f,this.Ec(b,ZZ(this,d),!1),{value:l},c))};
$Z.prototype.wk=function(){var a=$Z.u.wk.call(this);if(!a){var b=this.coords.xAnchor,c=this.coords.valueAnchor;a=this.coords.secondXAnchor;var d=this.coords.secondValueAnchor,e=Math.max.apply(Math,this.N);b=$.dn(a+e*(b-a),d+e*(c-d),a,d);a=!(0,window.isNaN)(b)&&!(a+b<this.ea.left||a-b>this.ea.$a())}return a};$.H(a_,YZ);$.xq(a_,["grid"],"normal");QZ["fibonacci-fan"]=a_;$.g=a_.prototype;$.g.type="fibonacci-fan";$.g.FO=function(a){if($.n(a)){if($.A(a)){for(var b=this.Ga.length=0;b<a.length;b++){var c=$.N(a[b]);(0,window.isNaN)(c)||this.Ga.push(c)}this.B(6400,1)}return this}return $.Ja(this.Ga,0)};$.g.$f=function(){var a=a_.u.$f.call(this);return $.Ga(a,bia)};
$.g.$R=function(a,b,c){var d,e;for(d=0;d<this.j.length;d++)this.j[d].clear();a_.u.$R.call(this,a,b,c);d=0;for(e=this.N.length;d<this.Ga.length;d++,e++){var f=this.f[e],h=f.stroke(),k=e,l=this.Ga[d],m=f,p=this.b[1];f=a;var q=b,r=c,t=$.Wo(h),u=this.coords.xAnchor;h=this.coords.valueAnchor;var v=this.coords.secondXAnchor,w=this.coords.secondValueAnchor,x=u+(v-u)*l,y=this.j[k],B=y.stroke();v=x;u==v&&(v=u=$.R(u,t));x=$.R(x,$.Wo(B));t=GZ(u,h,v,w,this.ea);u=HZ(x,h,x,w,this.ea);t&&(m.moveTo(t[0],t[1]).lineTo(t[2],
t[3]),p.moveTo(t[0],t[1]).lineTo(t[2],t[3]));u&&(y.moveTo(u[0],u[1]).lineTo(u[2],u[3]),p.moveTo(u[0],u[1]).lineTo(u[2],u[3]));r&&this.ea.left<=x&&x<=this.ea.$a()&&(m={value:{x:x,y:h}},this.yf(k,f,q,this.Ec(l,Uha(this,x),!0),m,h<w?"center-bottom":"center-top"))}};
$.g.VF=function(a,b,c,d,e,f,h,k){var l=this.coords.xAnchor,m=this.coords.valueAnchor,p=this.coords.secondXAnchor,q=this.coords.secondValueAnchor,r=m+(q-m)*b,t=this.j[a],u=t.stroke();q=r;m==q&&(q=m=$.R(m,k));r=$.R(r,$.Wo(u));k=GZ(l,m,p,q,this.ea);m=HZ(l,r,p,r,this.ea);k&&(c.moveTo(k[0],k[1]).lineTo(k[2],k[3]),d.moveTo(k[0],k[1]).lineTo(k[2],k[3]));m&&(t.moveTo(m[0],m[1]).lineTo(m[2],m[3]),d.moveTo(m[0],m[1]).lineTo(m[2],m[3]));h&&this.ea.left<=l&&l<=this.ea.$a()&&(c={value:{x:l,y:r}},this.yf(a,e,f,
this.Ec(b,ZZ(this,r),!1),c,l<p?"right-center":"left-center"))};$.g.wk=function(){var a=a_.u.wk.call(this);if(!a){a=this.coords.xAnchor;var b=this.coords.secondXAnchor-a;a=!(0,window.isNaN)(b)&&!(a<this.ea.left&&0>=b||a>this.ea.$a()&&0<=b)}return a};$.g.hg=function(a){a_.u.hg.call(this,a);for(var b=0;b<this.j.length;b++){var c=this.Ob(this,a,b);$.n(c)||(c=this.ab(this,a,b));this.j[b].fill(null).stroke(c)}};
$.g.Ae=function(a,b){var c={sourceColor:a||this.i("color")||"blue"};if($.n(b)){c.isTimeLevel=b>=this.N.length;var d=c.isTimeLevel?this.Ga[b-this.N.length]:this.N[b];c.levelRatio=d;c.isTimeLevel?c.timeLevel=d:c.level=d}return c};
$.g.Ec=function(a,b,c){this.de||(this.de=new $.rw);a={annotation:{value:this,type:""},level:{value:a,type:"number"},levelRatio:{value:a,type:"number"},levelValue:{value:c?b:this.bb().UD(b,2),type:c?"date-time":"number"},rawLevelValue:{value:b,type:c?"date-time":"number"}};a.isTimeLevel={value:c,type:""};$.av(this.de,a);return this.de};
$.g.LN=function(){if(this.J(4096)){this.f||(this.f=[]);this.j||(this.j=[]);var a,b=this.N.length+this.Ga.length;for(a=this.f.length;a<b;a++)this.f.push(this.va.path().zIndex(0));for(a=b;a<this.f.length;a++)$.qd(this.f[a]);this.f.length=b;for(a=this.j.length;a<b;a++)this.j.push(this.va.path().zIndex(0));for(a=b;a<this.j.length;a++)$.qd(this.j[a]);this.j.length=b;this.B(2304);this.I(4096)}a_.u.LN.call(this)};$.g.RA=function(a){a_.u.RA.call(this,a);this.FO(this.i("timeLevels"))};
$.g.F=function(){var a=a_.u.F.call(this);a.timeLevels=this.FO();return a};$.g.X=function(a,b){a_.u.X.call(this,a,b);this.FO(a.timeLevels)};$.g.R=function(){a_.u.R.call(this);$.td(this.j);this.j=null;delete this.Ob};var hia=a_.prototype;hia.timeLevels=hia.FO;$.H(b_,YZ);QZ["fibonacci-retracement"]=b_;b_.prototype.type="fibonacci-retracement";b_.prototype.VF=function(a,b,c,d,e,f,h,k){var l=this.coords.secondValueAnchor,m=Math.min(this.coords.xAnchor,this.coords.secondXAnchor);k=$.R(l+(this.coords.valueAnchor-l)*b,k);if(l=GZ(m,k,m+10,k,this.ea))c.moveTo(l[0],l[1]).lineTo(l[2],l[3]),d.moveTo(l[0],l[1]).lineTo(l[2],l[3]);h&&(c={value:{x:m,y:k}},this.yf(a,e,f,this.Ec(b,ZZ(this,k),!1),c))};
b_.prototype.wk=function(){var a=b_.u.wk.call(this);a||(a=Math.min(this.coords.xAnchor,this.coords.secondXAnchor),a=!(0,window.isNaN)(a)&&a<=this.ea.$a());return a};$.H(c_,YZ);QZ["fibonacci-timezones"]=c_;c_.prototype.type="fibonacci-timezones";c_.prototype.VF=function(a,b,c,d,e,f,h,k){var l=this.coords.secondXAnchor;k=$.R(l+Math.abs(this.coords.xAnchor-l)*b,k);if(this.ea.left<=k&&k<=this.ea.$a()){l=this.ea.top;var m=this.ea.Ua();c.moveTo(k,l).lineTo(k,m);d.moveTo(k,l).lineTo(k,m);h&&(c={value:{x:k,y:m}},this.yf(a,e,f,this.Ec(b,Uha(this,k),!0),c,"left-bottom"))}};
c_.prototype.wk=function(){var a=c_.u.wk.call(this);a||(a=Math.min(this.coords.xAnchor,this.coords.secondXAnchor),a=!(0,window.isNaN)(a)&&a<=this.ea.$a());return a};$.H(d_,IZ);QZ["finite-trend-channel"]=d_;$.xq(d_,["fill","hatchFill","stroke"],"normal");$.U(d_,y_);$.U(d_,z_);$.U(d_,A_);d_.prototype.ye=7;var I_={};$.gq(I_,0,"channelWidth",$.qq);$.U(d_,I_);$.g=d_.prototype;$.g.type="finite-trend-channel";$.g.dm=function(a,b){Wha(this);this.wa[0].moveTo(a,b).lineTo(a,b)};
$.g.Jo=function(a,b,c,d){KZ(this)&&this.b&&(this.pa("channelWidth",Vha(this,(d-b)/2)),this.b=!1);Wha(this);var e=this.wa[0],f=e_(this);e.moveTo(a,b).lineTo(c,d);e.moveTo(a,b+f).lineTo(c,d+f);for(e=1;e<this.wa.length;e++){var h=this.wa[e];h.moveTo(a,b);h.lineTo.apply(h,[c,d,c,d+f,a,b+f]);h.close()}};
$.g.hg=function(a){d_.u.hg.call(this,a);this.wa[0].fill(null).stroke(this.N(this,a));this.wa[1].stroke(null).fill(this.f(this,a));this.wa[2].stroke(null).fill(this.j(this,a));this.wa[3].fill($.Ul).stroke($.Ul,2*this.hoverGap())};$.g.tI=function(){d_.u.tI.call(this);this.Ga=e_(this)};$.g.TH=function(a,b,c){if(2>a)return d_.u.TH.call(this,a,b,c);this.pa("channelWidth",Vha(this,this.Ga+c));this.B(768);this.$();return this};
$.g.yg=function(){d_.u.yg.call(this);this.wa||(this.wa=[this.va.path(),this.va.path(),this.va.path(),this.va.path()],this.wa[0].zIndex(2),this.wa[1].zIndex(0),this.wa[2].zIndex(1),this.wa[3].zIndex(3))};$.g.hC=function(){var a=d_.u.hC.call(this);if(!(0,window.isNaN)(this.coords.secondXAnchor)){var b=e_(this);b={x:(this.coords.xAnchor+this.coords.secondXAnchor)/2,y:(this.coords.valueAnchor+this.coords.secondValueAnchor)/2+b};b={x:b.x,y:b.y};a.push({value:b})}return a};
$.g.$f=function(){var a=d_.u.$f.call(this);return $.Ga(a,F_)};$.g.X=function(a,b){d_.u.X.call(this,a,b);$.zq(this,I_,a);$.zq(this,y_,a);$.zq(this,z_,a);$.zq(this,A_,a)};$.g.F=function(){var a=d_.u.F.call(this);$.Hq(this,I_,a,"Annotation");$.Hq(this,y_,a,"Annotation");$.Hq(this,z_,a,"Annotation");$.Hq(this,A_,a,"Annotation");return a};$.g.R=function(){d_.u.R.call(this);$.td(this.wa);delete this.N;delete this.f;delete this.j};$.g.kB=function(a,b){this.b=!0;d_.u.kB.call(this,a,b)};$.H(f_,IZ);$.xq(f_,["stroke"],"normal");$.U(f_,z_);QZ["horizontal-line"]=f_;$.g=f_.prototype;$.g.type="horizontal-line";$.g.ye=2;$.g.$f=function(){var a=f_.u.$f.call(this);return $.Ga(a,E_)};$.g.yg=function(){f_.u.yg.call(this);this.wa||(this.wa=[this.va.path(),this.va.path()],this.wa[0].zIndex(0),this.wa[1].zIndex(3))};$.g.dm=function(a,b){b=$.R(b,$.Wo(this.wa[0].stroke()));for(var c=0;c<this.wa.length;c++){var d=this.wa[c];d.clear();d.moveTo(this.ea.left,b).lineTo(this.ea.$a(),b)}};
$.g.hg=function(a){f_.u.hg.call(this,a);this.wa[0].fill(null).stroke(this.b(this,a));this.wa[1].fill($.Ul).stroke($.Ul,2*this.hoverGap())};$.g.F=function(){var a=f_.u.F.call(this);$.Hq(this,z_,a,"Annotation");return a};$.g.X=function(a,b){f_.u.X.call(this,a,b);$.zq(this,z_,a)};$.g.R=function(){f_.u.R.call(this);$.td(this.wa);delete this.b};$.H(g_,IZ);$.xq(g_,["fill","hatchFill","stroke"],"normal");$.U(g_,y_);$.U(g_,z_);$.U(g_,A_);QZ["horizontal-range"]=g_;$.g=g_.prototype;$.g.type="horizontal-range";$.g.ye=7;$.g.$f=function(){var a=g_.u.$f.call(this);return $.Ga(a,F_)};
$.g.ob=function(){if(this.J(64)){var a=this.Va();var b=this.bb();if(!a||!b)return!1;var c=0,d=0;a=MZ(this,b.transform(this.dd("valueAnchor"),.5));(0,window.isNaN)(a)?d|=3:c|=3;b=MZ(this,b.transform(this.dd("secondValueAnchor"),.5));(0,window.isNaN)(b)?d|=4:c|=4;var e=!1,f=null;d&3?(f="valueAnchor",e=!0,this.U=3):d&4?(f="secondValueAnchor",e=!1,this.U=7):this.U=0;this.coords.valueAnchor=a;this.coords.secondValueAnchor=b;this.ya=c;this.ba=null;this.ga=f;this.Ra=e;this.He=this.wk();(0,window.isNaN)(this.D)||
(0,window.isNaN)(this.G)||this.B(128);this.B(768);this.I(64)}this.J(128)&&((0,window.isNaN)(this.D)||(0,window.isNaN)(this.G)?this.g=this.ya:(this.ba&&(this.coords[this.ba]=this.D),this.ga&&(this.coords[this.ga]=this.G),this.g=this.ya|this.U),this.I(128),this.B(768),this.I(128));return this.He||!(0,window.isNaN)(this.D)&&!(0,window.isNaN)(this.G)};
$.g.hC=function(){var a=[],b=this.ea.left+this.ea.width/2;this.ye&this.g&3&&(a.push({x:b,y:this.coords.valueAnchor}),this.ye&this.g&4&&a.push({x:b,y:this.coords.secondValueAnchor}));return(0,$.Wa)(a,function(a){return{value:a}})};$.g.wk=function(){var a=[];a.push(this.coords.valueAnchor);a.push(this.coords.secondValueAnchor);for(var b=this.ea,c=!0,d=!0,e=0;e<a.length;e++)(0,window.isNaN)(a[e])||(c=c&&a[e]<b.top,d=d&&a[e]>b.Ua());return!c&&!d};
$.g.yg=function(){g_.u.yg.call(this);this.wa||(this.wa=[this.va.path(),this.va.path(),this.va.path(),this.va.path()],this.wa[0].zIndex(2),this.wa[1].zIndex(0),this.wa[2].zIndex(1),this.wa[3].zIndex(3))};$.g.xI=function(a){a.Kd().cursor("ns-resize")};$.g.dm=function(a,b){b=$.R(b,$.Wo(this.wa[0].stroke()));this.wa[0].clear();this.wa[0].moveTo(this.ea.left,b).lineTo(this.ea.$a(),b)};
$.g.Jo=function(a,b,c,d){a=$.Wo(this.wa[0].stroke());b=$.R(b,a);d=$.R(d,a);a=this.ea.left;c=this.ea.$a();var e=this.wa[0];e.clear().moveTo(a,b).lineTo(c,b).moveTo(a,d).lineTo(c,d);for(var f=1;f<this.wa.length;f++)e=this.wa[f],e.clear().moveTo(a,b).lineTo(c,b).lineTo(c,d).lineTo(a,d).close()};$.g.hg=function(a){g_.u.hg.call(this,a);this.wa[0].stroke(this.j(this,a)).fill(null);this.wa[1].stroke(null).fill(this.b(this,a));this.wa[2].stroke(null).fill(this.f(this,a));this.wa[3].stroke($.Ul,2*this.hoverGap()).fill($.Ul)};
$.g.F=function(){var a=g_.u.F.call(this);$.Hq(this,y_,a,"Annotation");$.Hq(this,z_,a,"Annotation");$.Hq(this,A_,a,"Annotation");return a};$.g.X=function(a,b){g_.u.X.call(this,a,b);$.zq(this,y_,a);$.zq(this,z_,a);$.zq(this,A_,a)};$.g.R=function(){g_.u.R.call(this);$.td(this.wa);delete this.j;delete this.b;delete this.f};$.H(h_,IZ);$.xq(h_,["stroke"],"normal");$.U(h_,y_);$.U(h_,z_);$.U(h_,A_);QZ["infinite-line"]=h_;$.g=h_.prototype;$.g.type="infinite-line";$.g.ye=7;$.g.$f=function(){var a=h_.u.$f.call(this);return $.Ga(a,E_)};$.g.yg=function(){h_.u.yg.call(this);this.wa||(this.wa=[this.va.path(),this.va.path()],this.wa[0].zIndex(0),this.wa[1].zIndex(3))};$.g.dm=function(a,b){for(var c=0;c<this.wa.length;c++){var d=this.wa[c];d.clear();d.moveTo(a,b).lineTo(a,b)}};
$.g.Jo=function(a,b,c,d){var e=$.Wo(this.wa[0].stroke());a==c&&(a=c=$.R(a,e));b==d&&(b=d=$.R(b,e));a=FZ(a,b,c,d,this.ea);for(b=0;b<this.wa.length;b++)c=this.wa[b],c.clear(),a&&c.moveTo(a[0],a[1]).lineTo(a[2],a[3])};$.g.hg=function(a){h_.u.hg.call(this,a);this.wa[0].fill(null).stroke(this.b(this,a));this.wa[1].fill($.Ul).stroke($.Ul,2*this.hoverGap())};$.g.wk=function(){return!0};
$.g.F=function(){var a=h_.u.F.call(this);$.Hq(this,y_,a,"Annotation");$.Hq(this,z_,a,"Annotation");$.Hq(this,A_,a,"Annotation");return a};$.g.X=function(a,b){h_.u.X.call(this,a,b);$.zq(this,y_,a);$.zq(this,z_,a);$.zq(this,A_,a)};$.g.R=function(){h_.u.R.call(this);$.td(this.wa);delete this.b};$.H(i_,IZ);$.U(i_,y_);$.U(i_,z_);$.U(i_,D_);$.xq(i_,"fontFamily fontStyle fontVariant fontWeight fontSize fontColor fontOpacity fontDecoration textShadow".split(" "),"normal");QZ.label=i_;$.g=i_.prototype;$.g.type="label";$.g.ye=3;$.g.background=function(a){this.Ka||(this.Ka=new $.ku,$.L(this.Ka,this.gg,this),$.W(this,"background",this.Ka));return $.n(a)?(this.Ka.K(a),this):this.Ka};
$.g.padding=function(a,b,c,d){this.Pa||(this.Pa=new $.tu,$.L(this.Pa,this.Pl,this),$.W(this,"padding",this.Pa));return $.n(a)?(this.Pa.K.apply(this.Pa,arguments),this):this.Pa};$.g.Pl=function(a){$.X(a,2)&&this.B(256,1)};$.g.gg=function(a){$.X(a,1)&&this.B(256,1)};$.g.$f=function(){var a=i_.u.$f.call(this);return $.Ga(a,dia)};$.g.$s=function(a){i_.u.$s.call(this,a);this.B(256)};$.g.zc=function(a,b){var c=0==b?this.Sa():1==b?this.mb():this.selected(),d=this.Sa().i(a);return(b?c.i(a):d)||d};
$.g.hC=function(){var a=[];a.push({x:this.coords.xAnchor,y:this.coords.valueAnchor},{x:this.vl.left,y:this.vl.top},{x:this.vl.$a(),y:this.vl.top},{x:this.vl.$a(),y:this.vl.Ua()},{x:this.vl.left,y:this.vl.Ua()});return(0,$.Wa)(a,function(a){return{value:a}})};
$.g.wk=function(){this.J(256)&&(this.Lh(this.state),this.On(0,0));var a=this.ea,b=Math.abs(this.vl.width),c=this.coords.xAnchor,d=this.i("anchor");j_(d)?(d=c,b=c+b):"center-top"==d||"center"==d||"center-bottom"==d?(d=c-b/2,b=c+b/2):(d=c-b,b=c);return!(b<a.left||d>a.$a())};$.g.xI=function(a,b){if(1>b)i_.u.xI.call(this,a,b);else{var c=0>this.vl.width*this.vl.height,d=c?"nesw-resize":"nwse-resize";c=c?"nwse-resize":"nesw-resize";a.Kd().cursor(b%2?d:c)}};$.g.tI=function(){i_.u.tI.call(this);this.b=this.vl.clone()};
$.g.TH=function(a,b,c){if(1>a)return i_.u.TH.call(this,a,b,c);var d=this.i("anchor");switch(a){case 1:this.Ma.width=this.b.width-b;this.Ma.height=this.b.height-c;j_(d)&&(this.coords.xAnchor=this.ka.xAnchor+b);Zha(d)&&(this.coords.valueAnchor=this.ka.valueAnchor+c);break;case 2:this.Ma.width=this.b.width+b;this.Ma.height=this.b.height-c;Yha(d)&&(this.coords.xAnchor=this.ka.xAnchor+b);Zha(d)&&(this.coords.valueAnchor=this.ka.valueAnchor+c);break;case 3:this.Ma.width=this.b.width+b;this.Ma.height=this.b.height+
c;Yha(d)&&(this.coords.xAnchor=this.ka.xAnchor+b);$ha(d)&&(this.coords.valueAnchor=this.ka.valueAnchor+c);break;case 4:this.Ma.width=this.b.width-b,this.Ma.height=this.b.height+c,j_(d)&&(this.coords.xAnchor=this.ka.xAnchor+b),$ha(d)&&(this.coords.valueAnchor=this.ka.valueAnchor+c)}this.Ma.xAnchor=this.Va().Fc((this.coords.xAnchor-this.ea.left)/this.ea.width);this.Ma.valueAnchor=this.bb().Fc((this.ea.Ua()-this.coords.valueAnchor)/this.ea.height);this.B(768);this.$();return this};
$.g.Lh=function(a){var b=this.i("text"),c=this.i("useHtml");$.n(b)&&(c?this.Sc.htmlText(b):this.Sc.text(b));this.Sc.fontFamily(this.zc("fontFamily",a,null));this.Sc.fontStyle(this.zc("fontStyle",a,null));this.Sc.fontVariant(this.zc("fontVariant",a,null));this.Sc.fontWeight(this.zc("fontWeight",a,null));this.Sc.fontSize(this.zc("fontSize",a,null));this.Sc.Lq(this.zc("fontDecoration",a,null));this.Sc.textShadow(this.zc("textShadow",a,null));this.Sc.direction(this.i("textDirection"));this.Sc.wu(this.i("wordBreak"));
this.Sc.wordWrap(this.i("wordWrap"));this.Sc.letterSpacing(this.i("letterSpacing"));this.Sc.lineHeight(this.i("lineHeight"));this.Sc.textIndent(this.i("textIndent"));this.Sc.vAlign(this.i("vAlign"));this.Sc.km(this.i("hAlign"));this.Sc.textOverflow(this.i("textOverflow"));this.Sc.rm(this.i("selectable"));this.Sc.td(this.i("disablePointerEvents"))};
$.g.yg=function(){i_.u.yg.call(this);this.Sc||(this.Sc=this.va.text(),this.Sc.zIndex(2));this.Jt||(this.Jt=this.va.rect(),this.Jt.fill($.Ul).zIndex(3));this.background().P(this.va).zIndex(0)};
$.g.On=function(a,b){var c=this.ja();var d=this.i("width");var e=this.i("height");var f=0,h=0;if(c){var k=c.width;c=c.height;null!=d?(this.yi=d=$.M(d,k),f=Math.abs(d),k=!1):(d=0,k=!0);null!=e?(this.wi=e=$.M(e,c),h=Math.abs(e),c=!1):(e=0,c=!0)}else $.wo(d)?(k=!0,d=0):(k=!1,this.yi=d=$.N(d),f=Math.abs(d)),$.wo(e)?(c=!0,e=0):(c=!1,this.wi=e=$.N(e),h=Math.abs(e));var l=this.padding();this.Sc.width(null);this.Sc.height(null);k?(this.Ym=d+=this.Sc.pb().width,this.yi=l.rk(d)):this.Ym=l.wg(f);this.Sc.width(this.Ym);
c?(this.Wm=e+=this.Sc.pb().height,this.wi=l.Jj(e)):this.Wm=l.Jh(h);this.Sc.height(this.Wm);this.ug=$.M(l.i("left"),this.yi);this.vg=$.M(l.i("top"),this.wi);k=this.i("anchor");e={x:a,y:b};d=$.xo($.gn(0,0,this.yi,this.wi),k);e.x-=d.x;e.y-=d.y;$.Qo(e,k,this.i("offsetX")||0,this.i("offsetY")||0);this.ug+=e.x-(0>this.yi?f:0);this.vg+=e.y-(0>this.wi?h:0);this.vl=new $.J(e.x,e.y,this.yi,this.wi)};
$.g.dm=function(a,b){this.Lh(this.state);this.On(a,b);this.Sc.x(this.ug);this.Sc.y(this.vg);this.Sc.clip(this.vl);this.Jt.stroke($.Ul,2*this.hoverGap()).uf(this.vl);$.V(this.background()).ja(this.vl).$().da(!1);this.B(512)};$.g.hg=function(a){i_.u.hg.call(this,a);this.Sc.color(this.zc("fontColor",a,null));this.Sc.textShadow(this.zc("textShadow",a,null));this.Sc.opacity(this.zc("fontOpacity",a,null))};
$.g.F=function(){var a=i_.u.F.call(this);$.Hq(this,D_,a,"Annotation");$.Hq(this,y_,a,"Annotation");$.Hq(this,z_,a,"Annotation");a.background=this.background().F();a.padding=this.padding().F();return a};$.g.RA=function(a){i_.u.RA.call(this,a)};$.g.X=function(a,b){i_.u.X.call(this,a,b);this.background().ia(!!b,a.background);this.padding().ia(!!b,a.padding);b?$.yq(this.ma,D_,a):$.zq(this,D_,a);$.zq(this,y_,a);$.zq(this,z_,a)};$.g.R=function(){$.td(this.Sc,this.Jt,this.Ka,this.Pa);i_.u.R.call(this)};$.H(k_,IZ);$.xq(k_,["stroke"],"normal");$.U(k_,y_);$.U(k_,z_);$.U(k_,A_);QZ.line=k_;$.g=k_.prototype;$.g.type="line";$.g.ye=7;$.g.$f=function(){var a=k_.u.$f.call(this);return $.Ga(a,E_)};$.g.yg=function(){k_.u.yg.call(this);this.wa||(this.wa=[this.va.path(),this.va.path()],this.wa[0].zIndex(0),this.wa[1].zIndex(3))};$.g.dm=function(a,b){for(var c=0;c<this.wa.length;c++){var d=this.wa[c];d.clear();d.moveTo(a,b).lineTo(a,b)}};
$.g.Jo=function(a,b,c,d){var e=$.Wo(this.wa[0].stroke());a==c&&(a=c=$.R(a,e));b==d&&(b=d=$.R(b,e));a=HZ(a,b,c,d,this.ea);for(b=0;b<this.wa.length;b++)c=this.wa[b],c.clear(),a&&c.moveTo(a[0],a[1]).lineTo(a[2],a[3])};$.g.hg=function(a){k_.u.hg.call(this,a);this.wa[0].fill(null).stroke(this.b(this,a));this.wa[1].fill($.Ul).stroke($.Ul,2*this.hoverGap())};$.g.F=function(){var a=k_.u.F.call(this);$.Hq(this,y_,a,"Annotation");$.Hq(this,z_,a,"Annotation");$.Hq(this,A_,a,"Annotation");return a};
$.g.X=function(a,b){k_.u.X.call(this,a,b);$.zq(this,y_,a);$.zq(this,z_,a);$.zq(this,A_,a)};$.g.R=function(){k_.u.R.call(this);$.td(this.wa);delete this.b};$.H(l_,IZ);$.xq(l_,["stroke","fill","hatchFill","size"],"normal");$.U(l_,y_);$.U(l_,z_);$.U(l_,C_);QZ.marker=l_;$.g=l_.prototype;$.g.type="marker";$.g.ye=3;$.g.$f=function(){return $.Ga(F_,cia)};$.g.$s=function(a){l_.u.$s.call(this,a);this.B(256)};$.g.yg=function(){l_.u.yg.call(this);this.wa||(this.wa=[this.va.path(),this.va.path(),this.va.path()],this.wa[0].zIndex(0),this.wa[1].zIndex(1),this.wa[2].zIndex(3))};
$.g.dm=function(a,b){var c;this.state&$.qo?c=this.Ca.i("size"):this.state&$.po&&(c=this.xa.i("size"));c=(0,window.isNaN)(c)?this.ca.i("size"):c;var d=$.qp(this.i("markerType")),e=this.i("anchor"),f={x:a,y:b};$.Qo(f,e,this.i("offsetX"),this.i("offsetY"));var h=c/2;switch(e){case "left-top":case "center-top":case "right-top":f.y+=h;break;case "left-bottom":case "center-bottom":case "right-bottom":f.y-=h}switch(e){case "left-top":case "left-center":case "left-bottom":f.x+=h;break;case "right-top":case "right-center":case "right-bottom":f.x-=
h}e=$.Wo(this.wa[0].stroke());for(h=0;h<this.wa.length;h++){var k=this.wa[h];k.clear();d(k,f.x,f.y,c,e)}};$.g.hg=function(a){l_.u.hg.call(this,a);this.wa[0].stroke(this.j(this,a));this.wa[0].fill(this.b(this,a));this.wa[1].stroke(null).fill(this.f(this,a));this.wa[2].fill($.Ul).stroke($.Ul,2*this.hoverGap())};$.g.F=function(){var a=l_.u.F.call(this);$.Hq(this,C_,a,"Annotation");$.Hq(this,y_,a,"Annotation");$.Hq(this,z_,a,"Annotation");return a};
$.g.X=function(a,b){l_.u.X.call(this,a,b);$.zq(this,C_,a);$.zq(this,y_,a);$.zq(this,z_,a)};$.g.R=function(){l_.u.R.call(this);$.td(this.wa);delete this.j;delete this.b;delete this.f};$.H(m_,IZ);$.xq(m_,["stroke"],"normal");$.U(m_,y_);$.U(m_,z_);$.U(m_,A_);QZ.ray=m_;$.g=m_.prototype;$.g.type="ray";$.g.ye=7;$.g.$f=function(){var a=m_.u.$f.call(this);return $.Ga(a,E_)};$.g.yg=function(){m_.u.yg.call(this);this.wa||(this.wa=[this.va.path(),this.va.path()],this.wa[0].zIndex(0),this.wa[1].zIndex(3))};$.g.dm=function(a,b){for(var c=0;c<this.wa.length;c++){var d=this.wa[c];d.clear();d.moveTo(a,b).lineTo(a,b)}};
$.g.Jo=function(a,b,c,d){var e=$.Wo(this.wa[0].stroke());a==c&&(a=c=$.R(a,e));b==d&&(b=d=$.R(b,e));a=GZ(a,b,c,d,this.ea);for(b=0;b<this.wa.length;b++)c=this.wa[b],c.clear(),a&&c.moveTo(a[0],a[1]).lineTo(a[2],a[3])};$.g.hg=function(a){m_.u.hg.call(this,a);this.wa[0].fill(null).stroke(this.b(this,a));this.wa[1].fill($.Ul).stroke($.Ul,2*this.hoverGap())};
$.g.wk=function(){var a=m_.u.wk.call(this);if(!a){a=this.coords.xAnchor;var b=this.coords.secondXAnchor-a;a=!(0,window.isNaN)(b)&&!(a<this.ea.left&&0>=b||a>this.ea.$a()&&0<=b)}return a};$.g.F=function(){var a=m_.u.F.call(this);$.Hq(this,y_,a,"Annotation");$.Hq(this,z_,a,"Annotation");$.Hq(this,A_,a,"Annotation");return a};$.g.X=function(a,b){m_.u.X.call(this,a,b);$.zq(this,y_,a);$.zq(this,z_,a);$.zq(this,A_,a)};$.g.R=function(){m_.u.R.call(this);$.td(this.wa);delete this.b};$.H(n_,IZ);$.xq(n_,["fill","hatchFill","stroke"],"normal");$.U(n_,y_);$.U(n_,z_);$.U(n_,A_);QZ.rectangle=n_;$.g=n_.prototype;$.g.type="rectangle";$.g.ye=7;$.g.$f=function(){var a=n_.u.$f.call(this);return $.Ga(a,F_)};$.g.yg=function(){n_.u.yg.call(this);this.wa||(this.wa=[this.va.path(),this.va.path(),this.va.path()],this.wa[0].zIndex(0),this.wa[1].zIndex(1),this.wa[2].zIndex(3))};$.g.dm=function(a,b){for(var c=0;c<this.wa.length;c++){var d=this.wa[c];d.clear();d.moveTo(a,b).lineTo(a,b)}};
$.g.Jo=function(a,b,c,d){var e=$.Wo(this.wa[0].stroke());a=$.R(a,e);b=$.R(b,e);c=$.R(c,e);d=$.R(d,e);for(e=0;e<this.wa.length;e++){var f=this.wa[e];f.clear();f.moveTo(a,b).lineTo(c,b).lineTo(c,d).lineTo(a,d).close()}};$.g.hg=function(a){n_.u.hg.call(this,a);this.wa[0].stroke(this.j(this,a));this.wa[0].fill(this.b(this,a));this.wa[1].stroke(null).fill(this.f(this,a));this.wa[2].fill($.Ul).stroke($.Ul,2*this.hoverGap())};
$.g.F=function(){var a=n_.u.F.call(this);$.Hq(this,y_,a,"Annotation");$.Hq(this,z_,a,"Annotation");$.Hq(this,A_,a,"Annotation");return a};$.g.X=function(a,b){n_.u.X.call(this,a,b);$.zq(this,y_,a);$.zq(this,z_,a);$.zq(this,A_,a)};$.g.R=function(){n_.u.R.call(this);$.td(this.wa);delete this.j;delete this.b;delete this.f};$.H(o_,IZ);$.xq(o_,["fill","hatchFill","stroke"],"normal");$.U(o_,y_);$.U(o_,z_);$.U(o_,A_);$.U(o_,B_);QZ["trend-channel"]=o_;$.g=o_.prototype;$.g.type="trend-channel";$.g.ye=15;$.g.$f=function(){var a=o_.u.$f.call(this);return $.Ga(a,F_)};$.g.yg=function(){o_.u.yg.call(this);this.wa||(this.wa=[this.va.path(),this.va.path(),this.va.path(),this.va.path()],this.wa[0].zIndex(2),this.wa[1].zIndex(0),this.wa[2].zIndex(1),this.wa[3].zIndex(3))};
$.g.dm=function(a,b){for(var c=0;c<this.wa.length;c++)this.wa[c].clear();this.wa[0].moveTo(a,b).lineTo(a,b);this.wa[3].moveTo(a,b).lineTo(a,b)};$.g.Jo=function(a,b,c,d){a=GZ(a,b,c,d,this.ea);for(b=0;b<this.wa.length;b++)this.wa[b].clear();a&&(this.wa[0].moveTo(a[0],a[1]).lineTo(a[2],a[3]),this.wa[3].moveTo(a[0],a[1]).lineTo(a[2],a[3]))};
$.g.eL=function(a,b,c,d,e,f){var h=this.ea.left,k=this.ea.$a();var l=this.ea.top;var m=this.ea.Ua();if(c==a)d=d-b||1,a<h&&e<h||a>k&&e>k?c=f=d=l=null:(c=FZ(a,b,a,b+d,this.ea),f=FZ(e,f,e,f+d,this.ea),b=Math.max(Math.min(a,e),h),a=Math.min(Math.max(a,e),k),d=[b,l],l=[a,l,a,m,b,m,b,l]);else{d=(d-b)/(c-a);b-=d*a;var p=f-d*e;b>p&&(f=b,b=p,p=f);a=c>a?Math.min(a,e):Math.max(a,e);e=c;e>a&&a>k||e<a&&a<h?c=f=d=l=null:(e>a?(a=Math.max(a,h),e=k):(e=Math.min(a,k),a=h),c=d*a+b,f=d*a+p,h=d*e+b,k=d*e+p,f<l&&k<l||
c>m&&h>m?c=f=d=l=null:(c=HZ(a,c,e,h,this.ea),f=HZ(a,f,e,k,this.ea),0>d?(k=Math.max(a,(m-b)/d),b=Math.min(e,(l-p)/d),c?(d=[c[0],c[1]],l=[c[2],c[3],b,c[3]]):(d=[a,l],l=[b,l]),f?l.push(b,f[3],f[0],f[1],k,f[1]):l.push(b,m,k,m)):0<d?(k=Math.max(a,(l-p)/d),b=Math.min(e,(m-b)/d),c?(d=[c[2],c[3]],l=[c[0],c[1],k,c[1]]):(d=[e,l],l=[k,l]),f?l.push(k,f[1],f[2],f[3],b,f[3]):l.push(k,m,b,m)):(l=c?c[1]:l,m=f?f[1]:m,d=[a,l],l=[e,l,e,m,a,m])))}for(m=0;m<this.wa.length;m++)this.wa[m].clear();m=this.wa[0];c&&m.moveTo(c[0],
c[1]).lineTo(c[2],c[3]);f&&m.moveTo(f[0],f[1]).lineTo(f[2],f[3]);if(d&&l)for(m=1;m<this.wa.length;m++)c=this.wa[m],c.moveTo(d[0],d[1]),c.lineTo.apply(c,l),c.close()};$.g.hg=function(a){o_.u.hg.call(this,a);this.wa[0].fill(null).stroke(this.j(this,a));this.wa[1].stroke(null).fill(this.b(this,a));this.wa[2].stroke(null).fill(this.f(this,a));this.wa[3].fill($.Ul).stroke($.Ul,2*this.hoverGap())};
$.g.wk=function(){var a=o_.u.wk.call(this);if(!a&&15==this.ya){var b=this.coords.xAnchor,c=this.coords.secondXAnchor,d=this.coords.thirdXAnchor;b!=c&&(a=c>b?Math.min(b,d):Math.max(b,d),a=!(a<this.ea.left&&c>a||a>this.ea.$a()&&c<a))}return a};$.g.F=function(){var a=o_.u.F.call(this);$.Hq(this,y_,a,"Annotation");$.Hq(this,z_,a,"Annotation");$.Hq(this,A_,a,"Annotation");$.Hq(this,B_,a,"Annotation");return a};
$.g.X=function(a,b){o_.u.X.call(this,a,b);$.zq(this,y_,a);$.zq(this,z_,a);$.zq(this,A_,a);$.zq(this,B_,a)};$.g.R=function(){o_.u.R.call(this);$.td(this.wa);delete this.j;delete this.b;delete this.f};$.H(p_,IZ);$.xq(p_,["fill","hatchFill","stroke"],"normal");$.U(p_,y_);$.U(p_,z_);$.U(p_,A_);$.U(p_,B_);QZ.triangle=p_;$.g=p_.prototype;$.g.type="triangle";$.g.ye=15;$.g.$f=function(){var a=p_.u.$f.call(this);return $.Ga(a,F_)};$.g.yg=function(){p_.u.yg.call(this);this.wa||(this.wa=[this.va.path(),this.va.path(),this.va.path()],this.wa[0].zIndex(0),this.wa[1].zIndex(1),this.wa[2].zIndex(3))};$.g.dm=function(a,b){for(var c=0;c<this.wa.length;c++){var d=this.wa[c];d.clear();d.moveTo(a,b).lineTo(a,b)}};
$.g.Jo=function(a,b,c,d){for(var e=0;e<this.wa.length;e++){var f=this.wa[e];f.clear();f.moveTo(a,b).lineTo(c,d)}};$.g.eL=function(a,b,c,d,e,f){for(var h=0;h<this.wa.length;h++){var k=this.wa[h];k.clear();k.moveTo(a,b).lineTo(c,d).lineTo(e,f).close()}};$.g.hg=function(a){p_.u.hg.call(this,a);this.wa[0].stroke(this.j(this,a));this.wa[0].fill(this.b(this,a));this.wa[1].stroke(null).fill(this.f(this,a));this.wa[2].fill($.Ul).stroke($.Ul,2*this.hoverGap())};
$.g.F=function(){var a=p_.u.F.call(this);$.Hq(this,y_,a,"Annotation");$.Hq(this,z_,a,"Annotation");$.Hq(this,A_,a,"Annotation");$.Hq(this,B_,a,"Annotation");return a};$.g.X=function(a,b){p_.u.X.call(this,a,b);$.zq(this,y_,a);$.zq(this,z_,a);$.zq(this,A_,a);$.zq(this,B_,a)};$.g.R=function(){p_.u.R.call(this);$.td(this.wa);delete this.j;delete this.b;delete this.f};$.H(q_,IZ);$.xq(q_,["stroke"],"normal");$.U(q_,y_);QZ["vertical-line"]=q_;$.g=q_.prototype;$.g.type="vertical-line";$.g.ye=1;$.g.$f=function(){var a=q_.u.$f.call(this);return $.Ga(a,E_)};$.g.yg=function(){q_.u.yg.call(this);this.wa||(this.wa=[this.va.path(),this.va.path()],this.wa[0].zIndex(0),this.wa[1].zIndex(3))};$.g.dm=function(a){a=$.R(a,$.Wo(this.wa[0].stroke()));for(var b=0;b<this.wa.length;b++){var c=this.wa[b];c.clear();c.moveTo(a,this.ea.top).lineTo(a,this.ea.Ua())}};
$.g.hg=function(a){q_.u.hg.call(this,a);this.wa[0].fill(null).stroke(this.b(this,a));this.wa[1].fill($.Ul).stroke($.Ul,2*this.hoverGap())};$.g.F=function(){var a=q_.u.F.call(this);$.Hq(this,y_,a,"Annotation");return a};$.g.X=function(a,b){q_.u.X.call(this,a,b);$.zq(this,y_,a)};$.g.R=function(){q_.u.R.call(this);$.td(this.wa);delete this.b};$.H(r_,IZ);$.xq(r_,["fill","hatchFill","stroke"],"normal");$.U(r_,y_);$.U(r_,z_);$.U(r_,A_);QZ["vertical-range"]=r_;$.g=r_.prototype;$.g.type="vertical-range";$.g.ye=7;$.g.$f=function(){var a=r_.u.$f.call(this);return $.Ga(a,F_)};
$.g.ob=function(){if(this.J(64)){var a=this.Va();var b=this.bb();if(!a||!b)return!1;var c=0,d=0;b=LZ(this,a.transform(this.dd("xAnchor"),.5));(0,window.isNaN)(b)?d|=3:c|=3;a=LZ(this,a.transform(this.dd("secondXAnchor"),.5));(0,window.isNaN)(a)?d|=4:c|=4;var e=!1,f=null;d&3?(f="xAnchor",e=!0,this.U=3):d&4?(f="secondXAnchor",e=!1,this.U=7):this.U=0;this.coords.xAnchor=b;this.coords.secondXAnchor=a;this.ya=c;this.ba=f;this.ga=null;this.Ra=e;this.He=this.wk();(0,window.isNaN)(this.D)||(0,window.isNaN)(this.G)||
this.B(128);this.B(768);this.I(64)}this.J(128)&&((0,window.isNaN)(this.D)||(0,window.isNaN)(this.G)?this.g=this.ya:(this.ba&&(this.coords[this.ba]=this.D),this.ga&&(this.coords[this.ga]=this.G),this.g=this.ya|this.U),this.I(128),this.B(768),this.I(128));return this.He||!(0,window.isNaN)(this.D)&&!(0,window.isNaN)(this.G)};
$.g.hC=function(){var a=[],b=this.ea.top+this.ea.height/2;this.ye&this.g&3&&(a.push({x:this.coords.xAnchor,y:b}),this.ye&this.g&4&&a.push({x:this.coords.secondXAnchor,y:b}));return(0,$.Wa)(a,function(a){return{value:a}})};$.g.wk=function(){var a=[];a.push(this.coords.xAnchor);a.push(this.coords.secondXAnchor);for(var b=this.ea,c=!0,d=!0,e=0;e<a.length;e++)(0,window.isNaN)(a[e])||(c=c&&a[e]<b.left,d=d&&a[e]>b.$a());return!c&&!d};
$.g.yg=function(){r_.u.yg.call(this);this.wa||(this.wa=[this.va.path(),this.va.path(),this.va.path(),this.va.path()],this.wa[0].zIndex(2),this.wa[1].zIndex(0),this.wa[2].zIndex(1),this.wa[3].zIndex(3))};$.g.xI=function(a){a.Kd().cursor("ew-resize")};$.g.dm=function(a){a=$.R(a,$.Wo(this.wa[0].stroke()));this.wa[0].clear();this.wa[0].moveTo(a,this.ea.top).lineTo(a,this.ea.Ua())};
$.g.Jo=function(a,b,c){b=$.Wo(this.wa[0].stroke());a=$.R(a,b);c=$.R(c,b);b=this.ea.top;var d=this.ea.Ua(),e=this.wa[0];e.clear().moveTo(a,b).lineTo(a,d).moveTo(c,b).lineTo(c,d);for(var f=1;f<this.wa.length;f++)e=this.wa[f],e.clear().moveTo(a,b).lineTo(c,b).lineTo(c,d).lineTo(a,d).close()};$.g.hg=function(a){r_.u.hg.call(this,a);this.wa[0].stroke(this.j(this,a)).fill(null);this.wa[1].stroke(null).fill(this.b(this,a));this.wa[2].stroke(null).fill(this.f(this,a));this.wa[3].stroke($.Ul,2*this.hoverGap()).fill($.Ul)};
$.g.F=function(){var a=r_.u.F.call(this);$.Hq(this,y_,a,"Annotation");$.Hq(this,z_,a,"Annotation");$.Hq(this,A_,a,"Annotation");return a};$.g.X=function(a,b){r_.u.X.call(this,a,b);$.zq(this,y_,a);$.zq(this,z_,a);$.zq(this,A_,a)};$.g.R=function(){r_.u.R.call(this);$.td(this.wa);delete this.j;delete this.b;delete this.f};$.H(s_,$.Y);$.g=s_.prototype;$.g.sa=$.Y.prototype.sa|192;$.g.iA=function(){for(var a=0;a<this.wf.length;a++)this.wf[a].B(64);this.j&&this.j.B(64);this.B(64)};
$.g.$=function(){if(this.Bc()){$.V(this);this.f||(this.f=$.lk(),this.f.ve("mouseover",this.$q,!1,this),this.f.ve("touchstart",this.$q,!1,this),this.f.ra("mouseover",this.Vda,!1,this),this.f.ra("mouseout",this.Uda,!1,this),this.f.ra("mousemove",this.Tda,!1,this),this.g=$.jk(0,0,0,0),this.g.cursor("crosshair"),this.g.fill($.Ul),this.g.stroke(null),this.g.ra("mouseover",this.eea,!1,this),this.N=$.jk(0,0,0,0),this.N.fill($.Ul),this.N.stroke(null),this.N.zIndex(1E3));this.J(4)&&(this.O=this.ja(),this.f.clip(this.O),
this.g.uf(this.O),this.N.uf(this.O),this.B(64),this.I(4));if(this.J(64)){for(var a=0,b=this.wf.length;a<b;a++){var c=this.wf[a];$.V(c);c.ja(this.O);c.P(this.f);c.$();c.da(!1)}this.j&&($.V(this.j),this.j.ja(this.O),this.j.P(this.f),this.j.$(),this.j.da(!1));this.I(64)}this.J(2)&&(this.f.parent(this.P()),this.B(128),this.I(2));this.J(8)&&(a=this.zIndex(),this.f.zIndex(a),this.g.zIndex(a+100),this.I(8));this.J(128)&&(this.ba?this.g.parent(this.P()):this.g.remove(),this.I(128));this.da(!1)}};
$.g.$q=function(a){this.$e||(this.$e=new w_(this),"touchstart"==a.type&&this.$e.Tj(a.Vj))};$.g.Vda=function(a){a.stopPropagation();a.f();a.preventDefault();a=a.target;for(var b;$.K(a,$.hg);){b=a.tag;if($.K(b,IZ)){this.b.Oj(b);return}a=a.parent()}this.b.Pd()};$.g.Uda=function(a){a.stopPropagation();a.f();a.preventDefault();this.b.Pd()};$.g.Tda=function(a){a.stopPropagation();a.f();a.preventDefault()};
$.g.eea=function(a){var b=this.b.b,c=b.O;c&&c!=this||(KZ(b)?PZ(this.b,!1):(this.g.ra("mouseout",this.ET,!1,this),this.g.ra("mousedown",this.CT,!1,this),$.Id($.fl,"mousemove",this.DT,!1,this),a.stopPropagation(),a.f(),a.preventDefault(),t_(this,a),this.ya=!1,b.kB(this.D,this.G),b.EB()?b.$():u_(this,b,!1)))};
$.g.ET=function(a){this.g.ac("mouseout",this.ET,!1,this);this.g.ac("mousedown",this.CT,!1,this);a.stopPropagation();a.f();a.preventDefault();t_(this,a);this.ya=!0;if(!this.U){$.Sd($.fl,"mousemove",this.DT,!1,this);a=this.b.b;a.D=window.NaN;a.G=window.NaN;a.B(128);if(a.Ja){var b=null!=a.O;a.Ja=!0;a.O=null;b&&a.B(64);a.ib(null);$.Zq(a,this.CY,this);this.j=null;this.B(64,1)}a.$()}};
$.g.CT=function(a){$.Id($.fl,"mouseup",this.FT,!1,this);a.stopPropagation();a.f();a.preventDefault();t_(this,a);this.ga=this.D;this.ka=this.G;this.U=!1;a=this.b.b;a.kB(this.D,this.G);a.$()};
$.g.FT=function(a){$.Sd($.fl,"mouseup",this.FT,!1,this);a.stopPropagation();a.preventDefault();t_(this,a);this.ka=this.ga=window.NaN;this.U=!1;a=this.b.b;a.Ja&&u_(this,a,!0);Pha(a);var b=!1;KZ(a)?b=!0:this.ya||a.kB(this.D,this.G);a.$();b&&(PZ(this.b,!1),this.b.mc().dispatchEvent({type:"annotationDrawingFinish",annotation:a}))};
$.g.DT=function(a){a.stopPropagation();a.preventDefault();t_(this,a);a=this.b.b;a.ob();!a.Ra||(0,window.isNaN)(this.ga)||(0,window.isNaN)(this.ka)||this.U?(a.kB(this.D,this.G),a.$()):16<=(this.ga-this.D)*(this.ga-this.D)+(this.ka-this.G)*(this.ka-this.G)&&(this.U=!0,a.Ja&&u_(this,a,!0),Pha(a),a.kB(this.D,this.G),a.$())};$.g.remove=function(){this.f&&(this.f.remove(),this.g.remove())};$.g.select=function(a){this.b.select(a);return this};$.g.ae=function(){this.b.ae();return this};$.g.x9=function(){return this.b.b};
$.g.lda=function(a){return this.wf[a]||null};$.g.mda=function(){return this.wf.length};$.g.XP=function(a){if(this.j==a)return this.j=null,$.qd(a),this;var b=this.b;b.b==a&&(b.b=null,PZ(b,!1));return this.C3((0,$.za)(this.wf,a))};$.g.C3=function(a){var b=this.wf[a];b&&($.Ca(this.wf,a,1),$.qd(b),this.B(64,1));return this};$.g.DY=function(){this.wf.length&&($.td(this.wf),this.wf.length=0,this.B(64,1));return this};
$.g.rd=function(a){return this.b.Eu()?($.V(this.b.mc()),a=RZ(this.b,a),u_(this,a,!0),this.b.select(a),this.b.b||($.qd(a),a=null),this.b.mc().da(!0),a):null};$.g.add=function(a){$.V(this.b.mc());a=RZ(this.b,a);u_(this,a,!0);this.b.mc().da(!0);return a};$.g.w9=function(){this.b.WP()};$.g.wha=function(a){var b=RZ(this.b,"ray");b.K(a);u_(this,b,!0);return b};$.g.line=function(a){var b=RZ(this.b,"line");b.K(a);u_(this,b,!0);return b};
$.g.Hea=function(a){var b=RZ(this.b,"infinite-line");b.K(a);u_(this,b,!0);return b};$.g.$ia=function(a){var b=RZ(this.b,"vertical-line");b.K(a);u_(this,b,!0);return b};$.g.Cea=function(a){var b=RZ(this.b,"horizontal-line");b.K(a);u_(this,b,!0);return b};$.g.aja=function(a){var b=RZ(this.b,"vertical-range");b.K(a);u_(this,b,!0);return b};$.g.Dea=function(a){var b=RZ(this.b,"horizontal-range");b.K(a);u_(this,b,!0);return b};$.g.mI=function(a){var b=RZ(this.b,"rectangle");b.K(a);u_(this,b,!0);return b};
$.g.ellipse=function(a){var b=RZ(this.b,"ellipse");b.K(a);u_(this,b,!0);return b};$.g.Qia=function(a){var b=RZ(this.b,"triangle");b.K(a);u_(this,b,!0);return b};$.g.Pia=function(a){var b=RZ(this.b,"trend-channel");b.K(a);u_(this,b,!0);return b};$.g.Zca=function(a){var b=RZ(this.b,"finite-trend-channel");b.K(a);u_(this,b,!0);return b};$.g.s9=function(a){var b=RZ(this.b,"andrews-pitchfork");b.K(a);u_(this,b,!0);return b};$.g.Uca=function(a){var b=RZ(this.b,"fibonacci-fan");b.K(a);u_(this,b,!0);return b};
$.g.Tca=function(a){var b=RZ(this.b,"fibonacci-arc");b.K(a);u_(this,b,!0);return b};$.g.Vca=function(a){var b=RZ(this.b,"fibonacci-retracement");b.K(a);u_(this,b,!0);return b};$.g.Wca=function(a){var b=RZ(this.b,"fibonacci-timezones");b.K(a);u_(this,b,!0);return b};$.g.gr=function(a){var b=RZ(this.b,"marker");b.K(a);u_(this,b,!0);return b};$.g.label=function(a){var b=RZ(this.b,"label");b.K(a);u_(this,b,!0);return b};$.g.CY=function(a){$.X(a,1)&&this.B(64,1)};
$.g.F=function(){var a=s_.u.F.call(this);a.annotationsList=v_(this);return a};$.g.Ce=function(a,b){return $.A(b)?(v_(this,b),!0):!1};$.g.X=function(a,b){s_.u.X.call(this,a,b);var c=a.annotationsList;$.A(c)&&v_(this,c)};$.g.hB=function(a){var b=this.fd?{}:{annotationsList:v_(this)},c={defaultAnnotationSettings:this.b.mc().CR()};b=$.ym(b,c)||{};return a?$.ao(b):b};$.g.GO=function(a){var b=this.hB(!1);return $.hp(b,"annotations",a)};
$.g.g0=function(a){var b;$.z(a)?b=$.bo(a):$.D(a)&&!$.E(a)&&(b=a);b=$.D(b)?b.annotationsList:b;v_(this,b);return this};$.g.jda=function(a){a=$.ep(a);this.g0(a);return this};$.g.R=function(){var a=this.b;a.f&&$.Fa(a.f,this);$.td(this.wf,this.j,this.g,this.f,this.$e,this.N);this.wf.length=0;this.N=this.$e=this.f=this.g=this.j=null;s_.u.R.call(this)};$.H(w_,$.ag);$.g=w_.prototype;
$.g.Tj=function(a){var b;if(b=!this.Ro)a:{b=$.Li(a.target,this.g.f.Ha());for(var c,d=window.NaN;$.K(b,$.hg);){c=b.tag;if(!$.wo(c))d=$.N(c);else if($.K(c,IZ)){this.b=c;(0,window.isNaN)(d)&&(d=-1);this.j=d;b=!0;break a}b=b.parent()}this.b=null;this.j=window.NaN;b=!1}b&&(KZ(this.b)?this.g.b.mc().dispatchEvent({type:"annotationChangeStart",annotation:this.b})?(w_.u.Tj.call(this,a),this.Ro&&a.stopPropagation()):(this.b=null,this.j=window.NaN,a.stopPropagation()):(this.g.b.select(this.b),this.b=null,this.j=
window.NaN))};$.g.Hq=function(){this.b.tI();this.deltaY=this.deltaX=0};$.g.Rr=function(a,b){this.g.b.mc().dispatchEvent({type:"annotationChange",annotation:this.b})&&this.b.TH(this.j,a,b)};$.g.dea=function(){this.g.b.select(this.b);var a=this.g;a.N.parent(a.f)};$.g.bea=function(){var a=this.b;this.b.B(64);this.b.$();this.b=null;this.j=window.NaN;this.g.N.remove();this.g.b.mc().dispatchEvent({type:"annotationChangeFinish",annotation:a})};var J_=s_.prototype;J_.add=J_.add;J_.startDrawing=J_.rd;
J_.cancelDrawing=J_.w9;J_.getAnnotationAt=J_.lda;J_.getAnnotationsCount=J_.mda;J_.removeAnnotation=J_.XP;J_.removeAnnotationAt=J_.C3;J_.removeAllAnnotations=J_.DY;J_.getSelectedAnnotation=J_.x9;J_.select=J_.select;J_.unselect=J_.ae;J_.ray=J_.wha;J_.line=J_.line;J_.infiniteLine=J_.Hea;J_.verticalLine=J_.$ia;J_.verticalRange=J_.aja;J_.horizontalLine=J_.Cea;J_.horizontalRange=J_.Dea;J_.rectangle=J_.mI;J_.ellipse=J_.ellipse;J_.triangle=J_.Qia;J_.trendChannel=J_.Pia;J_.finiteTrendChannel=J_.Zca;
J_.andrewsPitchfork=J_.s9;J_.fibonacciFan=J_.Uca;J_.fibonacciArc=J_.Tca;J_.fibonacciRetracement=J_.Vca;J_.fibonacciTimezones=J_.Wca;J_.marker=J_.gr;J_.label=J_.label;J_.fromJson=J_.g0;J_.toJson=J_.hB;J_.fromXml=J_.jda;J_.toXml=J_.GO;$.F("anychart.annotations.PlotController",s_);}).call(this,$)}
