File "tooltipster.min.js"

Full path: /home/kosmetik/public_html/wp-content/plugins/powerpack-elements/assets/lib/tooltipster/tooltipster.min.js
File size: 39.26 B
MIME-type: text/plain
Charset: utf-8

Download   Open   Edit   Advanced Editor   Back

!function(t){"function"==typeof define&&define.amd?define(["jquery"],t):"object"==typeof exports?module.exports=t(require("jquery")):t(jQuery)}(function(I){var c={ppclass:"",animation:"fade",animationIn:"",animationOut:"",animationDuration:350,content:null,contentAsHTML:!1,contentCloning:!1,debug:!0,delay:300,delayTouch:[300,500],functionInit:null,functionBefore:null,functionReady:null,functionAfter:null,functionFormat:null,IEmin:6,interactive:!1,multiple:!1,parent:null,plugins:["sideTip"],repositionOnScroll:!1,restoration:"none",selfDestruction:!0,theme:[],timer:0,trackerInterval:500,trackOrigin:!1,trackTooltip:!1,trigger:"hover",triggerClose:{click:!1,mouseleave:!1,originClick:!1,scroll:!1,tap:!1,touchleave:!1},triggerOpen:{click:!1,mouseenter:!1,tap:!1,touchstart:!1},updateAnimation:"rotate",zIndex:9999999},n="undefined"!=typeof window?window:null,E={hasTouchCapability:!(!n||!("ontouchstart"in n||n.DocumentTouch&&n.document instanceof n.DocumentTouch||n.navigator.maxTouchPoints)),hasTransitions:function(){if(!n)return!1;var t=(n.document.body||n.document.documentElement).style,i="transition",o=["Moz","Webkit","Khtml","O","ms"];if("string"==typeof t[i])return!0;i=i.charAt(0).toUpperCase()+i.substr(1);for(var e=0;e<o.length;e++)if("string"==typeof t[o[e]+i])return!0;return!1}(),IE:!1,semVer:"4.2.8",window:n},t=function(){this.__$emitterPrivate=I({}),this.__$emitterPublic=I({}),this.__instancesLatestArr=[],this.__plugins={},this._env=E};function i(t){this.$container,this.constraints=null,this.__$tooltip,this.__init(t)}function s(o,e){var n=!0;return I.each(o,function(t,i){if(e[t]===undefined||o[t]!==e[t])return n=!1}),n}function p(t){var i=t.attr("id"),o=i?E.window.document.getElementById(i):null;return o?o===t[0]:I.contains(E.window.document.body,t[0])}t.prototype={__bridge:function(t,o,e){var i,n;return o[e]||((i=function(){}).prototype=t,(n=new i).__init&&n.__init(o),I.each(t,function(t,i){0!=t.indexOf("__")&&(o[t]?c.debug&&console.log("The "+t+" method of the "+e+" plugin conflicts with another plugin or native methods"):(o[t]=function(){return n[t].apply(n,Array.prototype.slice.apply(arguments))},o[t].bridged=n))}),o[e]=n),this},__setWindow:function(t){return E.window=t,this},_getRuler:function(t){return new i(t)},_off:function(){return this.__$emitterPrivate.off.apply(this.__$emitterPrivate,Array.prototype.slice.apply(arguments)),this},_on:function(){return this.__$emitterPrivate.on.apply(this.__$emitterPrivate,Array.prototype.slice.apply(arguments)),this},_one:function(){return this.__$emitterPrivate.one.apply(this.__$emitterPrivate,Array.prototype.slice.apply(arguments)),this},_plugin:function(t){var i=this;if("string"==typeof t){var o=t,e=null;return 0<o.indexOf(".")?e=i.__plugins[o]:I.each(i.__plugins,function(t,i){if(i.name.substring(i.name.length-o.length-1)=="."+o)return e=i,!1}),e}if(t.name.indexOf(".")<0)throw new Error("Plugins must be namespaced");return(i.__plugins[t.name]=t).core&&i.__bridge(t.core,i,t.name),this},_trigger:function(){var t=Array.prototype.slice.apply(arguments);return"string"==typeof t[0]&&(t[0]={type:t[0]}),this.__$emitterPrivate.trigger.apply(this.__$emitterPrivate,t),this.__$emitterPublic.trigger.apply(this.__$emitterPublic,t),this},instances:function(t){var e=[];return I(t||".tooltipstered").each(function(){var o=I(this),t=o.data("tooltipster-ns");t&&I.each(t,function(t,i){e.push(o.data(i))})}),e},instancesLatest:function(){return this.__instancesLatestArr},off:function(){return this.__$emitterPublic.off.apply(this.__$emitterPublic,Array.prototype.slice.apply(arguments)),this},on:function(){return this.__$emitterPublic.on.apply(this.__$emitterPublic,Array.prototype.slice.apply(arguments)),this},one:function(){return this.__$emitterPublic.one.apply(this.__$emitterPublic,Array.prototype.slice.apply(arguments)),this},origins:function(t){return I((t?t+" ":"")+".tooltipstered").toArray()},setDefaults:function(t){return I.extend(c,t),this},triggerHandler:function(){return this.__$emitterPublic.triggerHandler.apply(this.__$emitterPublic,Array.prototype.slice.apply(arguments)),this}},I.pptooltipster=new t,I.PPTooltipster=function(t,i){this.__callbacks={close:[],open:[]},this.__closingTime,this.__Content,this.__contentBcr,this.__destroyed=!1,this.__$emitterPrivate=I({}),this.__$emitterPublic=I({}),this.__enabled=!0,this.__garbageCollector,this.__Geometry,this.__lastPosition,this.__namespace="tooltipster-"+Math.round(1e6*Math.random()),this.__options,this.__$originParents,this.__pointerIsOverOrigin=!1,this.__previousThemes=[],this.__state="closed",this.__timeouts={close:[],open:null},this.__touchEvents=[],this.__tracker=null,this._$origin,this._$tooltip,this.__init(t,i)},I.PPTooltipster.prototype={__init:function(t,i){var o,e,n,s=this;s._$origin=I(t),s.__options=I.extend(!0,{},c,i),s.__optionsFormat(),!E.IE||E.IE>=s.__options.IEmin?(o=null,s._$origin.data("tooltipster-initialTitle")===undefined&&((o=s._$origin.attr("title"))===undefined&&(o=null),s._$origin.data("tooltipster-initialTitle",o)),null!==s.__options.content?s.__contentSet(s.__options.content):((e=s._$origin.attr("data-tooltip-content"))&&(n=I(e)),n&&n[0]?s.__contentSet(n.first()):s.__contentSet(o)),s._$origin.removeAttr("title").addClass("tooltipstered"),s.__prepareOrigin(),s.__prepareGC(),I.each(s.__options.plugins,function(t,i){s._plug(i)}),E.hasTouchCapability&&I(E.window.document.body).on("touchmove."+s.__namespace+"-triggerOpen",function(t){s._touchRecordEvent(t)}),s._on("created",function(){s.__prepareTooltip()})._on("repositioned",function(t){s.__lastPosition=t.position})):s.__options.disabled=!0},__contentInsert:function(){var t=this,i=t._$tooltip.find(".tooltipster-content"),o=t.__Content;return t._trigger({type:"format",content:t.__Content,format:function(t){o=t}}),t.__options.functionFormat&&(o=t.__options.functionFormat.call(t,t,{origin:t._$origin[0]},t.__Content)),"string"!=typeof o||t.__options.contentAsHTML?i.empty().append(o):i.text(o),t},__contentSet:function(t){return t instanceof I&&this.__options.contentCloning&&(t=t.clone(!0)),this.__Content=t,this._trigger({type:"updated",content:t}),this},__destroyError:function(){throw new Error("This tooltip has been destroyed and cannot execute your method call.")},__geometry:function(){var t,i=this,o=i._$origin,e=i._$origin.is("area");e&&(t=i._$origin.parent().attr("name"),o=I('img[usemap="#'+t+'"]'));var n=o[0].getBoundingClientRect(),s=I(E.window.document),r=I(E.window),_=o,a={available:{document:null,window:null},document:{size:{height:s.height(),width:s.width()}},window:{scroll:{left:E.window.scrollX||E.window.document.documentElement.scrollLeft,top:E.window.scrollY||E.window.document.documentElement.scrollTop},size:{height:r.height(),width:r.width()}},origin:{fixedLineage:!1,offset:{},size:{height:n.bottom-n.top,width:n.right-n.left},usemapImage:e?o[0]:null,windowOffset:{bottom:n.bottom,left:n.left,right:n.right,top:n.top}}};if(e){var l=i._$origin.attr("shape"),p=i._$origin.attr("coords");if(p&&(p=p.split(","),I.map(p,function(t,i){p[i]=parseInt(t)})),"default"!=l)switch(l){case"circle":var c=p[0],h=p[1],d=p[2],u=h-d,g=c-d;a.origin.size.height=2*d,a.origin.size.width=a.origin.size.height,a.origin.windowOffset.left+=g,a.origin.windowOffset.top+=u;break;case"rect":var f=p[0],m=p[1],w=p[2],v=p[3];a.origin.size.height=v-m,a.origin.size.width=w-f,a.origin.windowOffset.left+=f,a.origin.windowOffset.top+=m;break;case"poly":for(var y=0,$=0,b=0,C=0,O="even",T=0;T<p.length;T++)var z=p[T],O="even"==O?(b<z&&(b=z,0===T&&(y=b)),z<y&&(y=z),"odd"):(C<z&&(C=z,1==T&&($=C)),z<$&&($=z),"even");a.origin.size.height=C-$,a.origin.size.width=b-y,a.origin.windowOffset.left+=y,a.origin.windowOffset.top+=$}}for(i._trigger({type:"geometry",edit:function(t){a.origin.size.height=t.height,a.origin.windowOffset.left=t.left,a.origin.windowOffset.top=t.top,a.origin.size.width=t.width},geometry:{height:a.origin.size.height,left:a.origin.windowOffset.left,top:a.origin.windowOffset.top,width:a.origin.size.width}}),a.origin.windowOffset.right=a.origin.windowOffset.left+a.origin.size.width,a.origin.windowOffset.bottom=a.origin.windowOffset.top+a.origin.size.height,a.origin.offset.left=a.origin.windowOffset.left+a.window.scroll.left,a.origin.offset.top=a.origin.windowOffset.top+a.window.scroll.top,a.origin.offset.bottom=a.origin.offset.top+a.origin.size.height,a.origin.offset.right=a.origin.offset.left+a.origin.size.width,a.available.document={bottom:{height:a.document.size.height-a.origin.offset.bottom,width:a.document.size.width},left:{height:a.document.size.height,width:a.origin.offset.left},right:{height:a.document.size.height,width:a.document.size.width-a.origin.offset.right},top:{height:a.origin.offset.top,width:a.document.size.width}},a.available.window={bottom:{height:Math.max(a.window.size.height-Math.max(a.origin.windowOffset.bottom,0),0),width:a.window.size.width},left:{height:a.window.size.height,width:Math.max(a.origin.windowOffset.left,0)},right:{height:a.window.size.height,width:Math.max(a.window.size.width-Math.max(a.origin.windowOffset.right,0),0)},top:{height:Math.max(a.origin.windowOffset.top,0),width:a.window.size.width}};"html"!=_[0].tagName.toLowerCase();){if("fixed"==_.css("position")){a.origin.fixedLineage=!0;break}_=_.parent()}return a},__optionsFormat:function(){return"number"==typeof this.__options.animationDuration&&(this.__options.animationDuration=[this.__options.animationDuration,this.__options.animationDuration]),"number"==typeof this.__options.delay&&(this.__options.delay=[this.__options.delay,this.__options.delay]),"number"==typeof this.__options.delayTouch&&(this.__options.delayTouch=[this.__options.delayTouch,this.__options.delayTouch]),"string"==typeof this.__options.theme&&(this.__options.theme=[this.__options.theme]),null===this.__options.parent?this.__options.parent=I(E.window.document.body):"string"==typeof this.__options.parent&&(this.__options.parent=I(this.__options.parent)),"hover"==this.__options.trigger?(this.__options.triggerOpen={mouseenter:!0,touchstart:!0},this.__options.triggerClose={mouseleave:!0,originClick:!0,touchleave:!0}):"click"==this.__options.trigger&&(this.__options.triggerOpen={click:!0,tap:!0},this.__options.triggerClose={click:!0,tap:!0}),this._trigger("options"),this},__prepareGC:function(){var t=this;return t.__options.selfDestruction?t.__garbageCollector=setInterval(function(){var o=(new Date).getTime();t.__touchEvents=I.grep(t.__touchEvents,function(t,i){return 6e4<o-t.time}),p(t._$origin)||t.close(function(){t.destroy()})},2e4):clearInterval(t.__garbageCollector),t},__prepareOrigin:function(){var t,i=this;return i._$origin.off("."+i.__namespace+"-triggerOpen"),E.hasTouchCapability&&i._$origin.on("touchstart."+i.__namespace+"-triggerOpen touchend."+i.__namespace+"-triggerOpen touchcancel."+i.__namespace+"-triggerOpen",function(t){i._touchRecordEvent(t)}),(i.__options.triggerOpen.click||i.__options.triggerOpen.tap&&E.hasTouchCapability)&&(t="",i.__options.triggerOpen.click&&(t+="click."+i.__namespace+"-triggerOpen "),i.__options.triggerOpen.tap&&E.hasTouchCapability&&(t+="touchend."+i.__namespace+"-triggerOpen"),i._$origin.on(t,function(t){i._touchIsMeaningfulEvent(t)&&i._open(t)})),(i.__options.triggerOpen.mouseenter||i.__options.triggerOpen.touchstart&&E.hasTouchCapability)&&(t="",i.__options.triggerOpen.mouseenter&&(t+="mouseenter."+i.__namespace+"-triggerOpen "),i.__options.triggerOpen.touchstart&&E.hasTouchCapability&&(t+="touchstart."+i.__namespace+"-triggerOpen"),i._$origin.on(t,function(t){!i._touchIsTouchEvent(t)&&i._touchIsEmulatedEvent(t)||(i.__pointerIsOverOrigin=!0,i._openShortly(t))})),(i.__options.triggerClose.mouseleave||i.__options.triggerClose.touchleave&&E.hasTouchCapability)&&(t="",i.__options.triggerClose.mouseleave&&(t+="mouseleave."+i.__namespace+"-triggerOpen "),i.__options.triggerClose.touchleave&&E.hasTouchCapability&&(t+="touchend."+i.__namespace+"-triggerOpen touchcancel."+i.__namespace+"-triggerOpen"),i._$origin.on(t,function(t){i._touchIsMeaningfulEvent(t)&&(i.__pointerIsOverOrigin=!1)})),i},__prepareTooltip:function(){var o=this,t=o.__options.interactive?"auto":"";return o._$tooltip.attr("id",o.__namespace).css({"pointer-events":t,zIndex:o.__options.zIndex}),I.each(o.__previousThemes,function(t,i){o._$tooltip.removeClass(i)}),I.each(o.__options.theme,function(t,i){o._$tooltip.addClass(i)}),o.__previousThemes=I.merge([],o.__options.theme),o},__scrollHandler:function(t){var r,_,i,o,e=this;return e.__options.triggerClose.scroll?e._close(t):p(e._$origin)&&p(e._$tooltip)&&(r=null,t.target===E.window.document?e.__Geometry.origin.fixedLineage||e.__options.repositionOnScroll&&e.reposition(t):(r=e.__geometry(),_=!1,"fixed"!=e._$origin.css("position")&&e.__$originParents.each(function(t,i){var o=I(i),e=o.css("overflow-x"),n=o.css("overflow-y");if("visible"!=e||"visible"!=n){var s=i.getBoundingClientRect();if("visible"!=e&&(r.origin.windowOffset.left<s.left||r.origin.windowOffset.right>s.right))return!(_=!0);if("visible"!=n&&(r.origin.windowOffset.top<s.top||r.origin.windowOffset.bottom>s.bottom))return!(_=!0)}if("fixed"==o.css("position"))return!1}),_?e._$tooltip.css("visibility","hidden"):(e._$tooltip.css("visibility","visible"),e.__options.repositionOnScroll?e.reposition(t):(i=r.origin.offset.left-e.__Geometry.origin.offset.left,o=r.origin.offset.top-e.__Geometry.origin.offset.top,e._$tooltip.css({left:e.__lastPosition.coord.left+i,top:e.__lastPosition.coord.top+o})))),e._trigger({type:"scroll",event:t,geo:r})),e},__stateSet:function(t){return this.__state=t,this._trigger({type:"state",state:t}),this},__timeoutsClear:function(){return clearTimeout(this.__timeouts.open),this.__timeouts.open=null,I.each(this.__timeouts.close,function(t,i){clearTimeout(i)}),this.__timeouts.close=[],this},__trackerStart:function(){var e=this,n=e._$tooltip.find(".tooltipster-content");return e.__options.trackTooltip&&(e.__contentBcr=n[0].getBoundingClientRect()),e.__tracker=setInterval(function(){var t,i,o;p(e._$origin)&&p(e._$tooltip)?(e.__options.trackOrigin&&(i=!1,s((t=e.__geometry()).origin.size,e.__Geometry.origin.size)&&(e.__Geometry.origin.fixedLineage?s(t.origin.windowOffset,e.__Geometry.origin.windowOffset)&&(i=!0):s(t.origin.offset,e.__Geometry.origin.offset)&&(i=!0)),i||(e.__options.triggerClose.mouseleave?e._close():e.reposition())),e.__options.trackTooltip&&((o=n[0].getBoundingClientRect()).height===e.__contentBcr.height&&o.width===e.__contentBcr.width||(e.reposition(),e.__contentBcr=o))):e._close()},e.__options.trackerInterval),e},_close:function(o,t,i){var e,n,s,r,_=this,a=!0;return _._trigger({type:"close",event:o,stop:function(){a=!1}}),(a||i)&&(t&&_.__callbacks.close.push(t),_.__callbacks.open=[],_.__timeoutsClear(),e=function(){I.each(_.__callbacks.close,function(t,i){i.call(_,_,{event:o,origin:_._$origin[0]})}),_.__callbacks.close=[]},"closed"!=_.__state?(n=!0,s=(new Date).getTime()+_.__options.animationDuration[1],"disappearing"==_.__state&&s>_.__closingTime&&0<_.__options.animationDuration[1]&&(n=!1),n&&(_.__closingTime=s,"disappearing"!=_.__state&&_.__stateSet("disappearing"),r=function(){clearInterval(_.__tracker),_._trigger({type:"closing",event:o}),_._$tooltip.off("."+_.__namespace+"-triggerClose").removeClass("tooltipster-dying"),""!=_.__options.animationOut&&_._$tooltip.removeClass("animated "+_.__options.animationOut),I(E.window).off("."+_.__namespace+"-triggerClose"),_.__$originParents.each(function(t,i){I(i).off("scroll."+_.__namespace+"-triggerClose")}),_.__$originParents=null,I(E.window.document.body).off("."+_.__namespace+"-triggerClose"),_._$origin.off("."+_.__namespace+"-triggerClose"),_._off("dismissable"),_.__stateSet("closed"),_._trigger({type:"after",event:o}),_.__options.functionAfter&&_.__options.functionAfter.call(_,_,{event:o,origin:_._$origin[0]}),e()},E.hasTransitions?(_._$tooltip.css({"-moz-animation-duration":_.__options.animationDuration[1]+"ms","-ms-animation-duration":_.__options.animationDuration[1]+"ms","-o-animation-duration":_.__options.animationDuration[1]+"ms","-webkit-animation-duration":_.__options.animationDuration[1]+"ms","animation-duration":_.__options.animationDuration[1]+"ms","transition-duration":_.__options.animationDuration[1]+"ms"}),_._$tooltip.clearQueue().removeClass("tooltipster-show").addClass("tooltipster-dying"),""!=_.__options.animationIn&&_._$tooltip.removeClass("animated "+_.__options.animationIn),""!=_.__options.animationOut&&_._$tooltip.addClass("animated "+_.__options.animationOut),0<_.__options.animationDuration[1]&&_._$tooltip.delay(_.__options.animationDuration[1]),_._$tooltip.queue(r)):_._$tooltip.stop().fadeOut(_.__options.animationDuration[1],r))):e()),_},_off:function(){return this.__$emitterPrivate.off.apply(this.__$emitterPrivate,Array.prototype.slice.apply(arguments)),this},_on:function(){return this.__$emitterPrivate.on.apply(this.__$emitterPrivate,Array.prototype.slice.apply(arguments)),this},_one:function(){return this.__$emitterPrivate.one.apply(this.__$emitterPrivate,Array.prototype.slice.apply(arguments)),this},_open:function(t,i){var o,e,n,s,r,_,a,l=this;return l.__destroying||p(l._$origin)&&l.__enabled&&(o=!0,"closed"==l.__state&&(l._trigger({type:"before",event:t,stop:function(){o=!1}}),o&&l.__options.functionBefore&&(o=l.__options.functionBefore.call(l,l,{event:t,origin:l._$origin[0]}))),!1!==o&&null!==l.__Content&&(i&&l.__callbacks.open.push(i),l.__callbacks.close=[],l.__timeoutsClear(),n=function(){"stable"!=l.__state&&l.__stateSet("stable"),I.each(l.__callbacks.open,function(t,i){i.call(l,l,{origin:l._$origin[0],tooltip:l._$tooltip[0]})}),l.__callbacks.open=[]},"closed"!==l.__state?(e=0,"disappearing"===l.__state?(l.__stateSet("appearing"),E.hasTransitions?(l._$tooltip.clearQueue().removeClass("tooltipster-dying").addClass("tooltipster-show"),""!=l.__options.animationOut&&l._$tooltip.removeClass("animated "+l.__options.animationOut),""!=l.__options.animationIn&&l._$tooltip.addClass("animated "+l.__options.animationIn),0<l.__options.animationDuration[0]&&l._$tooltip.delay(l.__options.animationDuration[0]),l._$tooltip.queue(n)):l._$tooltip.stop().fadeIn(n)):"stable"==l.__state&&n()):(l.__stateSet("appearing"),e=l.__options.animationDuration[0],l.__contentInsert(),l.reposition(t,!0),E.hasTransitions?(l._$tooltip.addClass("tooltipster-"+l.__options.animation).addClass("tooltipster-initial").css({"-moz-animation-duration":l.__options.animationDuration[0]+"ms","-ms-animation-duration":l.__options.animationDuration[0]+"ms","-o-animation-duration":l.__options.animationDuration[0]+"ms","-webkit-animation-duration":l.__options.animationDuration[0]+"ms","animation-duration":l.__options.animationDuration[0]+"ms","transition-duration":l.__options.animationDuration[0]+"ms"}),setTimeout(function(){"closed"!=l.__state&&(l._$tooltip.addClass("tooltipster-show").removeClass("tooltipster-initial"),""!=l.__options.animationIn&&l._$tooltip.addClass("animated "+l.__options.animationIn),0<l.__options.animationDuration[0]&&l._$tooltip.delay(l.__options.animationDuration[0]),l._$tooltip.queue(n))},0)):l._$tooltip.css("display","none").fadeIn(l.__options.animationDuration[0],n),l.__trackerStart(),I(E.window).on("resize."+l.__namespace+"-triggerClose",function(t){var i=I(document.activeElement);(i.is("input")||i.is("textarea"))&&I.contains(l._$tooltip[0],i[0])||l.reposition(t)}).on("scroll."+l.__namespace+"-triggerClose",function(t){l.__scrollHandler(t)}),l.__$originParents=l._$origin.parents(),l.__$originParents.each(function(t,i){I(i).on("scroll."+l.__namespace+"-triggerClose",function(t){l.__scrollHandler(t)})}),(l.__options.triggerClose.mouseleave||l.__options.triggerClose.touchleave&&E.hasTouchCapability)&&(l._on("dismissable",function(t){t.dismissable?t.delay?(a=setTimeout(function(){l._close(t.event)},t.delay),l.__timeouts.close.push(a)):l._close(t):clearTimeout(a)}),s=l._$origin,_=r="",a=null,l.__options.interactive&&(s=s.add(l._$tooltip)),l.__options.triggerClose.mouseleave&&(r+="mouseenter."+l.__namespace+"-triggerClose ",_+="mouseleave."+l.__namespace+"-triggerClose "),l.__options.triggerClose.touchleave&&E.hasTouchCapability&&(r+="touchstart."+l.__namespace+"-triggerClose",_+="touchend."+l.__namespace+"-triggerClose touchcancel."+l.__namespace+"-triggerClose"),s.on(_,function(t){var i;!l._touchIsTouchEvent(t)&&l._touchIsEmulatedEvent(t)||(i="mouseleave"==t.type?l.__options.delay:l.__options.delayTouch,l._trigger({delay:i[1],dismissable:!0,event:t,type:"dismissable"}))}).on(r,function(t){!l._touchIsTouchEvent(t)&&l._touchIsEmulatedEvent(t)||l._trigger({dismissable:!1,event:t,type:"dismissable"})})),l.__options.triggerClose.originClick&&l._$origin.on("click."+l.__namespace+"-triggerClose",function(t){l._touchIsTouchEvent(t)||l._touchIsEmulatedEvent(t)||l._close(t)}),(l.__options.triggerClose.click||l.__options.triggerClose.tap&&E.hasTouchCapability)&&setTimeout(function(){var t,i;"closed"!=l.__state&&(t="",i=I(E.window.document.body),l.__options.triggerClose.click&&(t+="click."+l.__namespace+"-triggerClose "),l.__options.triggerClose.tap&&E.hasTouchCapability&&(t+="touchend."+l.__namespace+"-triggerClose"),i.on(t,function(t){l._touchIsMeaningfulEvent(t)&&(l._touchRecordEvent(t),l.__options.interactive&&I.contains(l._$tooltip[0],t.target)||l._close(t))}),l.__options.triggerClose.tap&&E.hasTouchCapability&&i.on("touchstart."+l.__namespace+"-triggerClose",function(t){l._touchRecordEvent(t)}))},0),l._trigger("ready"),l.__options.functionReady&&l.__options.functionReady.call(l,l,{origin:l._$origin[0],tooltip:l._$tooltip[0]})),0<l.__options.timer&&(a=setTimeout(function(){l._close()},l.__options.timer+e),l.__timeouts.close.push(a)))),l},_openShortly:function(t){var i,o=this,e=!0;return"stable"!=o.__state&&"appearing"!=o.__state&&(o.__timeouts.open||(o._trigger({type:"start",event:t,stop:function(){e=!1}}),e&&((i=0==t.type.indexOf("touch")?o.__options.delayTouch:o.__options.delay)[0]?o.__timeouts.open=setTimeout(function(){o.__timeouts.open=null,o.__pointerIsOverOrigin&&o._touchIsMeaningfulEvent(t)?(o._trigger("startend"),o._open(t)):o._trigger("startcancel")},i[0]):(o._trigger("startend"),o._open(t))))),o},_optionsExtract:function(t,i){var e=this,o=I.extend(!0,{},i),n=e.__options[t];return n||(n={},I.each(i,function(t,i){var o=e.__options[t];o!==undefined&&(n[t]=o)})),I.each(o,function(t,i){n[t]!==undefined&&("object"!=typeof i||i instanceof Array||null==i||"object"!=typeof n[t]||n[t]instanceof Array||null==n[t]?o[t]=n[t]:I.extend(o[t],n[t]))}),o},_plug:function(t){var i=I.pptooltipster._plugin(t);if(!i)throw new Error('The "'+t+'" plugin is not defined');return i.instance&&I.pptooltipster.__bridge(i.instance,this,i.name),this},_touchIsEmulatedEvent:function(t){for(var i=!1,o=(new Date).getTime(),e=this.__touchEvents.length-1;0<=e;e--){var n=this.__touchEvents[e];if(!(o-n.time<500))break;n.target===t.target&&(i=!0)}return i},_touchIsMeaningfulEvent:function(t){return this._touchIsTouchEvent(t)&&!this._touchSwiped(t.target)||!this._touchIsTouchEvent(t)&&!this._touchIsEmulatedEvent(t)},_touchIsTouchEvent:function(t){return 0==t.type.indexOf("touch")},_touchRecordEvent:function(t){return this._touchIsTouchEvent(t)&&(t.time=(new Date).getTime(),this.__touchEvents.push(t)),this},_touchSwiped:function(t){for(var i=!1,o=this.__touchEvents.length-1;0<=o;o--){var e=this.__touchEvents[o];if("touchmove"==e.type){i=!0;break}if("touchstart"==e.type&&t===e.target)break}return i},_trigger:function(){var t=Array.prototype.slice.apply(arguments);return"string"==typeof t[0]&&(t[0]={type:t[0]}),t[0].instance=this,t[0].origin=this._$origin?this._$origin[0]:null,t[0].tooltip=this._$tooltip?this._$tooltip[0]:null,this.__$emitterPrivate.trigger.apply(this.__$emitterPrivate,t),I.pptooltipster._trigger.apply(I.pptooltipster,t),this.__$emitterPublic.trigger.apply(this.__$emitterPublic,t),this},_unplug:function(o){var t,e=this;return e[o]&&((t=I.pptooltipster._plugin(o)).instance&&I.each(t.instance,function(t,i){e[t]&&e[t].bridged===e[o]&&delete e[t]}),e[o].__destroy&&e[o].__destroy(),delete e[o]),e},close:function(t){return this.__destroyed?this.__destroyError():this._close(null,t),this},content:function(t){var i,o=this;return t===undefined?o.__Content:(o.__destroyed?o.__destroyError():(o.__contentSet(t),null!==o.__Content?"closed"!==o.__state&&(o.__contentInsert(),o.reposition(),o.__options.updateAnimation&&(E.hasTransitions?(i=o.__options.updateAnimation,o._$tooltip.addClass("tooltipster-update-"+i),setTimeout(function(){"closed"!=o.__state&&o._$tooltip.removeClass("tooltipster-update-"+i)},1e3)):o._$tooltip.fadeTo(200,.5,function(){"closed"!=o.__state&&o._$tooltip.fadeTo(200,1)}))):o._close()),o)},destroy:function(){var t,i,o=this;return o.__destroyed?o.__destroyError():("closed"!=o.__state?o.option("animationDuration",0)._close(null,null,!0):o.__timeoutsClear(),o._trigger("destroy"),o.__destroyed=!0,o._$origin.removeData(o.__namespace).off("."+o.__namespace+"-triggerOpen"),I(E.window.document.body).off("."+o.__namespace+"-triggerOpen"),(t=o._$origin.data("tooltipster-ns"))&&(1===t.length?(i=null,"previous"==o.__options.restoration?i=o._$origin.data("tooltipster-initialTitle"):"current"==o.__options.restoration&&(i="string"==typeof o.__Content?o.__Content:I("<div></div>").append(o.__Content).html()),i&&o._$origin.attr("title",i),o._$origin.removeClass("tooltipstered"),o._$origin.removeData("tooltipster-ns").removeData("tooltipster-initialTitle")):(t=I.grep(t,function(t,i){return t!==o.__namespace}),o._$origin.data("tooltipster-ns",t))),o._trigger("destroyed"),o._off(),o.off(),o.__Content=null,o.__$emitterPrivate=null,o.__$emitterPublic=null,o.__options.parent=null,o._$origin=null,o._$tooltip=null,I.pptooltipster.__instancesLatestArr=I.grep(I.pptooltipster.__instancesLatestArr,function(t,i){return o!==t}),clearInterval(o.__garbageCollector)),o},disable:function(){return this.__destroyed?this.__destroyError():(this._close(),this.__enabled=!1),this},elementOrigin:function(){if(!this.__destroyed)return this._$origin[0];this.__destroyError()},elementTooltip:function(){return this._$tooltip?this._$tooltip[0]:null},enable:function(){return this.__enabled=!0,this},hide:function(t){return this.close(t)},instance:function(){return this},off:function(){return this.__destroyed||this.__$emitterPublic.off.apply(this.__$emitterPublic,Array.prototype.slice.apply(arguments)),this},on:function(){return this.__destroyed?this.__destroyError():this.__$emitterPublic.on.apply(this.__$emitterPublic,Array.prototype.slice.apply(arguments)),this},one:function(){return this.__destroyed?this.__destroyError():this.__$emitterPublic.one.apply(this.__$emitterPublic,Array.prototype.slice.apply(arguments)),this},open:function(t){return this.__destroyed?this.__destroyError():this._open(null,t),this},option:function(t,i){return i===undefined?this.__options[t]:(this.__destroyed?this.__destroyError():(this.__options[t]=i,this.__optionsFormat(),0<=I.inArray(t,["trigger","triggerClose","triggerOpen"])&&this.__prepareOrigin(),"selfDestruction"===t&&this.__prepareGC()),this)},reposition:function(t,i){var o=this;return o.__destroyed?o.__destroyError():"closed"!=o.__state&&p(o._$origin)&&(i||p(o._$tooltip))&&(i||o._$tooltip.detach(),o.__Geometry=o.__geometry(),o._trigger({type:"reposition",event:t,helper:{geo:o.__Geometry}})),o},show:function(t){return this.open(t)},status:function(){return{destroyed:this.__destroyed,enabled:this.__enabled,open:"closed"!==this.__state,state:this.__state}},triggerHandler:function(){return this.__destroyed?this.__destroyError():this.__$emitterPublic.triggerHandler.apply(this.__$emitterPublic,Array.prototype.slice.apply(arguments)),this}},I.fn.pptooltipster=function(){var n=Array.prototype.slice.apply(arguments),e="You are using a single HTML element as content for several tooltips. You probably want to set the contentCloning option to TRUE.";if(0===this.length)return this;if("string"==typeof n[0]){var s="#*$~&";return this.each(function(){var t=I(this).data("tooltipster-ns"),i=t?I(this).data(t[0]):null;if(!i)throw new Error("You called PPTooltipster's \""+n[0]+'" method on an uninitialized element');if("function"!=typeof i[n[0]])throw new Error('Unknown method "'+n[0]+'"');1<this.length&&"content"==n[0]&&(n[1]instanceof I||"object"==typeof n[1]&&null!=n[1]&&n[1].tagName)&&!i.__options.contentCloning&&i.__options.debug&&console.log(e);var o=i[n[0]](n[1],n[2]);if(o!==i||"instance"===n[0])return s=o,!1}),"#*$~&"!==s?s:this}I.pptooltipster.__instancesLatestArr=[];var t=n[0]&&n[0].multiple!==undefined,r=t&&n[0].multiple||!t&&c.multiple,i=n[0]&&n[0].content!==undefined,o=i&&n[0].content||!i&&c.content,_=n[0]&&n[0].contentCloning!==undefined,a=_&&n[0].contentCloning||!_&&c.contentCloning,l=n[0]&&n[0].debug!==undefined,p=l&&n[0].debug||!l&&c.debug;return 1<this.length&&(o instanceof I||"object"==typeof o&&null!=o&&o.tagName)&&!a&&p&&console.log(e),this.each(function(){var t=!1,i=I(this),o=i.data("tooltipster-ns"),e=null;!o||r?t=!0:p&&(console.log("PPTooltipster: one or more tooltips are already attached to the element below. Ignoring."),console.log(this)),t&&(e=new I.PPTooltipster(this,n[0]),(o=o||[]).push(e.__namespace),i.data("tooltipster-ns",o),i.data(e.__namespace,e),e.__options.functionInit&&e.__options.functionInit.call(e,e,{origin:this}),e._trigger("init")),I.pptooltipster.__instancesLatestArr.push(e)}),this},i.prototype={__init:function(t){this.__$tooltip=t,this.__$tooltip.css({left:0,overflow:"hidden",position:"absolute",top:0}).find(".tooltipster-content").css("overflow","auto"),this.$container=I('<div class="tooltipster-ruler"></div>').append(this.__$tooltip).appendTo(E.window.document.body)},__forceRedraw:function(){var t=this.__$tooltip.parent();this.__$tooltip.detach(),this.__$tooltip.appendTo(t)},constrain:function(t,i){return this.constraints={width:t,height:i},this.__$tooltip.css({display:"block",height:"",overflow:"auto",width:t}),this},destroy:function(){this.__$tooltip.detach().find(".tooltipster-content").css({display:"",overflow:""}),this.$container.remove()},free:function(){return this.constraints=null,this.__$tooltip.css({display:"",height:"",overflow:"visible",width:""}),this},measure:function(){this.__forceRedraw();var t,i,o,e,n=this.__$tooltip[0].getBoundingClientRect(),s={size:{height:n.height||n.bottom-n.top,width:n.width||n.right-n.left}};return this.constraints&&(t=this.__$tooltip.find(".tooltipster-content"),i=this.__$tooltip.outerHeight(),o=t[0].getBoundingClientRect(),e={height:i<=this.constraints.height,width:n.width<=this.constraints.width&&o.width>=t[0].scrollWidth-1},s.fits=e.height&&e.width),E.IE&&E.IE<=11&&s.size.width!==E.window.document.documentElement.clientWidth&&(s.size.width=Math.ceil(s.size.width)+1),s}};var o=navigator.userAgent.toLowerCase();-1!=o.indexOf("msie")?E.IE=parseInt(o.split("msie")[1]):-1!==o.toLowerCase().indexOf("trident")&&-1!==o.indexOf(" rv:11")?E.IE=11:-1!=o.toLowerCase().indexOf("edge/")&&(E.IE=parseInt(o.toLowerCase().split("edge/")[1]));var e="tooltipster.sideTip";return I.pptooltipster._plugin({name:e,instance:{__defaults:function(){return{ppclass:"",arrow:!0,distance:6,functionPosition:null,maxWidth:null,minIntersection:16,minWidth:0,position:null,side:"top",viewportAware:!0}},__init:function(t){var i=this;i.__instance=t,i.__namespace="tooltipster-sideTip-"+Math.round(1e6*Math.random()),i.__previousState="closed",i.__options,i.__optionsFormat(),i.__instance._on("state."+i.__namespace,function(t){"closed"==t.state?i.__close():"appearing"==t.state&&"closed"==i.__previousState&&i.__create(),i.__previousState=t.state}),i.__instance._on("options."+i.__namespace,function(){i.__optionsFormat()}),i.__instance._on("reposition."+i.__namespace,function(t){i.__reposition(t.event,t.helper)})},__close:function(){this.__instance.content()instanceof I&&this.__instance.content().detach(),this.__instance._$tooltip.remove(),this.__instance._$tooltip=null},__create:function(){var t=I('<div class="tooltipster-base tooltipster-sidetip '+this.__options.ppclass+'"><div class="tooltipster-box"><div class="tooltipster-content"></div></div><div class="tooltipster-arrow"><div class="tooltipster-arrow-uncropped"><div class="tooltipster-arrow-border"></div><div class="tooltipster-arrow-background"></div></div></div></div>');this.__options.arrow||t.find(".tooltipster-box").css("margin",0).end().find(".tooltipster-arrow").hide(),this.__options.minWidth&&t.css("min-width",this.__options.minWidth+"px"),this.__options.maxWidth&&t.css("max-width",this.__options.maxWidth+"px"),this.__instance._$tooltip=t,this.__instance._trigger("created")},__destroy:function(){this.__instance._off("."+self.__namespace)},__optionsFormat:function(){var t=this;t.__options=t.__instance._optionsExtract(e,t.__defaults()),t.__options.position&&(t.__options.side=t.__options.position),"object"!=typeof t.__options.distance&&(t.__options.distance=[t.__options.distance]),t.__options.distance.length<4&&(t.__options.distance[1]===undefined&&(t.__options.distance[1]=t.__options.distance[0]),t.__options.distance[2]===undefined&&(t.__options.distance[2]=t.__options.distance[0]),t.__options.distance[3]===undefined&&(t.__options.distance[3]=t.__options.distance[1])),t.__options.distance={top:t.__options.distance[0],right:t.__options.distance[1],bottom:t.__options.distance[2],left:t.__options.distance[3]},"string"==typeof t.__options.side&&(t.__options.side=[t.__options.side,{top:"bottom",right:"left",bottom:"top",left:"right"}[t.__options.side]],"left"==t.__options.side[0]||"right"==t.__options.side[0]?t.__options.side.push("top","bottom"):t.__options.side.push("right","left")),6===I.pptooltipster._env.IE&&!0!==t.__options.arrow&&(t.__options.arrow=!1)},__reposition:function(a,l){var i,p=this,c=p.__targetFind(l),h=[];p.__instance._$tooltip.detach();var o=p.__instance._$tooltip.clone(),d=I.pptooltipster._getRuler(o),u=!1,t=p.__instance.option("animation");switch(t&&o.removeClass("tooltipster-"+t),I.each(["window","document"],function(t,n){var s=null;if(p.__instance._trigger({container:n,helper:l,satisfied:u,takeTest:function(t){s=t},results:h,type:"positionTest"}),1==s||0!=s&&0==u&&("window"!=n||p.__options.viewportAware))for(t=0;t<p.__options.side.length;t++){var r={horizontal:0,vertical:0},_=p.__options.side[t];"top"==_||"bottom"==_?r.vertical=p.__options.distance[_]:r.horizontal=p.__options.distance[_],p.__sideChange(o,_),I.each(["natural","constrained"],function(t,i){if(s=null,p.__instance._trigger({container:n,event:a,helper:l,mode:i,results:h,satisfied:u,side:_,takeTest:function(t){s=t},type:"positionTest"}),1==s||0!=s&&0==u){var o={container:n,distance:r,fits:null,mode:i,outerSize:null,side:_,size:null,target:c[_],whole:null},e=("natural"==i?d.free():d.constrain(l.geo.available[n][_].width-r.horizontal,l.geo.available[n][_].height-r.vertical)).measure();if(o.size=e.size,o.outerSize={height:e.size.height+r.vertical,width:e.size.width+r.horizontal},"natural"==i?l.geo.available[n][_].width>=o.outerSize.width&&l.geo.available[n][_].height>=o.outerSize.height?o.fits=!0:o.fits=!1:o.fits=e.fits,"window"==n&&(o.fits?o.whole="top"==_||"bottom"==_?l.geo.origin.windowOffset.right>=p.__options.minIntersection&&l.geo.window.size.width-l.geo.origin.windowOffset.left>=p.__options.minIntersection:l.geo.origin.windowOffset.bottom>=p.__options.minIntersection&&l.geo.window.size.height-l.geo.origin.windowOffset.top>=p.__options.minIntersection:o.whole=!1),h.push(o),o.whole)u=!0;else if("natural"==o.mode&&(o.fits||o.size.width<=l.geo.available[n][_].width))return!1}})}}),p.__instance._trigger({edit:function(t){h=t},event:a,helper:l,results:h,type:"positionTested"}),h.sort(function(t,i){return t.whole&&!i.whole?-1:!t.whole&&i.whole?1:t.whole&&i.whole?(o=p.__options.side.indexOf(t.side))<(e=p.__options.side.indexOf(i.side))||!(e<o)&&"natural"==t.mode?-1:1:t.fits&&!i.fits?-1:!t.fits&&i.fits?1:t.fits&&i.fits?(o=p.__options.side.indexOf(t.side))<(e=p.__options.side.indexOf(i.side))||!(e<o)&&"natural"==t.mode?-1:1:"document"==t.container&&"bottom"==t.side&&"natural"==t.mode?-1:1;var o,e}),(i=h[0]).coord={},i.side){case"left":case"right":i.coord.top=Math.floor(i.target-i.size.height/2);break;case"bottom":case"top":i.coord.left=Math.floor(i.target-i.size.width/2)}switch(i.side){case"left":i.coord.left=l.geo.origin.windowOffset.left-i.outerSize.width;break;case"right":i.coord.left=l.geo.origin.windowOffset.right+i.distance.horizontal;break;case"top":i.coord.top=l.geo.origin.windowOffset.top-i.outerSize.height;break;case"bottom":i.coord.top=l.geo.origin.windowOffset.bottom+i.distance.vertical}"window"==i.container?"top"==i.side||"bottom"==i.side?i.coord.left<0?0<=l.geo.origin.windowOffset.right-this.__options.minIntersection?i.coord.left=0:i.coord.left=l.geo.origin.windowOffset.right-this.__options.minIntersection-1:i.coord.left>l.geo.window.size.width-i.size.width&&(l.geo.origin.windowOffset.left+this.__options.minIntersection<=l.geo.window.size.width?i.coord.left=l.geo.window.size.width-i.size.width:i.coord.left=l.geo.origin.windowOffset.left+this.__options.minIntersection+1-i.size.width):i.coord.top<0?0<=l.geo.origin.windowOffset.bottom-this.__options.minIntersection?i.coord.top=0:i.coord.top=l.geo.origin.windowOffset.bottom-this.__options.minIntersection-1:i.coord.top>l.geo.window.size.height-i.size.height&&(l.geo.origin.windowOffset.top+this.__options.minIntersection<=l.geo.window.size.height?i.coord.top=l.geo.window.size.height-i.size.height:i.coord.top=l.geo.origin.windowOffset.top+this.__options.minIntersection+1-i.size.height):(i.coord.left>l.geo.window.size.width-i.size.width&&(i.coord.left=l.geo.window.size.width-i.size.width),i.coord.left<0&&(i.coord.left=0)),p.__sideChange(o,i.side),l.tooltipClone=o[0],l.tooltipParent=p.__instance.option("parent").parent[0],l.mode=i.mode,l.whole=i.whole,l.origin=p.__instance._$origin[0],l.tooltip=p.__instance._$tooltip[0],delete i.container,delete i.fits,delete i.mode,delete i.outerSize,delete i.whole,i.distance=i.distance.horizontal||i.distance.vertical;var e,n,s,r,_=I.extend(!0,{},i);p.__instance._trigger({edit:function(t){i=t},event:a,helper:l,position:_,type:"position"}),!p.__options.functionPosition||(e=p.__options.functionPosition.call(p,p.__instance,l,_))&&(i=e),d.destroy(),s="top"==i.side||"bottom"==i.side?(n={prop:"left",val:i.target-i.coord.left},i.size.width-this.__options.minIntersection):(n={prop:"top",val:i.target-i.coord.top},i.size.height-this.__options.minIntersection),n.val<this.__options.minIntersection?n.val=this.__options.minIntersection:n.val>s&&(n.val=s),r=l.geo.origin.fixedLineage?l.geo.origin.windowOffset:{left:l.geo.origin.windowOffset.left+l.geo.window.scroll.left,top:l.geo.origin.windowOffset.top+l.geo.window.scroll.top},i.coord={left:r.left+(i.coord.left-l.geo.origin.windowOffset.left),top:r.top+(i.coord.top-l.geo.origin.windowOffset.top)},p.__sideChange(p.__instance._$tooltip,i.side),l.geo.origin.fixedLineage?p.__instance._$tooltip.css("position","fixed"):p.__instance._$tooltip.css("position",""),p.__instance._$tooltip.css({left:i.coord.left,top:i.coord.top,height:i.size.height,width:i.size.width}).find(".tooltipster-arrow").css({left:"",top:""}).css(n.prop,n.val),p.__instance._$tooltip.appendTo(p.__instance.option("parent")),p.__instance._trigger({type:"repositioned",event:a,position:i})},__sideChange:function(t,i){t.removeClass("tooltipster-bottom").removeClass("tooltipster-left").removeClass("tooltipster-right").removeClass("tooltipster-top").addClass("tooltipster-"+i)},__targetFind:function(t){var i,o={},e=this.__instance._$origin[0].getClientRects();return 1<e.length&&1==this.__instance._$origin.css("opacity")&&(this.__instance._$origin.css("opacity",.99),e=this.__instance._$origin[0].getClientRects(),this.__instance._$origin.css("opacity",1)),e.length<2?(o.top=Math.floor(t.geo.origin.windowOffset.left+t.geo.origin.size.width/2),o.bottom=o.top,o.left=Math.floor(t.geo.origin.windowOffset.top+t.geo.origin.size.height/2),o.right=o.left):(i=e[0],o.top=Math.floor(i.left+(i.right-i.left)/2),i=2<e.length?e[Math.ceil(e.length/2)-1]:e[0],o.right=Math.floor(i.top+(i.bottom-i.top)/2),i=e[e.length-1],o.bottom=Math.floor(i.left+(i.right-i.left)/2),i=2<e.length?e[Math.ceil((e.length+1)/2)-1]:e[e.length-1],o.left=Math.floor(i.top+(i.bottom-i.top)/2)),o}}}),I});