!function(d){d.jqx.jqxWidget("jqxTooltip","",{}),d.extend(d.jqx._jqxTooltip.prototype,{defineInstance:function(){var t={width:"auto",height:"auto",position:"default",enableBrowserBoundsDetection:!0,content:"",left:0,top:0,absolutePositionX:0,absolutePositionY:0,trigger:"hover",showDelay:100,autoHide:!0,autoHideDelay:3e3,closeOnClick:!0,disabled:!1,animationShowDelay:200,animationHideDelay:"fast",showArrow:!0,name:"",opacity:.9,rtl:!1,_isOpen:!1,selector:null,opening:null,value:null,_eventsMap:{mousedown:d.jqx.mobile.getTouchEventName("touchstart"),mouseup:d.jqx.mobile.getTouchEventName("touchend")},events:["open","close","opening","closing"]};return this===d.jqx._jqxTooltip.prototype||d.extend(!0,this,t),t},createInstance:function(){this._isTouchDevice=d.jqx.mobile.isTouchDevice();var t=d.data(document.body,"_tooltipIDArray"+this.name);t?this.IDArray=t:(this.IDArray=[],d.data(document.body,"_tooltipIDArray"+this.name,this.IDArray));var o="jqxtooltip"+this._generatekey();this.IDArray.push({tooltipID:o,tooltipHost:this.host});t=document.createElement("div");t.setAttribute("id",o),t.innerHTML='
',d.jqx.browser.msie&&(t.className=this.toThemeProperty("jqx-noshadow")),document.body.appendChild(t),this._tooltip=t,this._tooltipHelper=d(t),this._tooltipHelper.initAnimate&&this._tooltipHelper.initAnimate(),t.style.visibility="hidden",t.style.display="none",t.style.opacity=0,t.style.zIndex=99999;t=document.getElementById(o+"Arrow");this._arrow=t,!1===this.showArrow&&(t.style.visibility="hidden",t.style.display="none"),this._main=document.getElementById(o+"Main"),this._text=document.getElementById(o+"Text"),this._setTheme(),this._setSize(),this._setContent(),!1===this.disabled&&(this._trigger(),!0===this.closeOnClick&&this._clickHide())},open:function(){var t;arguments&&arguments.length&&2===arguments.length&&(this.position="absolute",this.left=arguments[0],this.top=arguments[1],this.absolutePositionX=arguments[0],this.absolutePositionY=arguments[1]),!1===this.disabled&&"removed"!==this._id()&&("mouse"===this.position||"mouseenter"===this.position?(t=this.position,this.position="default",this._raiseEvent("2"),this._setPosition(),this._animateShow(),this.position=t):(this._raiseEvent("2"),this._setPosition(),this._animateShow()))},close:function(t){var o=this,i=d.jqx.browser.msie&&d.jqx.browser.version<9;"object"==typeof t&&d.isEmptyObject(t)&&(t=this.animationHideDelay);function e(){clearTimeout(o.autoHideTimeout),o._raiseEvent("3"),o._tooltipHelper.animate({opacity:0},t,function(){o._tooltip.style.visibility="hidden",o._tooltip.style.display="none",o._raiseEvent("1"),o._isOpen=!1})}var s=parseFloat(o._tooltip.style.opacity);(!1===this._isOpen&&0!==s||!0===this._isOpen&&(!i&&s===this.opacity||i))&&e()},destroy:function(){var t=this.IDArray.length;this._removeHandlers(),this._tooltipHelper.remove();for(var o=0;othis.hostOffset.top-10?(this.tooltipOffset.left=n-this.tooltipWidth/2,this.tooltipOffset.top=this.hostOffset.top-this.tooltipHeight-this.arrowSize,this._detectBrowserBounds(),this.tooltipMainOffset=l.offset(),o._removeClass(s,o.toThemeProperty("jqx-tooltip-arrow-l-r")),s.className+=" "+o.toThemeProperty("jqx-tooltip-arrow-t-b"),s.style.borderWidth=this.arrowSize+"px "+this.arrowSize+"px 0px",this.tooltipArrowOffset.left=this.tooltipMainOffset.left+(f/2-this.arrowSize),this.tooltipArrowOffset.top=this.tooltipMainOffset.top+i,h.offset({top:this.tooltipArrowOffset.top,left:this.tooltipArrowOffset.left})):athis.hostOffset.top+this.hostHeight-10?(this.tooltipOffset.left=n-this.tooltipWidth/2,this.tooltipOffset.top=this.hostOffset.top+this.hostHeight+this.arrowSize,this._detectBrowserBounds(),this.tooltipMainOffset=l.offset(),o._removeClass(s,o.toThemeProperty("jqx-tooltip-arrow-l-r")),s.className+=" "+o.toThemeProperty("jqx-tooltip-arrow-t-b"),s.style.borderWidth="0 "+this.arrowSize+"px "+this.arrowSize+"px",this.tooltipArrowOffset.left=this.tooltipMainOffset.left+(f/2-this.arrowSize),this.tooltipArrowOffset.top=this.tooltipMainOffset.top-this.arrowSize,h.offset({top:this.tooltipArrowOffset.top,left:this.tooltipArrowOffset.left})):nthis.hostOffset.left-10?(e=window.getComputedStyle?window.getComputedStyle(r):r.currentStyle,this.tooltipOffset.left=this.hostOffset.left-this.tooltipWidth-this.arrowSize-(parseInt(e.borderLeftWidth,10)+parseInt(e.borderRightWidth,10)),this.tooltipOffset.top=a-this.tooltipHeight/2,this._detectBrowserBounds(),this.tooltipMainOffset=l.offset(),o._removeClass(s,o.toThemeProperty("jqx-tooltip-arrow-t-b")),s.className+=" "+o.toThemeProperty("jqx-tooltip-arrow-l-r"),s.style.borderWidth=this.arrowSize+"px 0px "+this.arrowSize+"px "+this.arrowSize+"px",this.tooltipMainOffset=l.offset(),this.tooltipArrowOffset.left=this.tooltipMainOffset.left+f,this.tooltipArrowOffset.top=this.tooltipMainOffset.top+i/2-this.arrowSize,h.offset({top:this.tooltipArrowOffset.top,left:this.tooltipArrowOffset.left})):nthis.hostOffset.left+this.hostWidth-10&&(this.tooltipOffset.left=this.hostOffset.left+this.hostWidth+this.arrowSize,this.tooltipOffset.top=a-this.tooltipHeight/2,this._detectBrowserBounds(),this.tooltipMainOffset=l.offset(),o._removeClass(s,o.toThemeProperty("jqx-tooltip-arrow-t-b")),s.className+=" "+o.toThemeProperty("jqx-tooltip-arrow-l-r"),s.style.borderWidth=this.arrowSize+"px "+this.arrowSize+"px "+this.arrowSize+"px 0px",this.tooltipMainOffset=l.offset(),this.tooltipArrowOffset.left=this.tooltipMainOffset.left-this.arrowSize,this.tooltipArrowOffset.top=this.tooltipMainOffset.top+i/2-this.arrowSize,h.offset({top:this.tooltipArrowOffset.top,left:this.tooltipArrowOffset.left}));break;case"default":this.tooltipOffset.left=this.hostOffset.left+this.hostWidth-this.defaultOffset,this.tooltipOffset.top=this.hostOffset.top+this.hostHeight+this.arrowSize,this._detectBrowserBounds(),this.tooltipMainOffset=l.offset(),o._removeClass(s,o.toThemeProperty("jqx-tooltip-arrow-l-r")),s.className+=" "+o.toThemeProperty("jqx-tooltip-arrow-t-b"),s.style.borderWidth="0 "+this.arrowSize+"px "+this.arrowSize+"px",this.tooltipArrowOffset.left=this.tooltipMainOffset.left+4*this.arrowSize,this.tooltipArrowOffset.top=this.tooltipMainOffset.top-this.arrowSize,h.offset({top:this.tooltipArrowOffset.top,left:this.tooltipArrowOffset.left})}}},_setContent:function(){this._text.innerHTML=this.content},opened:function(){return this._isOpen&&"block"==this.host.css("display")&&"visible"==this.host.css("visibility")},_animateShow:function(){this._closeAll(),clearTimeout(this.autoHideTimeout);var t=parseFloat(this._tooltip.style.opacity);if(!1===this._isOpen&&0===t){var o=this;if(o._tooltip.style.visibility="visible",o._tooltip.style.display="block",o._tooltip.style.opacity=0,this.opening)if(!1===this.opening(this))return;o._tooltipHelper.animate({opacity:this.opacity},this.animationShowDelay,function(){o._raiseEvent("0"),o._isOpen=!0,o.openedTooltip=o,d.data(document.body,"_openedTooltip"+o.name,o),o.autoHideTimeout&&clearTimeout(o.autoHideTimeout),0parseInt(o.left,10)+i)&&r.close(),(parseInt(t.pageY,10)parseInt(o.top,10)+e)&&r.close()}),this.addHandler(r._tooltipHelper,"mouseleave.tooltip",function(t){r._checkBoundariesAuto(t),0!==r._clickFlag&&0!==r._autoFlag?r._leaveFlag=0:(r._leaveFlag=1,r.close())})):(this.addHandler(t,"mouseenter.tooltip",function(t){clearTimeout(r.hoverShowTimeout),r.hoverShowTimeout=setTimeout(function(){r._raiseEvent("2"),r._setPosition(t),r._animateShow()},r.showDelay)}),this.addHandler(t,"mouseleave.tooltip",function(t){var o,i,e,s,h;r._leaveFlag=1,clearTimeout(r.hoverShowTimeout),r.autoHide&&(o=t.pageX,i=t.pageY,e=(h=r._tooltipHelper.offset()).left,s=h.top,t=r._tooltip.offsetWidth,h=r._tooltip.offsetHeight,(parseInt(o,10)parseInt(e,10)+t||parseInt(i,10)parseInt(s,10)+h)&&r.close())}),this.addHandler(r._tooltipHelper,"mouseleave.tooltip",function(t){r._checkBoundariesAuto(t),0!==r._clickFlag&&0!==r._autoFlag?r._leaveFlag=0:(r._leaveFlag=1,r.autoHide&&r.close())}));break;case"click":this.addHandler(t,"click.tooltip",function(t){"mouseenter"===r.position&&(r.position="mouse"),r._raiseEvent("2"),r._setPosition(t),r._animateShow()})}else"none"!==this.trigger&&this.addHandler(t,"touchstart.tooltip",function(t){"mouseenter"===r.position&&(r.position="mouse"),r._raiseEvent("2"),r._setPosition(t),r._animateShow()})}},_autoHide:function(){var t=this,o=parseFloat(t._tooltip.style.opacity);!0===this.autoHide&&!0===this._isOpen&&o>=this.opacity&&(t._raiseEvent("3"),t._tooltipHelper.animate({opacity:0},t.animationHideDelay,function(){t._tooltip.style.visibility="hidden",t._tooltip.style.display="none",t._raiseEvent("1"),t._isOpen=!1}))},_clickHide:function(){var o=this;this.addHandler(o._tooltipHelper,"click.tooltip",function(t){o._checkBoundariesClick(t),o.close()})},_setSize:function(){var t=this;t._tooltip.style.width=t._toPx(t.width),t._tooltip.style.height=t._toPx(t.height)},resize:function(){this._setSize()},_setTheme:function(){var t=this;-1===t._tooltip.className.indexOf("jqx-tooltip")&&(t._tooltip.className+=" "+t.toThemeProperty("jqx-tooltip jqx-popup"),t._main.className+=" "+t.toThemeProperty("jqx-widget jqx-fill-state-normal jqx-tooltip-main"),t._text.className+=" "+t.toThemeProperty("jqx-widget jqx-fill-state-normal jqx-tooltip-text"),t._arrow&&(t._arrow.className+=" "+t.toThemeProperty("jqx-widget jqx-fill-state-normal jqx-tooltip-arrow")))},_initialPosition:function(){var t=this.position;this.position="default",this._setPosition(),this.position=t},_detectBrowserBounds:function(){var t=this._tooltipHelper;this.enableBrowserBoundsDetection?this.tooltipOffset.topthis.windowWidth+this.documentLeft?t.offset({top:this.documentTop,left:this.windowWidth+this.documentLeft-this.tooltipWidth}):this.tooltipOffset.topthis.windowHeight+this.documentTop&&this.tooltipOffset.left<0?t.offset({top:this.windowHeight+this.documentTop-this.tooltipHeight,left:this.documentLeft}):this.tooltipOffset.top+this.tooltipHeight>this.windowHeight+this.documentTop&&this.tooltipOffset.left+this.tooltipWidth>this.windowWidth+this.documentLeft?t.offset({top:this.windowHeight+this.documentTop-this.tooltipHeight,left:this.windowWidth+this.documentLeft-this.tooltipWidth}):this.tooltipOffset.top+this.tooltipHeight>this.windowHeight+this.documentTop?t.offset({top:this.windowHeight+this.documentTop-this.tooltipHeight,left:this.tooltipOffset.left}):this.tooltipOffset.left<0?t.offset({top:this.tooltipOffset.top,left:this.documentLeft}):this.tooltipOffset.left+this.tooltipWidth>this.windowWidth+this.documentLeft?t.offset({top:this.tooltipOffset.top,left:this.windowWidth+this.documentLeft-this.tooltipWidth}):t.offset({top:this.tooltipOffset.top,left:this.tooltipOffset.left}):t.offset({top:this.tooltipOffset.top,left:this.tooltipOffset.left})},_checkBoundaries:function(t){return t.pageX>=this.hostOffset.left&&t.pageX<=this.hostOffset.left+this.hostWidth&&t.pageY>=this.hostOffset.top&&t.pageY<=this.hostOffset.top+this.hostHeight},_checkBoundariesClick:function(t){this._checkBoundaries(t)?this._clickFlag=1:this._clickFlag=0},_checkBoundariesAuto:function(t){this._checkBoundaries(t)?this._autoFlag=1:this._autoFlag=0},_removeHandlers:function(){this.removeHandler(this.host,"mouseenter.tooltip"),this.removeHandler(this.host,"mousemove.tooltip"),this.removeHandler(this.host,"mouseleave.tooltip"),this.removeHandler(this.host,"click.tooltip"),this.removeHandler(this.host,"touchstart.tooltip"),this.removeHandler(this._tooltipHelper,"click.tooltip"),this.removeHandler(this._tooltipHelper,"mouseleave.tooltip")},_closeAll:function(){for(var t=0;t