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