(function(a){function b(a,b,c,d,e,h){this.Init(a,b,c,d,e,h)}function c(a,b){this.Init(a,b)}function d(a){this.Init(a.j(),a.Df,a);this.Zc=a}function e(){this.Init({skyros:e.fi,alta:e.Ze,next:e.wz})}function f(a){this.Zc=a;this.gg=this.Zc.B()}a.of=t();a.k.A(a.of,a.Ae);a.of.newInstance=function(b,c,d){var e=new a.of;e.Init(b,c,d);return e};a.of.Tq=function(a){return(new e).Tq(a)};a.of.prototype.Init=function(b,c,h){a.of.v.Init.call(this,b,c,h);this.setId("legend1000"+Math.floor(1E9*Math.random()));this.eh=
new e;this.Pa=new d(this);this.Pa.hg(this);this.Pu=[];this.zw=[];this.me=q;this.uoa=[]};a.of.prototype.Gf=function(a){a?(this.U=this.eh.Pm(a),this.AKa(this.U.sections)):this.U||(this.U=this.YD())};a.of.prototype.Yr=function(b,c,d){this.Gf(b);this.B().isLayout=l;b=h.wa(this,new a.W(0,0,c,d));this.B().isLayout=s;return new a.Zj(b.a,b.b)};a.of.prototype.wa=function(b,d,e){this.Gf(b);!isNaN(d)&&!isNaN(e)&&(this.Cb=d,this.Ob=e);this.B().isLayout=s;this.tm();this.Pu=[];this.zw=[];this.me=q;this.uoa=[];
a.u.Va()||this.Pa.ps(new c(this.Pa,this));this.wr();this.Mia=h.wa(this,new a.W(0,0,this.Cb,this.Ob));(b=this.B().highlightedCategories)&&0<b.length&&this.Me(b);this.CB();return this.Mia};a.of.prototype.Me=function(b){this.B().highlightedCategories=b&&0<b.length?b.slice():q;a.Rg.Me(b,this.Pu,l)};a.of.prototype.Df=function(a,b){var c=a.type;if("categoryHighlight"==c&&"dim"==this.B().hoverBehavior){var d=this.Pu;this!=b&&this.Me(a.categories);for(var e=0;e<d.length;e++)if(d[e].getId()==a.categories){this.yLa.scrollIntoView(d[e].We()[0]);
break}}(this==b||"adfShowPopup"==c||"adfHidePopup"==c)&&this.dispatchEvent(a)};a.of.prototype.Ua=N("Pa");a.of.prototype.sha=function(b){if(b.We()[0]instanceof a.ba)this.zw.push(b);else{var c=this.B().hideAndShowBehavior;(b.ug()!=q||b.Yg()!=q||b.Ej()||"none"!=c&&"off"!=c)&&this.zw.push(b);this.Pu.push(b)}};a.of.prototype.oa=function(){this.Pa&&(this.Pa.Xj(this),this.Pa.oa(),this.Pa=q);a.of.v.oa.call(this)};a.of.prototype.tha=I("me");a.of.prototype.$_a=function(a){this.uoa.push(a)};a.of.prototype.mi=
function(){return new f(this)};a.of.prototype.WJ=function(){return this.Pa!=q?this.Pa.bf():q};a.of.prototype.eca=function(a,b){if(this.Pa!=q){for(var c=this.zw,d=0;d<c.length;d++)if(c[d].getId()==a.getId()){this.Pa.os(c[d]);b&&c[d].Pf();break}if(c=this.WJ())d=c.We()[0],d.zd("label",c.Fd()),this.j().QG(d)}};a.of.prototype.X=function(b){var c=new a.W(0,0,this.Cb,this.Ob);return!b||b===this?c:this.Zi(c,b)};a.of.prototype.IA=function(a){return!a||a===this?this.Mia:this.Zi(this.Mia,a)};a.of.prototype.xm=
function(){return a.G.pa(a.G.La,"LEGEND")};a.of.prototype.AKa=function(b){if(b&&!(0>=b.length))for(var c=this.B().hiddenCategories,d=0;d<b.length;d++){var e=b[d];e.sections&&(c=this.AKa(e.sections));if((e=e.items)&&!(0>=e.length))for(var f=0;f<e.length;f++){var v=e[f],x=h.iaa(v);"hidden"==v.categoryVisibility&&0>a.ha.rb(c,x)&&c.push(x);v.categoryVisibility=q}}};a.of.prototype.wr=function(){if(this.P3()){var b=this.B(),c=b.hideAndShowBehavior;if("off"!=c&&"none"!=c||"dim"==b.hoverBehavior)this.j().Nf("application"),
this.j().P1(a.G.pa(a.G.La,"COLON_SEP_LIST",[a.G.pa(a.G.La,"DATA_VISUALIZATION"),a.Md.MG(this.xm())]))}};a.of.prototype.FG=function(){return 0<this.zw.length};a.k.A(f,a.Wd);f.prototype.Ho=function(a){if((a=this.Zc.Ua().jb(a))&&a instanceof b)if(a=a.getData(),a=this.zEa(a,this.gg))return"section"+a;return q};f.prototype.zEa=function(a,b){if(b.sections&&0<b.sections.length){for(var c=0;c<b.sections.length;c++){if(b.sections[c]==a)return"["+c+"]";var d=this.zEa(a,b.sections[c]);if(d)return"["+c+"]"+d}return q}if(b.items&&
0<b.items.length){for(c=0;c<b.items.length;c++)if(b.items[c]==a)return":item["+c+"]";return q}};f.prototype.dNa=function(a,b){if(b.sections&&0<b.sections.length){for(var c=0;c<b.sections.length;c++){var d=this.dNa(a,b.sections[c]);if(d)return"["+c+"]"+d}return q}if(b.items&&0<b.items.length){for(c=0;c<b.items.length;c++)if(b.items[c].text==a.name)return":item["+c+"]";return q}};f.prototype.sqa=function(a,b){var c=b.indexOf("["),d=b.indexOf("]");if(0<=c&&0<=d){var c=b.substring(c+1,d),e=b.indexOf(":");
b=b.substring(d+1);d=b.indexOf("]");return 0<=b.indexOf("[")&&0<=d?this.sqa(a.sections[c],b):0==e?a.items[c]:a.sections[c]}};f.prototype.oi=function(b){if(b==a.Wd.JB)return this.bE(this.Zc);b=this.sqa(this.gg,b);for(var c=this.Zc.Pu,d=0;d<c.length;d++){var e=c[d].getData();if(b==e)return c[d].We()[0].nb()}return q};f.prototype.QA=function(){return this.gg.title};f.prototype.getItem=function(a){for(var b,c=a.shift(),d=this.gg;c!=ba;)0<a.length?d=d.sections[c]:b=d.items[c],c=a.shift();return b?{text:b.text?
b.text:q}:q};f.prototype.bfb=function(a){for(var b,c=a.shift(),d=this.gg;c!=ba;)0<a.length?d=d.sections[c]:b=d.sections[c],c=a.shift();return{title:b.title?b.title:q,items:b.items?this.aEa(b.items):q,sections:b.sections?this.dEa(b.sections):q}};f.prototype.aEa=function(a){for(var b=[],c=0;c<a.length;c++)b.push({text:a[c].text});return b};f.prototype.dEa=function(a){for(var b=[],c=0;c<a.length;c++)b.push({title:a[c].title?a[c].title:q,items:a[c].items?this.aEa(a[c].items):q,sections:a[c].sections?
this.dEa(a[c].sections):q});return b};a.k.A(e,a.ab);e.wz={skin:a.e.wz,titleStyle:new a.e("color: #737373;"),_sectionTitleStyle:new a.e("color: #737373;"),layout:{titleGapWidth:17,titleGapHeight:9,symbolGapWidth:7,symbolGapHeight:4,rowGap:4,columnGap:10,sectionGapHeight:16,sectionGapWidth:24}};e.Ze={skin:a.e.Ze,textStyle:new a.e(a.ab.am),titleStyle:new a.e(a.ab.cL+"color: #333333;"),_sectionTitleStyle:new a.e(a.ab.cL+"color: #333333;")};e.fi={skin:a.e.og,orientation:"vertical",position:q,backgroundColor:q,
borderColor:q,textStyle:new a.e(a.ab.As+"font-size: 11px; color: #333333;"),titleStyle:new a.e(a.ab.As+"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:s};e.Zg=function(b,c){var d=Math.min(a.Ba.PA(b.j(),b.B().textStyle)/14,1);return Math.ceil(c*d)};a.k.A(d,a.L);d.prototype.oj=function(a){d.v.oj.call(this,a);var b=this.jb(a.target);if(b){var c=this.ysa(b),b=this.ira(b,a);(c||b)&&a.stopPropagation()}};d.prototype.Dx=function(b){d.v.Dx.call(this,b);if(b=this.jb(b.target)){var c=b instanceof a.Ph?b.Oq:q;c&&(c.isCollapsible&&c.button)&&c.button.a0();this.LB(b)}};d.prototype.On=function(b){d.v.On.call(this,b);if(b=this.jb(b.target))(b=
b instanceof a.Ph?b.Oq:q)&&(b.isCollapsible&&b.button)&&b.button.hD()};d.prototype.Hv=function(a){var b=this.jb(a.target);if(b){var c=a.pta,d=this.ysa(b);a=this.ira(b,a);(d||a)&&c&&c.preventDefault()}};d.prototype.ysa=function(b){var c=this.Zc.B().hideAndShowBehavior;if("none"==c||"off"==c)return s;var d=b.we?b.we():q;if(!d||0>=d.length)return s;for(var e=b.we()[0],c=this.Zc.B().hiddenCategories||[],c=c.slice(),f=b.We(),v=0;v<f.length;v++){var x=f[v];x instanceof a.ta?x.Z1(b.zc()):x instanceof a.na&&
b.tta()}b=d[0];h.bba(e,this.Zc)?(c.splice(a.ha.rb(c,e),1),b=a.Ya.uhb(b,c)):(c.push(e),b=a.Ya.thb(b,c));this.Zc.B().hiddenCategories=c;this.Ak(b,this.Zc);return l};d.prototype.ira=function(c,d){if(c&&c.Yg&&c.Yg())return this.Ak(a.Ya.KG("action",c.Yg(),c.getId()),this.Zc),l;if(c instanceof b&&c.Ej()){var e=c.getId();this.Ak(a.Ya.vba(e,e,q),this.Zc);return l}return(e=c instanceof a.Ph?c.Oq:q)&&e.isCollapsible?(this.SQa(d,e.id),l):s};d.prototype.Cp=function(b,c,d){b=this.Zc.B();"none"==b.hoverBehavior||
c.We&&c.We()[0]instanceof a.ba||(c=c.we?c.we():[],b.highlightedCategories=d?c.slice():q,d=a.Ya.LG(b.highlightedCategories,d),b=a.Ra.cs(b.hoverBehaviorDelay),this.GH.Df(d,this.Zc.Pu,b,l))};d.prototype.bsa=function(a,b){var c=b.getId();this.SQa(a,c)};d.prototype.SQa=function(b,c){for(var d=this.Zc.B(),e=0;e<c.length;e++)d=d.sections[c[e]];d.expanded="off"==d.expanded?"on":"off";b.type==a.ra.Ee&&(d=this.jb(this.$d(b)),d.Zd&&this.os(d.Zd(b)));e=(d=this.Zc.WJ())?d.Qd():s;this.Zc.wa();d&&this.Zc.eca(d,
e);this.je();d=this.Zc.IA();this.Ak(new a.Bm(d.a,d.b,d.x,d.y),this.Zc)};d.prototype.oz=function(){return this.Zc.B()._isScrollingLegend?a.L.uE:a.L.Ix};a.k.A(c,a.Db);c.prototype.Init=function(a,b){c.v.Init.call(this,a);this.Zc=b};c.prototype.yk=function(b){var d=b.keyCode,e=this.Pa.bf(),h=e&&e.We()[0]instanceof a.ba,f=q;e==q&&d==a.I.Qh?(d=this.Zc.zw,0<d.length&&(a.L.rc(b),f=this.RJ(d))):e&&(d==a.I.Qh?(a.L.rc(b),f=e):d==a.I.wi||d==a.I.xi?(d==a.I.wi&&this.Pa.ira(e,b),h?this.Pa.bsa(b,e.We()[0]):this.Pa.ysa(e),
a.L.rc(b)):h&&(d==a.I.ag||d==a.I.bg)?(this.Pa.bsa(b,e.We()[0]),a.L.rc(b)):f=c.v.yk.call(this,b));f&&this.Zc.yLa.scrollIntoView(f.We()[0]);return f};a.k.A(b,a.k);b.prototype.Init=function(a,b,c,d,e,f){this.Zc=a;this.pg=b;this.ho=c;this.qc=(this.iM=h.iaa(this.ho))?this.iM:c.title;this.wq=c.action;this.gw=f;this.l$a=c._spb;this.il=d;this.T6=e;this.fd=s;if(this.wq||this.gw)for(a=0;a<this.pg.length;a++)this.pg[a].setCursor("pointer")};b.mb=function(a,c,d,e,h,f){if(!a||!d)return q;d=new b(c,a,d,e,h,f);
c.sha(d);for(e=0;e<a.length;e++)c.Ua().mb(a[e],d);return d};b.prototype.getData=N("ho");b.prototype.zc=function(){return this.ho.color};b.prototype.getId=N("qc");b.prototype.We=N("pg");b.prototype.we=function(){return this.iM!=q?[this.iM]:q};b.prototype.Yg=N("wq");b.prototype.Ej=N("gw");b.prototype.gf=N("l$a");b.prototype.Fd=function(){var b=[],c=this.Zc.B(),d=this.Zc.B().hideAndShowBehavior,e=h.bba(this.iM,this.Zc),f=this.getData();if(this.pg[0]instanceof a.ba)return b.push(a.G.pa(a.G.La,"off"==
f.expanded?"STATE_COLLAPSED":"STATE_EXPANDED")),a.ja.sk(f.title,b);"off"!=d&&"none"!=d&&b.push(a.G.pa(a.G.La,e?"STATE_HIDDEN":"STATE_VISIBLE"));this.Ej()&&b.push(a.G.Ng(c,"stateDrillable",a.G.La,"STATE_DRILLABLE"));return f.shortDesc!=q?a.ja.sk(f.shortDesc,b):0<b.length?a.ja.sk(f.text,b):q};b.prototype.tta=function(){!a.u.Fi()&&this.pg[0]&&this.pg[0].zd("label",this.Fd())};b.prototype.Zd=function(b){return b.type==a.ra.Ee?this:a.Db.Zd(this,b,this.Zc.zw,l)};b.prototype.uf=function(b){return this.pg[0]?
this.pg[0].X(b):new a.W(0,0,0,0)};b.prototype.rm=function(){return this.pg[0]?this.pg[0].nb():q};b.prototype.Pf=function(){this.fd=l;this.pg[0]&&(this.pg[0]instanceof a.ba?this.pg[0].a0():this.pg[0].Mb(a.u.eqa()))};b.prototype.Nd=function(){this.fd=s;this.pg[0]&&(this.pg[0]instanceof a.ba?this.pg[0].hD():this.pg[0].Aa(q))};b.prototype.Qd=N("fd");b.prototype.si=N("il");b.prototype.ug=N("T6");b.prototype.ll=function(){return this.ho.color};var h={};a.k.A(h,a.k);h.Lga=2;h.qAa=0.6;h.Uza=10;h.Gk=12;h.jX=
2;h.wa=function(b,c){var d=b.B(),f=b.j(),r=a.u.aa(f);d.isLayout||h.xy(b,c);var v=new a.ih(f,c.a,c.b),x=new a.ea(f);v.za.q(x);b.q(v);b.yLa=v;var z=e.Zg(b,d.layout.outerGapWidth),y=e.Zg(b,d.layout.outerGapHeight);c.x+=z;c.y+=y;c.a-=2*z;c.b-=2*y;b.tha(c);if(0>=c.a||0>=c.b)return new a.Zj(0,0);f=h.T8a(b,x,new a.W(c.x,c.y,c.a,c.b));if(0==f.a||0==f.b)return new a.Zj(0,0);v.K1();f.b>c.b?(f.b=c.b,d._isScrollingLegend=l):d._isScrollingLegend=s;var B=v=0,G=d.hAlign!=q?d.hAlign:d.halign;"center"==G?v=c.x-f.x+
(c.a-f.a)/2:"end"==G&&(v=r?c.x-f.x:c.x-f.x+c.a-f.a);r=d.vAlign!=q?d.vAlign:d.valign;"middle"==r?B=c.y-f.y+(c.b-f.b)/2:"bottom"==r&&(B=c.y-f.y+c.b-f.b);r=new a.W(f.x+v-z,f.y+B-y,f.a+2*z,f.b+2*y);if(d.isLayout)return r;(v||B)&&x.Ja(v,B);d=b.uoa;for(x=0;x<d.length;x++)a.Ln.align(f,d[x].Tfb,d[x].text,d[x].text.Qc().a);return r};h.T8a=function(a,b,c){var d=a.B();c=c.Ga();var f=h.ON(a,b,d.title,c,q,l);if(f){var v=f.Qc(),x=e.Zg(a,d.layout.titleGapHeight);c.y+=v.b+x;c.b-=Math.floor(v.b+x)}a=h.jJa(a,b,d.sections,
c,[]);return f?v.Dj(a):a};h.xy=function(b,c){var d=b.B(),e=d.backgroundColor,d=d.borderColor;if(e||d){var h=new a.na(b.j(),c.x,c.y,c.a,c.b);e?h.lb(e):h.dc();d&&(h.Mb(d),h.wd());b.q(h)}};h.ON=function(b,c,d,e,h,f,x,z){var y=b.B(),B=c.j(),G=a.u.aa(B);if(!d)return q;d=new a.Y(B,d,e.x,e.y);B=y.titleStyle;h&&h.titleStyle?B=new a.e(h.titleStyle):h&&y._sectionTitleStyle&&(B=y._sectionTitleStyle);d.Eb(B);return a.Ba.sd(d,e.a,Infinity,c)?(G&&d.Ha(e.x+e.a-d.Qc().a),y.isLayout?c.removeChild(d):(c={id:x,button:z},
c.isCollapsible=h&&("on"==h.collapsible||h.collapsible==l),b.Ua().mb(d,new a.Ph(d.ds(),q,q,c)),f&&b.$_a({text:d,Tfb:h&&h.titleHalign?h.titleHalign:y.titleHalign})),d):q};h.jJa=function(b,c,d,f,r){var v=b.B();v.symbolWidth==q&&v.symbolHeight==q?(v.symbolWidth=h.Uza,v.symbolHeight=h.Uza):(v.symbolWidth==q?v.symbolWidth=v.symbolHeight:v.symbolHeight==q&&(v.symbolHeight=v.symbolWidth),v.symbolWidth=parseInt(v.symbolWidth),v.symbolHeight=parseInt(v.symbolHeight));for(var x=e.Zg(b,v.layout.sectionGapHeight),
z=e.Zg(b,v.layout.titleGapHeight),y=e.Zg(b,v.layout.sectionGapWidth),B=h.b5a(b),v="vertical"!=v.orientation,G=q,w=f.Ga(),D,C=0;C<d.length;C++){var E=r.concat([C]),H="off"==d[C].expanded||d[C].expanded==s?z:x;v?(D=h.bJa(b,c,d[C],w,B),D.a>w.a?(w.a<f.a&&(f.y+=D.b+H,f.b-=D.b+H),D=D.a<=f.a?h.bJa(b,c,d[C],f,B):h.mJa(b,c,d[C],f,B,E,l),f.y+=D.b+H,f.b-=D.b+H,w=f.Ga()):(w.a-=D.a+y,a.u.aa(b.j())||(w.x+=D.a+y))):(D=h.mJa(b,c,d[C],f,B,E,s),f.y+=D.b+H,f.b-=D.b+H);G=G?G.Dj(D):D}return G};h.q2a=function(c,d,e,f,
r,v,x,z,y,B,G){var w=h.Uia(c,f,r+"Enabled",v,x),D=h.Uia(c,f,r+"Over",v,x);f=h.Uia(c,f,r+"Down",v,x);c=new a.ba(c,w,D,f,q,y,B,G);d=b.mb([c],d,e,z,q,s);c.Nf("button");d.tta();return c};h.Uia=function(b,c,d,e,f){var v=a.u.aa(b)?"RTL":"";b=new a.Bb(b,c[d+v]?c[d+v]:c[d],e,f,h.Gk,h.Gk);b.dc();return b};h.mJa=function(b,c,d,f,r,v,x){if(d){var z=b.B(),y=e.Zg(b,z.layout.symbolGapWidth),B=e.Zg(b,z.layout.rowGap),G=e.Zg(b,z.layout.columnGap),w=b.j(),D=a.u.aa(w);f=f.Ga();"off"!=z.scrolling&&(f.b=Infinity);var C,
E="on"==d.collapsible||d.collapsible==l,H;if(E){C=D?f.x+f.a-h.Gk:f.x;if(!z.isLayout){var L="off"==d.expanded||d.expanded==s;H=L?"closed":"open";var L=a.G.pa(a.G.La,L?"EXPAND":"COLLAPSE",q),A=b.Ua();H=h.q2a(w,b,d,z._resources,H,C,f.y,L,v,A.bsa,A);c.q(H)}C=new a.W(C,f.y,h.Gk,h.Gk);w=e.Zg(b,z.layout.symbolGapWidth);D||(f.x+=h.Gk+w);f.a-=h.Gk+w}w=(w=h.ON(b,c,d.title,f,d,!E&&1>=v.length,v,H))?w.Qc():new a.W(D?f.x+f.a:f.x,f.y,0,0);w=C?w.Dj(C):w;if(!d.items&&!d.sections||"off"==d.expanded||d.expanded==s)return w;
0<w.b&&(E=e.Zg(b,z.layout.titleGapHeight),f.y+=w.b+E,f.b-=w.b+E);d.sections&&(v=h.jJa(b,c,d.sections,f,v),w=w.Dj(v));if(!d.items)return w;E=h.F1a(b,f,r,d.items,x);x=E.numCols;v=E.numRows;E=E.width;C=f.y;if(0==v||0==x)return w;H=v*(r+B)-B;L=Math.min(x*(E+G)-G,f.a);w=w.Dj(new a.W(D?f.x+f.a-L:f.x,f.y,L,H));if(z.isLayout)return w;z=E-z.symbolWidth-y;y=0;H=1;L=d.items.length;for(A=0;A<L&&!(h.cY(b,c,d.items[A],f,z,r,A),f.y+=r+B,y++,y===v&&H!==x&&(f.y=C,f.a-=E+G,D||(f.x+=E+G),y=0,H++),y===v);A++);return w}};
h.bJa=function(b,c,d,f,r){if(d){var v=b.B(),x=v.symbolWidth,z=e.Zg(b,v.layout.symbolGapWidth),y=e.Zg(b,v.layout.columnGap),B=e.Zg(b,v.layout.titleGapWidth),G=d.items.length,w=a.u.aa(b.j()),D=f.Ga(),C=h.ON(b,c,d.title,f,d,s),E=C?C.Qc():new a.W(w?f.x+f.a:f.x,f.y,0,0);if(d.items)0<E.a&&(D.a-=E.a+B,w||(D.x+=E.a+B));else return E;var B=[],H=f.a-D.a,L,A;for(A=0;A<G;A++)L=d.items[A],L=Math.ceil(a.Ba.Naa(b.j(),L.text,v.textStyle)),H+=L+x+z+y,B.push(L);0<G&&(H-=y);E=new a.W(w?f.x+f.a-H:f.x,f.y,H,Math.max(r,
E.b));if(v.isLayout||H>f.a)return c.removeChild(C),E;for(A=0;A<G;A++)L=d.items[A],h.cY(b,c,L,D,B[A],r,A),f=B[A]+x+z,D.a-=f+y,w||(D.x+=f+y);return E}};h.F1a=function(b,c,d,h,f){for(var v=b.B(),x=0,z=0;z<h.length;z++){var y=a.Ba.Naa(b.j(),h[z].text,v.textStyle);y>x&&(x=y)}var z=v.symbolWidth,B=e.Zg(b,v.layout.symbolGapWidth),y=e.Zg(b,v.layout.rowGap);b=e.Zg(b,v.layout.columnGap);x=Math.ceil(z+B+x);f?(f=Math.min(Math.floor((c.a+b)/(x+b)),h.length),d=Math.min(Math.floor((c.b+y)/(d+y)),Math.ceil(h.length/
f)),f=Math.ceil(h.length/d),d=Math.ceil(h.length/f)):Infinity==c.b?(f=1,d=h.length):(d=Math.min(Math.floor((c.b+y)/(d+y)),h.length),f=Math.ceil(h.length/d),d=Math.ceil(h.length/f));c=Math.min(x,(c.a-b*(f-1))/f);return c<z?{width:0,numCols:0,numRows:0}:{width:c,numCols:f,numRows:d}};h.b5a=function(b){var c=b.B(),d=new a.Y(b.j(),"Test");d.Eb(c.textStyle);d.rg();d=a.Ba.wk(d).b;b=c.symbolHeight+e.Zg(b,c.layout.symbolGapHeight);return Math.ceil(Math.max(d,b))};h.cY=function(c,d,f,n,r,v){var x=c.B(),z=
c.j(),y=a.u.aa(z),B=x.symbolWidth,G=e.Zg(c,x.layout.symbolGapWidth),w=y?n.x+n.a-B:n.x,D=y?n.x+n.a-B-G:n.x+B+G,C=h.B2a(c,w,n.y,v,f),E=f.text,H;if(E&&(H=h.C2a(d,r,E,x.textStyle)))H.Ha(D),a.Ba.W_(H,n.y+v/2),y&&H.yj();d.q(C);n=new a.na(z,y?D-r-h.jX:w-h.jX,n.y-h.jX,B+G+r+2*h.jX,v+2*h.jX);n.dc();x=x.hideAndShowBehavior;"none"!=x&&"off"!=x&&n.setCursor("pointer");d.q(n);d=[n,C];H!=q&&d.push(H);H=b.mb(d,c,f,H!=q?H.ds():q,f.shortDesc,h.q6a(c,f));h.bba(h.iaa(f),c)&&C.Z1(H.zc());if("none"!=x&&"off"!=x||f.shortDesc!=
q)n.Nf("img"),H.tta()};h.q6a=function(a,b){return"on"==b.drilling?l:"off"==b.drilling?s:"on"==a.B().drilling};h.C2a=function(b,c,d,e){d=new a.Y(b.j(),d);d.Eb(e);return d=a.Ba.sd(d,c,Infinity,b)?d:q};h.B2a=function(a,b,c,d,e){var f=a.B(),x=e.type!=q?e.type:e.symbolType;e.markerShape||(e.markerShape=f._markerShape);e.color||(e.color=f._color);e.lineWidth||(e.lineWidth="lineWithMarker"==x?h.Lga:f._lineWidth);var z=f.symbolWidth,f=f.symbolHeight,y=c+d/2,B=b+z/2;"line"==x?b=h.QCa(a.j(),b,c,z,d,e):"lineWithMarker"==
x?(b=h.QCa(a.j(),b,c,z,d,e),h.bba(h.iaa(e),a)||b.q(h.nM(a,B,y,z*h.qAa,f*h.qAa,e))):b="image"==x?h.Wia(a,b,c,z,f,d,e):h.nM(a,B,y,z,f,e);return b};h.Wia=function(b,c,d,e,h,f,x){return new a.wf(b.j(),c+e/2,d+f/2,e,h,q,x.source)};h.nM=function(b,c,d,e,h,f){var x=b.j(),z=b.B();b=f.markerShape;var y=f.markerColor?f.markerColor:f.color,B=f.pattern;B&&"none"!=B?(e=new a.ta(x,b,z.skin,0,0,e,h,q,q,l),e.la(new a.pc(B,y,"#FFFFFF")),e.Ja(c,d)):(e=new a.ta(x,b,z.skin,c,d,e,h,q,q,l),e.lb(y));f.borderColor&&e.Mb(f.borderColor,
q,f._borderWidth?f._borderWidth:1);"square"==b&&e.wd();return e};h.QCa=function(b,c,d,e,h,f){d+=h/2;b=new a.Wc(b,c,d,c+e,d);c=new a.xa(f.color,1,f.lineWidth);f=f.lineStyle;"dashed"==f?c.Gn(a.Rc.Hw(f),"4,2,4"):"dotted"==f&&c.Gn(a.Rc.Hw(f),"2");b.Aa(c);b.wd();return b};h.iaa=function(a){var b=q;return b=a.categories&&0<a.categories.length?a.categories[0]:a.id?a.id:a.text};h.bba=function(b,c){var d=c.B().hiddenCategories;return!d||0>=d.length?s:-1!==a.ha.rb(d,b)};a.Ta(a,"Legend",a.of);a.Ta(a.of,"newInstance",
a.of.newInstance);a.Ta(a.of.prototype,"destroy",a.of.prototype.oa);a.Ta(a.of.prototype,"getAutomation",a.of.prototype.mi);a.Ta(a.of.prototype,"getPreferredSize",a.of.prototype.Yr);a.Ta(a.of.prototype,"highlight",a.of.prototype.Me);a.Ta(a.of.prototype,"render",a.of.prototype.wa);a.Ta(f.prototype,"getDomElementForSubId",f.prototype.oi);a.Ta(f.prototype,"getItem",f.prototype.getItem);a.Ta(f.prototype,"getSection",f.prototype.bfb);a.Ta(f.prototype,"getTitle",f.prototype.QA)})(dvt);