function vg(){this.Init()}v("AdfDhtmlPopupWindow",vg);v("AdfDhtmlPopupWindow",vg);z.l(vg,pg);vg.V7="data-afr-iscanceled";vg.DM="data-afr-isreplacedom";vg.rV="data-afr-popupid";vg.jQa="popup-container";vg.da=function(){this.tqa="data-afr-sclptn";this.Nma="data-afr-taw"};v("AdfDhtmlPopupWindow.InitClass",vg.da);vg.prototype.Init=function(){vg.f.Init.call(this,Hg.XD);var a=this.Rf();this.I1(a);a.style.display="none";Gg.yha(a);this.iYa=w.b.cd()[w.Vc]!=w.Wc};z.a("AdfDhtmlPopupWindow.prototype.Init",{Init:vg.prototype.Init});
vg.prototype.Rf=function(){B.$()};z.a("AdfDhtmlPopupWindow.prototype.CreateDomElement",{Rf:vg.prototype.Rf});vg.prototype.rj=function(){return!this.iYa};z.a("AdfDhtmlPopupWindow.prototype.ShouldHideOnClip",{rj:vg.prototype.rj});vg.prototype.GE=function(){var a=F.c.R();return Boolean(a.gj&&w.b instanceof ee)};z.a("AdfDhtmlPopupWindow.prototype.NeedsCloseLink",{GE:vg.prototype.GE});
vg.prototype.show=function(a){B.zc(a,"Cannot show a popup element without hints");F.c.hd(p,p,l,"popup show called");var b=a.componentId;this.yj=b;this.VJ(a.alignElement);var d=a[AdfRichPopup.fd],e=a.restoreImmediate;this.XX=l;var f=a.openedHandler,g=a.openedHandlerParam;f&&this.h_(f,g);g=a.mousePosition;a.autodismiss===l&&(a.autodismiss="autodismissAlways");f=a.closeOnEscape;f==n&&(f=l);this.QSa=f;this.uba=a[AdfRichPopup.Cf];if(f=a.maxWidth)B.df(f,"AdfDhtmlPopupHints.MAX_WIDTH"),this.eP=f;var f=F.c,
h=f.j(b);this.La().id=M.g(b,vg.jQa);B.assert(h!=n,"Cannot show a popup element without a valid component");var m=a.focus;m==n&&(m=l);var q=F.c.R();m==p&&(q.gj&&w.b instanceof ee)&&(m=l);e&&(m=p);if(m&&(q=f.Qc)){var s=q.id;s||(s=q.id=(new Date).getTime());this.cda=s}this.pL(m);if(m=a.content){this.eP&&(m.style.maxWidth=this.eP+"px");if(!this.Lz()){var q=f.Mf(),s=this.La(),y=this.cT();switch(this.o2a=a.zorderScope){case 1:var A=vg.xVa(m);q.jp(s,y,n,A);break;case 2:q.jp(s,y);break;default:A=this.bT(),
q.jp(s,y,n,A)}}m=a.content=this.N4(a,m);this.Zp(m)}this.Rn(a);q=a.animate;if(f.Ac()&&q!=AdfRichPopup.lK&&(s=this.yh(a)))if(y=parseInt(f.u().ka(s)),0<y&&(s=this.lj(),(s?f.u().ka(s):n)!=AdfRichPopup.lK||q==AdfRichPopup.A2))this.T8=y;this.mia(a.closeHandler);this.nia(a.closeHandlerParam);this.La().style.visibility="hidden";d?this.uT(d):g&&(this.zr=F.c.bm().Aea(this,g));this.ao(a);f.Kk().addBehavior(h,a);d=vg.F9(b);if(e){if(this.PH=0,this.Rza(a),a=f.Ge(d))(a=w.b.getElementById(a))&&(H.oc(m,a)&&O.Lp(a))&&
O.ra(a)}else this.PH=f.oa(this,this.o(this.Rza),a,1,{isSynchronized:l});f.Pf(d,n);b&&this.La().setAttribute(vg.rV,b)};z.a("AdfDhtmlPopupWindow.prototype.show",{show:vg.prototype.show});vg.xVa=function(a){B.ub(a);for(var b,d=a.ownerDocument,e=w.b;a&&a!=d;){if("FORM"==e.Ga(a)){b=a.getAttribute("id");break}a=a.parentNode}return b};vg.prototype.iJ=r("yj");z.a("AdfDhtmlPopupWindow.prototype.getPopupClientId",{iJ:vg.prototype.iJ});
vg.prototype.rT=function(a){if(this.XX){delete this.XX;this.yu(a);this.Nca(a);var b=this.hca,d=this.gca;delete this.hca;delete this.gca;if(a){a=this.Uh();if(!b){this.Ov();F.c.hd(p,p,l,"popup opened no handler present: id\x3d"+this.yj);return}this.PE(a);this.Ov()}if(b){for(a=0;a<b.length;a++)try{(0,b[a])(d[a])}catch(e){D.i.ee(e,"popup opened handler failed.")}F.c.hd(p,p,l,"popup opened handler present")}else F.c.hd(p,p,l,"popup opened no handler present: id\x3d"+this.yj)}};
z.a("AdfDhtmlPopupWindow.prototype.OpenedPopup",{rT:vg.prototype.rT});vg.prototype.N4=function(a,b){var d=F.c.w().createElement("table");this.Vca=d.id=M.g(this.yj,""+(new Date).getTime());w.b.wa(d);d.cellPadding=d.cellSpacing=0;d.insertRow(0).insertCell(0).appendChild(b);d.style.position="relative";d.s$a="presentation";return d};z.a("AdfDhtmlPopupWindow.prototype.WrapContent",{N4:vg.prototype.N4});u=vg.prototype;
u.Nca=function(a){var b=F.c.w(),d=w.b,e=this.Uh();if(!a||!a.componentEventsEnabled)a=this.axa=this.o(this.DWa),d.S(b,"keyup",a),b=this.vB=this.o(this.AO),d.S(e,"keydown",b);e=this.kza=this.o(this.Wt);d.EQ(this.Vca,e)};u.Wt=function(){this.Lr();var a=this.Uh();this.pz(a);this.zr!=n&&F.c.bm().fK(this.zr)};u.a_=function(){var a=F.c.w(),b=w.b,d=this.Uh(),e=this.axa;e&&(b.sa(a,"keyup",e),delete this.axa);if(a=this.vB)b.sa(d,"keydown",a),delete this.vB;this.kza&&(b.n1(this.Vca),delete this.Vca,delete this.kza)};
u.Sda=function(){delete this.Ho};u.rb=function(){if(!this.XG){this.XG=l;if(this.Ho){this.Sda();var a=this.La().parentNode;"true"==a.getAttribute(vg.Nma)&&vg.hZ(a)}var a=F.c,b=this.Uh();this.jv();this.Xz(b);var b=a.j(this.yj),d=vg.AVa(this,b);a.Kk().removeBehavior(b,d);if(!Sg(b)&&(a.Qc==n||O.Vl(this.La()))&&!O.P0())try{this.QP()}catch(e){D.i.ee(e,"restoring popup focus")}if(b=this.wW)delete this.wW,b(this.eG),delete this.eG;this.ud();delete this.XG;a.hd(p,p,l,"popup hidden")}};
z.a("AdfDhtmlPopupWindow.prototype.hide",{rb:vg.prototype.rb});vg.AVa=function(a,b){if(b){var d=b.k();if(d&&(d=d.Eu(b)))for(popupId in d)if(d[popupId]===a)return popupId}return n};function Sg(a){var b=p;a instanceof AdfRichPopup&&a.getAutoCancel()==AdfRichPopup.yja&&(a=vg.F9(a.e()),b=page.Ge(a)?l:p);return b}vg.prototype.cancel=function(a){var b=this.eG.contentDom;b.setAttribute(vg.V7,l);b.setAttribute(vg.DM,a?l:p);if(a&&O.Vl(this.La())){a=this.iJ();a=vg.F9(a);var b=F.c,d=b.Qc;d&&d.id&&b.Pf(a,d.id)}vg.f.cancel.call(this)};
z.a("AdfDhtmlPopupWindow.prototype.cancel",{cancel:vg.prototype.cancel});vg.F9=function(a){B.s(a);return a.split(":").join("$")+"$restoreFocus"};
vg.prototype.QP=function(){var a=w.b,b=F.c,d={},e,f=this.La();if(a.G()==w.aa&&!(this instanceof wg)){var g=b.R().event;g&&(g=a.T(g))&&(O.Lp(g)&&!H.sb(f,g))&&(e=g)}e||(e=this.Xr());if(this.cda&&(!e||!O.Lp(e,d)))e=a.w().getElementById(this.cda);if(!e||!O.Lp(e,d))e=this.hE();e?a.G()==w.aa?(a={},a.focusElement=e,a.popupElement=f,b.oa(this,this.ATa,a,10,{isSynchronized:l})):O.Lp(e,d)?O.ra(e):O.Ud(e):O.ufa()};vg.prototype.ATa=function(a){!O.Lp(F.c.Qc)&&!H.sb(a.popupElement,a.focusElement)&&O.ra(a.focusElement)};
vg.prototype.hE=function(){var a=this.uba;return a?w.b.getElementById(a):n};z.a("AdfDhtmlPopupWindow.prototype.GetLaunchSourceElement",{hE:vg.prototype.hE});vg.prototype.Zp=function(a){var b=this.zh();b.firstChild&&b.removeChild(b.firstChild);b.appendChild(a)};z.a("AdfDhtmlPopupWindow.prototype.setContent",{Zp:vg.prototype.Zp});vg.prototype.Rn=ca();z.a("AdfDhtmlPopupWindow.prototype.setAccessibleAttrs",{Rn:vg.prototype.Rn});vg.prototype.jv=ca();
z.a("AdfDhtmlPopupWindow.prototype.removeAccessibleAttrs",{jv:vg.prototype.jv});vg.prototype.yu=ca();z.a("AdfDhtmlPopupWindow.prototype.announceOpeningViaLiveRegion",{yu:vg.prototype.yu});vg.prototype.Uh=function(){return this.zh().firstChild};z.a("AdfDhtmlPopupWindow.prototype.getContent",{Uh:vg.prototype.Uh});vg.prototype.zh=function(){B.$()};z.a("AdfDhtmlPopupWindow.prototype.GetContentParent",{zh:vg.prototype.zh});vg.prototype.mia=da("wW");z.a("AdfDhtmlPopupWindow.prototype.setCloseHandler",{mia:vg.prototype.mia});
vg.prototype.nia=da("eG");z.a("AdfDhtmlPopupWindow.prototype.setCloseHandlerParam",{nia:vg.prototype.nia});vg.prototype.hc=function(){return"none"!=this.La().style.display};z.a("AdfDhtmlPopupWindow.prototype.isVisible",{hc:vg.prototype.hc});vg.prototype.ao=function(){vg.f.show.call(this);this.bk()};z.a("AdfDhtmlPopupWindow.prototype.DoShow",{ao:vg.prototype.ao});vg.prototype.Kv=function(a){this.vE()&&(!this.T8||a)&&qg.NQ(this.kf(),this.La().parentNode)};
z.a("AdfDhtmlPopupWindow.prototype.CreateShadow",{Kv:vg.prototype.Kv});vg.prototype.vE=t(l);z.a("AdfDhtmlPopupWindow.prototype.HasShadow",{vE:vg.prototype.vE});vg.prototype.YJ=t(l);z.a("AdfDhtmlPopupWindow.prototype.shouldInvertPosition",{YJ:vg.prototype.YJ});vg.prototype.ud=function(){var a=w.b,b=F.c;this.a_();a.gc(this.La());this.$8a=n;this.PH!=n&&(b.ac(this.PH),delete this.PH);a=this.kf();qg.yi(a)&&qg.WR(a);this.zr!=n&&b.bm().Ci(this.zr);this.VJ(n);vg.f.ud.call(this)};
z.a("AdfDhtmlPopupWindow.prototype.destroy",{ud:vg.prototype.ud});vg.prototype.Ip=function(){return this.Ho||this.XX};z.a("AdfDhtmlPopupWindow.prototype.isAnimating",{Ip:vg.prototype.Ip});vg.prototype.LK=r("zr");z.a("AdfDhtmlPopupWindow.prototype.GetPositionManagerIndex",{LK:vg.prototype.LK});vg.prototype.AO=function(a){var b=w.b,d=b.T(a);if(a.keyCode==E.Df){var e=this.Uh(),f=O.Re(e),g=O.WI(e);a.shiftKey?d==f&&(O.Qh(d,e),b.va(a)):g==d&&(O.Ud(d,e),b.va(a))}a.keyCode==E.WS&&H.sb(this.La(),d)&&this.Iz(a)};
vg.prototype.DWa=function(a){var b=w.b,d=b.ia(a),e=b.T(a);if(d==E.xh&&this.QSa){var f=p,g=this.uba;H.sb(this.La(),e)?f=l:g&&(b=b.getElementById(g))&&H.sb(b,e)&&(f=l);f&&this.Gz(a)}a.ctrlKey&&a.altKey&&d==E.dF&&H.sb(this.La(),e)&&this.Iz(a)};vg.prototype.Gz=function(a){this.cancel();w.b.va(a)};z.a("AdfDhtmlPopupWindow.prototype.HandleEscapeKey",{Gz:vg.prototype.Gz});vg.prototype.Iz=ca();z.a("AdfDhtmlPopupWindow.prototype.HandleKeyNavigation",{Iz:vg.prototype.Iz});
vg.prototype.Rza=function(a){if(this.PH!=n){delete this.PH;var b=this.Uh();this.pz(b);var d=this.La(),b=d.style,e=this.eP;e?b.width=Math.min(d.offsetWidth,e)+"px":(e=w.b,e.G()==w.aa&&8<e.nb()?b.width=d.offsetWidth+1+"px":b.width=d.offsetWidth+"px");this.zr!=n&&F.c.bm().fK(this.zr);d=this.T8;0<d?this.F2(d,a):(b.visibility="",this.Kv(),this.rT(a))}};vg.prototype.F2=function(a,b){this.Ho=l;var d=p,e=p,f=this.LK();if(0<=f&&(f=F.c.bm().aR(f)))d=f.VC.Du==Lg.Cq,e=f.BD.Du==Lg.jq;this.dz(a,d,e,b)};
z.a("AdfDhtmlPopupWindow.prototype.AnimateOpening",{F2:vg.prototype.F2});
vg.prototype.dz=function(a,b,d,e){var f=this.La(),g=f.ownerDocument.createElement("div");g.setAttribute(vg.Nma,l);var h=g.style,m=f.style,q=f.offsetHeight,s=f.offsetWidth,y=parseInt(m.left),A=parseInt(m.top);h.left=b?y+s-1+"px":m.left;h.top=d?A+q+1+"px":m.top;h.overflow="hidden";h.position="absolute";h.height="1px";h.width="1px";m.left=m.top="0px";h.zIndex=m.zIndex;this.Xz(f);f.parentNode.replaceChild(g,f);g.appendChild(f);m.visibility="";h={height:q,width:s};d&&(h.top=A);b&&(h.left=y);F.c.Py(f);
Qg(0,a,[{element:g,properties:h}],n,vg.G2,{wrapper:g,myself:this,hints:e})};z.a("AdfDhtmlPopupWindow.prototype.AnimateUsingWrapper",{dz:vg.prototype.dz});vg.hZ=function(a){var b=a.style,d=a.firstChild,e=d.style;e.right=b.right;e.left=b.left;e.top=b.top;a.parentNode.replaceChild(d,a)};vg.G2=function(a){var b=a.wrapper,d=a.myself;a=a.hints;d.Ho&&(delete d.Ye,vg.hZ(b),d.Kv(l),d.rT(a),w.b.G()==w.aa?F.c.oa(d,d.o(d.Sda),n,1,{isSynchronized:l}):d.Sda())};v("AdfDhtmlPopupWindow.AnimationComplete",vg.G2);
vg.prototype.eo=r("T8");z.a("AdfDhtmlPopupWindow.prototype.GetAnimationDuration",{eo:vg.prototype.eo});vg.prototype.yh=t(n);z.a("AdfDhtmlPopupWindow.prototype.GetAnimationDurationSkinProperty",{yh:vg.prototype.yh});vg.prototype.lj=t(n);z.a("AdfDhtmlPopupWindow.prototype.GetAnimateSkinProperty",{lj:vg.prototype.lj});
vg.prototype.Lr=function(){var a=this.XX;if(this.hc()&&!a){var a=this.La(),b=a.style;b.width="auto";var d=this.eP;b.width=d?Math.min(a.offsetWidth,d)+"px":a.offsetWidth+"px";a=this.kf();qg.yi(a)&&(qg.ms(a),qg.wv(a,l))}};z.a("AdfDhtmlPopupWindow.prototype.autoSize",{Lr:vg.prototype.Lr});vg.prototype.Ov=function(a){var b=this.dT();if(a||b){b=this.Gi();a=O.Re(b);if(!a){var d=this.La();d!=b&&(a=O.Re(d));a||(b.tabIndex=0,a=b)}a&&(b=w.b,w.aa==b.G()&&8==b.nb()?O.EC(a,1E3):O.ra(a))}};
z.a("AdfDhtmlPopupWindow.prototype.FocusOnFirstElement",{Ov:vg.prototype.Ov});vg.prototype.Gi=function(){return this.La()};z.a("AdfDhtmlPopupWindow.prototype.GetFocusContent",{Gi:vg.prototype.Gi});vg.prototype.uT=function(a){var b=F.c.bm(),d=this.zr;d&&(b.Ci(d),delete this.zr);this.zr=b.zea(this,a)};z.a("AdfDhtmlPopupWindow.prototype.Position",{uT:vg.prototype.uT});vg.prototype.pz=function(a){F.c.Xl(a,p)};z.a("AdfDhtmlPopupWindow.prototype.DoResizeNotifyDom",{pz:vg.prototype.pz});
vg.prototype.Xz=function(a){a=a.getElementsByTagName("*");for(var b=a.length,d=0;d<b;d++){var e=a[d],f=e.scrollTop;0<f&&e.setAttribute(vg.tqa,f)}};z.a("AdfDhtmlPopupWindow.prototype.SaveScrollValues",{Xz:vg.prototype.Xz});vg.prototype.PE=function(a){a=a.getElementsByTagName("*");for(var b=a.length,d=0;d<b;d++){var e=a[d],f=e.getAttribute(vg.tqa);f&&0<f&&H.setScrollTop(e,f)}};z.a("AdfDhtmlPopupWindow.prototype.RestoreScrollValues",{PE:vg.prototype.PE});vg.prototype.XI=r("uba");
z.a("AdfDhtmlPopupWindow.prototype.getLaunchSourceId",{XI:vg.prototype.XI});vg.prototype.dT=function(){return this.aVa?l:p};z.a("AdfDhtmlPopupWindow.prototype.GetFocusOnOpen",{dT:vg.prototype.dT});vg.prototype.pL=da("aVa");z.a("AdfDhtmlPopupWindow.prototype.SetFocusOnOpen",{pL:vg.prototype.pL});vg.prototype.B3=r("eP");z.a("AdfDhtmlPopupWindow.prototype.GetMaxWidth",{B3:vg.prototype.B3});
vg.sb=function(a,b){for(var d=w.b;b;){if(a==b)return l;1==b.nodeType&&b.hasAttribute(vg.rV)?(popupId=b.getAttribute(vg.rV),b=d.getElementById(popupId)):b=b.parentNode}return p};v("AdfDhtmlPopupWindow.isAncestorOrSelf",vg.sb);vg.prototype.Lz=t(p);z.a("AdfDhtmlPopupWindow.prototype.ImmediateZorderRegistration",{Lz:vg.prototype.Lz});vg.prototype.w0=r("o2a");z.a("AdfDhtmlPopupWindow.prototype.getZorderScope",{w0:vg.prototype.w0});vg.prototype.Fia=da("cda");
z.a("AdfDhtmlPopupWindow.prototype.setRestoreFocusId",{Fia:vg.prototype.Fia});vg.prototype.h_=function(a,b){B.Da(a,"popup opened handler");B.ih(b,"popup opened handler function params");var d=this.hca;d||(d=this.hca=[]);var e=this.gca;e||(e=this.gca=[]);d.push(a);e.push(b)};z.a("AdfDhtmlPopupWindow.prototype.addOpenedHandler",{h_:vg.prototype.h_});