function ma(a,b,d){B.J(a,J);B.s(b);ma.f.Init.call(this,a,b,d)}v("AdfComponentTouchEvent",ma);ma.sj="touchStart";v("AdfComponentTouchEvent.TOUCH_START_EVENT_TYPE",ma.sj);ma.iw="touchMove";v("AdfComponentTouchEvent.TOUCH_MOVE_EVENT_TYPE",ma.iw);ma.hw="touchEnd";v("AdfComponentTouchEvent.TOUCH_END_EVENT_TYPE",ma.hw);ma.wma="touchCancel";v("AdfComponentTouchEvent.TOUCH_CANCEL_EVENT_TYPE",ma.wma);z.l(ma,oa);ma.prototype.Yl=function(){return this.getType()!=ma.iw};
z.a("AdfComponentTouchEvent.prototype.getDoesBubbles",{Yl:ma.prototype.Yl});ma.prototype.vp=function(){return ma.Ew(this.Wb).clientX};z.a("AdfComponentTouchEvent.prototype.getClientX",{vp:ma.prototype.vp});ma.prototype.wp=function(){return ma.Ew(this.Wb).clientY};z.a("AdfComponentTouchEvent.prototype.getClientY",{wp:ma.prototype.wp});ma.prototype.hg=function(){return ma.Ew(this.Wb).pageX};z.a("AdfComponentTouchEvent.prototype.getPageX",{hg:ma.prototype.hg});ma.prototype.ig=function(){return ma.Ew(this.Wb).pageY};
z.a("AdfComponentTouchEvent.prototype.getPageY",{ig:ma.prototype.ig});ma.prototype.ty=function(){return ma.Ew(this.Wb).screenX};z.a("AdfComponentTouchEvent.prototype.getScreenX",{ty:ma.prototype.ty});ma.prototype.uy=function(){return ma.Ew(this.Wb).screenY};z.a("AdfComponentTouchEvent.prototype.getScreenY",{uy:ma.prototype.uy});ma.prototype.Th=function(){return I.um};z.a("AdfComponentTouchEvent.prototype.getButtons",{Th:ma.prototype.Th});ma.prototype.ia=t(0);
z.a("AdfComponentTouchEvent.prototype.getKeyCode",{ia:ma.prototype.ia});ma.prototype.oh=function(){return this.Yl()?ma.f.oh.call(this):this.getSource()};z.a("AdfComponentTouchEvent.prototype.getCurrentTarget",{oh:ma.prototype.oh});ma.Ew=function(a){return a.changedTouches&&a.changedTouches.length?a.changedTouches[0]:a.targetTouches&&a.targetTouches.length?a.targetTouches[0]:a.touches&&a.touches.length?a.touches[0]:n};
ma.prototype.Gp=function(){var a=this.Wb.touches.length;this.getType()==ma.hw&&(a+=this.Wb.changedTouches.length);return a};z.a("AdfComponentTouchEvent.prototype.getTouchCount",{Gp:ma.prototype.Gp});ma.Rr=function(a){var b=n;if(a.getType()==ma.hw||a.getType()==ma.sj)b=new Ab(a.getSource(),ia.Zk,a.L());return b};v("AdfComponentTouchEvent.deriveContextMenuEvent",ma.Rr);ma.prototype.cancel=function(){ma.f.cancel.call(this);w.b.preventDefault(this.Wb)};z.a("AdfComponentTouchEvent.prototype.cancel",{cancel:ma.prototype.cancel});