if(!_.annotations){_.annotations=1;(function($){var aX=function(a,b,c,d,e){var f=e.left+e.width,h=e.top+e.height,k=(d-b)/(c-a),l,m,n=!1;if((0,window.isNaN)(k))if(a<e.left||a>f||b<e.top||b>h)n=!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?n=!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?n=!0:(q=l=a,r=e.top,m=h);else b<e.top||b>h?n=!0:(q=e.left,l=f,r=m=b);if(n)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]},bX=function(a,b,c,d,e){if(e=aX(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},cX=function(a,b,c,d,e){if(e=aX(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},dX=function(a){function b(){return new $.vw(!0,
!0,!0)}$.X.call(this);this.Ia("chart.defaultAnnotationSettings.base");this.eb=a;this.ta=this.D=null;this.state=$.Wk;this.Ea=0;this.ga=this.Te&1?"xAnchor":null;this.la=this.Te&2?"valueAnchor":null;this.rb=7<=this.Te;this.jf=!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.G=null;this.ia=new $.I(0,0,0,0);this.mc=
!0;$.R(this.xa,vga);a={};$.R(a,this.gh());this.ca=new $.Ew(this,a,$.Wk);this.ca.pa("markersFactoryConstructor",function(){return new $.vw(!0,!0)});this.ca.pa("markersAfterInitCallback",$.Lw);a={};$.R(a,this.gh());this.ya=new $.Ew(this,a,$.ln);this.ya.pa("labelsFactoryConstructor",$.Gw);this.ya.pa("markersFactoryConstructor",b);a={};$.R(a,this.gh());this.Da=new $.Ew(this,a,$.mn);this.Da.pa("labelsFactoryConstructor",$.Gw);this.Da.pa("markersFactoryConstructor",b)},eX=function(a,b,c){a.P=b;a.U=c;a.u(128)},
fX=function(a){a.mb();a.ga&&(a.La[a.ga]=a.Wa().Kc((a.P-a.ia.left)/a.ia.width));a.la&&(a.La[a.la]=a.bb().Kc((a.ia.Ra()-a.U)/a.ia.height));a.P=a.U=window.NaN;a.va=!1;a.u(64)},gX=function(a,b,c,d,e){b&&(a.coords[b]=a.G[b]+d,a.La[b]=a.Wa().Kc((a.coords[b]-a.ia.left)/a.ia.width));c&&(a.coords[c]=a.G[c]+e,a.La[c]=a.bb().Kc((a.ia.Ra()-a.coords[c])/a.ia.height))},hX=function(a){a.mb();return!a.ga&&!a.la},iX=function(a,b){return a.ia.left+b*a.ia.width},jX=function(a,b){return a.ia.Ra()-b*a.ia.height},lX=function(a,
b){if(!a)return wga;var c=b+"|"+a+"|true",d=kX[c];if(!d){switch(b){case 2:d=$.Ok;break;case 3:d=$.Pk;break;default:case 1:d=$.Qk}kX[c]=d=$.qa(xga,a,d,3==b,!0)}return d},xga=function(a,b,c,d,e,f,h){f=$.Uk(f);if(d&&f!=$.Wk){var k=e.Dc(a,f,b);c&&!0===k&&(k=b(e.eh()));if($.p(k)){if(!$.E(k))return k;if(c)return c=e.oi(),b(k.call(c,c))}}a=e.Dc(a,0,b);c&&!0===a&&(a=b(e.eh()));$.E(a)&&(c=c?e.oi():e.me(void 0,h),a=b(a.call(c,c)));k&&(c=e.me(a,h),a=b(k.call(c,c)));return a},wga=function(){return"none"},mX=
function(a){$.Wp.call(this);this.Ba=a;this.g=this.b=null;this.o=!1;this.f=[];this.lu(!1)},nX=function(a,b){if(a.o!=b){a.o=b;$.U(a.Ba);for(var c=0;c<a.f.length;c++){var d=a.f[c],e=b;d.la!=e&&(d.la=e,!e&&d.g&&(d.g.hc("mouseout",d.$R,!1,d),d.g.hc("mousedown",d.ZR,!1,d),$.Gd($.Vj,"mouseup",d.OK,!1,d),$.Gd($.Vj,"mousemove",d.OK,!1,d)),d.u(128,1))}a.Ba.da(!0)}},pX=function(a,b){if($.z(b)){var c=b;var d=void 0}else $.D(b)&&(c=b.type,d=b);c=$.ij(yga,c,"line");c=new oX[c](a);c.Ia("chart.defaultAnnotationSettings."+
$.el(c.Qa()));c.kA();c.K(d);return c},uX=function(a){dX.call(this,a);this.Ka=null;this.b=lX("stroke",2);$.R(this.xa,qX);$.R(this.xa,rX);$.R(this.xa,sX);$.R(this.xa,tX)},vX=function(a){dX.call(this,a);this.Ka=null;this.g=lX("stroke",2);this.b=lX("fill",1);this.f=lX("hatchFill",3);$.R(this.xa,qX);$.R(this.xa,rX);$.R(this.xa,sX);$.R(this.xa,tX)},wX=function(a){dX.call(this,a);this.f=this.b=null;this.o=[];this.Ma=lX("stroke",2);this.yc=lX("trend",2);this.Za=!1;$.R(this.xa,qX);$.R(this.xa,rX);$.R(this.xa,
sX);this.ca.pa("labelsAfterInitCallback",$.Kw)},xX=function(a,b){var c=a.WA().ag();c=1-(b-c.top)/c.height;return a.bb().Kc(c)},yX=function(a,b){var c=a.WA().ag();c=(b-c.left)/c.width;return a.Wa().Kc(c)},zX=function(a){wX.call(this,a)},AX=function(a){wX.call(this,a);this.ba=[];this.g=null;this.Sb=lX("grid",2)},BX=function(a){wX.call(this,a)},CX=function(a){wX.call(this,a)},DX=function(a){dX.call(this,a);this.Ka=null;this.b=lX("stroke",2);$.R(this.xa,rX)},EX=function(a){dX.call(this,a);this.Ka=null;
this.b=lX("stroke",2);$.R(this.xa,qX);$.R(this.xa,rX);$.R(this.xa,sX)},FX=function(a){dX.call(this,a);this.Ia("defaultFontSettings");$.R(this.xa,qX);$.R(this.xa,rX);$.R(this.xa,zga);$.pp(this.xa,256,16,1,1);delete this.xa.fontFamily;delete this.xa.fontStyle;delete this.xa.fontVariant;delete this.xa.fontWeight;delete this.xa.fontSize;delete this.xa.fontColor;delete this.xa.fontOpacity},GX=function(a){return"left-top"==a||"left-center"==a||"left-bottom"==a},HX=function(a){return"right-top"==a||"right-center"==
a||"right-bottom"==a},IX=function(a){return"left-top"==a||"center-top"==a||"right-top"==a},JX=function(a){return"left-bottom"==a||"center-bottom"==a||"right-bottom"==a},KX=function(a){dX.call(this,a);this.Ka=null;this.b=lX("stroke",2);$.R(this.xa,qX);$.R(this.xa,rX);$.R(this.xa,sX)},LX=function(a){dX.call(this,a);this.mc=!1;this.Ka=null;this.g=lX("stroke",2);this.b=lX("fill",1);this.f=lX("hatchFill",3);$.R(this.xa,qX);$.R(this.xa,rX);$.R(this.xa,Aga)},MX=function(a){dX.call(this,a);this.Ka=null;this.b=
lX("stroke",2);$.R(this.xa,qX);$.R(this.xa,rX);$.R(this.xa,sX)},NX=function(a){dX.call(this,a);this.Ka=null;this.g=lX("stroke",2);this.b=lX("fill",1);this.f=lX("hatchFill",3);$.R(this.xa,qX);$.R(this.xa,rX);$.R(this.xa,sX)},OX=function(a){dX.call(this,a);this.Ka=null;this.g=lX("stroke",2);this.b=lX("fill",1);this.f=lX("hatchFill",3);$.R(this.xa,qX);$.R(this.xa,rX);$.R(this.xa,sX);$.R(this.xa,tX)},PX=function(a){dX.call(this,a);this.Ka=null;this.g=lX("stroke",2);this.b=lX("fill",1);this.f=lX("hatchFill",
3);$.R(this.xa,qX);$.R(this.xa,rX);$.R(this.xa,sX);$.R(this.xa,tX)},QX=function(a){dX.call(this,a);this.Ka=null;this.b=lX("stroke",2);$.R(this.xa,qX)},RX=function(a,b){$.X.call(this);this.b=a;a.f&&a.f.push(this);this.Ea=b;this.Gf=[];this.g=this.f=null;this.la=!1;this.G=this.D=window.NaN;this.o=this.df=null},SX=function(a,b){var c=$.Ii(a.O().Ga());a.D=b.clientX-c.x;a.G=b.clientY-c.y},TX=function(a,b,c){var d=!c||b!=a.o;c?(a.Gf.push(b),a.o=null,a.f&&b.O(a.f)):a.o=b;var e=b.D!=a;b.va=!c;b.D=a;e&&b.u(64);
b.qb(a);$.L(b,a.HW,a);d&&a.u(64,1)},UX=function(a,b){if($.p(b)){$.jd(a.Gf);a.Gf.length=0;if($.B(b))for(var c=0;c<b.length;c++)TX(a,pX(a.b,b[c]),!0);return a}return(0,$.Va)(a.Gf,function(a){return a.F()})},VX=function(a){this.g=a;this.b=null;this.o=window.NaN;$.Bf.call(this,a.f.ea());this.wa("start",this.mca,!1,this);this.wa("end",this.kca,!1,this)},yga={Jka:"ray",Bs:"line",Ija:"infinite-line",Gla:"vertical-line",Hja:"horizontal-line",Z4:"rectangle",U3:"ellipse",wla:"triangle",vla:"trend-channel",
Lha:"andrews-pitchfork",sja:"fibonacci-fan",rja:"fibonacci-arc",tja:"fibonacci-retracement",uja:"fibonacci-timezones",fu:"marker",Lja:"label"},oX={},WX={};$.dp(WX,0,"color",$.Ap);$.dp(WX,0,"allowEdit",$.op);$.dp(WX,0,"hoverGap",function(a){return $.tn(a,window.NaN,!0)});var vga=[["color",16,1],["allowEdit",1024,1],["hoverGap",256,1]],XX={};$.dp(XX,0,"xAnchor",$.np);var qX=[["xAnchor",192,1]],YX={};$.dp(YX,0,"valueAnchor",$.np);var rX=[["valueAnchor",192,1]],ZX={};$.dp(ZX,0,"secondXAnchor",$.np);
$.dp(ZX,0,"secondValueAnchor",$.np);var sX=[["secondXAnchor",192,1],["secondValueAnchor",192,1]],$X={};$.dp($X,0,"thirdXAnchor",$.np);$.dp($X,0,"thirdValueAnchor",$.np);var tX=[["thirdXAnchor",192,1],["thirdValueAnchor",192,1]],aY={};$.dp(aY,0,"markerType",$.tj);$.dp(aY,0,"anchor",$.mj);$.dp(aY,0,"offsetX",$.mp);$.dp(aY,0,"offsetY",$.mp);var Aga=[["markerType",256,1],["anchor",256,1],["offsetX",256,1],["offsetY",256,1]],bY=$.hp();delete bY.fontFamily;delete bY.fontStyle;delete bY.fontVariant;delete bY.fontWeight;
delete bY.fontSize;delete bY.fontColor;delete bY.fontOpacity;$.ep(bY,[[0,"text",$.kp],[0,"anchor",$.mj],[0,"offsetX",$.mp],[0,"offsetY",$.mp],[0,"width",$.Ip],[0,"height",$.Ip]]);
var zga=[["text",256,1],["anchor",256,1],["offsetX",256,1],["offsetY",256,1],["width",256,1],["height",256,1]],cY=[["stroke",272,1]],Bga=[["grid",16,1]],Cga=[["size",256,1]],Dga=[["fontFamily",256,1],["fontStyle",256,1],["fontVariant",256,1],["fontWeight",256,1],["fontSize",256,1],["fontColor",16,1],["fontOpacity",16,1],["fontDecoration",256,1]],dY=$.Fa([["fill",16,1],["hatchFill",16,1]],cY),Ega=$.Fa(cY,[["trend",16,1]]),eY=[["labels",0,0]];$.H(dX,$.Us);$.rp(dX,["markers"],"normal");$.S(dX,WX);$.g=dX.prototype;$.g.gh=function(){return[["markers",0,0]]};$.g.Ta=function(a){return $.p(a)?(this.ca.K(a),this):this.ca};$.g.lb=function(a){return $.p(a)?(this.ya.K(a),this):this.ya};$.g.selected=function(a){return $.p(a)?(this.Da.K(a),this):this.Da};$.g.Dc=function(a,b){return(0==b?this.ca:1==b?this.ya:this.Da).i(a)};$.g.qa=$.Us.prototype.qa|2E3;$.g.ra=$.Us.prototype.ra;$.g.Te=0;var kX={};$.g=dX.prototype;$.g.tc=null;$.g.cb=null;$.g.Qa=function(){return this.type};
$.g.sc=function(){return this.eb.sc()};$.g.WA=function(){return this.D&&this.D.Ea};$.g.bb=function(a){if($.p(a)){var b=$.Vr(this.tc,a,null,15,null,this.vM,this);if(b||null===a)a=this.tc==b,b||$.Xp(this.tc,this.vM,this),(this.tc=b)&&b.da(a),a||this.u(64,1);return this}return(this.tc?this.tc:this.WA()&&this.WA().bb())||null};
$.g.Wa=function(a){if($.p(a)){var b=a&&$.E(a.Qa)&&a.Qa(),c=(b="stock-scatter-date-time"==b||"stock-ordinal-date-time"==b)?a:$.Vr(this.cb,a,null,15,null,this.vM,this);if(c||null===a)a=this.cb==c,c||$.Xp(this.cb,this.vM,this),(this.cb=c)&&!b&&c.da(a),a||this.u(64,1);return this}return this.cb||this.sc().Wa()};$.g.xU=function(){this.G=this.coords;this.coords=$.Ic(this.coords)};
$.g.uT=function(a,b,c){switch(a){case -1:this.Te&3&&(gX(this,this.Te&1?"xAnchor":null,this.Te&2?"valueAnchor":null,b,c),this.Te&7&&(gX(this,"secondXAnchor","secondValueAnchor",b,c),this.Te&15&&gX(this,"thirdXAnchor","thirdValueAnchor",b,c)));break;case 0:gX(this,this.Te&1?"xAnchor":null,this.Te&2?"valueAnchor":null,b,c);break;case 1:gX(this,"secondXAnchor","secondValueAnchor",b,c);break;case 2:gX(this,"thirdXAnchor","thirdValueAnchor",b,c)}this.u(768);this.X();return this};
$.g.Es=function(a){this.state=a;this.u(528)};
$.g.mb=function(){if(this.J(64)){var a=this.Wa();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.Te&1&&(k=iX(this,a.transform(this.md("xAnchor"),.5)),(0,window.isNaN)(k)?m|=1:l|=1);this.Te&2&&(c=jX(this,b.transform(this.md("valueAnchor"),.5)),(0,window.isNaN)(c)?m|=2:l|=2);this.Te&4&&(d=iX(this,a.transform(this.md("secondXAnchor"),.5)),e=jX(this,b.transform(this.md("secondValueAnchor"),.5)),(0,window.isNaN)(d)||(0,window.isNaN)(e)?m|=4:l|=4);this.Te&8&&
(f=iX(this,a.transform(this.md("thirdXAnchor"),.5)),h=jX(this,b.transform(this.md("thirdValueAnchor"),.5)),(0,window.isNaN)(f)||(0,window.isNaN)(h)?m|=8:l|=8);a=!1;var n=b=null;m&3?(b=this.Te&1?"xAnchor":null,n=this.Te&2?"valueAnchor":null,a=3<this.Te,this.Ja=this.Te&3):m&4?(b="secondXAnchor",n="secondValueAnchor",a=7<this.Te,this.Ja=4):m&8?(b="thirdXAnchor",n="thirdValueAnchor",this.Ja=8):this.Ja=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.Ea=l;this.ga=b;this.la=n;this.rb=a;this.jf=this.im();(0,window.isNaN)(this.P)||(0,window.isNaN)(this.U)||this.u(128);this.u(768);this.I(64)}this.J(128)&&((0,window.isNaN)(this.P)||(0,window.isNaN)(this.U)?this.N=this.Ea:(this.ga&&(this.coords[this.ga]=this.P),this.la&&(this.coords[this.la]=this.U),this.N=this.Ea|this.Ja),this.u(768),this.I(128));return this.jf||!(0,window.isNaN)(this.P)&&!(0,window.isNaN)(this.U)};
$.g.im=function(){var a=this.ia;if(2==this.Te){var b=this.coords.valueAnchor;return b>=a.top&&b<=a.Ra()}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.X=function(){if(!this.xc())return this;$.U(this);this.J(4)&&(this.ia=this.sb(),this.u(64),this.I(4));this.Uh();var a=this.mb();this.mM();this.J(16)&&(this.sh(this.state),this.I(16));if(this.J(256)){if(a)15==this.Te&&15==this.N?this.PJ(this.coords.xAnchor,this.coords.valueAnchor,this.coords.secondXAnchor,this.coords.secondValueAnchor,this.coords.thirdXAnchor,this.coords.thirdValueAnchor):7<=this.Te&&7<=this.N?this.xr(this.coords.xAnchor,this.coords.valueAnchor,this.coords.secondXAnchor,this.coords.secondValueAnchor):
(3<=this.Te&&3<=this.N||this.N==this.Te)&&this.Jn(this.coords.xAnchor,this.coords.valueAnchor);else return this.remove(),this.u(2),this.da(!1),this;this.I(256)}this.J(1024)&&(this.ta.td(!this.i("allowEdit")),this.I(1024));if(this.J(512)){if(this.mc){a=this.Ta().Gb();var b=this.lb().Gb().enabled()||this.selected().Gb().enabled();$.U(a);!1!==a.enabled()||b?(a.O(this.ta),a.clear(),a.fa(this.ia),a.Ch=5,this.LJ(this.state)):(a.clear(),a.O(null));a.X();a.da(!1)}this.I(512)}this.J(8)&&(this.ta.zIndex(this.zIndex()),
this.I(8));this.J(2)&&(this.ta.parent(this.O()),this.I(2));this.da(!1);return this};$.g.mM=function(){};$.g.xc=function(){var a=dX.B.xc.call(this);!a||this.D&&this.Wa()&&this.bb()||(this.remove(),this.u(2),a=!1);return a};$.g.remove=function(){this.ta&&this.ta.remove();var a=this.Ta().Gb();a.remove();a.u(2)};$.g.Uh=function(){this.ta||(this.ta=$.Zi(),this.ta.cursor("move"),this.ta.tag=this)};$.g.Jn=function(){};$.g.xr=function(a,b){this.Jn(a,b)};$.g.PJ=function(a,b,c,d){this.xr(a,b,c,d)};$.g.sh=function(){};
$.g.me=function(a){return{sourceColor:a||this.i("color")||"blue"}};$.g.oi=function(){return{sourceHatchFill:this.eh()}};$.g.eh=function(){return $.Wb("diagonal-brick")};$.g.vM=function(a){$.W(a,2)&&this.u(64,1)};$.g.Io=function(a){$.W(a,1)&&this.u(512,1)};$.g.KU=$.ia;
$.g.LJ=function(a){var b=this.Ta().Gb();a=$.Uk(a);switch(a){case $.ln:a=this.lb().Gb();break;case $.mn:a=this.selected().Gb();break;default:a=null}if(a&&null!==a.enabled()?a.enabled():b.enabled())for(var c=this.rY(),d=0;d<c.length;d++){var e=c[d],f=b.Bq(d);f?f.Cc(e):f=b.add(e,d);f.yi();$.yw(f,a||b);f.gd();f.X();this.KU(f,d)}else b.clear()};
$.g.rY=function(){var a=[];if(1==this.Te){var b=this.coords.xAnchor;(0,window.isNaN)(b)||a.push({x:b,y:this.ia.top+this.ia.height/2})}else 2==this.Te?(b=this.coords.valueAnchor,(0,window.isNaN)(b)||a.push({x:this.ia.left+this.ia.width/2,y:b})):this.Te&this.N&3&&(a.push({x:this.coords.xAnchor,y:this.coords.valueAnchor}),this.Te&this.N&4&&(a.push({x:this.coords.secondXAnchor,y:this.coords.secondValueAnchor}),this.Te&this.N&8&&a.push({x:this.coords.thirdXAnchor,y:this.coords.thirdValueAnchor})));return(0,$.Va)(a,
function(a){return{value:a}})};$.g.select=function(){this.D.b.select(this)};$.g.Pd=function(){this.D.b.Pd()};$.g.jh=function(a){return null!=this.La[a]};$.g.kA=function(){"label"==$.el(this.Qa())&&this.ca.Ia("defaultFontSettings");$.V(this,"normal",this.ca);this.ca.ja(!0,{});$.V(this,"hovered",this.ya);this.ya.ja(!0,{});$.V(this,"selected",this.Da);this.Da.ja(!0,{})};
$.g.F=function(){var a=dX.B.F.call(this);a.type=this.Qa();$.Bp(this,WX,a,"Annotation");a.normal=this.ca.F();a.hovered=this.ya.F();a.selected=this.Da.F();return a};$.g.Y=function(a,b){dX.B.Y.call(this,a,b);$.tp(this,WX,a);this.ca.ja(!!b,a);this.ca.ja(!!b,a.normal);this.ya.ja(!!b,a.hovered);this.Da.ja(!!b,a.selected)};$.g.R=function(){$.hd(this.ta);this.ta=null;delete this.eb;this.tc=this.cb=this.D=null;delete this.La;delete this.ma;dX.B.R.call(this)};var fY=dX.prototype;fY.getType=fY.Qa;
fY.getChart=fY.sc;fY.getPlot=fY.WA;fY.yScale=fY.bb;fY.xScale=fY.Wa;fY.select=fY.select;fY.normal=fY.Ta;fY.hovered=fY.lb;fY.selected=fY.selected;$.H(mX,$.Wp);$.g=mX.prototype;$.g.sc=function(){return this.Ba};$.g.xj=function(a){this.b!=a&&this.g!=a&&(this.Cd(),a.Es($.ln),this.lu()&&a.X());this.g=a};$.g.Cd=function(){this.g&&(this.g!=this.b&&(this.g.Es($.Wk),this.lu()&&this.g.X()),this.g=null)};$.g.select=function(a){if(this.b!=a){this.Pd();if(this.b)return this;this.Ba.dispatchEvent({type:"annotationSelect",annotation:a})&&(this.b=a,a.Es($.mn),this.lu()&&hX(a)?a.X():nX(this,!0))}return this};
$.g.Pd=function(){this.b&&this.Ba.dispatchEvent({type:"annotationUnselect",annotation:this.b})&&(this.b.Es(this.g==this.b?$.ln:$.Wk),this.lu()&&this.b.X(),this.b=null,nX(this,!1));return this};$.g.S6=function(){return this.b};$.g.lu=function(a){return $.p(a)?(this.D=!!a,this):this.D};$.g.T6=function(){for(var a=0;a<this.f.length;a++)this.f[a].IW();return this};$.g.U6=function(a){var b=a.D;this.b==a&&(this.b=null,nX(this,!1));b?b.uO(a):$.hd(a);return this};
$.g.od=function(a){return this.lu()?(this.tO(),a=pX(this,a),this.select(a),this.b||($.hd(a),a=null),a):null};$.g.tO=function(){$.U(this.Ba);if(this.b&&!hX(this.b)){var a=this.b.D;a?a.uO(this.b):$.hd(this.b);this.b=null}nX(this,!1);this.Ba.da(!0)};$.g.R=function(){$.jd(this.f);this.f=null;mX.B.R.call(this)};var gY=mX.prototype;gY.startDrawing=gY.od;gY.cancelDrawing=gY.tO;gY.getSelectedAnnotation=gY.S6;gY.removeAnnotation=gY.U6;gY.removeAllAnnotations=gY.T6;gY.select=gY.select;gY.unselect=gY.Pd;
$.F("anychart.annotations.ChartController",mX);$.H(uX,dX);$.rp(uX,["stroke"],"normal");$.S(uX,XX);$.S(uX,YX);$.S(uX,ZX);$.S(uX,$X);oX["andrews-pitchfork"]=uX;$.g=uX.prototype;$.g.type="andrews-pitchfork";$.g.Te=15;$.g.gh=function(){var a=uX.B.gh.call(this);return $.Fa(a,cY)};$.g.Uh=function(){uX.B.Uh.call(this);this.Ka||(this.Ka=[this.ta.path(),this.ta.path()],this.Ka[0].zIndex(0),this.Ka[1].zIndex(3))};$.g.Jn=function(a,b){for(var c=0;c<this.Ka.length;c++){var d=this.Ka[c];d.clear();d.moveTo(a,b).lineTo(a,b)}};
$.g.xr=function(a,b,c,d){for(var e=0;e<this.Ka.length;e++){var f=this.Ka[e];f.clear();f.moveTo(a,b).lineTo(a,b);f.moveTo(c,d).lineTo(c,d)}};
$.g.PJ=function(a,b,c,d,e,f){var h=(c+e)/2-a,k=(d+f)/2-b;h||k||(h=10);a=bX(a,b,a+h,b+k,this.ia);b=bX(c,d,c+h,d+k,this.ia);h=bX(e,f,e+h,f+k,this.ia);c=cX(c,d,e,f,this.ia);for(d=0;d<this.Ka.length;d++)e=this.Ka[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.sh=function(a){uX.B.sh.call(this,a);this.Ka[0].fill(null).stroke(this.b(this,a));this.Ka[1].fill($.Rk).stroke($.Rk,2*this.hoverGap())};$.g.im=function(){var a=uX.B.im.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.ia.left&&0>=b||a>this.ia.$a()&&0<=b)}return a};
$.g.F=function(){var a=uX.B.F.call(this);$.Bp(this,XX,a,"Annotation");$.Bp(this,YX,a,"Annotation");$.Bp(this,ZX,a,"Annotation");$.Bp(this,$X,a,"Annotation");return a};$.g.Y=function(a,b){$.tp(this,XX,a);$.tp(this,YX,a);$.tp(this,ZX,a);$.tp(this,$X,a);uX.B.Y.call(this,a,b)};$.g.R=function(){uX.B.R.call(this);$.jd(this.Ka);delete this.b};$.H(vX,dX);$.rp(vX,["fill","hatchFill","stroke"],"normal");$.S(vX,XX);$.S(vX,YX);$.S(vX,ZX);$.S(vX,$X);oX.ellipse=vX;$.g=vX.prototype;$.g.type="ellipse";$.g.Te=7;$.g.gh=function(){var a=vX.B.gh.call(this);return $.Fa(a,dY)};$.g.Uh=function(){vX.B.Uh.call(this);this.Ka||(this.Ka=[this.ta.path(),this.ta.path(),this.ta.path()],this.Ka[0].zIndex(0),this.Ka[1].zIndex(1),this.Ka[2].zIndex(3))};$.g.Jn=function(a,b){for(var c=0;c<this.Ka.length;c++){var d=this.Ka[c];d.clear();d.moveTo(a,b).lineTo(a,b)}};
$.g.xr=function(a,b,c,d){var e=(b+d)/2;c=(a-c)/2;b=(b-d)/2;for(d=0;d<this.Ka.length;d++){var f=this.Ka[d];f.clear();f.moveTo(a,e);f.arcTo(c,b,0,360)}};$.g.sh=function(a){vX.B.sh.call(this,a);this.Ka[0].stroke(this.g(this,a));this.Ka[0].fill(this.b(this,a));this.Ka[1].stroke(null).fill(this.f(this,a));this.Ka[2].fill($.Rk).stroke($.Rk,2*this.hoverGap())};$.g.F=function(){var a=vX.B.F.call(this);$.Bp(this,XX,a,"Annotation");$.Bp(this,YX,a,"Annotation");$.Bp(this,ZX,a,"Annotation");return a};
$.g.Y=function(a,b){vX.B.Y.call(this,a,b);$.tp(this,XX,a);$.tp(this,YX,a);$.tp(this,ZX,a)};$.g.R=function(){vX.B.R.call(this);$.jd(this.Ka);delete this.g;delete this.b;delete this.f};$.H(wX,dX);$.rp(wX,["stroke","trend","labels"],"normal");$.S(wX,XX);$.S(wX,YX);$.S(wX,ZX);$.g=wX.prototype;$.g.qa=dX.prototype.qa|6144;$.g.Te=7;$.g.lI=function(a){if($.p(a)){if($.B(a)){for(var b=this.o.length=0;b<a.length;b++){var c=$.N(a[b]);(0,window.isNaN)(c)||this.o.push(c)}this.u(6400,1)}return this}return $.Ia(this.o,0)};$.g.gh=function(){var a=wX.B.gh.call(this);return $.Fa(a,eY,Ega,eY)};$.g.Es=function(a){wX.B.Es.call(this,a);this.u(2048)};
$.g.Uh=function(){wX.B.Uh.call(this);this.b||(this.b=[this.ta.path(),this.ta.path()],this.b[0].zIndex(2),this.b[1].zIndex(3))};
$.g.mM=function(){if(this.J(4096)){this.f||(this.f=[]);var a;for(a=this.f.length;a<this.o.length;a++)this.f.push(this.ta.path().zIndex(0));for(a=this.o.length;a<this.f.length;a++)$.hd(this.f[a]);this.f.length=this.o.length;this.u(2304);this.I(4096)}this.J(256)&&this.u(2048);if(this.J(2048)){this.Za=!1;a=this.Ta().labels();var b=this.lb().labels().enabled()||this.selected().labels().enabled();$.U(a);7!=this.N||!1===a.enabled()&&!b?(a.clear(),a.O(null)):(a.O(this.ta),a.clear(),a.fa(this.ia),a.Ch=4,
this.Za=!0,this.u(256));a.X();(b=a.Ul())&&b.td(!0);a.da(!1);this.I(2048)}};$.g.Jn=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.xr=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.Ta().labels();var h;this.state&$.mn?h=this.selected().labels():this.state&$.ln?h=this.lb().labels():h=null;b=!this.Za||h&&null!==h.enabled()?h.enabled():a.enabled();$.U(a);this.yQ(a,h,b);b||a.clear();a.X();a.da(!1)};
$.g.yQ=function(a,b,c){for(var d=0;d<this.o.length;d++){var e=this.f[d],f=e.stroke();this.jF(d,this.o[d],e,this.b[1],a,b,c,$.Tn(f))}};$.g.jF=function(){};$.g.sh=function(a){wX.B.sh.call(this,a);var b=this.yc(this,a);$.p(b)||(b=this.Ma(this,a));this.b[0].fill(null).stroke(b);this.b[1].fill($.Rk).stroke($.Rk,2*this.hoverGap());for(b=0;b<this.f.length;b++)this.f[b].fill(null).stroke(this.Ma(this,a,b))};$.g.me=function(a,b){var c=wX.B.me.call(this,a,b);$.p(b)&&(c.level=this.o[b]);return c};
$.g.Fd=function(a){$.W(a,1)&&this.u(2048,1)};$.g.Ec=function(a,b,c){this.Td||(this.Td=new $.$u);$.Lt(this.Td,{annotation:{value:this,type:""},level:{value:a,type:"number"},levelValue:{value:c?b:this.bb().dD(b,2),type:c?"date-time":"number"},rawLevelValue:{value:b,type:c?"date-time":"number"}});return this.Td};
$.g.pf=function(a,b,c,d,e,f){if(d&&e){var h=b.Wd(a);h?(h.Nf(d),h.Cc(e)):h=b.add(d,e,a);h.yi();$.yt(h,c);f&&h.Dk(f);h.X();if((a=b.Qk(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.kA=function(a){wX.B.kA.call(this,a);this.lI(this.i("levels"))};$.g.F=function(){var a=wX.B.F.call(this);a.levels=this.lI();$.Bp(this,XX,a,"Annotation");$.Bp(this,YX,a,"Annotation");$.Bp(this,ZX,a,"Annotation");return a};
$.g.Y=function(a,b){wX.B.Y.call(this,a,b);this.lI(a.levels);$.tp(this,XX,a);$.tp(this,YX,a);$.tp(this,ZX,a)};$.g.R=function(){wX.B.R.call(this);$.jd(this.b);$.jd(this.f);this.f=this.b=null;delete this.Ma;delete this.yc};var hY=wX.prototype;hY.levels=hY.lI;$.H(zX,wX);oX["fibonacci-arc"]=zX;zX.prototype.type="fibonacci-arc";zX.prototype.jF=function(a,b,c,d,e,f,h){var k=this.coords.valueAnchor,l=this.coords.secondXAnchor,m=this.coords.secondValueAnchor,n=m+b*(k-m),q=$.Wl(l+b*(this.coords.xAnchor-l),n,l,m);n<m?(c.je(l,m,q,q,180,180),d.je(l,m,q,q,180,180)):(c.je(l,m,q,q,0,180),d.je(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.pf(a,e,f,this.Ec(b,xX(this,d),!1),{value:l},c))};
zX.prototype.im=function(){var a=zX.B.im.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.o);b=$.Wl(a+e*(b-a),d+e*(c-d),a,d);a=!(0,window.isNaN)(b)&&!(a+b<this.ia.left||a-b>this.ia.$a())}return a};$.H(AX,wX);$.rp(AX,["grid"],"normal");oX["fibonacci-fan"]=AX;$.g=AX.prototype;$.g.type="fibonacci-fan";$.g.fN=function(a){if($.p(a)){if($.B(a)){for(var b=this.ba.length=0;b<a.length;b++){var c=$.N(a[b]);(0,window.isNaN)(c)||this.ba.push(c)}this.u(6400,1)}return this}return $.Ia(this.ba,0)};$.g.gh=function(){var a=AX.B.gh.call(this);return $.Fa(a,Bga)};
$.g.yQ=function(a,b,c){var d,e;for(d=0;d<this.g.length;d++)this.g[d].clear();AX.B.yQ.call(this,a,b,c);d=0;for(e=this.o.length;d<this.ba.length;d++,e++){var f=this.f[e],h=f.stroke(),k=e,l=this.ba[d],m=f,n=this.b[1];f=a;var q=b,r=c,t=$.Tn(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.g[k],A=y.stroke();v=x;u==v&&(v=u=$.O(u,t));x=$.O(x,$.Tn(A));t=bX(u,h,v,w,this.ia);u=cX(x,h,x,w,this.ia);t&&(m.moveTo(t[0],t[1]).lineTo(t[2],
t[3]),n.moveTo(t[0],t[1]).lineTo(t[2],t[3]));u&&(y.moveTo(u[0],u[1]).lineTo(u[2],u[3]),n.moveTo(u[0],u[1]).lineTo(u[2],u[3]));r&&this.ia.left<=x&&x<=this.ia.$a()&&(m={value:{x:x,y:h}},this.pf(k,f,q,this.Ec(l,yX(this,x),!0),m,h<w?"center-bottom":"center-top"))}};
$.g.jF=function(a,b,c,d,e,f,h,k){var l=this.coords.xAnchor,m=this.coords.valueAnchor,n=this.coords.secondXAnchor,q=this.coords.secondValueAnchor,r=m+(q-m)*b,t=this.g[a],u=t.stroke();q=r;m==q&&(q=m=$.O(m,k));r=$.O(r,$.Tn(u));k=bX(l,m,n,q,this.ia);m=cX(l,r,n,r,this.ia);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.ia.left<=l&&l<=this.ia.$a()&&(c={value:{x:l,y:r}},this.pf(a,e,f,
this.Ec(b,xX(this,r),!1),c,l<n?"right-center":"left-center"))};$.g.im=function(){var a=AX.B.im.call(this);if(!a){a=this.coords.xAnchor;var b=this.coords.secondXAnchor-a;a=!(0,window.isNaN)(b)&&!(a<this.ia.left&&0>=b||a>this.ia.$a()&&0<=b)}return a};$.g.sh=function(a){AX.B.sh.call(this,a);for(var b=0;b<this.g.length;b++){var c=this.Sb(this,a,b);$.p(c)||(c=this.Ma(this,a,b));this.g[b].fill(null).stroke(c)}};
$.g.me=function(a,b){var c={sourceColor:a||this.i("color")||"blue"};if($.p(b)){c.isTimeLevel=b>=this.o.length;var d=c.isTimeLevel?this.ba[b-this.o.length]:this.o[b];c.levelRatio=d;c.isTimeLevel?c.timeLevel=d:c.level=d}return c};
$.g.Ec=function(a,b,c){this.Td||(this.Td=new $.$u);a={annotation:{value:this,type:""},level:{value:a,type:"number"},levelRatio:{value:a,type:"number"},levelValue:{value:c?b:this.bb().dD(b,2),type:c?"date-time":"number"},rawLevelValue:{value:b,type:c?"date-time":"number"}};a.isTimeLevel={value:c,type:""};$.Lt(this.Td,a);return this.Td};
$.g.mM=function(){if(this.J(4096)){this.f||(this.f=[]);this.g||(this.g=[]);var a,b=this.o.length+this.ba.length;for(a=this.f.length;a<b;a++)this.f.push(this.ta.path().zIndex(0));for(a=b;a<this.f.length;a++)$.hd(this.f[a]);this.f.length=b;for(a=this.g.length;a<b;a++)this.g.push(this.ta.path().zIndex(0));for(a=b;a<this.g.length;a++)$.hd(this.g[a]);this.g.length=b;this.u(2304);this.I(4096)}AX.B.mM.call(this)};$.g.kA=function(a){AX.B.kA.call(this,a);this.fN(this.i("timeLevels"))};
$.g.F=function(){var a=AX.B.F.call(this);a.timeLevels=this.fN();return a};$.g.Y=function(a,b){AX.B.Y.call(this,a,b);this.fN(a.timeLevels)};$.g.R=function(){AX.B.R.call(this);$.jd(this.g);this.g=null;delete this.Sb};var iY=AX.prototype;iY.timeLevels=iY.fN;$.H(BX,wX);oX["fibonacci-retracement"]=BX;BX.prototype.type="fibonacci-retracement";BX.prototype.jF=function(a,b,c,d,e,f,h,k){var l=this.coords.secondValueAnchor,m=Math.min(this.coords.xAnchor,this.coords.secondXAnchor);k=$.O(l+(this.coords.valueAnchor-l)*b,k);if(l=bX(m,k,m+10,k,this.ia))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.pf(a,e,f,this.Ec(b,xX(this,k),!1),c))};
BX.prototype.im=function(){var a=BX.B.im.call(this);a||(a=Math.min(this.coords.xAnchor,this.coords.secondXAnchor),a=!(0,window.isNaN)(a)&&a<=this.ia.$a());return a};$.H(CX,wX);oX["fibonacci-timezones"]=CX;CX.prototype.type="fibonacci-timezones";CX.prototype.jF=function(a,b,c,d,e,f,h,k){var l=this.coords.secondXAnchor;k=$.O(l+Math.abs(this.coords.xAnchor-l)*b,k);if(this.ia.left<=k&&k<=this.ia.$a()){l=this.ia.top;var m=this.ia.Ra();c.moveTo(k,l).lineTo(k,m);d.moveTo(k,l).lineTo(k,m);h&&(c={value:{x:k,y:m}},this.pf(a,e,f,this.Ec(b,yX(this,k),!0),c,"left-bottom"))}};
CX.prototype.im=function(){var a=CX.B.im.call(this);a||(a=Math.min(this.coords.xAnchor,this.coords.secondXAnchor),a=!(0,window.isNaN)(a)&&a<=this.ia.$a());return a};$.H(DX,dX);$.rp(DX,["stroke"],"normal");$.S(DX,YX);oX["horizontal-line"]=DX;$.g=DX.prototype;$.g.type="horizontal-line";$.g.Te=2;$.g.gh=function(){var a=DX.B.gh.call(this);return $.Fa(a,cY)};$.g.Uh=function(){DX.B.Uh.call(this);this.Ka||(this.Ka=[this.ta.path(),this.ta.path()],this.Ka[0].zIndex(0),this.Ka[1].zIndex(3))};$.g.Jn=function(a,b){b=$.O(b,$.Tn(this.Ka[0].stroke()));for(var c=0;c<this.Ka.length;c++){var d=this.Ka[c];d.clear();d.moveTo(this.ia.left,b).lineTo(this.ia.$a(),b)}};
$.g.sh=function(a){DX.B.sh.call(this,a);this.Ka[0].fill(null).stroke(this.b(this,a));this.Ka[1].fill($.Rk).stroke($.Rk,2*this.hoverGap())};$.g.F=function(){var a=DX.B.F.call(this);$.Bp(this,YX,a,"Annotation");return a};$.g.Y=function(a,b){DX.B.Y.call(this,a,b);$.tp(this,YX,a)};$.g.R=function(){DX.B.R.call(this);$.jd(this.Ka);delete this.b};$.H(EX,dX);$.rp(EX,["stroke"],"normal");$.S(EX,XX);$.S(EX,YX);$.S(EX,ZX);oX["infinite-line"]=EX;$.g=EX.prototype;$.g.type="infinite-line";$.g.Te=7;$.g.gh=function(){var a=EX.B.gh.call(this);return $.Fa(a,cY)};$.g.Uh=function(){EX.B.Uh.call(this);this.Ka||(this.Ka=[this.ta.path(),this.ta.path()],this.Ka[0].zIndex(0),this.Ka[1].zIndex(3))};$.g.Jn=function(a,b){for(var c=0;c<this.Ka.length;c++){var d=this.Ka[c];d.clear();d.moveTo(a,b).lineTo(a,b)}};
$.g.xr=function(a,b,c,d){var e=$.Tn(this.Ka[0].stroke());a==c&&(a=c=$.O(a,e));b==d&&(b=d=$.O(b,e));a=aX(a,b,c,d,this.ia);for(b=0;b<this.Ka.length;b++)c=this.Ka[b],c.clear(),a&&c.moveTo(a[0],a[1]).lineTo(a[2],a[3])};$.g.sh=function(a){EX.B.sh.call(this,a);this.Ka[0].fill(null).stroke(this.b(this,a));this.Ka[1].fill($.Rk).stroke($.Rk,2*this.hoverGap())};$.g.im=function(){return!0};
$.g.F=function(){var a=EX.B.F.call(this);$.Bp(this,XX,a,"Annotation");$.Bp(this,YX,a,"Annotation");$.Bp(this,ZX,a,"Annotation");return a};$.g.Y=function(a,b){EX.B.Y.call(this,a,b);$.tp(this,XX,a);$.tp(this,YX,a);$.tp(this,ZX,a)};$.g.R=function(){EX.B.R.call(this);$.jd(this.Ka);delete this.b};$.H(FX,dX);$.S(FX,XX);$.S(FX,YX);$.S(FX,bY);$.rp(FX,"fontFamily fontStyle fontVariant fontWeight fontSize fontColor fontOpacity fontDecoration".split(" "),"normal");oX.label=FX;$.g=FX.prototype;$.g.type="label";$.g.Te=3;$.g.background=function(a){this.Ha||(this.Ha=new $.Ws,$.L(this.Ha,this.Qf,this),$.V(this,"background",this.Ha));return $.p(a)?(this.Ha.K(a),this):this.Ha};
$.g.padding=function(a,b,c,d){this.Oa||(this.Oa=new $.dt,$.L(this.Oa,this.Cl,this),$.V(this,"padding",this.Oa));return $.p(a)?(this.Oa.K.apply(this.Oa,arguments),this):this.Oa};$.g.Cl=function(a){$.W(a,2)&&this.u(256,1)};$.g.Qf=function(a){$.W(a,1)&&this.u(256,1)};$.g.gh=function(){var a=FX.B.gh.call(this);return $.Fa(a,Dga)};$.g.Es=function(a){FX.B.Es.call(this,a);this.u(256)};$.g.Dc=function(a,b){var c=0==b?this.Ta():1==b?this.lb():this.selected(),d=this.Ta().i(a);return(b?c.i(a):d)||d};
$.g.rY=function(){var a=[];a.push({x:this.coords.xAnchor,y:this.coords.valueAnchor},{x:this.gl.left,y:this.gl.top},{x:this.gl.$a(),y:this.gl.top},{x:this.gl.$a(),y:this.gl.Ra()},{x:this.gl.left,y:this.gl.Ra()});return(0,$.Va)(a,function(a){return{value:a}})};
$.g.im=function(){this.J(256)&&(this.Bh(this.state),this.zn(0,0));var a=this.ia,b=Math.abs(this.gl.width),c=this.coords.xAnchor,d=this.i("anchor");GX(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.KU=function(a,b){if(1>b)FX.B.KU.call(this,a,b);else{var c=0>this.gl.width*this.gl.height,d=c?"nesw-resize":"nwse-resize";c=c?"nwse-resize":"nesw-resize";a.Kd().cursor(b%2?d:c)}};$.g.xU=function(){FX.B.xU.call(this);this.b=this.gl.clone()};
$.g.uT=function(a,b,c){if(1>a)return FX.B.uT.call(this,a,b,c);var d=this.i("anchor");switch(a){case 1:this.La.width=this.b.width-b;this.La.height=this.b.height-c;GX(d)&&(this.coords.xAnchor=this.G.xAnchor+b);IX(d)&&(this.coords.valueAnchor=this.G.valueAnchor+c);break;case 2:this.La.width=this.b.width+b;this.La.height=this.b.height-c;HX(d)&&(this.coords.xAnchor=this.G.xAnchor+b);IX(d)&&(this.coords.valueAnchor=this.G.valueAnchor+c);break;case 3:this.La.width=this.b.width+b;this.La.height=this.b.height+
c;HX(d)&&(this.coords.xAnchor=this.G.xAnchor+b);JX(d)&&(this.coords.valueAnchor=this.G.valueAnchor+c);break;case 4:this.La.width=this.b.width-b,this.La.height=this.b.height+c,GX(d)&&(this.coords.xAnchor=this.G.xAnchor+b),JX(d)&&(this.coords.valueAnchor=this.G.valueAnchor+c)}this.La.xAnchor=this.Wa().Kc((this.coords.xAnchor-this.ia.left)/this.ia.width);this.La.valueAnchor=this.bb().Kc((this.ia.Ra()-this.coords.valueAnchor)/this.ia.height);this.u(768);this.X();return this};
$.g.Bh=function(a){var b=this.i("text"),c=this.i("useHtml");$.p(b)&&(c?this.Tc.htmlText(b):this.Tc.text(b));this.Tc.fontFamily(this.Dc("fontFamily",a,null));this.Tc.fontStyle(this.Dc("fontStyle",a,null));this.Tc.fontVariant(this.Dc("fontVariant",a,null));this.Tc.fontWeight(this.Dc("fontWeight",a,null));this.Tc.fontSize(this.Dc("fontSize",a,null));this.Tc.rq(this.Dc("fontDecoration",a,null));this.Tc.direction(this.i("textDirection"));this.Tc.du(this.i("wordBreak"));this.Tc.wordWrap(this.i("wordWrap"));
this.Tc.letterSpacing(this.i("letterSpacing"));this.Tc.lineHeight(this.i("lineHeight"));this.Tc.textIndent(this.i("textIndent"));this.Tc.vAlign(this.i("vAlign"));this.Tc.Wl(this.i("hAlign"));this.Tc.textOverflow(this.i("textOverflow"));this.Tc.bm(this.i("selectable"));this.Tc.td(this.i("disablePointerEvents"))};$.g.Uh=function(){FX.B.Uh.call(this);this.Tc||(this.Tc=this.ta.text(),this.Tc.zIndex(2));this.pt||(this.pt=this.ta.rect(),this.pt.fill($.Rk).zIndex(3));this.background().O(this.ta).zIndex(0)};
$.g.zn=function(a,b){var c=this.fa();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.ii=d=$.M(d,k),f=Math.abs(d),k=!1):(d=0,k=!0);null!=e?(this.hi=e=$.M(e,c),h=Math.abs(e),c=!1):(e=0,c=!0)}else $.sn(d)?(k=!0,d=0):(k=!1,this.ii=d=$.N(d),f=Math.abs(d)),$.sn(e)?(c=!0,e=0):(c=!1,this.hi=e=$.N(e),h=Math.abs(e));var l=this.padding();this.Tc.width(null);this.Tc.height(null);k?(this.Hm=d+=this.Tc.kb().width,this.ii=l.Yj(d)):this.Hm=l.ig(f);this.Tc.width(this.Hm);
c?(this.Fm=e+=this.Tc.kb().height,this.hi=l.nj(e)):this.Fm=l.Ah(h);this.Tc.height(this.Fm);this.gg=$.M(l.i("left"),this.ii);this.hg=$.M(l.i("top"),this.hi);k=this.i("anchor");e={x:a,y:b};d=$.un($.Zl(0,0,this.ii,this.hi),k);e.x-=d.x;e.y-=d.y;$.Nn(e,k,this.i("offsetX")||0,this.i("offsetY")||0);this.gg+=e.x-(0>this.ii?f:0);this.hg+=e.y-(0>this.hi?h:0);this.gl=new $.I(e.x,e.y,this.ii,this.hi)};
$.g.Jn=function(a,b){this.Bh(this.state);this.zn(a,b);this.Tc.x(this.gg);this.Tc.y(this.hg);this.Tc.clip(this.gl);this.pt.stroke($.Rk,2*this.hoverGap()).nf(this.gl);$.U(this.background()).fa(this.gl).X().da(!1);this.u(512)};$.g.sh=function(a){FX.B.sh.call(this,a);this.Tc.color(this.Dc("fontColor",a,null));this.Tc.opacity(this.Dc("fontOpacity",a,null))};
$.g.F=function(){var a=FX.B.F.call(this);$.Bp(this,bY,a,"Annotation");$.Bp(this,XX,a,"Annotation");$.Bp(this,YX,a,"Annotation");a.background=this.background().F();a.padding=this.padding().F();return a};$.g.kA=function(a){FX.B.kA.call(this,a)};$.g.Y=function(a,b){FX.B.Y.call(this,a,b);this.background().ja(!!b,a.background);this.padding().ja(!!b,a.padding);b?$.sp(this.ma,bY,a):$.tp(this,bY,a);$.tp(this,XX,a);$.tp(this,YX,a)};$.g.R=function(){$.jd(this.Tc,this.pt,this.Ha,this.Oa);FX.B.R.call(this)};$.H(KX,dX);$.rp(KX,["stroke"],"normal");$.S(KX,XX);$.S(KX,YX);$.S(KX,ZX);oX.line=KX;$.g=KX.prototype;$.g.type="line";$.g.Te=7;$.g.gh=function(){var a=KX.B.gh.call(this);return $.Fa(a,cY)};$.g.Uh=function(){KX.B.Uh.call(this);this.Ka||(this.Ka=[this.ta.path(),this.ta.path()],this.Ka[0].zIndex(0),this.Ka[1].zIndex(3))};$.g.Jn=function(a,b){for(var c=0;c<this.Ka.length;c++){var d=this.Ka[c];d.clear();d.moveTo(a,b).lineTo(a,b)}};
$.g.xr=function(a,b,c,d){var e=$.Tn(this.Ka[0].stroke());a==c&&(a=c=$.O(a,e));b==d&&(b=d=$.O(b,e));a=cX(a,b,c,d,this.ia);for(b=0;b<this.Ka.length;b++)c=this.Ka[b],c.clear(),a&&c.moveTo(a[0],a[1]).lineTo(a[2],a[3])};$.g.sh=function(a){KX.B.sh.call(this,a);this.Ka[0].fill(null).stroke(this.b(this,a));this.Ka[1].fill($.Rk).stroke($.Rk,2*this.hoverGap())};$.g.F=function(){var a=KX.B.F.call(this);$.Bp(this,XX,a,"Annotation");$.Bp(this,YX,a,"Annotation");$.Bp(this,ZX,a,"Annotation");return a};
$.g.Y=function(a,b){KX.B.Y.call(this,a,b);$.tp(this,XX,a);$.tp(this,YX,a);$.tp(this,ZX,a)};$.g.R=function(){KX.B.R.call(this);$.jd(this.Ka);delete this.b};$.H(LX,dX);$.rp(LX,["stroke","fill","hatchFill","size"],"normal");$.S(LX,XX);$.S(LX,YX);$.S(LX,aY);oX.marker=LX;$.g=LX.prototype;$.g.type="marker";$.g.Te=3;$.g.gh=function(){return $.Fa(dY,Cga)};$.g.Es=function(a){LX.B.Es.call(this,a);this.u(256)};$.g.Uh=function(){LX.B.Uh.call(this);this.Ka||(this.Ka=[this.ta.path(),this.ta.path(),this.ta.path()],this.Ka[0].zIndex(0),this.Ka[1].zIndex(1),this.Ka[2].zIndex(3))};
$.g.Jn=function(a,b){var c;this.state&$.mn?c=this.Da.i("size"):this.state&$.ln&&(c=this.ya.i("size"));c=(0,window.isNaN)(c)?this.ca.i("size"):c;var d=$.so(this.i("markerType")),e=this.i("anchor"),f={x:a,y:b};$.Nn(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=$.Tn(this.Ka[0].stroke());for(h=0;h<this.Ka.length;h++){var k=this.Ka[h];k.clear();d(k,f.x,f.y,c,e)}};$.g.sh=function(a){LX.B.sh.call(this,a);this.Ka[0].stroke(this.g(this,a));this.Ka[0].fill(this.b(this,a));this.Ka[1].stroke(null).fill(this.f(this,a));this.Ka[2].fill($.Rk).stroke($.Rk,2*this.hoverGap())};$.g.F=function(){var a=LX.B.F.call(this);$.Bp(this,aY,a,"Annotation");$.Bp(this,XX,a,"Annotation");$.Bp(this,YX,a,"Annotation");return a};
$.g.Y=function(a,b){LX.B.Y.call(this,a,b);$.tp(this,aY,a);$.tp(this,XX,a);$.tp(this,YX,a)};$.g.R=function(){LX.B.R.call(this);$.jd(this.Ka);delete this.g;delete this.b;delete this.f};$.H(MX,dX);$.rp(MX,["stroke"],"normal");$.S(MX,XX);$.S(MX,YX);$.S(MX,ZX);oX.ray=MX;$.g=MX.prototype;$.g.type="ray";$.g.Te=7;$.g.gh=function(){var a=MX.B.gh.call(this);return $.Fa(a,cY)};$.g.Uh=function(){MX.B.Uh.call(this);this.Ka||(this.Ka=[this.ta.path(),this.ta.path()],this.Ka[0].zIndex(0),this.Ka[1].zIndex(3))};$.g.Jn=function(a,b){for(var c=0;c<this.Ka.length;c++){var d=this.Ka[c];d.clear();d.moveTo(a,b).lineTo(a,b)}};
$.g.xr=function(a,b,c,d){var e=$.Tn(this.Ka[0].stroke());a==c&&(a=c=$.O(a,e));b==d&&(b=d=$.O(b,e));a=bX(a,b,c,d,this.ia);for(b=0;b<this.Ka.length;b++)c=this.Ka[b],c.clear(),a&&c.moveTo(a[0],a[1]).lineTo(a[2],a[3])};$.g.sh=function(a){MX.B.sh.call(this,a);this.Ka[0].fill(null).stroke(this.b(this,a));this.Ka[1].fill($.Rk).stroke($.Rk,2*this.hoverGap())};
$.g.im=function(){var a=MX.B.im.call(this);if(!a){a=this.coords.xAnchor;var b=this.coords.secondXAnchor-a;a=!(0,window.isNaN)(b)&&!(a<this.ia.left&&0>=b||a>this.ia.$a()&&0<=b)}return a};$.g.F=function(){var a=MX.B.F.call(this);$.Bp(this,XX,a,"Annotation");$.Bp(this,YX,a,"Annotation");$.Bp(this,ZX,a,"Annotation");return a};$.g.Y=function(a,b){MX.B.Y.call(this,a,b);$.tp(this,XX,a);$.tp(this,YX,a);$.tp(this,ZX,a)};$.g.R=function(){MX.B.R.call(this);$.jd(this.Ka);delete this.b};$.H(NX,dX);$.rp(NX,["fill","hatchFill","stroke"],"normal");$.S(NX,XX);$.S(NX,YX);$.S(NX,ZX);oX.rectangle=NX;$.g=NX.prototype;$.g.type="rectangle";$.g.Te=7;$.g.gh=function(){var a=NX.B.gh.call(this);return $.Fa(a,dY)};$.g.Uh=function(){NX.B.Uh.call(this);this.Ka||(this.Ka=[this.ta.path(),this.ta.path(),this.ta.path()],this.Ka[0].zIndex(0),this.Ka[1].zIndex(1),this.Ka[2].zIndex(3))};$.g.Jn=function(a,b){for(var c=0;c<this.Ka.length;c++){var d=this.Ka[c];d.clear();d.moveTo(a,b).lineTo(a,b)}};
$.g.xr=function(a,b,c,d){var e=$.Tn(this.Ka[0].stroke());a=$.O(a,e);b=$.O(b,e);c=$.O(c,e);d=$.O(d,e);for(e=0;e<this.Ka.length;e++){var f=this.Ka[e];f.clear();f.moveTo(a,b).lineTo(c,b).lineTo(c,d).lineTo(a,d).close()}};$.g.sh=function(a){NX.B.sh.call(this,a);this.Ka[0].stroke(this.g(this,a));this.Ka[0].fill(this.b(this,a));this.Ka[1].stroke(null).fill(this.f(this,a));this.Ka[2].fill($.Rk).stroke($.Rk,2*this.hoverGap())};
$.g.F=function(){var a=NX.B.F.call(this);$.Bp(this,XX,a,"Annotation");$.Bp(this,YX,a,"Annotation");$.Bp(this,ZX,a,"Annotation");return a};$.g.Y=function(a,b){NX.B.Y.call(this,a,b);$.tp(this,XX,a);$.tp(this,YX,a);$.tp(this,ZX,a)};$.g.R=function(){NX.B.R.call(this);$.jd(this.Ka);delete this.g;delete this.b;delete this.f};$.H(OX,dX);$.rp(OX,["fill","hatchFill","stroke"],"normal");$.S(OX,XX);$.S(OX,YX);$.S(OX,ZX);$.S(OX,$X);oX["trend-channel"]=OX;$.g=OX.prototype;$.g.type="trend-channel";$.g.Te=15;$.g.gh=function(){var a=OX.B.gh.call(this);return $.Fa(a,dY)};$.g.Uh=function(){OX.B.Uh.call(this);this.Ka||(this.Ka=[this.ta.path(),this.ta.path(),this.ta.path(),this.ta.path()],this.Ka[0].zIndex(2),this.Ka[1].zIndex(0),this.Ka[2].zIndex(1),this.Ka[3].zIndex(3))};
$.g.Jn=function(a,b){for(var c=0;c<this.Ka.length;c++)this.Ka[c].clear();this.Ka[0].moveTo(a,b).lineTo(a,b);this.Ka[3].moveTo(a,b).lineTo(a,b)};$.g.xr=function(a,b,c,d){a=bX(a,b,c,d,this.ia);for(b=0;b<this.Ka.length;b++)this.Ka[b].clear();a&&(this.Ka[0].moveTo(a[0],a[1]).lineTo(a[2],a[3]),this.Ka[3].moveTo(a[0],a[1]).lineTo(a[2],a[3]))};
$.g.PJ=function(a,b,c,d,e,f){var h=this.ia.left,k=this.ia.$a();var l=this.ia.top;var m=this.ia.Ra();if(c==a)d=d-b||1,a<h&&e<h||a>k&&e>k?c=f=d=l=null:(c=aX(a,b,a,b+d,this.ia),f=aX(e,f,e,f+d,this.ia),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 n=f-d*e;b>n&&(f=b,b=n,n=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+n,h=d*e+b,k=d*e+n,f<l&&k<l||
c>m&&h>m?c=f=d=l=null:(c=cX(a,c,e,h,this.ia),f=cX(a,f,e,k,this.ia),0>d?(k=Math.max(a,(m-b)/d),b=Math.min(e,(l-n)/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-n)/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.Ka.length;m++)this.Ka[m].clear();m=this.Ka[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.Ka.length;m++)c=this.Ka[m],c.moveTo(d[0],d[1]),c.lineTo.apply(c,l),c.close()};$.g.sh=function(a){OX.B.sh.call(this,a);this.Ka[0].fill(null).stroke(this.g(this,a));this.Ka[1].stroke(null).fill(this.b(this,a));this.Ka[2].stroke(null).fill(this.f(this,a));this.Ka[3].fill($.Rk).stroke($.Rk,2*this.hoverGap())};
$.g.im=function(){var a=OX.B.im.call(this);if(!a&&15==this.Ea){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.ia.left&&c>a||a>this.ia.$a()&&c<a))}return a};$.g.F=function(){var a=OX.B.F.call(this);$.Bp(this,XX,a,"Annotation");$.Bp(this,YX,a,"Annotation");$.Bp(this,ZX,a,"Annotation");$.Bp(this,$X,a,"Annotation");return a};
$.g.Y=function(a,b){OX.B.Y.call(this,a,b);$.tp(this,XX,a);$.tp(this,YX,a);$.tp(this,ZX,a);$.tp(this,$X,a)};$.g.R=function(){OX.B.R.call(this);$.jd(this.Ka);delete this.g;delete this.b;delete this.f};$.H(PX,dX);$.rp(PX,["fill","hatchFill","stroke"],"normal");$.S(PX,XX);$.S(PX,YX);$.S(PX,ZX);$.S(PX,$X);oX.triangle=PX;$.g=PX.prototype;$.g.type="triangle";$.g.Te=15;$.g.gh=function(){var a=PX.B.gh.call(this);return $.Fa(a,dY)};$.g.Uh=function(){PX.B.Uh.call(this);this.Ka||(this.Ka=[this.ta.path(),this.ta.path(),this.ta.path()],this.Ka[0].zIndex(0),this.Ka[1].zIndex(1),this.Ka[2].zIndex(3))};$.g.Jn=function(a,b){for(var c=0;c<this.Ka.length;c++){var d=this.Ka[c];d.clear();d.moveTo(a,b).lineTo(a,b)}};
$.g.xr=function(a,b,c,d){for(var e=0;e<this.Ka.length;e++){var f=this.Ka[e];f.clear();f.moveTo(a,b).lineTo(c,d)}};$.g.PJ=function(a,b,c,d,e,f){for(var h=0;h<this.Ka.length;h++){var k=this.Ka[h];k.clear();k.moveTo(a,b).lineTo(c,d).lineTo(e,f).close()}};$.g.sh=function(a){PX.B.sh.call(this,a);this.Ka[0].stroke(this.g(this,a));this.Ka[0].fill(this.b(this,a));this.Ka[1].stroke(null).fill(this.f(this,a));this.Ka[2].fill($.Rk).stroke($.Rk,2*this.hoverGap())};
$.g.F=function(){var a=PX.B.F.call(this);$.Bp(this,XX,a,"Annotation");$.Bp(this,YX,a,"Annotation");$.Bp(this,ZX,a,"Annotation");$.Bp(this,$X,a,"Annotation");return a};$.g.Y=function(a,b){PX.B.Y.call(this,a,b);$.tp(this,XX,a);$.tp(this,YX,a);$.tp(this,ZX,a);$.tp(this,$X,a)};$.g.R=function(){PX.B.R.call(this);$.jd(this.Ka);delete this.g;delete this.b;delete this.f};$.H(QX,dX);$.rp(QX,["stroke"],"normal");$.S(QX,XX);oX["vertical-line"]=QX;$.g=QX.prototype;$.g.type="vertical-line";$.g.Te=1;$.g.gh=function(){var a=QX.B.gh.call(this);return $.Fa(a,cY)};$.g.Uh=function(){QX.B.Uh.call(this);this.Ka||(this.Ka=[this.ta.path(),this.ta.path()],this.Ka[0].zIndex(0),this.Ka[1].zIndex(3))};$.g.Jn=function(a){a=$.O(a,$.Tn(this.Ka[0].stroke()));for(var b=0;b<this.Ka.length;b++){var c=this.Ka[b];c.clear();c.moveTo(a,this.ia.top).lineTo(a,this.ia.Ra())}};
$.g.sh=function(a){QX.B.sh.call(this,a);this.Ka[0].fill(null).stroke(this.b(this,a));this.Ka[1].fill($.Rk).stroke($.Rk,2*this.hoverGap())};$.g.F=function(){var a=QX.B.F.call(this);$.Bp(this,XX,a,"Annotation");return a};$.g.Y=function(a,b){QX.B.Y.call(this,a,b);$.tp(this,XX,a)};$.g.R=function(){QX.B.R.call(this);$.jd(this.Ka);delete this.b};$.H(RX,$.X);$.g=RX.prototype;$.g.qa=$.X.prototype.qa|192;$.g.Fz=function(){for(var a=0;a<this.Gf.length;a++)this.Gf[a].u(64);this.o&&this.o.u(64);this.u(64)};
$.g.X=function(){if(this.xc()){$.U(this);this.f||(this.f=$.Zi(),this.f.Ie("mouseover",this.tt,!1,this),this.f.Ie("touchstart",this.tt,!1,this),this.f.wa("mouseover",this.dca,!1,this),this.f.wa("mouseout",this.cca,!1,this),this.g=$.Wi(0,0,0,0),this.g.cursor("crosshair"),this.g.fill($.Rk),this.g.stroke(null),this.g.wa("mouseover",this.nca,!1,this),this.N=$.Wi(0,0,0,0),this.N.fill($.Rk),this.N.stroke(null),this.N.zIndex(1E3));this.J(4)&&(this.P=this.fa(),this.f.clip(this.P),this.g.nf(this.P),this.N.nf(this.P),
this.u(64),this.I(4));if(this.J(64)){for(var a=0,b=this.Gf.length;a<b;a++){var c=this.Gf[a];$.U(c);c.fa(this.P);c.O(this.f);c.X();c.da(!1)}this.o&&($.U(this.o),this.o.fa(this.P),this.o.O(this.f),this.o.X(),this.o.da(!1));this.I(64)}this.J(2)&&(this.f.parent(this.O()),this.u(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.la?this.g.parent(this.O()):this.g.remove(),this.I(128));this.da(!1)}};
$.g.tt=function(a){this.df||(this.df=new VX(this),"touchstart"==a.type&&this.df.Wk(a.zk))};$.g.dca=function(a){a.stopPropagation();a.f();a.preventDefault();a=a.target;for(var b;$.K(a,$.Jf);){b=a.tag;if($.K(b,dX)){this.b.xj(b);return}a=a.parent()}this.b.Cd()};$.g.cca=function(a){a.stopPropagation();a.f();a.preventDefault();this.b.Cd()};
$.g.nca=function(a){var b=this.b.b,c=b.D;c&&c!=this||(hX(b)?nX(this.b,!1):(this.g.wa("mouseout",this.$R,!1,this),this.g.wa("mousedown",this.ZR,!1,this),$.yd($.Vj,"mousemove",this.OK,!1,this),a.stopPropagation(),a.f(),a.preventDefault(),SX(this,a),this.va=!1,eX(b,this.D,this.G),b.WA()?b.X():TX(this,b,!1)))};
$.g.$R=function(a){this.g.hc("mouseout",this.$R,!1,this);this.g.hc("mousedown",this.ZR,!1,this);a.stopPropagation();a.f();a.preventDefault();SX(this,a);this.va=!0;if(!this.U){$.Gd($.Vj,"mousemove",this.OK,!1,this);a=this.b.b;a.P=window.NaN;a.U=window.NaN;a.u(128);if(a.va){var b=null!=a.D;a.va=!0;a.D=null;b&&a.u(64);a.qb(null);$.Xp(a,this.HW,this);this.o=null;this.u(64,1)}a.X()}};
$.g.ZR=function(a){$.yd($.Vj,"mouseup",this.YZ,!1,this);a.stopPropagation();a.f();a.preventDefault();SX(this,a);this.ba=this.D;this.ga=this.G;this.U=!1;a=this.b.b;eX(a,this.D,this.G);a.X()};
$.g.YZ=function(a){$.Gd($.Vj,"mouseup",this.YZ,!1,this);a.stopPropagation();a.preventDefault();SX(this,a);this.ga=this.ba=window.NaN;this.U=!1;a=this.b.b;a.va&&TX(this,a,!0);fX(a);var b=!1;hX(a)?b=!0:this.va||eX(a,this.D,this.G);a.X();b&&(nX(this.b,!1),this.b.sc().dispatchEvent({type:"annotationDrawingFinish",annotation:a}))};
$.g.OK=function(a){a.stopPropagation();a.preventDefault();SX(this,a);a=this.b.b;a.mb();!a.rb||(0,window.isNaN)(this.ba)||(0,window.isNaN)(this.ga)||this.U?(eX(a,this.D,this.G),a.X()):16<=(this.ba-this.D)*(this.ba-this.D)+(this.ga-this.G)*(this.ga-this.G)&&(this.U=!0,a.va&&TX(this,a,!0),fX(a),eX(a,this.D,this.G),a.X())};$.g.remove=function(){this.f&&(this.f.remove(),this.g.remove())};$.g.select=function(a){this.b.select(a);return this};$.g.Pd=function(){this.b.Pd();return this};$.g.W6=function(){return this.b.b};
$.g.wba=function(a){return this.Gf[a]||null};$.g.xba=function(){return this.Gf.length};$.g.uO=function(a){if(this.o==a)return this.o=null,$.hd(a),this;var b=this.b;b.b==a&&(b.b=null,nX(b,!1));return this.c1((0,$.xa)(this.Gf,a))};$.g.c1=function(a){var b=this.Gf[a];b&&($.Ba(this.Gf,a,1),$.hd(b),this.u(64,1));return this};$.g.IW=function(){this.Gf.length&&($.jd(this.Gf),this.Gf.length=0,this.u(64,1));return this};
$.g.od=function(a){return this.b.lu()?($.U(this.b.sc()),a=pX(this.b,a),TX(this,a,!0),this.b.select(a),this.b.b||($.hd(a),a=null),this.b.sc().da(!0),a):null};$.g.add=function(a){$.U(this.b.sc());a=pX(this.b,a);TX(this,a,!0);this.b.sc().da(!0);return a};$.g.V6=function(){this.b.tO()};$.g.Ofa=function(a){var b=pX(this.b,"ray");b.K(a);TX(this,b,!0);return b};$.g.line=function(a){var b=pX(this.b,"line");b.K(a);TX(this,b,!0);return b};
$.g.Rca=function(a){var b=pX(this.b,"infinite-line");b.K(a);TX(this,b,!0);return b};$.g.rha=function(a){var b=pX(this.b,"vertical-line");b.K(a);TX(this,b,!0);return b};$.g.Nca=function(a){var b=pX(this.b,"horizontal-line");b.K(a);TX(this,b,!0);return b};$.g.kH=function(a){var b=pX(this.b,"rectangle");b.K(a);TX(this,b,!0);return b};$.g.ellipse=function(a){var b=pX(this.b,"ellipse");b.K(a);TX(this,b,!0);return b};$.g.iha=function(a){var b=pX(this.b,"triangle");b.K(a);TX(this,b,!0);return b};
$.g.hha=function(a){var b=pX(this.b,"trend-channel");b.K(a);TX(this,b,!0);return b};$.g.R6=function(a){var b=pX(this.b,"andrews-pitchfork");b.K(a);TX(this,b,!0);return b};$.g.hba=function(a){var b=pX(this.b,"fibonacci-fan");b.K(a);TX(this,b,!0);return b};$.g.gba=function(a){var b=pX(this.b,"fibonacci-arc");b.K(a);TX(this,b,!0);return b};$.g.iba=function(a){var b=pX(this.b,"fibonacci-retracement");b.K(a);TX(this,b,!0);return b};
$.g.jba=function(a){var b=pX(this.b,"fibonacci-timezones");b.K(a);TX(this,b,!0);return b};$.g.Nq=function(a){var b=pX(this.b,"marker");b.K(a);TX(this,b,!0);return b};$.g.label=function(a){var b=pX(this.b,"label");b.K(a);TX(this,b,!0);return b};$.g.HW=function(a){$.W(a,1)&&this.u(64,1)};$.g.F=function(){var a=RX.B.F.call(this);a.annotationsList=UX(this);return a};$.g.Fe=function(a,b){return $.B(b)?(UX(this,b),!0):!1};
$.g.Y=function(a,b){RX.B.Y.call(this,a,b);var c=a.annotationsList;$.B(c)&&UX(this,c)};$.g.AA=function(a){var b=this.Ed?{}:{annotationsList:UX(this)},c={defaultAnnotationSettings:this.b.sc().$P()};b=$.ol(b,c)||{};return a?$.Xm(b):b};$.g.gN=function(a){var b=this.AA(!1);return $.eo(b,"annotations",a)};$.g.fZ=function(a){var b;$.z(a)?b=$.Ym(a):$.D(a)&&!$.E(a)&&(b=a);b=$.D(b)?b.annotationsList:b;UX(this,b);return this};$.g.uba=function(a){a=$.ao(a);this.fZ(a);return this};
$.g.R=function(){var a=this.b;a.f&&$.Ea(a.f,this);$.jd(this.Gf,this.o,this.g,this.f,this.df,this.N);this.Gf.length=0;this.N=this.df=this.f=this.g=this.o=null;RX.B.R.call(this)};$.H(VX,$.Bf);$.g=VX.prototype;
$.g.Wk=function(a){var b;if(b=!this.Bo)a:{b=$.ji(a.target,this.g.f.Ga());for(var c,d=window.NaN;$.K(b,$.Jf);){c=b.tag;if(!$.sn(c))d=$.N(c);else if($.K(c,dX)){this.b=c;(0,window.isNaN)(d)&&(d=-1);this.o=d;b=!0;break a}b=b.parent()}this.b=null;this.o=window.NaN;b=!1}b&&(hX(this.b)?this.g.b.sc().dispatchEvent({type:"annotationChangeStart",annotation:this.b})?(VX.B.Wk.call(this,a),this.Bo&&a.stopPropagation()):(this.b=null,this.o=window.NaN,a.stopPropagation()):(this.g.b.select(this.b),this.b=null,this.o=
window.NaN))};$.g.tr=function(){this.b.xU();this.deltaY=this.deltaX=0};$.g.Rs=function(a,b){this.g.b.sc().dispatchEvent({type:"annotationChange",annotation:this.b})&&this.b.uT(this.o,a,b)};$.g.mca=function(){this.g.b.select(this.b);var a=this.g;a.N.parent(a.f)};$.g.kca=function(){var a=this.b;this.b.u(64);this.b.X();this.b=null;this.o=window.NaN;this.g.N.remove();this.g.b.sc().dispatchEvent({type:"annotationChangeFinish",annotation:a})};var jY=RX.prototype;jY.add=jY.add;jY.startDrawing=jY.od;
jY.cancelDrawing=jY.V6;jY.getAnnotationAt=jY.wba;jY.getAnnotationsCount=jY.xba;jY.removeAnnotation=jY.uO;jY.removeAnnotationAt=jY.c1;jY.removeAllAnnotations=jY.IW;jY.getSelectedAnnotation=jY.W6;jY.select=jY.select;jY.unselect=jY.Pd;jY.ray=jY.Ofa;jY.line=jY.line;jY.infiniteLine=jY.Rca;jY.verticalLine=jY.rha;jY.horizontalLine=jY.Nca;jY.rectangle=jY.kH;jY.ellipse=jY.ellipse;jY.triangle=jY.iha;jY.trendChannel=jY.hha;jY.andrewsPitchfork=jY.R6;jY.fibonacciFan=jY.hba;jY.fibonacciArc=jY.gba;
jY.fibonacciRetracement=jY.iba;jY.fibonacciTimezones=jY.jba;jY.marker=jY.Nq;jY.label=jY.label;jY.fromJson=jY.fZ;jY.toJson=jY.AA;jY.fromXml=jY.uba;jY.toXml=jY.gN;$.F("anychart.annotations.PlotController",RX);}).call(this,$)}
