var V=M.U(M,"AdfDhtmlTableBasePeer",p);v("AdfDhtmlTableBasePeer",V);
V.m=function(){M.g_(this,"scroll","keydown","mousemove");M.ha(this,I.jb,I.Xc,I.Xf,I.ec,I.qd,ia.tc,ia.Dd,I.kz,ia.Zk,ic.Iq);M.hb(this,"selectedRowKeys","disclosedRowKeys","scrollTop","scrollLeft","activeRowKey");M.ui(this,"first");M.ui(this,"rows");M.ui(this,"scrollTop");M.ui(this,"scrollLeft");M.ui(this,"scrollTopRowKey");M.ui(this,"activeRowKey");this.dV=0;this.Lm=1;this.Pq=2;this.vFa=0;this.tFa=1;this.Aja=2;this.uFa=3;this.sFa=-99;this.cma=0;this.V5a=1;this.oGa=2;this.yq=1;this.Qz=2;this.oT=4;this.lk=
0;this.eGa=-1;this.Lv="dataW";this.h5="_afrCTK";this.Ba="_afrRK";this.Km="_afrRH";this.B6="_afrLeaf";this.pM="_afrRoot";this.XL="_afrFilterCol";this.W6="_afrPCId";this.sM="_afrSelAll";this.ina="_afrColCount";this.YJa="_afrFilterable";this.At="afrSI";this.Pqa="_afrSortAsc";this.Qqa="_afrSortDesc";this.sA="_afrSorted";V.vF="_afrRemainReadOnly";this.vM="1";this.gV="2";this.ara="_afrHoverable";this.Ji="afrSelectAll";this.Xe="p_AFSelected";this.CU="p_AFInactive";this.Eh="p_AFDropTarget";this.xw="p_AFHighlighted";
this.Z5="p_AFFocused";this.bA=40;this.uj=0;this.Mm=1;this.c7a="single";this.xqa="multiple";this.cOa="multipleNoSelectAll";this.zqa="none";this.LJa="clickToEdit";this.IU=8;this.Hqa=1;this.Gqa=2;this.Fqa=3;this.Eqa=4;this.b6=5;this.a6=6;this.d6=7;this.c6=8;this.vj=0;this.pt=1;this.we=2;this.tM=3;this.WL=4;this.Hm=25;this.pF=/^INPUT|SELECT|OPTION|BUTTON|^A\b|TEXTAREA/;this.LPa="p_AFTwinkleOn";this.KPa="p_AFTwinkleOff";V.N7="__afrTwinkleTimer";this.BU="af|table::disclosed-icon-style";this.AU="af|table::undisclosed-icon-style";
this.Hoa="af|table::disclosed-icon";this.Goa="af|table::undisclosed-icon";this.R5="af_table.TIP_EXPANDED_NODE";this.n5="af_table.TIP_COLLAPSED_NODE";this.mJa="_afrDetCol";this.wo="_afrDetRow";this.yoa="_hasDetail";this.Bla="_afrNdsRfr";this.vGa="_afrUndFch";this.dGa="_noRsz";this.Z4="_afrAutoHR";this.KU="_afrMRMT";this.rw=5E5;this.iMa="nb_fr";this.oMa="nb_pv";this.kMa="nb_nx";this.jMa="nb_ls";this.lMa="nb_pg";this.mMa="nb_cnt_pg";this.nMa="nb_in_pg";this.pMa="nb_rng";this.nGa="RERENDER_SELF";this.lGa=
"RERENDER_CELL";this.mGa="RERENDER_ROW";this.wT="RERENDER_CONTAINER_CHILDREN";this.n4="RERENDER_CONTAINER";this.JNa={nGa:0,lGa:1,mGa:2,wT:3,n4:4};this.hJa=300;this.$oa="_afrMaxTouchRows";this.fA="dbw";this.k7="_afrScrollBarBehavior";this.pk="overlay";this.CKa="_afrImpldm";this.fLa="ldmrtp";this.Toa="ldmrtplnk";this.cLa="ldmrbttm";this.Soa="ldmrbttmlnk";this.F6a="data-afrldIndx";this.eLa="ldmrrngtptxt";this.dLa="ldmrrngbttmtxt";this.qqa="af|table::scroll-container";this.wKa="_afrHwdwsId"};
v("AdfDhtmlTableBasePeer.InitSubclass",V.m);
V.prototype.q=function(a,b){var d=F.c,e=w.b;V.f.q.call(this,a,b);M.Sx(V,b,"mousemove");M.Sx(V,b,"keydown");this.Oi=e.Sa(b,V.Z4,0);var f=this.ea(b);this.It=f?e.Sa(f,V.ina,0):0;this.fG={};this.JA={};this.fAa=this.XE(a);this.Uw=a.getContextMenuSelect();if(!a.getColumnResizing||"enabled"==a.getColumnResizing())this.WSa=this.o(this.nWa),this.XSa=this.o(this.oWa);a.getColumnStretching&&(this.AW=f=a.getColumnStretching(),"blank"==f?this.cAa="_afrBlankColumn":0==f.indexOf("column:")&&(this.cAa=f.substring(7)));
this.Vm=p;this.twa=tv(this,a)&&"false"!=d.u().ka("af|table-tr-hover-highlight-row");this.QM=-1;this.gO=0;this.F8a=this.oba=this.si=-1;this.FA=a.r("_afrMasterId");this.FA==n&&(this.FA=a.r("_afrSlaveId"));this.ad={};this.MZ=d.MZ;this.Bd=e.Hy();this.cZa=a.r(V.$oa)!=n?a.r(V.$oa):V.hJa;e.ph()==w.lo?this.If=n:this.If=a.r(V.k7);this.nr=this.mr="0px";this.PO=p;"loadMore"==a.r("scrollPolicy")&&(this.wg=l);if(this.rr=a.r(V.CKa))this.wg=l;this.mua=a.r("_disableRowMouseDownCellFocus");this.hYa=a.r("_afrSyncRows");
this.R1a=[];this.vAa="";this.dW=p;F.c.Go(a)};z.a("AdfDhtmlTableBasePeer.prototype.InitDomElement",{q:V.prototype.q});V.prototype.Vu=function(a){B.p(a);if(a){var b=this.me(a),d=uv(this,a)!=n;a="SPAN"==a.tagName&&"on"==a.getAttribute(V.h5)?l:p;if(d||b||a)return p}return l};z.a("AdfDhtmlTableBasePeer.prototype.isDragAvailable",{Vu:V.prototype.Vu});V.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("AdfDhtmlTableBasePeer.prototype.TruncateClientId",{Cm:V.prototype.Cm});V.prototype.Z=function(a){this.Gr&&this.Gr.fq();if(this.EO){var b=w.b,d=this.ea();d&&b.sa(d,"touchend",this.EO);(d=this.Gb())&&b.sa(d,"touchend",this.EO)}F.c.Nm(a);V.f.Z.call(this,a)};z.a("AdfDhtmlTableBasePeer.prototype.ComponentRemoved",{Z:V.prototype.Z});V.prototype.Md=t(l);z.a("AdfDhtmlTableBasePeer.prototype.needsChildVisibilityChanges",{Md:V.prototype.Md});V.prototype.Ed=function(){F.c.jc(this.d());return l};
z.a("AdfDhtmlTableBasePeer.prototype.ChildVisibilityChanged",{Ed:V.prototype.Ed});V.prototype.XE=t(l);z.a("AdfDhtmlTableBasePeer.prototype.SupportsFocusRowNavigation",{XE:V.prototype.XE});V.prototype.ED=function(){return 0<this.h().id.indexOf("_afrDropDownContent")?p:l};z.a("AdfDhtmlTableBasePeer.prototype.AllowCellNavigation",{ED:V.prototype.ED});V.prototype.ja=t(l);z.a("AdfDhtmlTableBasePeer.prototype.needsResizeNotify",{ja:V.prototype.ja});
V.prototype.$s=function(){if(!this.Gl){var a=n,a=this.h().getAttribute(V.W6);if(a!=n&&(a=F.c.j(a)))this.Gl=a.k()}return this.Gl};z.a("AdfDhtmlTableBasePeer.prototype.GetPanelCollectionPeer",{$s:V.prototype.$s});V.prototype.D3=function(){if(!this.pya){var a=this.h().getAttribute(V.W6);a!=n&&(this.pya=F.c.j(a))}return this.pya};z.a("AdfDhtmlTableBasePeer.prototype.GetPanelCollectionComponent",{D3:V.prototype.D3});
V.prototype.DA=function(a,b){var d=p;if(0<b)var d=a[0],e=a[b-1],e=e.la+e.Db,f=this.Yd(),d=0<f&&0==d.la&&e==f;return d};function vv(a,b){if(b){var d=b.childNodes,e=d.length;1===e&&a.DA(d,e)&&(d=d[0].offsetHeight,d>a.jd&&(a.jd=d,wv(a,d)))}}
V.prototype.Ia=function(a,b,d,e){if(this.Gv()){var f=this;this.tI=function(){f.Ia(a,b,d,e)}}else{delete this.mW;var g=w.b,h=this.d(),h=h.e();if(g=g.getElementById(M.g(h,V.wKa)))g.style.width=d+"px";if(this.cf){g=w.b;g=this.ea();this.dj()?this.hj():(vv(this,g),xv(this,e,this.Zc,this.Me,this.ji));yv(this,d,this.Yg);this.Gq(g,d,e);var h=this.Uq(),m=zv(this);(this.lc!=m||this.Rd!=h)&&this.te(this.Rd,this.lc);Av(this);Bv(this);!this.Zb&&(!this.wg&&-1==this.ae&&this.jd<e-this.Zc-this.Me)&&(this.jd=e-this.Zc-
this.Me+V.Hm,wv(this,this.jd));this.yk(g,g.offsetHeight,p)}else if(this.$aa(this.d())||Cv(this.d())){g=this.ea();h=n;if(g){this.si=this.tO(g);g=g.childNodes;for(m=g.length-1;0<=m;m--)if("TABLE"==g[m].tagName){h=g[m];break}}Dv(this);Ev(this);Fv(this);Gv(this);Hv(this);h!=n&&0<h.rows.length?(this.NO(h,l),this.EP=F.c.oa(this,this.QY,p,10)):(this.Fb=l,this.h().style.overflow="auto",this.hj(),Iv(this));if(this.Fb){if(g=this.Gb())h=this.h(),g.style.border="0px",m=g.offsetWidth,m<=h.clientWidth&&(h.style.overflow=
"hidden");if(m=Jv(this))h=this.h(),m.style.border="0px",m.offsetWidth<=h.clientWidth&&(h.style.overflow="hidden");(g||m)&&this.hj()}Av(this);Kv(this)}else if(this.iO)!this.Gf&&this.Fb&&Av(this),this.Fb&&(0<this.Oi&&(!Lv(this)||this.Zb||this.wg))&&this.hj();else if(g=w.fa(),h=this.h(),this.Fb=g=g.getAttribute(h,"_afrEmpty",p),g||(this.iO=l,h=this.d(),(this.MZ||!F.c.iDa(h.e()))&&this.$o(l,eg.Kz,-1),V.rg(this.ea(),"wait")),Ev(this),Fv(this),Gv(this),Hv(this),g||(h=F.c.u().V("af_table.LABEL_FETCHING"),
this.oz(h,l)),g){this.h().style.overflow="auto";Av(this);if(g=this.Gb())h=this.h(),g.style.border="0px",m=g.offsetWidth,m<=h.clientWidth&&(h.style.overflow="hidden");Iv(this)}this.gwa&&Mv(this,d);this.Dt||(this.Dt=this.vz())}};z.a("AdfDhtmlTableBasePeer.prototype.ResizeNotify",{Ia:V.prototype.Ia});
function Ev(a){var b=w.fa(),d=b.Sa(a.h(),"_lastFrozen",-1),b=b.Sa(a.h(),"_firstFrozen",-1);a.$e=d;a.ag=b;if(d=a.Gb()){if(0<a.Oi&&a.eb()&&!a.YSa){var e=V.Pd(d,"TABLE"),f=e.rows[0],g=b=n;Zr(a)?(b=V.Pd(f.cells[1],"TABLE"),g=V.Pd(f.cells[0],"DIV")):(b=V.Pd(f.cells[0],"TABLE"),g=V.Pd(f.cells[1],"DIV"));b.parentNode.removeChild(b);g.parentNode.removeChild(g);d.removeChild(e);Zr(a)?g.style.cssText="overflow:hidden;position:absolute;top:0px;":(e=b.style.width,f="left:",V.fb()&&(f="right:"),g.style.cssText=
"overflow:hidden;position:absolute;top:0px;"+f+e);Zr(a)?(d.appendChild(g),d.appendChild(b)):(d.appendChild(b),d.appendChild(g));a.YSa=l}Nv(a,d,"t","d2","t2");a.Zc=d.offsetHeight;if(w.b.G()==w.aa&&8>w.b.nb()){if((e=V.Ra(d,"t"))&&e.rows.length)e.rows[0].style.position="absolute";if(a=V.Ra(d,"d2")){if((e=V.Ra(a,"t2"))&&e.rows.length)e.rows[0].style.position="absolute";V.fb()&&(e.style.right="0px")}}}else a.Gf=l,a.Zc=0}V.prototype.eb=function(){return 0<=this.$e||0<=this.ag};
function Ov(a){return 0<=a.$e}function Zr(a){return 0<=a.ag}function Pv(a,b){return 0<=a.$e&&b==a.$e+1||0==a.ag}function Qv(a,b){return 0<=a.$e&&b<=a.$e||0<=a.ag&&b>=a.ag}function Lv(a){return a.Po&&!Zr(a)}function Fv(a){var b=Jv(a);b?(Nv(a,b,"ft","fd2","ft2"),a.Me=b.offsetHeight):(a.Po=l,a.Me=0)}
function Gv(a){var b=a.Sg("nbar");if(b){a.gwa=l;setTimeout(function(){var a=F.c.Qc,b=F.c.u().ka("af|table::navbar-page-link");a!=n&&a.className==b&&a.blur()},0);a.ji=b.offsetHeight;var d=w.b.getElementById(M.g(a.d().e(),"nb_cnt"));a.nW=d.offsetWidth;a.Zb=l;a.ME();if(a.d().r("_afrSlaveId")!=n||a.d().r("_afrMasterId")!=n)b.firstChild.style.display="none",b.style.height=0,a.ji=b.offsetHeight,a.nW=d.offsetWidth}else a.ji=0,a.nW=0;a.oP=p}
function Hv(a){var b=Rv(a,p),d=Rv(a,l);b?(a.lW=b.offsetHeight,a.vSa=b.offsetWidth,b.style.display="none",b.style.overflow="hidden",b.style.zIndex=1,b.style.visibility="visible",d.style.display="none",d.style.overflow="hidden",d.style.zIndex=1,d.style.visibility="visible",a=a.Gb(),a!=n&&(a.style.zIndex=2)):(a.lW=0,a.vSa=0)}
V.prototype.KF=function(a){if(this.Oi){var b=this.h(),d=this.$s(),e=d.h(),f=d.h(),g=this.D3(),h=w.fa(),m=h.G()==w.Fc;if(d&&g){var q=g.e(),g=h.getElementById(M.g(q,d.Z7())),q=h.getElementById(M.g(q,d.Y7())),g=g?g.offsetHeight:0,q=q?q.offsetHeight:0;d.rh()?(e=b.parentNode.parentNode,d=b.style,!a&&f.getAttribute("_afrPreDetachW")==n&&(a=d.width,""===a&&(a=this.ea().offsetWidth+Sv(this),a+="px"),f.setAttribute("_afrPreDetachW",a),f.setAttribute("_afrPreDetachH",d.height)),m?(f=h.getComputedStyle(b),b.style.width=
e.clientWidth-parseInt(f.borderLeftWidth)-parseInt(f.borderRightWidth)+"px"):h.ys(b,e.clientWidth),h.Hg(b,e.clientHeight-g-q)):(h=f.getAttribute("_afrPreDetachH"),h!=k&&(b.style.height=h,f.removeAttribute("_afrPreDetachH")),h=f.getAttribute("_afrPreDetachW"),h!=k&&(b.style.width=a?"":h,f.removeAttribute("_afrPreDetachW")),Tv(e,b.offsetHeight+g+q))}}};z.a("AdfDhtmlTableBasePeer.prototype.__fixPanelCollectionDimensions",{KF:V.prototype.KF});
V.prototype.Raa=function(){var a=this.h().style;return"absolute"==a.position&&a.top&&0<a.top.length&&a.bottom&&0<a.bottom.length};V.prototype.dj=function(){return 0<this.Oi};z.a("AdfDhtmlTableBasePeer.prototype.isHeightAutoSized",{dj:V.prototype.dj});function Dv(a){var b=p;if(0<a.Oi){var d=w.b,e=a.h(),f=e.style;"auto"==f.height&&!a.Raa()&&(d.G()==w.aa&&8>d.nb()&&e.scrollWidth<=e.offsetWidth&&(f.height=e.clientHeight+"px",b=l),b||d.Hg(e,e.offsetHeight));f.overflowX="";f.overflowY=""}}
V.prototype.KD=ca();z.a("AdfDhtmlTableBasePeer.prototype.BeginHandleDataBlocks",{KD:V.prototype.KD});
V.prototype.Ab=function(a,b){var d=a.id;if(0<d.indexOf(V.Lv)){var e=w.b,d=this.ea();this.KD();var f=V.EUa(a);this.si=this.tO(a);var g=p;if(this.cf){0==f.length&&(g=l);var h=e.Sa(a,"_fetchId",-1),m=this.cg;if(m!=k&&this.xx==h){h=this.AP;this.vK();Uv(this,b);if(e.Rh(a,V.Bla,p)){F.c.jc(this.d());return}if(e.Rh(a,V.vGa,p)){if(m==eg.YS||m==eg.LT||m==eg.dk||m==eg.Yn)Vv(this);else if(m==eg.qz||m==eg.Hv)this.d().setProperty("disclosedRowKeys",this.mda,p,J.Pc),this.mda=k;else if(m==eg.rK){this.mx=l;try{var q=
this.d();q.setProperty("_afrActiveRowKey",this.yY,p,J.Pc);q.setProperty("activeRowKey",this.yY,p,J.Pc);delete this.yY}finally{this.mx=p}}V.rg(d,"");this.Ih();this.d().setProperty(V.vF,p,p,J.rd);return}delete this.mW;this.mda=k;for(q=0;q<f.length;q++){a.removeChild(f[q]);this.Dk||(this.Dk=e.getAttribute(f[q],"_pruneKeyCache",n));var s=e.Sa(f[q],"_adsCounter",-1),y=p;0==q&&Wv(this,s,l);y=this.HG(f[q],m,h,f.length-q-1);q==f.length-1&&(Wv(this,s,p),this.JV=n,this.QM<s&&(this.QM=s));y||Xv(this,b,f[q]);
e.wa(f[q])}this.yk(d,d.offsetHeight,p);this.YD()}else if(h==V.sFa&&m==k){m=g;h=Yv(f);e=w.b;if(h)F.c.jc(this.d()),e=p;else{if(!m){m=p;h=(h=F.c.Qc)?h.id:n;for(q=0;q<f.length;q++){a.removeChild(f[q]);this.Dk||(this.Dk=e.getAttribute(f[q],"_pruneKeyCache",n));s=e.Sa(f[q],"_autopprBlock",-1);Zv(this,f[q]);$v(this,f[q]);var A=f[q],y=this.d(),A=w.b.getAttribute(A,"_autopprActiveRow",n);if(A!=n){this.mx=l;try{A=0==A.length?n:A,y.setProperty("_afrActiveRowKey",A,p,J.Pc),y.setProperty("activeRowKey",A,p,J.Pc),
this.EP=F.c.oa(this,this.QY,p,10)}finally{this.mx=p}}this.JD(f[q]);switch(s){case V.tFa:case V.Aja:var y=e.Sa(f[q],"insertPath",n),C=this.Ob(y);if(C){var G=f[q].rows.length,A=n;0<G&&(y=f[q].rows[0],A=y.getAttribute(V.Ba));A&&!this.Ob(A)&&(y=C.index,y!=k&&this.YK(y)&&(s==V.Aja&&y++,e.wa(f[q]),s=V.hX(f[q]),A=w.b.Sa(f[q],"totalInserted",0),this.VK(f[q],y,s,A,0),this.kw(p)))}break;case V.uFa:m=this.Bz(f[q]);break;case V.vFa:G=f[q].rows.length,0<G&&(y=f[q].rows[0],A=y.getAttribute(V.Ba),s=1<G&&this.cn?
f[q].rows[1]:n,aw(this,A,y,s),h&&(A=e.getElementById(h))&&(H.oc(y,A)||s&&H.oc(s,A))&&O.ra(A))}}this.Mj(V.Lm,l);this.Mj(V.Pq,l);e=this.Rd;0!=e&&bw(this,e);m&&this.yk(d,d.offsetHeight,p)}e=l}if(!e)return}else{e=w.b;Uv(this,b);for(m=0;m<f.length;m++)a.removeChild(f[m]),Xv(this,b,f[m]),e.wa(f[m])}}else this.iO||(Ev(this),Fv(this),Gv(this),Hv(this),this.iO=l),this.vK(),0<f.length&&0<f[0].rows.length?(this.NO(f[0],p),e.wa(f[0]),this.EP=F.c.oa(this,this.QY,p,10),this.hj()):g=l;if(g)if(Yv(f))F.c.jc(this.d());
else{if(this.cf)D.i.severe("Empty data block received:"+id);else{f=a.childNodes;g=f.length;for(e=0;e<g;e++)m=f[0],a.removeChild(m),d.appendChild(m);Iv(this);this.Ih();this.h().style.overflow="auto";this.Fb=l;Av(this);if(f=this.Gb())f.style.border="0px",g=this.h(),f.offsetWidth<=g.clientWidth&&(g.style.overflow="hidden");V.rg(d,"")}this.hj()}else this.Vm&&cw(this,l),(d=dw(this))?(f=w.b.getScrollLeft(d))&&f==this.Rd&&ew(d):this.rza()}else if(0<d.indexOf("nbar")){if(d=this.Sg("nbar"))d.parentNode.replaceChild(a,
d),w.b.wa(a)}else if(f=(d=V.ava(b))?d.textContent:n,V.f.Ab.call(this,a,b),f){if(g=d=V.ava(a))if(g=d.textContent)if(e=f.length,m=g.length,e<m)g=p;else{for(h=0;h<m&&f.charAt(h)==g.charAt(h);h++);g=g.substr(h)==f.substr(e-(m-h))}else g=l;g&&(d.textContent=f)}};z.a("AdfDhtmlTableBasePeer.prototype.ReplaceDomElement",{Ab:V.prototype.Ab});
function Xv(a,b,d){for(var e=d.rows,f=e.length,g=n,h=0;h<f;h++){var m=e[h],q=m.getAttribute(V.Ba);q!=n&&a.Ob(q)!=n&&(g||(g=[]),g.push(m))}if(g!=n){f=g.length;for(h=0;h<f;h++)g[h].parentNode.removeChild(g[h])}b.appendChild(d)}function Uv(a,b){for(;b.firstChild!=n;){var d=b.firstChild;a.fh(d);b.removeChild(d)}}function Yv(a){for(var b=w.b,d=0;d<a.length;d++)if(b.Rh(a[d],V.Bla,p))return l;return p}V.prototype.JD=ca();z.a("AdfDhtmlTableBasePeer.prototype.AutoPPRBlockReceived",{JD:V.prototype.JD});
V.prototype.Bz=function(a){var b=p;if(a=w.b.getAttribute(a,"_parentKey",n))if(a=this.Ob(a))this.VD(a.index,1,1,0,n),this.kw(p),b=l;return b};z.a("AdfDhtmlTableBasePeer.prototype.HandleAutoPPRRemove",{Bz:V.prototype.Bz});V.prototype.Rb=function(a){return 0<a.id.indexOf(V.Lv)?n:a};z.a("AdfDhtmlTableBasePeer.prototype.DomReplaceNotify",{Rb:V.prototype.Rb});V.prototype.tO=function(a){var b=-1,d=w.b;if(a){var e=V.Ra(a,"unAvail");e&&(b=d.Sa(e,"_unavailableRowIndex",-1),a.removeChild(e))}return b};
V.prototype.Gs=ca();z.a("AdfDhtmlTableBasePeer.prototype.BlockInserted",{Gs:V.prototype.Gs});V.prototype.Fs=ca();z.a("AdfDhtmlTableBasePeer.prototype.BlockDeleted",{Fs:V.prototype.Fs});
V.prototype.VD=function(a,b,d,e,f){for(var g=this.ea(),h=g.childNodes,m=0,q=0,s=0,y=h.length-1;0<=y&&s<b;y--){var A=h[y],m=m+A.kc,C=Math.max(a,A.la),G=Math.min(a+b-1,A.la+A.Db-1),K=0,N=0,Q=n;if(C==A.la&&G==A.la+A.Db-1)N=A.kc,Q=A,K=A.Db,f&&(f.push(A),f.tS+=A.offsetHeight);else{for(;G>=C;G--){var T=G-A.la;if(0==T){B.assert(A.rows!=n&&A.rows[0]!=n,"Unable to copy cell widths when the block contains no rows!");for(var Y=A.rows[0].cells,ra=A.rows[1].cells,wa=0;wa<ra.length;wa++)ra[wa].style.width=Y[wa].style.width}T=
A.rows[T];f&&(f.push(T),f.tS+=T.offsetHeight);this.fh(T);T.parentNode.removeChild(T);K++}0<K&&(C=A.offsetHeight,N=A.kc-C,A.kc=C,A.Db=A.rows.length);q+=A.kc}if(0<K){for(A=y+1;A<h.length;A++)C=h[A],C.Xa-=N,C.la-=K;Q&&(this.fh(Q),g.removeChild(Q))}s+=K}a=s==d?q-m:-this.xe*d;this.Be-=d;-1!=this.ae&&(this.ae-=d);0<this.Be&&(missing=this.VO(g,g.offsetHeight),missing&V.yq&&fw(this,g,g.offsetHeight,p));this.Pm(a,g);0==e&&(Av(this),gw(this,g),this.Fs())};z.a("AdfDhtmlTableBasePeer.prototype.DeleteBlock",{VD:V.prototype.VD});
V.prototype.YD=ca();z.a("AdfDhtmlTableBasePeer.prototype.FetchCompleted",{YD:V.prototype.YD});V.prototype.$D=function(){return this.sk!=n?this.sk.d():n};z.a("AdfDhtmlTableBasePeer.prototype.GetAssociatedComponent",{$D:V.prototype.$D});function $v(a,b){var d=a.d(),e=b.getAttribute("_selState");e&&(eval("var st\x3d"+e+";"),d.setProperty("selectedRowKeys",st,p,J.Pc))}
function Zv(a,b){var d=a.d(),e=b.getAttribute("_discState");e&&(eval("var st\x3d"+e+";"),d.setProperty("disclosedRowKeys",st,p,J.Pc))}
V.prototype.NO=function(a,b){try{this.Ih();this.cf=l;var d=w.b,e=d.Sa(a,"_startRow",0),f=d.Sa(a,"_visibleRow",-1),g=V.hX(a),h=this.d(),m=this.ea(),q=d.Sa(a,"_rowCount",-1),s=this.Zb,y=this.wg,A=w.fa().Sa(a,"_estRowCount",-1);0<=A&&(g=A,q=-1);0==this.si?q=-1:0<this.si&&(q=this.si);var C=this.Be=this.ae=q,G=0;-1==C&&(this.Be=C=g);$v(this,a);var K=this.d(),N=a.getAttribute("_initARK");if(N){this.mx=l;try{K.setProperty("_afrActiveRowKey",N,p,J.Pc),K.setProperty("activeRowKey",N,p,J.Pc)}finally{this.mx=
p}}var Q=this.h();d.setScrollLeft(Q,0);var T=Q.clientWidth,Y=Q.clientHeight,ra=d.Sa(a,"_frWidth",0);this.Yg=ra;var wa=d.Sa(a,"_totalWidth",-1);this.ru=wa;this.bI=wa-ra;this.cn=d.getAttribute(a,V.yoa,p);if(!b){for(var Ca=m.childNodes,La=Ca.length-1;0<=La;La--)m.removeChild(Ca[La]);m.appendChild(a);T=Q.clientWidth;Y=Q.clientHeight}var Ba=a.offsetHeight,sb=V.hX(a);a.kc=Ba;var gc=Math.round(Ba/sb);this.xe=gc;var Yb;Yb=!s&&!y&&C>g?gc*C:-1==q&&!s&&!y&&Ba<Y-this.Zc-this.Me-this.ji?Y-this.Zc-this.Me-this.ji:
Ba;-1==q&&(!s&&!y)&&(0<A&&(Yb+=gc*A),Yb+=V.Hm);a.style.position="relative";m.scrollTop=0;a.la=e;a.Db=sb;a.Xa=!s&&!y&&0<e?G=gc*e:0;var yc,d=T,g=Y,q=Yb,Rc=w.b,ac;if(Lv(this)&&!this.Zb&&!Zr(this)){var bc=this.w();ac=bc.createElement("div");ac.tabIndex=-1;ac.id=Q.id+"::scroller";var Tb=ac.style;Tb.position="absolute";this.Bd&&Rc.G()==w.Fc&&(Tb.setProperty("-webkit-overflow-scrolling","touch"),Tb.setProperty("-webkit-transform","translateZ(0px)"),Rc.ph()==w.lo&&H.n(ac,F.c.u().getStyleClass(V.qqa)));if(this.FA!=
n){var yd=this.d();yd.r("_afrSlaveId")!=n?(Tb.overflowX="auto",Tb.overflowY="hidden"):Tb.overflow="auto";var ud=yd.getParent().j(this.FA);B.assert(ud!=n,"There is no associated table");this.sk=ud.k();var yf=ud.k();yf!=n&&yf.sk!=this&&(yf.sk=this)}else Zr(this)?(Tb.overflowX="auto",Tb.overflowY="hidden"):Tb.overflow="auto";Tb.zIndex=0;Tb.width=Math.max(d-ra,0)+"px";Tb.top=this.Zc+"px";Tb.height=Math.max(g-this.Zc,0)+"px";V.fb()?Zr(this)?Tb.right="0px":Tb.left="0px":Zr(this)?Tb.left="0px":Tb.right=
"0px";var Rf=bc.createElement("div"),Tg=Rc.Sa(a,"_totalWidth",-1);-1==Tg&&(Tg=a.offsetWidth);Rc.G()==w.aa&&(Rf.style.position="absolute");Rf.style.width=Tg-ra+"px";this.jd=q;q>V.rw?(Rf.style.height=V.rw+"px",this.Jo=l):(Rf.style.height=q+"px",this.Jo=p);Rf.style.visibility="hidden";ac.appendChild(Rf);Q.appendChild(ac);Rc.wa(ac)}else{var bc=[],zf=w.b,Ug=this.w();hscroller=Ug.createElement("div");vscroller=Ug.createElement("div");hscroller.id=Q.id+"::hscroller";vscroller.id=Q.id+"::vscroller";hscroller.tabIndex=
-1;vscroller.tabIndex=-1;var ad=hscroller.style,ke=vscroller.style;ad.position=ke.position="absolute";if(this.FA!=n){var Dh=this.d();Dh.r("_afrSlaveId")!=n?ke.overflowY="hidden":ke.overflowY="auto";ke.overflowX="hidden";ad.overflowY="hidden";ad.overflowX="auto";var Eh=Dh.j(this.FA);B.assert(Eh!=n,"There is no associated table");this.sk=Eh.k();var Fh=Eh.k();Fh!=n&&Fh.sk!=this&&(Fh.sk=this)}else ke.overflowY="auto",ke.overflowX="hidden",ad.overflowY="hidden",ad.overflowX="auto",this.Bd&&zf.G()==w.Fc&&
(ke.setProperty("-webkit-overflow-scrolling","touch"),ke.setProperty("-webkit-transform","translateZ(0px)"),ad.setProperty("-webkit-overflow-scrolling","touch"),ad.setProperty("-webkit-transform","translateZ(0px)"),zf.ph()==w.lo&&(ad.overflow="scroll",F.c.u().getStyleClass(V.qqa),H.n(vscroller,V.y2a),H.n(hscroller,V.y2a)));ad.zIndex=ke.zIndex=0;ke.width=Math.max(d-ra,0)+"px";ke.top=this.Zc+"px";ke.height=Math.max(g-this.Zc-this.Me-this.ji,0)+"px";V.fb()?(Zr(this)?ad.right="0px":ad.left="0px",ke.left=
"0px"):(Zr(this)?ad.left="0px":ad.right="0px",ke.right="0px");var Gh=Ug.createElement("div"),Ig=Ug.createElement("div"),Uf=zf.Sa(a,"_totalWidth",-1);-1==Uf&&(Uf=a.offsetWidth);zf.G()==w.aa&&(Gh.style.position=Ig.style.position="absolute");Gh.style.width=Ig.style.width=Uf-ra+"px";this.jd=q;Gh.style.height=Ig.style.height=q+"px";hscroller.appendChild(Gh);vscroller.appendChild(Ig);Q.appendChild(vscroller);zf.wa(vscroller);ad.top=this.Zc+"px";ad.height=Math.max(g-this.Zc,0)+"px";var We=vscroller.offsetWidth-
vscroller.clientWidth;V.fb()?ad.left=We+"px":ad.right=We+"px";ad.width=Math.max(d-ra-We,0)+"px";this.If==V.pk&&(ad.width+=We);Q.appendChild(hscroller);zf.wa(hscroller);var og=hscroller.offsetHeight-hscroller.clientHeight;ke.height=Math.max(g-this.Zc-this.Me-this.ji-og,0)+"px";this.If==V.pk&&(ke.height+=og);bc[V.uj]=hscroller;bc[V.Mm]=vscroller;ac=bc}if(this.If==V.pk){var mc=this.ea(),zd=Rc.getComputedStyle(Q),Qb=this.w().createElement("div");Qb.setAttribute("id",M.g(Q.id,V.fA));var Ad=Qb.style;this.ota=
Q.offsetWidth-d;this.wSa=Q.offsetHeight-g;Ad.height=Q.offsetHeight-this.Zc-this.Me+"px";Ad.width=Q.offsetWidth+"px";Ad.backgroundColor=zd.backgroundColor;Ad.overflowX="hidden";Ad.overflowY="hidden";Ad.position="relative";Ad.zIndex=1;hw(this,Qb);Q.insertBefore(Qb,mc);if(this.wg){var Df=Rv(this,p),xi=Rv(this,l);xi!=n&&Qb.appendChild(xi);Qb.appendChild(mc);Df!=n&&Qb.appendChild(Df)}else Qb.appendChild(mc);Rc.wa(Qb);Lv(this)&&!this.Zb?(vscroller=this.Pa(),hscroller=this.Pa()):(vscroller=this.Pa()[V.Mm],
hscroller=this.Pa()[V.uj]);vscroller.style.visibility="hidden";hscroller.style.visibility="hidden";this.cua=this.XP=l}yc=ac;this.If!=V.pk&&hw(this,m);this.VG=this.o(this.CWa);rw(this,a);if(!this.Gf){var Jg=this.Gb();if(this.eb()){if(!Pv(this,this.It)){var Yg=V.Ra(Jg,"d2");Yg.onscroll=this.VG}}else Jg.onscroll=this.VG}if(!this.Po){var ai=Jv(this);this.eb()?Pv(this,this.It)||(Yg=V.Ra(ai,"fd2"),Yg.onscroll=this.VG):ai.onscroll=this.VG}var yi=this.Gq(m,T,Y);m.style.zIndex=1;this.lc=Q=G=zw(this,h,a,e,
Yb,yi,Ba);Lv(this)&&!this.Zb?(0<Q&&(yc.scrollTop=Q),this.Rd=V.fb()?w.b.getScrollLeft(yc):0,M.Sx(V,yc,"scroll")):(0<Q&&(yc[0].scrollTop=yc[1].scrollTop=Q),this.Rd=V.fb()?w.b.getScrollLeft(yc[0]):0,M.Sx(V,yc[0],"scroll"),M.Sx(V,yc[1],"scroll"));!this.dj()&&-1<f&&this.Af(f);this.iZ();Aw(this,a);this.dj()&&(this.hj(),this.lc=G=zw(this,h,a,e,Yb,m.offsetHeight,Ba),0<G&&(Lv(this)&&!s?yc.scrollTop=G:yc[0].scrollTop=yc[1].scrollTop=G),-1<f&&this.Af(f));Av(this);this.yk(m,m.offsetHeight,p);Bv(this);Bw(this,
l,n,p)}finally{Iv(this),this.kw(l),this.MAa=l}};function zw(a,b,d,e,f,g,h){if(a.Zb)return 0;a=0;0<e&&(a=Math.min(d.Xa,f-g),a=Math.max(0,a));"last"==b.getDisplayRow()&&g<f&&(a=f-g,d.Xa=f-h);return a}V.prototype.FO=function(a,b){var d=this.FM();d&&(scrollLeft=d.x-a,scrollTop=d.y-b,Cw(this,scrollLeft,scrollTop))};function Bv(a){var b=a.d(),d=b.r("_afrMasterId"),e=b.r("_afrSlaveId");(d||e)&&Lv(a)&&F.c.oa(a,a.o1a,b,0)}
V.prototype.o1a=function(a){a=a.getParent().j(this.FA);B.assert(a!=n,"There is no associated table");var b=a.k();a=this.ea();var d=b.ea(),e=this.Pa(),b=b.Pa();if(e&&b){var f=e.firstChild,g=b.firstChild;if(f&&g){var h=("auto"==e.style.overflowX||"auto"==e.style.overflow)&&e.offsetHeight>e.clientHeight,m=("auto"==b.style.overflowX||"auto"==b.style.overflow)&&b.offsetHeight>b.clientHeight,q=parseInt(a.style.height),s=parseInt(d.style.height);!isNaN(q)&&!isNaN(s)&&(m&&!h?(a.style.height=s+"px",e.style.height=
b.style.height,e.style.overflowX="scroll",f.style.height=g.style.height):h&&!m?(d.style.height=q+"px",b.style.height=e.style.height,b.style.overflowX="scroll",g.style.height=f.style.height):"auto"==b.style.overflowX?(e.style.overflowX="auto",a.style.height=s+"px",e.style.height=b.style.height,f.style.height=g.style.height):(b.style.overflowX="auto",d.style.height=q+"px",b.style.height=e.style.height,g.style.height=f.style.height))}}};
function Iv(a){var b=a.h().getAttribute(V.W6);b!=n&&(a=a.Gl=F.c.j(b).k(),a.Yha(),a.zD(),a.mja(),a.Bs())}V.prototype.sg=function(){if(this.NAa!=n)return this.NAa;var a=this.h(),a=w.b.getAttribute(a,"_leafColClientIds"),a=eval(a),b=[];if(a!=n)for(var d=a.length,e=0;e<d;e++){var f=F.c.j(a[e]);b.push(f)}return this.NAa=b};z.a("AdfDhtmlTableBasePeer.prototype.__getVisibleLeafColumns",{sg:V.prototype.sg});
V.zV=function(a){var b=n;if(a=w.b.getElementById(M.g(a,V.At)))a=a.getAttribute(V.sA),a==V.gV?b=p:a==V.vM&&(b=l);return b};V.prototype.Fo=function(){B.$()};z.a("AdfDhtmlTableBasePeer.prototype.__getColumnResizeMargin",{Fo:V.prototype.Fo});
V.prototype.TK=function(a,b){if(!this.Gf&&this.cf)if(this.PB){var d=Dw(this,b);d&&(!a.getColumnResizing||"enabled"==a.getColumnResizing())&&V.rg(d,w.b.getCursor("col-resize"))}else if(d=this.Iba){var e=w.b.Qb(b);if(Math.abs(e.x-d.x)>this.Fo()&&(this.Iba=n,d=w.b,e=this.Kj)){var f=w.b,g=this.Kj,h=f.Sa(g,"_d_index",-1),g=g.colSpan,m=this.h(),q=m.ownerDocument.createElement("div"),s=q.style;m.appendChild(q);s.overflow="hidden";s.position="absolute";s.zIndex=1E3;f.yd(q,85);this.AH=[];var m=w.b,s=this.$e,
y=this.ag,f=this.Gb(),A,C=n;this.eb()&&!Qv(this,h)?(C=V.Ra(f,"d2"),A=V.Ra(C,"t2")):A=V.Ra(f,"t");f=q.ownerDocument.createElement("table");f.className=A.className;f.cellSpacing=0;colTableStyle=f.style;colTableStyle.tableLayout="fixed";colTableStyle.position="relative";q.appendChild(f);for(var G=A.rows.length,K=0,N=this.AH,Q=0;Q<G;Q++)for(var T=A.rows[Q].cells,Y=T.length,ra=n,wa=0,Ca,La=0;La<Y;La++){var Ba=T[La],sb=p;if(0<Q){sb=m.Sa(Ba,"_d_index",-1);if(sb>h)break;sb=sb==h}else sb=Ov(this)&&!Qv(this,
h)?La==h-s-1:Zr(this)&&Qv(this,h)?La==h-y:La==h;if(sb){do ra==n?(ra=Ba,Ca=f.insertRow(Q),0==Q&&(m.G()==w.aa&&8>m.nb())&&(Ca.style.position="absolute")):ra=T[++La],wa+=ra.colSpan,Y=Ew(ra,l),m.bi(Y),Ca.appendChild(Y),Ca.style.height="auto",0!=Q?(Y.rowSpan=1,m.Hg(Y,ra.offsetHeight)):K+=ra.offsetWidth,N.push(ra);while(wa<g);break}}for(Q=N.length-1;0<=Q;Q--)N[Q].style.display="none";this.qi()&&Fw(this,A,h,g);this.JB=K;q.style.width=colTableStyle.width=K+"px";Gw(this,A,C,h,K);m.Hg(f,A.offsetHeight);Ca=
w.b;m=Ca.G()==w.ed;s=this.$e;y=this.ag;C=this.JB;f=Ew(f,p);q.appendChild(f);A=this.AH;for(var G=this.ea(),K=G.childNodes,N=K.length,Q=this.lc,gc,T=0;T<N;T++){ra=K[T];wa=ra.rows;La=wa.length;Ba=0;0==T&&(f.className=ra.className,gc=ra.Xa);for(Y=0;Y<La;Y++){sb=wa[Y];if(sb.offsetTop-(Q-gc)>G.offsetHeight)break;var Yb,yc,Rc=n;Ov(this)&&!Qv(this,h)?(Rc=Hw(this,sb),Yb=Rc.rows[0].cells,yc=h-s-1):Zr(this)?Qv(this,h)?(yc=h-y+1,Yb=sb.cells):(Rc=Hw(this,sb),Yb=Rc.rows[0].cells,yc=h):(yc=h,Yb=sb.cells);if(!this.cn||
!Ca.getAttribute(sb,V.wo,p)){var ac=f.insertRow(Ba);Ba++;for(var bc=0;bc<g;bc++){var Tb=Yb[yc++];cellClone=Ew(Tb,l);Ca.bi(cellClone);ac.appendChild(cellClone);A.push(Tb);Tb.style.display="none";m?cellClone.style.height=sb.offsetHeight+"px":Ca.Hg(cellClone,sb.offsetHeight);Rc!=n&&(Iw(Rc,C),this.qi()&&Fw(this,Rc,h,g))}}}gc+=ra.offsetHeight;this.qi()&&((!this.eb()||Qv(this,h))&&Fw(this,ra,h,g,l),this.eb()&&!Qv(this,h)&&Jw(this,ra,C))}if(!this.Po){gc=this.$e;Ca=this.ag;f=this.JB;m=this.AH;y=Jv(this);
s=n;this.eb()&&!Qv(this,h)?(s=V.Ra(y,"fd2"),y=V.Ra(s,"ft2")):y=V.Ra(y,"ft");for(C=0;2>C;C++){A=y.rows[C].cells;G=Ov(this)&&!Qv(this,h)?h-gc-1:Zr(this)&&Qv(this,h)?h-Ca:h;for(K=0;K<g;K++)N=A[G++],m.push(N),N.O8=l,N.style.display="none"}this.qi()&&Fw(this,y,h,g);Gw(this,y,s,h,f)}this.Sw=q;Kw(this,b);Lw(this,b);this.Gta||(this.Gta=this.o(this.lWa),this.VSa=this.o(this.mWa),this.USa=this.o(this.Ova));d.vd(this.Gb());F.c.Nd(b,this.Gta,this.VSa,this.USa);d.setCursor(e,"move",l);d.setCursor(this.h(),"move",
l);d.va(b)}}else if(this.Kj)V.rg(this.Kj,"move");else if(d=this.Sq(b))e=d.jh,"resize"==d.type&&Mw(this,d)&&(!a.getColumnResizing||"enabled"==a.getColumnResizing())?V.rg(e,w.b.getCursor("col-resize")):"move"==d.type?V.rg(e,w.b.getCursor("move")):"default"==d.type?V.rg(e,"default"):V.rg(e,"")};z.a("AdfDhtmlTableBasePeer.prototype.HandleDomMouseMove",{TK:V.prototype.TK});
V.prototype.Gw=function(a,b){if(b==n&&(b=this.Sq(a.L()),b==n))return;if("resize"==b.type){var d=Mw(this,b);if(d){this.PB=d.jh;this.fZ=d.nBa;var e=d.jh,f=d.nBa;if(d=this.Sg("ri")){var g=!V.fb(),d=d.style;d.display="block";d.zIndex=20;d.top="0px";if(g){g=e.offsetLeft+e.offsetWidth;if(Ov(this)&&!Qv(this,f))g+=this.Yg;else if(Zr(this)&&Qv(this,f)){var e=g,g=0,h=this.Gb();if(h=V.Ra(h,"d2"))g=h.offsetWidth;g=e+g}if(!this.eb()||!Qv(this,f))g-=this.Rd}else if(g=e.offsetLeft,Ov(this)&&Qv(this,f))g+=this.h().offsetWidth-
e.parentNode.parentNode.offsetWidth;else if(Zr(this)&&!Qv(this,f))g+=this.Yg;else{for(f=e.parentNode;f&&"TABLE"!=f.tagName;)f=f.parentNode;if(f&&"TABLE"==f.tagName){e=f.offsetWidth;for(h=f.offsetLeft;f&&"DIV"!=f.tagName;)f=f.parentNode;f&&"DIV"==f.tagName&&f.offsetWidth>e&&(g+=h)}g-=Nw(this);Ow(this)>Pw(this)&&(f=g,e=this.Pa(),g=f+(this.Po&&!this.Zb?e.offsetWidth-e.clientWidth:e[1].offsetWidth-e[1].clientWidth))}d.left=g+"px";d.height=this.Zc+this.Me+this.ji+this.lW+this.ea().offsetHeight+"px"}this.Wca=
0;d=this.Gb();w.b.vd(d);a.cancel();d=a.L();F.c.Nd(d,this.WSa,this.XSa)}}};z.a("AdfDhtmlTableBasePeer.prototype.__handleColumnResizing",{Gw:V.prototype.Gw});
V.prototype.qa=function(a){var b=a.L(),d=this.Sq(b),e=d?d.type:n;if((this.cf||"clearAllFilter"==e)&&this.Hw(a)){var f=w.b,g=f.T(b),h=this.Gb();h&&"readOnly"!=this.d().getEditingMode()&&H.Cu(h,p);var m=this.he(g,this.h());if(m!=n&&(h=m[0],m=m[1],h!=n)){Qw(this,b,g,f.Eg(b),f.Op(b),b.shiftKey,h,m);return}f.Eg(b)&&(h=Rw(this,g),this.me(g,h)&&"clearAllFilter"!=e?h&&(this.Vm&&Bw(this,p,g,p),Mq(this,Dw(this,b))):e&&("selectAll"==e?(this.Ej(),(b=this.d().getSelectedRowKeys())&&b[V.Ji]?(this.dg(),Sw(this)):
Tw(this)):"clearAllFilter"==e?(b=this.d(),f=new Vb(b),f.aS(l),b.Fg(f),b.setSelectedRowKeys(n)):"resize"==e?this.Gw(a,d):"move"==e?(this.Iba=f.Qb(b),this.Kj=d.jh,a.cancel()):"select"==e&&(this.Ej(),a=d.gBa,0<a.length&&(b.shiftKey||(this.S8=d.jh),Uw(this,b,a,d.fBa),Vw(this)&&(n==this.Pva&&(this.Pva=this.o(this.pWa),this.x8a=this.o(this.qWa)),a=this.Gb(),f.vd(a),F.c.Nd(b,this.Pva,n)))),"resize"!=e&&("sort"!=e&&d.jh!=n)&&Mq(this,d.jh)))}};
z.a("AdfDhtmlTableBasePeer.prototype.HandleComponentMouseDown",{qa:V.prototype.qa});V.prototype.cc=function(){this.Kj=this.Iba=n};z.a("AdfDhtmlTableBasePeer.prototype.HandleComponentMouseUp",{cc:V.prototype.cc});V.prototype.B0a=function(a){var b,d;a.selectionStart!=n&&(b=0<a.selectionEnd-a.selectionStart);d=w.b.G()==w.aa&&9>w.b.nb()?this.w().selection.createRange().text:window.getSelection().toString();!b&&""!=d&&a.select()};
V.prototype.ko=function(a){this.cf&&(this.Hw(a)&&this.me(a.Q()))&&(this.Vw=k)};z.a("AdfDhtmlTableBasePeer.prototype.HandleComponentDblClick",{ko:V.prototype.ko});
function Ww(a){var b=a.ownerDocument,d=n;if(b.evaluate&&w.b.G()!=w.d3)a=b.evaluate(".//text()",a,n,XPathResult.ANY_TYPE,n),(d=a.iterateNext())&&a.iterateNext()&&(d=n);else{(b=a.firstChild)&&3==b.nodeType&&(d=b);a=a.getElementsByTagName("*");for(var e=a.length,f=0;f<e;f++)if((b=a[f].firstChild)&&3==b.nodeType)if(d){d=n;break}else d=b}return d}V.prototype.T_=function(a){var b=w.b,d=this.Gb(),e;d&&(e=b.Ub(d));a=b.Qb(a);return d&&a.y-e.y<=this.Zc?"header":"body"};
v("AdfDhtmlTableBasePeer.prototype.getClickLocation",V.prototype.T_);z.a("AdfDhtmlTableBasePeer.prototype.getClickLocation",{T_:V.prototype.T_});
V.prototype.Xv=function(a){var b=a.L(),d=w.b;if(a.js())if("header"===this.T_(b))Xw(this,b);else{if(a=d.T(b),!this.me(a)){d=this.he(a,this.h());if(d!=n&&(a=d[0],d=d[1],a!=n)){this.Zv(b,a,d);return}var e=this.d();if(a=e.getBodyContextMenuId?e.getBodyContextMenuId():n)e.setSelectedRowKeys({}),d=e.j(a),d==n&&(F.c.j(a),e=n),this.ZJ(b,a,e),w.b.va(b)}}else Yw(this,b,p)};z.a("AdfDhtmlTableBasePeer.prototype.HandleComponentContextMenu",{Xv:V.prototype.Xv});
V.prototype.C=function(a){if(!this.Hw(a))return p;var b=this.d(),d=w.b,e=a.L(),f=d.T(e),g=this.he(f,this.h());if(g!=n){var h=g[0],g=g[1];if(h!=n)return a.Jb()&&(a=this.pO(f),"expand"==a?b.Wk(h,l):"collapse"==a?b.Wk(h,p):Zw(this,f,d.DJ(e),d.Op(e),e.shiftKey,h,g)),l}if(!this.Gf&&(h=this.Sq(e))&&"sort"==h.type&&!a.na())return ds.qs(b,[h.DEa],[h.Wia]),d.va(e),p;this.gwa&&this.h8(e,f);this.wg&&this.g8(e,f);return l};z.a("AdfDhtmlTableBasePeer.prototype.HandleComponentClick",{C:V.prototype.C});
V.prototype.jk=function(a){if(!a.na()){var b=a.getSource(),d=b.k();d.bind(b);b=d.h();Rw(this,b)&&a.M()&&$w(this)}};z.a("AdfDhtmlTableBasePeer.prototype.HandleComponentValueChange",{jk:V.prototype.jk});function ax(a){return w.b.G()==w.Fc&&a.pda&&(!a.Bd||"Windows"==w.Yh())&&a.lc==zv(a)}V.prototype.qla=function(a){if(!ax(this)){var b=this.Uq();a=this.sk!=n&&w.b.G()==w.ed&&a.r("_afrSlaveId")!=n?-1:zv(this);this.te(b,a);bx(this,-1,a)}};z.a("AdfDhtmlTableBasePeer.prototype.HandleDomScroll",{qla:V.prototype.qla});
function bx(a,b,d,e){a.sk!=n&&(e=!e?1:++e,a.sk.cf?a.sk.te(b,d):4>e?setTimeout(function(){bx(a,b,d,e)},0):D.i.severe("Tried 3 times w/ _associatedPeerScroll "+b+" : "+d))}V.prototype.CWa=function(a){a||(a=F.c.R().event);var b=w.b.T(a);this.Gr!=n&&(b=a.target);this.te(w.b.getScrollLeft(b),-1)};
V.prototype.Rva=function(){var a=-1,b,d;if(ax(this))if(b=this.ea(),d=b.firstChild){var e=w.b.getScrollLeft(b);if(e==this.Rd)return;this.eb()||(a=e)}else return;this.Sva===l?(this.Z$!=n&&(window.clearTimeout(this.Z$),delete this.Z$),this.Z$=window.setTimeout(this.o(this.Rva),0)):(b||(b=this.ea()),d||(d=b.firstChild),d&&(d=b.scrollTop+d.Xa-parseInt(this.mr)-parseInt(this.nr),!this.eb()&&-1==a&&(a=w.b.getScrollLeft(b)),this.te(a,d),bx(this,-1,d)))};
V.prototype.FM=function(){return this.Pa()!=n?{x:this.Uq(),y:zv(this)}:n};z.a("AdfDhtmlTableBasePeer.prototype.__getScrollPos",{FM:V.prototype.FM});V.prototype.EV=function(a,b){cx(this,b);dx(this,a)};z.a("AdfDhtmlTableBasePeer.prototype.__restoreScrollerPositions",{EV:V.prototype.EV});
V.prototype.te=function(a,b,d,e){var f=this.d(),g=V.eGa;e===k&&(e=l);if(-1!=b&&this.lc!=b){delete this.mW;d||f.setProperty("scrollTop",b,l,J.rd);cx(this,b);g=e;!(this.cg==eg.qz||this.cg==eg.Hv)&&!this.PO?(e=this.ea(),this.Zb?(e.scrollTop=b,g=V.lk):this.wg?(e.scrollTop=b,this.If==V.pk&&ex(this),Kv(this),g=V.lk):(g=this.yk(e,e.offsetHeight,g,l),this.Ix!=n&&(g==V.lk?fx(this):g!=V.Qz&&g!=V.yq&&delete this.Ix),this.Sm!=n&&g==V.lk&&gx(this),this.If==V.pk&&ex(this))):g=k;this.Zb||(b=this.dl(),b.xb!=n&&f.setProperty("scrollTopRowKey",
b.xb,l,J.rd));b=this.ea().childNodes;for(e=b.length-1;0<=e;e--)Aw(this,b[e])}-1!=a&&this.Rd!=a&&(d||f.setProperty("scrollLeft",a,l,J.rd),dx(this,a),bw(this,a));return g};z.a("AdfDhtmlTableBasePeer.prototype.scrollToPos",{te:V.prototype.te});
V.prototype.pla=function(a,b){var d=w.b,e=a.e(),f=d.T(b),g=b.keyCode;switch(g){case E.Ya:case E.Ja:case E.Lb:case E.Kb:case E.fi:case E.nm:e=l;if(!this.me(f)){if(g==E.fi||g==E.nm){if(!b.ctrlKey)switch(this.ad.ns){case V.WL:case V.tM:case V.pt:e=n;if(!b.ctrlKey&&!b.shiftKey){for(f=g==E.fi?hx(this,this.ad.vc):ix(this,this.ad.vc);f;)e=f,f=g==E.fi?hx(this,e):ix(this,e);e&&(jx(this,e),Mq(this,e))}break;case V.vj:case V.we:if(e=this.ad.rp)if((f=this.Ob(e))&&f.Vb.cells.length)(g=g==E.fi?f.Vb.cells[0]:kx(this,
f.Vb))&&(g.getAttribute(V.Km)!=n?this.Ec(V.vj,e,g):this.Ec(V.we,e,f.Vb,g))}}else switch(this.ad.ns){case V.vj:if(g==E.Ja||g==E.Ya)if(e=g==E.Ya,f=this.ad,g=f.rp,delete this.sr,f=e?this.St(g):this.Qt(g),f.L0)lx(this,p);else{var h=f.JJ,g=f.xb;g!=n?(e=f.pb,h=this.tq(e),this.Ec(V.vj,g,h),mx(this,e)):h!=n?(this.Pa(),g=this.lc+(e?-this.xe:this.xe),0<g&&g<Ow(this)&&(this.sr=h,this.Ix=e?V.b6:V.a6,Cw(this,n,g))):(f=e?nx(this):this.dl(),f.xb!=n&&(h=this.tq(f.pb),this.Ec(V.vj,f.xb,h),mx(this,f.pb)))}else g==
E.Lb?this.ad.rp!=n&&(f=this.ad,g=f.rp,e=f.vc.parentNode,tv(this)&&(this.dg(),ox(this,g,e)),f=px(this,dw(this),p),this.Ec(V.we,g,e,f)):g==E.Kb&&this.ad.rp!=n&&qx(this,l);break;case V.WL:switch(g){case E.Lb:if(g=ix(this,this.ad.vc))jx(this,g),Mq(this,g);break;case E.Kb:if(g=hx(this,this.ad.vc))jx(this,g),Mq(this,g);break;case E.Ja:if(g=this.ad.vc)g=rx(this,g),0<=g&&sx(this,g)}break;case V.pt:e=b.ctrlKey;f=b.shiftKey;h=this.cf;switch(g){case E.Lb:if(g=ix(this,this.ad.vc))jx(this,g),!this.d().getDisableColumnReordering()&&
e&&f?tx(this,p):(Mq(this,g),f&&Vw(this)&&ux(this,g));break;case E.Kb:if(g=hx(this,this.ad.vc))jx(this,g),!this.d().getDisableColumnReordering()&&e&&f?tx(this,l):Mq(this,g)!=V.tM&&f&&Vw(this)&&ux(this,g);break;case E.Ya:case E.Ja:var m=this.ad.vc;if(m)if(e&&f){if(h&&(g=E.Ya==g?V.vM:V.gV,e=this.ad,e.ns==V.pt&&(e=e.vc,f=e.id,h=w.b.getElementById(M.g(f,V.At)))))h=h.getAttribute(V.sA),m=F.c.j(f).getSortProperty(),f=V.zV(f),h!=g&&(f=g==V.gV?p:l,this.d().setProperty("currentlySelectedHeaderId",e.id),ds.qs(this.d(),
m,f))}else if(1<m.colSpan){if(g=E.Ya==g?vx(m):wx(m))jx(this,g),Mq(this,g)}else if(E.Ja==g)attrs=this.dl(),rowKey=attrs.xb,g=attrs.pb,tv(this)&&rowKey!=n&&(ox(this,rowKey,g),mx(this,g)),this.Ec(V.we,rowKey,g);else if(g=rx(this,m),0<=g&&xx(this)&&(e=this.Gb(),!this.Gf&&e)){e=V.Ra(e,"t").rows[1].cells[0];for(f=0;f<g&&e;f++)e=ix(this,e);e&&Mq(this,e)}}break;case V.we:if(g==E.Ya||g==E.Ja){var f=g==E.Ya,q=b.ctrlKey,s=b.shiftKey,y=tv(this),A=this.fAa,g=this.lc+(f?-this.xe:this.xe);if(!y&&!A)0<=g&&g<Ow(this)&&
Cw(this,n,g);else{h=this.vz();delete this.sr;var C=f?this.St(h):this.Qt(h);if(C.L0)g=rx(this,dw(this)),sx(this,-1==g?0:g);else{var G=yx(this),m=C.JJ,e=C.xb;if(e!=n){g=C.pb;if(y)if(s&&G)this.kn(e)!=n&&this.kn(m)!=n?(f=f?this.Qt(e):this.St(e),zx(this,m,f.pb)):this.kn(e)?zx(this,e,g):ox(this,e,g);else if(!q||!G||!A)"enabled"==this.d().getSelectionEventDelay()?(f=F.c,(h=this.Ob(h))&&h.Vb&&Ax(h.Vb),Bx(this,g),this.sda&&(f.ac(this.sda),delete this.sda),this.sda=f.oa(this,this.C0a,[e,g],300)):(this.dg(),
ox(this,e,g));this.Ec(V.we,e,g);mx(this,g);delete this.Ix}else if(m!=n){if(0<g&&g<Ow(this)){this.sr=m;this.Ix=q&&G&&A||!y&&A?f?V.d6:V.c6:f?V.Fqa:V.Eqa;if(!s&&!q||!G)h=p,f||(e=this.Yd(),0<=e&&(f=this.ea().childNodes,f=f[f.length-1],h=f.la+f.Db==e)),h||this.dg();Cw(this,n,g)}}else C=f?nx(this):this.dl(),e=C.xb,e!=n&&(g=C.pb,y&&ox(this,e,g),this.Ec(V.we,e,g),mx(this,g))}}}else(g==E.Kb||g==E.Lb)&&this.Jz(g==E.Kb,b.ctrlKey,b.shiftKey);break;case V.tM:switch(g){case E.Ya:xx(this)&&lx(this,p,l,l);break;
case E.Ja:g=this.ea().childNodes;if(0<g.length&&(g=g[0].rows[0]))e=g.getAttribute(V.Ba),f=this.tq(g),this.Ec(V.vj,e,f),mx(this,g);break;case E.Lb:e=this.Gb(),f=V.Ra(e,"t"),B.ub(f),g=xx(this)?2:1,f.rows&&1<f.rows[g].cells.length?Mq(this,f.rows[g].cells[1]):(e=V.Ra(e,"d2"),f=V.Ra(e,"t2"),f.rows&&1<f.rows[g].cells.length&&Mq(this,f.rows[g].cells[0]))}}e=p}e||d.va(b);break;case E.$a:d=Dw(this,b),g=M.g(e,V.nMa),d&&d.getAttribute("_afrFH")!=n?(d=new Vb(a),d.aS(l),a.Fg(d),a.setSelectedRowKeys(n)):f.id==
g&&(d=a.r("rows"),0<d&&(d*=f.value-1,0<=d?Cx(this,d,b):(g=F.c.u(),d=g.V("af_table.MSG_NAVBAR_PAGE_INVALID"),g=g.V("af_table.MSG_NAVBAR_PAGE_INVALID_DETAIL"),d=new Ea(Ea.Ef,d,g),F.c.ff(e),F.c.Hp(n)&&F.c.ff(n),F.c.rn(e,d),a.focus())))}};z.a("AdfDhtmlTableBasePeer.prototype.HandleDomKeyDown",{pla:V.prototype.pla});
function bw(a,b){var d=w.b,e=a.ea();if(a.eb()){a.Gf||V.w0a(a.Gb(),b);a.Po||V.v0a(Jv(a),b);for(var d=e.childNodes,f=0;f<d.length;f++)Dx(a,d[f],b)}else a.Gf||d.setScrollLeft(a.Gb(),b),Lv(a)||d.setScrollLeft(Jv(a),b),d.setScrollLeft(e,b);if(a.If==V.pk){d=a.Gb();if(a.Pa()==n)f=p;else if(f=n,f=Lv(a)&&!a.Zb?a.Pa():a.Pa()[V.uj],0==f.scrollLeft)f=p;else var g=f.scrollWidth-f.clientWidth,h=Math.ceil((0<a.xe?a.xe:1)/2),h=h>V.Hm?V.Hm:h,f=g-f.scrollLeft<=h?l:p;f?Ow(a)>Pw(a)&&(f=Ex(a)-Fx(a),V.fb()?(e.style.left=
f+"px",a.Gf||(d.style.left=f+"px")):(e.style.left=-1*f+"px",a.Gf||(d.style.left=-1*f+"px"))):(e.style.left="0px",a.Gf||(d.style.left="0px"))}}
V.prototype.yk=function(a,b,d,e){var f=V.lk;if(this.Zb)return this.Ih(),V.rg(a,""),this.hj(),f;if(this.wg)return Av(this),f=this.VO(a,b),f&V.yq?fw(this,a,b,d,e):(this.Ih(),V.rg(a,""),this.hj()),f;if(0<this.Be)if(f=this.VO(a,b),f==V.lk){Gx(this,a);this.Ih();V.rg(a,"");b=(this.Jo?V.rw:this.jd)-b;if(0<b)if(this.lc<b/2){if(a=a.childNodes,!(1>a.length)&&(d=a[0],b=d.Xa,0>b)){cx(this,this.lc-d.Xa);for(d=0;d<a.length;d++)a[d].Xa-=b}}else if(b=a.childNodes,!(1>b.length)){d=b[b.length-1];d=d.Xa+d.kc-this.jd;
if(-1==this.Yd()||this.Jo&&0>d)d+=V.Hm,this.Jo&&0>d&&(d=0);if(0<d){cx(this,this.lc-d);for(e=0;e<b.length;e++)b[e].Xa-=d}-1==this.Yd()&&(a=this.jd-a.offsetHeight-V.Hm,this.lc>a&&cx(this,a))}this.hj()}else f&V.Qz?Hx(this,a,b,d,e):f&V.yq?fw(this,a,b,d,e):this.JG(a,b,d,e);return f};
function Ix(a){if(a.Pa()==n)return p;var b=n,b=Lv(a)&&!a.Zb?a.Pa():a.Pa()[V.Mm];if(0==b.scrollTop)return p;a=Math.ceil((0<a.xe?a.xe:1)/2);a=a>V.Hm?V.Hm:a;w.Yh()==w.ek&&(a=Math.ceil(b.offsetHeight/10));return b.scrollHeight-b.scrollTop-b.offsetHeight<=a?l:p}
function Kv(a){if(a.wg){var b=w.b,d=a.d(),e=a.ea();a.Aba=e.style.width;a.bP=a.Aba;if(a.If==V.pk){var f=a.h();a.bP=w.b.getElementById(M.g(f.id,V.fA)).style.width}var f=e.childNodes,g=Rv(a,p),h=Rv(a,l),m=p,q=p,s=a.Pa();s!=n&&!Lv(a)&&(s=s[V.Mm]);var y=0<Sv(a)?l:p,s=s==n?p:s.scrollHeight>s.clientHeight?l:p;if(Ix(a)||!y&&!s)Jx(a,e,p)&&(m=l);else{var A=n,A=Lv(a)&&!a.Zb?a.Pa():a.Pa()[V.Mm],C=Math.ceil((0<a.xe?a.xe:1)/2),C=C>V.Hm?V.Hm:C;A.scrollTop<C&&Jx(a,e,l)&&(q=l)}if(m){if(a.rr&&!a.RG)Kx(a,l),a.RG=l;
else if(!a.WG&&!a.rr){a.nr=(y||s)&&e.scrollHeight+a.lW>=e.clientHeight?-1*a.lW+"px":"0px";e.style.top=parseInt(a.nr)+parseInt(a.mr)+"px";g.style.top=parseInt(a.nr)+parseInt(a.mr)+"px";g.style.display="block";g.style.width=a.bP;a.WG=l;if(!a.mta&&(A=g.offsetHeight))m=g.childNodes[0].childNodes[0].offsetHeight,m=Math.ceil((A-m)/2),a.Bd?(g=b.getElementById(M.g(d.e(),V.Soa)),g.style.paddingTop=m+"px",g.style.display="inline-block"):g.childNodes[0].style.top=m+"px",a.mta=A;!y&&!s&&a.Pm(a.mta,e,p)}y=f.length;
e=f[0];y=f[y-1];Lx(a,e.la,y.la+y.Db,a.Be,p)}else a.rr&&a.RG?a.RG=p:a.WG&&!a.rr&&(e.style.top="0px",g.style.top="0px",g.style.display="none",a.WG=p,a.nr="0px");if(q){if(a.rr&&!a.RG)Kx(a,p);else if(!a.UO&&!a.rr&&(h.style.display="block",h.style.width=a.bP,a.UO=l,!a.F1a&&(q=h.offsetHeight)))m=h.childNodes[0].childNodes[0].offsetHeight,m=Math.ceil((q-m)/2),a.Bd?(b=b.getElementById(M.g(d.e(),V.Toa)),b.style.paddingTop=m+"px",b.style.display="inline-block"):h.childNodes[0].style.top=m+"px",a.F1a=q;y=f.length;
e=f[0];y=f[y-1];Lx(a,e.la,y.la+y.Db,a.Be,l)}else a.rr&&a.RG?a.RG=p:a.UO&&!a.rr&&(h.style.display="none",a.UO=p)}}function Jx(a,b,d){var e=b.childNodes,f=e.length,g=0;b=p;for(var h=0;h<f;h++)e[h].rows!=n&&(g+=e[h].rows.length);if(0<g&&!a.DA(e,f))if(g=e[0],e=e[f-1],d&&0<g.la)b=l;else if(!d&&(e.la+e.Db<a.Ys()||0>a.Yd()))b=l;return b}
function ex(a){var b=a.ea();Ix(a)?Mx(a)>Ex(a)&&(a.mr=-1*(Pw(a)-Nx(a))-a.Me+"px",b.style.top=a.WG?parseInt(a.mr)+parseInt(a.nr)+"px":a.mr):(a.mr="0px",b.style.top="0px")}
V.prototype.VO=function(a,b){for(var d=a.childNodes,e=d.length,f=V.oT,g=this.lc,h=0,m=0;m<e;m++)h+=d[m].rows.length;if(0<h&&(f=V.lk,!this.DA(d,e))){var h=d[0],d=d[e-1],e=this.Jo?V.rw:this.jd,m=h.Xa-g,q=d.Xa+d.kc-g;if(0<m||0==g&&0<h.la)f|=V.Qz;if(this.wg)q<b&&(f|=V.yq);else{if(q<b&&e>=b||g>=e-b&&d.la+d.Db<this.Ys())f|=V.yq;if(f!=V.lk&&(m>b||0>q))f=V.oT}}return f};
function Hx(a,b,d,e,f){var g=b.childNodes,h=g.length,m=g[0];if(0==m.la){for(m=f=0;m<h;m++){var q=g[m],s=q.kc;q.Xa=f;f+=s}cx(a,0);a.yk(b,d,e)}else b=m.la,d=Ox(m),a.Kl(eg.Yn,b,d,e,!f)}function fw(a,b,d,e,f){var g=b.childNodes,h=g.length,m=g[h-1],q=m.la+m.Db,s=a.Yd();if(0<s&&q>=s){f=a.jd-d;m=a.jd;q=p;for(h-=1;0<=h;h--)s=g[h],m-=s.kc,s.Xa!=m&&(q=l,s.Xa=m);if(a.lc!=f||q)cx(a,f),a.yk(b,d,e)}else b=q-1,d=Px(m),a.Kl(eg.dk,b,d,e,!f)}
V.prototype.JG=function(a,b,d,e){var f,g,h,m,q,s=this.d().getFetchSize();f=this.lc;m=this.Ys();var y=F.c.u();h=this.Jo?V.rw:this.jd;g=-1==this.Yd()||this.Jo?V.Hm:0;f>=h-g-b?(h=eg.LT,g=m-1,f=y.V("af_table.LABEL_END"),-1==this.Yd()&&(f=y.V("af_table.LABEL_ROW",g+1)),q=g,m=q-s+1):(h=eg.YS,0==f?(f=y.V("af_table.LABEL_START"),g=0):(g=Math.round(f/this.xe),f=y.V("af_table.LABEL_ROW",g+1),B.assert(g<m)),m=g,q=g+s-1);var A=a.childNodes;if(0<A.length){s=A[A.length-1];A=A[0].la;s=s.la+s.Db;if(m>=A&&m<s){fw(this,
a,b,d,e);return}if(q>=A&&q<s){Hx(this,a,b,d,e);return}}d&&this.oz(y.V("af_table.LABEL_GOING_TO",f));this.Kl(h,g,n,d,!e)};
function Qx(a,b,d,e){function f(f,g){var m=h[f];if(m==e)return g;var q=m.Xa-y;if(0>q+m.kc||q>d){if(a.wg){q=m.Xa;0==q&&f+1<h.length&&(q=h[f+1].Xa);for(var s=f+1;s<h.length;s++)h[s].Xa-=q;a.Pm(-1*m.kc,b);0<a.lc-q&&cx(a,a.lc-q)}q=m.Db;a.fh(m);b.removeChild(m);g-=q}return g}var g=a.d(),h=b.childNodes,m=h.length,q,g=a.wg?g.getMaxClientRows():a.cZa;if((a.Bd||a.wg)&&0<m)if(q=h[m-1],q=q.la-h[0].la+q.Db,q<=g)return;var s=l;h[0]!=e&&(s=p);var y=a.lc;if(s||!a.wg)for(s=m-1;0<=s&&!((a.Bd||a.wg)&&q<=g);s--)q=f(s,
q);else for(s=0;s<m&&!(s>h.length-1||(a.Bd||a.wg)&&q<=g);s++)q=f(s,q)}V.prototype.fh=function(a){F.c.th(a);w.b.gc(a)};function Gx(a,b){var d=b.firstChild,e=a.lc;d&&(b.scrollTop=e-d.Xa);if((!a.Bd||"Windows"==w.Yh())&&w.b.G()==w.Fc)a.pda=l,setTimeout(V.iza,100,a)}V.iza=function(a){a.pda=p};function Vv(a){var b=a.ea(),d=b.firstChild;d&&cx(a,d.Xa+b.scrollTop)}
V.prototype.$o=function(a,b,d,e){var f=this.gO++,g=this.d(),h=new eg(g,f,b,d,e);h.Cc(l);h.rD(a);var m=p;a?F.c.Up(h):(g.Fg(h),m=h.na());m||(this.cg=b,this.xx=f,this.YA=d,this.Nt=e,this.AP=a);return m?n:h};
V.prototype.Kl=function(a,b,d,e,f){a==this.cg&&b==this.YA&&d==this.Nt||(e?(e=new Function("var c \x3d arguments.callee;c._self._delayedNavigate(c._sTop, c._subtype, c._index, c._key, c._renderOnly);"),e._sTop=this.lc,e._subtype=a,e._index=b,e._key=d,e._renderOnly=f,e._self=this,setTimeout(e,300),this.vK()):(a=this.$o(f,a,b,d))?(b=F.c.u().V("af_table.LABEL_FETCHING"),this.oz(b),V.rg(this.ea(),"wait"),this.Dk&&(a.Vy(this.xW(this.Dk)),this.Dk=n)):Vv(this))};
V.prototype._delayedNavigate=function(a,b,d,e,f){this.lc==a&&this.Kl(b,d,e,p,f)};V.prototype.vK=function(){this.AP=this.xx=this.Nt=this.YA=this.cg=k};z.a("AdfDhtmlTableBasePeer.prototype.CancelPendingFetch",{vK:V.prototype.vK});V.prototype.XK=function(){return this.cg!=k};v("AdfDhtmlTableBasePeer.prototype.IsFetchPending",V.prototype.XK);z.a("AdfDhtmlTableBasePeer.prototype.IsFetchPending",{XK:V.prototype.XK});V.prototype.Kp=function(){return this.cg==eg.qz||this.cg==eg.Hv||this.cg==eg.dk};
z.a("AdfDhtmlTableBasePeer.prototype.isDisclosureFetchPending",{Kp:V.prototype.Kp});
V.prototype.VK=function(a,b,d,e,f){this.KX(a,b,d);var g=this.ea(),h=g.offsetHeight;Rx(this,a,g.offsetWidth);rw(this,a);Sx(this,a);var m;a:{m=this.ea().childNodes;for(var q=0;q<m.length;q++){var s=m[q],y=s.la;if(b>=y&&b<=y+s.Db){m=s;break a}}m=n}B.assert(m);q=m;y=n;s=b-q.la;if(0!=s){if(s<q.Db){if(d==e){B.assert(0<=s);B.assert(s<q.Db);y=q.cloneNode(p);y.Db=q.Db-s;var A=H.Ua(q,"TBODY");B.assert(A!=n,"Illegal State: data block with no tbody");for(var C=A.cloneNode(p),G=q.rows,K=q.Db-1;K>=s;K--){var N=
G[K];A.removeChild(N);C.insertBefore(N,C.firstChild)}A=w.b;this.qi()&&(K=H.Ua(q,"COLGROUP"))&&y.appendChild(K.cloneNode(l));y.appendChild(C);C=y.rows[0].cells;G=G[0].cells;K=C.length;for(N=0;N<K;N++)C[N].style.width=G[N].style.width;A.wa(y)}else{B.assert(0<=s);B.assert(s<q.Db);G=q.rows;for(A=q.Db-1;A>=s;A--)this.fh(G[A]),q.deleteRow(A)}q.Db=s;q.kc=q.offsetHeight}q=q.nextSibling}g.insertBefore(a,q);q=y;this.gw(a);a.kc=a.offsetHeight;a.Xa=b==m.la?m.Xa:m.Xa+m.kc;Aw(this,a);q&&(g.insertBefore(q,a.nextSibling),
q.kc=q.offsetHeight,this.gw(q));if(d==e){for(m=a;q=m.nextSibling;)q.la=m.la+m.Db,q.Xa=m.Xa+m.kc,m=q;m=a.kc}else{for(m=g.lastChild;a!=m;)this.fh(m),g.removeChild(m),m=g.lastChild;m=this.xe*e}this.Be+=e;-1!=this.ae&&(this.ae+=e);this.Pm(m,g);0==f&&(this.dj()||Qx(this,g,h,a),Av(this),gw(this,g),this.Gs(a,b,d))};z.a("AdfDhtmlTableBasePeer.prototype.InsertBlock",{VK:V.prototype.VK});V.prototype.KX=function(a,b,d){a.style.position="relative";a.la=b;a.Db=d};
V.prototype.gw=function(a){var b=this.Rd;this.eb()&&0!=b&&Dx(this,a,b)};z.a("AdfDhtmlTableBasePeer.prototype.SetNewBlockScrollLeft",{gw:V.prototype.gw});
V.prototype.Pm=function(a,b,d,e){if(0!=a){var f=this.jd;if(this.Zb||this.wg)this.jd+=a;else{var g=this.jd+a,h=-1==this.Yd()?V.Hm:0,m=this.Ys();this.xe=Math.round((g-h)/m);this.jd=this.xe*m+h}wv(this,this.jd);if(e&&(e=this.jd/f,f=b.firstChild)){g=f.Xa;f.Xa=Math.round(f.Xa*e);g=f.Xa-g;for(f=f.nextSibling;f;)f.Xa+=g,f=f.nextSibling;cx(this,Math.round(this.lc*e))}this.lc=zv(this)}if(0!=a||d)a=this.h(),this.Gq(b,a.clientWidth,a.clientHeight)};v("AdfDhtmlTableBasePeer.prototype._adjustCanvasHeight",V.prototype.Pm);
function gw(a,b){var d=b.lastChild,e=d.Xa,f=d.previousSibling;f!=n&&f.kc!=f.offsetHeight&&(e=f.Xa+f.offsetHeight,f.kc=f.offsetHeight,d.Xa=e);d!=n&&(a.Yd()==d.la+d.Db&&e+d.kc>a.jd)&&(a.jd=e+d.kc,wv(a,a.jd),d=a.h(),a.Gq(b,d.clientWidth,d.clientHeight))}
V.prototype.Gq=function(a,b,d){var e=w.b,f=Sv(this),g=Tx(this);b=Math.max(0,b-f);this.If==V.pk&&(b+=f);a.style.width=b+"px";d=Math.max(0,d-this.Zc-this.Me-this.ji-g);Kv(this);this.If==V.pk&&(d+=g);a.style.height=d+"px";this.Gf||(f=this.Gb().style,f.width=a.style.width,0<g?f.borderRightWidth="":f.borderRightWidth="0px");this.Po||(f=Jv(this).style,f.width=a.style.width,0<g?f.borderRightWidth="":f.borderRightWidth="0px");!this.Fb&&this.eb()&&Ux(this,a,b);this.PA=d;g=a.childNodes;0!=g.length&&(g=g[0],
g.Db!==k&&(a=Math.round(a.clientHeight/(g.offsetHeight/g.Db)+0.5),g=this.d(),this.hYa&&g.setProperty("viewportSize",a,p,J.rd)));if(this.If==V.pk&&(a=this.h(),b=e.getElementById(M.g(a.id,V.fA))))g=e=0,this.XP||(Lv(this)&&!this.Zb?(vscroller=this.Pa(),hscroller=this.Pa()):(vscroller=this.Pa()[V.Mm],hscroller=this.Pa()[V.uj]),hscroller!=n&&hscroller!=n&&(e=vscroller.offsetWidth-vscroller.clientWidth,g=hscroller.offsetHeight-hscroller.clientHeight)),b=b.style,b.height=a.offsetHeight-this.Zc-this.Me-g+
"px",b.width=a.offsetWidth-e+"px";return d};z.a("AdfDhtmlTableBasePeer.prototype.SizeDataBody",{Gq:V.prototype.Gq});function Sv(a){if(a.Fb)return 0;var b=0,d=a.Pa();Lv(a)&&!a.Zb?0<d.clientWidth&&(b=d.offsetWidth-d.clientWidth):(a=d[V.Mm],0<a.clientWidth&&(b=a.offsetWidth-a.clientWidth));return b}
function Tx(a){if(a.Fb)a=a.h(),a=a.offsetHeight-a.clientHeight;else{var b=a.Pa();Lv(a)&&!a.Zb?a=3<b.clientHeight?b.offsetHeight-b.clientHeight:0:(a=b[V.uj],a=3<a.clientHeight?a.offsetHeight-a.clientHeight:0)}return a}
V.prototype.HG=function(a,b,d,e){var f=w.b,g=f.Sa(a,"_startRow",0),h=V.hX(a);if(b==eg.qz)return this.uE(a,h,e);if(b==eg.Hv)return this.Dz(a,g,e);if(b==eg.rK)return this.K3(a,h,e);var m=this.ea();e=m.offsetHeight;var q=m.childNodes,s=q.length,y=this.lc;this.KX(a,g,h);0<h&&(Rx(this,a,m.offsetWidth),rw(this,a),Sx(this,a));this.Sva=l;try{if(b==eg.YS||b==eg.LT){this.jL(m);m.appendChild(a);var A=a.offsetHeight;this.Bt(m,a,h,A);d=0;if(y>=(this.Jo?V.rw:this.jd)-e||this.Jo&&this.Yd()==a.la+a.Db)d=A-e;a.Xa=
y-d;a.kc=A}else{if(b==eg.dk){var C=q[s-1];if(0==h)if(-1==this.Yd()){var G=f.Sa(C,"_rowCount",-1);this.ae=-1==G?this.Be:G;0==q[0].Xa&&C.Xa+C.kc<=this.jd&&(this.jd=C.Xa+C.kc,wv(this,this.jd))}else this.Bt(m,a);else{a.Xa=C.Xa+C.kc;m.appendChild(a);a.kc=a.offsetHeight;var K=g-C.la-C.Db;0!=K&&this.sL(C,K,p);this.Bt(m,a);if(0!=K&&!this.$K())for(var N=C;N;){var Q=N.previousSibling;this.fh(N);m.removeChild(N);N=Q}var T=g+h-this.Ys();if(0<T){this.Be+=T;var Y=a.kc;if(T<h)for(var Y=0,ra=a.rows,g=h-T;g<h;g++)Y+=
ra[g].offsetHeight;this.Pm(Y,m)}else gw(this,m),this.wg&&(a&&0<a.kc)&&(Y=a.kc,this.Pm(Y,m));q=m.childNodes;s=q.length;this.DA(q,s)&&(C=q[s-1],this.jd=C.Xa+C.kc,wv(this,this.jd))}}else if(b==eg.Yn){var wa=q[0];m.insertBefore(a,wa);var Ca=a.offsetHeight;a.kc=Ca;if(this.wg){a.Xa=0;for(A=1;A<q.length;A++)q[A].Xa+=Ca;Y=a.kc;this.Pm(Y,m)}else a.Xa=wa.Xa-Ca;K=g-wa.la+h;0!=K&&this.sL(wa,K,l);var La=this.Bt(m,a);if((0!=K||0!=La)&&!this.$K())for(N=wa;N;)Q=N.nextSibling,this.fh(N),m.removeChild(N),N=Q}d||Qx(this,
m,e,a);this.wg&&(a&&0<a.kc)&&Kv(this);Gx(this,m);fx(this);this.Sm!=n&&gx(this)}}finally{delete this.Sva}0!=h&&(this.gw(a),Aw(this,a));this.kw(p);return l};V.prototype.Bt=function(a,b,d,e){var f=0,g=this.Yd();if(-1!=g){var h=w.b.Sa(b,"_rowCount",-1);0==this.si?h=-1:0<this.si&&(h=this.si);-1!=h&&(f=h-g)}0!=f&&(this.ae=this.Be=h,this.Pm(d!=k&&e!=k&&d==h?e-this.xe*g:this.xe*f,a,p));return f};V.prototype.uE=function(a,b,d){return Vx(this,a,d,l)};z.a("AdfDhtmlTableBasePeer.prototype.HandleExpand",{uE:V.prototype.uE});
V.prototype.Dz=function(a,b,d){return Vx(this,a,d,p)};z.a("AdfDhtmlTableBasePeer.prototype.HandleCollapse",{Dz:V.prototype.Dz});
function Vx(a,b,d,e){var f=b.getAttribute("_startKey"),g=n;f&&(g=a.Ob(f));if(g){for(var h=F.c,f=g.Vb,g=g.n_,m=w.b,q=n,s=f.cells,y=0;y<s.length;y++)if(m.getAttribute(s[y],V.mJa,p)){q=s[y];break}if(q){if(m=V.Pd(q,"A"))s=e?V.BU:V.AU,q=F.c.u(),s=q.getStyleClass(s),m.className=s,q=e?q.V(V.R5):q.V(V.n5),m.title=q;(m=a.wG(m))&&H.Av(m,e?V.Hoa:V.Goa)}var q=g.kc,m=n,A;h.Ac()&&!a.dj()&&(A=parseInt(h.u().ka("af|table-tr-detail-animation-duration")));e?(h=f.cells.length,b=b.rows[0],1<h&&(b.cells[0].colSpan=h),
b.parentNode.removeChild(b),f.parentNode.insertBefore(b,f.nextSibling),w.b.wa(b),0<A&&(m=b.cells[0])):(b=f.nextSibling,w.fa().getAttribute(b,V.wo,p)?(a.fh(b),0<A?(b.style.display="none",m=b.cells[0]):b.parentNode.removeChild(b)):D.i.severe("Unable to locate detail row"));b=g.offsetHeight;g.kc=b;b-=q;for(g=g.nextSibling;g;)g.Xa+=b,g=g.nextSibling;g=a.ea();a.Pm(b,g);0==d&&(Av(a),gw(a,g));if(m!=n){d=m;g=d.ownerDocument;g=e?g.createElement("div"):d.firstChild;f=g.style;b=0;if(e){f.overflow="hidden";f.height=
"1px";f.position="relative";b=w.b.getComputedStyle(d);f=w.ua;b=d.clientHeight-f(b.paddingTop)-f(b.paddingBottom);for(f=d.firstChild;f;)g.appendChild(f),f=d.firstChild;d.appendChild(g)}else d.parentNode.style.display="";Qg(3,A,[{element:g,ib:{height:b}}],n,!e?V.V2:n,!e?{CD:d.parentNode,f1:a}:n)}return l}return p}V.V2=function(a){var b=a.CD;a=a.f1;b.parentNode.removeChild(b);a.PO=p;a&&(a.TE(p),a.tI&&(a.tI(),a.tI=n),a.hj())};v("AdfDhtmlTableBasePeer.CollapseAnimationComplete",V.V2);V.prototype.TE=da("Ho");
z.a("AdfDhtmlTableBasePeer.prototype.SetAnimating",{TE:V.prototype.TE});V.prototype.Gv=r("Ho");v("AdfDhtmlTableBasePeer.prototype.BusyAnimating",V.prototype.Gv);z.a("AdfDhtmlTableBasePeer.prototype.BusyAnimating",{Gv:V.prototype.Gv});V.prototype.K3=function(a,b,d){delete this.yY;if(0<b){b=this.AW;b!=n&&"none"!=b&&(Rx(this,a,this.ea().offsetWidth),Sx(this,a));b=a.rows;a=b[0];b=1<b.length&&this.cn?b[1]:n;var e=w.b.getAttribute(a,V.Ba);aw(this,e,a,b);0==d&&Wx(this);return l}0==d&&Wx(this);return p};
z.a("AdfDhtmlTableBasePeer.prototype.HandleClickToEditActiveRow",{K3:V.prototype.K3});
function aw(a,b,d,e){var f=w.b;if(b=a.Ob(b)){var g=b.Vb;b=b.n_;var h=b.kc,m=g;B.assert(m!=n,"Unable to copy cell widths if the given source row is invalid!");B.assert(d!=n,"Unable to copy cell widths if the target row is invalid!");for(var q=n,s=n,y=m.cells,A=d.cells,C=y.length,G=0;G<C;G++)q=y[G],s=A[G],s.style.width=q.style.width;if(0<=a.$e){var m=Hw(a,m),K=Hw(a,d);if(a.qi()&&(y=V.Pd(m,"COLGROUP"),q=V.Pd(K,"COLGROUP"),y&&q)){y=y.childNodes;A=q.childNodes;C=y.length;for(G=0;G<C;G++)q=y[G],s=A[G],
"COL"==q.tagName&&"COL"==s.tagName&&(s.style.width=q.style.width)}y=m.rows[0].cells;A=K.rows[0].cells;C=y.length;for(G=0;G<C;G++)q=y[G],s=A[G],s.style.width=q.style.width}a.fh(g);g.parentNode.replaceChild(d,g);f.wa(d);e&&(g=d.nextSibling,f.getAttribute(g,V.wo,p)&&(a.fh(g),g.parentNode.replaceChild(e,g),f.wa(e),e.cells[0].colSpan=d.cells.length));e=b.offsetHeight;b.kc=e;e-=h;for(f=b.nextSibling;f;)f.Xa+=e,f=f.nextSibling;a.eb()&&(cells=d.cells,V.Pd(Zr(a)?cells[0]:cells[cells.length-1],"DIV").onscroll=
a.VG);a.Pm(e,a.ea(),l)}}function Wx(a){Av(a);var b=a.Rd;0!=b&&bw(a,b);a.EP=F.c.oa(a,a.QY,l,10)}V.prototype.VE=function(a){this.d().setProperty("first",a,p,J.rd)};z.a("AdfDhtmlTableBasePeer.prototype.SetFirst",{VE:V.prototype.VE});V.prototype.WE=function(a){this.d().setRows(a)};z.a("AdfDhtmlTableBasePeer.prototype.SetRows",{WE:V.prototype.WE});
V.prototype.kw=function(a){var b=this.d();F.c.WEa(b);if(!this.Zb){var d=this.ea().childNodes;if(0!=d.length){var e=d[0].la,d=d[d.length-1],d=d.la+d.Db-e;this.VE(e);this.WE(d);e=this.dl();e.xb!=n&&!a&&b.setProperty("scrollTopRowKey",e.xb,l,J.rd)}}};z.a("AdfDhtmlTableBasePeer.prototype.UpdateRange",{kw:V.prototype.kw});
function fx(a){var b=a.Ix,d=n;if(b!=n){if(b==V.Hqa)d=a.dl();else if(b==V.Gqa)d=nx(a);else if(b==V.Eqa||b==V.a6||b==V.c6)d=a.Qt(a.sr);else if(b==V.Fqa||b==V.b6||b==V.d6)d=a.St(a.sr);var e=d.xb,d=d.pb;e!=n&&(b==V.b6||b==V.a6?(b=a.tq(d),a.Ec(V.vj,e,b)):(b!=V.d6&&b!=V.c6&&ox(a,e,d),a.Ec(V.we,e,d)),mx(a,d));delete a.Ix}}
V.prototype.oz=function(a,b){var d=this.hx();if(d){d.innerHTML=a;var e=d.style;if("none"==e.display){e.zIndex=5E3;var f=this.ea();e.visibility="hidden";e.display="block";var g;g=this.cf?f.offsetHeight:this.h().clientHeight-this.Zc;e.top=this.Zc+Math.floor((g-d.offsetHeight)/2)+"px";g="25px";b&&(g=Math.floor(f.offsetWidth/2-d.offsetWidth/2)+"px");V.fb()?e.left=g:e.right=g;e.visibility="visible"}}};z.a("AdfDhtmlTableBasePeer.prototype.DisplayStatus",{oz:V.prototype.oz});
V.prototype.Ih=function(){var a=this.hx();a&&Xx(this,a)};
function Xx(a,b){var d=w.b,e=a.Pa(),f;a:if(ya.isArray(e)){for(f=0;f<e.length;f++)if(e[f]!=n){f=l;break a}f=p}else f=e!=n;f=f&&d.G()==w.aa&&8<=d.nb();var g;if(f)if(ya.isArray(e)){g=[];for(var h=0;h<e.length;h++)g[h]={x:d.getScrollLeft(e[h]),y:e[h].scrollTop}}else g={x:d.getScrollLeft(e),y:e.scrollTop};b.style.display="none";if(f)if(ya.isArray(e))for(h=0;h<e.length;h++)d.setScrollLeft(e[h],g[h].x),e[h].scrollTop=g[h].y;else d.setScrollLeft(e,g.x),e.scrollTop=g.y}
V.prototype.ea=function(a){if(this.cua){a=this.Sg(V.fA,a).childNodes;for(var b=0;b<a.length;b++)if(a[b].id!=n&&0<a[b].id.indexOf("db"))return a[b];return n}return this.Sg("db",a)};z.a("AdfDhtmlTableBasePeer.prototype.GetDataBody",{ea:V.prototype.ea});V.prototype.hx=function(){return this.Sg("sm")};V.prototype.Gb=function(){return this.Sg("ch")};z.a("AdfDhtmlTableBasePeer.prototype.__getColumnHeader",{Gb:V.prototype.Gb});function Jv(a){return a.Sg("cf")}
function Rv(a,b){var d=a.h();if(a.cua){var e=a.h();(e=w.b.getElementById(M.g(e.id,V.fA)))&&1<e.childNodes.length&&(d=e)}d=d.childNodes;for(e=0;e<d.length;e++)if(d[e].id!=n&&0<d[e].id.indexOf(b?V.fLa:V.cLa))return d[e];return n}function wv(a,b){var d=a.Pa();b>V.rw?(b=V.rw,a.Jo=l):a.Jo=p;if(Lv(a)&&!a.Zb){var e=d.scrollTop;V.Pd(d,"DIV").style.height=b+"px";d.scrollTop=e}else e=V.Pd(d[0],"DIV"),V.Pd(d[1],"DIV").style.height=e.style.height=b+"px"}
V.prototype.Pa=function(){if(Lv(this)&&!this.Zb)return this.Sg("scroller");var a=[];a[V.uj]=this.Sg("hscroller");a[V.Mm]=this.Sg("vscroller");return a};z.a("AdfDhtmlTableBasePeer.prototype.GetScroller",{Pa:V.prototype.Pa});function Cw(a,b,d){var e=w.fa(),f=b!=n&&V.fb()&&e.G()==w.aa&&7<e.nb();if(Lv(a)&&!a.Zb)a=a.Pa(),f&&(b=a.scrollWidth-a.clientWidth-b),e.te(a,b,d);else{a=a.Pa();var g=a[V.uj];f&&(b=g.scrollWidth-g.clientWidth-b);e.te(a[V.uj],b,d);e.te(a[V.Mm],b,d)}}
V.prototype.d8=function(){return{offsetWidth:Ex(this),offsetHeight:Pw(this),clientWidth:Fx(this),clientHeight:Nx(this)}};z.a("AdfDhtmlTableBasePeer.prototype.__getScrollerDimensions",{d8:V.prototype.d8});function Ex(a){return Lv(a)&&!a.Zb?a.Pa().offsetWidth:a.Pa()[0].offsetWidth}function Pw(a){return Lv(a)&&!a.Zb?a.Pa().offsetHeight:a.Pa()[1].offsetHeight}function Fx(a){return Lv(a)&&!a.Zb?a.Pa().clientWidth:a.Pa()[0].clientWidth}
function Nx(a){return Lv(a)&&!a.Zb?a.Pa().clientHeight:a.Pa()[1].clientHeight}function xv(a,b,d,e,f){if(Lv(a)&&!a.Zb){var g=Math.max(0,b-d-f);a.Pa().style.height=g+"px"}else{var h=a.Pa(),g=Math.max(0,b-d);h[0].style.height=g+"px";var m=h[0].offsetHeight-h[0].clientHeight,g=Math.max(0,b-d-e-f-m);a.If==V.pk&&(g+=m);h[1].style.height=g+"px"}}
function yv(a,b,d){if(Lv(a)&&!a.Zb){var e=Math.max(b-d,0);a=a.Pa().style;a.overflowX="auto";a.width=e+"px"}else{var f=a.Pa(),e=Math.max(b-d,0);f[1].style.overflowX="hidden";f[1].style.width=e+"px";var g=0;0<f[1].clientWidth&&(g=f[1].offsetWidth-f[1].clientWidth);e=Math.max(b-d-g,0);b=f[0].style;b.overflowX="auto";b.width=e+"px";Zr(a)||(V.fb()?b.left=g+"px":b.right=g+"px")}}
function dx(a,b){var d=w.b;a.Rd=b;if(Lv(a)&&!a.Zb){var e=a.Pa();d.getScrollLeft(e)!=b&&d.setScrollLeft(e,b)}else e=a.Pa(),d.getScrollLeft(e[0])!=b&&d.setScrollLeft(e[0],b)}V.prototype.Uq=function(){var a=w.b;if(Lv(this)&&!this.Zb)a=a.getScrollLeft(this.Pa());else var b=this.Pa(),a=a.getScrollLeft(b[0]);return a};z.a("AdfDhtmlTableBasePeer.prototype.__getScrollLeft",{Uq:V.prototype.Uq});V.prototype.a8=r("Rd");z.a("AdfDhtmlTableBasePeer.prototype.__getCurrentScrollLeft",{a8:V.prototype.a8});
function cx(a,b){a.lc=b;if(Lv(a)&&!a.Zb){var d=a.Pa();d.scrollTop!=b&&(d.scrollTop=b)}else d=a.Pa(),d[1].scrollTop!=b&&(d[1].scrollTop=b);if((!a.Bd||"Windows"==w.Yh())&&w.b.G()==w.Fc)a.pda=l,setTimeout(V.iza,100,a)}V.prototype.c8=function(){return{scrollLeft:this.Uq(),scrollTop:zv(this),scrollHeight:Ow(this),scrollWidth:Mx(this)}};z.a("AdfDhtmlTableBasePeer.prototype.__getScrollDimensions",{c8:V.prototype.c8});
function zv(a){if(Lv(a)&&!a.Zb)a=a.Pa().scrollTop;else{var b=a.Pa(),d=w.b;a=a.Bd&&d.G()==w.Fc&&d.ph()==w.lo?b[0].scrollTop:b[1].scrollTop}return a}function Ow(a){return Lv(a)&&!a.Zb?a.Pa().scrollHeight:a.Pa()[1].scrollHeight}function Mx(a){return Lv(a)&&!a.Zb?a.Pa().scrollWidth:a.Pa()[0].scrollWidth}V.prototype.b8=r("$e");z.a("AdfDhtmlTableBasePeer.prototype.__getLastFrozen",{b8:V.prototype.b8});V.prototype.Ura=r("ag");z.a("AdfDhtmlTableBasePeer.prototype.__getFirstFrozen",{Ura:V.prototype.Ura});
V.prototype.Sg=function(a,b){var d=this.h();d==n&&(d=b);return V.Ra(d,a)};z.a("AdfDhtmlTableBasePeer.prototype.__getElemBySubId",{Sg:V.prototype.Sg});V.Ra=function(a,b){B.assert(a!=n,"Table 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};V.prototype.Yd=r("ae");v("AdfDhtmlTableBasePeer.prototype.GetRowCount",V.prototype.Yd);z.a("AdfDhtmlTableBasePeer.prototype.GetRowCount",{Yd:V.prototype.Yd});
V.prototype.Ys=r("Be");z.a("AdfDhtmlTableBasePeer.prototype.GetKnownRowCount",{Ys:V.prototype.Ys});V.prototype.Nk=function(){var a=this.ea();return a&&a.childNodes&&0<a.childNodes.length?a.childNodes[0].la:-1};z.a("AdfDhtmlTableBasePeer.prototype.getClientStartRowIndex",{Nk:V.prototype.Nk});V.prototype.Mk=function(){var a=0,b=this.ea();if(b&&b.childNodes)for(var d=0;d<b.childNodes.length;d++)a+=b.childNodes[d].Db;return a};z.a("AdfDhtmlTableBasePeer.prototype.getClientRowCount",{Mk:V.prototype.Mk});
V.prototype.Xk=function(a,b){for(var d,e,f,g="toggle"==b,h=a.split(","),m=0;m<h.length;m++)if(e=h[m],d=this.Ob(e))if(f=this.Mg(d.Vb,0))Qw(this,n,f,l,g,p,e,d.Vb),Zw(this,f,l,g,p,e,d.Vb),g=l};z.a("AdfDhtmlTableBasePeer.prototype.simulateSelectRows",{Xk:V.prototype.Xk});
function Aw(a,b){if(a.eb()){var d=b.Xa,e=b.sba,f=a.PA,g=b.rows,h=g.length,m=a.lc;if(!(e!=n&&e==h-1)&&!(d>m+f)&&!Pv(a,g[0].cells.length)){for(var q=0;q<h;q++)if(!(e!=n&&e>=q)){var s=g[q],y=Hw(a,s),A=s.offsetHeight;if(y.offsetHeight!=A){var C=w.b,G=C.G()==w.aa,C=C.G()==w.Fc;G||C?y.style.height="auto":y.rows[0].style.height="auto";G||C?y.style.height=A+"px":y.rows[0].style.height=A+"px"}if(d+s.offsetTop+A>m+f){b.sba=q;return}}b.sba=h-1}}}
function Yx(a,b,d,e,f,g){if(!a.eb()||Qv(a,b))return g=V.Ra(d,e),Zr(a)?g.rows[0].cells[b-a.ag]:g.rows[0].cells[b];d=V.Ra(d,f);g=V.Ra(d,g);return Ov(a)?g.rows[0].cells[b-a.$e-1]:g.rows[0].cells[b]}function Mw(a,b){var d=w.b,e=b.jh;V.fb();var f=d.Sa(e,"_d_index",-1);"start"==b.data?f--:f+=d.Sa(e,"colspan",1)-1;e=Yx(a,f,a.Gb(),"t","d2","t2");return d.getAttribute(e,V.dGa,p)?n:{jh:e,nBa:f}}
function Zx(a,b){var d=a.Gb();if(!d)return n;var e=V.Ra(d,"t"),f=Array(e);a.eb()&&(d=V.Ra(d,"d2"),d=V.Ra(d,"t2"),f.push(d));for(var d=w.b,g=V.B6,h=n,e=e.rows.length-1;0<=e&&!h;e--)for(var m=0;m<f.length;m++)for(var q=f[m].rows[e].cells,s=0;s<q.length&&!h;s++){var y=q[s];if(y.getAttribute(g)&&d.Sa(y,"_d_index",-1)==b){h=y;break}}return h}
function Nv(a,b,d,e,f){if(a.eb()){var g=w.b;a=g.G()==w.Fc;var h=g.G()==w.aa&&8==g.nb();d=V.Ra(b,d);b=V.Ra(b,e);f=V.Ra(b,f);b=d.rows;e=f.rows;d.style.height=f.style.height="auto";for(var m=0;m<b.length;m++)b[m].style.height=e[m].style.height="auto";for(m=0;m<b.length;m++)if(h){for(var q=-1,s=0;s<b[m].cells.length;s++)if(b[m].cells[s].rowSpan&&1==b[m].cells[s].rowSpan){q=s;break}for(var s=-1,y=0;y<e[m].cells.length;y++)if(e[m].cells[y].rowSpan&&1==e[m].cells[y].rowSpan){s=y;break}var A=y=0;-1<q&&(y=
b[m].cells[q].offsetHeight);-1<s&&(A=e[m].cells[s].offsetHeight);y>A?g.ck(e[m],y):A>y&&g.ck(b[m],A)}else q=b[m].offsetHeight,s=e[m].offsetHeight,q>s?g.ck(e[m],q):s>q&&g.ck(b[m],s);g=Math.max(d.offsetHeight,f.offsetHeight);f.style.height=d.style.height=g+"px";if(a&&2==e.length){for(m=0;m<e[0].cells.length;m++)e[1].cells[m].rowSpan="10";for(m=0;m<b[0].cells.length;m++)b[1].cells[m].rowSpan="10"}}}function $x(a,b,d){b=Hw(a,b).rows[0];return Ov(a)?b.cells[d-a.$e-1]:b.cells[d]}
V.jx=function(a){a||(a=F.c.R().event);var b=V.Ra(this.parentNode,"scroller");b||(b=V.Ra(this.parentNode,"vscroller"));if(b){var d=w.b,e=n,f=n,g=a.x9a,h=a.y9a,m=a.wheelDeltaX,q=a.wheelDeltaY,s=a.w9a;g!=n||h!=n?(d=d.G()==w.aa?40:1,g!=n&&(e=g/d),h!=n&&(f=h*(1==s?33:1))):(m!=n&&(e=-m/4),q!=n&&(f=-q/4),m==n&&q==n&&(f=a.wheelDelta==n?4*a.detail:-a.wheelDelta/4));f!=n&&0!=f&&(b.scrollTop+=Math.round(f),g=b.offsetHeight,h=b.scrollHeight,s=b.scrollTop,(0<f&&h-s>g||0>f&&0<s)&&w.b.va(a));e!=n&&0!=e&&(b.scrollLeft+=
Math.round(e),w.b.va(a))}};function Dx(a,b,d){var e=w.b;b=b.rows;V.fb();a=Zr(a);for(var f=0;f<b.length;f++){var g=b[f].cells;(g=V.Pd(a?g[0]:g[g.length-1],"DIV"))&&e.setScrollLeft(g,d)}}V.w0a=function(a,b){var d=V.Ra(a,"d2");w.b.setScrollLeft(d,b)};V.v0a=function(a,b){var d=V.Ra(a,"fd2");w.b.setScrollLeft(d,b)};V.Pd=function(a,b){B.assert(a!=n,"Table 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};
v("AdfDhtmlTableBasePeer.FindFirstChildByTagName",V.Pd);V.EUa=function(a){B.assert(a!=n,"Table peer cannot find first level children by tag name if the parent is null!");var b=[];a=a.childNodes;for(var d=0;d<a.length;d++)"TABLE"==a[d].tagName&&b.push(a[d]);return b};
V.prototype.he=function(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,V.Ba);f==n;){if(d==n||d==b)return n;d=d.parentNode;if(!ay(this)&&(this.cn&&"TR"==e.Ga(d)&&e.getAttribute(d,V.wo,p))&&(f=e.getAttribute(d.previousSibling,V.Ba),f!=n))break;if(d==n||1!=d.nodeType)return n;f=e.getAttribute(d,V.Ba)}return[f,d]};z.a("AdfDhtmlTableBasePeer.prototype.GetRowKeyAndRow",{he:V.prototype.he});
function Gw(a,b,d,e,f){var g=b.style;g.width=parseInt(g.width)-f+"px";a.eb()&&(Ov(a)?Qv(a,e)?(g=b.nextSibling.style,V.fb()?g.right=parseInt(g.right)-f+"px":g.left=parseInt(g.left)-f+"px"):(g=d.style,g.width=parseInt(g.width)-f+"px"):(g=b.nextSibling?b.nextSibling.style:b.parentNode.nextSibling.style,Qv(a,e)||(V.fb()?g.right=parseInt(g.right)-f+"px":g.left=parseInt(g.left)-f+"px",g=d.style),g.width=parseInt(g.width)-f+"px"))}
function by(a,b,d){var e=Jv(a),f=n;a.eb()&&!Qv(a,b)?(f=V.Ra(e,"fd2"),e=V.Ra(f,"ft2")):e=V.Ra(e,"ft");Gw(a,e,f,b,d)}function Iw(a,b){var d=a.style,e=parseInt(d.width)-b;0<e&&(d.width=e+"px");d=a.parentNode.parentNode.style;e=d.width;""!=e&&(e=parseInt(e)-b,0<e&&(d.width=e+"px"))}
function Fw(a,b,d,e,f){var g=V.Pd(b,"COLGROUP"),h=a.ag,m=a.$e;if(g){b=a.AH;var g=g.getElementsByTagName("col"),q=d;Ov(a)&&!Qv(a,d)?q=d-m-1:Zr(a)&&Qv(a,d)&&(q=f?d-h+1:d-h);for(i=q;i<q+e;i++)i<g.length&&(a=g[i],a.Osa=a.style.width,a.style.width="0px",a.style.display="none",b.push(a))}}function Jw(a,b,d){if(b=V.Pd(b,"COLGROUP")){b=b.getElementsByTagName("col");var e=n,e=Zr(a)?b[0]:b[b.length-1];e.style.width=parseInt(e.style.width)-d+"px"}}
function cy(a,b){var d=a.ea().childNodes,e=d.length;for(i=0;i<e;i++)Jw(a,d[i],b)}function dy(a,b,d,e,f,g,h,m){b=V.Pd(b,"COLGROUP");var q=a.ag,s=a.$e;if(b){var y=b.getElementsByTagName("col"),A=d;Ov(a)&&!Qv(a,d)?A=d-s-1:Zr(a)&&Qv(a,d)&&(A=m?d-q+1:d-q);f&&(A+=e-1);a=y[A];d=b.ownerDocument.createElement("col");f?a.nextSibling?b.insertBefore(d,a.nextSibling):b.appendChild(d):b.insertBefore(d,a);d.style.width=g+"px";h.push(d);b.span++}}
function Kw(a,b){var d=a.Sw,e=d.style,f=a.h(),g=w.b,h=g.Qb(b),f=g.Ub(f),d=Math.max(h.x-f.x+(V.fb()?-d.offsetWidth+8:-8),0),h=Math.max(h.y-f.y-8,0);e.left=d+"px";e.top=h+"px"}
function ey(a,b){var d=a.h();if(!(Mx(a)<=Ex(a))){var e=w.fa(),f=e.Qb(b),d=e.Ub(d),f=Math.max(f.x-d.x,0),d=a.Gb(),g,h=V.Ra(d,"t");a.eb()?(g=V.Ra(d,"d2"),d=V.Ra(g,"t2")):d=h;var e=0,m=V.fb()?Nw(a):a.Rd,q=p,s=p;if(!g||f>h.offsetWidth)g&&(e=h.offsetWidth),f-e<V.bA&&0<m?q=l:f-e>Fx(a)-V.bA&&(s=l);if(q||s){e-=m;g=V.pM;s=V.Km;for(h=h.rows.length-1;0<=h;h--)for(var y=d.rows[h].cells,A=y.length,C=0;C<A;C++){var G=y[C];if(G.getAttribute(g)&&G.getAttribute(s)==n){var K=G.offsetLeft+e,N=K+G.offsetWidth;if(f>=
K&&f<=N){m=q?Math.max(m-G.offsetWidth,0):Math.min(m+G.offsetWidth,Mx(a)-Fx(a));Cw(a,m,n);break}}}}}}V.prototype.lWa=function(a){ey(this,a);Kw(this,a);Lw(this,a)};
V.prototype.mWa=function(){var a=n;if(this.UH!=n)if(a=this.i8a,a==k&&(a=F.c,this.Hta=a=a.Ac()?parseInt(a.u().ka("af|table-tr-column-reorder-animation-duration"),10):0),this.Rca=this.Kj.id,0<a){var b=this.rG[0].offsetLeft,b=b+this.V_a;Qg(3,a,[{element:this.Sw,ib:{top:0,left:b}}],n,V.ZSa,this)}else fy(this);0==a&&(this.Sw!=n&&(this.h().removeChild(this.Sw),this.Sw=n),gy(this));w.b.Qe(this.Gb())};
function fy(a){var b=a.d(),b=new Cf(b,a.Rca,"reorderColumn");b.S1(a.UH.id);b.v1(a.en);b.v();b.na()?a.Ova():(b=F.c.u().V("af_table.LABEL_REORDERING_COLUMN"),a.oz(b,l))}function gy(a){w.b.setCursor(a.h(),"");a.Kj=n;a.UH=n;delete a.Rca;delete a.AH;delete a.en;delete a.Hca;delete a.rG;delete a.aZ}
function Ew(a,b){if(a==n)return n;var d=a.cloneNode(b);if(1==a.nodeType){if(b){var e=a.getElementsByTagName("SELECT"),f=d.getElementsByTagName("SELECT"),g=e.length;B.assert(g==f.length,"Unexpected clone--different amounts of selects!");for(var h=0;h<g;h++)f[h].selectedIndex=e[h].selectedIndex}"SELECT"==a.tagName&&(d.selectedIndex=a.selectedIndex)}return d}
function Lw(a,b){var d=V.fb(),e=a.h(),f=w.b,g=f.Qb(b),h=f.Ub(e),m=Math.max(g.x-h.x,0),q=a.Gb(),s,y=V.Ra(q,"t"),A;a.eb()&&(s=V.Ra(q,"d2"),A=V.Ra(s,"t2"));var C,G=0;if(d){var K=e.offsetWidth,N=y.offsetWidth,Q=K-N;s&&m<=Q?(C=A,K>N+A.offsetWidth?G=K-(N+A.offsetWidth):(G=-Nw(a),Ow(a)>Pw(a)&&(G+=Ex(a)-Fx(a)))):(e.offsetWidth>y.offsetWidth&&(G=Q),C=y)}else Zr(a)?m>=A.offsetWidth?(G=A.offsetWidth,G-=a.Rd,C=y):C=A:m<=y.offsetWidth?C=y:s?(G=y.offsetWidth,G-=a.Rd,C=A):C=y;var T,Y=n;if(C){a.eb()||(G-=d?Nw(a):
a.Rd);for(var ra=y.rows.length,wa=V.pM,Ca=V.Km,La=ra-1;0<=La;La--)for(var Ba=C.rows[La].cells,sb=Ba.length,gc=0;gc<sb;gc++){var Yb=Ba[gc];if(Yb.getAttribute(wa)&&Yb.getAttribute(Ca)==n&&"none"!=Yb.style.display){var yc=Yb.offsetLeft+G,Rc=yc+Yb.offsetWidth;if(d)if(m>=yc&&m<=Rc-Yb.offsetWidth/2){Y=Yb;T=-1==Yb.id.indexOf("_afrBlankColumn");break}else{if(m>=yc&&m<=Rc){Y=Yb;T=p;break}}else if(m>=yc&&m<=Rc-Yb.offsetWidth/2){Y=Yb;T=p;break}else if(m>=yc&&m<=Rc){Y=Yb;T=-1==Yb.id.indexOf("_afrBlankColumn");
break}}}if(Y==n&&a.Hca==n)for(La=ra-1;0<=La;La--){var Ba=C.rows[La].cells,sb=Ba.length,ac;0<sb&&(ac=Ba[sb-1]);if(ac&&ac.getAttribute(wa)&&ac.getAttribute(Ca)==n){Y=ac==a.Kj&&ac.previousSibling?ac.previousSibling:ac;T=l;break}}if(Y!=n){var bc=f.Sa(Y,"_d_index",-1),Tb=Y.colSpan,yd=T?bc+Tb:bc;if(yd!=a.Hca){hy(a,s);a.UH=Y;a.en=T;a.Hca=yd;a.V_a=G;a.lAa=C;for(var ud=Y,yf=s,Rf=w.b,Tg=a.en,zf=a.JB,Ug=a.rG,ad=a.$e,ke=a.ag,Dh=a.lAa,Eh=a.aZ,Fh=ud.ownerDocument,Gh=xx(a),Ig=Gh?3:2,Uf=0;Uf<Ig;Uf++){var We=Dh.rows[Uf],
og=We.cells;if(Uf<Ig-1){var mc=bc;a.eb()&&(Ov(a)&&!Qv(a,bc)?mc=bc-ad-1:Zr(a)&&Qv(a,bc)&&(mc=bc-ke));Tg&&(mc+=Tb-1);headerCell=og[mc]}else headerCell=ud;var zd=Fh.createElement("th");Tg?headerCell.nextSibling?We.insertBefore(zd,headerCell.nextSibling):We.appendChild(zd):We.insertBefore(zd,headerCell);0==Uf?zd.style.cssText=headerCell.style.cssText:(zd.className=V.Eh+" "+headerCell.className,Uf==Ig-1&&(zd.rowSpan=Dh.rows.length-(Gh?2:1)),zd.innerHTML="\x26nbsp;");Eh?zd.style.width=Eh:(Rf.ys(zd,zf),
Eh=a.aZ=parseInt(zd.style.width)+"px");Ug.push(zd)}Gw(a,Dh,yf,bc,-zf);a.qi()&&dy(a,Dh,bc,Tb,Tg,zf,Ug);s!=n&&d&&f.setScrollLeft(s,a.Rd);for(var Qb=w.b,Ad=Qb.G()==w.aa,Df=V.fb(),xi=a.$e,Jg=a.ag,Yg=a.en,ai=a.JB,yi=a.rG,zi=a.aZ,nk=a.Rd,Ef=a.ea(),ok=Ef.childNodes,pk=ok.length,qk=Ef.ownerDocument,Hj=V.Eh,Hl=a.lc,Hh=Yg?bc+Tb-1:bc,Ai,Ij=0;Ij<pk;Ij++){var Bi=ok[Ij],Il=Bi.rows,rn=Il.length;0==Ij&&(Ai=Bi.Xa);for(var sn=Hl-Ai,rk=0;rk<rn;rk++){var Vf=Il[rk];if(Vf.offsetTop-sn>Ef.offsetHeight)break;if(!a.cn||!Qb.getAttribute(Vf,
V.wo,p)){var Ih,Wf=n;Ov(a)&&!Qv(a,bc)?(Wf=Hw(a,Vf),Vf=Wf.rows[0],Ih=Vf.cells[Hh-xi-1]):Zr(a)?Qv(a,bc)?Ih=Vf.cells[Hh-Jg+1]:(Wf=Hw(a,Vf),Vf=Wf.rows[0],Ih=Vf.cells[Hh]):Ih=Vf.cells[Hh];var uh=qk.createElement("td");uh.className=Hj+" "+Ih.className;Yg?Ih.nextSibling?Vf.insertBefore(uh,Ih.nextSibling):Vf.appendChild(uh):Vf.insertBefore(uh,Ih);uh.style.width=zi;uh.noWrap=l;uh.innerHTML="\x26nbsp;";yi.push(uh);if(Wf!=n)if(Iw(Wf,-ai),a.qi())dy(a,Wf,bc,Tb,Yg,ai,yi);else if(Ad){var sk=Wf.parentNode;(Df||Qb.getScrollLeft(sk)!=
nk)&&Qb.setScrollLeft(sk,nk)}}}Ai+=Bi.offsetHeight;a.qi()&&((!a.eb()||Qv(a,bc))&&dy(a,Bi,bc,Tb,Yg,ai,yi,l),a.eb()&&!Qv(a,bc)&&Jw(a,Bi,-ai))}Df&&!a.eb()&&Qb.setScrollLeft(Ef,nk);if(!a.Po){var nf=w.b,Oq=nf.G()==w.Fc,Pq=a.$e,tn=a.ag,Jl=a.en,tk=a.JB,cj=a.rG,Qq=a.aZ,Kl=Jv(a),dj,ej=n,Jj=Jl?bc+Tb-1:bc;a.eb()&&!Qv(a,bc)?(ej=V.Ra(Kl,"fd2"),dj=V.Ra(ej,"ft2"),Ov(a)&&(Jj-=Pq+1),nf.getScrollLeft(ej)!=a.Rd&&nf.setScrollLeft(ej,a.Rd)):(dj=V.Ra(Kl,"ft"),Zr(a)&&Qv(a,bc)&&(Jj-=tn));for(var un=Kl.ownerDocument,Zg,Jh=
0;2>Jh;Jh++){var uk=dj.rows[Jh];Zg=un.createElement(0==Jh?"th":"td");cell=uk.cells[Jj];Jl?cell.nextSibling?uk.insertBefore(Zg,cell.nextSibling):uk.appendChild(Zg):uk.insertBefore(Zg,cell);Zg.style.width=Qq;0==Jh?Zg.style.cssText=cell.style.cssText:(Zg.className=cell.className,Zg.innerHTML="\x26nbsp;",Zg.O8=l,Oq&&(Zg.rowSpan="10"));cj.push(Zg)}Gw(a,dj,ej,bc,-tk);a.qi()&&dy(a,dj,bc,Tb,Jl,tk,cj)}if(a.qi()){var vn=a.ea().childNodes,Rq=vn.length,vk=a.Rd;for(i=0;i<Rq;i++){var Kj=vn[i].rows[0],wn=Kj.style;
wn.display="block";wn.display="";a.eb()&&(innerTable=Hw(a,Kj),w.b.setScrollLeft(innerTable.parentNode,vk))}}}}}}function hy(a,b){var d=a.rG;if(d){for(var e=w.b,f=e.G()==w.Fc,e=e.Sa(a.UH,"_d_index",-1),g=a.JB,h=d.length-1;0<=h;h--){var m=d[h],q=m.tagName;f&&"COL"==q?m.parentNode.span--:"TD"==q&&(a.eb()&&!Qv(a,e)&&!m.O8)&&Iw(m.parentNode.parentNode.parentNode,g);m.parentNode.removeChild(m)}Gw(a,a.lAa,b,e,g);a.qi()&&(a.eb()&&!Qv(a,e))&&cy(a,g);a.Po||by(a,e,g)}a.rG=[]}V.ZSa=function(a){fy(a);gy(a)};
V.prototype.Ova=function(){var a=w.b;w.b.G();var b=this.Gb(),d=V.Ra(b,"t"),e,f;this.eb()&&(e=V.Ra(b,"d2"),f=V.Ra(e,"t2"));hy(this,e);for(var b=a.Sa(this.Kj,"_d_index",-1),g=this.AH,h=this.JB,m=g.length,q,s,y=0;y<m;y++)q=g[y],q.style.display="",q.Osa&&(q.style.width=q.Osa),"TD"==q.tagName&&!q.O8&&(q=q.parentNode,this.eb()&&!Qv(this,b)&&q!=s&&Iw(q.parentNode.parentNode,-h),s=q);this.qi()&&(this.eb()&&!Qv(this,b))&&cy(this,-h);Gw(this,(this.eb()&&!Qv(this,b)?f:d,e,b,-h));this.Po||by(this,b,-h);this.Sw!=
n&&(this.h().removeChild(this.Sw),this.Sw=n);gy(this);a.Qe(this.Gb())};V.prototype.cla=r("ad");z.a("AdfDhtmlTableBasePeer.prototype.GetFocusManager",{cla:V.prototype.cla});V.prototype.ho=function(){return this.ad.rp};z.a("AdfDhtmlTableBasePeer.prototype.GetFocusedRowKey",{ho:V.prototype.ho});V.prototype.vz=function(){var a=this.ad.rp;if(a==n&&tv(this)){var b=this.d().getSelectedRowKeys(),d;for(d in b)b[d]!=AdfUITable.sM&&b[d]&&(a=d)}return a};z.a("AdfDhtmlTableBasePeer.prototype.GetLastRowKey",{vz:V.prototype.vz});
V.prototype.Di=da("Pda");z.a("AdfDhtmlTableBasePeer.prototype.suppressSelectionEventDelivery",{Di:V.prototype.Di});V.prototype.pp=function(){return!this.Pda};z.a("AdfDhtmlTableBasePeer.prototype.canDeliverSelectionEvent",{pp:V.prototype.pp});function uv(a,b){for(var d=n,e=a.h();b&&b!=e;){if("TD"==w.fa().Ga(b)){b.getAttribute(V.Km)!=n&&(d=b);break}b=b.parentNode}return d}V.prototype.Vq=function(){for(var a=this.sg(),b=[],d=a.length,e=0;e<d;e++){var f=a[e];f&&f.getSelected()&&b.push(f)}return b};
z.a("AdfDhtmlTableBasePeer.prototype.__getSelectedColumns",{Vq:V.prototype.Vq});V.prototype.tq=function(a){B.assert(a!=n,"Unable to get row header cell from a non-valid row!");w.fa();for(var b=n,d=a.cells,e=d.length,f=0;f<e;f++)if(a=d[f],a.getAttribute(V.Km)!=n){b=a;break}return b};z.a("AdfDhtmlTableBasePeer.prototype.GetRowHeaderCellFromRow",{tq:V.prototype.tq});u=V.prototype;
u.me=function(a,b){for(var d=w.fa(),e,f=this.h(),g=V.pF;n!=a&&a!=f&&"TD"!=(e=d.Ga(a))&&"TH"!=e&&"TR"!=e;){if(3!=a.nodeType){var h=a.getAttribute("tabIndex",2);if(h!=n&&0<=h&&32768!=h&&65535!=h||e.match(g)&&(b||-1!=h))return l}a=a.parentNode}return p};
function Qw(a,b,d,e,f,g,h,m){(!ay(a)&&a.Vm||ay(a)&&h&&iy(a)==h)&&Bw(a,p,d,p);if(!a.pO(d)){var q=w.b,s=uv(a,d),y=n!=s,A=a.me(d),C=jy(a,d,m),G=C.cellIndex;!A&&(!ay(a)&&!a.Uw)&&a.Ej();y?a.Ec(V.vj,h,s):(e||a.Uw)&&a.Ec(V.we,h,m,C.jh);ay(a)&&(iy(a)!=h||a.d().r(V.vF))?(a.Vw=k,ky(a,h),s=jy(a,d,m),G={},G.cellIndex=s.cellIndex,a.Sm=G,h&&Bw(a,p,d,p)):A&&a.Vw!=G&&(a.Vw=k);if(tv(a)&&(s=a.kn(h),e||a.Uw&&!e))if(s||(ly(a,d,f,g,h,m),a.Awa=l,!A&&b!=n&&q.va(b)),!A&&e||a.Uw&&!e){d=C.jh;if((!q.R().gj||!(q instanceof ee&&
q.ph()!=w.ek))&&!a.mua&&!my(a,q,d))(q.G()!=w.aa||ay(a))&&ew(d);y&&(yx(a)&&b!=n)&&(q.vd(a.ea()),a.Jda=h,a.cwa==n&&(a.cwa=a.o(a.XWa),a.qUa=a.o(a.pUa)),F.c.Nd(b,a.cwa,a.qUa),q.va(b))}}}function ew(a,b){var d=a.tabIndex;a.tabIndex=0;b?O.EC(a,1):O.ra(a);a.tabIndex=d}u.yO=function(a){a||(a=F.c.R().event);var b=w.b,d=b.T(a);tv(this)&&!this.me(d)&&b.preventDefault(a)};
u.XWa=function(a){var b=w.fa(),d=b.T(a);if(uv(this,d)!=n){for(d=d.parentNode;d&&"TR"!=b.Ga(d);)d=d.parentNode;d&&(b=d.getAttribute(V.Ba),b!=n&&(ny(this,this.Jda,b),this.Jda=b,oy(this,a)))}else for(var e=this.h(),d=d.parentNode;d&&d!=e;){if("TR"==b.Ga(d)&&b.getAttribute(d,V.wo,p)){oy(this,a);break}d=d.parentNode}};
function oy(a,b){var d=w.b,e=a.ea();if(!(Ow(a)<=Pw(a))){var f=d.Qb(b),d=d.Ub(e),f=Math.max(f.y-d.y,0),e=f>e.offsetHeight-V.bA;if(f<V.bA||e)e=a.lc+(e?a.xe:-a.xe),0<=e&&e<Ow(a)&&Cw(a,n,e)}}u.pUa=function(){this.Jda=n;w.b.Qe(this.ea())};function Zw(a,b,d,e,f,g,h){w.fa();var m=uv(a,b),q=n!=m;a.Awa?a.Awa=p:tv(a)&&(q?a.Ec(V.vj,g,m):a.Ec(V.we,g,h),(d||a.Uw&&!d)&&ly(a,b,e,f,g,h))}
function ly(a,b,d,e,f,g){var h=yx(a),m=w.b;if(h&&d)py(a),a.Dt=f,a.kn(f)?(!m.wI()||!a.me(b))&&zx(a,f,g):ox(a,f,g);else if(h&&e){if(b=a.Dt){if(!a.Ob(b)){a=a.d();a=new ec(a,a.getSelectedRowKeys(),n);a.setSelectionRange(b,f);a.v();return}}else b=a.Dt=f;a.Di(l);a.dg();Sw(a);a.Di(p);ny(a,b,f)}else a.Dt=f,a.rda(f)||(a.Di(l),a.dg(),a.Di(p),ox(a,f,g),Sw(a))}u.dg=function(){this.Mj(V.Lm,l);py(this);qy(this,{})};
function ox(a,b,d,e){Bx(a,d);e||(d={},(e=a.d().getSelectedRowKeys())&&e[V.Ji]?(ya.qb(d,e),e=d[b],delete d[b],ry(d,e)):(d[b]=1,sy(e,d,d)),qy(a,d))}function zx(a,b,d){Ax(d);d={};var e=a.d().getSelectedRowKeys();e[V.Ji]?(d[b]=1,sy(e,d,d)):(ya.qb(d,e),e=d[b],delete d[b],ry(d,e));qy(a,d)}function sy(a,b,d){if(!a||!b)(a=a?a:b)&&ya.qb(d,a);else{var e=k;if(!e){var e=0,f;for(f in a)e++}for(var g in b)d[g]=b[g]+e;ya.qb(d,a)}}function ry(a,b){if(a&&b)for(var d in a)a[d]>b&&(a[d]-=1)}
function ny(a,b,d){var e=a.ea();if(e!=n){var f=w.fa(),g=a.d(),h={},m=1,q=g.getSelectedRowKeys(),s=q[V.Ji],y=p,A=p,e=e.childNodes,C=e.length,G=l;g.wd(b)>g.wd(d)&&(G=p);for(g=0;g<C&&!A;++g)for(var K=e[G?g:C-g-1].rows,N=K.length,Q=0;Q<N;++Q){var T=K[G?Q:N-Q-1],Y=f.getAttribute(T,V.Ba);if(Y!=n){if(Y==b||Y==d){if(y||b==d)A=l;y=l}y&&(ox(a,Y,T,l),s?(T=h[Y],delete h[Y],ry(h,T)):(h[Y+""]=m,m++));if(A)break}}sy(q,h,h);qy(a,h)}}u.kn=function(a){var b=this.d().getSelectedRowKeys();return b[V.Ji]?!b[a]:b[a]};
u.rda=function(a){var b=this.d().getSelectedRowKeys();if(b[V.Ji]!=n)return p;var d=b[a];if(d)for(var e in b)if(e!=a){d=p;break}return d};function Bx(a,b){B.ub(b);H.n(b,V.Xe);"row"==b.getAttribute("role")&&b.setAttribute("aria-selected","true");H.F(b,V.xw);a.BJ()?H.F(b,V.CU):H.n(b,V.CU)}function Ax(a){B.ub(a);H.F(a,V.CU);H.F(a,V.Xe);"row"==a.getAttribute("role")&&a.removeAttribute("aria-selected")}function ty(a){return(a=a.d().getColumnSelection?a.d().getColumnSelection():n)&&a!=V.zqa}
function Vw(a){return(a=a.d().getColumnSelection?a.d().getColumnSelection():n)&&a==V.xqa}function tv(a,b){b||(b=a.d());var d=b.getRowSelection();return d&&d.toLowerCase()!=V.zqa}function yx(a){return(a=a.d().getRowSelection())&&-1!=a.toLowerCase().indexOf(V.xqa)}
u.Mj=function(a,b,d){d==n&&(d=this.d().getSelectedRowKeys());var e=p;d!=n&&(e=d[V.Ji]?l:p);if(e){if(e=this.ea(),e!=n&&(l==b&&(this.lx=n),d&&!ya.Bc(d)))for(var e=e.childNodes,f=e.length,g=w.fa(),h=0;h<f;++h){var m=e[h].rows;if(m)for(var q=m.length,s=0;s<q;++s){var y=m[s],A=g.getAttribute(y,V.Ba);if(A!=n&&!(p==b&&this.lx==A))switch(a){case V.dV:Bx(this,y);break;case V.Lm:Ax(y);break;case V.Pq:d[A]?Ax(y):Bx(this,y)}}}}else if(e=this.ea(),e!=n&&(l==b&&(this.lx=n),d&&!ya.Bc(d))){e=e.childNodes;f=e.length;
g=w.fa();for(h=0;h<f;++h)if(m=e[h].rows){q=m.length;for(s=0;s<q;++s)if(y=m[s],A=g.getAttribute(y,V.Ba),A!=n&&!(p==b&&this.lx==A))switch(a){case V.dV:Bx(this,y);break;case V.Lm:Ax(y);break;case V.Pq:d[A]?Bx(this,y):Ax(y)}}a=1!=a;if(!this.Gf){b=F.c;d=this.It;for(e=0;e<d;e++)(f=Zx(this,e))&&b.j(f.id).getSelected()&&(a?uy(this,e):vy(this,e))}}};
function Tw(a){var b=a.ea();if(b!=n&&yx(a)){a.Mj(V.Lm,l);var d={};d[V.Ji]=l;qy(a,d);for(var b=b.childNodes,d=b.length,e=w.fa(),f=0;f<d;++f)for(var g=b[f].rows,h=g.length,m=0;m<h;++m){var q=g[m];e.getAttribute(q,V.Ba)!=n&&Bx(a,q)}}}function wy(a){var b=a.lx;b&&(a.lx=n,a.kn(b)||(Ax(a.swa),a.swa=n))}function qy(a,b){a.LO=l;D.i.finer("Update Table selection state to:",b);a.d().setSelectedRowKeys(b);a.LO=p}
u.xK=function(a,b,d,e){this.LO?(a=this.$D(),a!=n&&a.setSelectedRowKeys(d)):(this.Mj(V.Lm,l,e),this.Mj(V.Pq,l,d));this.Gl&&this.Gl.Bs()};z.a("AdfDhtmlTableBasePeer.prototype.ComponentSelectedRowKeysChanged",{xK:V.prototype.xK});function xy(a,b,d,e){var f=w.b.Sa(e,"_d_index",-1);if(0<=f){var g=e.colSpan;if(g!=n&&1<(g=parseInt(g)))for(e=f+g;f<e;)d.push(Zx(a,f).id),b.push(f++);else b.push(f),d.push(e.id)}}
V.prototype.pWa=function(a){var b=this.Sq(a);if(b!=n&&"select"==b.type){var d=b.gBa;0<d.length&&(yy(this,this.PM,this.D8,d,b.fBa),Sw(this))}ey(this,a);this.Gl&&this.Gl.zD()};V.prototype.qWa=function(){var a=this.Gb();w.b.Qe(a);Sw(this)};
function Uw(a,b,d,e){var f=F.c;if(Vw(a)&&w.b.Op(b)){b=a.d().getSelectedRowKeys();ya.Bc(b)||(a.Mj(V.Lm,l),qy(a,{}));a.PM=d;a.D8=e;for(b=0;b<d.length;b++){var g=f.j(e[b]);g.getSelected()?zy(a,d[b],g):Ay(a,d[b],g,p)}Sw(a)}else if(b.shiftKey&&Vw(a))a.PM&&0<=a.PM.length&&(a.fG={},a.JA={},a.dg(),yy(a,a.PM,a.D8,d,e),Sw(a));else{a.PM=d;a.D8=e;a.fG={};a.JA={};a.dg();for(b=0;b<d.length;b++)g=f.j(e[b]),Ay(a,d[b],g,p);Sw(a)}a.Gl&&a.Gl.zD()}
function Ay(a,b,d,e){d.getSelected()||(d.setProperty(AdfRichColumn.SELECTED,l,l,J.Pc),uy(a,b),ay(a)&&iy(a)&&ky(a,n),a.fG[d.e()]=l,e&&Sw(a))}function zy(a,b,d){d.getSelected()&&(d.setProperty(AdfRichColumn.SELECTED,p,l,J.Pc),vy(a,b),a.JA[d.e()]=l)}function py(a){if(ty(a)){var b=F.c,d=a.It,e;a.JA={};for(var f=0;f<d;f++)(e=Zx(a,f))&&zy(a,f,b.j(e.id))}a.Gl&&a.Gl.zD()}
function yy(a,b,d,e,f){for(var g=F.c,h=0;h<b.length;h++)Ay(a,b[h],g.j(d[h]));h=e[0]>b[0]?1:-1;b=b[0];for(d=d[0];b!=e[0];)Ay(a,b,g.j(d)),b+=h,d=Zx(a,b).id;for(h=0;h<e.length;h++)Ay(a,e[h],g.j(f[h]))}function uy(a,b){var d=Zx(a,b);By(d);for(var d=a.ea().childNodes,e=d.length,f=n,g=w.fa(),h=0;h<e;++h)for(var m=d[h].rows,q=m.length,s=0;s<q;++s)g.getAttribute(m[s],V.Ba,n)&&(f==n&&(f=a.BJ()),a.eb()&&!Qv(a,b)?By($x(a,m[s],b)):!a.eb()||Ov(a)?By(m[s].cells[b]):By(m[s].cells[b-a.ag+1]))}
function vy(a,b){var d=Zx(a,b);Cy(d);for(var d=a.ea().childNodes,e=d.length,f=w.fa(),g=0;g<e;++g)for(var h=d[g].rows,m=h.length,q=0;q<m;++q)f.getAttribute(h[q],V.Ba,n)&&(a.eb()&&!Qv(a,b)?Cy($x(a,h[q],b)):!a.eb()||Ov(a)?Cy(h[q].cells[b]):Cy(h[q].cells[b-a.ag+1]))}function By(a){H.n(a,V.Xe)}function Cy(a){H.F(a,V.Xe);H.F(a,V.CU)}function Dw(a,b){for(var d=w.b.T(b),e=n,f=a.h();!e&&d&&d!=f&&1==d.nodeType;)d.getAttribute("_d_index")?e=d:d=d.parentNode;return e}
V.prototype.Sq=function(a){var b=n;if(!this.Gf){var d=w.b,e=n,f=this.Gb(),f=d.Ub(f),g=d.Qb(a);g.y-f.y<=this.Zc&&(e=Dw(this,a));if(e){b={};b.jh=e;if(e.getAttribute("_afrFH")!=n)return b.type="clearAllFilter",b;if(!this.cf)return n;var f=n,h=d.Sa(e,"_d_index",-1),m=V.fb();if(-1!=h&&"enabled"==this.d().getColumnResizing()){var d=d.Ub(e),d=g.x-d.x,g=e.offsetWidth,q=!(-1!=this.oba&&h==this.It-1);d<=this.Fo()?m?q&&(f="end"):0<h&&(f="start"):g-d<=this.Fo()&&(m?0<h&&(f="start"):q&&(f="end"))}if(f)b.type=
"resize",b.data=f;else a:if(f=b,g=w.b,q=g.T(a),h=ty(this),(m=q.parentNode.getAttribute(V.Pqa))||(m=q.parentNode.parentNode.getAttribute(V.Pqa)),(d=q.parentNode.getAttribute(V.Qqa))||(d=q.parentNode.parentNode.getAttribute(V.Qqa)),m||d){if("click"==a.type){h=g.getElementById(M.g(e.id,V.At));a=h.getAttribute(V.sA);if(m){if(a==V.vM)break a;f.Wia=l}else if(d){if(a==V.gV)break a;f.Wia=p}f.type="sort";f.DEa=F.c.j(e.id).getSortProperty()}}else if(e.getAttribute(V.sM)!=n)f.type="selectAll";else if(-1==e.id.indexOf("_afrBlankColumn"))if(!h&&
this.d().getDisableColumnReordering()&&e.getAttribute(V.Km)==n)f.type="default";else if(!h&&e.getAttribute(V.Km)==n&&e.getAttribute(V.pM)!=n)h=g.getElementById(M.g(e.id,V.At)),h!=n?"click"==a.type?(a=h.getAttribute(V.sA),f.Wia=a==V.vM?p:l,f.type="sort",f.DEa=F.c.j(e.id).getSortProperty()):f.type="mousemove"==a.type?"default":"move":f.type="move";else if(e.getAttribute(V.Km)==n){if(a=!h||!g.Op(a)){d=F.c;a=p;m=n;g=this.t8a;g=e.getAttribute(V.B6)!=n;q=e.getAttribute(V.pM)!=n;if(g&&q)e.id&&(0<e.id.length&&
d.j(e.id).getSelected())&&(m=[e.id]);else if(q)if(xy(this,[],m=[],e),0==m.length)m=n;else for(i=m.length-1;0<=i;--i)if(!d.j(m[i]).getSelected()){m=n;break}if(m){a=l;g=this.sg();for(i=g.length-1;0<=i;--i)if((d=g[i])&&d.getSelected()){q=p;for(j=m.length-1;0<=j;--j)if(d.e()==m[j]){q=l;break}if(!q){a=p;break}}}}a?this.d().getDisableColumnReordering()||(f.type="move"):e.id&&h?(f.type="select",xy(this,f.gBa=[],f.fBa=[],e)):f.type="default"}else f.type="default"}}return b};
z.a("AdfDhtmlTableBasePeer.prototype.__getColumnHeaderMouseAction",{Sq:V.prototype.Sq});V.prototype.nWa=function(a,b){var d=this.Sg("ri").style,e=parseInt(d.left),f=parseInt(this.PB.style.width),g=this.Wca+(V.fb()?-b:b),h=Dy(this);this.Wca=g;f+g>=h&&(d.left=e+b+"px")};function Dy(a){var b=a.fZ,d=a.sg()[b],b=a.nba;if(b==n){var b=0,e=a.Vq();if(-1==ya.indexOf(e,d))b=d.getMinimumWidth();else for(var d=e.length,f=0;f<d;f++)var g=e[f].getMinimumWidth(),b=Math.max(b,g);a.nba=b}return a.nba}
V.prototype.oWa=function(){var a=this.Sg("ri");Xx(this,a);this.dj()&&2>=this.Oi&&Ey(this,17);var a=this.Wca,b=this.PB,d=parseInt(a)+parseInt(b.style.width),e=Dy(this),d=Math.max(d,e);this.eb()&&Qv(this,this.fZ)&&(e=Math.max(this.ea().clientWidth-10,e),b.offsetLeft+d>=e&&(d=e-b.offsetLeft));B.assert(!isNaN(d),"Illegal width for column resize drop.  delta \x3d "+a+", th.style.width \x3d "+b.style.width);Fy(this,d,n)};
function Ey(a,b){var d=a.Pa(),e=w.fa(),f=e.G()==w.aa;if(d!=n&&f&&2>a.Yd()){var f=a.h(),g=Tx(a),h=a.ea(),h=!a.Fb?Gy(a):h.offsetHeight,m=n,q=0,e=e.nb();if(7<e&&9>e){m=d;if(!Lv(a)||a.Zb)m=d[V.uj];a.xe!=n&&(q=a.xe,m.style.minHeight=(b?b:8)+q+"px");m!=n&&(d=Tx(a),g!=d&&(newHeight=h+a.Zc+a.Me+d,Tv(f,newHeight),xv(a,newHeight,a.Zc,a.Me,a.ji)),m.style.minHeight=q+"px")}}}
function Fy(a,b,d){a.nba=n;a.PB=n;var e=a.fZ,f=a.sg(),g=f.length,h=f[e],m=a.ea(),q=a.Vq(),s=p;d==n&&(s=-1!=ya.indexOf(q,h));var y;a.Fb||(y=m.childNodes[0].rows[0],B.assert(y!=n,"this.IsEmpty was "+a.Fb+" but there were no rows!"));var A=[],h=[],C,G=0,K,N=0,Q,m=a.AW;for(Q=0;Q<g;Q++){C=f[Q];var T=Hy(a,C,n,m,g,Q);K=Iy(a,Q,y);s&&-1!=ya.indexOf(q,C)||!s&&Q==e?(d!=n&&(T=Hy(a,n,d,m,g,Q)),G++,N+=K,h.push({component:C,displayIndex:Q,flex:T,minimumWidth:C.getMinimumWidth(),actualWidth:K})):T!=n&&C.getMinimumWidth()}if("none"!=
m&&"blank"!=m)a:{A=b;g=d;b=y;K=[];C=h.length;q=Q=0;y=p;g==n&&(g=0,y=l);for(e=0;e<C;e++)s=h[e],s.desiredWidth=s.minimumWidth,K[s.displayIndex]=s,Q+=s.minimumWidth,q=Math.max(q,s.actualWidth),y&&(g+=s.actualWidth);G=s=0;d=p;e=[];if(A>q){d=l;y=h[C-1].displayIndex+1;var Y=y==f.length;for(Y&&y--;y<f.length;y++)e.push(Jy(a,y,f[y],b)),N=e.length-1,s+=e[N].minimumWidth,G+=e[N].actualWidth}else for(y=h[0].displayIndex-1;0<=y;y--)e.push(Jy(a,y,f[y],b)),N=e.length-1,s+=e[N].minimumWidth,G+=e[N].actualWidth;
y=G-s;if(a.Vxa&&(s=a.ea(),(G=s.childNodes)&&G[0]))s=s.offsetWidth-G[0].offsetWidth,0<s&&(y+=s);q=A-q;if(0<=q&&q>y&&(A=y+Q,q=y,0>=A))break a;h.sort(V.nQa);for(g=g-Q+q;0!=g;){G=[];N=h[0].desiredWidth;for(y=0;y<C;y++)if(T=0,s=h[y],h[y+1]?T=s.desiredWidth:(N=Math.abs(g),T=Math.abs(g)),T<=N)G.push(s);else break;s=Math.floor(g/G.length);s>N&&G.length<C&&(s=h[G.length].desiredWidth-G[G.length-1].desiredWidth);for(y=0;y<G.length;y++)G[y].desiredWidth+=s,g-=s;1>g/G.length&&(h[C-1].desiredWidth+=g,g=0)}for(y=
0;y<C;y++)s=h[y],s.flex=Math.abs(s.desiredWidth),Ky(a,s.displayIndex,s.flex,s.flex-s.actualWidth,l);d||(h=h[C-1].displayIndex+1,f[h]||h++,h<f.length&&(C=Math.abs(q),e[h]={component:f[h],displayIndex:y,minimumWidth:f[h].getMinimumWidth(),actualWidth:Iy(a,h,b)},e[h].actualWidth+=C,Ky(a,h,e[h].actualWidth,C,l),A>=Q&&(q=0)));if(d&&!Y){A=q;for(y=0;y<e.length;y++)if(h=e[y],h.zu)if(Y=h.actualWidth-h.minimumWidth,A>=Y)h.newWidth=h.minimumWidth,h.flex=h.newWidth,K[h.displayIndex]=h,Ky(a,h.displayIndex,h.newWidth,
-Y,l),A-=Y;else{h.newWidth=h.actualWidth-A;h.flex=h.newWidth;K[h.displayIndex]=h;Ky(a,h.displayIndex,h.newWidth,A,l);break}}h=[];for(y=0;y<f.length;y++)K[y]||(Y=Hy(a,f[y],n,m,f.length,y))&&h.push({displayIndex:y,width:Iy(a,y,b)});a.KW=h;Av(a);a=a.Gb();w.b.Qe(a)}else{m=G*b-N;f=Math.abs(m);Y=A.length;e=Math.floor(f/Y);C=f-Y*e;y=0;do{for(d=0;d<Y;d++)Q=A[d],l!=Q.atMinimum&&(f=Q.minimumWidth,K=Q.actualWidth,g=e,0<C&&(g+=C,C=0),0>m&&(g*=-1),g=K-g,q=Q.desiredWidth,q!=n&&(g+=q-K),f=Math.max(f,g),f!=g&&(Q.atMinimum=
l,y++),C+=f-g,Q.desiredWidth=f);e=0}while(0!=C&&y<Y);m=[].concat(A);f=h.length;for(Q=0;Q<f;Q++)C=h[Q],C.flex==n?(delta=b-C.actualWidth,Ky(a,C.displayIndex,b,delta,l)):(C.desiredWidth=b,m.push(C));h=m.length;for(Q=Y=0;Q<h;Q++)C=m[Q],f=C.desiredWidth,K=C.actualWidth,f==n&&(f=K,C.desiredWidth=f),C.delta=f-K,Y+=f;b=[];for(Q=0;Q<h;Q++)C=m[Q],f=C.desiredWidth,delta=C.delta,e=C.displayIndex,Ky(a,e,f,delta,p),K=Math.round(1E4*f/Y)+"%",A=C.component,a.FX=l,A.setProperty(AdfRichColumn.WIDTH,K,l),delete a.FX,
b.push({displayIndex:e,width:f});a.KW=b;Av(a);a=a.Gb();w.b.Qe(a)}}function Jy(a,b,d,e){var f=n;d?f={component:d,displayIndex:b,minimumWidth:d.getMinimumWidth(),actualWidth:Iy(a,b,e)}:(a=Iy(a,b,e),f={component:n,displayIndex:b,minimumWidth:a,actualWidth:a});return f}V.nQa=function(a,b){return a.minimumWidth-b.minimumWidth};V.prototype.yV=function(a){a=parseInt(a);return!isNaN(a)?(a=this.ea().offsetWidth*a/100,a.toFixed(0)):n};z.a("AdfDhtmlTableBasePeer.prototype.__getPixelWidthFromPercent",{yV:V.prototype.yV});
V.prototype.nD=function(a,b,d){if(!this.FX){for(var e=0<b.toString().indexOf("%"),f=a.e(),g=this.Gb(),h=w.b,g=g.getElementsByTagName("th"),m=g.length,q,s=0;s<m;++s)if(g[s].id==f){q=g[s];this.fZ=f=h.Sa(q,"_d_index",0);break}if(q){q=100;b!=n&&(q=b,e&&(q=this.yV(b)));if(isNaN(q)||0>=q||3200<q)q=100;b=this.Vq();if(-1!=ya.indexOf(b,a)){a=b.length;for(e=0;e<a;e++)q=Math.max(q,b[e].getMinimumWidth())}else q=Math.max(q,a.getMinimumWidth());Fy(this,q,d)}}};
z.a("AdfDhtmlTableBasePeer.prototype.resizeColumn",{nD:V.prototype.nD});
function Ky(a,b,d,e,f){var g;g=n;var h=p,m=p,q=p,s=p;a.eb()&&(a.ru=a.ru!==k?a.ru+e:e,Qv(a,b)?(a.Yg+=e,q=l):(a.bI+=e,s=l));var y=a.ea();(q||s)&&!a.Fb&&Ux(a,y,y.offsetWidth);a.Gf||(s=a.Gb(),g||(g=Yx(a,b,s,"t","d2","t2")),Ly(a,g,e,s,b,"t","d2","t2"),a.Fb?("multiple"!=a.AW&&My(a,s,e),Nv(a,s,"t","d2","t2")):(Nv(a,s,"t","d2","t2"),g=s.offsetHeight,g!=a.Zc&&(a.Zc=g,h=l)));a.Po||(s=Jv(a),g=Yx(a,b,s,"ft","fd2","ft2"),Ly(a,g,e,s,b,"ft","fd2","ft2"),a.Fb?(My(a,s,e),Nv(a,s,"ft","fd2","ft2")):(Nv(a,s,"ft","fd2",
"ft2"),g=s.offsetHeight,g!=a.Me&&(a.Me=g,m=l)));if(!a.Fb){for(var s=g=0,A=y.childNodes,C=A.length-1;0<=C;C--){var G=A[C];g+=G.kc;Ny(a,G,b,e);G.sba=n;Aw(a,G);var K=G.offsetHeight,s=s+K;if(K!=G.kc)for(var N=K-G.kc,Q=C+1;Q<A.length;Q++)A[Q].Xa+=N;G.kc=K}e=1==A.length&&0==A[0].la&&A[0].Db==a.Ys()?s-g:k;g=s/g;if(h||m||q)h=a.h(),m=a.Zc,Lv(a)&&!a.Zb?a.Pa().style.top=m+"px":(q=a.Pa(),q[0].style.top=q[1].style.top=m+"px"),xv(a,h.clientHeight,a.Zc,a.Me,a.ji),yv(a,h.clientWidth,a.Yg);h=y.firstChild;h=a.eb()?
!Pv(a)?parseInt(Hw(a,h.rows[0]).style.width):0:parseInt(h.style.width);m=a.Pa();Lv(a)&&!a.Zb?V.Pd(m,"DIV").style.width=h+"px":(q=V.Pd(m[0],"DIV"),V.Pd(m[1],"DIV").style.width=q.style.width=h+"px");h=e!=k?e:Math.round((g-1)*a.xe*a.Ys());a.Pm(h,y,l,l);f&&(b=a.sg()[b],a.FX=l,b.setProperty(AdfRichColumn.WIDTH,d,l),delete a.FX);d=a.Uq();a.Rd!=d&&(a.Rd=d,bw(a,d));a.cf||a.yk(y,y.offsetHeight,p)}}
function Ly(a,b,d,e,f,g,h,m){My(a,b,d);b=V.Ra(e,g);a.eb()?(e=V.Ra(e,h),m=V.Ra(e,m),Ov(a)?Qv(a,f)?(My(a,b,d),a=b.style.width,d=e.style,V.fb()?d.right=a:d.left=a):My(a,m,d):Qv(a,f)?My(a,b,d):(My(a,m,d),a=m.style.width,V.fb()?b.style.right=a:b.style.left=a)):My(a,b,d)}
function Ny(a,b,d,e){if(!a.eb()||Qv(a,d))b.rows&&(Zr(a)?My(a,b.rows[0].cells[d-a.ag+1],e):My(a,b.rows[0].cells[d],e));else for(var f=b.rows,g=0;g<f.length;g++){var h=Hw(a,f[g]);My(a,h,e);My(a,Ov(a)?h.rows[0].cells[d-a.$e-1]:h.rows[0].cells[d],e)}a.eb()||My(a,b,e)}
function My(a,b,d){B.ub(b);var e=parseInt(b.style.width)+d;isNaN(e)||(b.style.width=e+"px");if(a.qi()&&("TH"==b.tagName||"TD"==b.tagName)){a:{B.ub(b);B.assert("TH"==b.tagName||"TD"==b.tagName,"Invalid COLGROUP tag name");for(a=b.parentNode;a&&"TR"!=a.tagName;)a=a.parentNode;if(a){for(var f=a.cells,g=f.length,e=0;e<g&&f[e]!=b;e++);if(e<g){for(b=a.parentNode;b&&"TABLE"!=b.tagName;)b=b.parentNode;if(b&&(b=V.Pd(b,"COLGROUP"))){b=b.childNodes;++e;for(a=0;a<b.length;a++)if("COL"==b[a].tagName&&--e,0==e){b=
b[a];break a}}}}b=n}b&&(e=parseInt(b.style.width)+d,b.style.width=e+"px")}}V.rg=function(a,b){a&&a.style.cursor!=b&&(a.style.cursor=b)};v("AdfDhtmlTableBasePeer.SetCursor",V.rg);function Xw(a,b,d){if(a.Gl){var e=d?d:Dw(a,b);if(e&&e.getAttribute(V.B6)!=n){var f=F.c.j(e.id);!f.getSelected()&&ty(a)&&(a.dg(),e=w.b.Sa(e,"_d_index",-1),Ay(a,e,f,l));a.Gl.Nia(b,d)}}}V.prototype.lE=function(){return this.d().getContextMenuId()};z.a("AdfDhtmlTableBasePeer.prototype.GetRowContextMenuId",{lE:V.prototype.lE});
function Oy(a,b){var d=a.lE(b),e,f;if(d){var g=a.d();e=F.c.j(d);f=n;e==n&&(e=g.j(d),f=g);e==n&&D.i.severe("Could not find context menu ",d," from component ",g)}return{Hha:e,w4a:d,v4a:f}}
V.prototype.Zv=function(a,b,d,e,f){var g=Oy(this,b),h=g.Hha,m=g.v4a,q=g.w4a;h&&(this.Uw?w.b.cd()[w.Vc]!=w.Wc&&!this.kn(b)&&(this.Di(l),this.dg(),this.Di(p),ox(this,b,d)):(yx(this)||wy(this),Bx(this,d),this.lx=b,this.swa=d),d=this.d().e(),z.kb(hm),h[W.iK]=b,h[W.hK]=d,g={zu:this.d(),xb:b},F.c.oa(n,V.Iza,g,10),V.Iza(g),this.Rta||(this.Rta=this.o(this.hTa)),this.Sta||(this.Sta=this.o(this.iTa)),h.wRa||(h.addEventListener(Sb.gL,this.Sta),h.addEventListener(Rb.qo,this.Rta),h.wRa=l),h.Qa()&&(h.rb(),this.xwa=
l),this.ZJ(a,q,m,e,f,d),w.b.va(a))};z.a("AdfDhtmlTableBasePeer.prototype.HandleRowContextMenu",{Zv:V.prototype.Zv});V.prototype.RD=ca();z.a("AdfDhtmlTableBasePeer.prototype.ContextMenuOpened",{RD:V.prototype.RD});V.prototype.QD=ca();z.a("AdfDhtmlTableBasePeer.prototype.ContextMenuClosed",{QD:V.prototype.QD});V.prototype.iTa=function(a){this.mZ=l;var b=a.getSource();if(!this.Uw){var d=Oy(this,this.lx).Hha;d!=n&&b.e()==d.e()&&(yx(this)||this.Mj(V.Lm,p))}this.RD(a,b)};
V.prototype.hTa=function(a){if(this.xwa)delete this.xwa;else{delete this.mZ;var b=a.getSource();if(!this.Uw){var d=Oy(this,this.lx).Hha;d!=n&&b.e()==d.e()&&(this.Ej(),this.Mj(V.Pq,p),wy(this))}delete b[W.iK];delete b[W.hK];F.c.oa(n,V.MSa,this.d(),10);this.QD(a,b)}};V.MSa=function(a){a.setProperty("_highlightedRowKey",n,p,J.rd)};V.Iza=function(a){a.zu.setProperty("_highlightedRowKey",a.xb,p,J.rd)};
V.prototype.JE=function(a,b){if(this.cf||this.Fb)if(this.QM>=b)F.c.jc(this.d());else{this.QM=b;this.oya||(this.oya=new Function("payload","return payload;"));for(var d=this.oya(a),e=0;e<d.length;e++){var f=d[e];this.XK()?(f.id=b,this.JV||(this.JV=[]),this.JV.push(f)):Py(this,f)}d=this.ea();this.yk(d,d.offsetHeight,p);return l}};z.a("AdfDhtmlTableBasePeer.prototype.ProcessPushData",{JE:V.prototype.JE});
function Py(a,b){var d,e,f=b.type;switch(f){case "update":e=a.wL(b);break;case "remove":e=a.NE(b);break;case "insertBefore":case "insertAfter":case "insertInside":e=a.yE(b,f);break;default:B.assert(p,"Unknown ADS type:"+f),d=V.n4}if(e&&(d=e.rerender,(e=e.updates)&&""!==e)){var g=a.h(),h=w.b;if(g&&a.CE(g,h,f)){var h=F.c.u(),m=a.d(),g=m.Vd();g==n&&(g="",D.i.fine("No shortDesc exists for the component with clientId: ",m.e()));f=a.Rs(f);f=h.V(f);f=TrFastMessageFormatUtils.format(f,g,e);a.vAa=a.vAa+" "+
f}}d&&F.c.jc(a.d())}V.prototype.CE=function(a,b,d){var e=b.getAttribute(a,"aria-live")||"",e=e.toLowerCase();if(""!==e)return p;a=b.getAttribute(a,"aria-relevant")||"";a=a.toLowerCase().trim();b=a.split(" ");if(-1<b.indexOf("all"))return l;e=p;switch(d){case "update":if(""===a||-1<b.indexOf("text"))e=l;break;case "remove":-1<b.indexOf("removals")&&(e=l);break;case "insertBefore":case "insertAfter":case "insertInside":if(""===a||-1<b.indexOf("additions"))e=l}return e};
z.a("AdfDhtmlTableBasePeer.prototype.IsValidAnnouncement",{CE:V.prototype.CE});V.prototype.Rs=function(a){return V.My[a]||"AFActiveDataTableRowInsert"};z.a("AdfDhtmlTableBasePeer.prototype.GetActiveDataAnnouncementKey",{Rs:V.prototype.Rs});V.prototype.LE=ca();z.a("AdfDhtmlTableBasePeer.prototype.RegisterADSAccessibility",{LE:V.prototype.LE});function Wv(a,b,d){if(-1!=b){var e=a.JV;if(e)for(var f=0;f<e.length;f++){var g=e[f],h=g.id;(d?h<=b:h>b)&&Py(a,g)}}}
V.prototype.YK=function(a){var b=l,d=this.ea().childNodes,e=d[0],d=d[d.length-1];if(this.cg==eg.dk)a==d.la+d.Db&&(b=p);else if(this.cg==eg.Yn)a==e.la&&(b=p);else if(this.cg==k&&a!=d.la+d.Db&&(a<e.la||a>=d.la+d.Db))b=p;return b};z.a("AdfDhtmlTableBasePeer.prototype.IsInsertAllowed",{YK:V.prototype.YK});
V.prototype.jT=function(a,b,d){for(var e=a.cloneNode(l),f=0;f<this.It;f++){var g=this.Mg(e,f);Qy(this,g,d)}w.b.wa(e);e.setAttribute(V.Ba,d);H.F(e,V.Xe);H.F(e,V.xw);H.F(e,V.Z5);a=a.parentNode.parentNode.cloneNode(p);d=this.w().createElement("TBODY");d.appendChild(e);a.appendChild(d);this.VK(a,b,1,1,0);return e};z.a("AdfDhtmlTableBasePeer.prototype.InsertClonedRow",{jT:V.prototype.jT});V.prototype.iT=function(a,b){var d=w.b.Yi(a);if(d)for(var e=d.length,f=0;f<e;f++){var g=d[f],h=g.e();g.Kf(Ry(h,b)).pK()}};
z.a("AdfDhtmlTableBasePeer.prototype.InsertClonedComponents",{iT:V.prototype.iT});
V.prototype.yE=function(a,b){var d,e=n;this.Fb||(e=this.ea().childNodes);if(e&&0<e.length){var f,g=a.iKey,h=e;f=-1;if("insertBefore"==b)if(g){if(g=this.Ob(g))f=g.index}else g=h[h.length-1],h=this.Yd(),-1!=h&&g.la+g.Db==h&&(f=h);else g?(g=this.Ob(g))&&(f=g.index+1):0==h[0].la&&(f=0);-1!=f&&this.YK(f)?(g=a.rKey,e=this.fT(e),this.jT(e,f,g),this.iT(e,g),renderer=this.wL(a).rerender):d=V.wT}else d=V.wT;e=this.ZD(a.rKey,b);return{rerender:d,updates:e}};
z.a("AdfDhtmlTableBasePeer.prototype.InsertActiveRow",{yE:V.prototype.yE});V.prototype.fT=function(a){a=a[0].rows;B.assert(a&&a[0],"Unable to insert active row when the block contains no rows to clone!");return a[0]};z.a("AdfDhtmlTableBasePeer.prototype.GetTemplateRow",{fT:V.prototype.fT});V.prototype.NE=function(a){var b="";if(!this.Fb){var d=this.Ob(a.rKey);if(d){var e=d.Vb,b=this.ZD(a.rKey,"remove");w.b.gc(e);this.VD(d.index,1,1,0,n);F.c.th(e)}}return{rerender:"",updates:b}};
z.a("AdfDhtmlTableBasePeer.prototype.RemoveActiveRow",{NE:V.prototype.NE});V.prototype.W3=function(a,b){if(a===b)return a;var d=V.JNa,e=d[a],d=d[b];return!e?b:!d?a:e>=d?a:b};z.a("AdfDhtmlTableBasePeer.prototype.MaxOfRerender",{W3:V.prototype.W3});
V.prototype.wL=function(a){var b="",d=a.type;if(!this.Fb){a=a.updates;for(var e="",f=0;f<a.length;f++){var g=a[f],h;h=g.cliId;var m=g.callback,q=g.properties,s=g.formattedProperties,g=d,y=w.b.getElementById(h);if(y){var A;for(A=w.b;y&&"TD"!==A.Ga(y);)y=y.parentNode;if(A=y){var y=A.textContent,C=A,G=h;C&&(H.n(C,V.LPa),H.F(C,V.KPa),this.R1a.push(G));h=(new Function("clientId","properties","formattedProperties",m))(h,q,s);m=this.nE(A,g,y);h={result:h,update:m}}else h={result:p,update:""}}else h={result:p,
update:""};b=this.W3(b,h.result);e=e+" "+h.update;e=e.trim()}}return{rerender:b,updates:e}};z.a("AdfDhtmlTableBasePeer.prototype.UpdateActiveRow",{wL:V.prototype.wL});function Qy(a,b,d){b.id=Ry(b.id,d);for(b=b.firstChild;b;)1==b.nodeType&&Qy(a,b,d),b=b.nextSibling}function Ry(a,b){var d="";if(a){for(var e=a.split(":"),f=0;f<e.length-2;f++)d+=e[f],d+=":";d=d+(b+":")+e[e.length-1]}return d}V.prototype.BE=t(p);z.a("AdfDhtmlTableBasePeer.prototype.IsNodeStampCell",{BE:V.prototype.BE});
V.prototype.nE=function(a,b){var d="";if("update"!==b)return d;var e=this.h();if(!e||!this.CE(e,w.b,b))return d;d=this.mE(a,e);d.trim();if(""===d)return d;var e=this.bE(a),f=a.textContent,g=F.c.u().V("AFActiveDataTableRowUpdateInfo");return g=TrFastMessageFormatUtils.format(g,d,e,f)};z.a("AdfDhtmlTableBasePeer.prototype.GetUpdatedActiveValues",{nE:V.prototype.nE});V.prototype.ZD=function(a,b){var d="",e=this.h(),f=w.b;return!e||!this.CE(e,f,b)?d:d=this.ct(a,e,f)};
z.a("AdfDhtmlTableBasePeer.prototype.GetActiveRowText",{ZD:V.prototype.ZD});V.prototype.ct=function(a,b,d){var e="";try{var f=this.Ob(a).tr.cells;if(this.lT(b,d)){var g=f.length;for(a=0;a<g;a++)e=e+f[a].textContent+" "}else e=f[0].textContent;return e=e.trim()}catch(h){return D.i.fine("Exception while trying to get the announcement text for the active data row insert/delete"+h),e}};z.a("AdfDhtmlTableBasePeer.prototype.GetRowText",{ct:V.prototype.ct});
V.prototype.lT=function(a,b){var d=b.getAttribute(a,"data-aria-read-whole-row")||"",d=d.toLowerCase().trim();return"true"===d?l:p};z.a("AdfDhtmlTableBasePeer.prototype.IsWholeRowRead",{lT:V.prototype.lT});V.prototype.mE=function(a,b){try{return(cells=this.he(a,b)[1].cells[0]).textContent}catch(d){return D.i.fine("Exception while trying to get the header text of active row:"+d),""}};z.a("AdfDhtmlTableBasePeer.prototype.GetRowHeaderText",{mE:V.prototype.mE});
V.prototype.bE=function(a){try{if(this.Gf)return"";var b=rx(this,a);return Zx(this,b).textContent}catch(d){return D.i.fine("Exception while trying to get the column header text of active row:"+d),""}};z.a("AdfDhtmlTableBasePeer.prototype.GetColHeaderText",{bE:V.prototype.bE});V.prototype.Ob=function(a){for(var b=n,d=this.ea().childNodes,e=0;e<d.length&&!b;e++){var f=d[e],g=f.rows;if(g)for(var h=0;h<g.length&&!b;h++){var m=g[h];if(a==m.getAttribute(V.Ba)){b={Vb:m,index:f.la+h,n_:f};break}}}return b};
z.a("AdfDhtmlTableBasePeer.prototype.FindRowByKey",{Ob:V.prototype.Ob});V.prototype.Mg=function(a,b){B.assert(a!=n,"Unable to find cell by index if the given row is invalid!");var d=n,d=n;Ov(this)&&!Qv(this,b)?(d=Hw(this,a),d=d.rows[0].cells[b-this.$e-1]):Zr(this)?Qv(this,b)?d=0<this.ag?a.cells[b-this.ag+1]:a.cells[b]:(d=Hw(this,a),d=d.rows[0].cells[b]):d=a.cells[b];return d};z.a("AdfDhtmlTableBasePeer.prototype.FindCellByIndex",{Mg:V.prototype.Mg});
function Hy(a,b,d,e,f,g){if(!b)return n;if("multiple"==e)return a=d,a==n&&(a=""+b.getWidth()),b=a.length-1,"%"!=(""+a).charAt(b)?n:Math.abs(parseInt(a.substring(0,b)));if("last"==e){if(d=b.getDisplayIndex(),-1==d&&(d=g),d==f-1&&!b.getRowHeader())return 1}else if(d=a.cAa,d!=n&&(e=b.e(),e.substring(1+e.lastIndexOf(":"))==d&&(d=b.getDisplayIndex(),-1==d&&(d=g),!b.getRowHeader()&&(!Qv(a,d)||Zr(a)&&d==f-1))))return 1;return n}
function Iy(a,b,d){var e=100,f=p;a=a.Fb?Yx(a,b,a.Gb(),"t","d2","t2"):a.Mg(d,b);try{var g=w.b.getComputedStyle(a).width,e=parseInt(g);if(isNaN(e)||0>e)if(e=parseInt(a.style.width),isNaN(e)||0>e)e=100,f=l}catch(h){e=100,f=l}f&&D.i.warning("INVALID COLUMN WIDTH FOR COLUMN DISPLAY INDEX: "+b);return e}function Av(a){var b=a.AW;if(!(b==n||"none"==b))if(!(a.Vxa||a.Fb&&a.Gf)){a.dAa=l;try{Sy(a,b)}finally{delete a.dAa}}}
function Sy(a,b,d){var e,f,g,h,m,q=0,s=a.sg();f=s.length;g=Array(f);h=Array(f);m=Array(f);for(var y=l,A=0;A<f;A++){var C=s[A];e=Hy(a,C,n,b,f,A);e!=n&&(y=p,g[A]=e,e=""+C.getWidth(),e.lastIndexOf("%")==e.length-1&&(m[A]=e.substring(0,e.length-1),q+=Math.abs(parseInt(m[A]))),h[A]=isNaN(e)?C.getMinimumWidth():e)}if(y)a.Vxa=l;else{if("multiple"==b)for(x=0;x<m.length;x++)m[x]/=q;q=a.It;y=a.ea();e=y.childNodes[0];m=p;var G;a.Fb||(G=e.rows[0],B.assert(G!=n,"this.IsEmpty was "+a.Fb+" but there were no rows!"));
s=0;!a.eb()||Pv(a,q)?(q=y.offsetWidth,e=a.Fb?a.Gb().firstChild.offsetWidth:e.offsetWidth,s=q-e):a.Fb?(q=a.Gb(),e=V.Ra(q,"t"),s=V.Ra(q,"d2"),s=V.Ra(s,"t2"),q=q.parentNode.offsetWidth,s=q-e.offsetWidth-s.offsetWidth-2):(e=Hw(a,G),Zr(a)?(q=a.Gb(),e=V.Ra(q,"t"),s=V.Ra(q,"d2"),s=V.Ra(s,"t2"),q=q.parentNode.offsetWidth,y=Sv(a),s=q-e.offsetWidth-s.offsetWidth-y-2,a.If==V.pk&&(s+=y)):(q=e.parentNode.offsetWidth,s=q-e.offsetWidth));if(0!=s||!a.MAa){q=[];for(A=y=0;A<f;A++)e=g[A],e!=n&&(C=Iy(a,A,G),y+=C,q.push({displayIndex:A,
flex:e,minimumWidth:h[A],width:C}));G=y+s;f=q.length;var K;e=p;for(s=0;!e&&s<f;){y=G;for(g=A=0;g<f;g++)K=q[g],K.atMinimum?(h=K.minimumWidth,y-=h):A+=K.flex;var C=y,N=0;for(g=0;g<f;g++)if(K=q[g],!K.atMinimum){var Q=K.flex/A*C;h=Math.floor(Q);minimumWidth=K.minimumWidth;h<minimumWidth?(h=minimumWidth,K.atMinimum=l,s++):N+=Q-h;K.calculatedWidth=h;y-=h}N=Math.round(N);y==N&&(0<N&&(K.calculatedWidth+=N),e=l)}G=[];for(g=0;g<f;g++)if(K=q[g],e=K.displayIndex,h=K.calculatedWidth,G.push({displayIndex:e,width:h}),
K=h-K.width,0!=K||!a.MAa)m=l,Ky(a,e,h,K,p);a.KW=G}m&&(d||(d=0),5>d&&Sy(a,b,++d))}}
function Sx(a,b){var d;if(-1!=a.oba){var e=a.It-1;B.assert(b.rows!=n,"Unable to stretch the columns in the last fetched block because it contains no rows!");d=a.Mg(b.rows[0],e);d=parseInt(d.style.width);Ny(a,b,e,a.oba-d)}else if(a.KW!=n){B.assert(b.rows!=n,"Unable to stretch the columns in the last fetched block because it contains no rows!");for(var e=a.KW,f=e.length,g=0;g<f;g++){var h=e[g],m=h.displayIndex;d=a.Mg(b.rows[0],m);d=parseInt(d.style.width);Ny(a,b,m,h.width-d)}}}
V.prototype.xW=function(a){for(var b="",d=this.ea().childNodes,e=0;e<d.length;e++)for(var f=d[e].rows,g=0;g<f.length;g++){var h=f[g].getAttribute(V.Ba);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};V.prototype.Ej=function(){if(this.BJ()){var a=F.c.Qc;a&&(this.h()!=a&&a.blur)&&(a.blur(),O.ra(this.h()))}else O.ra(this.h())};
V.prototype.Ha=function(a){if(this.cf){if(a.Q!=k){var b=a.Q();b&&(this.Sg("nbar")&&this.Sg("nbar").contains(b)||this.Sg("hscroller")&&this.Sg("hscroller").contains(b))?this.dW=l:this.dW=p;if(b!=this.h()&&this.me(b)){var d=this.d().e(),e=a.getSource();if(e&&e.e()!=d&&e.getParent()&&e.getParent().e()!=d)return;d=w.b;if(e=this.Pa()){var f=rx(this,b);if(!this.eb()||!Qv(this,f)){if(!Lv(this)||this.Zb)e=e[V.uj];var f=d.rc(b),g=d.rc(e);f+b.offsetWidth>g+e.clientWidth&&d.te(e,this.Rd+(b.offsetWidth+f-(g+
e.clientWidth)),n)}}if(k!=b.value&&("TEXTAREA"==b.nodeName||"text"==b.type||"select-one"==b.type))b.P8=b.value;"INPUT"==b.nodeName&&"text"==b.type&&F.c.oa(this,this.B0a,b,0)}}this.VF!=n&&(clearTimeout(this.VF),delete this.VF);a.dd()!=Ta.BUBBLING_PHASE&&this.gva==n&&(this.hva==n&&(this.hva=this.o(this.LTa)),this.gva=setTimeout(this.hva,10))}};z.a("AdfDhtmlTableBasePeer.prototype.HandleComponentFocus",{Ha:V.prototype.Ha});
V.prototype.Eb=function(){this.hta==n&&(this.hta=this.o(this.KTa));this.VF=setTimeout(this.hta,10)};z.a("AdfDhtmlTableBasePeer.prototype.HandleComponentBlur",{Eb:V.prototype.Eb});V.prototype.Hz=function(){var a=n,b=n,d=n;if(a=this.vz()){var e=this.Ob(a);e?b=e.Vb:a=n}if(a==n&&(e=this.dl()))a=e.xb,b=e.pb,tv(this)&&a!=n&&(ox(this,a,b),mx(this,b));b&&(d=this.Mg(b,0));this.Ec(V.we,a,b,d)};z.a("AdfDhtmlTableBasePeer.prototype.HandleHeaderlessFocus",{Hz:V.prototype.Hz});
V.prototype.LTa=function(){if(this.d()&&!this.mZ){this.Mj(V.Pq,p,n);var a=this.ad;a.vc?Ty(this,l):a.ns!=V.we&&a.ns!=V.WL&&(!this.dW&&!lx(this,p,l,l)&&this.Hz(),this.dW=p)}delete this.gva};V.prototype.KTa=function(){this.d()&&!this.mZ&&(this.Mj(V.Pq,p,n),this.BJ()||this.ad.vc&&Ty(this,p));delete this.VF};V.prototype.pa=function(a){a.na()||(a=w.b,a.Qe(a.w().body))};z.a("AdfDhtmlTableBasePeer.prototype.HandleComponentKeyUp",{pa:V.prototype.pa});
function cw(a,b){H.Cu(a.ea(),b);var d=a.Gb();d&&H.Cu(d,b)}function Uy(a,b,d){b=b.L();var e=w.b,f=e.T(b),g=p;a.Kj||a.PB?g=l:a.mZ||(a.me(f)&&(k!=f.P8&&f.value!=f.P8&&d)&&(f.value=f.P8),(d=a.ho())&&d==iy(a)&&ay(a)?(d=a.he(f,a.h()),d!=n&&d[0]!=n&&(f=jy(a,f,d[1]),a.YO=f.cellIndex,f.jh&&Vy(a,f.jh)),ky(a,n),cw(a,l),a.Vm=l,a.Ej(),e.va(b)):ay(a)?a.me(f)||(a.dg(),Sw(a)):(Bw(a,l,f,l),e.va(b)));return g}
V.prototype.ba=function(a){if(!a.na()&&this.Hw(a)){var b=a.L(),d=w.b,e=d.T(b),f=b.keyCode,g=p,h=this.cf;switch(f){default:g=l;break;case E.xh:g=Uy(this,a,l);break;case E.cL:b.ctrlKey&&b.altKey&&h?Yw(this,b,l):g=l;break;case E.oK:if(b.ctrlKey&&!b.altKey&&h){this.Ej();var m=yx(this),e=(e=this.d().getRowSelection())&&-1!=e.indexOf(V.cOa);m&&(!e&&!this.d().getSelectedRowKeys()[V.Ji])&&Tw(this)}else g=l;break;case E.nm:if(!(g=this.me(e))&&b.ctrlKey&&b.shiftKey&&h)if(e=this.ad,m=e.ns,e=e.rp,m==V.vj||m==
V.we)if((m=this.ea())&&0<m.childNodes.length&&m.childNodes[0].rows[0].getAttribute(V.Ba)==e)this.Ej(),this.d().getSelectedRowKeys()[V.Ji]||Tw(this);break;case E.g4:if(!(g=this.me(e)))if(h=b.ctrlKey,b.altKey)Wy(this,l);else if(this.cf){var m=this.ea(),q=this.lc-m.offsetHeight,e=q>0-m.offsetHeight,q=0>q?0:q,f=this.d().getSelectedRowKeys(),s=p,y;for(y in f){s=l;break}if(!s||h)e&&Cw(this,n,q);else if(h=this.dl(),(y=h.xb)!=n)h=h.pb,f=f[y]!=n&&f[V.Ji]==n,this.dg(),e&&f?(this.Ix=V.Hqa,q=h.offsetTop+h.parentNode.parentNode.Xa-
m.offsetHeight,Cw(this,n,q)):(ox(this,y,h),this.Ec(V.we,y,h),mx(this,h))}break;case E.f4:if(!(g=this.me(e)))if(y=b.ctrlKey,b.altKey)Wy(this,p);else if(this.cf){f=this.ea();e=this.d().getSelectedRowKeys();h=p;for(m in e){h=l;break}if(!h||y)m=this.lc+f.offsetHeight,m<Ow(this)&&Cw(this,n,m);else if(y=nx(this),(m=y.xb)!=n)y=y.pb,e=e[m]!=n&&e[V.Ji]==n,this.dg(),e?(this.Ix=V.Gqa,Cw(this,n,this.lc+(y.offsetTop+y.offsetHeight-(this.lc-y.parentNode.parentNode.Xa)))):(ox(this,m,y),this.Ec(V.we,m,y),mx(this,
y))}break;case E.zd:case 192:m=d.ph()==w.lo&&192==f&&b.ctrlKey;if(!(g=this.me(e)))if(m||f==E.zd)switch(e=w.b,m=this.ad,m.ns){case V.tM:this.Ej();this.d().getSelectedRowKeys()[V.Ji]||Tw(this);break;case V.vj:m=this.he(m.vc,this.h());m!=n&&(this.Ej(),ly(this,e.T(b),e.Op(b),b.shiftKey,m[0],m[1]));break;case V.pt:ty(this)&&(e=[],y=[],this.S8=m=m.vc,xy(this,e,y,m),Uw(this,b,e,y));break;case V.we:this.fAa&&(m=this.ad.rp,m!=n&&(this.kn(m)?b.ctrlKey&&zx(this,m,this.ad.vc):ox(this,m,this.ad.vc)))}break;case E.$a:if(!(g=
"TEXTAREA"==e.tagName||"A"==e.tagName))g=this.aaa(e,b);break;case E.fi:!(g=this.me(e))&&(b.ctrlKey&&h)&&Cw(this,n,0);break;case E.DK:if(this.Vm)a:{e=w.b;m=e.T(b);if(ay(this)){if(y=this.ho(),f=iy(this),!f||y&&(f!=y||this.d().r(V.vF))){y?e=y:(e=this.ea().childNodes,e=0<e.length?Ox(e[0]):n);e&&(ky(this,e),this.Vm&&(e=this.YO,Bw(this,p,m,p),e!=k&&(this.Sm={cellIndex:e})));break a}}else!ay(this)&&this.Vm&&Bw(this,p,m,l);if(this.me(m)&&(y=this.he(m,this.h()),y!=n&&(m=jy(this,m,y[1]).jh,(m=Xy(e,m))&&("INPUT"==
m.nodeName&&"text"==m.type||"TEXTAREA"==m.nodeName))))e=m.value.length,m.selectionStart!=n?(m.setSelectionRange(e,e),m.blur(),m.focus(),e=m.ownerDocument.createEvent("KeyboardEvent"),e.initKeyEvent!=k?e.initKeyEvent("keypress",l,l,n,p,p,p,p,27,0):e.initUIEvent("keypress",l,l,window,1),m.dispatchEvent(e)):(m=m.createTextRange(),m.collapse(p),m.select())}else Uy(this,a,p);break;case E.Df:this.me(e)?g=this.iaa(e,b):F.c.Qc==this.h()&&!b.shiftKey?(m=iy(this),m!=n?(e=this.Ob(m),e!=n&&(my(this,d,e.Vb)==
n?g=l:this.ho()==n&&this.Ec(V.we,m,e.Vb))):g=l):g=l}g||(a.dc(),d.va(b))}};z.a("AdfDhtmlTableBasePeer.prototype.HandleComponentKeyDown",{ba:V.prototype.ba});function Yw(a,b,d){var e=w.b,f=a.ad;if(f.ns==V.pt)Xw(a,b,f.vc);else if(e=e.T(b),d||!a.me(e))d=a.OE(f.vc),e=a.gE(),a.Zv(b,f.rp,f.vc,d,e)}V.prototype.gE=t(n);z.a("AdfDhtmlTableBasePeer.prototype.GetKeyboardContextMenuAlignHint",{gE:V.prototype.gE});V.prototype.OE=ba();z.a("AdfDhtmlTableBasePeer.prototype.ResolveContextMenuAlignElement",{OE:V.prototype.OE});
V.a9a=function(a){a.D9a.selectedIndex=a.index};function ux(a,b){if(a.S8){var d=[],e=[],f=[],g=[];xy(a,d,e,a.S8);xy(a,f,g,b);a.dg();yy(a,d,e,f,g)}}
function tx(a,b){var d=a.ad.vc;if(d&&d.getAttribute(V.pM)!=n){var e=n;if(b){e=Yy(d,p);if(e==n){var f=w.b.Sa(d,"_d_index",-1);if(a.eb()&&!Qv(a,f)){var f=V.Ra(a.Gb(),"t"),g=xx(a)?2:1;f&&(f.rows&&0<f.rows[g].cells.length)&&(e=f.rows[g].cells,e=e[e.length-1])}}e.getAttribute(V.Km)!=n&&(e=n)}else e=Yy(d,l),e==n&&(f=w.b.Sa(d,"_d_index",-1),Qv(a,f)&&(f=V.Ra(a.Gb(),"d2"),f=V.Ra(f,"t2"),g=xx(a)?2:1,f&&(f.rows&&0<f.rows[g].cells.length)&&(e=f.rows[g].cells[0])));e&&(a.Kj=d,a.UH=e,a.en=b?V.fb()?l:p:V.fb()?p:
l,a.Rca=a.Kj.id,fy(a),a.Kj=a.UH=n,delete a.en)}}function Zy(a){return a.getAttribute(V.XL)!=n}function ix(a,b){var d=w.b;if(b){if(1<b.colSpan)return wx(b);for(var e=Yy(b,l),f=vx(b),g=f;!e&&g;)g=(e=Yy(f,l))!=n?vx(e):n;if(e){if((e?vx(e):n)!=f)if((f=vx(e))&&!Rw(a,f))return f;return e}d=d.Sa(b,"_d_index",-1);if(a.eb()&&Qv(a,d)&&(d=a.Gb(),d=V.Ra(d,"d2"),d=V.Ra(d,"t2"),e=Zy(b)?1:xx(a)?2:1,d&&d.rows&&0<d.rows[e].cells.length))return d.rows[e].cells[0]}return n}
function hx(a,b){var d=w.b;if(b&&b.getAttribute("_afrFH")==n){for(var e=Zy(b),f=Yy(b,p),g=vx(b),h=f?vx(f):n,m=g;!f&&m;)m=(f=Yy(g,p))!=n?vx(f):n;if(g!=n&&g!=h&&!Rw(a,g))return g;if(f!=n)return $y(f);d=d.Sa(b,"_d_index",-1);if(a.eb()&&!Qv(a,d)){if(d=a.Gb(),(d=V.Ra(d,"t"))&&d.rows)if(e=e?1:xx(a)?2:1,e=d.rows[e].cells,d=e.length,0<d)return $y(e[d-1])}else a.eb()&&lx(a,l,p,e)}return n}
function Yy(a,b){for(var d=b?a.nextSibling:a.previousSibling;d&&1!=d.nodeType;)d=b?d.nextSibling:d.previousSibling;return d}function $y(a){var b=a;if(1<a.colSpan){var d=a;B.assert(d!=n,"Table peer cannot resolve the bottom-most child column if the parent is null!");b=wx(a);for(a=b=az(d,b);a!=n;)if(d=a,(a=wx(a))!=n)b=a=az(d,a)}return b}
function az(a,b){B.assert(a!=n,"Table peer cannot resolve the right-most sibling in a group if the parent is null!");if(1<a.colSpan)for(var d=b,e=a.colSpan;d&&e>d.colSpan;)if(e-=d.colSpan,(d=Yy(d,l))!=n)b=d;return b}V.prototype.xV=function(a){B.J(a,AdfRichColumn);return!this.Gf&&(a=vx(a.k().h()))?F.c.j(a.id):n};z.a("AdfDhtmlTableBasePeer.prototype.__getParentColumn",{xV:V.prototype.xV});
function vx(a){var b=a.parentNode,d,e=n,f=b.parentNode.parentNode.rows,g=f.length,h=w.b;a=h.Sa(a,"_d_index",-1);for(var m=0;m<g;m++)if(f[m]==b){d=m-1;break}if(0<=d){m=d;for(b=p;0<=m&&!b;m--){d=f[m].cells;for(g=d.length-1;0<=g;g--){var q=d[g],s=h.Sa(q,"_d_index",-1);if(1<=q.colSpan&&s<=a&&s+q.colSpan>=a){e=q;b=l;break}}}}return e}
function wx(a){var b=w.b,d=b.Sa(a,"_d_index",-1),e=a.parentNode,f;a=n;for(var g=e.parentNode.parentNode.rows,h=g.length,m=h-1;0<=m;m--)if(g[m]==e){f=m+1;break}if(f<h){m=f;for(f=p;m<h&&!f;m++)for(var e=g[m].cells,q=e.length,s=0;s<q;s++){var y=e[s];if(d==b.Sa(y,"_d_index",-1)){a=y;f=l;break}}}return a}
function jx(a,b){var d=w.b;if(a.Fb){var e=a.h(),f=0;a.eb()&&(f=V.Ra(a.Gb(),"t").offsetWidth);b.offsetLeft+b.offsetWidth+f>e.clientWidth+e.offsetLeft&&d.setScrollLeft(e,b.offsetWidth+b.offsetLeft+f-e.clientWidth);e.offsetLeft>b.offsetLeft+f&&d.setScrollLeft(e,b.offsetLeft+f)}else d=a.ea(),b.offsetLeft+b.offsetWidth>d.clientWidth+a.Uq()-a.Yg?Cw(a,b.offsetWidth+b.offsetLeft-d.clientWidth+a.Yg,n):a.Uq()>b.offsetLeft&&Cw(a,b.offsetLeft,n)}
function lx(a,b,d,e){if(!a.Gf){var f=a.Gb();if(f==n)return p;f=V.Ra(f,"t");e=e?1:xx(a)?2:1;e=f.rows[e].cells[0];if((f=e.getAttribute(V.sM)!=n)||!b)return Mq(a,e),!d&&!f&&jx(a,e),l}return p}function sx(a,b){if(0==b)lx(a,p,p);else if(!a.Gf){var d=bz(a,b);if(d&&(d=w.b.getElementById(d)))a.Ec(V.pt,n,d),jx(a,d)}}V.prototype.C0a=function(a){var b=a[0];a=a[1];this.dg();ox(this,b,a)};
V.prototype.Jz=function(a,b){var d=this.Uq()+(a?-20:20),e=l;if(b)this.cn||(d=Math.max(0,d),d<Mx(this)&&Cw(this,d,n)),e=p;else if(a&&(d=this.ad.rp)){var f=this.Ob(d);if(f&&(f=this.tq(f.Vb))){var g=px(this,dw(this),l);if(g==n||g==f)this.Ec(V.vj,d,f),e=p}}this.cn&&b&&(d=this.ho(),d!=n&&this.d().Wk(d,!a));e&&qx(this,a)};z.a("AdfDhtmlTableBasePeer.prototype.HandleTableBodyArrowLeftRight",{Jz:V.prototype.Jz});
function Wy(a,b){var d=a.Fb?a.h():Lv(a)&&!a.Zb?a.Pa():a.Pa()[V.uj];if(d&&d.scrollWidth>d.offsetWidth){var e=w.b.getScrollLeft(d)-(b?-1:1)*(d.clientWidth-d.clientWidth/10),e=b?Math.max(e,0):Math.min(e,d.scrollWidth);w.b.te(d,e)}}function nx(a){for(var b=w.b,d=a.ea(),e=d.childNodes,f={},g=e.length-1;0<=g&&!f.xb;--g)for(var h=e[g].Xa,m=e[g].rows,q=m.length-1;0<=q;--q){var s=m[q];if(s.offsetTop-(a.lc-h)+V.IU<d.offsetHeight){h=b.getAttribute(s,V.Ba);f.xb=h;f.pb=s;break}}return f}
V.prototype.dl=function(a){var b=this.mW;if(b)return b;var d=w.b,e=this.ea().childNodes,f=e.length,b={};a=a==k?V.IU:a;for(var g=0;g<f&&!b.xb;++g){var h=e[g],m=h.Xa,q=h.rows,s=0;q!=n&&(s=q.length);for(var y=0;y<s;++y)if(h=q[y],h.offsetTop+h.offsetHeight+m-a>this.lc){m=d.getAttribute(h,V.Ba);b.xb=m;b.pb=h;break}}return this.mW=b};z.a("AdfDhtmlTableBasePeer.prototype.GetFirstVisibleRowKeyAndRow",{dl:V.prototype.dl});
V.prototype.Af=function(a,b){var d=a*this.xe,e=this.d(),f=this.dl(),e=f.xb?e.wd(f.xb):n,g;this.lc!=d&&(g=this.te(-1,d,l,p));e==a||g==V.lk?cz(b,this.cma):(d=this.Dca,cz(d,this.oGa),this.Dca=b,d||F.c.addEventListener(Eb.ga,this.QN,this))};z.a("AdfDhtmlTableBasePeer.prototype.scrollToRowIndex",{Af:V.prototype.Af});function cz(a,b){if(a){B.Da(a);var d={};d.status=b;a(d)}}u=V.prototype;
u.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.Dca,this.Dca=n,cz(a,this.cma))};
u.Qt=function(a){for(var b=w.b,d=this.ea().childNodes,e=d.length,f={},g=0;g<e&&!f.xb;++g)for(var h=d[g].rows,m=h.length,q=0;q<m;++q){var s=h[q],y=b.getAttribute(s,V.Ba);if(a==n){f.xb=y;f.pb=s;break}else if(y==a){f.JJ=y;if(q+1<m){s=h[q+1];if(this.cn&&w.b.getAttribute(s,V.wo,p))if(q+2<m)s=h[q+2];else if(g+1<e&&0<d[g+1].rows.length)s=d[g+1].rows[0];else return f;y=b.getAttribute(s,V.Ba);f.xb=y;f.pb=s}else g+1<e&&(h=d[g+1].rows,0<h.length&&(s=h[0],y=b.getAttribute(s,V.Ba),f.xb=y,f.pb=s));break}}return f};
u.St=function(a){for(var b=w.b,d=this.ea().childNodes,e={},f=d.length-1;0<=f&&!e.xb;--f)for(var g=d[f],h=d[f].rows,m=h.length-1;0<=m;--m){var q=h[m],s=b.getAttribute(q,V.Ba);if(a==n){e.xb=s;e.pb=q;break}else if(s==a){e.JJ=s;if(0<=m-1){q=h[m-1];if(this.cn&&w.b.getAttribute(q,V.wo,p))if(0<=m-2)q=h[m-2];else if(0<=f-1&&0<d[f-1].rows.length)q=d[f-1].rows[d[f-1].rows.length-1];else return e;s=b.getAttribute(q,V.Ba);e.xb=s;e.pb=q}else 0<=f-1?(h=d[f-1].rows,0<h.length&&(q=h[h.length-1],s=b.getAttribute(q,
V.Ba),e.xb=s,e.pb=q)):0==b.Sa(g,"_startRow",-1)&&(e.L0=l);break}}return e};
u.aaa=function(a,b){var d=w.b,e=this.ad;if(Rw(this,a))this.Vm&&Bw(this,p,a,l),d.G()==w.ed&&0<this.Rd&&O.ra(this.h()),$w(this);else if(this.me(a)){if(d=this.he(a,this.h()),d!=n&&(e=d[0],e!=n&&(d=jy(this,a,d[1]),d=this.Vw!=k&&!b.shiftKey?this.Vw:d.cellIndex,-1<d)))if(ay(this))dz(this,e,!b.shiftKey,d);else{var f=d,g=!b.shiftKey?this.Qt(e):this.St(e),e=g.xb;if(e!=n){var d=w.b,g=g.pb,f=this.Mg(g,f),h=l;my(this,d,f)==n&&my(this,d,g)==n&&(h=p);h&&(tv(this)&&!this.kn(e))&&(this.dg(),this.Ec(V.we,e,g),ox(this,
e,g))}}}else if(this.ad.ns==V.pt){if((e=e.vc)&&d.getElementById(M.g(e.id,V.At))!=n)d=F.c.j(e.id).getSortProperty(),f=V.zV(e.id),f=f==n?l:!f,this.d().setProperty("currentlySelectedHeaderId",e.id),ds.qs(this.d(),d,f)}else if(ay(this)&&this.ho()!=n)this.Vm?(ky(this,this.ho()),Bw(this,p,a,p),d=rx(this,dw(this)),-1==d&&(d=this.YO),d!=k&&(this.Sm={cellIndex:d})):dz(this,this.ho(),!b.shiftKey,this.YO);else if(!ay(this)&&this.Vm)Bw(this,p,a,l);else return l};
function ez(a,b){for(var d=a.length,e=0;e<d;e++)if(a[e]==b)return e;return-1}
function Xy(a,b,d){var e=a.w();a=n;if(e.evaluate){b=e.evaluate('.//input[not(@type\x3d"hidden")]|.//select|.//textarea|.//button|.//a|.//*[@tabindex\x3e\x3d0]',b,n,XPathResult.ANY_TYPE,n);for(e=b.iterateNext();e;){if((d||!e.disabled&&-1!=e.tabIndex)&&("A"!=e.nodeName||e.href)){a=e;break}e=b.iterateNext()}}else{b=b.getElementsByTagName("*");for(var f=b.length,g=V.pF,h=0;h<f;h++){var e=b[h],m=e.getAttribute("tabIndex",2);if(m!=n&&0<=m&&32768!=m&&65535!=m||e.tagName.match(g))if((d||!e.disabled&&-1!=
m)&&("A"!=e.nodeName||e.href)){a=e;break}}}return a}function my(a,b,d){if(d=Xy(b,d)){var e="INPUT"==d.nodeName;if(b.G()!=w.ed||!(e&&"file"==d.type)){var f=F.c.Qc;f&&f.blur&&f.blur();var f=p,g=F.c.Mf();g&&g.vC(a.h())&&(f=l);b.G()==w.aa&&f&&!ay(a)?O.EC(d,1):O.ra(d);e&&typeof d.select!=k&&d.select();return d}}return n}
function mx(a,b){B.assert(b!=n,"Unable to unclipRow without a valid row being passed in!");var d=a.ea(),e=b.offsetTop+b.parentNode.parentNode.Xa;e<a.lc?Cw(a,n,e):(e=b.offsetTop+b.offsetHeight-(a.lc-b.parentNode.parentNode.Xa),e>d.offsetHeight&&Cw(a,n,a.lc+(e-d.offsetHeight)))}u.Ec=function(a,b,d,e){var f=this.ad;f.vc!=n&&Ty(this,p);f.ns=a;f.rp=b;f.vc=d;Ty(this,l);this.mua||(e?Vy(this,e):f.vc&&("TR"==f.vc.nodeName?(a=f.vc,b=rx(this,dw(this)),-1==b&&(b=0),(a=this.Mg(a,b))&&Vy(this,a)):Vy(this,f.vc)))};
z.a("AdfDhtmlTableBasePeer.prototype.UpdateFocusManager",{Ec:V.prototype.Ec});function fz(a,b){for(var d="",e=b.childNodes,f=e?e.length:0,g=0;g<f;g++){var h=e[g];1==h.nodeType&&(h="LABEL"==h.nodeName?h.textContent:fz(a,h))&&(d+=(d?" ":"")+h)}return d}
function Vy(a,b){var d=a.h();if(d){var e=dw(a);if(e){if("columnheader"==e.getAttribute("role")&&e.getAttribute(V.sM)==n)e.removeAttribute("aria-label");else{var f=e.getAttribute("aria-labelledby");if(f)for(var f=f.split(" "),g,h=0;h<f.length;h++)0<f[h].indexOf(":_ariaRHId")&&(g=a.w().getElementById(f[h]))&&g.removeAttribute("id");e.removeAttribute("aria-labelledby")}e.id&&0<e.id.indexOf(":_ariaActiveId")&&e.removeAttribute("id")}b.id||(a.cta=1==a.cta?0:1,b.id=a.h().id+":_ariaActiveId"+a.cta);e=b.getAttribute("role");
if(Zy(b))b.getAttribute("aria-label")||b.setAttribute("aria-label",fz(a,b));else if("columnheader"==e){var m;a:{if((m=w.b.getElementById(M.g(b.id,V.At)))&&m.rows[0])if((e=m.rows[0].cells)&&0<e.length){var q;m.getAttribute(V.sA)==V.vM&&(q=H.Ua(e[1],"A"));q||(q=H.Ua(e[0],"A"));if(q){m=b.textContent+" "+q.title;break a}}m=n}m&&b.setAttribute("aria-label",m)}else if("presentation"!=e){q="";if("rowheader"!=e&&(e=a.he(b,a.h()),e!=n)){q=e[1];e="";g=a.h().id;if(q)for(f=0;h=a.Mg(q,f++);)"rowheader"==h.getAttribute("role")&&
((m=Xy(w.b,h,l))&&m.id?h=m.id:(h.id||(h.id=g+":_ariaRHId"+f),h=h.id),e=e+" "+h);q=e}m=rx(a,b);m=e=bz(a,m);if(e!=n)for(e=w.b.getElementById(e);e;)if((e=vx(e))&&e.id)m=e.id+" "+m;m&&(q&&(q+=" "),q+=m);q&&(q=q+" "+b.id,b.setAttribute("aria-labelledby",q))}d.setAttribute("aria-activedescendant",b.id);if(a.Vm||Xy(w.b,b)==n)d=w.b.G()==w.aa,m=p,(q=F.c.Mf())&&q.vC(a.h())&&(m=l),!a.ED()||d&&!ay(a)&&m?(e=a.he(b,a.h()))&&ew(e[1],l):ew(b,l)}}
V.prototype.rza=function(){var a=this.h(),b=document.activeElement;b&&H.oc(a,b)&&("TH"==b.nodeName?b.getAttribute(V.XL)?this.Ec(V.WL,n,b):"columnheader"==b.getAttribute("role")&&this.Ec(V.pt,n,b):"TD"==b.nodeName&&(a=this.he(b,a))&&(b.getAttribute(V.Km)?this.Ec(V.vj,a[0],b):this.Ec(V.we,a[0],a[1],b)))};function px(a,b,d){var e=n;if(b){var f=a.he(b,a.h());f!=n&&(f=f[1],f!=n&&(b=jy(a,b,f))&&-1!=b.cellIndex&&(d?0<b.cellIndex&&(e=a.Mg(f,b.cellIndex-1)):e=a.Mg(f,b.cellIndex+1)))}return e}
function kx(a,b){var d=n;if(b!=n)for(var e=0,f;f=a.Mg(b,e);)d=f,++e;return d}function rx(a,b){var d=-1,e=a.h();if(e&&b){var f=b.getAttribute("role");if(Zy(b))d=w.b.Sa(b,"_d_index",-1);else if("columnheader"==f){if(e=w.b.getAttribute(e,"_leafColClientIds"),e=eval(e),e!=n)for(var f=e.length,g=0;g<f;g++)if(e[g]==b.id){d=g;break}}else if(e=a.he(b,a.h()),e!=n&&e[0]!=n&&(e=jy(a,b,e[1])))d=e.cellIndex}return d}
function dw(a){var b,d=a.h();if(d)for((d=d.getAttribute("aria-activedescendant"))&&0<d.length&&(b=a.w().getElementById(d));b&&"TD"!=b.nodeName&&"TH"!=b.nodeName;)b=b.parentNode;return b}function qx(a,b){var d;(d=px(a,dw(a),b))?Vy(a,d):a.sk!=n&&(b?a.d().r("_afrMasterId")!=n&&(d=dw(a),d=d.parentNode.getAttribute(V.Ba),a.sk.Rga(d)):a.d().r("_afrSlaveId")!=n&&(d=dw(a),d=d.parentNode.getAttribute(V.Ba),a.sk.Sga(d)))}
function Mq(a,b){var d;b.getAttribute(V.XL)?d=V.WL:b.getAttribute(V.sM)?d=V.tM:"columnheader"==b.getAttribute("role")&&(d=V.pt);d&&a.Ec(d,n,b);return d}V.prototype.rza=function(){var a=this.h(),b=document.activeElement;b&&H.oc(a,b)&&("TH"==b.nodeName?Mq(this,b):"TD"==b.nodeName?(a=this.he(b,a))&&(b.getAttribute(V.Km)?this.Ec(V.vj,a[0],b):this.Ec(V.we,a[0],a[1],b)):(a=gz(this,b))&&Zy(a)&&Bw(this,p,b,p))};
V.prototype.Rga=function(a){var b=this.Ob(a);if(b&&b.Vb){var d=kx(this,b.Vb);this.Ec(V.we,a,b.Vb,d)}};z.a("AdfDhtmlTableBasePeer.prototype.handleNavFromAssociatedPeer",{Rga:V.prototype.Rga});V.prototype.Sga=function(a){var b=this.Ob(a);if(b&&b.Vb){var d=this.Mg(b.Vb,0);this.Ec(V.we,a,b.Vb,d)}};z.a("AdfDhtmlTableBasePeer.prototype.handleNavToAssociatedPeer",{Sga:V.prototype.Sga});
function bz(a,b){var d;if(!a.Gf){var e=a.h();e&&(e=w.b.getAttribute(e,"_leafColClientIds"),e=eval(e),e!=n&&e.length>b&&(d=e[b]))}return d}function gz(a,b){for(var d=a.h();b&&"TD"!=b.nodeName&&"TH"!=b.nodeName;){if(b==d)return n;b=b.parentNode}return b}function Bw(a,b,d,e){cw(a,b);a.Vm=b;if(e)if(b){var f;b=a.he(d,a.h());b!=n&&b[0]!=n&&(f=jy(a,d,b[1]),ay(a)&&(a.YO=f.cellIndex),f.jh&&Vy(a,f.jh));d=gz(a,d);Zy(d)?Mq(a,d):ay(a)?(ky(a,n),a.Ej()):(!f||!f.jh)&&a.Ej()}else(f=dw(a))&&my(a,w.b,f)}
function Ty(a,b){var d=a.ad;b&&d.vc?H.n(d.vc,V.Z5):!b&&d.vc&&H.F(d.vc,V.Z5)}function xx(a){return a.h().getAttribute(V.YJa)!=n}function Rw(a,b){for(var d=b,e=a.h(),f=w.b,g=f.getAttribute(d,V.XL);g==n;){if(d==n||d==e)return p;d=d.parentNode;if(d==n||1!=d.nodeType)break;g=f.getAttribute(d,V.XL)}return g!=n}function $w(a){a=a.d();a.Fg(new Vb(a));a.setSelectedRowKeys(n)}V.prototype.NC=function(a){a=a.Q();if(uv(this,a)==n){var b=this.h();a=this.he(a,b);if(a!=n)return a[0]}return n};
z.a("AdfDhtmlTableBasePeer.prototype.getRowKeyForEvent",{NC:V.prototype.NC});V.prototype.kC=function(a,b,d){B.yc(d);a=this.bB(d);b=0;for(d=a.length;b<d;++b)H.n(a[b],M.lz);return a};z.a("AdfDhtmlTableBasePeer.prototype.applyDragReadyStateForRowKeys",{kC:V.prototype.kC});V.prototype.Is=function(a){B.yc(a);for(var b=0,d=a.length;b<d;++b)H.F(a[b],M.lz)};z.a("AdfDhtmlTableBasePeer.prototype.ClearDragReadyState",{Is:V.prototype.Is});
V.prototype.lC=function(a,b,d){B.yc(d);a=this.bB(d);b=0;for(d=a.length;b<d;++b)H.n(a[b],M.mz);return a};z.a("AdfDhtmlTableBasePeer.prototype.applyDragSourceStateForRowKeys",{lC:V.prototype.lC});V.prototype.Js=function(a){B.yc(a);for(var b=0,d=a.length;b<d;++b)H.F(a[b],M.mz)};z.a("AdfDhtmlTableBasePeer.prototype.ClearDragSourceState",{Js:V.prototype.Js});
V.prototype.MI=function(a,b){var d=a.Q(),e=this.h(),f=this.he(d,e),e=d=0,g=w.b;if(f!=n)for(var h=f[0],f=f[1],m=0;m<b.length;m++)if(b[m]==h){h=g.Ub(f);g=g.Qb(a.L());d=g.x-h.x;e+=g.y-h.y;this.eb()&&(d-=V.Ra(this.Gb(),"t").offsetWidth);break}else{var q=this.Ob(b[m]);B.assert(q!=n);e+=q.Vb.offsetHeight}return{x:d,y:e}};z.a("AdfDhtmlTableBasePeer.prototype.getDragOffsetForRowKeys",{MI:V.prototype.MI});
V.prototype.KI=function(a){B.yc(a);var b=this.w().createElement("table");a=this.bB(a);for(var d=0,e=a.length;d<e;++d){var f,g=a[d];f=g.cloneNode(l);var h=w.b;h.Qr(g,f);g=f.style;g.width="";g.borderRight=g.borderBottom="0px";h.yd(f,50);b.insertRow(-1).appendChild(f)}return b};z.a("AdfDhtmlTableBasePeer.prototype.getDragNodeForRowKeys",{KI:V.prototype.KI});
V.prototype.bB=function(a){for(var b=[],d=this.$e,e=this.ea(),f=0;f<a.length;++f){var g=this.Ob(a[f]);if(g){var g=g.Vb,h=g.parentNode.parentNode.Xa;g.offsetTop+g.offsetHeight+h-V.IU>this.lc&&g.offsetTop-(this.lc-h)+V.IU<e.offsetHeight&&(h=g.cells[0],Ov(this)?h=$x(this,g,d+1):Zr(this)&&(h=$x(this,g,0)),h==n&&(h=g.cells[0]),b.push(h))}}return b};
V.prototype.dm=function(a,b,d){B.Ea(a);B.Ea(b);B.assert(d!=n);var e=d[qf.Wv],f=d[qf.rE],g=d[qf.qE];if(e&&f&&(B.s(e),B.zc(f),a>=f.left&&b>=f.top&&a<=f.right&&b<=f.bottom)){d[qf.Bh]=e;d[qf.wh]=g;return}this.eB(a,b,d)};z.a("AdfDhtmlTableBasePeer.prototype.getRowKeyAndOrientationFromHints",{dm:V.prototype.dm});
V.prototype.eB=function(a,b,d){B.Ea(a);B.Ea(b);var e=this.ea(),f=H.fR(e,a,b,n,{colgroup:l});if(f&&(f=this.he(f,this.h()),f!=n)){d[qf.Bh]=f[0];d[qf.wh]=pb.nz;return}this.Fb?(d[qf.Bh]=n,d[qf.wh]=pb.BK):w.b.Kc(e,a,b)?(d[qf.Bh]=this.Q$(),d[qf.wh]=pb.BK):(d[qf.Bh]=n,d[qf.wh]=pb.nz)};
V.prototype.ci=function(a,b,d,e){B.J(a,Ka);B.Cd(b);B.Ea(d);B.Cd(e);d==Ka.lb&&(H.F(this.ea(),V.Eh),b=n);if(e!=b&&(e&&(a=this.Ob(e))&&H.F(a.Vb,V.Eh),b&&(a=this.Ob(b))))H.n(a.Vb,V.Eh),H.F(this.ea(),V.Eh);b==n&&d!=Ka.lb&&H.n(this.ea(),V.Eh)};z.a("AdfDhtmlTableBasePeer.prototype.showDragFeedback",{ci:V.prototype.ci});V.prototype.Dn=function(a){return!a?n:(a=this.Ob(a))?w.b.Uc(a.Vb):n};z.a("AdfDhtmlTableBasePeer.prototype.getRowKeyBounds",{Dn:V.prototype.Dn});
V.prototype.sL=function(a,b,d){for(;a;)a.la+=b,a=d?a.nextSibling:a.previousSibling};z.a("AdfDhtmlTableBasePeer.prototype.ShiftIndex",{sL:V.prototype.sL});V.prototype.$K=function(){return-1!=this.QM};z.a("AdfDhtmlTableBasePeer.prototype.IsReceivingActiveEvents",{$K:V.prototype.$K});V.prototype.jL=function(a){for(var b=a.childNodes,d=b.length-1;0<=d;d--)this.fh(b[d]),a.removeChild(b[d])};z.a("AdfDhtmlTableBasePeer.prototype.RemoveAllBlocks",{jL:V.prototype.jL});
V.prototype.Q$=function(){var a=this.ea().childNodes,b=a.length;return 0<b?Px(a[b-1]):n};function Ox(a){B.assert(a.rows!=n&&0<a.rows.length,"Unable to get row key by index when the block contains no rows!");return w.b.getAttribute(a.rows[0],V.Ba)}
function Px(a){B.assert(a.rows!=n&&0<a.rows.length,"Unable to get row key by index when the block contains no rows!");var b=w.b;a=a.rows[a.rows.length-1];var d=b.getAttribute(a,V.Ba);d==n&&a.previousSibling&&(d=b.getAttribute(a.previousSibling,V.Ba));return d}V.prototype.$aa=function(a){return"immediate"==a.getContentDelivery()};function Cv(a){return a.r("_afrDataInline")}
function Ux(a,b,d){if(a.eb()&&!Pv(a,a.It)){for(b=b.firstChild;b;)Rx(a,b,d),b=b.nextSibling;var e=a.Gb(),f=a.bI;if(e!=n)if(b=V.Ra(e,"d2"),Zr(a)){if(e=V.Ra(e,"t"))f=a.bI,d<a.ru&&(f=Math.max(d-a.Yg,0)),b.style.width=f+"px",V.Ra(b,"t2").style.width=f+"px",V.fb()?e.style.right=b.style.width:e.style.left=b.style.width}else b.style.width=Math.max(d-a.Yg,0)+"px";f=Jv(a);if(f!=n)if(b=V.Ra(f,"fd2"),Zr(a)){if(e=V.Ra(f,"ft"))f=a.bI,d<a.ru&&(f=d-a.Yg),b.style.width=f+"px",V.fb()?e.style.right=b.style.width:e.style.left=
b.style.width}else b.style.width=Math.max(d-a.Yg,0)+"px"}}
function Rx(a,b,d){if(a.eb()){B.assert(b.rows!=n&&b.rows[0]!=n,"Unable to _sizeBlockForFrozenColumns when block contains no rows!");var e=b.rows[0].cells;if(!Pv(a,e.length))if(Zr(a)){var f=Math.max(d-a.Yg,0),g=a.Yg;0<a.ru&&d>=a.ru&&(f=a.bI);0<a.Yg&&d<a.Yg&&(g=d);d=e[0];d.style.width=f+"px";b.style.width=f+g+"px";if(a.qi()&&(a=V.Pd(b,"COLGROUP"))){for(a=a.childNodes[0];a&&"COL"!=a.tagName;)a=a.nextSibling;a&&(a.style.width=d.style.width,d.firstChild.style.width=d.style.width)}}else if(f=e[e.length-
1],f.style.width=Math.max(d-a.Yg,0)+"px",b.style.width=d+"px",a.qi()&&(a=V.Pd(b,"COLGROUP"))){for(a=a.childNodes[a.childNodes.length-1];a&&"COL"!=a.tagName;)a=a.previousSibling;a&&(a.style.width=f.style.width,f.firstChild.style.width=f.style.width)}}}
function rw(a,b){if(a.eb()){B.assert(b.rows!=n&&b.rows[0]!=n,"Unable to register inner scroll callback when the block contains no rows!");var d=b.rows[0].cells,e=d.length;if(!Pv(a,e))for(var f=0;f<b.rows.length;f++)d=b.rows[f].cells,V.Pd(Zr(a)?d[0]:d[e-1],"DIV").onscroll=a.VG}}function Hw(a,b){B.assert(b!=n,"Unable to get the nested scrolled table without a valid row passed in!");var d=b.cells,d=V.Pd(Zr(a)?d[0]:d[d.length-1],"DIV");return V.Pd(d,"TABLE")}V.fb=function(){return F.c.Ma().Oa()};
V.prototype.pO=function(a){var b=F.c.u(),d=b.getStyleClass(V.BU),e=a.parentNode.className;if(d==a.className||d==e)return"collapse";b=b.getStyleClass(V.AU);return b==a.className||b==e?"expand":n};V.prototype.gka=function(a,b,d){this.te(-1,d,l);return p};z.a("AdfDhtmlTableBasePeer.prototype.ComponentScrollTopChanged",{gka:V.prototype.gka});V.prototype.fka=function(a,b,d){this.te(d,-1,l);return p};z.a("AdfDhtmlTableBasePeer.prototype.ComponentScrollLeftChanged",{fka:V.prototype.fka});
V.prototype.PD=function(a,b,d,e){this.mda=e;a=ya.TR(e,d);d=ya.TR(d,e);b=e=p;a!=n&&!ya.Bc(a)&&(this.Ez(a),e=l);d!=n&&!ya.Bc(d)&&(this.Fz(a),b=l);B.assert(!(e&&b))};z.a("AdfDhtmlTableBasePeer.prototype.ComponentDisclosedRowKeysChanged",{PD:V.prototype.PD});V.prototype.Ez=function(){this.$o(p,eg.Hv);V.rg(this.ea(),"wait")};z.a("AdfDhtmlTableBasePeer.prototype.HandleComponentCollapseEvent",{Ez:V.prototype.Ez});
V.prototype.Fz=function(){var a=this.$o(p,eg.qz);V.rg(this.ea(),"wait");this.Dk&&(a.Vy(this.xW(this.Dk)),this.Dk=n)};z.a("AdfDhtmlTableBasePeer.prototype.HandleComponentExpandEvent",{Fz:V.prototype.Fz});V.prototype.wG=function(a){var b=w.fa();return a.firstChild!=n&&(a=a.firstChild,b=b.Ga(a).toLowerCase(),"img"==b||"span"==b||"#text"==b)?a:n};
V.hX=function(a){var b=0,d=w.fa();if(d.getAttribute(a,V.yoa,p)){a=a.rows;for(var e=0;e<a.length;e++)d.getAttribute(a[e],V.wo,p)||b++}else return a.rows.length;return b};V.prototype.Hw=function(a){a=a.getSource();for(var b=this.d(),d=p,e=F.c.R().AFa!=n;!d&&a;)if(a==b)d=l;else{if(a instanceof AdfUITable||e&&a instanceof AdfUITree||a instanceof AdfUIPopup)break;a=a.getParent()}return d};z.a("AdfDhtmlTableBasePeer.prototype.__isOwnComponentEvent",{Hw:V.prototype.Hw});
function ay(a){return a.d().getEditingMode()==V.LJa}function iy(a){return a.d().r("_afrActiveRowKey")}V.prototype.Nja=function(a,b,d){ky(this,d);return p};z.a("AdfDhtmlTableBasePeer.prototype.ComponentActiveRowKeyChanged",{Nja:V.prototype.Nja});
function ky(a,b){if(eg.rK!=a.cg&&!a.mx){var d=n;a.mx=l;try{var e=a.d(),f=e.r("_afrActiveRowKey");e.setProperty("_afrActiveRowKey",b,p,J.rd);e.setProperty("activeRowKey",b,p,J.rd);e.setProperty(V.vF,n,p,J.rd);a.Uya?e.setProperty(V.vF,l,p,J.rd):e.setProperty(V.vF,p,p,J.rd);delete a.Uya;d=a.$o(p,eg.rK,-1,b);f&&d?(d.zia(f),a.yY=f):d||(e.setProperty("_afrActiveRowKey",f,p,J.rd),e.setProperty("activeRowKey",f,p,J.rd))}finally{a.mx=p}}}
function jy(a,b,d){for(var e=w.b,f=a.h(),g=n,h=-1,m=n;n!=b&&b!=f&&-1==h;)if("TD"==e.Ga(b)){var q=b.parentNode;if(q==d){h=Zr(a)?a.ag+ez(d.cells,b)-1:ez(d.cells,b);m=b;break}else if(a.eb()&&(g==n&&(g=Hw(a,d).rows[0]),q==g)){Ov(a)?h=a.$e+ez(g.cells,b)+1:Zr(a)&&(h=ez(g.cells,b));m=b;break}b=q}else b=b.parentNode;return{cellIndex:h,jh:m}}
V.prototype.QY=function(a){var b=w.b,d=this.Sm;if(d&&-1!==d.cellIndex){var e=iy(this);this.YO=d?d.cellIndex:k;if(e){var f=this.Ob(e);if(f){f=f.Vb;B.p(f);if(!d||d.sea)if(this.Ej(),d&&"last"==d.sea)for(b=this.sg().length-1;0<=b;){d=H.$r(this.Mg(f,b));if(0<d.length){O.ra(d[d.length-1]);break}b--}else my(this,b,f);else{d=this.Mg(f,d.cellIndex);B.p(d);b=w.b;if(b.G()==w.aa){var g=Xy(b,d);g||(g=Xy(b,f));g&&this.Ej()}else this.Ej();my(this,b,d)==n&&my(this,b,f)==n&&ew(d)}a&&(tv(this)&&!this.kn(e))&&(this.dg(),
this.Ec(V.we,e,f),ox(this,e,f));this.Sm&&delete this.Sm;this.EP&&delete this.EP}}}};
V.prototype.iaa=function(a,b){var d=this.he(a,this.h()),e=b.shiftKey,f=l;if(d!=n){var g=d[1];if(g!=n){var h=jy(this,a,g),m=h.jh;if(m){var q=h.cellIndex;!this.Vw&&0!=this.Vw&&(this.Vw=q);if(ay(this)&&iy(this)!=n){var m=H.$r(m),s=m.length;if(0<s)if(!e&&H.sb(m[s-1],a)){if(this.cn&&(h=g.nextSibling)&&w.b.getAttribute(h,V.wo,p))if(m=H.$r(h),0<m.length)return l;h=this.sg().length;e=q>=h-1;if(!e){for(q++;q<h;){m=H.$r(this.Mg(g,q));if(0<m.length)break;q++}e=q==h}if(e){if(f=M.Lf(a))g=f.k(),g.Yf&&g.Yf(f,a);
dz(this,d[0],l);f=!this.Sm}}else if(e&&H.sb(m[0],a)){q=0==h.cellIndex;if(!q){for(q=h.cellIndex-1;0<=q;){m=H.$r(this.Mg(g,q));if(0<m.length)break;q--}q=-1==q}q&&(dz(this,d[0],p),f=!this.Sm)}}}}}else if(!e&&this.cn&&ay(this)){d=this.h();f=a.parentNode;g=w.b;for(q=l;f&&f!=d;){if("TR"==g.Ga(f)&&g.getAttribute(f,V.wo,p)){elems=H.$r(f);0<elems.length&&elems[elems.length-1]==a&&(d=g.getAttribute(f.previousSibling,V.Ba),dz(this,d,l),q=p);break}f=f.parentNode}return q}return f};
function dz(a,b,d,e){delete a.sr;var f=d?a.Qt(b):a.St(b);if(!f.L0){var g=f.xb,h=f.JJ;if(g!=n)ky(a,g),mx(a,f.pb),a.Sm=e!=k?{cellIndex:e}:{sea:!d?"last":"first"},d=F.c.Qc,a=a.d().r("activeRowKey"),b!=a&&(d&&d.blur)&&d.blur();else if(h!=n){b=a.Pa();if(!Lv(a)||a.Zb)b=b[V.Mm];e=a.lc+(d?a.xe:-a.xe);0<e&&e<Ow(a)&&(a.sr=h,Nx(a)+e<Ow(a)&&(w.b.te(b,n,e),a.Sm={SAa:d?"next":"previous"}))}}}
function gx(a){var b=a.Sm;if(b&&b.SAa){var d="next"==b.SAa;attrs=d?a.Qt(a.sr):a.St(a.sr);b.sea=d?"first":"last";attrs.xb&&ky(a,attrs.xb);delete a.sr}}V.prototype.iZ=function(){var a=this.d().getScrollLeft();0<=a&&this.te(a,-1,l)};
V.prototype.Vp=function(a,b){B.assert(a!=n||b!=n);var d=w.b;if(!b&&(b=d.getElementById(a),!b))return;var e=d.Sa(b,"_d_index",-1);if(!Qv(this,e)){e=this.Pa();if(!Lv(this)||this.Zb)e=e[V.uj];var f=b.offsetLeft;if(f!=this.Rd){var g=this.Hta;g==k&&(g=F.c,this.Hta=g=g.Ac()?parseInt(g.u().ka("af|table-tr-column-scroll-animation-duration")):0);0<g?Qg(3,g,[{element:e,ib:{scrollLeft:f}}],n,n,n):d.te(e,f,n)}}};z.a("AdfDhtmlTableBasePeer.prototype.scrollColumnIntoView",{Vp:V.prototype.Vp});
V.prototype.wd=function(a){B.s(a);B.assert(a!=n,"Row Key cannot be null");var b=-1;if(a=this.Ob(a))b=a.index;return b};z.a("AdfDhtmlTableBasePeer.prototype.getRowIndex",{wd:V.prototype.wd});V.prototype.Kd=function(a){B.Ea(a);B.assert(0<=a,"index must be greater than or equal to 0");for(var b=n,d=this.ea().childNodes,e=d.length,f=0;f<e;f++){var g=d[f],h=g.la;if(a>=h&&a<h+g.Db){b=w.b.getAttribute(g.rows[a-h],V.Ba);break}}return b};z.a("AdfDhtmlTableBasePeer.prototype.getRowKey",{Kd:V.prototype.Kd});
function Sw(a){if(!ya.Bc(a.fG)||!ya.Bc(a.JA)){var b=a.d();ds.EDa(b,a.fG,a.JA);a.fG={};a.JA={}}}V.prototype.Fd=function(a,b,d,e){var f=this.Gb();if(f&&(b=b.k().h())&&H.oc(f,b))return;f=a.e();a=xa.count(f,":");B.assert(0<=d.indexOf(f));d=d.substring(f.length+1);f=d.indexOf(":");0<f&&(d=this.Ob(d.substring(0,f)),e.push([a+1,d?d.index:n]))};z.a("AdfDhtmlTableBasePeer.prototype.ConvertClientIdToLocator",{Fd:V.prototype.Fd});
V.prototype.Jd=function(a,b){var d=a.e(),e=n,f=this.ea();if(f!=n)for(var f=f.childNodes,g=0;g<f.length&&!e;g++){var h=f[g],m=h.la;if(b>=m&&b<m+h.Db){e=h.rows[b-m].getAttribute(V.Ba);break}}return e?d+":"+e:n};z.a("AdfDhtmlTableBasePeer.prototype.convertLocatorToClientId",{Jd:V.prototype.Jd});
function Gy(a){var b=w.b,d=0,e=a.Oi;if(0<e){var f=b.G()==w.ed,g=a.dl().pb;if(g){var h=a.ea().childNodes,m=h.length,q=0,s=0;for(a=0;a<m&&q<e;a++){var s=a,y=h[a],y=y.rows,A=0;y!=n&&(A=y.length);for(var C=0;C<A&&q<e;C++)if(g===y[C]||0<q){q++;var G=y[C].getBoundingClientRect().height,d=d+G}}}if(q!=e&&0<q){m=p;for(a=s;0<=a;a--){y=h[a];y=y.rows;A=0;y!=n&&(A=y.length);for(C=A-1;0<=C&&q<e;C--)g===y[C]?m=l:m&&(q++,f?(s=b.getComputedStyle(y[C]),G=parseFloat(s.height)):G=y[C].offsetHeight,d+=G)}}}return f?Math.round(d):
d}function Tv(a,b){var d=w.b;if("border-box"==d.Sh(a)){var e=w.ua,d=d.getComputedStyle(a);b=b+e(d.paddingTop)+e(d.paddingBottom)+e(d.marginTop)+e(d.marginBottom)+e(d.borderTopWidth)+e(d.borderBottomWidth)}a.style.height=b+"px";a.style.minHeight&&parseFloat(a.style.minHeight)>b&&(a.style.minHeight=b+"px")}
V.prototype.hj=function(){var a=this.$s(),b=this.ea();if(a&&a.rh()){var a=this.h(),d=a.clientHeight;this.KF(l);this.Gq(b,a.clientWidth,d);this.Fb||xv(this,d,this.Zc,this.Me,this.ji)}else if(this.dj()&&!this.Gv()){var d=!this.Fb?Gy(this):b.offsetHeight,e=w.b,e=e.G()==w.aa&&9>e.nb()&&7<e.nb();if(this.Fb||d!=b.offsetHeight||e&&2>this.Yd()){var e=this.h(),f=this.If==V.pk,g=f&&!this.Fb?0:Tx(this),g=d+this.Zc+this.Me+this.ji+g;Tv(e,g);if(this.Fb)f&&(this.d9a=e.style.overflow,e.style.overflow="hidden");
else{var h=w.fa(),m=h.G()==w.aa;Ey(this);xv(this,g,this.Zc,this.Me,this.ji);g=f?0:Tx(this);yv(this,e.clientWidth,this.Yg);m&&8>h.nb()&&wv(this,this.jd);h=Tx(this);g!=h&&!f&&(g=d+this.Zc+this.Me+h,Tv(e,g),xv(this,g,this.Zc,this.Me,this.ji));this.Gq(this.ea(),e.clientWidth,e.clientHeight)}a&&this.KF(p)}a=b.childNodes;d=this.Oi;e=a.length;f=0;if(this.cn){g=b.childNodes;h=g.length;for(m=0;m<h;m++){var q=n;n!=g[m]&&(q=g[m].rows);n!=q&&(f+=q.length)}}else f=this.Yd();this.DA(a,e)&&f<=d&&(a=Nx(this),a!=
this.jd&&(this.jd=a,wv(this,a),a=this.h(),yv(this,a.clientWidth,this.Yg),this.Gq(b,a.clientWidth,a.clientHeight)));if(!this.dAa&&!this.T9&&(b=this.ru,Av(this),this.ru!=b&&!this.T9)){this.T9=l;try{F.c.Iw(this.d()),F.c.Dw()}finally{delete this.T9}}}};z.a("AdfDhtmlTableBasePeer.prototype.AdjustAutoHeight",{hj:V.prototype.hj});V.dZa=function(a){B.s(a);a=F.c.Bp(a);for(var b=Ea.Mi,d=0;d<a.length;d++)b=Math.max(b,Ea.yR(a[d]));return b};
function Nw(a){var b=w.fa(),d=b.G();if(d==w.aa&&7<b.nb()||d==w.Fc){b=a.Pa();if(!a.Po||a.Zb)b=b[V.uj];return b.scrollWidth-b.clientWidth-a.Rd}return a.Rd}
V.prototype.Ls=function(){var a=this.h(),b=w.b,d=this.d().e(),e=this.o0a;e||(this.o0a=e=[]);for(var f=F.c.Yr(d),d={},g={},h=0;h<f.length;h++){var m=f[h],q=V.dZa(m);if(m=b.getElementById(m))if(m=this.he(m,a)){var s=m[0];if(m=this.tq(m[1])){var y=ya.indexOf(e,s);-1==y&&(y=e.push(s)-1);d[y]=Math.max(q,!d[y]?-1:d[y]);g[y]=m}}}for(h=e.length-1;-1<h;h--)if(s=e[h],d[h])m=g[h],f=b.Vh(m,V.KU,-1),a=d[h],f!=a&&(-1<f&&P.F(m,f),b.Gg(m,V.KU,a),P.n(m,a));else if(a=this.Ob(s)){if(m=this.tq(a.Vb))f=b.Vh(m,V.KU,-1),
P.F(m,f),b.Gg(m,V.KU,-1),ya.Sha(e,h)}else ya.Sha(e,h)};z.a("AdfDhtmlTableBasePeer.prototype.DescendantMessageChanged",{Ls:V.prototype.Ls});
V.prototype.qK=function(a){var b=Ww(a),d;if(d=b){d=a.cloneNode(l);var e=p;w.b.Qr(a,d);d.style.width="";for(var f=d.getElementsByTagName("input"),g=f.length-1;0<=g;g--){var h=f[g];h.id="";h.name=""}f=this.h();g=a.ownerDocument.createElement("table");f.appendChild(g);g.insertRow(-1).appendChild(d);a.offsetWidth<d.offsetWidth&&(e=l);f.removeChild(g);d=e}d&&a.setAttribute("title",b.nodeValue)};z.a("AdfDhtmlTableBasePeer.prototype.ApplyTooltipTitle",{qK:V.prototype.qK});
function hz(a,b,d){var e=n;for(a=a.h();!e&&b&&b!=a.parent&&1==b.nodeType;)if(b.id&&0<=b.id.indexOf(d)){e=b;break}else b=b.parentNode;return e}function Mv(a,b){var d=p;b<a.nW&&!a.oP?d=a.oP=l:b>=a.nW&&a.oP&&(a.oP=p,d=l);if(d){var d=w.b,e=a.d().e(),f=M.g(e,V.pMa),f=d.getElementById(f),e=M.g(e,V.mMa),d=d.getElementById(e);a.oP?(d.style.display="none",f.style.display="none"):(d.style.display="",f.style.display="")}}
V.prototype.h8=function(a,b){var d=p;if(iz(this,b,V.oMa)){if(!(-1<jz(b))){var d=parseInt(this.fo()),e=parseInt(this.Tv()),d=Math.max(d-e,0);this.aw(this.fo(),d);F.c.jc(this.d());w.b.va(a);d=l}}else iz(this,b,V.kMa)?-1<jz(b)||(this.daa(a),d=l):iz(this,b,V.iMa)?-1<jz(b)||(this.aw(this.fo(),0),F.c.jc(this.d()),w.b.va(a),d=l):(e=kz(this,b,V.jMa),e!=n?-1<jz(b)||(Cx(this,e,a),d=l):(e=kz(this,b,V.lMa),e!=n&&(Cx(this,e,a),d=l)));d&&H.n(b,"p_AFActivated")};
z.a("AdfDhtmlTableBasePeer.prototype.__handleNavBarItemsClick",{h8:V.prototype.h8});function jz(a){return a.className.indexOf("p_AFDisabled")}V.prototype.g8=function(a,b){var d=this.d(),e=b.id;e==M.g(d.e(),V.Soa)?Kx(this,l):e==M.g(d.e(),V.Toa)&&Kx(this,p)};z.a("AdfDhtmlTableBasePeer.prototype.__handleLoadMoreItemsClick",{g8:V.prototype.g8});
function Kx(a,b){var d=a.ea().childNodes,e=d.length;if(b){var d=d[e-1],e=d.la+d.Db,f=a.Yd();if(0<f&&e<f||0>f)e-=1,d=Px(d),a.Kl(eg.dk,e,d,n,p)}else d=d[0],e=d.la,d=Ox(d),a.Kl(eg.Yn,e,d,n,p)}
function Lx(a,b,d,e,f){if(!a.rr){var g=F.c.u(),h=a.d(),m=Rv(a,f);f=M.g(h.e(),f?V.eLa:V.dLa);b=parseInt(b)+1;m=m.childNodes[0].childNodes;for(h=0;h<m.length;h++)if(m[h].id!=n&&-1!=m[h].id.indexOf(f)){f=n;f=0<a.Yd()&&0<e?g.V("af_table.LABEL_ITEM_RANGE_KNOWN_COUNT",new String(b),new String(d),new String(e)):g.V("af_table.LABEL_ITEM_RANGE_UNKNOWN_COUNT",new String(b),new String(d));m[h].childNodes[0].nodeValue=f;break}}}V.prototype.fo=function(){return this.d().getFirst()};
z.a("AdfDhtmlTableBasePeer.prototype.GetFirst",{fo:V.prototype.fo});V.prototype.ME=function(){M.hb(lz,"first")};z.a("AdfDhtmlTableBasePeer.prototype.RegisterFirstPropertyChange",{ME:V.prototype.ME});V.prototype.Tv=function(){return this.d().getRows()};z.a("AdfDhtmlTableBasePeer.prototype.GetRows",{Tv:V.prototype.Tv});V.prototype.Xja=function(a,b,d,e){this.aw(e,d);this.Zb&&F.c.jc(a);return p};z.a("AdfDhtmlTableBasePeer.prototype.ComponentFirstChanged",{Xja:V.prototype.Xja});
V.prototype.eka=function(a,b,d,e){Zf.v(a,(0).toString(),parseInt(e).toString(),(0).toString(),parseInt(d).toString());this.Zb&&F.c.jc(a);return p};z.a("AdfDhtmlTableBasePeer.prototype.ComponentRowsChanged",{eka:V.prototype.eka});V.prototype.aw=function(a,b){var d=this.d(),e=parseInt(this.Tv()),f=parseInt(a),g=parseInt(b);Zf.v(d,f.toString(),(f+e-1).toString(),g.toString(),(g+e-1).toString())};z.a("AdfDhtmlTableBasePeer.prototype.QueueRangeChangeEvent",{aw:V.prototype.aw});
function iz(a,b,d){d=M.g(a.d().e(),d);return n!=hz(a,b,d)}function kz(a,b,d){d=M.g(a.d().e(),d);a=hz(a,b,d);if(a!=n)return a.id.substring(d.length)}V.prototype.daa=function(a){var b=parseInt(this.fo()),d=parseInt(this.Tv());this.aw(this.fo(),b+d);F.c.jc(this.d());w.b.va(a)};function Cx(a,b,d){a.aw(a.fo(),b);F.c.jc(a.d());w.b.va(d)}V.prototype.Uy=function(a,b){w.b.zs()&&V.f.Uy.call(this,a,b)};z.a("AdfDhtmlTableBasePeer.prototype.setBusy",{Uy:V.prototype.Uy});
V.prototype.oEa=function(a){this.Di(l);this.d().setSelectedRowKeys(a);this.Di(p)};z.a("AdfDhtmlTableBasePeer.prototype.setSelectedRowKeysWithoutEvent",{oEa:V.prototype.oEa});
function hw(a,b){var d=w.b,e=d.G();e==w.aa&&8<d.nb()||e==w.ed&&17<=d.nb()?b.addEventListener("wheel",V.jx,l):b.onmousewheel=V.jx;e!=w.aa&&b.addEventListener("DOMMouseScroll",V.jx,l);b.onscroll=a.o(a.Rva);w.Yh()==w.ek&&-1<navigator.userAgent.toLowerCase().indexOf("chrome")&&(a.Gr=d.qp(b,a.o(a.FO),1));if("AdfSafariMobileAgent"==w.b.qh()&&13<=parseFloat(w.b.nb())&&"Mac"==w.b.ph()||13<=parseFloat(w.b.nb())&&"Mac"==w.b.ph()&&a.Bd)a.Gr=d.qp(b,a.o(a.FO),1);a.EO=a.o(a.KG);d.S(b,"touchend",a.EO);(e=a.Gb())&&
d.S(e,"touchend",a.EO)}V.prototype.KG=function(a){a.OXa=1};V.prototype.qi=t(l);V.ava=function(a){if(a.id){a=M.g(a.id,U.Fm);var b=w.b.getElementById(a);if(b&&(b=b.nextElementSibling)&&"LABEL"==b.nodeName&&b.htmlFor==a)return b}return n};V.My={update:"AFActiveDataTableRowUpdate",remove:"AFActiveDataTableRowDelete"};v("AdfDhtmlTableBasePeer.msgMap",V.My);V.prototype.OJ=function(){this.Uya=l};z.a("AdfDhtmlTableBasePeer.prototype.preventSwitchToEditableMode",{OJ:V.prototype.OJ});