(function(a){function b(a){this.Init(a)}function c(a,b,c,d){this.Init(b,c,d);this.ca=a}function d(){}function e(){this.Init({alta:e.fi})}function f(a,b,c){this.Init(a,b,c)}function h(a,b,c,d,e,f,h){this.Init(a,b,c,d,e,f,h)}function k(a){this.WC=a}a.Fh=function(a,b,c){this.Init(a,b,c)};a.k.A(a.Fh,a.Ae);a.Fh.newInstance=function(b,c,d){return new a.Fh(b,c,d)};a.Fh.prototype.Init=function(d,f,h){a.Fh.v.Init.call(this,d,f,h);this.j().$e.nb().setAttributeNS(q,"text-rendering","geometricPrecision");this.L=
new c(this,d,this.Df,this);this.L.hg(this);a.u.Va()||this.L.ps(new b(this.L));this.eh=new e;this.Wb=[];this.Pu=[];this.Fj=q;this.ln=new a.Ii(this.j());this.L.kV(this.ln)};a.Fh.prototype.wa=function(b,c,d){!isNaN(c)&&!isNaN(d)&&(this.Cb=c,this.Ob=d);this.mX();this.Gf(b);this.Sb&&this.Sb.stop();this.hj=this.za;this.AZ=this.Wb;this.Wb=[];this.$Fa=[];this.za=new a.ea(this.j());this.q(this.za);m.wa(this,this.za,new a.W(0,0,this.Cb,this.Ob));this.Tc&&this.Tc.Gt(this.U.selection,this.iv());c=this.U.animationDuration;
d=new a.W(0,0,this.Cb,this.Ob);this.hj?"none"!==this.U.animationOnDataChange&&b&&(this.uh=new a.ea(this.j()),this.q(this.uh),b=new a.zp(this.j(),this.uh),b.Xp(this.AZ,this.Wb),this.Sb=b.cv()):"none"!==this.U.animationOnDisplay&&(this.Sb=a.jc.mD(this.j(),a.jc.nB,this.za,d,c));this.Sb?(this.L.je(),this.L.Xj(this),this.Sb.Of(this.wxa,this),this.Sb.play()):this.wxa();this.wr()};a.Fh.prototype.Fsa=I("Wb");a.Fh.prototype.mi=function(){this.Wd||(this.Wd=new k(this));return this.Wd};a.Fh.prototype.yK=function(a,
b){this.Pu.push(a);this.$Fa[b]=a};a.Fh.prototype.iv=N("Pu");a.Fh.prototype.uk=N("$Fa");a.Fh.prototype.Me=function(b){this.U.highlightedCategories=a.Ec.Ga(b);a.Rg.Me(b,this.iv(),"any"===this.U.highlightMatch);this.Fj&&this.Fj.Me(b)};a.Fh.prototype.select=function(b){this.U.selection=a.Ec.Ga(b);this.Tc&&this.Tc.Gt(this.U.selection,this.iv())};a.Fh.prototype.Gf=function(b){b?this.U=this.eh.Pm(b):this.U||(this.U=this.YD());b=this.U.selectionMode;this.Tc="single"===b?new a.Tc(a.Tc.Az):"multiple"===b?new a.Tc(a.Tc.zz):
q;this.L.kB(this.Tc);a.u.Xi()||(this.U.animationOnDisplay="none",this.U.animationOnDataChange="none")};a.Fh.prototype.xm=function(){return a.G.Ng(this.B(),"componentName",a.G.La,"TAG_CLOUD")};a.Fh.prototype.wxa=function(){this.hj&&(this.removeChild(this.hj),this.hj.oa(),this.hj=q);this.uh&&(this.removeChild(this.uh),this.uh.oa(),this.uh=q);this.Sb&&(this.Sb=q,this.L.hg(this));this.U.highlightedCategories&&0<this.U.highlightedCategories.length&&this.Me(this.U.highlightedCategories)};a.Fh.prototype.mX=
function(){this.L.je();this.Pu.length=0};a.Fh.prototype.Ua=N("L");a.Fh.prototype.Df=function(b,c){var d=b.type;if("categoryHide"==d||"categoryShow"==d){var e=b.category,f=a.ha.rb(this.U.hiddenCategories,e);"categoryHide"==d&&0>f&&this.U.hiddenCategories.push(e);"categoryShow"==d&&0<=f&&this.U.hiddenCategories.splice(f,1);this.wa(this.U,this.Cb,this.Ob)}else"categoryHighlight"==d&&(this!=c?this.Me(b.categories):this.Fj&&this.Fj!=c&&this.Fj.Df(b,c));b&&this.dispatchEvent(b)};a.Fh.prototype.rgb=function(a){return this.Tc?
a[0]:q};a.Fh.prototype.rdb=function(a){a.wb()||(this.Tc.jq(a,s),this.L.kG());a=[];for(var b=this.Tc.getSelection(),c=0;c<b.length;c++){var d=b[c];d instanceof f&&a.push(d.getId())}return a};a.Fh.prototype.mG=function(){for(var a=[],b=this.Tc.getSelection(),c=0;c<b.length;c++)a=a.concat(b[c].We());return a};a.Fh.prototype.Bn=function(a,b,c){return this.ln.Bn(c)};a.Fh.prototype.kp=function(a,b){return this.ln.kp(a,b)};a.k.A(k,a.Wd);k.prototype.Ho=function(a){return(a=this.WC.L.jb(a))&&a instanceof f?
"item["+this.WC.uk().indexOf(a)+"]":q};k.prototype.oi=function(b){if(b==a.Wd.JB)return this.bE(this.WC);var c=b.indexOf("[");return 0<c&&"item"===b.substring(0,c)&&(b=parseInt(b.substring(c+1,b.length-1)),b=this.WC.uk()[b])?b.We()[0].nb():q};k.prototype.getItem=function(a){if(a=this.WC.uk()[a]){var b={};b.color=a.ll();b.tooltip=a.de();b.label=a.xe();b.value=a.getValue();b.selected=a.wb();return b}return q};k.prototype.gU=function(){return this.WC.iv().length};a.k.A(h,a.oe);h.WYa=0.3;h.XYa=0.6;h.Bca=
0;h.Dca=1;h.Cca=2;h.prototype.Init=function(a,b,c,d,e,f,k){h.v.Init.call(this,b,c,d,e,f,k);this.WC=a;this.HJ();f&&this.NCa(f)};h.prototype.uc=function(a){this.dl!=a&&((this.dl=a)?this.Vo?this.Eb(this.J7):this.Eb(this.C9):this.Eb(this.oN))};h.prototype.Ad=function(){this.Vo||(this.Vo=l,this.dl?this.Eb(this.J7):this.Eb(this.Oka))};h.prototype.ad=function(){this.dl?this.Eb(this.C9):this.Eb(this.oN);this.Vo=s};h.prototype.nh=function(b,c){var d=new a.Pd(this.j(),this,p.pb(this.WC)),e=this.Gd(),f=c.Gd(),
k=s,m=f.K(a.e.lc),G=e.K(a.e.lc);if(m!=G){var w=this;this.Eb(e.qa(a.e.lc,m));d.ga.M(a.F.dza,this,function(){return w.Gd().K(a.e.lc)},function(b){w.Eb(w.Gd().qa(a.e.lc,b))},G)}f=parseFloat(f.K(a.e.Bh));e=parseFloat(e.K(a.e.Bh));f!=e&&(k=l,w=this,this.Gg(f),d.ga.M(a.F.T,this,function(){return parseFloat(w.Gd().K(a.e.Bh))},this.Gg,e));e=c.Wa();f=this.Wa();m=c.Wq();G=this.Wq();if(f!=e||k&&G!=m)G!=m&&(e=h.x0a(c,e,m)),this.Ha(e),d.ga.M(a.F.T,this,this.Wa,this.Ha,f);k=c.fb();e=this.fb();e!=k&&(this.ib(k),
d.ga.M(a.F.T,this,this.fb,this.ib,e));c.Q(0);b.add(d,h.Dca)};h.prototype.Vj=function(b){b.add(new a.Gj(this.j(),this,p.pb(this.WC)),h.Bca)};h.prototype.Ri=function(b){this.Q(0);b.add(new a.Ah(this.j(),this,p.pb(this.WC)),h.Cca)};h.prototype.Gg=function(a){h.v.Gg.call(this,a);this.NCa(this.Gd())};h.prototype.NCa=function(b){this.oN=b.Ga();b=this.oN.K(a.e.lc);this.oN.qa(a.e.Nb,q);this.Oka=this.oN.Ga();var c=h.wGa(b,h.WYa);this.Oka.qa(a.e.Nb,c);this.Oka.qa(a.e.lc,a.J.Rm(c));this.C9=this.oN.Ga();this.C9.qa(a.e.Nb,
b);this.C9.qa(a.e.lc,a.J.Rm(b));this.J7=this.oN.Ga();b=h.wGa(b,h.XYa);this.J7.qa(a.e.Nb,b);this.J7.qa(a.e.lc,a.J.Rm(b))};h.x0a=function(b,c,d){b=b.zfb();return d==a.Y.Io?c+b.a:d==a.Y.ul?c-b.a:c};h.wGa=function(b,c){var d=a.J.yg(b),e=a.J.vg(b),f=a.J.tg(b);return a.J.JG(Math.floor(255*(1-c)+c*d),Math.floor(255*(1-c)+c*e),Math.floor(255*(1-c)+c*f))};a.k.A(f,a.k);f.prototype.Init=function(b,c,d){this.ca=b;this.cj=c;this.Pb=d;this.eM=this.dl=s;d.url?(c.Nf("link"),this.Jla=a.H.$J("_blank",d.url)):c.Nf("img");
this.Wu()};f.prototype.getId=function(){return this.Pb.id};f.prototype.xe=function(){return this.Pb.label};f.prototype.getValue=function(){return this.Pb.value};f.prototype.de=function(){return this.Pb.shortDesc};f.prototype.Yg=function(){return this.Pb.action};f.prototype.ug=function(){var a=this.ca.B().tooltip;return a?this.ca.j().Zf().Mw(a,this.$p()):this.de()};f.prototype.$p=function(){return{id:this.getId(),label:this.xe(),color:this.ll(),value:this.getValue()}};f.prototype.$J=N("Jla");f.prototype.ll=
function(){this.uu||(this.uu=(new a.e(this.Pb.style)).K(a.e.lc));return this.uu};f.prototype.Yh=I("eM");f.prototype.qb=N("eM");f.prototype.wb=N("dl");f.prototype.uc=function(a){this.dl=a;this.cj.uc(a);this.Wu()};f.prototype.Ad=function(){this.cj.Ad()};f.prototype.ad=function(){this.cj.ad()};f.prototype.Zd=function(c){var d=this.ca.L.Db;return c.type==a.ra.Ee||d.pv(c)?this:d.Yi(c)?b.Zd(this,c,this.ca.iv()):q};f.prototype.uf=function(a){return this.cj.X(a)};f.prototype.rm=function(){return this.cj.nb()};
f.prototype.Pf=function(){this.fd=l;this.Ad()};f.prototype.Nd=function(){this.fd&&(this.fd=s,this.ad())};f.prototype.Qd=N("fd");f.prototype.We=function(){return[this.cj]};f.prototype.Fd=function(){var b=[];this.qb()&&b.push(a.G.pa(a.G.La,this.wb()?"STATE_SELECTED":"STATE_UNSELECTED"));return a.ja.sk(this.de(),b)};f.prototype.we=function(){return this.Pb.categories};f.prototype.Wu=function(){a.u.Fi()||this.cj.zd("label",this.Fd())};f.prototype.gf=function(){if(!this.Je&&(this.Je=[],this.Pb.showPopupBehaviors))for(var b=
this.Pb.showPopupBehaviors,c=0;c<b.length;c++)this.Je.push(new a.Mc(b[c].popupId,b[c].triggerType,b[c].alignId,b[c].align));return this.Je};f.prototype.Bn=function(a){return this.ca.rgb(a)};f.prototype.kp=function(){return this.ca.rdb(this)};f.prototype.mG=function(){return this.ca.mG()};a.k.A(e,a.ab);e.fi={animationOnDisplay:"none",animationOnDataChange:"none",emptyText:q,hiddenCategories:[],hideAndShowBehavior:"none",highlightedCategories:[],highlightMatch:"all",hoverBehavior:"none",layout:"rectangular",
selectionMode:"none",_statusMessageStyle:new a.e(a.ab.am+"color: #333333;"),styleDefaults:{animationDuration:500,hoverBehaviorDelay:200,style:new a.e(a.ab.am+"color: #333333;")},touchResponse:"auto"};var m={};a.k.A(m,a.k);m.wa=function(a,b,c){m.xy(a,b,c);m.rJ(a,b,c);m.SB(c);var d=a.B();d.items&&0<d.items.length?(d=m.fna(a,b,c),0<d.length?(a.Fsa(d),a.L.os(a.iv()[0])):m.j_(a,b,c)):m.j_(a,b,c)};m.j_=function(b,c,d){var e=b.B(),f=e.emptyText;f||(f=a.G.Ng(e,"labelNoData",a.G.La,"NO_DATA",q));a.Ba.lq(c,
f,new a.W(d.x,d.y,d.a,d.b),b.L,e._statusMessageStyle)};m.xy=function(b,c,d){b=new a.na(b.j(),d.x,d.y,d.a,d.b);b.dc();c.q(b)};m.fna=function(b,c,e){for(var k=b.B(),m=[],p=k.items,B=Number.MAX_VALUE,G=-Number.MAX_VALUE,w=0;w<p.length;w++)B=Math.min(B,p[w].value),G=Math.max(G,p[w].value);B=d.Fdb(B,G);G=a.ha.mO(k.hiddenCategories);for(w=0;w<p.length;w++){var D=p[w];D.categories||(D.categories=[D.label]);if(!G||!a.ha.HU(G,D.categories)){var C=k.styleDefaults.style.Ga(),E=D.color;E&&C.qa(a.e.lc,E);C.Mh(D.style);
C.qa(a.e.Bh,B.call(q,D.value).toString());C=new h(b,b.j(),D.label,0,0,C,D.id);E=new f(b,C,D);b.L.mb(C,E);b.yK(E,w);"none"!==k.selectionMode&&E.Yh(l);(E.qb()||D.url||E.Yg())&&C.setCursor("pointer");m.push(C);c.q(C)}}0<m.length&&("cloud"===k.layout?d.dbb(e,m):d.rib(e,m,a.u.aa(b.j())));return m};m.rJ=function(b,c,d){var e=b.B(),f=e.legend;if(f&&f.sections){f=a.Ec.Ga(f);f.orientation="horizontal";f.halign="center";f.hoverBehavior=e.hoverBehavior;f.hideAndShowBehavior=e.hideAndShowBehavior;f.hiddenCategories=
e.hiddenCategories;e=a.of.newInstance(b.j(),b.Df,b);c.q(e);var h=e.Yr(f,d.a,d.b/3);e.wa(f,h.a,h.b);a.Ln.position(d,"bottom",e,h.a,h.b,0);b.Fj&&(b.Fj.oa(),c.removeChild(b.Fj));b.Fj=e}};m.SB=function(a){a.x=Math.round(a.x);a.y=Math.round(a.y);a.a=Math.round(a.a);a.b=Math.round(a.b)};a.k.A(d,a.k);d.Fdb=function(a,b){return function(c){return 12+Math.ceil(12*(2*(c-a)/(b-a)))}};d.dbb=function(b,c){var d=[],e=10/180,f=10/180;b.a>b.b?e*=b.a/b.b:f*=b.b/b.a;for(var h=2*Math.PI/180,k=q,m=0,p=[],D=[],C=0;C<
c.length;C++)for(var E=s,H=0,L=4,A=c[C],O=A.X(),m=Math.max(m,parseFloat(A.Gd().K(a.e.Bh))),W=-1;!E;){var Y=H%180;p[Y]===ba&&(p[Y]=Math.cos(H*h));D[Y]===ba&&(D[Y]=Math.sin(H*h));var ma=e*H*p[Y],ja=f*H*D[Y],la=new a.W(ma,ja,O.a,O.b),E=l;-1!=W&&d[W].wra(la)&&(E=s);if(E)for(Y=0;Y<C;Y++)if(d[Y].wra(la)){W=Y;E=s;break}E&&(k=k?k.Dj(la):la,W=-1,d[C]=la,A.Ha(ma),A.ib(-O.y+ja));3600===H?L=3:5400===H?L=2:10800===H&&(L=1);H+=L}d=Math.max(k.a/b.a,k.b/b.b);e=k.x+k.a/2;k=k.y+k.b/2;for(Y=0;Y<c.length;Y++)A=c[Y],
A.Ha(b.x+A.Wa()/d+(b.a/2-e/d)),A.ib(b.y+A.fb()/d+(b.b/2-k/d)),f=parseFloat(A.Gd().K(a.e.Bh)),A.Gg(f/d)};d.rib=function(b,c,e){for(var f=[],h=0,k=0,m=0,p=0;p<c.length;p++){var w=c[p],D=w.X(),h=Math.max(h,D.a),k=Math.max(k,D.b),m=Math.max(m,parseFloat(w.Gd().K(a.e.Bh)));f.push(new a.Zj(D.a,D.b))}p=0;for(w=(b.a-10)/h;0.001<w-p;)h=(p+w)/2,m=d.fCa(f,(b.a-10)/h),m.length*(h*k+2)-2>b.b-10?w=h:p=h;h=p;m=d.fCa(f,(b.a-10)/h);m.push(c.length);for(p=0;p<m.length-1;p++){var D=m[p],C=m[p+1],E=0,H=0,L=l;if(1<C-
D){for(var w=0,A=D;A<C;A++)w+=f[A].a*h,H=Math.max(H,f[A].b*h);E=(b.a-10-w)/(C-D-1);p==m.length-2&&(A=0.5*H,A<E&&w+(C-D)*A<0.9*(b.a-10)&&(E=A,L=s))}for(var H=5+(p+1)*(k*h+2)-2,O=e?b.a-5:5,A=D;A<C;A++){var w=c[A],W=parseFloat(w.Gd().K(a.e.Bh));w.Gg(W*h);w.ib(b.y+H);L&&A==C-1&&A!=D?e?(w.xj(),w.Ha(b.x+5)):(w.yj(),w.Ha(b.x+b.a-5)):(w.Ha(b.x+O),e?(w.yj(),O-=f[A].a*h+E):(w.xj(),O+=f[A].a*h+E))}}};d.fCa=function(a,b){var c=[0],d=a[0].a+2;if(1<a.length)for(var e=1;e<a.length;e++)d+a[e].a>b&&(c.push(e),d=0),
d+=a[e].a+2;return c};var p={};a.k.A(p,a.k);p.pb=function(a){return a.B().styleDefaults.animationDuration/1E3};a.k.A(c,a.L);c.prototype.tQ=function(a){a=this.jb(a.target);this.Dka(a);this.JN(a)};c.prototype.zW=function(a){a=this.jb(a.target);this.JN(a)};c.prototype.Hv=function(a){a=this.jb(a.target);this.Dka(a);this.JN(a)};c.prototype.Dka=function(a){a instanceof f&&(a=a.$J())&&a.call()};c.prototype.Dk=function(b){var d=l,e=this.bf();b.keyCode==a.I.wi?this.Dka(e):d=c.v.Dk.call(this,b);return d};c.prototype.Cp=
function(b,c,d){b=this.ca.B();"dim"==b.hoverBehavior&&(c=c.we?c.we():[],b.highlightedCategories=d?c.slice():q,d=a.Ya.LG(b.highlightedCategories,d),c=a.Ra.cs(b.styleDefaults.hoverBehaviorDelay),this.GH.Df(d,this.ca.iv(),c,"any"==b.highlightMatch))};c.prototype.JN=function(b){b&&(b.Yg&&b.Yg())&&this.Ak(a.Ya.KG("action",b.Yg(),b.getId()))};c.prototype.oz=function(){return this.ca.B().touchResponse};a.k.A(b,a.Db);b.prototype.Init=function(a){b.v.Init.call(this,a)};b.prototype.AD=function(a){return this.Yi(a)&&
!a.ctrlKey};b.prototype.pv=function(b){return b.keyCode==a.I.xi&&b.ctrlKey};b.Zd=function(b,c,d){c=c.keyCode==a.I.bg||c.keyCode==a.I.lg?l:s;b=a.ha.rb(d,b)+(c?1:-1);return b<d.length&&0<=b?d[b]:q};a.k.A(t(),a.YP);a.Ta(a,"TagCloud",a.Fh);a.Ta(a.Fh,"newInstance",a.Fh.newInstance);a.Ta(a.Fh.prototype,"render",a.Fh.prototype.wa);a.Ta(a.Fh.prototype,"getAutomation",a.Fh.prototype.mi);a.Ta(a.Fh.prototype,"highlight",a.Fh.prototype.Me);a.Ta(a.Fh.prototype,"select",a.Fh.prototype.select);a.Ta(k.prototype,
"getDomElementForSubId",k.prototype.oi);a.Ta(k.prototype,"getItem",k.prototype.getItem);a.Ta(k.prototype,"getItemCount",k.prototype.gU)})(dvt);