AdfDhtmlPivotTablePeer.prototype.XK=function(a,b){var c=this.b.xc[a][b],d=this.b.Qk[a];0<c[d]&&(c[d]=0);if((1==b||AdfPivotTableUtils.F())&&(0==this.b.i[a]||this.b.qa)){d=this.b.Qk[1-a];c=c[d];if(0==this.b.i[a]){var e=this.b.xc[a][1-b];e[d]!=c&&(e[d]=c)}this.b.qa&&(e=this.b.Tb,e[d]!=c&&(e[d]=c))}};AdfDhtmlPivotTablePeer.prototype.TK=function(a,b){if(AdfPivotTableUtils.F())this.Bb(this.getComponent());else{var c=this.b.kb[a][b];0<c.scrollTop&&(c.scrollTop=0);0<c.scrollLeft&&(c.scrollLeft=0)}};
AdfDhtmlPivotTablePeer.prototype.Bb=function(a,b,c){a=this.b;if(!a.rw)if(a.Wm)for(b=a.i[1];2>b;++b)for(var d=a.i[0];2>d;++d)for(var e=a.kb[b][d],f=0;2>f;++f){var g=f?b:d;e[a.Qk[f]]=a.Lm[f][g]}else{if(this.Ja){var h={};A_rg(this,h);h.type="HandleDomScroll";h.time=(new Date).getTime()-this.Zg;c&&(h.vS=A_b)}b=[[],[]];d=A_b;for(f=0;2>f;++f)for(g=this.b.i[f];2>g;++g)b[f][g]=a.aa(f,g),d=d&&b[f][g]==a.Lm[f][g],a.Lm[f][g]=b[f][g];if(d)this.Ja&&(h.nU=A_b);else{d=[[],[]];e=[[],[]];for(f=1;0<=f;--f)for(g=this.b.i[f];2>
g;++g)d[f][g]=b[f][g]-A_Gg(a,f,g),e[f][g]=A_Hg(a,f,g,d[f][g]);a:{for(f=0;2>f;++f)for(g=a.i[f];2>g;++g)if(!A_Ig(a,f,g,e[f][g])){f=AdfPivotTableUtils.Zo;break a}for(f=0;2>f;++f)for(g=a.i[f];2>g;++g)if(!(-1!=e[f][g].start&&e[f][g].end!=a.T[f][g].length)){f=AdfPivotTableUtils.$o;break a}f=AdfPivotTableUtils.Bt}this.Ja&&(c&&(h.DU=A_b,AdfLogger.LOGGER.severe("DRN called HDS, which found an unhandled scroll")),h.qU=f==AdfPivotTableUtils.Zo?"longScroll":f==AdfPivotTableUtils.$o?"shortScroll":"noFetch",h.ES=
d);switch(f){case AdfPivotTableUtils.Zo:c=[[[],[]],[[],[]]];for(h=1;0<=h;--h){f=this.b.jm[h];for(g=this.b.i[h];2>g;++g){var l=A_Yg(this.b,h,g,d[h][g],e[h][g]),m=c[h][g];m[0]=l.slice;m[1]=l.lc;-1==m[0]&&(m[0]=A_yh(this.b,h,g)-b[h][g]<=this.b.Ne[h][g][this.b.Bh[h]]+1?this.b.xd[h][g]:b[h][g]<this.b.T[h][g][0][this.b.lh[h]]?this.b.Rf[h][g]+Math.floor(b[h][g]/f):this.b.xd[h][g]-Math.ceil((A_yh(this.b,h,g)-b[h][g])/f),m[1]=0)}}A_zh(this,c);AdfPivotTableUtils.F()&&!this.Fa&&(a.Wm=A_b);break;case AdfPivotTableUtils.$o:A_kg(this.b,
A_c,d,e);AdfPivotTableUtils.F()&&!this.Fa&&(a.Wm=A_b);break;case AdfPivotTableUtils.Bt:this.Ma!=AdfDhtmlPivotTablePeer.va&&(A_nf(this,A_,-1),this._hideStatus());A_jg(a);this.Fa&&A_lg(this);break;default:throw Error("Bad scroll type returned from identifyScrollType.");}}}};A_h("AdfDhtmlPivotTablePeer.prototype.HandleDomScroll",AdfDhtmlPivotTablePeer.prototype.Bb);
AdfDhtmlPivotTablePeer.prototype.Ls=function(){var a=AdfAgent.AGENT,b=a.getPlatform(),c=b==AdfAgent.IE_PLATFORM&&9<=a.getVersion(),a=(b=b==AdfAgent.GECKO_PLATFORM)&&17<=a.getVersion(),d=A_gg(this,this.Od,[-1,-1]);A_Ah(this.b.Tb,d,c,b,a);if(this.Fa){rowHeaderHandler=A_gg(this,this.Od,[-2,-1]);colHeaderHandler=A_gg(this,this.Od,[-1,-2]);for(g=0;2>g;++g)A_Ah(this.b.Kb[g],rowHeaderHandler,c,b,a),A_Ah(this.b.fb[g],colHeaderHandler,c,b,a)}else{for(var e=0;2>e;++e)for(var f=0;2>f;++f)d=A_gg(this,this.Od,
[e,f]),A_Ah(this.b.kb[e][f],d,c,b,a),0<e+f&&A_Ah(this.b.he[e][f],d,c,b,a);for(var e=A_gg(this,this.Od,[1,-2]),f=A_gg(this,this.Od,[-2,1]),g=0;2>g;++g)A_Ah(this.b.br[0][g],e,c,b,a),A_Ah(this.b.br[1][g],f,c,b,a),d=A_gg(this,this.Od,[g,-1]),A_Ah(this.b.Kb[g],d,c,b,a),d=A_gg(this,this.Od,[-1,g]),A_Ah(this.b.fb[g],d,c,b,a)}};function A_Ah(a,b,c,d,e){c||e?a.addEventListener("wheel",b,A_b):d?a.addEventListener("DOMMouseScroll",b,A_b):a.onmousewheel=b}
AdfDhtmlPivotTablePeer.prototype.Od=function(a,b,c){c||(c=AdfPage.PAGE.getDomWindow().event);var d=AdfAgent.AGENT,e=0,f=0,g=c.CS,h=c.DS,l=c.wheelDeltaX,m=c.wheelDeltaY,n=-1/120,p=1/3,q=1/73;g!=A_||h!=A_?(l=d.getPlatform()==AdfAgent.GECKO_PLATFORM?p:q,g!=A_&&(e=Math.round(l*g)),h!=A_&&(f=Math.round(l*h))):l!=A_||m!=A_?(l!=A_&&(e=Math.round(n*l)),m!=A_&&(f=Math.round(n*m))):f=c.detail?Math.round(p*c.detail):Math.round(n*c.wheelDelta);0!=f&&-2!=a&&(a=-1==a?this.b.fb[1]:this.b.he[a][1],a.scrollTop+=32*
f);0!=e&&-2!=b&&(a=-1==b?this.b.Kb[1]:this.b.he[1][b],a.scrollLeft+=32*e);d.stopPropagation(c);d.preventDefault(c)};AdfDhtmlPivotTablePeer.prototype.zg=function(a,b){for(var c=[[[],[]],[[],[]]],d=1;0<=d;--d)for(var e=d?a:b,f=e<this.b.o[d]?0:1,g=c[d],h=this.b.i[d];2>h;++h){var l=g[h];if(h==f)l[0]=e,l[1]=0;else for(var m=0;2>m;++m)l[m]=A_3g(this,d,h,m)}A_zh(this,c)};A_h("AdfDhtmlPivotTablePeer.prototype.longJumpToCell",AdfDhtmlPivotTablePeer.prototype.zg);
function A_zh(a,b){for(var c=[[],[]],d=[[],[]],e=0;2>e;++e)for(var f=e?4:3,g=a.b.gF[e],h=a.b.i[e];2>h;++h){var l=a.b.xd[e][h],m;var n=a,p=b[e][h][0];m=g;var q=f,v=a.b.Rf[e][h],u=l;p>=u?m=Math.max(u-m,v):(p=Math.max(p,v),n=n.Fa?p:p-Math.round(m/q),n=Math.min(n,u-m),m=n=Math.max(n,v));c[e][h]=m;d[e][h]=Math.min(g,l-m);for(l=0;2>l;++l)A_2g(a,e,h,l,b[e][h][l])}f=[];for(e=a.b.i[1];2>e;++e){h=c[1][e];g=d[1][e];for(l=a.b.i[0];2>l;++l)f.push(A_Bh(c[0][l],h,A_b,A_b,d[0][l],g))}!a.Fa&&-1==a.b.o[0]&&-1==a.b.o[1]?
(h=b[0][1][0]==a.b.xd[0][1]?b[0][1][0]:b[0][1][0]+1,e=TrFastMessageFormatUtils.format(a.ar,b[1][1][0]==a.b.xd[1][1]?b[1][1][0]:b[1][1][0]+1),h=TrFastMessageFormatUtils.format(a.cq,h),a.wc(e+"\x3cbr\x3e"+h,a.Fa)):a.wc(a.ad,a.Fa);d=AdfAgent.getAgent();c=[];for(e=1;0<=e;--e){g=1==e;l=0==e;for(h=a.b.i[e];2>h;++h){m=a.b.T[e][h];for(v=0;v<m.length;v++)n=m[v],u=d.getAttribute(n,"_startSlice"),n=A_Ch(l,n),u=A_Dh(g,l,u,n),c.push(u)}}e=A_Eh(a.b);h=A_Fh(a.b);A_mg(a,"longScroll",AdfPivotTableUtils.cB,f,A_a,c,
e,h)}function A_mg(a,b,c,d,e,f,g,h){a.Ma!=AdfDhtmlPivotTablePeer.va&&(d=new A_Gh(a.getComponent(),b,d,e,f,g,h),a.Ja&&(d.qr=[],aaa=d.qr,aaa.push("Event"),aaa.push("TimeAtCreation \x3d "+((new Date).getTime()-a.Zg)),A_rg(a,d)),d.setPartial(A_b),d.setRoot(a.getComponent()),A_nf(a,d),c?("longScroll"==b?(b=a.b.Ad,a=A_gg(a,a.fx,[d,b[0][0].scrollLeft,b[0][1].scrollLeft,b[1][0].scrollTop,b[1][1].scrollTop])):a=A_gg(a,a.fx,[d]),setTimeout(a,c)):A_Hh(a,d))}
AdfDhtmlPivotTablePeer.prototype.fx=function(a,b,c,d,e){this.Ja&&(aaa=a.qr,aaa.push("TimeAtPft \x3d "+((new Date).getTime()-this.Zg)));var f=this.b.Ad,g=a.bd;!A_Ih(this.Ma,a)||"longScroll"==g&&(f[0][0].scrollLeft!=b||f[0][1].scrollLeft!=c||f[1][0].scrollTop!=d||f[1][1].scrollTop!=e)?this.Ja&&aaa.push("Bailing out of PFT in requestsMatch check"):A_Hh(this,a)};function A_1f(a){return a.Ma&&"shortScroll"==a.Ma.bd}
function A_Hh(a,b){a.Ja&&(aaa=b.qr,aaa.push("TimeAtQfei \x3d "+((new Date).getTime()-a.Zg)));if(A_Ih(a.Ma,b))if(A_Ih(a.Id,b))a.Ja&&aaa.push("Bailing out of PFT in serverRequest check");else{var c=A_c;"initialFillViewport"==b.bd?(a.Ja&&aaa.push("QFEI queuing FVP event to server"),AdfPage.PAGE.queueEventToServer(b)):(a.Ja&&aaa.push("QFEI queuing non-FVP event"),a.getComponent().queueEvent(b),c=b.isCanceled());c?(A_nf(a,A_,-1),A_mf(a,A_Ze(a)),a.Ja&&aaa.push("QFEI event was canceled")):(a.Ja&&aaa.push("QFEI setting serverRequest"),
a.Id=b,("shortScroll"==b.bd||"longScroll"==b.bd)&&a.wc(a.ad,a.Fa))}}function A_Ih(a,b){if(a==A_||a==AdfDhtmlPivotTablePeer.va||a.bd!=b.bd)return A_c;var c=a.Zl,d=b.Zl,e=c.length;if(e!=d.length)return A_c;for(var f=0;f<e;++f){for(var g=d[f],h=g.startRow,g=g.startCol,l=A_c,m=0;m<e;++m){var n=c[m];if(n.startCol==g&&n.startRow==h){l=A_b;break}}if(!l)return A_c}return A_b}
function A_sg(a,b,c){if(a==A_)return A_c;if("initBlock"==a)return A_b;if(a==AdfDhtmlPivotTablePeer.va)return c==AdfDhtmlPivotTablePeer.va;if(c!=a.bd)return A_c;a=a.Zl;c=a.length;if(c!=b.length)return A_c;for(var d=AdfAgent.AGENT,e=0;e<c;++e){for(var f=b[e],g=d.getIntAttribute(f,"_startRow"),f=d.getIntAttribute(f,"_startCol"),h=A_c,l=0;l<c;++l){var m=a[l];if(m.startCol==f&&m.startRow==g){h=A_b;break}}if(!h)return A_c}return A_b}
function A_3g(a,b,c,d){b=A_Jh(a,b,c,d);return a.getComponent().getProperty(b)}function A_2g(a,b,c,d,e){b=A_Jh(a,b,c,d);a.getComponent().setProperty(b,e)}function A_Jh(a,b,c,d){return 0<a.b.o[b]&&1==c?1==b?d?AdfRichPivotTable.Zu:AdfRichPivotTable.Jp:d?AdfRichPivotTable.Yu:AdfRichPivotTable.Ip:1==b?d?AdfRichPivotTable.dv:AdfRichPivotTable.Sl:d?AdfRichPivotTable.cv:AdfRichPivotTable.Rl};