var Uj=M.U(M,"AdfDhtmlCarouselPeer",p);v("AdfDhtmlCarouselPeer",Uj);Uj.m=function(){var a=w.b.cd()[w.Vc];(!a||a==w.Wc)&&M.g_(this,"mousemove");M.ha(this,I.jb,I.Ve,I.Xc,I.Xf,I.ec);M.hb(this,AdfRichCarousel.CURRENT_ITEM_KEY);this.yq=1;this.Qz=2;this.oT=4;this.lk=0;this.Lv="dataW";this.bM=10;this.ALa=25;this.Ba="_afrRK";this.VL=5;this.goa=300;this.pF=/^INPUT|SELECT|OPTION|BUTTON|^A\b|TEXTAREA/;this.K6="_afrNdsRfr";this.O7="_afrUndFch"};v("AdfDhtmlCarouselPeer.InitSubclass",Uj.m);
Uj.prototype.q=function(a,b){Uj.f.q.call(this,a,b);if("yes"==b.getAttribute("data-nojs"))this.FMa=l;else{this.v7=a.getAuxiliaryScale();this.q7=a.getAuxiliaryOffset();this.Z6=a.getAuxiliaryPopOut();this.gO=0;this.si=-1;this.$d="vertical"==a.getOrientation();var d=F.c.u();this.dI="none"!=d.ka("af|carousel-tr-overlay-opacity");this.xca=this.WM=0;this.WM=parseInt(d.ka("af|carousel-tr-spin-animation-duration"),10);isNaN(this.WM)&&(this.WM=0);this.xca=parseInt(d.ka("af|carousel-tr-pop-out-animation-duration"),
10);isNaN(this.xca)&&(this.WM=0);Vj(this,a,b);b.setAttribute("role","listbox")}};z.a("AdfDhtmlCarouselPeer.prototype.InitDomElement",{q:Uj.prototype.q});
function Vj(a,b,d){if(!a.OO)if(a.sl=b.getDisplayItems(),a.fc=b.getControlArea(),"small"==a.fc||"compact"==a.fc){var e=b.e(),f=a.fc,g=w.b;b=Wj(a,d);var h=g.getComputedStyle(b),m=parseInt(h.paddingLeft,10),q=parseInt(h.paddingRight,10),s=parseInt(h.paddingTop,10),h=parseInt(h.paddingBottom,10),y=Xj(e),A=g.getComputedStyle(y),C=parseInt(A.paddingTop,10),G=parseInt(A.paddingBottom,10),A=g.getElementById(M.g(e,"sp")),g=g.getElementById(M.g(e,"sn"));d=a.Sb(d);var K=0;"compact"!=f&&(f=Yj(a,e),e=f.offsetHeight,
K+=e,f.style.bottom=h+"px");e=y.offsetHeight;0!=e&&(a.OO=l);var e=Math.max(A.offsetHeight,e,g.offsetHeight),K=K+e,f=Uj.fb(),N=A.style;N.top=s+"px";f?N.right=q+"px":N.left=m+"px";N=g.style;N.top=s+"px";f?N.left=m+"px":N.right=q+"px";y=y.style;y.top=s+"px";C=e-C-G;y.height=C+"px";y.lineHeight=C+"px";f?(y.right=q+A.offsetWidth+"px",y.left=m+g.offsetWidth+"px"):(y.left=m+A.offsetWidth+"px",y.right=q+g.offsetWidth+"px");b.style.top="auto";b.style.height=K+"px";K=K+s+h;a.$d?(a.xr=0,a.LG=K):(b.style.bottom=
Uj.bM+"px",K+=Uj.bM,d.style.bottom=K+"px",a.xr=K)}else"none"==a.fc?(b=b.e(),b=Xj(b),m=b.offsetHeight,q=a.Sb(d),a.$d?(a.OO=l,a.xr=0,a.LG=m):(a.OO=l,b.style.left="0px",b.style.right="0px",b.style.bottom="10px",m+=10,q.style.bottom=m+"px",a.xr=m)):(s=b.e(),b=Xj(s),m=a.Sb(d),q=Yj(a,s),s=Zj(a,s),h=0,a.$d?(q.style.width="auto",C=15*q.offsetWidth,0!=C&&(a.OO=l),q.style.width=C+"px",h+=C+4,Uj.fb()?s.style.left=h+"px":s.style.right=h+"px",C=H.ca(s).offsetWidth,s.style.width=C+"px",h+=C,Uj.fb()?m.style.left=
h+"px":m.style.right=h+"px",a.xr=h,a.LG=b.offsetHeight):(q.style.height="auto",C=q.offsetHeight,0!=C&&(a.OO=l),h+=C,s.style.bottom=h+"px",C=H.ca(s).offsetHeight,s.style.height=C+"px",h+=C,b.style.left="0px",b.style.right="0px",b.style.bottom=h+"px",C=b.offsetHeight,h+=C,m.style.bottom=h+"px",a.xr=h))}Uj.prototype.Cm=function(a,b,d,e){b=d.split(":");a=a.e();a=xa.count(a,":")+1;(b=b[a])&&(isNaN(b)||e.push(a))};z.a("AdfDhtmlCarouselPeer.prototype.TruncateClientId",{Cm:Uj.prototype.Cm});
Uj.prototype.Z=function(a){this.Gr&&this.Gr.fq();this.pu(l);ak(this);Uj.f.Z.call(this,a)};z.a("AdfDhtmlCarouselPeer.prototype.ComponentRemoved",{Z:Uj.prototype.Z});Uj.prototype.Md=t(l);z.a("AdfDhtmlCarouselPeer.prototype.needsChildVisibilityChanges",{Md:Uj.prototype.Md});Uj.prototype.Ed=function(){F.c.jc(this.d());return l};z.a("AdfDhtmlCarouselPeer.prototype.ChildVisibilityChanged",{Ed:Uj.prototype.Ed});Uj.prototype.ja=function(){return!this.FMa};
z.a("AdfDhtmlCarouselPeer.prototype.needsResizeNotify",{ja:Uj.prototype.ja});Uj.prototype.DA=function(a){var b=a.la+a.Db,d=this.ae;return 0<d&&0==a.la&&b==d};
Uj.prototype.Ia=function(a,b,d,e){if(this.cf)a=this.Sb(),bk(this,a,d,e),this.yk(a,p);else if(this.$aa(this.d())){a=this.Sb();this.si=this.tO(a);d=a.childNodes;e=n;for(b=d.length-1;0<=b;b--){var f=d[b];if("DIV"==f.tagName&&f.getAttribute("_startRow")!=n){e=d[b];break}}e!=n&&0<e.childNodes.length?this.NO(e,l):(ck(this,a,a),this.To=l)}else this.iO||(this.iO=l,this.$o(l,Mf.Kz,-1),Uj.bf(this.Sb(),"wait"),a=F.c.u().V("af_carousel.LABEL_FETCHING"),this.MN(a))};
z.a("AdfDhtmlCarouselPeer.prototype.ResizeNotify",{Ia:Uj.prototype.Ia});
Uj.prototype.Ab=function(a,b){var d=a.id;if(0<d.indexOf(Uj.Lv)){var e=w.b,f=this.Sb(),g=Uj.dX(a,"DIV");this.si=this.tO(a);var h=p;if(this.cf){g==n&&(h=l);for(var m=e.Sa(a,"_fetchId",-1),q=this.cg,s=b.firstChild;s;)this.fh(s),b.removeChild(s),s=b.firstChild;if(q!=k&&this.xx==m){m=this.AP;s=this.YA;this.er();if(e.Rh(a,Uj.K6,p)){F.c.jc(this.d());return}if(e.Rh(a,Uj.O7,p)){if(q==Mf.nK||q==Mf.dk||q==Mf.Yn)if(d=a.getAttribute("_currentItemKey"))this.Gc=d,this.d().setCurrentItemKey(d),dk(this);Uj.bf(f,"");
this.Ih();return}a.removeChild(g);this.Dk||(this.Dk=e.getAttribute(g,"_pruneKeyCache",n));this.HG(g,q,s,m);this.yk(f,p,!m)}else ek(this,b,g,f)}else this.er(),g&&g.firstChild?(this.NO(g,p),e.wa(g)):h=l;h&&(this.cf?D.i.severe("Empty data block received:"+d):ck(this,f,a))}else Uj.f.Ab.call(this,a,b)};z.a("AdfDhtmlCarouselPeer.prototype.ReplaceDomElement",{Ab:Uj.prototype.Ab});Uj.prototype.Rb=function(a){return 0<a.id.indexOf(Uj.Lv)?n:a};z.a("AdfDhtmlCarouselPeer.prototype.DomReplaceNotify",{Rb:Uj.prototype.Rb});
u=Uj.prototype;u.tO=function(a){var b=-1,d=w.b,e=Uj.iX(a,"unAvail");e&&(b=d.Sa(e,"_unavailableRowIndex",-1),a.removeChild(e));return b};
function ck(a,b,d){if("oneByOne"==a.sl){var e=b.style;e.top="0px";e.bottom="0px";e.left="0px";e.right="0px"}var e=d.childNodes.length,f=b.ownerDocument,g=f.createElement("div");b.appendChild(g);var h=g.style;h.position="absolute";h.verticalAlign="middle";h.textAlign="center";h.left=h.right="0px";h.top="50%";f=f.createElement("div");g.appendChild(f);h=f.style;h.position="relative";w.fa().G()!=w.Fc&&(h.top="-50%");for(g=0;g<e;g++)h=d.firstChild,d.removeChild(h),1==h.nodeType&&h.getAttribute("_startRow")!=
n||f.appendChild(h);a.Ih();d=a.d().e();Xj(d).style.display="none";"small"==a.fc||"compact"==a.fc?(d=a.h(),Wj(a,d).style.display="none"):"none"!=a.fc&&"oneByOne"==a.sl&&(Zj(a,d).style.display="none");a.To=l;Uj.bf(b,"")}
function ek(a,b,d,e){var f=w.b,g=e.firstChild;e=g.la;var g=e+fk(g),h=f.Sa(d,"_startRow",0),m=h+d.childNodes.length,q=e==h&&g==m;if(q||h>=e&&h<g){for(var s=g-h,y=0;y<s;y++){var A=d.firstChild;gk(a,A,y,s,e,g,h,m);d.removeChild(A)}if(q)return}else if(m>=e&&m<g){q=m-e;for(s=0;s<q;s++)y=d.lastChild,gk(a,y,s,q,e,g,h,m),d.removeChild(y)}b.appendChild(d);f.wa(d)}
function gk(a,b,d,e,f,g,h,m){var q=H.ca(b),s=q.id,y=D.i;y.xd(D.FINE)&&y.fine("_addInvalidDataBlock: carousel fetch intersection item ("+d+":"+e+" "+f+"-"+g+" "+h+"-"+m+"): "+s);d=F.c.j(s);B.assert(d!=n,"An existing intersection component could not be found to match the intersection node: "+s+" of "+b.innerHTML);d&&(b=d.k(),b.bind(d),b=b.h(),a.fh(b),b.parentNode.replaceChild(q,b),w.b.wa(q))}function hk(a){a=a.childNodes;for(var b=0;b<a.length;b++){var d=a[b];if(!Uj.qB(d))return d}return n}
function ik(a){a=a.childNodes;for(var b=a.length-1;0<=b;b--){var d=a[b];if(!Uj.qB(d))return d}return n}function fk(a){var b=0;a=a.childNodes;for(var d=0;d<a.length;d++)Uj.qB(a[d])||++b;return b}function jk(a){var b=0;a=a.childNodes;for(var d=0;d<a.length&&Uj.qB(a[d]);d++)++b;return b}
u.NO=function(a,b){this.Ih();this.cf=l;var d=w.b,e=d.Sa(a,"_startRow",0),f=fk(a),g=this.d();kk(g,e,f);var h=this.Sb(),m=d.Sa(a,"_rowCount",-1);0==this.si?m=-1:0<this.si&&(m=this.si);this.ae=m;this.Be=-1==m?e+f:m;if(m=a.getAttribute("_currentItemKey"))g.setProperty("currentItemKey",m,p,J.Pc),this.Gc=m;var q=this.h(),s=q.clientWidth,q=q.clientHeight;if(!b){for(var y=h.childNodes,A=y.length-1;0<=A;A--)h.removeChild(y[A]);h.appendChild(a)}a.la=e;a.Db=f;if(!g.getDisabled()&&(e=this.h(),e.onmousewheel=
Uj.jx,d.G()!=w.aa&&e.addEventListener("DOMMouseScroll",Uj.jx,l),"none"!=this.fc&&(f=g.e(),g=d.getElementById(M.g(f,"sp")),f=d.getElementById(M.g(f,"sn")),d.S(g,"click",Uj.QWa),d.S(f,"click",Uj.daa)),(g=d.cd()[w.Vc])&&g!=w.Wc))this.Gr=d.qp(e,this.o(this.FO),1),"hover"==this.Z6&&this.Gr.yia(this.o(this.EWa));h.onselectstart=this.o(this.yO);bk(this,h,s,q);h.style.zIndex=1;this.yk(h,p);m&&(this.P8a=l,lk(this,m))};u.EWa=function(a){a&&a.target?mk(this,a.target):wk(this)};
u.FO=function(a,b){var d=a;this.$d&&(d=b);0!=d&&xk(this,-d,l)};u.TK=function(a,b){if(!("hover"!=this.Z6||"oneByOne"==this.sl)&&this.cf&&!this.TA&&!this.Iua){var d=w.b.T(b);mk(this,d)}};z.a("AdfDhtmlCarouselPeer.prototype.HandleDomMouseMove",{TK:Uj.prototype.TK});
function mk(a,b){if(b&&!a.To){var d=yk(b,a.h());if(d!=n){var e=d[0],d=d[1];if(e!=n)if(a.Gc!=e&&e!=n){var f=a.Ze(a.Gc,l);f?zk(a,f.pb,n,p,{S3a:e,T3a:d}):D.i.severe('During _updateHoverState, a null rowData was found for "'+a.Gc+'".')}else wk(a)}}}function wk(a){if(a.fY!=n){var b=l;a.Gc==a.fY&&(b=p);a.fY=n;b&&((b=a.Ze(a.Gc,l))?zk(a,b.pb,n,p,{S3a:n,T3a:n}):D.i.severe('During _cleanUpHoverState, a null rowData was found for "'+a.Gc+'".'))}}
Uj.prototype.vb=function(a){if(this.cf&&this.pB(a))if(this.TG){var b=a.L();a=w.b;var b=a.T(b),d=this.d().e(),e=a.getElementById(M.g(d,"sp"));a=a.getElementById(M.g(d,"sn"));if(b.id==e.id||b.id==a.id)self.clearInterval(this.UG),this.TG=this.UG=n}else wk(this)};z.a("AdfDhtmlCarouselPeer.prototype.HandleComponentMouseOut",{vb:Uj.prototype.vb});
Uj.prototype.cc=function(a){if(this.cf&&this.pB(a)&&this.TG){a=a.L();var b=w.b,d=b.T(a),e=this.d().e(),f=b.getElementById(M.g(e,"sp")),e=b.getElementById(M.g(e,"sn"));if(d.id==f.id||d.id==e.id)self.clearInterval(this.UG),this.TG=this.UG=n,b.va(a)}};z.a("AdfDhtmlCarouselPeer.prototype.HandleComponentMouseUp",{cc:Uj.prototype.cc});
Uj.prototype.qa=function(a){if(this.cf&&this.pB(a)){var b=a.L(),d=w.b;a=d.T(b);if(d.Eg(b)){if(a&&a.id){var e=this.d().e();if("none"!=this.fc){if("small"!=this.fc&&"compact"!=this.fc){var f=d.getElementById(M.g(e,"st"));a.id==f.id&&(d.va(b),this.TA=l,F.c.Nd(b,this.o(this.dwa),this.o(this.IUa)))}f=d.getElementById(M.g(e,"sp"));e=d.getElementById(M.g(e,"sn"));if(a.id==f.id||a.id==e.id){b="prev";a.id==e.id&&(b="next");this.TG=b;this.UG=self.setInterval(this.o(this.HXa),1E3);return}}}e=this.Sb();H.sb(e,
a)&&this.Gc&&(e=this.Ze(this.Gc,p),e!=n&&!H.sb(e.pb,a)&&(d.va(b),this.Iua=l,F.c.Nd(b,this.o(this.vWa),this.o(this.HUa))))}}};z.a("AdfDhtmlCarouselPeer.prototype.HandleComponentMouseDown",{qa:Uj.prototype.qa});u=Uj.prototype;u.HXa=function(){self.clearInterval(this.UG);this.UG=self.setInterval(this.o(this.CXa),100)};u.CXa=function(){"prev"==this.TG?Ak(this):"next"==this.TG&&Bk(this)};
u.dwa=function(a){var b=w.b,d=this.d();if(d!=n){var d=d.e(),d=b.getElementById(M.g(d,"sb")),e=b.Qb(a);this.$d?(a=d.offsetHeight,b=b.nd(d)+a-e.y,b=1-b/a):(b=e.x-b.rc(d),b/=d.offsetWidth,Uj.fb()&&(b=1-b));Ck(this,b);Dk(this,b)}};u.IUa=function(a){delete this.TA;this.dwa(a)};u.vWa=function(a,b,d){a=b;this.$d&&(a=d);0!=a&&xk(this,-a,l)};u.HUa=function(){delete this.Iua;this.TY=n};
function Ek(a){var b=w.b,d=a.d().e();if("small"==a.fc||"compact"==a.fc||"none"==a.fc)b=Fk(a);else{var e=b.getElementById(M.g(d,"st")),d=b.getElementById(M.g(d,"sb"));if(a.$d)var f=d.offsetHeight,b=b.nd(d)+f-b.nd(e),b=1-b/f;else b=b.rc(e)-b.rc(d),b/=d.offsetWidth,Uj.fb()&&(b=1-b)}e=a.ae;-1==e&&(e=a.Be+Uj.VL);return Math.max(0,Math.round(b*(e-1)))}
u.C=function(a){if(this.pB(a)){var b=w.b,d=a.L(),e=b.T(d);if(e&&!this.To){var f=yk(e,this.h());f!=n?(b=f[0],d=f[1],b!=n&&(a.Jb()&&this.Gc!=b&&b!=n)&&(this.er(),this.Ck&&window.clearTimeout(this.Ck),this.d().getDisabled()||(a=this.Gc,Gk(this,b)&&zk(this,d,a,l)))):"small"!=this.fc&&("compact"!=this.fc&&"none"!=this.fc)&&(f=this.d().e(),a=b.getElementById(M.g(f,"sb")),e.id==a.id&&(d=b.Qb(d),b.getElementById(M.g(f,"st")).focus(),this.$d?(e=a.offsetHeight,b=b.nd(a)+e-d.y,b=1-b/e):(b=d.x-b.rc(a),b/=a.offsetWidth,
Uj.fb()&&(b=1-b)),Dk(this,b,Fk(this))))}}};z.a("AdfDhtmlCarouselPeer.prototype.HandleComponentClick",{C:Uj.prototype.C});u=Uj.prototype;u.yk=function(a,b,d){var e=Uj.lk;if(0<this.Be){var e=this.VO(a),f=0!=(e&Uj.Qz),g=0!=(e&Uj.yq);e==Uj.lk?(this.Ih(),Uj.bf(a,"")):f?Hk(this,a,b,d):g&&Ik(this,a,b,d)}return e};
u.VO=function(a){var b=a.firstChild;a=Uj.oT;if(b&&(a=Uj.lk,!this.DA(b))){var d=this.$d,e=this.Ze(this.Gc,l);if(!e)return D.i.severe('When checking _isViewportSatisfied, a null rowData was found for "'+this.Gc+'".'),Uj.lk;var e=e.index,f=b.la-1,b=b.la+fk(b),g=this.ae;-1==g&&(g=this.Be+Uj.VL);if("oneByOne"==this.sl)0<=f&&f==e-1&&(a|=Uj.Qz),b<g&&b==e+1&&(a|=Uj.yq);else{var h=this.d(),m=this.AN,q=this.PA,s=h.getHalign(),h=h.getValign();if(0<=f&&(f=Jk(this,e-f),5<f.Rl&&(d&&0<Kk(this,d,h,q,f.Rl,-f.Mr)||
!d&&0<Lk(this,d,s,m,f.Rl,-f.Mr))))a|=Uj.Qz;if(b<g&&(f=Jk(this,b-e),5<f.Rl&&(d&&Kk(this,d,h,q,f.Rl,f.Mr)<q||!d&&Lk(this,d,s,m,f.Rl,f.Mr)<m)))a|=Uj.yq}}return a};function Hk(a,b,d,e){var f=b.firstChild;b=f.la;f=w.b.getAttribute(hk(f),Uj.Ba);a.Kl(Mf.Yn,b,f,d,!e)}function Ik(a,b,d,e){var f=b.firstChild;b=f.la+fk(f)-1;f=w.b.getAttribute(ik(f),Uj.Ba);a.Kl(Mf.dk,b,f,d,!e)}
u.JG=function(a,b,d,e){var f=n,g,h,m=this.d().getFetchSize(),q=F.c.u(),s=this.ae;g=Math.ceil(m/2);0<=b-g?g=b-g:(f=q.V("af_carousel.LABEL_START"),g=0);-1!=s?g+m<s?h=g+m-1:(h=s-1,f=q.V("af_carousel.LABEL_END")):h=g+m-1;f==n&&(f=q.V("af_carousel.LABEL_ITEM",1+b));dk(this,b);if(s=a.firstChild){var y=s.la,A=y+fk(s)-1;if(g==y&&h==A)return;var C=m=p;g>=y&&b<=A?C=l:h>=y&&(h<=A&&b>=y)&&(m=l);if(m||C){f=s.childNodes[b-y+jk(s)];B.assert(f!=n,"Unexpected null row A: ("+fk(s)+", "+b+", "+y+")");b=w.b.getAttribute(f,
Uj.Ba);Gk(this,b);m?Hk(this,a,d,e):Ik(this,a,d,e);return}}d&&this.MN(q.V("af_carousel.LABEL_GOING_TO",f));this.Kl(Mf.nK,b,n,d,!e)};
function Mk(a,b,d){b=b.firstChild;var e=b.la,f=fk(b),g=a.AN,h=a.PA,m=a.d(),q=m.getFetchSize(),s=m.getHalign(),y=m.getValign(),A=a.Ze(a.Gc,p),C=a.$d;if(A)if(A=A.index,d)for(f=A-q;f>=e;){d=Jk(a,A-f);if(5>=d.Rl||C&&0>=Kk(a,C,y,h,d.Rl,-d.Mr)||!C&&0>=Lk(a,C,s,g,d.Rl,-d.Mr)){for(;e<=f;e++)g=hk(b),a.fh(g),b.removeChild(g);b.la=f+1;b.Db=fk(b);kk(m,b.la,b.Db);break}f--}else for(q=A+q;q<e+f;){d=Jk(a,q-A);if(5>=d.Rl||C&&Kk(a,C,y,h,d.Rl,d.Mr)>=h||!C&&Lk(a,C,s,g,d.Rl,d.Mr)>=g){for(g=q;g<e+f;g++)h=ik(b),a.fh(h),
b.removeChild(h);b.Db=fk(b);kk(m,b.la,b.Db);break}q++}}u.fh=function(a){F.c.th(a);w.b.gc(a)};u.$o=function(a,b,d,e){var f=this.gO++,g=this.d(),h=new Mf(g,f,b,d,e);h.Cc(l);h.rD(a);var m=p;a?F.c.Up(h):(Nk(this,this.Gc,h),g.Fg(h),m=h.na());m||(this.cg=b,this.xx=f,this.YA=d,this.Nt=e,this.AP=a,h.Nb(g));return m?n:h};
u.Kl=function(a,b,d,e,f){if(!(a==this.cg&&b==this.YA&&d==this.Nt))if(this.Ck&&(delete this.Ck,window.clearTimeout(this.Ck)),e){e=F.c.R();var g=new Function("var c \x3d arguments.callee;c._self._delNav(c._subtype, c._index, c._key, c._renderOnly);");g._subtype=a;g._index=b;g._key=d;g._renderOnly=f;g._self=this;this.Ck=e.setTimeout(g,Uj.goa);this.er()}else(a=this.$o(f,a,b,d))?(b=F.c.u().V("af_carousel.LABEL_FETCHING"),this.MN(b),Uj.bf(this.Sb(),"wait"),this.Dk&&(a.Vy(this.xW(this.Dk)),this.Dk=n)):(this.Ih(),
dk(this))};Uj.prototype._delNav=function(a,b,d,e){this.Kl(a,b,d,p,e);delete this.Ck};u=Uj.prototype;u.er=function(){this.AP=this.xx=this.Nt=this.YA=this.cg=k};u.KX=function(a,b,d){a.la=b;a.Db=d};
function bk(a,b,d,e){var f=w.b,g=a.d(),h=a.h();Vj(a,g,h);var m=Math.max(0,d),q=Math.max(0,e),s=a.$d;s?m=Math.max(0,m-a.xr):q=Math.max(0,q-a.xr);var y=q;s?(q-=a.LG,y=m,q<m&&(y=Math.max(0,q-2*Uj.bM))):m<q&&(y=Math.max(0,m-2*Uj.bM));y=Math.round(Math.max(30,y-2*Uj.bM));a.AN=m;a.PA=q;a.ju=y;a.e_=(m-y)/2;a.kwa=(q-y)/2;var A=g.e();if("small"==a.fc||"compact"==a.fc){var C=Wj(a,h),h=f.getComputedStyle(C),C=C.style,G=parseInt(h.paddingRight,10),h=0+parseInt(h.paddingLeft,10);C.width=y-(h+G)+"px";C.right="auto";
C.left=Lk(a,s,g.getHalign(),m,y,0)+"px";s&&(C.top=Kk(a,s,g.getValign(),q,y,0)+y+"px")}else s&&(C=Xj(A),h=f.getComputedStyle(C),C=C.style,G=0+parseInt(h.paddingLeft,10),G+=parseInt(h.paddingRight,10),C.width=y-G+"px",C.left=Lk(a,l,g.getHalign(),m,y,0)+(Uj.fb()?parseInt(b.offsetLeft):0)+"px",C.top=Kk(a,l,g.getValign(),q,y,0)+y+"px");"oneByOne"==a.sl&&(h=b.style,h.width=y+"px",h.height=y+"px",h.right="auto",h.bottom="auto",h.top=Kk(a,s,g.getValign(),q,y,0)+"px",h.left=Lk(a,s,g.getHalign(),m,y,0)+(Uj.fb()?
parseInt(b.offsetLeft):0)+"px");"oneByOne"==a.sl&&("small"!=a.fc&&"compact"!=a.fc&&"none"!=a.fc)&&(h=f.getElementById(M.g(A,"sp")),C=f.getElementById(M.g(A,"sb")),f=f.getElementById(M.g(A,"sn")),s?(g=g.getValign(),m=h.offsetHeight,d=f.offsetHeight,q=Kk(a,l,g,q,y,0),A=Xj(A).offsetHeight,m=q+m,y=q+y+A-d,h.style.bottom=e-m+"px",C.style.top=m+"px",C.style.bottom=e-y+"px",f.style.top=y+"px"):(e=g.getHalign(),g=h.offsetWidth,q=f.offsetWidth,m=Lk(a,p,e,m,y,0),g=m+g,q=m+y-q,C.style.left=g+"px",C.style.right=
d-q+"px",Uj.fb()?(h.style.left=q+"px",f.style.right=d-g+"px"):(h.style.right=d-g+"px",f.style.left=q+"px"),"start"==e?Xj(A).style.right=d-2*m-y+"px":"end"==e&&(Xj(A).style.left=2*m+y-d+"px")));B.assert(!b.firstChild||a.Gc,"There is no current item in the data block");a.Gc&&((b=a.Ze(a.Gc,l))?(Ok(a,b.pb,p),Pk(a)):D.i.severe("_sizeDataBody failed due to invalid currentItemKey: "+a.Gc))}
u.HG=function(a,b,d,e){var f=w.b,g=f.Sa(a,"_startRow",0),h=fk(a),m=this.Sb(),q=m.firstChild;this.KX(a,g,h);b==Mf.nK?(Qk(this,m,a,d),this.Bt(m,a)):b==Mf.dk?(0==h?-1==this.ae?(a=f.Sa(q,"_rowCount",-1),this.ae=-1==a?this.Be:a):this.Bt(m,a):(d=g-q.la-fk(q),0!=d?(d=g+Math.ceil(h/2),Qk(this,m,a,d)):Rk(this,m,a,p),this.Bt(m,a)),e||Mk(this,m,l)):b==Mf.Yn&&(d=g-q.la+h,f=this.Bt(m,a),0!=d||0!=f?(d=g+Math.ceil(h/2),Qk(this,m,a,d)):Rk(this,m,a,l),e||Mk(this,m,p));if(b==Mf.nK||b==Mf.dk)b=g+h-this.Be,0<b&&(this.Be+=
b,dk(this))};u.Bt=function(a,b){var d=0,e=this.ae;if(-1!=e){var f=w.b.Sa(b,"_rowCount",-1);0==this.si?f=-1:0<this.si&&(f=this.si);-1!=f&&(d=f-e)}0!=d&&(this.ae=this.Be=f,dk(this));return d};
u.MN=function(a){var b=this.hx();if("icon"==F.c.u().ka("af|carousel-tr-status-type")){var d=Uj.dX(b,"IMG");d!=n?d.title=a:b.title=a}else b.innerHTML=a;a=b.style;if("none"==a.display){var e=p,f=this.AN,g=this.PA;if(f==n||g==n||0==f||0==g)e=l,d=this.Sb(),f=d.offsetWidth,g=d.offsetHeight;a.zIndex=1E4;d=this.$d;a.visibility="hidden";a.display="block";var h=b.offsetWidth/2,b=b.offsetHeight/2;if(e)h=f/2-h,g=g/2-b,d&&(this.xr!=n&&0!=this.xr)&&(h+=this.xr),Uj.fb()?a.left=Math.floor(h)+"px":a.right=Math.floor(h)+
"px";else{var m=this.d(),e=this.ju,f=Lk(this,d,m.getHalign(),f,e,0),d=Kk(this,d,m.getValign(),g,e,0),g=d+e/2-b;a.right="auto";a.left=Math.floor(f+e/2-h)+"px"}a.top=Math.floor(g)+"px";a.visibility="visible"}};u.Ih=function(){this.hx().style.display="none"};u.Sb=function(a){return this.xG("db",a)};function Wj(a,b){B.assert("small"==a.fc||"compact"==a.fc,"Carousel peer should not be accessing the control area when controlArea \x3d\x3d full or none");return a.xG("ca",b)}
function Zj(a,b){B.assert("small"!=a.fc&&"compact"!=a.fc&&"none"!=a.fc,"Carousel peer should not be accessing the spin control div when controlArea !\x3d full");return w.b.getElementById(M.g(b,"sc"))}function Yj(a,b){B.assert("compact"!=a.fc&&"none"!=a.fc,"Carousel peer should not be accessing the spin info div when controlArea \x3d\x3d compact or none");return w.b.getElementById(M.g(b,"si"))}function Xj(a){return w.b.getElementById(M.g(a,"it"))}u.hx=function(){return this.xG("sm")};
u.xG=function(a,b){var d=this.h();d==n&&(d=b);return Uj.iX(d,a)};Uj.iX=function(a,b){B.assert(a!=n,"Carousel peer cannot get a child by sub ID if the parent is null!");for(var d=a.id+"::"+b,e=a.childNodes,f=0;f<e.length;f++)if(d==e[f].id)return e[f];return n};Uj.QWa=function(a){a=w.b.T(a);var b=a.id;b||(b=a.parentNode.id);a=b.substring(0,b.indexOf("::"));Ak(F.c.j(a).k())};Uj.daa=function(a){a=w.b.T(a);var b=a.id;b||(b=a.parentNode.id);a=b.substring(0,b.indexOf("::"));Bk(F.c.j(a).k())};
Uj.jx=function(a){a||(a=F.c.R().event);var b=a.wheelDelta!=n?-a.wheelDelta/4:4*a.detail,d=F.c.j(this.id);d!=n&&(d=d.k(),d.$d&&(b*=-1),xk(d,b,p));w.b.va(a)};function xk(a,b,d){if(a.d()!=n)if(!d&&30>=Math.abs(b))0<b?Bk(a):0!=b&&Ak(a);else{var e=a.Sb(),e=a.$d?e.offsetHeight:e.offsetWidth;a.TY!=n&&(b+=a.TY);d&&Math.abs(b/e)<a.vca?a.TY=b:(a.TY=n,0<b?Bk(a):0!=b&&Ak(a))}}
Uj.dX=function(a,b){B.assert(a!=n,"Carousel peer cannot find first child by tag name if the parent is null!");for(var d=a.childNodes,e=0;e<d.length;e++)if(b==d[e].tagName)return d[e];return n};function yk(a,b){B.p(a);var d=a,e=w.b;if(d==n||1!=d.nodeType)return n;for(var f=e.getAttribute(d,Uj.Ba);f==n;){if(d==n||d==b)return n;d=d.parentNode;if(d==n||1!=d.nodeType)return n;f=e.getAttribute(d,Uj.Ba)}return[f,d]}
Uj.prototype.Uja=function(a,b,d){this.ywa||(b=this.Ze(d,p),b==n?B.assert(b!=n,"The carousel '"+a.e()+"' does not any item in the current set of fetched items with client key: "+d):(this.Gc=d,Ok(this,b.pb,p),lk(this,d)))};z.a("AdfDhtmlCarouselPeer.prototype.ComponentCurrentItemKeyChanged",{Uja:Uj.prototype.Uja});
function Gk(a,b,d){var e=p,f=a.d(),g=a.Gc,h=new vb(f,g,b);d||Nk(a,g,h);h.v();h.na()||(h.Nb(f),a.Gc=b,a.ywa=l,D.i.finer("Update current item key to:",b),f.setCurrentItemKey(b),a.ywa=p,lk(a,b),e=l);return e}function Nk(a,b,d){a=a.Ze(b,p);B.assert(a!=n,'Unexpected null rowData for key "'+b+'".');a&&(b=F.c.j(H.ca(a.pb).id))&&d.Nb(b)}
function lk(a,b){var d=a.Ze(b,l);B.assert(d!=n,'Unexpected null rowData for key "'+b+'".');if(d){var e=H.ca(d.pb).id,d=F.c.j(e),f=a.d().e(),f=Xj(f);d==n?(a.c_=e,f.title="",f.innerHTML=""):(a.c_=n,e=d.getText(),f.title=e==n?"":e,f.innerHTML=e==n?"":e);Sk(a,d)}}Uj.prototype.LS=function(a){if(this.c_!=n&&this.c_==a){this.c_=n;var b=this.d().e(),b=Xj(b);a=F.c.j(a);if(a==n)b.title="",b.innerHTML="";else{var d=a.getText();b.title=d==n?"":d;b.innerHTML=d==n?"":d}Sk(this,a)}Pk(this)};
z.a("AdfDhtmlCarouselPeer.prototype.CarouselItemInitialized",{LS:Uj.prototype.LS});function Sk(a,b){for(var d=F.c.u().getStyleClass("p_AFSelected"),e=a.Sb().firstChild.childNodes,f=e.length,g=0;g<f;++g){var h=e[g];if(H.F(h,d)){(e=H.ca(h))&&e.removeAttribute("aria-selected");break}}b!=n&&(e=b.k(),e.bind(b),e=e.h(),H.n(e.parentNode,d),a.h().setAttribute("aria-activedescendant",e.id),e.setAttribute("aria-selected",l))}
function Pk(a){a.tca&&(window.clearTimeout(a.tca),delete a.tca);var b=F.c.R(),d=new Function("var c \x3d arguments.callee;c._self._delRes();");d._self=a;a.tca=b.setTimeout(d,1)}Uj.prototype._delRes=function(){Tk(this,this.d())};u=Uj.prototype;u.me=function(a){for(var b=w.fa(),d,e=this.h(),f=Uj.pF;n!=a&&a!=e&&"TD"!=(d=b.Ga(a))&&"TH"!=d;){if(d.match(f)&&-1!=a.tabIndex)return l;a=a.parentNode}return p};u.yO=function(a){a||(a=F.c.R().event);var b=w.b;this.me(w.b.T(a))||b.preventDefault(a)};
u.Ze=function(a,b){for(var d=n,e=this.Sb().firstChild,f=e.childNodes,g=jk(e),h=g;h<f.length&&!d;h++){var m=f[h],q=m.getAttribute(Uj.Ba);if(q==n)break;if(a==q){d={pb:m,index:e.la+h-g,n_:e};break}}b&&(d==n&&0<f.length)&&(h=f[g],B.assert(!Uj.qB(h),"The located firstRow (by default) is a placeholder: "+g+", "+h+", "+f),d={pb:h,index:e.la,n_:e},e=w.b.getAttribute(h,Uj.Ba),Gk(this,e,l));return d};
u.xW=function(a){for(var b="",d=this.Sb().childNodes,e=0;e<d.length;e++)for(var f=d[e].childNodes,g=0;g<f.length;g++){var h=f[g].getAttribute(Uj.Ba);if(h!=n)if("flat"==a)b+=h,b+="_";else for(var h=h.split(","),m=h.length,b=b+h[m-1],b=b+"_",q=0;q<m-1;q++){var s=h[q];b.match(RegExp("(^|_)"+s+"(_|$)"))||(b+=s,b+="_")}}return b};u.Ej=function(){O.ra(this.h())};
u.ba=function(a){if(!a.na()){a=a.L();var b=w.b,d=b.T(a),e=a.keyCode,f=l,g=d.id;if(d&&e==E.Df){var f=a.shiftKey,h=this.Gc;if(h){var m=l,q=this.d().e(),s=w.b,y=this.h(),A=this.Sb(),A=H.sb(A,d);"none"==this.fc?(q=Xj(q),q=O.bJ(q,n,l)):q=s.getElementById(M.g(q,"sp"));var s=p,C=n;if(h=this.Ze(h,p))C=h.pb,s=H.sb(C,d);f?A?s?O.Re(C,p)==d&&(O.ra(y),m=p):(O.ra(y),m=p):H.sb(q,d)&&(O.ABa(C)||O.ra(y),m=p):A?s?O.WI(C,p)==d&&(O.ra(q),m=p):(O.ra(q),m=p):d==y&&(O.Sj(C)||O.ra(q),m=p);f=m}else f=l}if(f&&(d&&g&&!this.To)&&
(m=this.d().e(),y=p,"small"!=this.fc&&("compact"!=this.fc&&"none"!=this.fc)&&(m=b.getElementById(M.g(m,"st")),y=g==m.id),y||!this.me(d)))if(d=Uj.fb(),e==E.Ya||e==E.Kb)this.$d?a.shiftKey?Dk(this,0):Ak(this):d?a.shiftKey?Dk(this,1):Bk(this):a.shiftKey?Dk(this,0):Ak(this),propogate=p;else if(e==E.Ja||e==E.Lb)this.$d?a.shiftKey?Dk(this,1):Bk(this):d?(a.shiftKey?Dk(this,0):Ak(this),f=p):a.shiftKey?Dk(this,1):Bk(this),propogate=p;f||b.va(a)}};
z.a("AdfDhtmlCarouselPeer.prototype.HandleComponentKeyDown",{ba:Uj.prototype.ba});Uj.prototype.Qt=function(a){if(a){for(var b=w.b,d={},e=this.Sb().firstChild.childNodes,f=e.length,g=0;g<f;++g){var h=e[g],m=b.getAttribute(h,Uj.Ba);if(m!=n)if(a==n){d.xb=m;d.pb=h;break}else if(m==a){d.JJ=m;if(g+1<f){h=e[g+1];m=b.getAttribute(h,Uj.Ba);if(m==n)break;d.xb=m;d.pb=h}break}}return d}};
Uj.prototype.St=function(a){if(a){for(var b=w.b,d=this.Sb(),e={},f=d.firstChild.childNodes,g=f.length-1;0<=g;--g){var h=f[g],m=b.getAttribute(h,Uj.Ba);if(m!=n)if(a==n){e.xb=m;e.pb=h;break}else if(m==a){e.JJ=m;if(0<=g-1){h=f[g-1];m=b.getAttribute(h,Uj.Ba);if(m==n)break;e.xb=m;e.pb=h}else 0==b.Sa(d.firstChild,"_startRow",-1)&&(e.L0=l);break}}return e}};Uj.prototype.$aa=function(a){return"immediate"==a.getContentDelivery()};Uj.fb=function(){return F.c.Ma().Oa()};
Uj.prototype.pB=function(a){a=a.getSource();for(var b=this.d(),d=p;!d&&a;)if(a==b)d=l;else{if(a instanceof AdfRichCarousel||a instanceof AdfUIPopup)break;a=a.getParent()}return d};Uj.bf=function(a,b){a&&a.style.cursor!=b&&(a.style.cursor=b)};function Ok(a,b,d){d||a.pu(l);d=a.ju;var e=a.d(),f=e.getHalign(),e=e.getValign(),g=a.$d;Uk(a,b,d,0,3E3,g,e,f,1,p);Vk(a,b,g,e,f,l);Vk(a,b,g,e,f,p);dk(a)}
function Tk(a){var b=F.c;a=a.Sb().firstChild.childNodes;for(var d=a.length,e=0;e<d;++e){var f=a[e];"block"==f.style.display&&(f=H.ca(f),f!=n&&(f=f.id,f!=n&&(f=F.c.j(f),f!=n&&b.lh(f))))}}function Ck(a,b){if(!a.d().getDisabled()){var d=a.ae;-1==d&&(d=a.Be+Uj.VL);var e=Math.max(0,b*(d-1));dk(a,Math.min(e,d-1))}}
function Vk(a,b,d,e,f,g){var h=a.ju,m=3E3;b=g?H.nc(b):H.Cb(b);if("oneByOne"==a.sl)for(m=g?-h:h;b!=n;)Uk(a,b,h,m,2999,d,e,f,1,l),b=g?H.nc(b):H.Cb(b);else for(var q=a.v7,s=a.q7,y=0,A=100;b!=n;)y+=h*s,h=Math.round(h*q),A*=q,Uk(a,b,h,g?-y:y,--m,d,e,f,Math.max(1,100-A),l),b=g?H.nc(b):H.Cb(b)}function Jk(a,b){var d=a.v7,e=a.q7,f=0,g=a.ju,h=100;if("oneByOne"==a.sl)f=b,h*=d;else for(var m=0;m<b;m++)f+=g*e,g=Math.round(g*d),h*=d;return{Mr:f,Rl:g,E2a:Math.max(1,100-h)}}
function Uk(a,b,d,e,f,g,h,m,q,s){var y=a.AN,A=a.PA,C=b.style;C.display=5<d||!s?"block":"none";C.width=d+"px";C.height=d+"px";!s&&"oneByOne"==a.sl?(C.top="0px",C.left="0px"):(C.top=Kk(a,g,h,A,d,e)+"px",C.left=Lk(a,g,m,y,d,e)+"px");C.zIndex=f;b=H.$l(b);b!=n&&(b.style.display=s?"block":"none",a.dI?w.b.yd(b,q):b.style.backgroundColor="transparent")}
function Lk(a,b,d,e,f,g){if(0!=g&&"oneByOne"==a.sl)return b?0:0>g?-a.ju:a.ju;b?a="start"==d?Uj.fb()?e-f-a.e_:a.e_:"end"==d?Uj.fb()?a.e_:e-f-a.e_:0.5*(e-f):(a="start"==d?0.2*(e-f)+g:"end"==d?0.8*(e-f)+g:0.5*(e-f)+g,Uj.fb()&&(a=e-f-a));return Math.round(a)}
function Kk(a,b,d,e,f,g){if(0!=g&&"oneByOne"==a.sl)return b?0>g?-a.ju:a.ju:0;b?"top"==d?(b=0.2*(e-f)+g,0<g&&(b+=a.LG)):"bottom"==d?(b=0.8*(e-f)+g,0<g&&(b+=0.25*a.LG)):(b=0.5*(e-f)+g,0<g&&(b+=a.LG)):b="top"==d?a.kwa:"bottom"==d?e-f-a.kwa:0.5*(e-f);return Math.round(b)}
function Qk(a,b,d,e){var f=w.b,g=b.firstChild;a.fh(g);b.removeChild(g);b.appendChild(d);f.wa(d);(b=d.firstChild)?(b=d.la,g=d.childNodes.length,B.assert(e>=b,"Bad data block state: ("+d.innerHTML+", "+e+", "+b+", "+g+")"),kk(a.d(),b,g),e=Math.min(e,b+g-1),b=d.childNodes[e-b],d=f.getAttribute(b,Uj.Ba),Gk(a,d,l),Ok(a,b,p),Pk(a)):D.i.severe("No items in the data block")}
function Rk(a,b,d,e){b=b.firstChild;var f=d.childNodes.length,g=fk(b),h=w.b,m=b.la,q=a.Ze(a.Gc,l);if(q==n)D.i.severe("Addition of data block items failed: "+a.Gc+", "+q);else{var s=q.index,y=a.d();a.pu(l,q.pb);ak(a);for(var A=y.getHalign(),C=y.getValign(),G=e?3E3-(s-(m-1)):3E3-(g+m-s),m=e?s-(m-1):g+m-s;e?d.lastChild:d.firstChild;){s=e?d.lastChild:d.firstChild;if(e){var K=hk(b);b.insertBefore(s,K)}else b.appendChild(s);K=Jk(a,m);Uk(a,s,K.Rl,e?-K.Mr:K.Mr,--G,a.$d,C,A,K.E2a,l);h.wa(s);m++}e&&(b.la-=
f);g+=f;b.Db=g;kk(y,b.la,g);Ok(a,q.pb,p);Pk(a)}}
function dk(a,b){var d=w.b,e=a.d().e();if(b==k){if(a.TA)return;var f=a.Ze(a.Gc,l);if(f==n){D.i.severe("Thumb details failed: "+a.Gc+", "+f);return}b=f.index}var f=a.ae,f=-1!=f?f:a.Be+Uj.VL,f=Math.max(1,f-1),g=b/f;a.TA||(a.K9=g);if("small"!=a.fc&&"compact"!=a.fc&&"none"!=a.fc){g=d.getElementById(M.g(e,"sb"));d=d.getElementById(M.g(e,"st"));a.TA||(a.vca=1/f);var e=a.$d,h=d[e?"offsetHeight":"offsetWidth"],f=e?(1-b/f)*(g.offsetHeight-h):Uj.fb()?(f-b)/f*(g.offsetWidth-h):b/f*(g.offsetWidth-h);d.style[e?
"bottom":"left"]=f+"px"}else!a.TA&&"none"!=a.fc&&(f=0==b,g=1==g,a.d().getDisabled()&&(g=f=l),h=d.getElementById(M.g(e,"sp")),d=d.getElementById(M.g(e,"sn")),H.td(f,h,M.gb),H.td(g,d,M.gb));if("compact"!=a.fc&&"none"!=a.fc&&(d=b+1,e=a.d().e(),f=Yj(a,e),g=a.ae,a.TA&&(d=Math.round(d)),d=-1==g?d:F.c.u().V("af_carousel.TIP_SPIN_INFO_X_OF_Y",d,g),f.innerHTML="\x3cspan\x3e"+d+"\x3c/span\x3e","small"!=a.fc&&"compact"!=a.fc&&"none"!=a.fc)){var d=f.style,m=w.b,h=m.getElementById(M.g(e,"st"));a.$d?(e=m.getElementById(M.g(e,
"sp")),d.paddingTop=Math.round(e.offsetTop+e.offsetHeight+h.offsetTop+h.offsetHeight/2-f.firstChild.offsetHeight/2)+"px"):(f=f.firstChild.offsetWidth,g=h.offsetLeft,h=h.offsetWidth,e=Uj.fb()?m.getElementById(M.g(e,"sn")):m.getElementById(M.g(e,"sp")),m=e.offsetWidth,e=e.offsetLeft,d.textAlign="left",d.paddingLeft=Math.round(e+m+g+h/2-f/2)+"px")}}
function zk(a,b,d,e,f){var g=n,h=100,m,q;if(f==n){if(d=a.Ze(d,l))m=d.pb;a.pu(l,m)}else{q=b;m=f.hoverKey;if(m!=n){h=0;if(m==a.fY)return;a.fY=m;g=f.hoverWrapper}a.pu(p)}m=a.v7;d=a.q7;var s=a.AN,y=a.PA,A=a.ju,C=a.$d,G=a.d(),K=G.getHalign(),N=G.getValign(),Q=[],T,Y=0,ra=0,wa="oneByOne"==a.sl;if(!wa&&(Y=Lk(a,C,K,s,A,0),ra=Kk(a,C,N,y,A,0),"hover"==a.Z6)){var G=G.e(),Ca=n;"small"==a.fc||"compact"==a.fc?(G=a.h(),Ca=Wj(a,G)):Ca=Xj(G);Ca!=n&&(T={element:Ca,ib:{alpha:h}},Q.push(T))}T={element:b,ib:{offsetLeft:Y,
offsetTop:ra,width:A,height:A}};var La=b.style;La.zIndex=3E3;La.display="block";Q.push(T);La=H.$l(b);La!=n&&(a.dI?(T={element:La,ib:{alpha:0}},Q.push(T)):La.style.backgroundColor="transparent");f==n&&dk(a);for(var Ba=H.nc(b),h=0,Y=A,ra=100,G=3E3,sb=0,Ca=Uj.fb();Ba!=n;){wa?h=1:(h+=Y*d,Y=Math.round(Y*m));La=Ba.style;if(Ba==g){La.zIndex=3001;--G;T=(A-Y)/2;C&&(Ca?"start"==K?T=A-Y:"end"==K&&(T=0):"start"==K?T=0:"end"==K&&(T=A-Y));var gc=(A-Y)/2;C||("top"==N?gc=0:"bottom"==N&&(gc=A-Y));T={element:Ba,ib:{offsetLeft:Lk(a,
C,K,s,Y,-h)-T,offsetTop:Kk(a,C,N,y,Y,-h)-gc,width:A,height:A}}}else La.zIndex=--G,T={element:Ba,ib:{offsetLeft:Lk(a,C,K,s,Y,-h),offsetTop:Kk(a,C,N,y,Y,-h),width:Y,height:Y}};La.display=5>=Y?"none":"block";Q.push(T);La=H.$l(Ba);La!=n&&Ba!=q&&(La.style.display="block",a.dI?(ra*=m,T=Ba==g?{element:La,ib:{alpha:1}}:{element:La,ib:{alpha:Math.max(1,100-ra)}},Q.push(T)):La.style.backgroundColor="transparent");La=Ba;Ba=H.nc(Ba);e&&(Ba==n&&2<Y)&&0<La.parentNode.la-sb&&(Ba=n,a.dI&&(ra*=m,Ba=Math.max(1,100-
ra)),Ba=Wk(a,La,p,Ba),++sb,wa&&(Ba=n))}Ba=H.Cb(b);h=0;Y=A;ra=100;G=3E3;for(sb=0;Ba!=n;)if(wa?h=1:(h+=Y*d,Y=Math.round(Math.max(1,Y*m))),La=Ba.style,Ba==g?(La.zIndex=3001,--G,T=(A-Y)/2,C&&(Ca?"start"==K?T=A-Y:"end"==K&&(T=0):"start"==K?T=0:"end"==K&&(T=A-Y)),gc=(A-Y)/2,C||("top"==N?gc=0:"bottom"==N&&(gc=A-Y)),T={element:Ba,ib:{offsetLeft:Lk(a,C,K,s,Y,h)-T,offsetTop:Kk(a,C,N,y,Y,h)-gc,width:A,height:A}}):(La.zIndex=--G,T={element:Ba,ib:{offsetLeft:Lk(a,C,K,s,Y,h),offsetTop:Kk(a,C,N,y,Y,h),width:Y,height:Y}}),
La.display=5>=Y?"none":"block",Q.push(T),La=H.$l(Ba),La!=n&&Ba!=q&&(La.style.display="block",a.dI?(ra*=m,T=Ba==g?{element:La,ib:{alpha:1}}:{element:La,ib:{alpha:Math.max(1,100-ra)}},Q.push(T)):La.style.backgroundColor="transparent"),La=Ba,Ba=H.Cb(Ba),e&&(Ba==n&&2<Y&&sb<Uj.ALa)&&(T=La.parentNode,T=T.la+fk(T)+sb,gc=a.ae,-1==gc||T<gc))Ba=n,a.dI&&(ra*=m,Ba=Math.max(1,100-ra)),Ba=Wk(a,La,l,Ba),++sb,wa&&(Ba=n);a.NYa=Uj.qB(b);a.Ye=Qg(3,f==n?a.WM:a.xca,Q,n,Uj.Y0a,a,n)}
function Wk(a,b,d,e){var f=w.b,g=b.ownerDocument,h=g.createElement("div"),m=h.style;m.width="1px";m.height="1px";m.top="50%";m.left="50%";m.display="none";m=F.c.u();H.n(h,m.getStyleClass("af|carousel::item"));"oneByOne"==a.sl?H.n(h,m.getStyleClass("p_AFOneByOne")):H.n(h,m.getStyleClass("p_AFCircular"));a=g.createElement("div");H.n(a,m.getStyleClass("af|carouselItem"));h.appendChild(a);g=g.createElement("div");H.n(g,m.getStyleClass("af|carousel::item-overlay"));e!=n&&f.yd(g,100*e);h.appendChild(g);
e=f.getAttribute(b,"theme");e!=n&&(f.setAttribute(h,"theme",e),f.setAttribute(a,"theme",e),f.setAttribute(g,"theme",e));d?b.parentNode.appendChild(h):b.parentNode.insertBefore(h,b);return h}Uj.qB=function(a){return w.b.getAttribute(a,Uj.Ba)==n};function ak(a){a=a.Sb().firstChild;if(a!=n){a=a.childNodes;for(var b=a.length-1;0<=b;b--){var d=a[b];Uj.qB(d)&&d.parentNode.removeChild(d)}}}
Uj.prototype.pu=function(a,b){if(this.Ye!=n){var d=b;if(!d){var e=this.Ze(this.Gc,l);e&&(d=e.pb)}e=this.Ye;this.Ye=n;e.stop();d&&a&&Ok(this,d,l)}};Uj.Y0a=function(a){a.Ye=n;if(!a.NYa){for(var b=a.Sb().firstChild.childNodes,d=0;d<b.length;++d){var e=b[d].style;"block"==e.display&&5>=parseInt(e.width,10)&&(e.display="none")}Tk(a,a.d());if(b=a.Ze(a.Gc,p))b=b.pb,b.style.display="block",b=H.$l(b),b!=n&&(b.style.display="none");a.yk(a.Sb(),p,l)}};
function Ak(a){var b=a.d();if(!(b==n||b.getDisabled())){var b=a.Gc,d=a.St(b);if(d.pb&&d.xb)a.er(),a.Ck&&window.clearTimeout(a.Ck),Gk(a,d.xb)&&zk(a,d.pb,b,l);else{var d=Ek(a),e=a.Ze(b,p);e?d<e.index&&a.JG(a.Sb(),d,l,l):D.i.severe("_initiateSpinPreviousAnimation failed due to invalid currentItemKey: "+b)}}}
function Bk(a){var b=a.d();if(!(b==n||b.getDisabled())){var b=a.Gc,d=a.Qt(b);if(d.pb&&d.xb)a.er(),a.Ck&&window.clearTimeout(a.Ck),Gk(a,d.xb)&&zk(a,d.pb,b,l);else{var d=Ek(a),e=a.Ze(b,p);e?d>e.index&&a.JG(a.Sb(),d,l,l):D.i.severe("_initiateSpinNextAnimation failed due to invalid currentItemKey: "+b)}}}function Fk(a){if(a.K9!=n)return a.K9;B.assert(p,"Illegal state; currentPercent is not known: "+a.K9)}
function Dk(a,b,d){if(!a.d().getDisabled()){var e=a.Sb(),f=e.firstChild,g=f.childNodes,h=a.ae,m=f.la,q=fk(f);-1==h&&(h=a.Be+Uj.VL);var s=h-1,y=Math.max(0,Math.round(b*s)),A=n;d!=n&&(A=Math.max(0,Math.round(d*s)));y=Math.min(y,h-1);A==y&&(y=b<d?Math.max(0,--y):Math.min(s,++y));y>=m&&y<m+q?(a.er(),a.Ck&&window.clearTimeout(a.Ck),d=jk(f),b=g[y-m+d],B.assert(b!=n,"A desired row could not be found: "+g+", "+y+", "+m+", "+d),g=w.b.getAttribute(b,Uj.Ba),m=l,a.Gc!=g&&g!=n&&(y=a.Gc,Gk(a,g)&&(m=p,zk(a,b,y,
l))),m&&(a.pu(l),ak(a),a.Ih(),(g=a.Ze(a.Gc,l))&&Ok(a,g.pb,l))):a.JG(e,y,l,l)}}function kk(a,b,d){a.setProperty("rows",d,p,J.Pc);a.setProperty("first",b,p,J.Pc)}Uj.prototype.Fd=function(a,b,d,e){b=a.e();a=xa.count(b,":");B.assert(0<=d.indexOf(b));d=d.substring(b.length+1);b=d.indexOf(":");0<b&&(d=this.Ze(d.substring(0,b),p),e.push([a+1,d?d.index:n]))};z.a("AdfDhtmlCarouselPeer.prototype.ConvertClientIdToLocator",{Fd:Uj.prototype.Fd});
Uj.prototype.Jd=function(a,b){var d=a.e(),e=Xk(this,b);return e?d+":"+e:n};z.a("AdfDhtmlCarouselPeer.prototype.convertLocatorToClientId",{Jd:Uj.prototype.Jd});function Xk(a,b){var d=a.Sb(a.h());if(d!=n)for(var d=d.childNodes,e=0;e<d.length;e++){var f=d[e],g=f.la;if(b>=g&&b<g+f.Db)return H.Tj(f,1,b-g).getAttribute(Uj.Ba)}return n}Uj.prototype.wd=function(a){B.s(a);B.assert(a!=n,"Row Key cannot be null");return(a=this.Ze(a))?a.index:-1};z.a("AdfDhtmlCarouselPeer.prototype.getRowIndex",{wd:Uj.prototype.wd});
Uj.prototype.Kd=function(a){B.Ea(a);var b=this.d(),d=b.r("rows"),b=b.r("first");B.assert(a>=b&&a<d+b,"index must be within the viewport of the client");return Xk(this,a)};z.a("AdfDhtmlCarouselPeer.prototype.getRowKey",{Kd:Uj.prototype.Kd});
Uj.prototype.Af=function(a,b){B.Ea(a);B.assert("number"===typeof a&&0<=a&&a<this.ae&&0===a%1,"Provided value expected to be a valid rowIndex, provided value: "+a);if("number"===typeof a&&0<=a&&a<this.ae&&0===a%1){var d=this.Ze(this.Gc,p);if(d&&a==d.index)Yk(b);else{var e=this.Sb(),d=e.firstChild,f=d.la,g=fk(d);a>=f&&a<f+g?(this.er(),this.Ck&&window.clearTimeout(this.Ck),e=jk(d),d=d.childNodes[a-f+e],B.assert(d!=n,"A desired row could not be found, rowIndex: "+a),f=w.b.getAttribute(d,Uj.Ba),e=this.Gc,
Gk(this,f)?zk(this,d,e,l):(this.pu(l),ak(this),this.Ih(),(d=this.Ze(this.Gc,l))&&Ok(this,d.pb,l)),Yk(b)):(this.JG(e,a,l,l),b!=n&&(this.xya=b,F.c.addEventListener(Eb.ga,this.QN,this)))}}else D.i.warning("Invalid rowIndex value used, rowIndex: "+a)};z.a("AdfDhtmlCarouselPeer.prototype.scrollToRowIndex",{Af:Uj.prototype.Af});function Yk(a){a&&(B.Da(a),a())}Uj.prototype.QN=function(a){var b=this.d();B.J(b,J);b=b.e();a.y_(b)&&(F.c.removeEventListener(Eb.ga,this.QN,this),a=this.xya,this.xya=n,Yk(a))};