var X=M.U(M,"AdfDhtmlCalendarPeer",p);v("AdfDhtmlCalendarPeer",X);X.prototype.q=function(a,b){X.f.q.call(this,a,b);H.Yu(b)&&(this.iZ(a,b),this.hDa=l);this.vY=10;if(a.QI()!=n&&a.Fe()==n){var d=new mf(Ka.mg,Ka.mg);a.E1(d)}this.FZ=a.e()+X.je+X.vOa;if(d=w.b.getElementById(this.FZ))d.style.top=d.parentNode.firstChild.offsetHeight+"px";this.Hwa=p};z.a("AdfDhtmlCalendarPeer.prototype.InitDomElement",{q:X.prototype.q});
X.prototype.Za=function(a,b){X.f.Za.call(this,a,b);var d=F.c,e=d.u(),f=a.e()+X.je+X.dJa;if(f=w.b.getElementById(f))e=e.V(X.YGa,f.innerHTML),d.Jr(e);if(a.r(X.Bo)==X.Qq){d=a.e();e=n;for(f=0;e==n&&7>f;f++)e=Ri(d,f,X.ZT);e&&e.setAttribute("tabIndex","0")}};z.a("AdfDhtmlCalendarPeer.prototype.BindToComponent",{Za:X.prototype.Za});
X.prototype.Z=function(a){var b=a.e(),d=w.b,e=a.r(X.Bo),f=n;if(e!=X.zt){if(e==X.Cw)f=X.sqa;else if(e==X.qk||e==X.Qq)f=X.ZU;b=M.g(b,f);if(d=d.getElementById(b))b=Si(a),this.UB(a,X.DL,b),H.Yu(d)&&(this.UB(a,f,d.scrollTop),(e==X.qk||e==X.Qq)&&this.UB(a,X.m7,d.scrollHeight))}Ti(this);X.f.Z.call(this,a)};z.a("AdfDhtmlCalendarPeer.prototype.ComponentRemoved",{Z:X.prototype.Z});
X.m=function(){M.ha(this,I.Xc,I.jb,I.kz,bb.Lc,I.qd,I.ec,ia.Zk,I.Qd);this.mk="_adfAct";this.hF="_adfActAD";this.EL="_adfActDu";this.nk="_adfDay";this.ow="_adfDyCl";this.DL="_adfActive";this.XT="_adfTm";this.jqa="_adfRi";this.hqa="_adfRiAD";this.SKa="_adfNoHov";this.FGa="_adDurtxt";this.GGa="_adHdtxt";this.xoa="_adfcdl";this.lra="_adfTmAtCm";this.ZU="scrDay";this.sqa="scrList";this.Y6a="stHr";this.aA="allDayC";this.vOa="_adfCalSp";this.dJa="_adfCalDR";this.zOa="startHour";this.T5="_adfIdAH";this.S5=
"_adfIdATL";this.doa="_adfIdACM";this.eoa="_adfIdAD";this.RJa="_adfIdC";this.QJa="_adfIdCM";this.Bo="view";this.qk="day";this.Qq="week";this.zt="month";this.Cw="list";this.dPa="timeSlotsPerHour";this.m7="scrDayHeight";this.zL="ALLDAY";this.EF="TIME";this.PL="DURATION";this.bQa="_adfCalDV";this.eQa="_adfCalWV";this.dQa="_adfCalMV";this.cQa="_adfCalLV";this.cJa="_adfCalTD";this.bJa="_adfCalPD";this.aJa="_adfCalND";this.Yna="MOUSE";this.v6a="FOCUS";this.Xna="KEY";this.Wna="HOVER";this.Vna="CONTEXT_MENU";
this.TL="NONE";this.Una="LEFT";this.t6a="MIDDLE";this.u6a="RIGHT";this.npa="mg";this.opa="mh";this.Kq="ol";this.pw="taw";this.ZGa="af|calendar::month-overflow-link";this.bHa="af|calendar::month-overflow-link-wrapper";this.$ma="no";this.aHa="af_calendar.LABEL_OVERFLOW";this.$Ga="af_calendar.TIP_MORE_ACTIVITIES";this.YGa="af_calendar.TIP_CURRENT_ACTIVITY_DISPLAY_RANGE_ANNOUNCE_MSG";this.SLa="_adfCalMR";this.XGa="tact";this.Zma="wh";this.ZT=0;this.cHa=1;this.dHa=2;this.f5=3;this.FL="arc";this.ll="arw";
this.Eh="p_AFDropTarget";this.Qna="p_AFDragSource";this.L5="p_AFDragEnd";this.ppa="p_AFMoveable";this.bA=20;this.QMa=15;this.je=":";this.TLa="af|calendar-tr-month-all-day-activity-height"};v("AdfDhtmlCalendarPeer.InitSubclass",X.m);X.prototype.Xv=function(a){if(!this.pj()){var b=a.Q();if(b){var d=this.h(),e=Ui(d,b);e&&d!=e?Vi(this,a,d,e,p):(e=Wi(this,a),Xi(this,e,a,d,b,0,X.TL,X.Vna)&&this.Cr(e,d,a,X.QJa))}}};z.a("AdfDhtmlCalendarPeer.prototype.HandleComponentContextMenu",{Xv:X.prototype.Xv});
X.prototype.qa=function(a){if(!this.pj()){var b=a.Q(),d=w.b;delete this.Jua;var e=d.getAttribute(b,X.jqa),b=d.getAttribute(b,X.hqa);if(a.Jb()&&(e||b)){Yi(this);if(e){var e=a.Q(),b=a.L(),d=w.b,f=this.d(),g=this.h();d.vd(g);var h=Ui(g,e);this.Fk=h;var m=h.firstChild.firstChild;this.OB=m.clientHeight;this.eZ=m.clientWidth;this.nza=parseFloat(m.style.height);this.SL=this.nza/this.OB;this.NB=b.clientY;this.Zca=b.clientX;m.style.height=this.OB+"px";m.lH=this.OB;var q=this.eua;if(!q){q=Zi(g,h,X.lra);B.p(q);
this.eua=q;-1==f.getShowActivityTypes().indexOf(X.EF)&&f.getShowActivityTypes().indexOf(X.PL);f=q.childNodes;for(g=0;g<f.length;g++)if(q=f[g],d.getAttribute(q,X.XT)!=n){this.hP=q.clientHeight;break}this.Ww=$i(this)}aj(this,h)&&(bj(this,h,m.clientHeight),this.YVa=d.nd(this.Ww),this.WVa=d.rc(this.Ww),this.XVa=d.rc(this.Ww)+this.Ww.clientWidth,this.QA=0);this.z0a=this.Ww.scrollTop;this.PP=m;h.style.zIndex=++this.vY;this.usa||(this.usa=this.o(this.bXa),this.eRa=this.o(this.cXa),this.dRa=this.o(this.aXa));
F.c.Nd(b,this.usa,this.eRa,this.dRa)}else{e=a.Q();b=a.L();h=w.b;m=this.h();h.vd(m);this.Fk=d=Ui(m,e);this.oza=d.style.width;this.Z8a=d.offsetLeft;this.Zca=b.clientX;if(m=Zi(m,d,X.SLa))this.JX=h.nd(m),this.nZa=m.clientHeight,this.FN=0;g=this.VM;g||(f=Wi(this,a),"month"==f.getView()?g=m:(m=M.g(f.e(),X.aA),g=h.getElementById(m)));B.p(g);this.VM=g;var m=Math.ceil(0.005*g.clientWidth),f=g.clientWidth,h=h.rc(g),q=F.c.Ma().Oa(),g=g.clientWidth/7,s=gj(d,q);this.Nba=q?s-g+m:s+g-m;this.eZa=q?h+m:h+f-m;this.VV=
h;this.fua=g;this.F8=s;this.cRa=m;H.n(d,X.L5);d.style.zIndex=++this.vY;this.Vsa||(this.Vsa=this.o(this.dWa),this.JRa=this.o(this.eWa),this.IRa=this.o(this.cWa));F.c.Nd(b,this.Vsa,this.JRa,this.IRa)}e.style.cursor="default";this.KV=e;a.cancel();a.dc();this.Jua=l}}};z.a("AdfDhtmlCalendarPeer.prototype.HandleComponentMouseDown",{qa:X.prototype.qa});
X.prototype.Ka=function(a){if(!this.pj()){var b=this.h(),d=this.d();a=a.Q();var e=Ui(b,a);if(e&&d.Fe()!=n&&!this.Fk){var f=d.r(X.Bo);if(f!=X.Cw){var g=w.b.getAttribute(e,X.hF)!=n,h=w.b.getAttribute(e,X.EL)!=n,m=-1==d.getShowActivityTypes().indexOf(X.EF);if(!h||!(m&&f==X.qk))(!g||f!=X.qk)&&!H.ta(e,X.ppa)&&H.n(e,X.ppa)}}if(f=w.b.getAttribute(b,X.T5))if(g=p,1==a.nodeType&&"IMG"==a.tagName&&(g=l),g||(g=Zi(e,a,X.SKa)),g)Ti(this);else if(e&&b!=e){if(b=e.id,a=this.pta,(e=this.iN)&&(a&&a!=b)&&Ti(this),e==
n&&(!this.Fk&&!this.e$)&&(e=d.j(f),a==n||a!=b||!e.Qa()))this.pta=b,d={be:d.e(),p2a:b},this.iN=page.oa(this,this.tP,d,1E3)}else this.pta!=n&&Ti(this)}};z.a("AdfDhtmlCalendarPeer.prototype.HandleComponentMouseOver",{Ka:X.prototype.Ka});X.prototype.C=function(a){this.pj()||this.Jua||hj(this,a,1)};z.a("AdfDhtmlCalendarPeer.prototype.HandleComponentClick",{C:X.prototype.C});X.prototype.ko=function(a){this.pj()||hj(this,a,2)};z.a("AdfDhtmlCalendarPeer.prototype.HandleComponentDblClick",{ko:X.prototype.ko});
X.prototype.ba=function(a){if(!this.pj()){var b=a.L(),d=b.keyCode;if(E.$a==d||E.cL==d){var e=this.h(),f=this.d(),g=a.Q(),h=Ui(e,g);if(h&&e!=h)E.cL==d&&b.ctrlKey&&b.altKey?Vi(this,a,e,h,l):E.$a==d&&(a=a.gg(),ij(this,f,h,a,0,X.TL,X.Xna),jj(this,f,X.S5));else if(h=Zi(e,g,X.nk))Yi(this),h=w.b.getAttribute(h,X.nk),Kf.v(f,h,X.qk)}}};z.a("AdfDhtmlCalendarPeer.prototype.HandleComponentKeyDown",{ba:X.prototype.ba});
X.prototype.pa=function(a){if(!this.pj()){var b=this.h(),d=a.Q(),e=Ui(b,d),f=this.d().r(X.Bo),g=this.d(),h=a.gg(),m=a.ia();if(e&&b!=e){if(E.Df==m||E.Ja==m||E.Ya==m||E.Lb==m||E.Kb==m){if(f==X.zt)return kj(this,m,e,a);if(f==X.Qq)return lj(this,m,e,a);if(f==X.qk)return mj(this,m,e,a);if(f==X.Cw)return nj(m,e,a)}E.$a!=m&&(ij(this,g,e,h,0,X.TL,X.Xna),E.PS==m&&jj(this,g,X.eoa))}else if(w.b.getAttribute(d,X.nk)!=n)return f==X.qk?mj(this,m,d):f==X.Qq?lj(this,m,d):f==X.zt?kj(this,m,d):f==X.Cw?nj(m,d):p}};
z.a("AdfDhtmlCalendarPeer.prototype.HandleComponentKeyUp",{pa:X.prototype.pa});X.prototype.gi=function(a){if(!this.pj()){var b=this.d(),d=b.e(),e=Wi(this,a).e();d+X.je+X.bQa==e?oj(this,a,b,X.qk):d+X.je+X.eQa==e?oj(this,a,b,X.Qq):d+X.je+X.dQa==e?oj(this,a,b,X.zt):d+X.je+X.cQa==e?oj(this,a,b,X.Cw):d+X.je+X.cJa==e?oj(this,a,b,n,Kf.rka):d+X.je+X.aJa==e?oj(this,a,b,n,Kf.pka):d+X.je+X.bJa==e&&oj(this,a,b,n,Kf.qka)}};z.a("AdfDhtmlCalendarPeer.prototype.HandleComponentAction",{gi:X.prototype.gi});
X.prototype.Qga=t(p);z.a("AdfDhtmlCalendarPeer.prototype.handleMonthOverflowLinkClick",{Qga:X.prototype.Qga});X.prototype.ja=function(){var a=this.d().r(X.Bo);if(a==X.zt||a==X.qk||a==X.Qq)return l};z.a("AdfDhtmlCalendarPeer.prototype.needsResizeNotify",{ja:X.prototype.ja});
X.prototype.se=function(a,b,d,e,f){b=this.d().r(X.Bo);if(f!=d){if(b==X.qk)pj(this);else if(b==X.Qq)pj(this);else if(b==X.zt){b=F.c.Ma().Oa();d=d==n||f<d;f=this.d();var g=f.e();e=M.g(g,X.npa);var h=w.b.getElementById(e);if(h){e=h.childNodes;for(var m=e.length,g=M.g(g,X.opa),g=w.b.getElementById(g),h=qj(h,g),g=0;g<m;g++){for(var q=Array(h.$h),s=Array(h.$h),y=Array(h.$h),A=Array(h.$h),C=Array(h.$h),G=Array(h.$h),K=0;K<h.$h;K++)G[K]=0;for(var K=e[g],N=K.childNodes,Q=N.length,T=0;T<Q;T++){var Y=w.b.getAttribute(N[T],
X.hF),ra,wa=w.b.getAttribute(N[T],X.pw);ra=w.b.getAttribute(N[T],X.Kq);var Ca=rj(h,N[T]);if(Y)ra=N[T],h.hC==n&&sj(ra,h);else if(wa)ra=N[T].childNodes[0],h.hC==n&&sj(ra,h);else if(ra){Y=w.b.getAttribute(N[T],X.$ma);C[Ca]=Y;K.removeChild(N[T]);T--;Q--;continue}else q[Ca]=N[T];if(d)if(Y)ra=N[T],Y=w.b.getAttribute(ra,X.ll),Y>=h.eD&&("none"!=ra.style.display&&tj(ra,h,G),s[Ca]==n&&(s[Ca]=ra),y[Ca]==n&&(y[Ca]=ra));else{if(wa){wa=N[T];ra=wa.childNodes.length;for(var La=0,Ba=0;Ba<ra;Ba++){var sb=wa.childNodes[Ba],
Y=w.b.getAttribute(sb,X.ll);Y>=h.eD&&("none"!=sb.style.display&&tj(sb,h,G),La++,y[Ca]==n&&(y[Ca]=sb))}if(s[Ca]==n)if(La==ra)s[Ca]=wa;else if(0<La){for(Y=H.Cb(wa);w.b.getAttribute(Y,X.Kq)!=n;)Y=H.Cb(Y);s[Ca]=Y}}}else if(Y)ra=N[T],Y=w.b.getAttribute(ra,X.ll),Y<h.eD?"none"==ra.style.display&&uj(ra,h,G):(s[Ca]==n&&(s[Ca]=ra),y[Ca]==n&&(y[Ca]=ra));else if(wa){wa=N[T];ra=0;La=wa.childNodes.length;for(Ba=0;Ba<La;Ba++)sb=wa.childNodes[Ba],Y=w.b.getAttribute(sb,X.ll),Y<h.eD?"none"==sb.style.display&&uj(sb,
h,G):(y[Ca]==n&&(y[Ca]=sb),ra++);if(s[Ca]==n)if(ra==La)s[Ca]=wa;else if(0<ra){for(Y=H.Cb(wa);w.b.getAttribute(Y,X.Kq)!=n;)Y=H.Cb(Y);s[Ca]=Y}}}for(N=0;N<h.$h;N++)if(Q=s[N],T=(parseInt(C[N])||0)+(parseInt(G[N])||0),0<T){Y=y[N]!=n;Ca=vj(y[N],h);for(wa=0;Y&&wa<Ca.CQ;wa++)if(1<(parseInt(C[N+wa])||0)+(parseInt(G[N+wa])||0))Y=p;if(Y==l&&w.b.getAttribute(y[N],X.ll)<h.eD){y[N].style.display=y[N].style.RW||"";for(Q=0;Q<Ca.CQ;Q++)G[N+Q]-=1}else{if(Q==n)for(Ca=N-1;0<=Ca;Ca--)if(A[Ca]!=n){Q=H.Cb(A[Ca]);break}ra=
f;Y=T;La=q[N];Ba=h;wa=F.c.u();T=w.b;Ca=document.createElement("div");H.n(Ca,wa.getStyleClass(X.bHa));T.setAttribute(Ca,X.Kq,X.Kq);T.setAttribute(Ca,X.$ma,Y);T.setAttribute(Ca,X.ll,Ba.eD);ra=wj(ra,La);T.setAttribute(Ca,X.nk,ra);ra=document.createElement("a");H.n(ra,wa.getStyleClass(X.ZGa));ra.href="#";ra.onclick=this.Qga;ra.tabIndex=-1;La=wa.V(X.aHa,Y);ra.innerHTML=La;Ca.appendChild(ra);T.setAttribute(Ca,"role","link");Y=wa.V(X.$Ga,Y);T.setAttribute(Ca,"aria-label",Y);Ca.tabIndex=-1;T=Ca;b?T.style.right=
q[N].style.right:T.style.left=q[N].style.left;T.style.top=h.hC.B4a;T.style.width=q[N].style.width;K.insertBefore(T,Q);A[N]=T}}}}}this.hDa||(this.iZ(a,this.h()),this.hDa=l)}};z.a("AdfDhtmlCalendarPeer.prototype.resizeNotify",{se:X.prototype.se});X.prototype.xEa=function(a,b,d){var e=this.d();a=e.j(a);b=e.e()+"::"+b+"::"+d;if(b=w.b.getElementById(b))d={},d.alignElement=b,d[AdfRichPopup.fd]=AdfRichPopup.of,d.autodismiss="autodismissMouseOut",d.autodismissMouseOut=b,a.show(d)};
z.a("AdfDhtmlCalendarPeer.prototype.showActivityPopup",{xEa:X.prototype.xEa});X.prototype.DI=function(a){if(this.Fk)return n;var b=a.Q(),d=w.b.getAttribute(b,X.jqa);d||(d=w.b.getAttribute(b,X.hqa));if(d)return n;d=this.d();b=d.r(X.Bo);if(b==X.Cw)return n;var e=a.Q();a=this.h();var e=Ui(a,e),f=e!=n&&w.b.getAttribute(e,X.EL)!=n,d=-1==d.getShowActivityTypes().indexOf(X.EF);return b==X.qk&&f&&d?n:e&&a!=e?(b=xj(e),d=w.b.getAttribute(e,X.hF)!=n,new lf(b.Sp,b.ip,d)):n};
z.a("AdfDhtmlCalendarPeer.prototype.getActivityForEvent",{DI:X.prototype.DI});
X.prototype.Qfa=function(a,b){var d=this.d(),e=w.b;Yi(this);d=d.e()+"::"+b.q0()+"::"+b.Q_();(d=e.getElementById(d))||(d=Ui(this.h(),a.Q()));this.e$=d;var f=d.cloneNode(l);e.Qr(d,f);e=f.style;e.left=e.top="0px";e.height=d.clientHeight+"px";var g=n,h=n;if(b.uJ())for(var g=f.getElementsByTagName("span"),m=g.length,q=0;q<m;q++){var s=g[q];if(s.getAttribute(X.FGa)!=n){h=s;break}}if(h!=n){var m=d,y=h,h=w.b;y.style.display="";q=g.length;for(s=0;s<q;s++){var A=g[s];h.getAttribute(A,X.GGa)==n&&(A!==y&&!H.oc(A,
y))&&(A.style.display="none")}g=m.parentNode.childNodes;q=g.length;for(s=0;s<q;s++)if(m=g[s],h.getAttribute(m,X.ow)!=n){e.width=m.clientWidth+"px";break}}else e.width=d.clientWidth+"px";H.n(d,X.Qna);return f};z.a("AdfDhtmlCalendarPeer.prototype.getDragNodeForActivity",{Qfa:X.prototype.Qfa});X.prototype.Sr=function(a,b){var d=this.e$;d&&(b==Ka.lb&&H.F(d,X.Qna),this.e$=n)};z.a("AdfDhtmlCalendarPeer.prototype.dragDropEnd",{Sr:X.prototype.Sr});
X.prototype.Rfa=function(a,b){var d=w.b,e=this.d().e()+"::"+b.q0()+"::"+b.Q_();(e=d.getElementById(e))||(e=Ui(this.h(),a.Q()));e=d.Ub(e);d=d.Qb(a.L());xOffset=d.x-e.x;yOffset=d.y-e.y;return{x:xOffset,y:yOffset}};z.a("AdfDhtmlCalendarPeer.prototype.getDragOffsetForActivity",{Rfa:X.prototype.Rfa});
X.prototype.$_=function(a,b,d,e){B.Ea(b);B.Ea(d);B.assert(e!=n);var f=e[of.PK],g=e[of.QK];if(f&&g){var h=g.HQ;B.zc(h);if(b>=h.left&&d>=h.top&&b<=h.right&&d<=h.bottom){e[of.uq]=f;e[of.dt]=g;return}}f=this.d().r(X.Bo);g=p;if(f==X.qk){f=w.b;g=this.d();a=yj(a);h=p;if(zj(this)){var m=g.e(),m=M.g(m,X.aA),m=f.getElementById(m);B.p(m);f.Kc(m,b,d)&&!a&&(h={},h.date=f.getAttribute(m,X.ow),-1!=g.getShowActivityTypes().indexOf(X.zL)?h.timeType=X.zL:h.timeType=X.PL,e[of.uq]=h,dropSiteData={},dropSiteData.vc=m,
dropSiteData.HQ=f.Uc(m),e[of.dt]=dropSiteData,h=l)}if(!h&&(!a||!a.uJ()))a:{a=w.b;var f=n,h=$i(this),g=h.scrollTop,q=h.firstChild.rows[0].cells[1].firstChild,h=q.childNodes,m=h.length;if(a.Kc(q,b,d))for(i=0;i<m;i++)if(q=h[i],f||(f=a.getAttribute(q,X.ow)),q.offsetTop+q.offsetHeight>g){var s=a.getAttribute(q,X.XT);if(s!=n&&a.Kc(q,b,d)){e[of.uq]=Aj(this,f,s);d={};d.vc=q;d.HQ=a.Uc(q);e[of.dt]=d;h=l;break a}}h=p}g=h}else if(f==X.Qq){f=w.b;h=this.d();a=yj(a);g=p;if(zj(this)&&(h=h.e(),h=M.g(h,X.aA),h=f.getElementById(h),
B.p(h),f.Kc(h,b,d)&&(!a||a.uJ())))a:{f=w.b;m=h.childNodes;q=m.length;for(i=0;i<q;i++)if(g=m[i],h=f.getAttribute(g,X.ow),h!=n&&f.Kc(g,b,d)){m=-1!=this.d().getShowActivityTypes().indexOf(X.zL)?X.zL:X.PL;e[of.uq]={date:h,timeType:m};h={};h.vc=g;h.HQ=f.Uc(g);e[of.dt]=h;g=l;break a}g=p}if(!g&&(!a||!a.uJ()))a:{a=w.b;f=$i(this);q=f.scrollTop;f=f.firstChild.rows[0].cells[1].firstChild;if(a.Kc(f,b,d)){g=f.childNodes;h=g.length;f=m=n;for(i=0;i<h;i++){var s=g[i],y=a.getAttribute(s,X.ow);if(y!=n&&s.offsetTop+
s.offsetHeight>q&&a.Kc(s,b,d)){m=y;f=s;break}}if(m!=n)for(i=0;i<h;i++)if(b=g[i],q=a.getAttribute(b,X.XT),q!=n&&(s=a.Ub(b),d>s.y&&d<s.y+b.offsetHeight)){e[of.uq]=Aj(this,m,q);d={};d.vc=b;d.f2=f;b=a.Uc(b);a=a.Uc(f);d.HQ={top:b.top,left:a.left,bottom:b.bottom,right:a.right};e[of.dt]=d;g=l;break a}}g=p}}else if(f==X.zt){a=w.b;f=p;g=this.d().e();g=M.g(g,X.npa);if((g=w.b.getElementById(g))&&a.Kc(g,b,d)){h=g.childNodes;m=h.length;q=n;for(s=0;s<m&&!q;s++)if(y=h[s],a.Kc(g,b,d))for(var A=y.childNodes,C=A.length,
G=0;G<C;G++){var y=A[G],K=a.getAttribute(y,X.ow);if(K!=n&&a.Kc(y,b,d)){q={};q.date=K;q.timeType="UNKNOWN";e[of.uq]=q;f={};f.vc=y;f.HQ=a.Uc(y);e[of.dt]=f;f=l;break}}}g=f}g||(e[of.uq]=n,e[of.dt]=n)};z.a("AdfDhtmlCalendarPeer.prototype.getDropSiteAndDataFromHints",{$_:X.prototype.$_});X.prototype.ci=function(a,b,d,e,f,g){f!=b&&(f!=n&&(B.zc(g),B.p(g.vc),H.F(g.vc,X.Eh),g.f2&&H.F(g.f2,X.Eh)),b!=n&&(B.zc(d),B.p(d.vc),H.n(d.vc,X.Eh),d.f2&&H.n(d.f2,X.Eh)))};
z.a("AdfDhtmlCalendarPeer.prototype.showDragFeedback",{ci:X.prototype.ci});function yj(a){if(a=a.Zj())if(a=a.em(hb.a4),a!=n)for(var b=a.length,d=0;d<b;d++){var e=a[d];if(e instanceof lf)return e}return n}function zj(a){a=a.d().getShowActivityTypes();return-1!=a.indexOf(X.zL)||-1!=a.indexOf(X.PL)&&-1!=a.indexOf(X.EF)}function Aj(a,b,d){var e={},f=Bj(a);e.u9a=b;e.T9a=Math.round(d/f-0.5);e.min=d%f*(60/f);-1!=a.d().getShowActivityTypes().indexOf(X.EF)?e.timeType=X.EF:e.timeType=X.PL;return e}
function oj(a,b,d,e,f){Yi(a);b.cancel();b.dc();Kf.v(d,f,e)}
function sj(a,b){var d={},e=F.c.u().ka(X.TLa);d.tea=e!=n?parseFloat(e):0<a.clientHeight?a.clientHeight:b.Xea;d.bK=1.1;var e=w.b,f=e.getComputedStyle(a),g=e.$i(f,"margin-bottom");g==n&&(g=e.$i(f,"marginBottom"));if(g!=n){var h=g.lastIndexOf("px");-1!=h?d.bK=parseFloat(g.substring(0,h)):(h=g.lastIndexOf("em"),-1!=h&&(g=g.substring(0,h),d.bK=parseFloat(g)*b.SL))}d.yDa=d.tea;g=e.$i(f,"font-size");g==n&&(g=e.$i(f,"fontSize"));g!=n&&(h=g.lastIndexOf("px"),-1!=h&&(d.yDa=parseFloat(g.substring(0,h))));b.hC=
d;b.eD=Math.floor((b.T2a-(b.Xea+d.bK+d.yDa))/(d.bK+d.tea));b.hC.B4a=b.Xea+b.eD*(b.hC.tea+b.hC.bK)+b.hC.bK+"px"}
function qj(a,b){var d={},e=F.c.Ma().Oa();if(a!=n){for(var f=a.childNodes[0].childNodes,g=f.length,h=0;h<g;h++){var m=w.b.getAttribute(f[h],X.mk),q=w.b.getAttribute(f[h],X.pw),s=w.b.getAttribute(f[h],X.Kq);if(!m&&!q&&!s){f=f[h];g=f.childNodes[0];d.T2a=f.clientHeight;d.Xea=g.clientHeight;break}}f=a.style.top;f=parseFloat(f.substring(0,f.lastIndexOf("em")));d.SL=a.offsetTop/f}if(b!=n){f=b.childNodes.length;d.$h=f;g={};h=Array(f);for(m=0;m<f;m++)q=e?b.childNodes[m].style.right:b.childNodes[m].style.left,
g[q]=m,h[m]=parseFloat(q);d.F4a=g;d.E4a=h;d.o9a=h[1]-h[0]}return d}function vj(a,b){if(a==n)return n;var d={};d.i2=rj(b,a);var e;e=w.b.getAttribute(a,X.hF)?a.style.width:a.parentNode.style.width;e=parseFloat(e.substring(0,e.lastIndexOf("%")));d.CQ=b.$h;for(var f=0;f<b.$h;f++)if(e<=b.E4a[f]){d.CQ=f;break}return d}function Cj(a){var b=w.b;for(a=H.ca(a);a!=n;){var d=H.ca(a);if(d!=n&&b.getAttribute(d,X.mk)!=n)return d;a=H.Cb(a)}}
function Dj(a,b){for(var d=w.b,e=b?H.Cb(a):H.nc(a);e!=n;){if(d.getAttribute(e,X.xoa)!=n)return e;e=b?H.Cb(e):H.nc(e)}}function Si(a){a=M.Ib(a);return w.b.getAttribute(a,X.DL)}function Ui(a,b){return Zi(a,b,X.mk)}function wj(a,b){var d=Ej(a,b,X.ow);return d==n?n:d}
function Ri(a,b,d){a=M.g(a,X.aA);a=w.b.getElementById(a);if(!a)return n;a=H.ca(a);for(var e=d==X.ZT?99999:-1,f=n;a!=n&&w.b.getAttribute(a,X.mk)!=n;){var g=w.b.getAttribute(a,X.FL);if(g==b)g=parseInt(w.b.getAttribute(a,X.ll)),d==X.ZT?g<e&&(e=g,f=a):g>e&&(e=g,f=a);else if(g>b)break;a=H.Cb(a)}return f}
function Fj(a,b,d){a=M.g(a,X.aA);var e=w.b.getElementById(a);if(!e)return n;a=w.b.getAttribute(b,X.ll);b=w.b.getAttribute(b,X.FL);for(var e=H.ca(e),f=d==X.f5?99999:-1,g=n;e!=n&&w.b.getAttribute(e,X.mk)!=n;){var h=w.b.getAttribute(e,X.FL);if(h==b)h=parseInt(w.b.getAttribute(e,X.ll)),d==X.f5?h>a&&h<f&&(f=h,g=e):h<a&&h>f&&(f=h,g=e);else if(h>b)break;e=H.Cb(e)}return g}function Gj(a,b){var d=M.g(a,X.Zma),d=w.b.getElementById(d);return 0>b||b>=d.childNodes.length?n:H.ca(d.childNodes[b])}
function Lj(a,b){var d=M.g(a,X.XGa),d=w.b.getElementById(d);if(!d)return n;d=H.ca(d);do{if(d==n)break;var e=w.b.getAttribute(d,X.FL);if(e==n||e<b)d=H.Cb(d);else{d=e==b?d.childNodes[0].childNodes[0]:n;break}}while(1);return d}function Mj(a,b,d){if(a!=n){a=H.$l(a);b=d.$h-1-b;for(d=0;d<b;d++)a=H.nc(a);if(a!=n)return a.childNodes[0].childNodes[0]}return n}function Bj(a){return a.d().r(X.dPa)}function Zi(a,b,d){for(;b&&b!=a;){if(1==b.nodeType&&w.b.getAttribute(b,d))return b;b=b.parentNode}return n}
function Nj(a,b){var d=b?H.Cb(a):H.nc(a);d==n&&w.b.getAttribute(a.parentNode,X.pw)!=n&&(d=b?H.Cb(a.parentNode):H.nc(a.parentNode));d!=n&&w.b.getAttribute(d,X.pw)!=n&&(d=b?H.ca(d):H.$l(d));return d}function rj(a,b){for(var d=F.c.Ma().Oa(),e=b,f;;){f=w.b.getAttribute(e,X.FL);if(f!=n)break;if(a!=n){var g=d?e.style.right:e.style.left;if(0<g.length){f=a.F4a[g];break}}e=e.parentNode}return parseInt(f)}
function Ej(a,b,d){for(var e;b&&b!=a;){1==b.nodeType&&(e=w.b.getAttribute(b,d));if(1==b.nodeType&&e)return e;b=b.parentNode}return n}function mj(a,b,d,e){var f=a.d().e(),g;a=p;if(w.b.getAttribute(d,X.mk)!=n){var h=w.b.getAttribute(d,X.hF)!=n;if(E.Ja==b)g=H.Cb(d),g==n&&h&&(g=Lj(f,0),a=l);else if(E.Ya==b&&(g=H.nc(d),g==n&&!h&&(b=M.g(f,X.aA),b=w.b.getElementById(b))))g=H.$l(b),a=l}return g?(Oj(d,g,e,a),l):p}
function nj(a,b,d){var e=w.b.getAttribute(b,X.mk)!=n,f=w.b,g,h=b.parentNode.parentNode;if(e)if(E.Ja==a||E.Ya==a)h=(a=E.Ja==a)?H.Cb(h):H.nc(h),h!=n&&1==h.childNodes.length&&(h=a?H.Cb(h):H.nc(h)),h!=n&&(g=Cj(h));else{if(E.Kb==a||E.Lb==a)e=F.c.Ma().Oa(),!e&&E.Lb==a||e&&E.Kb==a?(h=Dj(h,l),h!=n&&(g=H.ca(h),g=H.ca(H.Cb(g)),g==n&&(g=Cj(h)))):(f.getAttribute(h,X.xoa)==n&&(h=Dj(h,p)),g=H.Tc(h)[1],g=H.ca(g),g==n&&(h=H.nc(h),h!=n&&(h=H.nc(h),g=Cj(h))))}else w.b.getAttribute(b,X.nk)!=n&&(E.Ja==a||E.Ya==a?(h=
Dj(h,E.Ja==a),h!=n&&(h=H.Tc(h)[1],g=H.ca(h))):E.Lb==a?(g=H.Cb(H.Cb(b.parentNode)),g!=n&&(g=H.ca(g))):E.Kb==a&&(h=H.nc(h),h!=n&&(h=H.nc(h),g=Cj(h))));return g?(Oj(b,g,d),l):p}
function kj(a,b,d,e){var f=F.c.Ma().Oa();a=a.d().e();var g,h=w.b.getAttribute(d,X.mk)!=n,m=w.b.getAttribute(d,X.Kq)!=n,q=w.b.getAttribute(d,X.nk)!=n;a=M.g(a,X.opa);a=w.b.getElementById(a);a=qj(n,a);var s=rj(a,d);if(h||m){var y=w.b.getAttribute(d.parentNode,X.pw)!=n;if(E.Ja==b)if(m)g=H.Cb(d.parentNode),g=Mj(g,s,a);else{g=Nj(d,l);if(g!=n)if(b=rj(a,g),b!=s)g=n;else if("none"==g.style.display)a:{b=g;w.b.getAttribute(g.parentNode,X.pw)&&(b=g.parentNode);for(;(b=H.Cb(b))!=n;)if(w.b.getAttribute(b,X.Kq)!=
n){g=b;break a}g=n}g==n&&(g=H.Cb(y?d.parentNode.parentNode:d.parentNode),g=Mj(g,s,a))}else if(E.Ya==b){b=p;for(f=d;!b;){g=Nj(f,p);if(g==n)break;if("none"==g.style.display)f=g;else if(b=rj(a,g),b==s)b=l;else{g=n;break}}g==n&&(g=Mj(y?d.parentNode.parentNode:d.parentNode,s,a))}else if(E.Kb==b||E.Lb==b){f=E.Kb==b&&f||E.Lb==b&&!f;s=rj(a,d);m=w.b.getAttribute(d,X.ll);h=p;for(b=d;!h;){g=Nj(b,f);if(g==n)break;if("none"!=g.style.display&&(b=rj(a,g),b!=s))if(b=Math.abs(b-s),1==b){b=w.b.getAttribute(g,X.ll);
if(b==n){g=n;break}m==b&&(h=l)}else if(1<b){g=n;break}b=g}g==n&&(s=f?s+1:s-1,0<=s&&s<a.$h&&(g=Mj(y?d.parentNode.parentNode:d.parentNode,s,a)))}}else if(q)if(E.Kb==b||E.Lb==b)s=(y=E.Kb==b&&f||E.Lb==b&&!f)?s+1:s-1,0<=s&&s<a.$h?g=H.ca(H.ca(y?H.Cb(d.parentNode.parentNode):H.nc(d.parentNode.parentNode))):(s=s==a.$h&&y?H.Cb(d.parentNode.parentNode.parentNode):H.nc(d.parentNode.parentNode.parentNode),s!=n&&(g=Mj(s,y?0:a.$h-1,a)));else if(E.Ya==b){if(f=H.nc(d.parentNode.parentNode.parentNode),f!=n){if(f.childNodes.length!=
a.$h){g=H.ca(f);w.b.getAttribute(g,X.pw)!=n&&(g=H.ca(g));do{if(g==n)break;if(w.b.getAttribute(g,X.mk)==n&&w.b.getAttribute(g,X.Kq)==n)break;b=rj(a,g);if(b==s)"none"!=g.style.display&&(y=g);else if(b>s)break;g=Nj(g,l)}while(1)}g=y!=n?y:Mj(f,s,a)}}else if(E.Ja==b){y=d.parentNode.parentNode.parentNode;if(y.childNodes.length!=a.$h){g=H.ca(y);w.b.getAttribute(g,X.pw)!=n&&(g=H.ca(g));do{if(g==n)break;if(w.b.getAttribute(g,X.mk)==n&&w.b.getAttribute(g,X.Kq)==n){g=n;break}b=rj(a,g);if(b==s)break;else if(b>
s){g=n;break}g=Nj(g,l)}while(1)}g==n&&(y=H.Cb(y),y!=n&&(g=Mj(y,s,a)))}return g?(Oj(d,g,e),l):p}
function lj(a,b,d,e){var f=F.c.Ma().Oa(),g=a.d().e(),h,m=w.b.getAttribute(d,X.mk)!=n,q=M.g(g,X.Zma),s=w.b.getElementById(q),s=qj(n,s),y=rj(s,d),A=p;if(m)if(m=w.b.getAttribute(d,X.hF)!=n,E.Ja==b)h=!m?H.Cb(d):Fj(g,d,X.f5),m&&h==n&&(h=Lj(g,y),h!=n&&(A=l)),h==n&&(h=Gj(g,y));else if(E.Ya==b)h=!m?H.nc(d):Fj(g,d,X.dHa),!m&&h==n&&(h=Ri(g,y,a.cHa),h!=n&&(A=l)),h==n&&(h=Gj(g,y));else{if(E.Lb==b||E.Kb==b){h=(a=E.Lb==b&&!f||E.Kb==b&&f)?H.Cb(d):H.nc(d);if(m)for(b=w.b.getAttribute(d,X.ll);h!=n;){f=rj(s,h);f=Math.abs(f-
y);if(1==f){f=w.b.getAttribute(h,X.ll);if(f==n){h=n;break}if(b==f)break}else if(1<f){h=n;break}h=a?H.Cb(h):H.nc(h)}else h=Lj(g,a?y+1:y-1);h==n&&(h=Gj(g,a?y+1:y-1),m||(A=l))}}else if(d.parentNode.parentNode.id==q)if(E.Ja==b)h=Ri(g,y,X.ZT),h==n&&(h=Lj(g,y));else if(E.Kb==b||E.Lb==b)y=(g=E.Kb==b&&f||E.Lb==b&&!f)?y+1:y-1,0<=y&&y<s.$h&&(h=H.ca(g?H.Cb(d.parentNode):H.nc(d.parentNode)));return h?(Oj(d,h,e,A),l):p}
function tj(a,b,d){a.style.RW=a.style.display;a.style.display="none";a=vj(a,b);for(b=0;b<a.CQ;b++){var e=d[a.i2+b];d[a.i2+b]=++e}}function aj(a,b){return"week"==a.d().getView()?w.b.getAttribute(b,X.EL)==n:p}u=X.prototype;
u.iZ=function(a){var b=a.e(),d=w.b,e=a.r(X.Bo),f=n,g=n;if(e!=X.zt){if(e==X.Cw)f=X.sqa;else if(e==X.qk||e==X.Qq)f=X.ZU,g=this.mX(a,X.m7),this.UB(a,X.m7,n);e=this.mX(a,f);this.UB(a,f,n);if(e!=n){if(f=M.g(b,f),f=d.getElementById(f)){var h=this.mX(a,X.DL),m=Si(a);this.UB(a,X.DL,n);m===h?(g&&(e=f.scrollHeight*e/g),f.scrollTop=e):Pj(b,d)}}else Pj(b,d)}};function Pj(a,b){var d=M.g(a,X.zOa),d=b.getElementById(d),e=M.g(a,X.ZU);(e=b.getElementById(e))&&d&&b.te(e,n,d.offsetTop)}
u.mX=function(a,b){var d=a.e(),e;(d=F.c.Ge(d))&&(e=d[b]);return e};u.UB=function(a,b,d){a=a.e();var e=F.c,f=e.Ge(a);f||(f={},e.Pf(a,f));f[b]=d};function bj(a,b,d){var e=w.b;a.Fk=b;a.PP=b.firstChild.firstChild;a.OB=d;a.eZ=a.PP.clientWidth;a.pca=b.parentNode.parentNode;a.mya=e.rc(a.pca);a.m_a=a.mya+a.pca.offsetWidth;a.tsa=e.rc(a.Fk);a.fRa=a.tsa+a.eZ}function uj(a,b,d){a.style.display=a.style.RW||"";a=vj(a,b);for(b=0;b<a.CQ;b++){var e=d[a.i2+b];d[a.i2+b]=--e}}
u.rB=function(a,b){var d=w.b.getAttribute(this.h(),b);return d?a.j(d).Qa():p};function jj(a,b,d){if(a=w.b.getAttribute(a.h(),d))a=b.j(a),d={},d[AdfRichPopup.Cf]=b.e(),a.show(d)}
u.tP=function(a){delete this.iN;var b=a.be;a=a.p2a;var d=F.c.j(b);a=w.b.getElementById(a);if(d&&a){this.bind(d);var e=this.rB(d,X.S5),f=this.rB(d,X.eoa),g=this.rB(d,X.doa);if(!e&&(!f&&!g)&&(ij(this,d,a,n,0,X.TL,X.Wna),e=M.Ib(d),e=w.b.getAttribute(e,X.T5)))d=d.j(e),e={},e[AdfRichPopup.Cf]=b,e.alignElement=a,e.autodismiss="autodismissMouseOut",e.autodismissMouseOut=a.id,d.show(e)}};function Ti(a){a.iN&&(F.c.ac(a.iN),delete a.iN)}
function ij(a,b,d,e,f,g,h){h!=X.Wna&&Yi(a);a=xj(d);O.ra(d);Jf.v(b,a.Sp,a.ip,e,f,g,h)}
function pj(a){var b=F.c,d=a.d();if("auto"==d.getSplitterPosition()){var e=d.e();a.EZ=b.j(a.FZ);var d=w.b,e=M.g(e,X.aA),f=d.getElementById(e);if(f){var g=d.getElementById(a.FZ),e=Math.floor(0.4*g.offsetHeight);if(a.SL==n){var h=g.parentNode;a.SL=parseFloat(h.style.top)/h.offsetTop}h=X.QMa;if(f=H.Tc(f)){var m=f.length,q=0,s=0;if(a.EZ.getCollapsed()==l){var y=H.ca(g);y.style.visibility="hidden";y.style.display=""}for(g=0;g<m;g++){var A=f[g];if("true"==d.getAttribute(A,X.mk)){var C=A.offsetTop;C>q&&
(q=C);0==s&&(s=A.offsetHeight)}}a.EZ.getCollapsed()==l&&(y.style.display="none",y.style.visibility="");h+=q+s}y=Math.min(e,h);d.G()==w.ed&&(y=Math.max(36,y));a.EZ.getSplitterPosition()!=y&&b.oa(a,a.J0a,y,0)}}}u.J0a=function(a){this.EZ.setProperty(AdfRichPanelSplitter.SPLITTER_POSITION,a,p,J.Ta)};u.Cr=function(a,b,d,e,f){if(b=w.b.getAttribute(b,e))Ti(this),this.ZJ(d.L(),b,a,f,n,a.e()),d.cancel()};function Vi(a,b,d,e,f){var g=Wi(a,b);ij(a,g,e,n,0,X.TL,X.Vna);var h=n;f&&(h=e);a.Cr(g,d,b,X.doa,h)}
function hj(a,b,d){var e=b.Q();if(b.Jb()&&e){var f=Wi(a,b),g=a.h(),h=Zi(g,e,X.nk);h?(Yi(a),a=w.b.getAttribute(h,X.nk),Kf.v(f,a,X.qk)):(h=Ui(g,e))&&g!=h?(ij(a,f,h,n,d,X.Una,X.Yna),jj(a,f,X.S5)):Xi(a,f,b,g,e,d,X.Una,X.Yna)&&jj(a,f,X.RJa)}}
function Xi(a,b,d,e,f,g,h,m){var q=wj(e,f),s;s=Ej(e,f,X.XT);s=s==n?n:s;var y=f.parentNode,A=w.b.Ub(y);s==n&&Zi(e,f,X.lra)!=n&&(f=w.b.Qb(d.L()),s=f.y,f=24*Bj(a),f=y.offsetHeight/f,s=Math.max(s-A.y,0)/f,s=Math.round(s-0.5));y==e&&(q=w.b.getAttribute(y,X.DL));if(q==n){f=w.b.Qb(d.L());d=y.offsetWidth/7;d=Math.max(f.x-A.x,0)/d;d=Math.round(d-0.5);6<d&&(d=6);y=y.childNodes;e=n;for(A=0;A<y.length;A++)if(f=y[A],1==f.nodeType&&(e=w.b.getAttribute(f,X.ow)),e&&A==d){q=e;break}}return q!=n&&q!=k?(d=y=n,s!=n&&
(d=Bj(a),y=Math.round(s/d-0.5),d=s%d*(60/d)),Yi(a),Lf.v(b,q,y,d,n,g,h,m),l):p}function gj(a,b){var d=w.b;return b?d.rc(a)+resizedActivity.clientWidth:d.rc(a)}function Qj(a,b,d,e){a=a.d().e()+"::"+b+"::"+d;e!=n&&(a=a+"::"+e);return a}
u.bXa=function(a){var b=this.Fk,d=b.offsetTop,e=this.PP,f=this.OB,g=this.eua,h=this.hP,m=w.b,q=this.Ww;if(q.scrollHeight>q.offsetHeight){var s=m.Qb(a),m=m.Ub(q),s=Math.max(s.y-m.y,0),m=s>q.offsetHeight-X.bA;if(s<X.bA||m)s=q.scrollTop+(m?this.hP:-this.hP),0<=s&&s<q.scrollHeight&&(q.scrollTop=s)}q=a.clientY;if(aj(this,b)){var y=F.c.Ma().Oa(),s=w.b,A=a.clientX;if(A>=this.mya&&A<=this.m_a)b.style.width=Math.max(this.eZ,y?this.fRa-A:A-this.tsa)+"px";else{var C=s.Uc(this.pca);a=xj(b);m=a.$ia;if(!y&&A<C.left||
y&&A>C.right){if(m!=n&&0<m.length&&(0<m?m--:m=n,a=Qj(this,a.Sp,a.ip,m),a=s.getElementById(a)))this.QA--,b.parentNode.removeChild(b),e=a.firstChild.firstChild,e.Iaa!=n?(bj(this,a,e.Iaa),this.NB=e.NB):(bj(this,a,h),this.NB=s.nd(a)+h,e.style.height=h+"px",f=h)}else if(!y&&A>C.right&&A<this.XVa||y&&A<C.left&&A>this.WVa){e.Iaa=this.OB;y=g.scrollHeight-d;e.lH=y;e.style.height=y+"px";e.NB=this.NB;y=b.cloneNode(l);m?m++:m=0;y.id=Qj(this,a.Sp,a.ip,m);e=y.style;e.zIndex=++this.vY;e.top=0;e.left=0;for(e=H.Cb(b.parentNode.parentNode);e!=
n;){if(s.getAttribute(e,"arc")!=n){e.firstChild.appendChild(y);break}e=H.Cb(e)}s.wa(y);e=y.firstChild.firstChild;bj(this,y,0);this.QA++;this.NB=this.YVa-this.Ww.scrollTop}}}q-=this.NB;q+=this.Ww.scrollTop-this.z0a;q=Math.ceil(q/h)*h;f+q>=h&&d+f+q<=g.offsetHeight?(b=f+q,e.style.height=b+"px",e.lH=b):d+f+q>g.offsetHeight&&(b=w.b.getAttribute(b,X.EL)!=n?f+q:g.offsetHeight-d-2,e.style.height=b+"px",e.lH=b)};
u.dWa=function(a){var b=this.Fk,d=this.VM,e=this.fua,f=this.cRa,g=this.eZa,h=this.Nba,m=this.F8,q=F.c.Ma().Oa(),s=0,y=a.clientX;q?(y<g?y=g:y>h&&(y=h),s=m-y):(y>g?y=g:y<h&&(y=h),s=y-m);this.d0a=y;b.style.width=s+"px";if(g=this.JX)if(a=a.clientY,a>g+this.nZa){if(g=H.Cb(d)){this.FN+=1;a=w.b;var h=b.cloneNode(l),s=xj(b),A=s.$ia;A||(A=0);52==A?A=1:A++;h.id=Qj(this,s.Sp,s.ip,A);a.Qr(b,h);s=h.style;s.zIndex=++this.vY;g.appendChild(h);a.wa(g);q?(d=m-this.VV+f,b.style.width=d+"px",s.right=".25%",m=gj(h,q),
s.width=m-y+"px"):(s.left=".25%",m=gj(h,q),s.width=y-m+"px",d=d.clientWidth-b.offsetLeft-f,b.style.width=d+"px");this.Nba=q?m-e+f:m+e-f;this.F8=m;this.VM=g;this.Fk=h;this.JX=a.nd(g)}}else a<g&&(a=w.b,s=xj(b),A=s.$ia,A!=n&&(A--,m=Qj(this,s.Sp,s.ip,A),g=a.getElementById(m),!g&&0==A&&(m=Qj(this,s.Sp,s.ip,n),g=a.getElementById(m),g||(m=Qj(this,s.Sp,s.ip,52),g=a.getElementById(m))),g&&H.hc(g)&&(this.FN-=1,m=gj(g,q),this.Nba=q?m-e+f:m+e-f,g.width=(q?m-y:y-m)+"px",d.removeChild(b),b=H.nc(d),this.F8=m,this.VM=
b,this.Fk=g,this.JX=a.nd(b))))};function $i(a){a=a.d().e();a=M.g(a,X.ZU);return w.b.getElementById(a)}
u.cXa=function(a){var b=w.b,d=this.Fk,e=0,f=0,g=this.PP,h=g.lH,f=(h-this.OB)/this.hP,m=Bj(this),e=0<f?Math.floor(f/m):Math.ceil(f/m),q=60/m,f=Math.round(f%m*q),h=h*this.SL;if(aj(this,d)&&!(0>this.QA))if(0==this.QA)d.style.width=this.eZ+"px";else{for(var e=e+24*(this.QA-1),s=d.parentNode.parentNode;0<this.QA;)s=H.nc(s),s!=n&&w.b.getAttribute(s,"arc")!=n&&this.QA--;if(s!=n)for(var y=xj(d),s=s.firstChild.firstChild;s!=n;){var A=xj(s);if(A.Sp==y.Sp&&A.ip==y.ip){y=(s.firstChild.firstChild.lH-s.firstChild.firstChild.Iaa)/
this.hP;e+=0<y?Math.floor(y/m):Math.ceil(y/m);f+=Math.round(y%m*q);break}s=H.Cb(s)}}g.style.height=h+"em";Rj(this);if(b.getAttribute(d,X.EL)!=n)var C=wj(this.h(),d);Sj(this,d,e,f,C);b.va(a)};
u.eWa=function(a){var b=w.b,d=this.Fk,e=0,f=F.c.Ma().Oa(),g=this.fua,e=Math.ceil((this.d0a-this.VV)/g),h=0;f?(h=this.Zca+g/2,g=Math.ceil((h-this.VV)/g),h=g-e):(h=this.Zca-g/2,g=Math.ceil((h-this.VV)/g),h=e-g);e=0;this.JX&&(e=this.FN);e=24*h+168*e;0==e&&(d.style.width=this.oza);H.F(d,X.L5);Rj(this);Sj(this,d,e,0);b.va(a)};function Sj(a,b,d,e,f){if(0!=d||0!=e)Yi(a),b=xj(b),If.v(a.d(),b.Sp,b.ip,d,e,f)}u.aXa=function(){this.PP.style.height=this.nza+"em";Rj(this)};
u.cWa=function(){var a=this.Fk;a.style.width=this.oza;H.F(a,X.L5);Rj(this)};function Rj(a){a.Fk=n;a.VM=n;w.b.Qe(a.h());B.p(a.KV);a.KV.style.cursor="";a.KV=n}function Yi(a){Ti(a);var b=w.b.getAttribute(a.h(),X.T5);b&&a.d().j(b).rb()}function xj(a){a=a.id.split("::");var b="",d="",e="",f=a.length;3<=f&&(b=a[1],d=a[2],3<f&&(e=a[3]));return{Sp:b,ip:d,$ia:e}}function Wi(a,b){var d=a.d(),e=b.getSource();return e.e()==a.FZ?d:e}
function Oj(a,b,d,e){B.p(a);B.p(b);O.ra(b);a.setAttribute("tabIndex",e?"0":"-1");b.setAttribute("tabIndex","0");d&&(d.cancel(),d.dc())}u.pj=r("Hwa");z.a("AdfDhtmlCalendarPeer.prototype.IsBusy",{pj:X.prototype.pj});X.prototype.gd=da("Hwa");z.a("AdfDhtmlCalendarPeer.prototype.SetBusy",{gd:X.prototype.gd});