!function(t){if(t.support.touch="ontouchend"in document,t.support.touch){var e,o=t.ui.mouse.prototype,u=o._mouseInit,n=o._mouseDestroy;o._touchStart=function(o){!e&&this._mouseCapture(o.originalEvent.changedTouches[0])&&(e=!0,this._touchMoved=!1,c(o,"mouseover"),c(o,"mousemove"),c(o,"mousedown"))},o._touchMove=function(o){e&&(this._touchMoved=!0,c(o,"mousemove"))},o._touchEnd=function(o){e&&(c(o,"mouseup"),c(o,"mouseout"),this._touchMoved||c(o,"click"),e=!1)},o._mouseInit=function(){var o=this;o.element.bind({touchstart:t.proxy(o,"_touchStart"),touchmove:t.proxy(o,"_touchMove"),touchend:t.proxy(o,"_touchEnd")}),u.call(o)},o._mouseDestroy=function(){var o=this;o.element.unbind({touchstart:t.proxy(o,"_touchStart"),touchmove:t.proxy(o,"_touchMove"),touchend:t.proxy(o,"_touchEnd")}),n.call(o)}}function c(o,t){if(!(1