/*!@license * Infragistics.Web.ClientUI infragistics.dv_interactivity.js 19.1.20191.172 * * Copyright (c) 2011-2019 Infragistics Inc. * * http://www.infragistics.com/ * * Depends: * jquery-1.4.4.js * jquery.ui.core.js * jquery.ui.widget.js * infragistics.util.js * infragistics.ext_core.js * infragistics.ext_collections.js * infragistics.dv_core.js * infragistics.ext_ui.js */ (function(factory){if(typeof define==="function"&&define.amd){define(["./infragistics.util","./infragistics.ext_core","./infragistics.ext_collections","./infragistics.dv_core","./infragistics.ext_ui"],factory)}else{factory(igRoot)}})(function($){$.ig=$.ig||{};var $$t={};$.ig.globalDefs=$.ig.globalDefs||{};$.ig.globalDefs.$$al=$$t;$$0=$.ig.globalDefs.$$0;$$4=$.ig.globalDefs.$$4;$$1=$.ig.globalDefs.$$1;$$w=$.ig.globalDefs.$$w;$$6=$.ig.globalDefs.$$6;$$a=$.ig.globalDefs.$$a;$.ig.$currDefinitions=$$t;$.ig.util.bulkDefine(["BaseDOMEventProxy:b","DOMEventProxy:c","TouchGestureEventHandler:g","CancelableTouchGestureEventHandler:h"]);var $a=$.ig.intDivide,$b=$.ig.util.cast,$c=$.ig.util.defType,$d=$.ig.util.defEnum,$e=$.ig.util.getBoxIfEnum,$f=$.ig.util.getDefaultValue,$g=$.ig.util.getEnumValue,$h=$.ig.util.getValue,$i=$.ig.util.intSToU,$j=$.ig.util.nullableEquals,$k=$.ig.util.nullableIsNull,$l=$.ig.util.nullableNotEquals,$m=$.ig.util.toNullable,$n=$.ig.util.toString$1,$o=$.ig.util.u32BitwiseAnd,$p=$.ig.util.u32BitwiseOr,$q=$.ig.util.u32BitwiseXor,$r=$.ig.util.u32LS,$s=$.ig.util.unwrapNullable,$t=$.ig.util.wrapNullable,$u=String.fromCharCode,$v=$.ig.util.castObjTo$t,$w=$.ig.util.compareSimple,$x=$.ig.util.tryParseNumber,$y=$.ig.util.tryParseNumber1,$z=$.ig.util.numberToString,$0=$.ig.util.numberToString1,$1=$.ig.util.parseNumber;$d("TouchGestureState:e",false,false,{None:0,Pan:1,Zoom:2,Hold:3,PendingPan:4,Flinging:5});$c("BaseDOMEventProxy:b","EventProxy",{init:function(){this.bf=false;this.bq=0;this.br=0;this.bo=0;this.bp=0;this.bu=0;this.be=false;this.bv=-1;this.bg=false;this.bd=false;$.ig.EventProxy.prototype.init.call(this)},_bt:null,d:function(){var a=new $$t.c(this._bt,this._bs,this._bm);a._z=this._z;a._aj=this._aj;return a},bn:function(){return $$t.$b.bj||$$t.$b.bk},_bm:false,bb:function(a){return $$t.$c.ct(a)},_bs:null,cj:function(a){if(!this.ab()){if(this.bh(a)){a.preventDefault()}}},bh:function(e_){return e_.originalEvent.cancelable||e_.originalEvent.cancelable==undefined},bf:false,cf:function(){var source_=this._bt.getNativeElement();$$t.$b.ci(source_)},ci:function(source_){if($$t.$b.bk){source_.style.touchAction="none"}else{source_.style.msTouchAction="none"}source_.style.msUserSelect="none";source_.style.webkitTouchCallout="none";source_.style.webkitUserSelect="none";source_.style.khtmlUserSelect="none";source_.style.mozUserSelect="none";source_.style.userSelect="none"},cc:function(source_){if($$t.$b.bk){source_.style.touchAction="auto"}else{source_.style.msTouchAction="auto"}source_.style.msUserSelect="auto";source_.style.webkitTouchCallout="none";source_.style.webkitUserSelect="auto";source_.style.khtmlUserSelect="auto";source_.style.mozUserSelect="auto";source_.style.userSelect="auto"},cd:function(){var source_=this._bt.getNativeElement();$$t.$b.cc(source_)},ao:function(){$.ig.EventProxy.prototype.ao.call(this);if(!this.ab()){this.cf()}else{this.cd()}},b0:function(){var ver_=-1;var matchIE_=/Trident\/([\d.]+)/;if(matchIE_.exec(navigator.userAgent)!=null){ver_=parseFloat(RegExp.$1)}return ver_},bz:function(){var ver_=-1;var matchIE_=/Edge\/([\d.]+)/;if(matchIE_.exec(navigator.userAgent)!=null){ver_=parseFloat(RegExp.$1)}return ver_},ch:function(e_){var a=$$t.$b.b1>=6;var oe_=e_.originalEvent;if((typeof e_.pageX=="undefined"||a)&&oe_.clientX!=null){var od_;if(e_.target!==undefined){od_=e_.target.ownerDocument}else{od_=e_.originalEvent.target.ownerDocument}var ed_=od_?od_:document;var doc_=ed_.documentElement;var body_=ed_.body;var clientX_=oe_.clientX;var clientY_=oe_.clientY;var scrollLeft_=doc_&&doc_.scrollLeft||body_&&body_.scrollLeft||0;var scrollTop_=doc_&&doc_.scrollTop||body_&&body_.scrollTop||0;var clientLeft_=doc_&&doc_.clientLeft||body_&&body_.clientLeft||0;var clientTop_=doc_&&doc_.clientTop||body_&&body_.clientTop||0;e_.pageX=clientX_+(scrollLeft_-clientLeft_);e_.pageY=clientY_+(scrollTop_-clientTop_)}if(!e_.pageX){e_.pageX=e_.originalEvent.pageX}if(!e_.pageY){e_.pageY=e_.originalEvent.pageY}if(typeof e_.button=="undefined"&&typeof oe_.button!="undefined"){e_.button=oe_.button}},ct:function(a){var b=$$t.$b.b1>=6;var source_=a.getNativeElement();var d_=source_.ownerDocument;var doc_=d_?d_.documentElement:null;var z_=doc_?doc_.msContentZoomFactor:null;var body_=doc_.body;if(z_&&z_>1||b){var rect_=source_.getBoundingClientRect();var x_=rect_.left;var y_=rect_.top;var scrollLeft_=doc_&&doc_.scrollLeft||body_&&body_.scrollLeft||0;var scrollTop_=doc_&&doc_.scrollTop||body_&&body_.scrollTop||0;var clientLeft_=doc_&&doc_.clientLeft||body_&&body_.clientLeft||0;var clientTop_=doc_&&doc_.clientTop||body_&&body_.clientTop||0;var c=x_+scrollLeft_-clientLeft_;var d=y_+scrollTop_-clientTop_;return new $$a.ae(0,c,d,0,0)}else{var e=a.getOffset();return new $$a.ae(0,e.left,e.top,0,0)}},bq:0,br:0,bo:0,bp:0,bu:0,_cs:null,_cr:null,bx:function(a){if(arguments.length===1){this.bu=a;return a}else{return this.bu}},cm:function(a){this._al=a;$$t.$b.ch(a);var b=$$t.$b.ct(this._bt);this.bq=a.pageX-b.left();this.br=a.pageY-b.top();this.bo=this.bq-this._bc.left();this.bp=this.br-this._bc.top();this._cs={__x:this.bq,__y:this.br,$type:$$a.$y.$type,getType:$.ig.$op.getType,getGetHashCode:$.ig.$op.getGetHashCode,typeName:$.ig.$op.typeName};this._cr={__x:this.bo,__y:this.bp,$type:$$a.$y.$type,getType:$.ig.$op.getType,getGetHashCode:$.ig.$op.getGetHashCode,typeName:$.ig.$op.typeName}},cn:function(e_){this._al=e_;$$t.$b.ch(e_);if($$t.$b.bn()){var a=e_.pageX;var b=e_.pageY;var c=$$t.$b.ct(this._bt);this.bq=a-c.left();this.br=b-c.top()}else{this.bu=0;if(!e_.originalEvent.targetTouches||e_.originalEvent.targetTouches.length<1){return}this.bu=e_.originalEvent.targetTouches.length;var d=e_.originalEvent.targetTouches[0].pageX;var e=e_.originalEvent.targetTouches[0].pageY;var f=$$t.$b.ct(this._bt);this.bq=d-f.left();this.br=e-f.top()}this.bo=this.bq-this._bc.left();this.bp=this.br-this._bc.top();this._cs={__x:this.bq,__y:this.br,$type:$$a.$y.$type,getType:$.ig.$op.getType,getGetHashCode:$.ig.$op.getGetHashCode,typeName:$.ig.$op.typeName};this._cr={__x:this.bo,__y:this.bp,$type:$$a.$y.$type,getType:$.ig.$op.getType,getGetHashCode:$.ig.$op.getGetHashCode,typeName:$.ig.$op.typeName}},cb:function(e_){this.cl(e_);if(this.aa(this._cs,false,true)){var deltaY_=0;var ev_=e_;deltaY_=ev_.originalEvent?ev_.originalEvent.deltaY:ev_.deltaY;var deltaX_=0;deltaX_=ev_.originalEvent?ev_.originalEvent.deltaX:ev_.deltaX;var a=ev_.originalEvent?ev_.originalEvent.deltaMode==1:ev_.deltaMode==1;if(a){deltaY_=deltaY_*40;deltaX_=deltaX_*40}var b=this.af(this._cr,deltaY_);if(b){this.cj(e_)}}},b9:function(e_){this.cl(e_);this.cm(e_);if(this.aa(this._cs,false,true)){var ev_=e_;var delta_=0;if(ev_.wheelDelta){delta_=ev_.wheelDelta/120}if(ev_.originalEvent&&ev_.originalEvent.wheelDelta){delta_=ev_.originalEvent.wheelDelta/120}if(ev_.detail){delta_=-ev_.detail/3}if(ev_.originalEvent&&ev_.originalEvent.detail){delta_=-ev_.originalEvent.detail/3}delta_=delta_/10;var a=this.af(this._cr,delta_);if(a){this.cj(e_)}}},be:false,bv:0,cg:function(){if(this.be){if(this.bv==-1){this.bv=this._bs.setTimeout(this.ce.runOn(this),500)}else{window.clearTimeout(this.bv);this.bv=-1;this.bv=this._bs.setTimeout(this.ce.runOn(this),500)}}},b2:function(){this.be=true;if(this.bv!=-1){window.clearTimeout(this.bv);this.bv=-1}},ce:function(){this.be=false},_bi:false,bg:false,bl:function(a){if(arguments.length===1){this.bg=a;return a}else{return this.bg}},b7:function(a){if(this.bg||this.be){return}this.cm(a);if(this._bi){this._bi=false;this.a0(this._cr)}},b8:function(a){if(this.bg||this.be){return}this.cm(a);this.cl(a);var b=new $$a.ar;b.position(this._cs);if(this.aa(this._cs,false,false)){if(!this._bi){this._bi=true;this.az(this._cs)}this.a1(this._cs,true,false);this.aq(this._cr,false)}else if(this._bi){this.b7(a)}},ck:function(a){this._bt.focus()},bd:false,b6:function(a){if(this.bg||this.be){return}this.ck(a);this.cm(a);this.cl(a);if(this.aa(this._cs,false,false)){this.bd=true;this.ay(this._cs);this.ar(this._cr,false);this.cj(a)}},co:function(a){if(this.bg||this.be){return}if(this.bd){this.ca(a)}},ca:function(a){if(this.bg||this.be){return}this.cl(a);if($$a.$y.l_op_Equality(this._cs,null)||$$a.$y.l_op_Equality(this._cr,null)){this.cm(a)}var b=this.aa(this._cs,false,false)||this.bd||this._bi;this.bd=false;this.a2(this._cs);this.ap(this._cr,false);if(b){this.cj(a)}},b3:function(a){this.b4(a,true)},b5:function(a){this.b4(a,false)},cq:function(a){return $$t.$b.cp(a)},cp:function(a){var b;switch(a.which){case 33:b=10;break;case 34:b=11;break;case 36:b=13;break;case 37:b=14;break;case 38:b=15;break;case 39:b=16;break;case 40:b=17;break;case 9:b=2;break;case 32:b=9;break;case 13:b=3;break;case 27:b=8;break;case 16:b=4;break;case 17:b=5;break;case 18:b=6;break;case 8:b=1;break;case 35:b=12;break;case 45:b=18;break;case 46:b=19;break;case 106:b=78;break;case 107:b=79;break;case 109:b=80;break;case 110:b=81;break;case 111:b=82;break;case 220:b=85;break;case 192:b=86;break;case 191:b=84;break;case 186:b=83;break;case 189:b=88;break;case 187:b=87;break;default:if(112<=a.which&&a.which<=123){b=56+a.which-112}else if(65<=a.which&&a.which<=90){b=30+a.which-65}else if(48<=a.which&&a.which<=57){b=20+a.which-48}else if(96<=a.which&&a.which<=105){b=68+a.which-96}else{b=0}break}return b},b4:function(a,b){var c=this.cq(a);var d=c!=0;this.cl(a);if(d){var e=false;if(b){e=this.ad(c)}else{e=this.ae(c)}if(e){this.cj(a)}}},cl:function(a){this._al=a;this._a9=0;if(a.shiftKey){this._a9=this._a9|4}if(a.altKey){this._a9=this._a9|1}if(a.ctrlKey){this._a9=this._a9|2}this._ag=a.button==2},ba:function(){var a=$$t.$b.ct(this._bt);var b=a.left();var c=a.top();return{__x:b,__y:c,$type:$$a.$y.$type,getType:$.ig.$op.getType,getGetHashCode:$.ig.$op.getGetHashCode,typeName:$.ig.$op.typeName}},$type:new $.ig.Type("BaseDOMEventProxy",$.ig.EventProxy.prototype.$type)},true);$c("CanvasGestureDOMEventProxy:a","BaseDOMEventProxy",{c8:0,c9:null,cu:null,d:function(){var a=new $$t.a(this._bt,this._bs,this._bm);a._z=this._z;a._aj=this._aj;return a},_c6:null,init:function(a,b,c){this.c8=0;this.c9="";this.c1=new $$4.h(String,$$4.$x.$type.specialize($$0.$c.$type),0);this.cv=false;this.c2=new $$4.x($$0.$ax.$type,0);this.c3=new $$4.x($$a.$y.$type,0);this.c4=new $$4.x($$t.$d.$type,0);$$t.$b.init.call(this);this._bm=c;this._bs=b;this.cu=new $$t.f(new $.ig.DOMExecutionContext(b));var d=this.cu;d.holdEnding=$.ig.Delegate.prototype.combine(d.holdEnding,this.db.runOn(this));var e=this.cu;e.holdStarting=$.ig.Delegate.prototype.combine(e.holdStarting,this.dc.runOn(this));var f=this.cu;f.zoomStarting=$.ig.Delegate.prototype.combine(f.zoomStarting,this.dj.runOn(this));var g=this.cu;g.zoomEnding=$.ig.Delegate.prototype.combine(g.zoomEnding,this.di.runOn(this));var h=this.cu;h.panStarting=$.ig.Delegate.prototype.combine(h.panStarting,this.dh.runOn(this));var i=this.cu;i.panEnding=$.ig.Delegate.prototype.combine(i.panEnding,this.dg.runOn(this));var j=this.cu;j.manipulationStarting=$.ig.Delegate.prototype.combine(j.manipulationStarting,this.df.runOn(this));var k=this.cu;k.manipulationChanging=$.ig.Delegate.prototype.combine(k.manipulationChanging,this.dd.runOn(this));var l=this.cu;l.manipulationEnding=$.ig.Delegate.prototype.combine(l.manipulationEnding,this.de.runOn(this));var m=this.cu;m.doubleTapped=$.ig.Delegate.prototype.combine(m.doubleTapped,this.da.runOn(this));var n=this.cu;n.flingStarting=$.ig.Delegate.prototype.combine(n.flingStarting,this.cw.runOn(this));this._aj=function(o){return true};this._z=true;$$t.$a.c7++;this.c8=$$t.$a.c7;this.c9=".DOMProxy"+this.c8.toString();this._a9=0;this._bt=a;$$t.$b.bj=false;try{$$t.$b.bj=window.navigator.msPointerEnabled&&MSGesture!==undefined}catch(o){}$$t.$b.bk=false;try{$$t.$b.bk=window.PointerEvent||window.navigator.pointerEnabled}catch(p){}if($$t.$b.bn()){this._z=false}$$t.$b.b1=this.b0();$$t.$b.by=this.bz();this.am(this._bt,"");this._ai=function(q){return true}},cw:function(a,b){return this.ac({__x:b._a,__y:b._b,$type:$$a.$y.$type,getType:$.ig.$op.getType,getGetHashCode:$.ig.$op.getGetHashCode,typeName:$.ig.$op.typeName},b._h,b._i)},da:function(a,b){this.as({__x:b._a,__y:b._b,$type:$$a.$y.$type,getType:$.ig.$op.getType,getGetHashCode:$.ig.$op.getGetHashCode,typeName:$.ig.$op.typeName})},ah:function(){return true},de:function(a,b){if(this.cu._n==0){this.aw({__x:b._a,__y:b._b,$type:$$a.$y.$type,getType:$.ig.$op.getType,getGetHashCode:$.ig.$op.getGetHashCode,typeName:$.ig.$op.typeName},b._d);this.cg()}},dd:function(a,b){if(this.cu._n==2){this.a3({__x:b._a,__y:b._b,$type:$$a.$y.$type,getType:$.ig.$op.getType,getGetHashCode:$.ig.$op.getGetHashCode,typeName:$.ig.$op.typeName},b._d);this.a6({__x:b._a,__y:b._b,$type:$$a.$y.$type,getType:$.ig.$op.getType,getGetHashCode:$.ig.$op.getGetHashCode,typeName:$.ig.$op.typeName},b._d,b._e,b._c)}if(this.cu._n==1||this.cu._n==5){this.aq({__x:b._a,__y:b._b,$type:$$a.$y.$type,getType:$.ig.$op.getType,getGetHashCode:$.ig.$op.getGetHashCode,typeName:$.ig.$op.typeName},true);this.au({__x:b._a,__y:b._b,$type:$$a.$y.$type,getType:$.ig.$op.getType,getGetHashCode:$.ig.$op.getGetHashCode,typeName:$.ig.$op.typeName})}},df:function(a,b){},dg:function(a,b){this.cv=false;if(this.cu._n==0){this.ap({__x:b._a,__y:b._b,$type:$$a.$y.$type,getType:$.ig.$op.getType,getGetHashCode:$.ig.$op.getGetHashCode,typeName:$.ig.$op.typeName},true);this.at({__x:b._a,__y:b._b,$type:$$a.$y.$type,getType:$.ig.$op.getType,getGetHashCode:$.ig.$op.getGetHashCode,typeName:$.ig.$op.typeName})}},dh:function(a,b){this.av({__x:b._a,__y:b._b,$type:$$a.$y.$type,getType:$.ig.$op.getType,getGetHashCode:$.ig.$op.getGetHashCode,typeName:$.ig.$op.typeName})},di:function(a,b){this.a5({__x:b._a,__y:b._b,$type:$$a.$y.$type,getType:$.ig.$op.getType,getGetHashCode:$.ig.$op.getGetHashCode,typeName:$.ig.$op.typeName},b._d,b._e,b._c)},dj:function(a,b){this.a4({__x:b._a,__y:b._b,$type:$$a.$y.$type,getType:$.ig.$op.getType,getGetHashCode:$.ig.$op.getGetHashCode,typeName:$.ig.$op.typeName},1);this.a7({__x:b._a,__y:b._b,$type:$$a.$y.$type,getType:$.ig.$op.getType,getGetHashCode:$.ig.$op.getGetHashCode,typeName:$.ig.$op.typeName},1,1,1)},dc:function(a,b){this.cv=true;this.ax({__x:b._a,__y:b._b,$type:$$a.$y.$type,getType:$.ig.$op.getType,getGetHashCode:$.ig.$op.getGetHashCode,typeName:$.ig.$op.typeName})},db:function(a,b){if(this.cu._n==0){this.ap({__x:b._a,__y:b._b,$type:$$a.$y.$type,getType:$.ig.$op.getType,getGetHashCode:$.ig.$op.getGetHashCode,typeName:$.ig.$op.typeName},true)}},cz:function(){$$t.$b.bj=false;try{$$t.$b.bj=window.navigator.msPointerEnabled&&MSGesture!==undefined}catch(a){}$$t.$b.bk=false;try{$$t.$b.bk=window.PointerEvent||window.navigator.pointerEnabled}catch(b){}return $$t.$b.bn()},c1:null,dk:function(a,b,c){},am:function(a,b){var c=a;if(!this._bs.supportsDOMEvents()){return}var d=this.c9+b;var e=new $$4.x($$0.$c.$type,0);this.c1.add(d,e);this.dk(a,b,e);if(!$$t.$b.bn()){e.add(c.listen("mousemove",this.b8.runOn(this)));e.add(c.listen("mouseleave",this.b7.runOn(this)));e.add(c.listen("mousedown",this.b6.runOn(this)));e.add(c.listen("mouseup",this.ca.runOn(this)));e.add(this._bs.globalListen("window","mouseup",this.co.runOn(this)))}e.add(c.listen("keydown",this.b3.runOn(this)));e.add(c.listen("keyup",this.b5.runOn(this)));if($$t.$b.bn()){var source_=this._bt.getNativeElement();$$t.$b.ci(source_);var f=this._bt.getNativeElement();if($$t.$b.bk){e.add(c.listen("pointerdown",this.dn.runOn(this)));e.add(c.listen("pointerup",this.dr.runOn(this)));e.add(c.listen("pointercancel",this.dm.runOn(this)));e.add(c.listen("pointermove",this.dp.runOn(this)));e.add(c.listen("pointerleave",this.dq.runOn(this)));e.add(c.listen("lostpointercapture",this.dl.runOn(this)))}else{e.add(c.listen("MSPointerDown",this.dn.runOn(this)));e.add(c.listen("MSPointerUp",this.dr.runOn(this)));e.add(c.listen("MSPointerCancel",this.dm.runOn(this)));e.add(c.listen("MSPointerMove",this.dp.runOn(this)));e.add(c.listen("MSPointerLeave",this.dq.runOn(this)));e.add(c.listen("MSLostPointerCapture",this.dl.runOn(this)))}}else{e.add(c.listen("touchstart",this.du.runOn(this)));e.add(c.listen("touchmove",this.dt.runOn(this)));e.add(c.listen("touchend",this.ds.runOn(this)))}if(this._bm){e.add(c.listen("wheel",this.cb.runOn(this)))}else{e.add(c.listen("DOMMouseScroll",this.b9.runOn(this)));e.add(c.listen("mousewheel",this.b9.runOn(this)))}},dx:null,cv:false,dr:function(e_){var a=this.cy(e_);var b=this.c2.indexOf(e_.originalEvent.pointerId);if(b>=0){this.c2.removeAt(b);this.c3.removeAt(b);this.bx(this.c2.count())}if(a){this.ds(e_)}else{this.ca(e_)}},dl:function(e_){var a=this.cy(e_)},dm:function(e_){var a=this.cy(e_);var b=this.c2.indexOf(e_.originalEvent.pointerId);if(b>=0){this.c2.removeAt(b);this.c3.removeAt(b);this.bx(this.c2.count())}},c2:null,c3:null,_cx:false,dn:function(e_){var a=this.cy(e_);$$t.$b.ch(e_);this.c2.add(e_.originalEvent.pointerId);this.c3.add({__x:e_.pageX,__y:e_.pageY,$type:$$a.$y.$type,getType:$.ig.$op.getType,getGetHashCode:$.ig.$op.getGetHashCode,typeName:$.ig.$op.typeName});this.bx(this.c2.count());if(a){this.cn(e_)}else{this.cm(e_)}this.cl(e_);if(!this._cx&&this.aa(this._cs,a,false)){var eventSource_=this._bt.getNativeElement();if($$t.$b.bk){eventSource_.setPointerCapture(e_.originalEvent.pointerId)}else{eventSource_.msSetPointerCapture(e_.originalEvent.pointerId)}}if(a){this.du(e_)}else{this.b6(e_)}},cy:function(e_){var pointerEvent_=e_.originalEvent;var a=false;if($$t.$b.bk){a=pointerEvent_.pointerType=="touch"}else{a=pointerEvent_.pointerType==pointerEvent_.MSPOINTER_TYPE_TOUCH}return a},dp:function(e_){var a=this.cy(e_);$$t.$b.ch(e_);this.cl(e_);this.cn(e_);var b=this.c2.indexOf(e_.originalEvent.pointerId);if(b>=0){this.c3.__inner[b]={__x:e_.pageX,__y:e_.pageY,$type:$$a.$y.$type,getType:$.ig.$op.getType,getGetHashCode:$.ig.$op.getGetHashCode,typeName:$.ig.$op.typeName}}if(this._cx&&this.aa(this._cs,a,false)){var eventSource_=this._bt.getNativeElement();if($$t.$b.bk){eventSource_.setPointerCapture(e_.originalEvent.pointerId)}else{eventSource_.msSetPointerCapture(e_.originalEvent.pointerId)}}if(a){this.dt(e_)}else{this.b8(e_)}},dq:function(e_){var a=this.cy(e_);if(a){}else{this.b7(e_)}},du:function(e_){this._bi=true;this.cl(e_);this.cn(e_);this.dx=this._cr;if(this.aa(this._cs,true,false)){if(!this._z||this.bx()>1){if(this.bl()){this.bl(false);this.b2()}this.cj(e_)}else{this.bl(true);this.cv=false}this.a1(this._cs,false,true);this.ay(this._cs);this.ar(this._cr,true);this.cu.a6(this.c5(e_))}},c4:null,c5:function(e_){var a=$$t.$b.ct(this._bt);var b=this._bc;this.c4.clear();if($$t.$b.bn()){var c=this.c2.count();for(var j_=0;j_Math.abs(a.__y)){a.__y=0}if(Math.abs(a.__y)>Math.abs(a.__x)){a.__x=0}return this._aj(a)},ds:function(a){this._bi=false;this.cl(a);this.cn(a);if(this.bl()){this.bl(false);this.b2()}var b=this.cu._n;var c=this.aa(this._cs,true,false)||b!=0;if(this.cu._n!=2&&this.cu._n!=5){this.a1(this._cs,false,true);this.a2(this._cs)}var d=this.cu._n==2;if(d){c=true;this.ap({__x:this.cu.as(),__y:this.cu.at(),$type:$$a.$y.$type,getType:$.ig.$op.getType,getGetHashCode:$.ig.$op.getGetHashCode,typeName:$.ig.$op.typeName},true)}this.cu.a6(this.c5(a));if(this.cu._n==0){this.cg()}if(!d&&this.cu._n==0){this.ap({__x:this.cu.as(),__y:this.cu.at(),$type:$$a.$y.$type,getType:$.ig.$op.getType,getGetHashCode:$.ig.$op.getGetHashCode,typeName:$.ig.$op.typeName},true)}if(this.cu._n!=0){c=true}if(c){this.cj(a)}},dv:function(a){if(this.c1.containsKey(a)){var b=this.c1.item(a);this.c1.remove(a);for(var c=0;c1&&!this.cv&&a){this.cv=true;this.cn(e_);var b=e_.originalEvent.scale;this.a4(this._cr,b)}else{if(a){this.dj(e_)}else{this.b6(e_)}}},cw:function(e_){var pointerEvent_=e_.originalEvent;var a=false;if($$t.$b.bk){a=pointerEvent_.pointerType=="touch"}else{a=pointerEvent_.pointerType==pointerEvent_.MSPOINTER_TYPE_TOUCH}return a},de:function(e_){var a=this.cw(e_);if(this.cv){return}if(a){this.di(e_)}else{this.b8(e_)}},df:function(e_){var a=this.cw(e_);if(this.cv){return}if(a){}else{this.b7(e_)}},da:function(e_){this._bi=true;this.cl(e_);this.cn(e_);this.dl();if(this.aa(this._cs,true,false)){this.cj(e_);if($$t.$b.bn()&&this.bx()<2){return}var a=e_.originalEvent.scale;this.a4(this._cr,a)}},c8:function(e_){this._bi=true;this.cl(e_);this.cn(e_);if(this.aa(this._cs,true,false)){this.cj(e_);if($$t.$b.bn()&&this.bx()<2){return}var a=e_.originalEvent.scale;this.a3(this._cr,a)}},c9:function(e_){this.cj(e_);var a=e_.originalEvent.scale;this._bi=false;this.cl(e_);this.cn(e_);if(!$$t.$b.bn()||this.cv){this.aw(this._cr,a)}},dt:null,dj:function(e_){this._bi=true;this.cl(e_);this.cn(e_);this.dt=this._cr;if(this.aa(this._cs,true,false)){if(!this._z){this.cj(e_)}else{this.bl(true)}this.a1(this._cs,false,true);this.ay(this._cs);this.ar(this._cr,true);this.dp()}},c3:0,du:null,c0:0,c1:0,cz:0,dp:function(){if(this.c3==-1){this.c0=this._cs.__x;this.c1=this._cs.__y;this.c3=this._bs.setTimeout(this.dm.runOn(this),1500)}},dl:function(){if(Math.abs(this.c0-this._cs.__x)>this.cz||Math.abs(this.c1-this._cs.__y)>this.cz){this.dq()}},dq:function(){if(this.c3!=-1){window.clearTimeout(this.c3);this.c3=-1}},dm:function(){this.c3=-1;if(this.bl()){this.bl(false);this.b2()}this.ax(this._cr)},cu:false,ds:null,di:function(a){this._bi=true;this.cl(a);this.cn(a);if(this.bl()){if(this.aa(this._cs,true,false)&&this.cx()){this.bl(false);this.b2()}}this.dl();this.dr();if(this.aa(this._cs,true,false)&&this.bx()==1&&!this.bl()){this.cj(a);if(!this.cu){this.cu=true;this.ds=this._cr;this.av(this.ds)}else{this.a1(this._cs,true,true);this.aq(this._cr,true);this.au(this._cr)}}},cx:function(){var a={__x:this.dt.__x-this._cr.__x,__y:this.dt.__y-this._cr.__y,$type:$$a.$y.$type,getType:$.ig.$op.getType,getGetHashCode:$.ig.$op.getGetHashCode,typeName:$.ig.$op.typeName};if(Math.abs(a.__x)<2&&Math.abs(a.__y)<2){return false}if(Math.abs(a.__x)>Math.abs(a.__y)){a.__y=0}if(Math.abs(a.__y)>Math.abs(a.__x)){a.__x=0}return this._aj(a)},dh:function(a){this._bi=false;this.cl(a);this.cn(a);this.dq();if(this.bl()){this.bl(false);this.b2()}this.cj(a);this.a1(this._cs,false,true);this.a2(this._cs);if(this.bx()==0){this.dn(this._cs);this.cg()}if(this.cu&&this.bx()==0){this.cu=false;this.ds=null;this.at(this._cr);this.cg()}this.ap(this._cr,true)},dn:function(a){if($$a.$ae.l_op_Equality(this.du,null)){this.du=new $$a.ae(0,a.__x-50,a.__y-50,100,100);this._bs.setTimeout(this.dr.runOn(this),500)}else{if(a.__x>=this.du.x()&&a.__x<=this.du.right()&&a.__y>=this.du.y()&&a.__y<=this.du.bottom()){this.dr();this.as(a)}}},dr:function(){this.du=null},dk:function(a){if(this.cy.containsKey(a)){var b=this.cy.item(a);this.cy.remove(a);for(var c=0;c0){switch(a){case 1:this.init1.apply(this,arguments);break}return}$.ig.$op.init.call(this);this._a=b;this._b=c},init1:function(a){$.ig.$op.init.call(this)},_a:0,_b:0,$type:new $.ig.Type("TouchPointInfo",$.ig.$ot)},true);$c("TouchGestureRecognizer:f","Object",{init:function(a){this.p=new $$t.l;this.am=NaN;this.an=NaN;this.al=NaN;this.aj=1;this.ak=1;this.y=1;this.x=10;this.ay=-1;this.af=1;this.ag=1;this.ac=1;this.ad=NaN;this.ae=NaN;this.o=null;this.au=800;this.aw=-1;this.ax=-1;$.ig.$op.init.call(this);this.b=a},_n:0,p:null,t:0,u:0,aa:0,ab:0,v:0,w:0,am:0,an:0,al:0,aj:0,ak:0,y:0,x:0,av:function(a){if(arguments.length===1){this.x=a;return a}else{return this.x}},as:function(){return this.t},at:function(){return this.u},bf:function(){return{__x:Math.abs(this.v-this.aa),__y:Math.abs(this.w-this.ab),$type:$$a.$y.$type,getType:$.ig.$op.getType,getGetHashCode:$.ig.$op.getGetHashCode,typeName:$.ig.$op.typeName}},bd:function(a){var b=false;if(!$.ig.util.isNaN(this.aa)&&!$.ig.util.isNaN(this.ab)){this.v=a.__inner[0]._a;this.w=a.__inner[0]._b;if(Math.abs(a.__inner[0]._a-this.aa)>this.x||Math.abs(a.__inner[0]._b-this.ab)>this.x){b=true}}if(b){this.bc()}},a6:function(a){var b=a.count();var c=this._n;var d=false;var e=false;var f=false;var g=false;var h=false;var i=false;var j=false;var k=false;var l=0;var m=0;var n=0;var o=this._n;if(b>0&&b<2){switch(this._n){case 5:c=4;e=true;j=true;break;case 0:c=4;e=true;break;case 2:c=1;j=true;g=true;break}}if(b>1){switch(this._n){case 5:c=2;h=true;k=true;break;case 4:f=true;c=2;h=true;break;case 0:c=2;h=true;break;case 1:c=2;i=true;h=true;break}}if(b==0){switch(this._n){case 4:if(this.r(new $$t.d(0,this.t,this.u))){c=0;f=true;if(this.doubleTapped!=null){this.doubleTapped(this,this.c())}}else{f=true;c=0}break;case 1:c=0;i=true;break;case 2:c=0;g=true;break;case 3:c=0;d=true;break}}if(k){if(j){if(this.panEnding!=null){this.panEnding(this,this.c())}if(this.manipulationEnding!=null){this.manipulationEnding(this,this.c())}}this.a1()}if(e){this.aa=a.__inner[0]._a;this.ab=a.__inner[0]._b}if(c==4){if(!$.ig.util.isNaN(this.aa)&&!$.ig.util.isNaN(this.ab)){this.v=a.__inner[0]._a;this.w=a.__inner[0]._b;if(Math.abs(a.__inner[0]._a-this.aa)>this.x||Math.abs(a.__inner[0]._b-this.ab)>this.x){f=true;j=true;c=1}}}var p=0;var q=0;for(var r=0;r=1e3){this.a8()}else{this.b.executeDelayed(this.a2.runOn(this),1e3-(a-this.ax))}},bc:function(){this.q=false},a5:function(){this.p.f();if(this.zoomEnding!=null){this.zoomEnding(this,this.c())}},a8:function(){if(this.holdStarting!=null){this.holdStarting(this,this.c())}},af:0,ag:0,ac:0,ad:0,ae:0,bb:function(){this.p.f();this.a1();this.af=1;this.ag=1;this.ac=1;this.ad=this.t;this.ae=this.u;if(this.zoomStarting!=null){this.zoomStarting(this,this.c())}},a3:function(){if(this.holdEnding!=null){this.holdEnding(this,this.c())}},ba:function(){this.p.f();this.a1();this.ad=this.t;this.ae=this.u;if(this.panStarting!=null){this.panStarting(this,this.c())}},a1:function(){if(this._n==5){this._n=0}},o:null,au:0,aw:0,be:function(){if(this._n!=5){return}if(this.o==null||this.aw==-1){this.a1();return}var a=this.a0();var b=a-this.aw;if(b<16){this.a7(this.be.runOn(this));return}this.aw=a;var c=b/1e3;var d=this.au*c;var e=this.o;if(e._a>0){e._a-=d;if(e._a<0){e._a=0}}if(e._a<0){e._a+=d;if(e._a>0){e._a=0}}if(e._b>0){e._b-=d;if(e._b<0){e._b=0}}if(e._b<0){e._b+=d;if(e._b>0){e._b=0}}if(e._a==0&&e._b==0){this._n=0;if(this.panEnding!=null){this.panEnding(this,this.c())}if(this.manipulationEnding!=null){this.manipulationEnding(this,this.c())}this.a1();return}this.t+=e._a*c;this.u+=e._b*c;this.aq=this.t-this.ad;this.ar=this.u-this.ae;this.ad=this.t;this.ae=this.u;if(this.manipulationChanging!=null){this.manipulationChanging(this,this.c())}this.a7(this.be.runOn(this))},b:null,q:false,ax:0,s:function(a){if(this._n==5){this.a1()}this.aw=this.a0();this.o=a;this._n=5;this.a7(this.be.runOn(this));if(this.flingStarting!=null){if(!this.flingStarting(this,this.c())){this.a1();return false}}return true},a7:function(a){this.b.enqueueAnimationAction(a)},a4:function(){var a=this.p.b(this.a0());if((a._a>5||a._a<-5||a._b>5||a._b<-5)&&this._n==0){this._n=1;if(!this.s(a)){if(this._n==0){if(this.panEnding!=null){this.panEnding(this,this.c())}if(this.manipulationEnding!=null){this.manipulationEnding(this,this.c())}}}}else{if(this.panEnding!=null){this.panEnding(this,this.c())}if(this._n==0){if(this.manipulationEnding!=null){this.manipulationEnding(this,this.c())}}}},c:function(){var a=new $$t.i;a._a=this.t;a._b=this.u;a._d=this.ah;a._e=this.ai;a._c=this.z;a._f=this.aq;a._g=this.ar;a._h=this.o!=null?this.o._a:this.p.b(this.a0())._a;a._i=this.o!=null?this.o._b:this.p.b(this.a0())._b;return a},a0:function(){return this.b.getCurrentRelativeTime()},holdStarting:null,holdEnding:null,panStarting:null,manipulationStarting:null,manipulationChanging:null,manipulationEnding:null,panEnding:null,zoomStarting:null,zoomEnding:null,flingStarting:null,doubleTapped:null,ah:0,ai:0,z:0,aq:0,ar:0,$type:new $.ig.Type("TouchGestureRecognizer",$.ig.$ot)},true);$c("TouchGestureEventArgs:i","Object",{init:function(){$.ig.$op.init.call(this)},_d:0,_e:0,_c:0,_f:0,_g:0,_a:0,_b:0,_h:0,_i:0,$type:new $.ig.Type("TouchGestureEventArgs",$.ig.$ot)},true);$c("TouchHistoryItem:j","Object",{init:function(){$.ig.$op.init.call(this)},_a:0,_b:0,_c:0,$type:new $.ig.Type("TouchHistoryItem",$.ig.$ot)},true);$c("TouchVelocityReading:k","Object",{init:function(){$.ig.$op.init.call(this)},_a:0,_b:0,$type:new $.ig.Type("TouchVelocityReading",$.ig.$ot)},true);$c("TouchVelocityTracker:l","Object",{init:function(){this.a=new Array(5);this.d=0;$.ig.$op.init.call(this)},a:null,d:0,g:function(a,b,c){if($.ig.util.isNaN(a)||$.ig.util.isNaN(b)){return}var d=function(){var $ret=new $$t.j;$ret._a=a;$ret._b=b;$ret._c=c;return $ret}();this.a[this.d]=d;this.d++;if(this.d>5-1){this.d=0}},f:function(){this.d=0;for(var a=0;a<5;a++){this.a[a]=null}},b:function(a){var b=a;var c=NaN;var d=NaN;var e=NaN;var f=NaN;var g=0;var h=0;var i=true;for(var j=0;j<5;j++){if(this.a[j]==null){continue}var k=this.a[j]._c-b>300;if(k){continue}if(i){i=false;c=this.a[j]._a;d=this.a[j]._a;e=this.a[j]._b;f=this.a[j]._b;g=this.a[j]._c;h=this.a[j]._c}else{if(this.a[j]._ch){h=this.a[j]._c;c=this.a[j]._a;e=this.a[j]._b}}}if(g==h||$.ig.util.isNaN(c)||$.ig.util.isNaN(d)||$.ig.util.isNaN(e)||$.ig.util.isNaN(f)){return function(){var $ret=new $$t.k;$ret._a=NaN;$ret._b=NaN;return $ret}()}return function(){var $ret=new $$t.k;$ret._a=(c-d)/((h-g)/1e3);$ret._b=(e-f)/((h-g)/1e3);return $ret}()},$type:new $.ig.Type("TouchVelocityTracker",$.ig.$ot)},true);$$t.$b.bj=false;$$t.$b.bk=false;$$t.$b.b1=0;$$t.$b.by=0;$$t.$a.c7=0;$$t.$c.c4=0});