(function(a){function C(a,e,c,d,g,l){this.Init(a,e,c,d,g,l)}function y(a,e){this.Init(a,e)}function x(a){this.Init(a.j(),a.Fg,a);this.Lc=a}function g(){this.Init({skyros:g.kg,alta:g.sf,next:g.rx})}function l(a){this.Lc=a;this.vg=this.Lc.B()}a.bg=function(){};a.l.D(a.bg,a.kf);a.bg.newInstance=function(b,e,c){var d=new a.bg;d.Init(b,e,c);return d};a.bg.wt=function(a){return(new g).wt(a)};a.bg.prototype.Init=function(b,e,c){a.bg.C.Init.call(this,b,e,c);this.setId("legend1000"+Math.floor(1E9*Math.random()));
this.Wg=new g;this.G=new x(this);this.G.og(this);this.$x=[];this.Yz=[];this.Ue=null;this.dDa=[]};a.bg.prototype.Pf=function(a){this.Nj.FU();a?(this.U=this.Wg.Un(a),this.M9a(this.U.sections)):this.U||(this.U=this.RI())};a.bg.prototype.Yu=function(b,g,c){this.Pf(b);this.B().isLayout=!0;b=e.xa(this,new a.ca(0,0,g,c));this.B().isLayout=!1;return new a.Xj(b.a,b.b)};a.bg.prototype.xa=function(b,g,c){this.pc.FU();this.Pf(b);isNaN(g)||isNaN(c)||(this.Eb=g,this.Vb=c);this.B().isLayout=!1;this.Tl();this.$x=
[];this.Yz=[];this.Ue=null;this.dDa=[];a.A.fb()||this.G.Lt(new y(this.G,this));this.Xs();this.wwa=e.xa(this,new a.ca(0,0,this.Eb,this.Vb));(b=this.B().highlightedCategories)&&0<b.length&&this.Af(b);this.Xr();return this.wwa};a.bg.prototype.Af=function(b){this.B().highlightedCategories=b&&0<b.length?b.slice():null;a.bi.Af(b,this.$x,!0)};a.bg.prototype.Fg=function(a,e){var c=a.type;if("categoryHighlight"==c&&"dim"==this.B().hoverBehavior){var d=this.$x;this!=e&&this.Af(a.categories);for(var g=0;g<d.length;g++)if(d[g].getId()==
a.categories){this.jab.scrollIntoView(d[g].qf()[0]);break}}this!=e&&"adfShowPopup"!=c&&"adfHidePopup"!=c||this.dispatchEvent(a)};a.bg.prototype.hva=function(b){if(b.qf()[0]instanceof a.pa)this.Yz.push(b);else{var e=this.B().hideAndShowBehavior;(null!=b.xg()||null!=b.gh()||b.rl()||"none"!=e&&"off"!=e)&&this.Yz.push(b);this.$x.push(b)}};a.bg.prototype.iva=function(a){this.Ue=a.clone()};a.bg.prototype.pBb=function(a){this.dDa.push(a)};a.bg.prototype.Di=function(){return new l(this)};a.bg.prototype.TP=
function(){return null!=this.G?this.G.Yf():null};a.bg.prototype.Una=function(a,e){if(null!=this.G){for(var c=this.Yz,d=0;d<c.length;d++)if(c[d].getId()==a.getId()){this.G.Pw(c[d]);e&&c[d].tg();break}if(c=this.TP())d=c.qf()[0],d.Td("label",c.Gd()),this.j().$L(d)}};a.bg.prototype.da=function(b){var e=new a.ca(0,0,this.Eb,this.Vb);return b&&b!==this?this.Wj(e,b):e};a.bg.prototype.RE=function(a){return a&&a!==this?this.Wj(this.wwa,a):this.wwa};a.bg.prototype.nn=function(){return a.F.Ca(a.F.Pa,"LEGEND")};
a.bg.prototype.M9a=function(b){if(b&&!(0>=b.length))for(var g=this.B().hiddenCategories,c=0;c<b.length;c++){var d=b[c];d.sections&&(g=this.M9a(d.sections));if((d=d.items)&&!(0>=d.length))for(var l=0;l<d.length;l++){var r=d[l],F=e.Dla(r);"hidden"==r.categoryVisibility&&0>a.va.Fb(g,F)&&g.push(F);r.categoryVisibility=null}}};a.bg.prototype.Xs=function(){if(this.rca()){var b=this.B(),e=b.hideAndShowBehavior;if("off"!=e&&"none"!=e||"dim"==b.hoverBehavior)this.j().yg("application"),this.j().W$(a.F.Ca(a.F.Pa,
"COLON_SEP_LIST",[a.F.Ca(a.F.Pa,"DATA_VISUALIZATION"),a.ge.UL(this.nn())]))}};a.bg.prototype.NL=function(){return 0<this.Yz.length};a.bg.SP=function(b){var e=b.Nj.ki("itemsCount");if(null!=e)return e;for(var e=0,c=b.B().sections,d=0;d<c.length;d++)e+=a.bg.Ldb(c[d]);b.Nj.jj("itemsCount",e);return e};a.bg.Ldb=function(b){var e=0;b.items&&(e+=b.items.length);if(b.B1b){b=b.B1b;for(var c=0;c<b.length;c++)e+=a.bg.Ldb(b[c])}return e};a.l.D(l,a.de);l.prototype.To=function(a){return(a=this.Lc.jb().tb(a))&&
a instanceof C&&(a=a.getData(),a=this.M2a(a,this.vg))?"section"+a:null};l.prototype.M2a=function(a,e){if(e.sections&&0<e.sections.length){for(var c=0;c<e.sections.length;c++){if(e.sections[c]==a)return"["+c+"]";var d=this.M2a(a,e.sections[c]);if(d)return"["+c+"]"+d}return null}if(e.items&&0<e.items.length){for(c=0;c<e.items.length;c++)if(e.items[c]==a)return":item["+c+"]";return null}};l.prototype.scb=function(a,e){if(e.sections&&0<e.sections.length){for(var c=0;c<e.sections.length;c++){var d=this.scb(a,
e.sections[c]);if(d)return"["+c+"]"+d}return null}if(e.items&&0<e.items.length){for(c=0;c<e.items.length;c++)if(e.items[c].text==a.name)return":item["+c+"]";return null}};l.prototype.vFa=function(a,e){var c=e.indexOf("["),d=e.indexOf("]");if(0<=c&&0<=d){var c=e.substring(c+1,d),g=e.indexOf(":");e=e.substring(d+1);d=e.indexOf("]");return 0<=e.indexOf("[")&&0<=d?this.vFa(a.sections[c],e):0==g?a.items[c]:a.sections[c]}};l.prototype.ji=function(b){if(b==a.de.tD)return this.MF(this.Lc);b=this.vFa(this.vg,
b);for(var e=this.Lc.$x,c=0;c<e.length;c++){var d=e[c].getData();if(b==d)return e[c].qf()[0].Xa()}return null};l.prototype.cF=function(){return this.vg.title};l.prototype.getItem=function(a){for(var e,c=a.shift(),d=this.vg;void 0!=c;)0<a.length?d=d.sections[c]:e=d.items[c],c=a.shift();return e?{text:e.text?e.text:null}:null};l.prototype.iWb=function(a){for(var e,c=a.shift(),d=this.vg;void 0!=c;)0<a.length?d=d.sections[c]:e=d.sections[c],c=a.shift();return{title:e.title?e.title:null,items:e.items?
this.b2a(e.items):null,sections:e.sections?this.e2a(e.sections):null}};l.prototype.b2a=function(a){for(var e=[],c=0;c<a.length;c++)e.push({text:a[c].text});return e};l.prototype.e2a=function(a){for(var e=[],c=0;c<a.length;c++)e.push({title:a[c].title?a[c].title:null,items:a[c].items?this.b2a(a[c].items):null,sections:a[c].sections?this.e2a(a[c].sections):null});return e};a.l.D(g,a.lb);g.rx={skin:a.f.rx,titleStyle:new a.f("color: #737373;"),_sectionTitleStyle:new a.f("color: #737373;"),layout:{titleGapWidth:17,
titleGapHeight:9,symbolGapWidth:7,symbolGapHeight:4,rowGap:4,columnGap:10,sectionGapHeight:16,sectionGapWidth:24}};g.sf={skin:a.f.sf,textStyle:new a.f(a.lb.mn),titleStyle:new a.f(a.lb.eR+"color: #333333;"),_sectionTitleStyle:new a.f(a.lb.eR+"color: #333333;")};g.kg={skin:a.f.qh,orientation:"vertical",position:null,backgroundColor:null,borderColor:null,textStyle:new a.f(a.lb.xv+"font-size: 11px; color: #333333;"),titleStyle:new a.f(a.lb.xv+"font-size: 12px; color: #003d5b;"),titleHalign:"start",hiddenCategories:[],
hideAndShowBehavior:"off",hoverBehavior:"none",hoverBehaviorDelay:200,scrolling:"asNeeded",halign:"start",valign:"top",drilling:"off",_color:"#a6acb1",_markerShape:"square",_lineWidth:3,layout:{outerGapWidth:3,outerGapHeight:3,titleGapWidth:8,titleGapHeight:3,symbolGapWidth:5,symbolGapHeight:4,rowGap:0,columnGap:8,sectionGapHeight:6,sectionGapWidth:15},isLayout:!1};g.li=function(b,e){var c=Math.min(a.Ja.WH(b.j(),b.B().textStyle)/14,1);return Math.ceil(e*c)};g.prototype.CFa=function(){return{sections:{items:{_dataContext:!0}}}};
a.l.D(x,a.G);x.prototype.$k=function(a){x.C.$k.call(this,a);var e=this.tb(a.target);if(e){var c=this.kIa(e),e=this.NGa(e,a);(c||e)&&a.stopPropagation()}};x.prototype.bB=function(b){x.C.bB.call(this,b);if(b=this.tb(b.target)){var e=b instanceof a.Ej?b.ZB:null;e&&e.isCollapsible&&e.button&&e.button.V8();this.fG(b)}};x.prototype.jq=function(b){x.C.jq.call(this,b);(b=this.tb(b.target))&&(b=b instanceof a.Ej?b.ZB:null)&&b.isCollapsible&&b.button&&b.button.CH()};x.prototype.jz=function(a){var e=this.tb(a.target);
if(e){var c=a.JJa,d=this.kIa(e);a=this.NGa(e,a);(d||a)&&c&&c.preventDefault()}};x.prototype.kIa=function(b){var g=this.Lc.B().hideAndShowBehavior;if("none"==g||"off"==g)return!1;var c=b.te?b.te():null;if(!c||0>=c.length)return!1;for(var d=b.te()[0],g=this.Lc.B().hiddenCategories||[],g=g.slice(),l=b.qf(),r=0;r<l.length;r++){var F=l[r];F instanceof a.Fa?F.eM(b.tc()):F instanceof a.Rect&&b.OJa()}b=c[0];e.Nma(d,this.Lc)?(g.splice(a.va.Fb(g,d),1),b=a.kb.PZb(b,g)):(g.push(d),b=a.kb.OZb(b,g));this.Lc.B().hiddenCategories=
g;this.Vl(b,this.Lc);return!0};x.prototype.NGa=function(b,e){if(b&&b.gh&&b.gh())return this.Vl(a.kb.iI("action",b.gh(),b.getId()),this.Lc),!0;if(b instanceof C&&b.rl()){var c=b.getId();this.Vl(a.kb.hna(c,c,null),this.Lc);return!0}return(c=b instanceof a.Ej?b.ZB:null)&&c.isCollapsible?(this.kjb(e,c.id),!0):!1};x.prototype.hr=function(b,e,c){b=this.Lc.B();"none"==b.hoverBehavior||e.qf&&e.qf()[0]instanceof a.pa||(e=e.te?e.te():[],b.highlightedCategories=c?e.slice():null,c=a.kb.RL(b.highlightedCategories,
c),b=a.ab.Et(b.hoverBehaviorDelay),this.dN.Fg(c,this.Lc.$x,b,!0))};x.prototype.QHa=function(a,e){var c=e.getId();this.kjb(a,c)};x.prototype.kjb=function(b,e){for(var c=this.Lc.B(),d=0;d<e.length;d++)c=c.sections[e[d]];c.expanded="off"==c.expanded?"on":"off";b.type==a.MouseEvent.Te&&(c=this.tb(this.pe(b)),c.Rd&&this.Pw(c.Rd(b)));d=(c=this.Lc.TP())?c.Od():!1;this.Lc.xa();c&&this.Lc.Una(c,d);this.Se();c=this.Lc.RE();this.Vl(new a.$o(c.a,c.b,c.x,c.y),this.Lc)};x.prototype.iD=function(){return this.Lc.B()._isScrollingLegend?
a.G.sJ:a.G.hB};x.prototype.Ql=function(){return this.Lc};x.prototype.BV=function(){return!0};x.prototype.JM=function(){var a=this.Mf.Lx;return a instanceof C&&null!=a.getData()._dataContext?"series":null};x.prototype.YW=function(){var a=this.Mf.Lx;return a instanceof C?[a.getData()._dataContext]:[]};x.prototype.SI=function(a){a=this.Lc.ze(this.j().Sg(a.pageX,a.pageY));return this.Lc.Ue.Ui(a.x,a.y)?"legend":null};x.prototype.Gba=function(){return{}};x.prototype.mN=function(a){if("legend"==this.SI(a)){a=
this.Lc.B()._dropColor;var e=this.Lc.pc.ki("background");e&&e.qb(a)}};x.prototype.HI=function(){var a=this.Lc.pc.ki("background");if(a){var e=this.Lc.B().backgroundColor;e?a.qb(e):a.hc()}};a.l.D(y,a.Kb);y.prototype.Init=function(a,e){y.C.Init.call(this,a);this.Lc=e};y.prototype.ul=function(b){var e=b.keyCode,c=this.Ib.Yf(),d=c&&c.qf()[0]instanceof a.pa,g=null;null==c&&e==a.KeyboardEvent.Gh?(e=this.Lc.Yz,0<e.length&&(a.G.Ac(b),g=this.xL(e))):c&&(e==a.KeyboardEvent.Gh?(a.G.Ac(b),g=c):e==a.KeyboardEvent.yj||
e==a.KeyboardEvent.cj?(e==a.KeyboardEvent.yj&&this.Ib.NGa(c,b),d?this.Ib.QHa(b,c.qf()[0]):this.Ib.kIa(c),a.G.Ac(b)):!d||e!=a.KeyboardEvent.ag&&e!=a.KeyboardEvent.Of?g=y.C.ul.call(this,b):(this.Ib.QHa(b,c.qf()[0]),a.G.Ac(b)));g&&this.Lc.jab.scrollIntoView(g.qf()[0]);return g};a.l.D(C,a.l);C.prototype.Init=function(a,g,c,d,l,r){this.Lc=a;this.fh=g;this.Rm=c;this.Hc=(this.vS=e.Dla(this.Rm))?this.vS:c.title;this.Nv=c.action;this.Mx=r;this.oOb=c._spb;this.Ym=d;this.vga=l;this.nd=!1;if(this.Nv||this.Mx)for(a=
0;a<this.fh.length;a++)this.fh[a].setCursor("pointer")};C.ub=function(a,e,c,d,g,l){if(!a||!c)return null;c=new C(e,a,c,d,g,l);e.hva(c);for(d=0;d<a.length;d++)e.jb().ub(a[d],c);return c};C.prototype.getData=function(){return this.Rm};C.prototype.tc=function(){return this.Rm.color};C.prototype.getId=function(){return this.Hc};C.prototype.qf=function(){return this.fh};C.prototype.te=function(){return null!=this.vS?[this.vS]:null};C.prototype.gh=function(){return this.Nv};C.prototype.rl=function(){return this.Mx};
C.prototype.qg=function(){return this.oOb};C.prototype.Gd=function(){var b=[],g=this.Lc.B(),c=this.Lc.B().hideAndShowBehavior,d=e.Nma(this.vS,this.Lc),l=this.getData();if(this.fh[0]instanceof a.pa)return b.push(a.F.Ca(a.F.Pa,"off"==l.expanded?"STATE_COLLAPSED":"STATE_EXPANDED")),a.ta.Pl(l.title,b);"off"!=c&&"none"!=c&&b.push(a.F.Ca(a.F.Pa,d?"STATE_HIDDEN":"STATE_VISIBLE"));this.rl()&&b.push(a.F.ff(g,"stateDrillable",a.F.Pa,"STATE_DRILLABLE"));return null!=l.shortDesc?a.ta.Pl(l.shortDesc,b):0<b.length?
a.ta.Pl(l.text,b):null};C.prototype.OJa=function(){!a.A.jk()&&this.fh[0]&&this.fh[0].Td("label",this.Gd())};C.prototype.Rd=function(b){return b.type==a.MouseEvent.Te?this:a.Kb.Rd(this,b,this.Lc.Yz,!0)};C.prototype.Tf=function(b){return this.fh[0]?this.fh[0].da(b):new a.ca(0,0,0,0)};C.prototype.cn=function(){return this.fh[0]?this.fh[0].Xa():null};C.prototype.tg=function(){this.nd=!0;this.fh[0]&&(this.fh[0]instanceof a.pa?this.fh[0].V8():this.fh[0].cc(a.A.bFa()))};C.prototype.ce=function(){this.nd=
!1;this.fh[0]&&(this.fh[0]instanceof a.pa?this.fh[0].CH():this.fh[0].Na(null))};C.prototype.Od=function(){return this.nd};C.prototype.Pj=function(){return this.Ym};C.prototype.xg=function(){return this.vga};C.prototype.Rl=function(){return this.Rm.color};C.prototype.Dm=function(){return!0};C.prototype.an=function(){return[this.getId()]};C.prototype.yt=function(){return this.qf()};var e={};a.l.D(e,a.l);e.qua=2;e.uYa=.6;e.FXa=10;e.Fj=12;e.A4=2;e.xa=function(b,h){var c=b.B(),d=b.j(),l=a.A.ea(d);b.iva(h);
c.isLayout||e.tt(b,h);var r=new a.vi(d,h.a,h.b),F=new a.ra(d);r.Ma.u(F);b.u(r);b.jab=r;var t=g.li(b,c.layout.outerGapWidth),n=g.li(b,c.layout.outerGapHeight);h.x+=t;h.y+=n;h.a-=2*t;h.b-=2*n;if(0>=h.a||0>=h.b)return new a.Xj(0,0);d=e.AMb(b,F,new a.ca(h.x,h.y,h.a,h.b));if(0==d.a||0==d.b)return new a.Xj(0,0);r.Q$();d.b>h.b?(d.b=h.b,c._isScrollingLegend=!0):c._isScrollingLegend=!1;var w=r=0,q=null!=c.hAlign?c.hAlign:c.halign;"center"==q?r=h.x-d.x+(h.a-d.a)/2:"end"==q&&(r=l?h.x-d.x:h.x-d.x+h.a-d.a);l=
null!=c.vAlign?c.vAlign:c.valign;"middle"==l?w=h.y-d.y+(h.b-d.b)/2:"bottom"==l&&(w=h.y-d.y+h.b-d.b);l=new a.ca(d.x+r-t,d.y+w-n,d.a+2*t,d.b+2*n);if(c.isLayout)return l;(r||w)&&F.Ta(r,w);c=b.dDa;for(F=0;F<c.length;F++)a.un.align(d,c[F].qXb,c[F].text,c[F].text.Zc().a);return l};e.AMb=function(a,h,c){var d=a.B();c=c.clone();var l=e.X7(a,h,d.title,c,null,!0);if(l){var r=l.Zc(),F=g.li(a,d.layout.titleGapHeight);c.y+=r.b+F;c.b-=Math.floor(r.b+F)}a=e.f8a(a,h,d.sections,c,[]);return l?r.Qj(a):a};e.tt=function(b,
e){var c=b.B(),d=c.backgroundColor,g=c.borderColor,c=c.dnd?c.dnd.drop.legend:{};if(d||g||0<Object.keys(c).length)c=new a.Rect(b.j(),e.x,e.y,e.a,e.b),d?c.qb(d):c.hc(),g&&(c.cc(g),c.rd()),b.u(c),b.pc.jj("background",c)};e.X7=function(b,e,c,d,g,l,F,t){var n=b.B(),w=e.j(),q=a.A.ea(w);if(!c)return null;c=new a.ha(w,c,d.x,d.y);w=n.titleStyle;g&&g.titleStyle?w=new a.f(g.titleStyle):g&&n._sectionTitleStyle&&(w=n._sectionTitleStyle);c.Nb(w);return a.Ja.wd(c,d.a,Infinity,e)?(q&&c.Ha(d.x+d.a-c.Zc().a),n.isLayout?
e.removeChild(c):(e={id:F,button:t},e.isCollapsible=g&&("on"==g.collapsible||1==g.collapsible),b.jb().ub(c,new a.Ej(c.Mr(),null,null,e)),l&&b.pBb({text:c,qXb:g&&g.titleHalign?g.titleHalign:n.titleHalign})),c):null};e.f8a=function(b,h,c,d,l){var r=b.B();null==r.symbolWidth&&null==r.symbolHeight?(r.symbolWidth=e.FXa,r.symbolHeight=e.FXa):(null==r.symbolWidth?r.symbolWidth=r.symbolHeight:null==r.symbolHeight&&(r.symbolHeight=r.symbolWidth),r.symbolWidth=parseInt(r.symbolWidth),r.symbolHeight=parseInt(r.symbolHeight));
for(var F=g.li(b,r.layout.sectionGapHeight),t=g.li(b,r.layout.titleGapHeight),n=g.li(b,r.layout.sectionGapWidth),w=e.PHb(b),r="vertical"!=r.orientation,q=null,H=d.clone(),u,z=0;z<c.length;z++){var m=l.concat([z]),B="off"==c[z].expanded||0==c[z].expanded?t:F;r?(u=e.Y7a(b,h,c[z],H,w),u.a>H.a?(H.a<d.a&&(d.y+=u.b+B,d.b-=u.b+B),u=u.a<=d.a?e.Y7a(b,h,c[z],d,w):e.i8a(b,h,c[z],d,w,m,!0),d.y+=u.b+B,d.b-=u.b+B,H=d.clone()):(H.a-=u.a+n,a.A.ea(b.j())||(H.x+=u.a+n))):(u=e.i8a(b,h,c[z],d,w,m,!1),d.y+=u.b+B,d.b-=
u.b+B);q=q?q.Qj(u):u}return q};e.mEb=function(b,g,c,d,l,r,F,t,n,w,q){var H=e.Fwa(b,d,l+"Enabled",r,F),u=e.Fwa(b,d,l+"Over",r,F);d=e.Fwa(b,d,l+"Down",r,F);b=new a.pa(b,H,u,d,null,n,w,q);g=C.ub([b],g,c,t,null,!1);b.yg("button");g.OJa();return b};e.Fwa=function(b,g,c,d,l){var r=a.A.ea(b)?"RTL":"";b=new a.Image(b,g[c+r]?g[c+r]:g[c],d,l,e.Fj,e.Fj);b.hc();return b};e.i8a=function(b,h,c,d,l,r,F){if(c){var t=b.B(),n=g.li(b,t.layout.symbolGapWidth),w=g.li(b,t.layout.rowGap),q=g.li(b,t.layout.columnGap),H=
b.j(),u=a.A.ea(H);d=d.clone();"off"!=t.scrolling&&(d.b=Infinity);var z,m="on"==c.collapsible||1==c.collapsible,B;if(m){z=u?d.x+d.a-e.Fj:d.x;if(!t.isLayout){var k="off"==c.expanded||0==c.expanded;B=k?"closed":"open";var k=a.F.Ca(a.F.Pa,k?"EXPAND":"COLLAPSE",null),A=b.jb();B=e.mEb(H,b,c,t._resources,B,z,d.y,k,r,A.QHa,A);h.u(B)}z=new a.ca(z,d.y,e.Fj,e.Fj);H=g.li(b,t.layout.symbolGapWidth);u||(d.x+=e.Fj+H);d.a-=e.Fj+H}H=(H=e.X7(b,h,c.title,d,c,!m&&1>=r.length,r,B))?H.Zc():new a.ca(u?d.x+d.a:d.x,d.y,0,
0);H=z?H.Qj(z):H;if(!c.items&&!c.sections||"off"==c.expanded||0==c.expanded)return H;0<H.b&&(m=g.li(b,t.layout.titleGapHeight),d.y+=H.b+m,d.b-=H.b+m);c.sections&&(r=e.f8a(b,h,c.sections,d,r),H=H.Qj(r));if(!c.items)return H;m=e.lDb(b,d,l,c.items,F);F=m.numCols;r=m.numRows;m=m.width;z=d.y;if(0==r||0==F)return H;B=Math.min(F*(m+q)-q,d.a);H=H.Qj(new a.ca(u?d.x+d.a-B:d.x,d.y,B,r*(l+w)-w));if(t.isLayout)return H;t=m-t.symbolWidth-n;n=0;B=1;k=c.items.length;for(A=0;A<k&&(e.C5(b,h,c.items[A],d,t,l,A),d.y+=
l+w,n++,n===r&&B!==F&&(d.y=z,d.a-=m+q,u||(d.x+=m+q),n=0,B++),n!==r);A++);return H}};e.Y7a=function(b,h,c,d,l){if(c){var r=b.B(),F=r.symbolWidth,t=g.li(b,r.layout.symbolGapWidth),n=g.li(b,r.layout.columnGap),w=g.li(b,r.layout.titleGapWidth),q=c.items.length,H=a.A.ea(b.j()),u=d.clone(),z=e.X7(b,h,c.title,d,c,!1),m=z?z.Zc():new a.ca(H?d.x+d.a:d.x,d.y,0,0);if(!c.items)return m;0<m.a&&(u.a-=m.a+w,H||(u.x+=m.a+w));var w=[],B=d.a-u.a,k,A;for(A=0;A<q;A++)k=c.items[A],k=Math.ceil(a.Ja.pma(b.j(),k.text,r.textStyle)),
B+=k+F+t+n,w.push(k);0<q&&(B-=n);m=new a.ca(H?d.x+d.a-B:d.x,d.y,B,Math.max(l,m.b));if(r.isLayout||B>d.a)return h.removeChild(z),m;for(A=0;A<q;A++)k=c.items[A],e.C5(b,h,k,u,w[A],l,A),d=w[A]+F+t,u.a-=d+n,H||(u.x+=d+n);return m}};e.lDb=function(b,e,c,d,l){for(var r=b.B(),F=100<a.bg.SP(b),t=0,n=0;n<d.length;n++){var w=d[n];F?(w=new a.ha(b.j(),w.text),w.Nb(r.textStyle),w=a.Ja.Bk(w).a):w=a.Ja.pma(b.j(),w.text,r.textStyle);w>t&&(t=w)}F=r.symbolWidth;w=g.li(b,r.layout.symbolGapWidth);n=g.li(b,r.layout.rowGap);
b=g.li(b,r.layout.columnGap);t=Math.ceil(F+w+t);l?(l=Math.min(Math.floor((e.a+b)/(t+b)),d.length),c=Math.min(Math.floor((e.b+n)/(c+n)),Math.ceil(d.length/l)),l=Math.ceil(d.length/c),c=Math.ceil(d.length/l)):Infinity==e.b?(l=1,c=d.length):(c=Math.min(Math.floor((e.b+n)/(c+n)),d.length),l=Math.ceil(d.length/c),c=Math.ceil(d.length/l));e=Math.min(t,(e.a-b*(l-1))/l);return e<F?{width:0,numCols:0,numRows:0}:{width:e,numCols:l,numRows:c}};e.PHb=function(b){var e=b.B(),c=new a.ha(b.j(),"Test");c.Nb(e.textStyle);
c.wh();c=a.Ja.Bk(c).b;b=e.symbolHeight+g.li(b,e.layout.symbolGapHeight);return Math.ceil(Math.max(c,b))};e.C5=function(b,h,c,d,l,r){var F=b.B(),t=b.j(),n=a.A.ea(t),w=F.symbolWidth,q=g.li(b,F.layout.symbolGapWidth),H=n?d.x+d.a-w:d.x,u=n?d.x+d.a-w-q:d.x+w+q,z=e.BEb(b,H,d.y,r,c),m=c.text,B;m&&(B=e.CEb(h,l,m,F.textStyle))&&(B.Ha(u),a.Ja.V_(B,d.y+r/2),n&&B.ii());h.u(z);d=new a.Rect(t,n?u-l-e.A4:H-e.A4,d.y-e.A4,w+q+l+2*e.A4,r+2*e.A4);d.hc();F=F.hideAndShowBehavior;"none"!=F&&"off"!=F&&d.setCursor("pointer");
h.u(d);h=[d,z];null!=B&&h.push(B);B=C.ub(h,b,c,null!=B?B.Mr():null,c.shortDesc,e.iJb(b,c));e.Nma(e.Dla(c),b)&&(z.eM(B.tc()),z.ka().oe());if("none"!=F&&"off"!=F||null!=c.shortDesc)d.yg("img"),B.OJa()};e.iJb=function(a,e){return"on"==e.drilling?!0:"off"==e.drilling?!1:"on"==a.B().drilling};e.CEb=function(b,e,c,d){c=new a.ha(b.j(),c);c.Nb(d);return c=a.Ja.wd(c,e,Infinity,b)?c:null};e.BEb=function(b,g,c,d,l){var r=b.B(),F=b.j(),t=null!=l.type?l.type:l.symbolType;l.markerShape||(l.markerShape=r._markerShape);
l.color||(l.color=r._color);l.lineWidth||(l.lineWidth="lineWithMarker"==t?e.qua:r._lineWidth);var n=r.symbolWidth,r=r.symbolHeight,w=c+d/2,q=g+n/2;"line"==t?F=e.L0a(F,g,c,n,d,l):"lineWithMarker"==t?(F=e.L0a(F,g,c,n,d,l),e.Nma(e.Dla(l),b)||F.u(e.yB(b,q,w,n*e.uYa,r*e.uYa,l))):"image"==t?F=e.Iwa(b,g,c,n,r,d,l):"_verticalBoxPlot"==t?(r=Math.max(4*Math.round(r/4),4),F=new a.ra(F),F.u(e.yB(b,q,w+r/4,n,r/2,e.Tga(l,"q2"))),F.u(e.yB(b,q,w-r/4,n,r/2,e.Tga(l,"q3")))):"_horizontalBoxPlot"==t?(g=a.A.ea(F),n=Math.max(4*
Math.round(n/4),4),g=n/4*(g?1:-1),F=new a.ra(F),F.u(e.yB(b,q+g,w,n/2,r,e.Tga(l,"q2"))),F.u(e.yB(b,q-g,w,n/2,r,e.Tga(l,"q3")))):F=e.yB(b,q,w,n,r,l);return F};e.Iwa=function(b,e,c,d,g,l,F){return new a.Uf(b.j(),e+d/2,c+l/2,d,g,null,F.source)};e.yB=function(b,e,c,d,g,l){var F=b.j(),t=b.B();b=l.markerShape;var n=l.markerColor?l.markerColor:l.color,w=l.markerStyle||l.markerSvgStyle?l.markerStyle||l.markerSvgStyle:l.style||l.svgStyle,q=l.markerClassName||l.markerSvgClassName?l.markerClassName||l.markerSvgClassName:
l.className||l.svgClassName,H=l.pattern;H&&"none"!=H?(d=new a.Fa(F,b,t.skin,0,0,d,g,null,null,!0),d.wa(new a.Ic(H,n,"#FFFFFF")),d.Ta(e,c)):(d=new a.Fa(F,b,t.skin,e,c,d,g,null,null,!0),d.qb(n));l.borderColor&&d.cc(l.borderColor,null,l._borderWidth?l._borderWidth:1);"square"!=b&&"rectangle"!=b||d.rd();d.oe(q).ka(w);return d};e.L0a=function(b,e,c,d,g,l){c+=g/2;b=new a.Oc(b,e,c,e+d,c);e=new a.Da(l.color,1,l.lineWidth);d=l.lineStyle;"dashed"==d?e.sp(a.pd.iA(d),"4,2,4"):"dotted"==d&&e.sp(a.pd.iA(d),"2");
b.oe(l.className||l.svgClassName).ka(l.style||l.svgStyle);b.Na(e);b.rd();return b};e.Tga=function(a,e){return{markerShape:"rectangle",color:a._boxPlot[e+"Color"],pattern:a._boxPlot["_"+e+"Pattern"],className:a._boxPlot[e+"ClassName"]||a._boxPlot[e+"svgClassName"],style:a._boxPlot[e+"Style"]||a._boxPlot[e+"svgStyle"]}};e.Dla=function(a){var e=null;return e=a.categories&&0<a.categories.length?a.categories[0]:a.id?a.id:a.text};e.Nma=function(b,e){var c=e.B().hiddenCategories;return!c||0>=c.length?!1:
-1!==a.va.Fb(c,b)};a.ia(a,"Legend",a.bg);a.ia(a.bg,"newInstance",a.bg.newInstance);a.ia(a.bg.prototype,"destroy",a.bg.prototype.Ea);a.ia(a.bg.prototype,"getAutomation",a.bg.prototype.Di);a.ia(a.bg.prototype,"getPreferredSize",a.bg.prototype.Yu);a.ia(a.bg.prototype,"highlight",a.bg.prototype.Af);a.ia(a.bg.prototype,"render",a.bg.prototype.xa);a.ia(l.prototype,"getDomElementForSubId",l.prototype.ji);a.ia(l.prototype,"getItem",l.prototype.getItem);a.ia(l.prototype,"getSection",l.prototype.iWb);a.ia(l.prototype,
"getTitle",l.prototype.cF)})(dvt);