var Hs=M.U(M,"AdfDhtmlPanelSplitterBasePeer",p);v("AdfDhtmlPanelSplitterBasePeer",Hs);
Hs.m=function(){M.hb(this,AdfRichPanelSplitter.SPLITTER_POSITION,AdfRichPanelSplitter.COLLAPSED);M.ha(this,I.ec);this.K5=parseInt(F.c.u().ka("af|panelSplitter-tr-divider-size"),10);this.wOa="0px";this.mpa=0;this.RMa="af|panelSplitter-tr-collapse-animation-duration";this.xJa="p_AFDisclosed";this.SHa="af_panelSplitter.TIP_COLLAPSE";this.ONa="af_panelSplitter.TIP_RESTORE";this.hna="af_panelSplitter.TIP_COLLAPSE_LABELED_PANE";this.kqa="af_panelSplitter.TIP_RESTORE_LABELED_PANE"};
v("AdfDhtmlPanelSplitterBasePeer.InitSubclass",Hs.m);Hs.prototype.Za=function(a,b){Hs.f.Za.call(this,a,b);var d=a.e(),e=M.g(d,"f"),f=M.g(d,"s"),g=M.g(d,"d"),h=M.g(d,"h"),d=M.g(d,"i"),m=w.b;this.vl=m.getElementById(e);this.cp=m.getElementById(f);this.xk=m.getElementById(g);this.IO=m.getElementById(h);this.pr=m.getElementById(d)};z.a("AdfDhtmlPanelSplitterBasePeer.prototype.BindToComponent",{Za:Hs.prototype.Za});Hs.prototype.ika=function(a){F.c.lh(a)};
z.a("AdfDhtmlPanelSplitterBasePeer.prototype.ComponentSplitterPositionChanged",{ika:Hs.prototype.ika});Hs.prototype.Pja=function(a,b,d){b=Hs.Rt(a);this.xk.style.cursor=d?"default":"";var e=Hs.Xq(a),f=b?this.cp:this.vl,g=H.ca(f),h=b?this.vl:this.cp,m=d?0:parseInt(a.getSplitterPosition(),10),q=parseInt(F.c.u().ka(Hs.RMa),10);isNaN(q)&&(q=0);this.So()?Is(this,d,a,b,e,f,g,h,m,q):Js(this,d,a,b,e,f,g,h,m,q)};z.a("AdfDhtmlPanelSplitterBasePeer.prototype.ComponentCollapsedChanged",{Pja:Hs.prototype.Pja});
Hs.prototype.ja=t(l);z.a("AdfDhtmlPanelSplitterBasePeer.prototype.needsResizeNotify",{ja:Hs.prototype.ja});Hs.prototype.Md=t(l);z.a("AdfDhtmlPanelSplitterBasePeer.prototype.needsChildVisibilityChanges",{Md:Hs.prototype.Md});
Hs.prototype.Ia=function(a,b,d,e){if(!this.w9){var f=this.d(),g=this.vl,h=this.cp,m=this.xk,q=Hs.Xq(f),s=this.So(),y=Hs.QX(g),A=Hs.QX(h),C=f.getCollapsed(),G=C?0:parseInt(f.getSplitterPosition(),10),f=Hs.Rt(f);if(!s&&q)C||(f?h!=n&&(h.style.width=G+"px"):g!=n&&(g.style.width=G+"px"));else if(!(y==p&&A==p)){a=a!=d;b=b!=e;var K=!(a||b);s?y!=A?(g=y?g:h,h=w.b,h.fj(g,d,e),h.jm(H.ca(g),Ks(g))):(f?(y=h,A=g):(y=g,A=h),(q?this.c0a:this.e0a).call(this,y,A,m,d,e,G,a,b,K,Hs.K5,f),d=H.ca(h),h=Ks(g),G=w.b,G.jm(H.ca(g),
h),G.jm(d,h)):(e=!f,m=n,e&&A&&(m=g),!e&&y&&(m=h),m!=n&&(e=m,m=w.b,m.fj(e,d,G),m.jm(H.ca(e),Ks(e))),y&&(A&&!C)&&(f?h.style.height=G+"px":g.style.height=G+"px"))}}};z.a("AdfDhtmlPanelSplitterBasePeer.prototype.ResizeNotify",{Ia:Hs.prototype.Ia});
Hs.prototype.Rb=function(a){var b=a.parentNode;if(b==this.vl||b==this.cp){var d=this.d(),e=Hs.Xq(d);if(!this.So()){if(e)return a;d=Hs.Rt(d);if(b==this.vl&&d||b==this.cp&&!d)return a}var d=p,e=H.hc(b),f=H.hc(a);f!=e&&(b!=Ls(this)&&H.setVisible(b,f),this.gn(),d=l);b=Ks(b);e=w.b;e.Nn(a,b);return!d?(e.jm(a,b),a):this.h()}return a};z.a("AdfDhtmlPanelSplitterBasePeer.prototype.DomReplaceNotify",{Rb:Hs.prototype.Rb});
Hs.prototype.Ed=function(a,b,d){a=b.parentNode;if(a==this.vl||a==this.cp)return a!=Ls(this)&&H.setVisible(a,d),H.setVisible(b,d),this.gn(),F.c.lh(this.d()),l};z.a("AdfDhtmlPanelSplitterBasePeer.prototype.ChildVisibilityChanged",{Ed:Hs.prototype.Ed});Hs.prototype.AV=function(a){var b=a.Q();if(H.sb(this.pr,b)){var b=this.d(),d=b.getCollapsed();b.setProperty(AdfRichPanelSplitter.COLLAPSED,!d,l);w.b.va(a.L());return l}return p};z.a("AdfDhtmlPanelSplitterBasePeer.prototype.__handleCollapseRestore",{AV:Hs.prototype.AV});
Hs.prototype.$ra=r("f$");z.a("AdfDhtmlPanelSplitterBasePeer.prototype.__isDragging",{$ra:Hs.prototype.$ra});Hs.prototype.HV=function(a){H.setVisible(this.pr,p);a=a.L();this.f$=l;F.c.Nd(a,this.o(this.Tva),this.o(this.Wva),k,l)};z.a("AdfDhtmlPanelSplitterBasePeer.prototype.__startDrag",{HV:Hs.prototype.HV});Hs.prototype.OF=function(a,b){var d=a.Q();return H.sb(this.xk,d)&&(b||!H.sb(this.pr,d))};z.a("AdfDhtmlPanelSplitterBasePeer.prototype.__isEventInDivider",{OF:Hs.prototype.OF});
Hs.prototype.QF=function(a){H.setVisible(this.IO,a)};z.a("AdfDhtmlPanelSplitterBasePeer.prototype.__setHighlighterVisibility",{QF:Hs.prototype.QF});
Hs.prototype.ba=function(a){if(!a.na()){var b=this.d(),d=a.Q(),e=a.ia();if(e==E.Ula){var f=a.L();if(f.ctrlKey&&f.altKey){var f=a.Q(),g=M.Lf(f);g&&g instanceof AdfRichPanelSplitter?(g=g.k(),H.sb(g.pr,f)?(g=g.cp,f=p):(g=document.body,f=l)):(g=document.body,f=l);g=Ms(g);!g&&!f&&(g=Ms(document.body));g&&(g.focus(),a.cancel());a.cancel()}}if(!b.getCollapsed()&&H.sb(this.pr,d)){d=parseInt(b.getSplitterPosition(),10);f=Hs.Xq(b);g=0;if(e==E.Ya&&!f||e==E.Kb&&f)g=-5;else if(e==E.Ja&&!f||e==E.Lb&&f)g=5;if(0!=
g){Hs.Rt(b)&&(g=-g);var e=this.So(),h=Hs.Rt(b),e=Ns(this,f,d+g,!e&&!f&&!h);b.setProperty(AdfRichPanelSplitter.SPLITTER_POSITION,e,l);a.cancel()}}}};z.a("AdfDhtmlPanelSplitterBasePeer.prototype.HandleComponentKeyDown",{ba:Hs.prototype.ba});function Js(a,b,d,e,f,g,h,m,q,s){var y;y=f?"width":"height";fixedPaneSize=b?0:q;H.setVisible(g,l);q={element:g,ib:{}};q.ib[y]=fixedPaneSize;a.w9=Qg(3,s,[q],n,function(){Os(a,b,f,d,e,g,h,m,n,p)},[],d)}
function Is(a,b,d,e,f,g,h,m,q,s){var y,A=h==n?n:h.style,C=H.ca(m),G=C==n?n:C.style,K=Hs.K5,N,Q,T,Y=a.h(),ra=f?Y.clientWidth:Y.clientHeight,wa=a.xk,Ca=m.style;b?(N=0,T=ra-K+1):(N=q+1,T=ra-q-K+1);f?(y="width",Q="right"):(y="height",Q="bottom");ra=e?ra-q-K:q;b?f?(A!=n&&(A.width=Ps(h)+"px"),G!=n&&(G.width=Y.clientWidth-K+1+"px"),Ca.width=Ps(m)+"px"):(A!=n&&(A.height=a.EG(h)+"px"),G!=n&&(G.height=Y.clientHeight-K+1+"px"),Ca.height=a.EG(m)+"px"):f?(A!=n&&(A.width=q+1+"px"),G!=n&&(G.width=Ps(C)+"px"),Ca.width=
Y.clientWidth-K+1+"px"):(A!=n&&(A.height=q+1+"px"),G!=n&&(G.height=a.EG(C)+"px"),Ca.height=Y.clientHeight-K+1+"px");A!=n&&(A[Q]="");G!=n&&(G[Q]="");Ca[Q]="";e&&(q=wa.style,f?(q.left=wa.offsetLeft+"px",q.right=""):(q.top=wa.offsetTop+"px",q.bottom=""));H.setVisible(g,l);q=[];A={element:g,ib:{}};A.ib[y]=N;q.push(A);A={element:m,ib:{}};A.ib[y]=T;e||(A.ib[f?"offsetLeft":"offsetTop"]=ra+K-1);q.push(A);A={element:wa,ib:{}};A.ib[f?"offsetLeft":"offsetTop"]=ra;q.push(A);a.w9=Qg(3,s,q,n,function(){Os(a,b,
f,d,e,g,h,m,C,l)},[],n)}
function Os(a,b,d,e,f,g,h,m,q,s){delete a.w9;H.setVisible(g,!b);g=w.b;(s||!d)&&h!=n&&g.Nn(h,"0px");s&&q!=n&&g.Nn(q,"0px");s&&!f&&(m.style[d?"right":"bottom"]="0px");H.setVisible(a.IO,p);var y;q=a.d();y=Hs.Xq(q)?f?b?"af|panelSplitter::horizontal-collapse-icon":"af|panelSplitter::horizontal-restore-icon":b?"af|panelSplitter::horizontal-restore-icon":"af|panelSplitter::horizontal-collapse-icon":f?b?"af|panelSplitter::vertical-collapse-icon":"af|panelSplitter::vertical-restore-icon":b?"af|panelSplitter::vertical-restore-icon":
"af|panelSplitter::vertical-collapse-icon";H.td(!b,a.xk,Hs.xJa);h=a.pr;H.Av(H.ca(h),y);y=H.ca(h);q=Hs.pVa(q,b,f);h.title=q;h.setAttribute("aria-label",q);h.setAttribute("aria-expanded",(!b).toString());"IMG"==y.tagName&&(y.alt=q);y.title=q;s&&(m.style[d?"width":"height"]="");s&&f&&(a.xk.style[d?"left":"top"]="");!s&&d&&g.G()==w.aa&&(b=g.nb(),7<b&&9>b&&(b=a.h(),b.style.display="none",F.c.oa(a,a.ERa,[b],1)));F.c.lh(e)}u=Hs.prototype;u.ERa=function(a){a[0].style.display="";this.pr.focus()};
u.EG=function(a){var b=w.b.getComputedStyle(a);return a.offsetHeight-w.ua(b.borderTopWidth)-w.ua(b.borderBottomWidth)-w.ua(b.paddingTop)-w.ua(b.paddingBottom)};function Ps(a){var b=w.b.getComputedStyle(a);return a.offsetWidth-w.ua(b.borderLeftWidth)-w.ua(b.borderRightWidth)-w.ua(b.paddingLeft)-w.ua(b.paddingRight)}
function Ms(a){for(var b=H.hc,d=w.b.YC,e=M.Lf,f=/::i$/;;){if(a.hasChildNodes()&&b(a))a=a.firstChild;else for(;;){var g=a;a=g.nextSibling;if(a==n){if(a=g.parentNode,a==n)return n}else break}var h,m;if(1==a.nodeType&&d(a)&&b(a)&&"A"==a.nodeName&&a.id&&f.test(a.id)&&(h=e(a))&&h instanceof AdfRichPanelSplitter&&(m=h.k())&&m.pr==a)return m.pr}}function Ns(a,b,d,e){a=a.h();b=(b?a.clientWidth:a.clientHeight)-Hs.K5-Hs.mpa;d=Math.max(d,Hs.mpa);e||(d=Math.min(d,b));return d}
function Ks(a){a=a.style.paddingTop;""==a&&(a="0px");return a}u.FO=function(a,b){this.Tva(0,a,b);this.Wva()};
u.Tva=function(a,b,d){var e,f=this.d(),g=Hs.Rt(f);a=Hs.Xq(f);var h=n;if(a){if(0==b)return;d=b;b=g?"right":"left"}else{if(0==d)return;b=g?"bottom":"top"}var m=this.So();if(m)h=this.xk.style;else if(this.lr==n){var h=w.b,q=this.IO.cloneNode(l);e=q.ownerDocument.createElement("div");e.className=this.xk.className;var s=this.xk.offsetHeight,y=e.style;y.position="absolute";y.height=s+"px";a?y.width=this.xk.style.width:(y.left="0px",y.right="0px");e.appendChild(q);h.vd(e);this.IO.style.visibility="hidden";
h.bi(e);h=e.style;!a&&g?(b="top",h[b]=this.vl.offsetHeight+"px"):(q=f.getCollapsed()?0:parseInt(f.getSplitterPosition(),10),h[b]=q+"px");q=this.h();q.insertBefore(e,q.firstChild);this.lr=e}else!a&&g&&(b="top"),H.setVisible(this.lr,l),h=this.lr.style;e=parseInt(h[b],10);!m&&!a&&g?(g=e+d,f=(f.getCollapsed()?0:parseInt(f.getSplitterPosition(),10))+this.vl.offsetHeight,a=Ns(this,a,f-g,p),h[b]=f-a+"px"):(a=Ns(this,a,g?e-d:e+d,!m&&!a&&!g),h[b]=a+"px")};
u.Wva=function(){this.f$=p;H.setVisible(this.pr,l);var a,b=this.d(),d=Hs.Rt(b),e=Hs.Xq(b),f=this.So();a=e?d?"right":"left":d?"bottom":"top";var g;if(f)g=this.xk.style;else if(this.lr!=n)g=this.lr.style,H.setVisible(this.lr,p);else return;!f&&!e&&d?(a=parseInt(g.top,10),a=(b.getCollapsed()?0:parseInt(b.getSplitterPosition(),10))+this.vl.offsetHeight-a):a=parseInt(g[a],10);this.lr!=n&&(this.IO.style.visibility="visible",this.lr.parentNode.removeChild(this.lr),this.lr=n);b.setProperty(AdfRichPanelSplitter.SPLITTER_POSITION,
a,l)};u.gn=function(){var a=w.b,b=this.vl,d=this.cp,e=this.xk,f=Hs.QX(b),g=Hs.QX(d);H.setVisible(e,f&&g);this.So()&&(f!=g?(e=Hs.wOa,a.pv(f?b:d,e,e,e,e)):(e=this.d(),f=Hs.Rt(e),e=Hs.Xq(e),a.ov(f?d:b,e?f?"left":"right":f?"top":"bottom")))};u.c0a=function(a,b,d,e,f,g,h,m,q,s,y){var A=w.b;q&&(A.ys(a,g+1),y=y?"right":"left",d.style[y]=g+"px",b.style[y]=g+s-1+"px");if(q||h)e=Math.max(0,e-g-s),A.fj(b,e);m&&(A.fj(a,k,f),A.fj(b,k,f),A.fj(d,k,f))};
u.e0a=function(a,b,d,e,f,g,h,m,q,s,y){var A=w.b;q&&(A.Hg(a,g+1),y=y?"bottom":"top",d.style[y]=g+"px",b.style[y]=g+s-1+"px");if(q||m)f=Math.max(0,f-g-s),A.fj(b,k,f);h&&(A.fj(a,e,k),A.fj(b,e,k),A.fj(d,e,k))};function Ls(a){var b=a.d();return b.getCollapsed()?Hs.Rt(b)?a.cp:a.vl:n}u.Z=function(a){this.Gr&&this.Gr.fq();Hs.f.Z.call(this,a)};z.a("AdfDhtmlPanelSplitterBasePeer.prototype.ComponentRemoved",{Z:Hs.prototype.Z});
Hs.prototype.So=function(){if(this.LN==n){var a=n;this.xk!=n?a=w.b.getComputedStyle(this.xk):a==n&&this.vl!=n?a=w.b.getComputedStyle(this.vl):a==n&&this.cp!=n&&(a=w.b.getComputedStyle(this.cp));this.LN="absolute"==a.position}return this.LN};Hs.QX=function(a){if(a==n)return p;a=H.ca(a);return a==n||H.hc(a)};Hs.Xq=function(a){return a.getOrientation()!=AdfRichPanelSplitter.Cma};Hs.Rt=function(a){var b=a.getPositionedFromEnd();Hs.Xq(a)&&F.c.Ma().Oa()&&(b=!b);return b};
Hs.pVa=function(a,b,d){var e=F.c.u(),f=a.getFirstLandmark();a=a.getSecondLandmark();if(!d&&"none"!=f)return b=b?Hs.kqa:Hs.hna,e.V(b,f);if(d&&"none"!=a)return b=b?Hs.kqa:Hs.hna,e.V(b,a);b=b?Hs.ONa:Hs.SHa;return e.V(b)};