var Eu=I.ea(I,"AdfDhtmlPanelSpringboardPeer",!1);m("AdfDhtmlPanelSpringboardPeer",Eu);
Eu.C=function(){I.sb(this,AdfRichPanelSpringboard.DISPLAY_MODE);I.ra(this,D.Ad,D.wb,D.Bd,D.Rg);q.b.Dd()||I.ra(this,D.ze,D.gg);this.Fw="data-ptKey";this.ln="data-disTab";this.A1="data-cnv";this.Qw="tabh";this.G6a="tabbvp";this.E6a="tabbcvs";this.VEa="tabba";this.Kga="tabbb";this.WEa="tabbc";this.uT="ti";this.H6a="icon";this.h6a="bodyDiv";this.i6a="itemsDiv";this.Wda="tia";this.r5a="sbsp";this.NZa="cbc";this.OZa="cbct";this.U5a="scbic";this.X_a="ecbic";this.F3a="optRnd";this.PEa="p_AFStrip";this.KBa=
"p_AFGrid";this.Nf="p_AFSelected";this.D_a="p_AFDisabled";this.Fk="p_AFFlow";this.b1="p_AFBusy";this.bEa="p_AFScrollY";this.Iga=.33};m("AdfDhtmlPanelSpringboardPeer.InitSubclass",Eu.C);
Eu.prototype.G=function(a,b){Eu.h.G.call(this,a,b);var d=q.oa(),e=a.g(),f=I.j(e,Eu.Qw);this.pc=d.getElementById(f);f=I.j(e,Eu.r5a);this.mu=d.getElementById(f);f=I.j(e,Eu.E6a);this.Yw=d.getElementById(f);f=I.j(e,Eu.G6a);this.Vt=d.getElementById(f);this.KA=d.getElementById(I.j(e,Eu.NZa));this.Gk=d.getElementById(I.j(e,Eu.OZa));this.Rr=d.getElementById(I.j(e,Eu.U5a));this.XA=d.getElementById(I.j(e,Eu.X_a));this.mna=I.j(e,Eu.F3a);var e=A.c.H(),g=Eu.yb();this.Wj=g?"right":"left";if(this.hla="true"==e.qa("af|panelSpringboard-tr-hide-selected-pointer"))this.mu.style.display=
"none";this.Fia=0;this.CL=!1;this.kF={};this.QL=parseInt(e.qa("af|panelSpringboard-tr-conveyor-slide-animation-duration"),10);isNaN(this.QL)&&(this.QL=0);this.ih=0;this.Ela=!0;this.E7=this.F7=0;var h=this;d.ba(this.Rr,"click",function(){Fu(h,!g)});d.ba(this.XA,"click",function(){Fu(h,g)});d.ba(this.Gk,"keyup",this.D(this.blb));d.ba(this.Gk,"touchstart",function(a){h.F7=a.pageX});d.ba(this.Gk,"touchmove",function(a){h.E7=a.pageX});d.ba(this.Gk,"touchend",function(){if(Gu(h)){if(!h.E7||!h.F7)return;
h.E7<h.F7&&"inline-block"==h.XA.style.display?Fu(h,!1):"inline-block"==h.Rr.style.display&&Fu(h,!0)}h.F7=0;h.E7=0});(e=d.rm()[q.zl])&&e!=q.Al&&Hu(this,d,this.Vt);"strip"===a.K(AdfRichPanelSpringboard.DISPLAY_MODE)&&(d=this.Rd(this.pc),Iu(this,d[0]),this.Gk.style.overflow="hidden",this.KA.style.overflow="hidden")};r.a("AdfDhtmlPanelSpringboardPeer.prototype.InitDomElement",{G:Eu.prototype.G});
Eu.prototype.xwa=function(a,b,d,e){if(a.K("_ignoreNextDisplayModeChange"))a.setProperty("_ignoreNextDisplayModeChange",!1,!1,!1);else{var f=new qh(a,d);f.F(!0);f.Aa()?(a.setProperty("_ignoreNextDisplayModeChange",!0,!1,!1),a.setProperty("displayMode",e,!1,!1)):(a=this.Rd(this.pc),e=C.sa(b,Eu.Fk),"grid"==d?(C.w(b,Eu.KBa),C.O(b,Eu.PEa),Ju(this,a),e&&(b.style.height=""),Gu(this)&&Ku(this),this.mu.style.display="none",Lu(this,a,b.offsetWidth,b.offsetHeight)):"strip"==d&&(this.Vt.style.visibility="hidden",
C.w(b,Eu.PEa),C.O(b,Eu.KBa),d=e?null:Mu(this,"middle"),this.di(b,d),e&&(b.style.width="auto",b.style.height="auto"),delete this.dla,Nu(this,a,b.offsetWidth)))}};r.a("AdfDhtmlPanelSpringboardPeer.prototype.ComponentDisplayModeChanged",{xwa:Eu.prototype.xwa});Eu.prototype.za=function(a){var b=a.na(),d=a.X();a.Aa()||(b==w.ab||b==w.ub?this.nB(d)&&((b=J.ZY(this.pc,d))||(b=J.GH(this.pc)),b&&(b.focus(),a.cancel())):b!=w.Ra&&b!=w.vb||!this.nB(d)||((b=J.cP(this.pc,d))||(b=J.ym(this.pc)),b&&(b.focus(),a.cancel())))};
r.a("AdfDhtmlPanelSpringboardPeer.prototype.HandleComponentKeyUp",{za:Eu.prototype.za});Eu.prototype.$a=function(a){this.qx(a,!0,!1)};r.a("AdfDhtmlPanelSpringboardPeer.prototype.HandleComponentMouseOver",{$a:Eu.prototype.$a});Eu.prototype.Fa=function(a){this.qx(a,!1,!0)};r.a("AdfDhtmlPanelSpringboardPeer.prototype.HandleComponentMouseDown",{Fa:Eu.prototype.Fa});Eu.prototype.Ac=function(a){this.qx(a,!1,!1)};r.a("AdfDhtmlPanelSpringboardPeer.prototype.HandleComponentMouseUp",{Ac:Eu.prototype.Ac});
Eu.prototype.fc=function(a){this.qx(a,!1,!1)};r.a("AdfDhtmlPanelSpringboardPeer.prototype.HandleComponentMouseOut",{fc:Eu.prototype.fc});Eu.prototype.M=function(a){if(!a.Aa()&&a.ec()){var b=this.f(),d=a.X(),d=Ou(d,this.i()),e=Pu(d);null!=e&&(a.cancel(),a=A.c.m(e),a.getDisabled()||("grid"!=b.K(AdfRichPanelSpringboard.DISPLAY_MODE)?Qu(this,b,a,d):(d=Ru(this),a!=d&&(null!=a&&(e=a.g(),this.$w(e,!0)),null!=d&&(d=d.g(),this.$w(d,!1))),b.setProperty(AdfRichPanelSpringboard.DISPLAY_MODE,"strip",!1,!1),A.c.m(a.g()).setDisclosed(!0))))}};
r.a("AdfDhtmlPanelSpringboardPeer.prototype.HandleComponentClick",{M:Eu.prototype.M});Eu.prototype.Ro=function(){};r.a("AdfDhtmlPanelSpringboardPeer.prototype.TabReselected",{Ro:Eu.prototype.Ro});Eu.prototype.Pq=function(){};r.a("AdfDhtmlPanelSpringboardPeer.prototype.NewTabSelected",{Pq:Eu.prototype.Pq});
Eu.prototype.Zb=function(a,b){var d=q.b;this.rr&&delete this.rr;if(a.id===this.mna){var e=this.i();if(null!=e){var f=q.oa(),g=C.sa(e,Eu.Fk),e=this.f().g(),h=I.la(e,Eu.Kga),h=f.getElementById(h);C.O(h,Eu.b1);g||(g=I.la(e,Eu.VEa),e=I.la(e,Eu.WEa),g=f.getElementById(g),f=f.getElementById(e),C.O(g,Eu.b1),C.O(f,Eu.b1))}var e=a.childNodes,l,n;if(null!=e){2>e.length&&v.l.severe("Error getting the body and item divs of the optRnd block.");g=!1;for(f=0;f<e.length;f++)1==e[f].nodeType&&(g?(n=e[f],h=n.id,null!=
h&&-1==h.indexOf(Eu.i6a)&&v.l.severe("Error getting the item div of the optRnd block.")):(l=e[f],h=l.id,null!=h&&-1==h.indexOf(Eu.h6a)&&v.l.severe("Error getting the body div of the optRnd block."),g=!0));for(var g=l.childNodes,t,f=g.length-1;-1<f;--f)if(h=g[f],void 0==h)v.l.severe("Error getting the child of the optRnd block, index: "+f);else if(1==h.nodeType){var y=C.pa(h);"none"!=h.style.display&&(t=h,this.CX(y.id));l.removeChild(h);e=d.getElementById(y.id);null!=e&&(page.Ri(e),d.yc(e),d.kI(h,
e.parentNode),d.Ia(y));this.dla=!0}g=n.childNodes;for(h=g.length-1;-1<h;--h)y=g[h],void 0==y?v.l.severe("Error getting the child of the optRnd block, index: "+f):1==y.nodeType&&(e=y.id,n.removeChild(y),e=d.getElementById(e),null!=e&&(page.Ri(e),d.yc(e),d.kI(y,e),d.Ia(y)));(d=Su(this,Eu.Wda))&&J.va(d);a.removeChild(l);a.removeChild(n);t&&(this.rr=t.parentNode.parentNode);this.K3||this.TB||!this.rr||(Tu(this,this.rr),delete this.rr,Uu(this),this.hla||(this.mu.style.display=""))}}else Eu.h.Zb.call(this,
a,b)};r.a("AdfDhtmlPanelSpringboardPeer.prototype.ReplaceDomElement",{Zb:Eu.prototype.Zb});Eu.prototype.nc=function(a){return a.id===this.mna?this.i():a};r.a("AdfDhtmlPanelSpringboardPeer.prototype.DomReplaceNotify",{nc:Eu.prototype.nc});Eu.prototype.ya=function(){return!0};r.a("AdfDhtmlPanelSpringboardPeer.prototype.needsResizeNotify",{ya:Eu.prototype.ya});
Eu.prototype.Sa=function(a,b,d,e){this.kF={};if(null==this.TB&&null==this.UN&&(b=this.i())){u.u(b);var f=this.Ela,g=this.f();b=this.Rd(this.pc);if((g="grid"!=g.K(AdfRichPanelSpringboard.DISPLAY_MODE))&&d!=a){e=b.length;if(0<e){a=Vu(this,b,d);var h,l,g=this.Wj,n=this.Ela,t=-1;n&&delete this.Ela;for(var y=0;y<e;y++){var z=a[y].properties;b[y].style[g]=z[g]+"px";b[y].style.top=z.top+"px";var B=C.pa(b[y]);B&&C.sa(B,Eu.Nf)&&(l=!0,h=z[g],t=y)}null!=this.mu&&l&&(this.mu.style[g]=h+"px",n&&Wu(this,d,b,t))}Xu(this,
d);if(!f&&Yu(this)>d){h=this.KA.offsetWidth;d=Zu(this);"inline-block"==this.Rr.style.display&&(h-=d);"inline-block"==this.XA.style.display&&(h-=d);d=null;f=0;l=this.ih;e=b.length;for(a=l;f<=h&&a<e;a++)d=b[a],f+=d.offsetWidth;if(a===e&&!(f>h)){d=e=0;a=null;for(h-=f;-1<l&&d<=h;l--,e++)a=b[l],d+=a.offsetWidth;d>h&&(e--,d-=a.offsetWidth);0<e&&(b=this.Wj,this.ih-=e,0>this.ih&&(this.ih=0),h=parseInt(this.pc.style[b],10),this.CL?this.pc.style[b]=h+d+"px":(this.CL=!0,l={},l[b]=h+d,$u(this,l)))}}}else if(!g){h=
b.length;if(0<h)for(d=av(this,b,d,e),d.length!==h&&v.l.severe("The number of items in the panelSpringboard does not equal the number of items in the grid items position array."),l=this.Wj,f=0;f<h;f++)e=d[f].properties,b[f].style[l]=e[l]+"px",b[f].style.top=e.top+"px";Ju(this,b)}}};r.a("AdfDhtmlPanelSpringboardPeer.prototype.ResizeNotify",{Sa:Eu.prototype.Sa});
Eu.prototype.Ze=function(a){this.f7&&(this.f7.stop(),delete this.f7);this.J3&&(this.J3.stop(),delete this.J3,this.K3=!1);this.UN&&(this.UN.stop(),delete this.UN);this.TB&&(this.TB.stop(),delete this.TB);delete this.pc;delete this.rub;delete this.Yw;delete this.Vt;delete this.mna;if(this.e5&&this.Vt){var b=this.Vt,d=q.b;d.xa(b,"touchstart",this.e5);d.xa(b,"touchmove",this.Eka);d.xa(b,"touchend",this.Dka);delete this.e5;delete this.Dka;delete this.Eka;delete this.JA;delete this.IA}A.c.bp(a);Eu.h.ka.call(this,
a)};r.a("AdfDhtmlPanelSpringboardPeer.prototype.componentRemoved",{Ze:Eu.prototype.Ze});function Vu(a,b,d,e){var f=b.length,g=a.Wj,h=[],l;if(0<f){var n=b[0].offsetWidth;l={};if(!e&&Yu(a)>d)for(e=0,bv(a,d),a=0;a<f;a++)l={top:0},l[g]=e,l={element:b[a],properties:l},h.push(l),e+=n;else for(Gu(a)&&Ku(a),e=Math.max(0,d/2-f*n/2),a=0;a<f;a++)e=Math.round(e),l={top:0},l[g]=e,l={element:b[a],properties:l},h.push(l),e+=n}return h}
function av(a,b,d,e){var f=b.length;if(0<f){var g=[],h,l=b[0].offsetWidth,n=b[0].offsetHeight,t;for(t=1;t*t<f;)t++;t=3>=f?{rows:1,rH:f}:{rows:t,rH:t};h=n*t.rows;var y=l*t.rH,z=d/2-y/2,B=e/2-h/2,F=a.Wj;y>d?(t.rH=Math.floor(d/l),0==t.rH&&(t.rH=1),d=Math.ceil(f/t.rH),t.rows=d,B=d=0):h>e?(d=z,B=0):d=z;h=n*t.rows;h>e?C.w(a.pc,Eu.bEa):C.O(a.pc,Eu.bEa);e=0;h={};a.Gk.style.height="";a.Gk.style.overflow="";a.KA.style.overflow="";for(y=0;y<t.rows&&e<f;y++){a=d;for(z=0;z<t.rH&&e<f;z++)a=Math.round(a),B=Math.round(B),
h={top:B},h[F]=a,h={element:b[e],properties:h},g.push(h),a+=l,e++;B+=n}}return g}
function Nu(a,b,d){if(0<b.length){var e=Vu(a,b,d,!0);a.XX=d;d=0;d=A.c.H();d=parseInt(d.qa("af|panelSpringboard-tr-grid-to-strip-animation-duration"),10);isNaN(d)&&(d=0);a.TB=jj(0,d,e,function(a){a=a[0];var b=a.i();if(null!=b&&(b=b.offsetWidth,b!=a.XX)){a.XX=b;var d=a.TB;if(null!=d){var e=a.Rd(a.pc);d.stop();Nu(a,e,b)}}},function(a){var d=a[0],e=d.i();null!=e?Xu(d,e.offsetWidth):v.l.severe("In AdfDhtmlPanelSpringboardPeer.prototype._afterToStripAnimationFinal, no dom element. ");d.TB=null;d.Vt.style.visibility=
"visible";d.rr&&(Tu(d,d.rr),delete d.rr);d.dla&&(d.hla||(d.mu.style.display=""),Uu(d),delete d.dla);a=a[0];parseInt(a.Gk.style.height,10)!==b[0].offsetHeight&&Iu(a,b[0]);a.Gk.style.overflow="hidden";a.KA.style.overflow="hidden";Yu(a)>a.XX&&(bv(a,a.XX),Wu(a,a.XX))},[a],null)}}
function Lu(a,b,d,e){a.Vt.style.visibility="hidden";0<b.length&&(b=av(a,b,d,e),a.Enb=d,a.Dnb=e,d=0,d=A.c.H(),d=parseInt(d.qa("af|panelSpringboard-tr-strip-to-grid-animation-duration"),10),isNaN(d)&&(d=0),a.UN=jj(0,d,b,function(a){a=a[0];var b=a.i();if(null!=b){var d=b.offsetWidth,b=b.offsetHeight;if(d!=a.Enb||b!=a.Dnb){var e=a.UN;if(null!=e){var n=a.Rd(a.pc);e.stop();Lu(a,n,d,b)}}}},function(a){a[0].UN=null},[a],null))}
function Xu(a,b){var d=a.i();if(!C.sa(d,Eu.Fk)){var d=Mu(a,"left"),e=Mu(a,"middle"),f=Mu(a,"right");if(null!=d){var g=b+"px",h=Eu.yb(),l=a.Wj;d.style[l]=h?2*b+"px":"0px";d.style.width=g;e.style[l]=g;e.style.width=g;f.style[l]=h?"0px":2*b+"px";f.style.width=g;a.Yw.style.width=3*b+"px";a.Yw.style[l]=-1*b+"px"}}}function Mu(a,b){for(var d=q.oa(),e=C.Dc(a.Yw),f=e.length,g=0;g<f;g++){var h=e[g];if(d.getAttribute(h,Eu.A1)==b)return h}return null}
function Tu(a,b){var d=a.i();if(!C.sa(d,Eu.Fk)){var d=a.i().offsetWidth,e=q.oa(),f=Mu(a,"middle"),g=e.getAttribute(b,Eu.A1),h=a.Wj;if("middle"!=g){var l=b.style[h];b.style[h]=f.style[h];f.style[h]=l;e.setAttribute(b,Eu.A1,"middle");e.setAttribute(f,Eu.A1,g)}a.Yw.style.width=3*d+"px";a.Yw.style[h]=-1*d+"px"}}k=Eu.prototype;k.Mfb=function(a){a=a.touches;1===a.length?(a=a[0],this.JA=a.pageX):this.JA=null};k.Lfb=function(a){a=a.touches;1===a.length?(a=a[0],this.IA=a.pageX):this.IA=null};
k.Kfb=function(a){var b;if(null!=this.IA&&null!=this.JA&&(b="hidden"!==this.Vt.style.visibility)&&this.IA!==this.JA){if(a.Lhb){this.IA=this.JA=null;return}a=this.IA-this.JA;b=Eu.Iga*this.Vt.offsetWidth;if(Math.abs(a)>b){b=Eu.yb();var d=0>a?!b:b,e;a=this.f();if(null!=a){b=this.Rd(this.pc);var f,g;e=q.oa().getAttribute(this.pc,Eu.ln);if(null==e)e=null;else{e=I.j(e,Eu.uT);f=b.length;g=-1;for(var h=0;h<f;h++)if(b[h].id==e){g=h;break}e=g}-1==e&&(e=0);a:{g=e;if(-1!=g)if(f=this.i(),e=b.length,d)for(d=g+
1;d<e;d++){if((g=cv(b[d],f))&&!g.getDisabled()){b={component:g,element:b[d]};break a}}else for(d=g-1;0<=d;d--)if((g=cv(b[d],f))&&!g.getDisabled()){b={component:g,element:b[d]};break a}b=null}b&&Qu(this,a,b.component,b.element)}}}this.IA=this.JA=null};function Hu(a,b,d){a.e5=a.D(a.Mfb);a.Dka=a.D(a.Kfb);a.Eka=a.D(a.Lfb);a.JA=null;a.IA=null;b.ba(d,"touchstart",a.e5);b.ba(d,"touchmove",a.Eka);b.ba(d,"touchend",a.Dka)}function cv(a,b){var d=Ou(a,b),d=Pu(d);return null==d?null:A.c.m(d)}
function Qu(a,b,d,e){if(!a.K3&&!a.TB){var f=Ru(a),g=a.Wj;if(d!=f){d=a.J6(f,d);null!=d&&d.Aa()||(dv(a,e.style[g]),null!=f&&ev(a,f.g(),e));if("grid"!=b.K(AdfRichPanelSpringboard.DISPLAY_MODE)&&Gu(a)){f=a.Rd(a.pc);g=f.length;d=-1;for(var h=0;h<g;h++)if(f[h].id==e.id){d=h;break}-1<d&&Wu(a,a.i().offsetWidth,f,d)}a.Pq(b)}else a.Ro(b)}}k.nB=function(a){if(null==a)return!1;var b=a.id;if(null==b)return!1;b=b.split("::");return 1>=b.length||b[b.length-1]!=Eu.Wda||null==Ou(a,this.i())?!1:!0};
function Ou(a,b){u.u(a);var d=a,e=q.oa();if(null==d||1!=d.nodeType)return null;for(var f=e.getAttribute(d,Eu.Fw);null==f;){if(null==d||d==b)return null;d=d.parentNode;if(null==d||1!=d.nodeType)return null;f=e.getAttribute(d,Eu.Fw)}return d}function Pu(a){return null==a?null:q.oa().getAttribute(a,Eu.Fw)}function Ru(a){var b=null,b=q.oa().getAttribute(a.pc,Eu.ln);return null!=b?A.c.m(b):null}
k.J6=function(a,b){var d=null!=a;if(d&&1!=a.getDisclosed())v.l.severe("Unexpected panelSpringboard showDetailItem disclosure state for queueing client events. "+a.g());else if("immediate"==this.f().getContentDelivery())A.c.Zg()?(d=a.g(),this.$w(d,!1),d=a.o(),d.bind(a),d.i().parentNode.style.display="none",d=b.o(),d.bind(b),d.i().parentNode.style.display="",d=b.g(),this.$w(d,!0),a.setDisclosed(!1),b.setDisclosed(!0),this.CX(b.g())):v.l.warning("PanelSpringboard contentDelivery\x3dimmediate is not supported outside of attachment mode. Disclose ability is disabled while in this state.");
else{if(d)return d=a.o(),d.bind(a),d.fI(!1,!0,b);d=b.o();d.bind(b);return d.fI(!0,!0)}};k.$w=function(a,b){var d=I.j(a,Eu.uT);if(d=q.oa().getElementById(d))if(d=C.pa(d))C.qd(b,d,Eu.Nf),C.qd(b,C.Ic(d,"div",1),Eu.Nf)};k.Rd=function(a){a=a.childNodes;for(var b=[],d=a.length,e=0;e<d;e++){var f=a[e];1==f.nodeType&&f!=this.mu&&b.push(f)}return b};
function dv(a,b){if(null!=a.mu){var d=q.Ma,e=a.Wj,d=d(b),f={};f[e]=d;e=[{element:a.mu,properties:f}];d=0;d=A.c.H();d=parseInt(d.qa("af|panelSpringboard-tr-selected-pointer-animation-duration"),10);isNaN(d)&&(d=0);a.f7=jj(0,d,e,null,function(a){delete a[0].f7},[a],null)}else v.l.severe("Cannot find this._selectedPointerDiv. This means that the strip mode was not rendered properly.")}
function ev(a,b,d){var e=a.i(),f=C.sa(e,Eu.Fk),g=a.Wj;if(f)a.di(e,null);else if(null!=a.Yw){f=q.oa();b=I.j(b,Eu.uT);b=f.getElementById(b);b=parseInt(b.style[g])<parseInt(d.style[g]);var h=a.Vt.offsetWidth;d=Pu(d);d=f.getElementById(d);b?(f=-2*h,fv(a,e,d,"right")):(f=0,fv(a,e,d,"left"));ns(a.Yw);e={};e[g]=f;var l=[{element:a.Yw,properties:e}],n=0,g=A.c.H(),n=parseInt(g.qa("af|panelSpringboard-tr-body-slide-animation-duration"),10);isNaN(n)&&(n=0);a.K3=!0;window.setTimeout(function(){gv(a,n,l)},200)}}
function gv(a,b,d){a.J3=jj(0,b,d,null,function(a){a=a[0];delete a.J3;a.K3=!1;a.rr&&(Tu(a,a.rr),delete a.rr)},[a],null)}function fv(a,b,d,e){e=Mu(a,e);C.pa(e).appendChild(d.parentNode);a.di(b,e)}function Uu(a){var b=a.Wj,d=Su(a,Eu.uT);a.mu.style[b]=d.style[b]}function Su(a,b){var d,e;d=q.oa();e=d.getAttribute(a.pc,Eu.ln);e=I.j(e,b);return d.getElementById(e)}k.CX=function(a){q.oa().setAttribute(this.pc,Eu.ln,a)};
k.vLa=function(a,b,d){a=a.id;if(null==a)return!1;a=a.split("::");if(1>=a.length)return!1;a=a[a.length-1];return!a||a!=b&&a!=d?!1:!0};k.eV=function(a){a=Ou(a,this.i());a=Pu(a);return null!=a?A.c.m(a):null};
function Ju(a,b){for(var d=b.length,e=!1,f=0;f<d;f++){var g=C.pa(b[f]);if(g&&(e||C.sa(g,Eu.D_a)?g.setAttribute("tabIndex","-1"):(g.setAttribute("tabIndex","0"),e=!0),C.sa(g,Eu.Nf))){var h=a.eV(g,Eu.Wda);if(h&&!h.getDisabled()&&!I.xo(h)){var l=C.ib(g,"img");a.Hd(l,h,h.getIcon())}C.qd(!1,g,Eu.Nf);g.removeAttribute("aria-selected")}}}k.Hd=function(a,b,d){d||(d=b.getIcon());a.src=d};
k.qx=function(a,b,d){var e=q.oa();a=a.X();(a=this.eV(a,Eu.uT))&&!I.xo(a)&&(e=e.getElementById(I.j(a.g(),Eu.H6a)),a.getDisabled()||(b?this.Hd(e,a,a.getHoverIcon()):d?this.Hd(e,a,a.getDepressedIcon()):(b=this.f(),a.getDisclosed()&&"grid"!=b.K(AdfRichPanelSpringboard.DISPLAY_MODE)?this.Hd(e,a,a.getDepressedIcon()):this.Hd(e,a,a.getIcon()))))};function Yu(a){var b=0;a=a.Rd(a.pc);for(var d=0,e=a.length;d<e;d++)a[d]&&(b+=a[d].offsetWidth);return b}
function Zu(a){0===a.Fia&&(a.Rr.style.display="inline-block",a.Fia=a.Rr.offsetWidth,a.Rr.style.display="none");return a.Fia}
function hv(a,b,d){var e=0,f=a.ih,g=a.kF[f];g||(g={},a.kF[f]=g);var h=g[b];if(h)return h;h||(h={},g[b]=h);var l=a.KA.offsetWidth,g=Zu(a);"inline-block"==a.Rr.style.display&&(l-=g);"inline-block"==a.XA.style.display&&(l-=g);var n=f,g=0,t=-1;if(b)for(t=n;e<l&&-1<n;n--,g++)e+=d[n].offsetWidth;else for(var y=d.length;e<l&&n<y;n++,g++)t=n,e+=d[n].offsetWidth;if(1<g){n=0;if(e>l){for(var y=d[t],l=l-(e-y.offsetWidth),z=y;z&&!/^img$/i.test(z.tagName);)z=C.pa(z);z&&(l>(y.offsetWidth-z.offsetWidth)/2+z.offsetWidth/
3?(n=1,e-=d[t].offsetWidth):(n=1,e-=d[t--].offsetWidth,h.rVa=!0,-1<t&&(e-=d[t].offsetWidth,n++)))}else e===l&&(n=1,e-=d[t].offsetWidth,h.rVa=!0);g-=n;b||(b=f+g,d=a.kF[b],d||(d={},a.kF[b]=d),d[!0]={Kta:g,sva:e})}h.Kta=g;h.sva=e;return h}
function Fu(a,b){if(!a.CL){a.CL=!0;var d=a.Rd(a.pc),e=a.ih,f=a.Wj,g=parseInt(a.pc.style[f],10),h=hv(a,b,d),l=h.Kta,h=h.sva;isNaN(g)&&(a.pc.style[f]="0px",g=0);b?1>e-l?(h=-1*g,a.ih=0):a.ih=Math.max(0,a.ih-l):(h*=-1,a.ih=Math.min(d.length-1,a.ih+l));d={};d[f]=g+h;$u(a,d)}}function $u(a,b){jj(0,a.QL,[{element:a.pc,properties:b}],function(){},function(a){a[0].CL=!1;bv(a[0])},[a],null)}
function bv(a,b){for(var d=a.Rd(a.pc),e=0,f=Eu.yb(),g=f?a.XA:a.Rr,f=f?a.Rr:a.XA,h=0===a.ih,l=!0,n="undefined"!==typeof b?Math.round(b):a.KA.offsetWidth,t=a.Wj,l=a.ih,y=d.length;l<y;l++)d[l]&&(e+=d[l].offsetWidth);var y=Zu(a),z=n-(h?0:y);(l=z>e||a.ih===d.length-1)||(z-=y);a.Gk.style[t]=0<a.ih?y+"px":"0px";a.Gk.style.width=z+"px";"undefined"!==typeof b&&(a.KA.style.width=n+"px");g.style.display=h?"none":"inline-block";f.style.display=l?"none":"inline-block"}
function Wu(a,b,d,e){if("undefined"===typeof e){e=-1;d=a.Rd(a.pc);var f=d.length;Vu(a,d,b);for(b=0;b<f;b++){var g=C.pa(d[b]);g&&C.sa(g,Eu.Nf)&&(e=b)}}if(-1!==e&&(f=d,Gu(a))){d=0;a.ih=0;b=a.QL;for(a.QL=0;a.ih<e;){var g=hv(a,!1,f),h=g.sva;if(a.ih+g.Kta+(g.rVa?1:0)>e)break;a.CL=!1;Fu(a,!1);d+=h}a.QL=b;e=a.Wj;f={};parseInt(a.pc.style[e],10)<d?(f[e]=-1*d,$u(a,f)):0<d&&(f[e]=-1*d,$u(a,f))}}
k.blb=function(a){if(Gu(this)&&(!Gu(this)||a.keyCode===w.tf)){a=this.Rd(this.pc);this.kF={};for(var b=a.length,d=-1,e=document.activeElement,f=0;f<b;f++){var g=C.pa(a[f]);g&&e==g&&(d=f)}-1<d&&Wu(this,this.i().offsetWidth,a,d)}};function Ku(a){var b=a.Wj,d=Eu.yb()?"scrollRight":"scrollLeft";a.kF={};a.ih=0;a.Rr.style.display="none";a.XA.style.display="none";a.Gk[d]=0;a.Gk.style[b]="0px";a.pc.style[b]="0px";a.Gk.style.width="";a.KA.style.width=""}
function Gu(a){return"inline-block"==a.Rr.style.display||"inline-block"==a.XA.style.display||parseInt(a.pc.style[a.Wj],10)}Eu.yb=function(){return A.c.Ka().La()};Eu.prototype.di=function(a,b){var d;C.sa(a,Eu.Fk)?(d=this.f().g(),d=I.la(d,Eu.Kga),d=q.oa().getElementById(d)):d=C.pa(b);C.w(d,Eu.b1)};function Iu(a,b){var d=q.oa();if(d.S()==q.ia&&8>d.Ib()){var d=d.getComputedStyle(b).height,e=b.offsetHeight;a.Gk.style.height=0!==e?e+"px":d}}
Eu.prototype.fl=function(a){var b=this.f().g(),d=I.la(b,Eu.VEa),e=I.la(b,Eu.Kga),b=I.la(b,Eu.WEa);for(a=a.parentNode;a;){var f=a.id;if(null!=f){if(f==d)return d;if(f==e)return e;if(f==b)return b}a=a.parentNode}return this.f().g()};r.a("AdfDhtmlPanelSpringboardPeer.prototype.getContainerId",{fl:Eu.prototype.fl});