!function($,t,o){function e(t,o){this.bodyOverflowX,this.callbacks={hide:[],show:[]},this.checkInterval=null,this.Content,this.$el=$(t),this.$elProxy,this.elProxyPosition,this.enabled=!0,this.options=$.extend({},a,o),this.mouseIsOverProxy=!1,this.namespace="tooltipster-"+Math.round(1e5*Math.random()),this.Status="hidden",this.timerHide=null,this.timerShow=null,this.$tooltip,this.options.iconTheme=this.options.iconTheme.replace(".",""),this.options.theme=this.options.theme.replace(".",""),this._init()}function i(t,o){var e=!0;return $.each(t,function(i,n){return"undefined"==typeof o[i]||t[i]!==o[i]?(e=!1,!1):void 0}),e}function n(){return!p&&l}function s(){var t=o.body||o.documentElement,e=t.style,i="transition";if("string"==typeof e[i])return!0;v=["Moz","Webkit","Khtml","O","ms"],i=i.charAt(0).toUpperCase()+i.substr(1);for(var n=0;n<v.length;n++)if("string"==typeof e[v[n]+i])return!0;return!1}var r="tooltipster",a={animation:"fade",arrow:!0,arrowColor:"",autoClose:!0,content:null,contentAsHTML:!1,contentCloning:!0,debug:!0,delay:200,minWidth:0,maxWidth:null,functionInit:function(t,o){},functionBefore:function(t,o){o()},functionReady:function(t,o){},functionAfter:function(t){},hideOnClick:!1,icon:"(?)",iconCloning:!0,iconDesktop:!1,iconTouch:!1,iconTheme:"tooltipster-icon",interactive:!1,interactiveTolerance:350,multiple:!1,offsetX:0,offsetY:0,onlyOne:!1,position:"top",positionTracker:!1,positionTrackerCallback:function(t){"hover"==this.option("trigger")&&this.option("autoClose")&&this.hide()},restoration:"current",speed:350,timer:0,theme:"tooltipster-default",touchDevices:!0,trigger:"hover",updateAnimation:!0};e.prototype={_init:function(){var t=this;if(o.querySelector){var e=null;void 0===t.$el.data("tooltipster-initialTitle")&&(e=t.$el.attr("title"),void 0===e&&(e=null),t.$el.data("tooltipster-initialTitle",e)),t._content_set(null!==t.options.content?t.options.content:e);var i=t.options.functionInit.call(t.$el,t.$el,t.Content);"undefined"!=typeof i&&t._content_set(i),t.$el.removeAttr("title").addClass("tooltipstered"),!l&&t.options.iconDesktop||l&&t.options.iconTouch?("string"==typeof t.options.icon?(t.$elProxy=$('<span class="'+t.options.iconTheme+'"></span>'),t.$elProxy.text(t.options.icon)):t.$elProxy=t.options.iconCloning?t.options.icon.clone(!0):t.options.icon,t.$elProxy.insertAfter(t.$el)):t.$elProxy=t.$el,"hover"==t.options.trigger?(t.$elProxy.on("mouseenter."+t.namespace,function(){(!n()||t.options.touchDevices)&&(t.mouseIsOverProxy=!0,t._show())}).on("mouseleave."+t.namespace,function(){(!n()||t.options.touchDevices)&&(t.mouseIsOverProxy=!1)}),l&&t.options.touchDevices&&t.$elProxy.on("touchstart."+t.namespace,function(){t._showNow()})):"click"==t.options.trigger&&t.$elProxy.on("click."+t.namespace,function(){(!n()||t.options.touchDevices)&&t._show()})}},_show:function(){var t=this;"shown"!=t.Status&&"appearing"!=t.Status&&(t.options.delay?t.timerShow=setTimeout(function(){("click"==t.options.trigger||"hover"==t.options.trigger&&t.mouseIsOverProxy)&&t._showNow()},t.options.delay):t._showNow())},_showNow:function(o){var e=this;e.options.functionBefore.call(e.$el,e.$el,function(){if(e.enabled&&null!==e.Content){o&&e.callbacks.show.push(o),e.callbacks.hide=[],clearTimeout(e.timerShow),e.timerShow=null,clearTimeout(e.timerHide),e.timerHide=null,e.options.onlyOne&&$(".tooltipstered").not(e.$el).each(function(t,o){var e=$(o),i=e.data("tooltipster-ns");$.each(i,function(t,o){var i=e.data(o),n=i.status(),s=i.option("autoClose");"hidden"!==n&&"disappearing"!==n&&s&&i.hide()})});var i=function(){e.Status="shown",$.each(e.callbacks.show,function(t,o){o.call(e.$el)}),e.callbacks.show=[]};if("hidden"!==e.Status){var n=0;"disappearing"===e.Status?(e.Status="appearing",s()?(e.$tooltip.clearQueue().removeClass("tooltipster-dying").addClass("tooltipster-"+e.options.animation+"-show"),e.options.speed>0&&e.$tooltip.delay(e.options.speed),e.$tooltip.queue(i)):e.$tooltip.stop().fadeIn(i)):"shown"===e.Status&&i()}else{e.Status="appearing";var n=e.options.speed;e.bodyOverflowX=$("body").css("overflow-x"),$("body").css("overflow-x","hidden");var r="tooltipster-"+e.options.animation,a="-webkit-transition-duration: "+e.options.speed+"ms; -webkit-animation-duration: "+e.options.speed+"ms; -moz-transition-duration: "+e.options.speed+"ms; -moz-animation-duration: "+e.options.speed+"ms; -o-transition-duration: "+e.options.speed+"ms; -o-animation-duration: "+e.options.speed+"ms; -ms-transition-duration: "+e.options.speed+"ms; -ms-animation-duration: "+e.options.speed+"ms; transition-duration: "+e.options.speed+"ms; animation-duration: "+e.options.speed+"ms;",p=e.options.minWidth?"min-width:"+Math.round(e.options.minWidth)+"px;":"",f=e.options.maxWidth?"max-width:"+Math.round(e.options.maxWidth)+"px;":"",d=e.options.interactive?"pointer-events: auto;":"";if(e.$tooltip=$('<div class="tooltipster-base '+e.options.theme+'" style="'+p+" "+f+" "+d+" "+a+'"><div class="tooltipster-content"></div></div>'),s()&&e.$tooltip.addClass(r),e._content_insert(),e.$tooltip.appendTo("body"),e.reposition(),e.options.functionReady.call(e.$el,e.$el,e.$tooltip),s()?(e.$tooltip.addClass(r+"-show"),e.options.speed>0&&e.$tooltip.delay(e.options.speed),e.$tooltip.queue(i)):e.$tooltip.css("display","none").fadeIn(e.options.speed,i),e._interval_set(),$(t).on("scroll."+e.namespace+" resize."+e.namespace,function(){e.reposition()}),e.options.autoClose)if($("body").off("."+e.namespace),"hover"==e.options.trigger){if(l&&setTimeout(function(){$("body").on("touchstart."+e.namespace,function(){e.hide()})},0),e.options.interactive){l&&e.$tooltip.on("touchstart."+e.namespace,function(t){t.stopPropagation()});var c=null;e.$elProxy.add(e.$tooltip).on("mouseleave."+e.namespace+"-autoClose",function(){clearTimeout(c),c=setTimeout(function(){e.hide()},e.options.interactiveTolerance)}).on("mouseenter."+e.namespace+"-autoClose",function(){clearTimeout(c)})}else e.$elProxy.on("mouseleave."+e.namespace+"-autoClose",function(){e.hide()});e.options.hideOnClick&&e.$elProxy.on("click."+e.namespace+"-autoClose",function(){e.hide()})}else"click"==e.options.trigger&&(setTimeout(function(){$("body").on("click."+e.namespace+" touchstart."+e.namespace,function(){e.hide()})},0),e.options.interactive&&e.$tooltip.on("click."+e.namespace+" touchstart."+e.namespace,function(t){t.stopPropagation()}))}e.options.timer>0&&(e.timerHide=setTimeout(function(){e.timerHide=null,e.hide()},e.options.timer+n))}})},_interval_set:function(){var t=this;t.checkInterval=setInterval(function(){if(0===$("body").find(t.$el).length||0===$("body").find(t.$elProxy).length||"hidden"==t.Status||0===$("body").find(t.$tooltip).length)("shown"==t.Status||"appearing"==t.Status)&&t.hide(),t._interval_cancel();else if(t.options.positionTracker){var o=t._repositionInfo(t.$elProxy),e=!1;i(o.dimension,t.elProxyPosition.dimension)&&("fixed"===t.$elProxy.css("position")?i(o.position,t.elProxyPosition.position)&&(e=!0):i(o.offset,t.elProxyPosition.offset)&&(e=!0)),e||(t.reposition(),t.options.positionTrackerCallback.call(t,t.$el))}},200)},_interval_cancel:function(){clearInterval(this.checkInterval),this.checkInterval=null},_content_set:function(t){"object"==typeof t&&null!==t&&this.options.contentCloning&&(t=t.clone(!0)),this.Content=t},_content_insert:function(){var t=this,o=this.$tooltip.find(".tooltipster-content");"string"!=typeof t.Content||t.options.contentAsHTML?o.empty().append(t.Content):o.text(t.Content)},_update:function(t){var o=this;o._content_set(t),null!==o.Content?"hidden"!==o.Status&&(o._content_insert(),o.reposition(),o.options.updateAnimation&&(s()?(o.$tooltip.css({width:"","-webkit-transition":"all "+o.options.speed+"ms, width 0ms, height 0ms, left 0ms, top 0ms","-moz-transition":"all "+o.options.speed+"ms, width 0ms, height 0ms, left 0ms, top 0ms","-o-transition":"all "+o.options.speed+"ms, width 0ms, height 0ms, left 0ms, top 0ms","-ms-transition":"all "+o.options.speed+"ms, width 0ms, height 0ms, left 0ms, top 0ms",transition:"all "+o.options.speed+"ms, width 0ms, height 0ms, left 0ms, top 0ms"}).addClass("tooltipster-content-changing"),setTimeout(function(){"hidden"!=o.Status&&(o.$tooltip.removeClass("tooltipster-content-changing"),setTimeout(function(){"hidden"!==o.Status&&o.$tooltip.css({"-webkit-transition":o.options.speed+"ms","-moz-transition":o.options.speed+"ms","-o-transition":o.options.speed+"ms","-ms-transition":o.options.speed+"ms",transition:o.options.speed+"ms"})},o.options.speed))},o.options.speed)):o.$tooltip.fadeTo(o.options.speed,.5,function(){"hidden"!=o.Status&&o.$tooltip.fadeTo(o.options.speed,1)}))):o.hide()},_repositionInfo:function(t){return{dimension:{height:t.outerHeight(!1),width:t.outerWidth(!1)},offset:t.offset(),position:{left:parseInt(t.css("left")),top:parseInt(t.css("top"))}}},hide:function(o){var e=this;o&&e.callbacks.hide.push(o),e.callbacks.show=[],clearTimeout(e.timerShow),e.timerShow=null,clearTimeout(e.timerHide),e.timerHide=null;var i=function(){$.each(e.callbacks.hide,function(t,o){o.call(e.$el)}),e.callbacks.hide=[]};if("shown"==e.Status||"appearing"==e.Status){e.Status="disappearing";var n=function(){e.Status="hidden","object"==typeof e.Content&&null!==e.Content&&e.Content.detach(),e.$tooltip.remove(),e.$tooltip=null,$(t).off("."+e.namespace),$("body").off("."+e.namespace).css("overflow-x",e.bodyOverflowX),$("body").off("."+e.namespace),e.$elProxy.off("."+e.namespace+"-autoClose"),e.options.functionAfter.call(e.$el,e.$el),i()};s()?(e.$tooltip.clearQueue().removeClass("tooltipster-"+e.options.animation+"-show").addClass("tooltipster-dying"),e.options.speed>0&&e.$tooltip.delay(e.options.speed),e.$tooltip.queue(n)):e.$tooltip.stop().fadeOut(e.options.speed,n)}else"hidden"==e.Status&&i();return e},show:function(t){return this._showNow(t),this},update:function(t){return this.content(t)},content:function(t){return"undefined"==typeof t?this.Content:(this._update(t),this)},reposition:function(){function o(){var o=$(t).scrollLeft();0>H-o&&(n=H-o,H=o),H+a-o>s&&(n=H-(s+o-a),H=s+o-a)}function e(o,e){r.offset.top-$(t).scrollTop()-p-W-12<0&&e.indexOf("top")>-1&&(z=o),r.offset.top+r.dimension.height+p+12+W>$(t).scrollTop()+$(t).height()&&e.indexOf("bottom")>-1&&(z=o,D=r.offset.top-p-W-12)}var i=this;if(0!==$("body").find(i.$tooltip).length){i.$tooltip.css("width",""),i.elProxyPosition=i._repositionInfo(i.$elProxy);var n=null,s=$(t).width(),r=i.elProxyPosition,a=i.$tooltip.outerWidth(!1),l=i.$tooltip.innerWidth()+1,p=i.$tooltip.outerHeight(!1);if(i.$elProxy.is("area")){var f=i.$elProxy.attr("shape"),d=i.$elProxy.parent().attr("name"),c=$('img[usemap="#'+d+'"]'),h=c.offset().left,u=c.offset().top,m=void 0!==i.$elProxy.attr("coords")?i.$elProxy.attr("coords").split(","):void 0;if("circle"==f){var v=parseInt(m[0]),g=parseInt(m[1]),w=parseInt(m[2]);r.dimension.height=2*w,r.dimension.width=2*w,r.offset.top=u+g-w,r.offset.left=h+v-w}else if("rect"==f){var v=parseInt(m[0]),g=parseInt(m[1]),y=parseInt(m[2]),b=parseInt(m[3]);r.dimension.height=b-g,r.dimension.width=y-v,r.offset.top=u+g,r.offset.left=h+v}else if("poly"==f){for(var x=[],C=[],P=0,T=0,k=0,_=0,I="even",S=0;S<m.length;S++){var O=parseInt(m[S]);"even"==I?(O>k&&(k=O,0===S&&(P=k)),P>O&&(P=O),I="odd"):(O>_&&(_=O,1==S&&(T=_)),T>O&&(T=O),I="even")}r.dimension.height=_-T,r.dimension.width=k-P,r.offset.top=u+T,r.offset.left=h+P}else r.dimension.height=c.outerHeight(!1),r.dimension.width=c.outerWidth(!1),r.offset.top=u,r.offset.left=h}var H=0,M=0,D=0,W=parseInt(i.options.offsetY),A=parseInt(i.options.offsetX),z=i.options.position;if("top"==z){var F=r.offset.left+a-(r.offset.left+r.dimension.width);H=r.offset.left+A-F/2,D=r.offset.top-p-W-12,o(),e("bottom","top")}if("top-left"==z&&(H=r.offset.left+A,D=r.offset.top-p-W-12,o(),e("bottom-left","top-left")),"top-right"==z&&(H=r.offset.left+r.dimension.width+A-a,D=r.offset.top-p-W-12,o(),e("bottom-right","top-right")),"bottom"==z){var F=r.offset.left+a-(r.offset.left+r.dimension.width);H=r.offset.left-F/2+A,D=r.offset.top+r.dimension.height+W+12,o(),e("top","bottom")}if("bottom-left"==z&&(H=r.offset.left+A,D=r.offset.top+r.dimension.height+W+12,o(),e("top-left","bottom-left")),"bottom-right"==z&&(H=r.offset.left+r.dimension.width+A-a,D=r.offset.top+r.dimension.height+W+12,o(),e("top-right","bottom-right")),"left"==z){H=r.offset.left-A-a-12,M=r.offset.left+A+r.dimension.width+12;var N=r.offset.top+p-(r.offset.top+r.dimension.height);if(D=r.offset.top-N/2-W,0>H&&M+a>s){var X=2*parseFloat(i.$tooltip.css("border-width")),q=a+H-X;i.$tooltip.css("width",q+"px"),p=i.$tooltip.outerHeight(!1),H=r.offset.left-A-q-12-X,N=r.offset.top+p-(r.offset.top+r.dimension.height),D=r.offset.top-N/2-W}else 0>H&&(H=r.offset.left+A+r.dimension.width+12,n="left")}if("right"==z){H=r.offset.left+A+r.dimension.width+12,M=r.offset.left-A-a-12;var N=r.offset.top+p-(r.offset.top+r.dimension.height);if(D=r.offset.top-N/2-W,H+a>s&&0>M){var X=2*parseFloat(i.$tooltip.css("border-width")),q=s-H-X;i.$tooltip.css("width",q+"px"),p=i.$tooltip.outerHeight(!1),N=r.offset.top+p-(r.offset.top+r.dimension.height),D=r.offset.top-N/2-W}else H+a>s&&(H=r.offset.left-A-a-12,n="right")}if(i.options.arrow){var j="tooltipster-arrow-"+z;if(i.options.arrowColor.length<1)var E=i.$tooltip.css("background-color");else var E=i.options.arrowColor;if(n?"left"==n?(j="tooltipster-arrow-right",n=""):"right"==n?(j="tooltipster-arrow-left",n=""):n="left:"+Math.round(n)+"px;":n="","top"==z||"top-left"==z||"top-right"==z)var L=parseFloat(i.$tooltip.css("border-bottom-width")),Q=i.$tooltip.css("border-bottom-color");else if("bottom"==z||"bottom-left"==z||"bottom-right"==z)var L=parseFloat(i.$tooltip.css("border-top-width")),Q=i.$tooltip.css("border-top-color");else if("left"==z)var L=parseFloat(i.$tooltip.css("border-right-width")),Q=i.$tooltip.css("border-right-color");else if("right"==z)var L=parseFloat(i.$tooltip.css("border-left-width")),Q=i.$tooltip.css("border-left-color");else var L=parseFloat(i.$tooltip.css("border-bottom-width")),Q=i.$tooltip.css("border-bottom-color");L>1&&L++;var U="";if(0!==L){var Y="",B="border-color: "+Q+";";-1!==j.indexOf("bottom")?Y="margin-top: -"+Math.round(L)+"px;":-1!==j.indexOf("top")?Y="margin-bottom: -"+Math.round(L)+"px;":-1!==j.indexOf("left")?Y="margin-right: -"+Math.round(L)+"px;":-1!==j.indexOf("right")&&(Y="margin-left: -"+Math.round(L)+"px;"),U='<span class="tooltipster-arrow-border" style="'+Y+" "+B+';"></span>'}i.$tooltip.find(".tooltipster-arrow").remove();var R='<div class="'+j+' tooltipster-arrow" style="'+n+'">'+U+'<span style="border-color:'+E+';"></span></div>';i.$tooltip.append(R)}i.$tooltip.css({top:Math.round(D)+"px",left:Math.round(H)+"px"})}return i},enable:function(){return this.enabled=!0,this},disable:function(){return this.hide(),this.enabled=!1,this},destroy:function(){var t=this;t.hide(),t.$el[0]!==t.$elProxy[0]&&t.$elProxy.remove(),t.$el.removeData(t.namespace).off("."+t.namespace);var o=t.$el.data("tooltipster-ns");if(1===o.length){var e=null;"previous"===t.options.restoration?e=t.$el.data("tooltipster-initialTitle"):"current"===t.options.restoration&&(e="string"==typeof t.Content?t.Content:$("<div></div>").append(t.Content).html()),e&&t.$el.attr("title",e),t.$el.removeClass("tooltipstered").removeData("tooltipster-ns").removeData("tooltipster-initialTitle")}else o=$.grep(o,function(o,e){return o!==t.namespace}),t.$el.data("tooltipster-ns",o);return t},elementIcon:function(){return this.$el[0]!==this.$elProxy[0]?this.$elProxy[0]:void 0},elementTooltip:function(){return this.$tooltip?this.$tooltip[0]:void 0},option:function(t,o){return"undefined"==typeof o?this.options[t]:(this.options[t]=o,this)},status:function(){return this.Status}},$.fn[r]=function(){var t=arguments;if(0===this.length){if("string"==typeof t[0]){var o=!0;switch(t[0]){case"setDefaults":$.extend(a,t[1]);break;default:o=!1}return o?!0:this}return this}if("string"==typeof t[0]){var i="#*$~&";return this.each(function(){var o=$(this).data("tooltipster-ns"),e=o?$(this).data(o[0]):null;if(!e)throw new Error("You called Tooltipster's \""+t[0]+'" method on an uninitialized element');if("function"!=typeof e[t[0]])throw new Error('Unknown method .tooltipster("'+t[0]+'")');var n=e[t[0]](t[1],t[2]);return n!==e?(i=n,!1):void 0}),"#*$~&"!==i?i:this}var n=[],s=t[0]&&"undefined"!=typeof t[0].multiple,r=s&&t[0].multiple||!s&&a.multiple,l=t[0]&&"undefined"!=typeof t[0].debug,p=l&&t[0].debug||!l&&a.debug;return this.each(function(){var o=!1,i=$(this).data("tooltipster-ns"),s=null;i?r?o=!0:p&&console.log('Tooltipster: one or more tooltips are already attached to this element: ignoring. Use the "multiple" option to attach more tooltips.'):o=!0,o&&(s=new e(this,t[0]),i||(i=[]),i.push(s.namespace),$(this).data("tooltipster-ns",i),$(this).data(s.namespace,s)),n.push(s)}),r?n:this};var l=!!("ontouchstart"in t),p=!1;$("body").one("mousemove",function(){p=!0})}(jQuery,window,document);