/usr/share/javascript/qtip2/basic/jquery.qtip.min.js is in libjs-qtip2 3.0.3~dfsg1-2.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 | (function(b,a,c){(function(d){if(typeof define==="function"&&define.amd){define(["jquery"],d)}else{if(jQuery&&!jQuery.fn.qtip){d(jQuery)}}}(function(J){var A=true,af=false,E=null,e="x",d="y",i="width",I="height",K="top",y="left",H="bottom",ag="right",G="center",q="flip",T="flipinvert",N="shift",W,R,n,f,B={},j="qtip",Q="data-hasqtip",M="data-qtip-id",p=["ui-widget","ui-tooltip"],l="."+j,w="click dblclick mousedown mouseup mousemove mouseleave mouseenter".split(" "),Z=j+"-fixed",h=j+"-default",v=j+"-focus",aa=j+"-hover",O=j+"-disabled",u="_replacedByqTip",o="oldtitle",ad,F={ie:(function(){var C,X;for(C=4,X=a.createElement("div");(X.innerHTML="<!--[if gt IE "+C+"]><i></i><![endif]-->")&&X.getElementsByTagName("i")[0];C+=1){}return C>4?C:NaN})(),iOS:parseFloat((""+(/CPU.*OS ([0-9_]{1,5})|(CPU like).*AppleWebKit.*Mobile/i.exec(navigator.userAgent)||[0,""])[1]).replace("undefined","3_2").replace("_",".").replace("_",""))||af};function g(Y,X,ah,C){this.id=ah;this.target=Y;this.tooltip=E;this.elements={target:Y};this._id=j+"-"+ah;this.timers={img:{}};this.options=X;this.plugins={};this.cache={event:{},target:J(),disabled:af,attr:C,onTooltip:af,lastClass:""};this.rendered=this.destroyed=this.disabled=this.waiting=this.hiddenDuringWait=this.positioning=this.triggering=af}R=g.prototype;R._when=function(C){return J.when.apply(J,C)};R.render=function(ai){if(this.rendered||this.destroyed){return this}var al=this,an=this.options,X=this.cache,C=this.elements,ak=an.content.text,ah=an.content.title,Y=an.content.button,aj=an.position,am=[];J.attr(this.target[0],"aria-describedby",this._id);X.posClass=this._createPosClass((this.position={my:aj.my,at:aj.at}).my);this.tooltip=C.tooltip=J("<div/>",{id:this._id,"class":[j,h,an.style.classes,X.posClass].join(" "),width:an.style.width||"",height:an.style.height||"",tracking:aj.target==="mouse"&&aj.adjust.mouse,role:"alert","aria-live":"polite","aria-atomic":af,"aria-describedby":this._id+"-content","aria-hidden":A}).toggleClass(O,this.disabled).attr(M,this.id).data(j,this).appendTo(aj.container).append(C.content=J("<div />",{"class":j+"-content",id:this._id+"-content","aria-atomic":A}));this.rendered=-1;this.positioning=A;if(ah){this._createTitle();if(!J.isFunction(ah)){am.push(this._updateTitle(ah,af))}}if(Y){this._createButton()}if(!J.isFunction(ak)){am.push(this._updateContent(ak,af))}this.rendered=A;this._setWidget();J.each(B,function(ap){var ao;if(this.initialize==="render"&&(ao=this(al))){al.plugins[ap]=ao}});this._unassignEvents();this._assignEvents();this._when(am).then(function(){al._trigger("render");al.positioning=af;if(!al.hiddenDuringWait&&(an.show.ready||ai)){al.toggle(A,X.event,af)}al.hiddenDuringWait=af});W.api[this.id]=this;return this};R.destroy=function(C){if(this.destroyed){return this.target}function X(){if(this.destroyed){return}this.destroyed=A;var Y=this.target,ah=Y.attr(o),ai;if(this.rendered){this.tooltip.stop(1,0).find("*").remove().end().remove()}J.each(this.plugins,function(){this.destroy&&this.destroy()});for(ai in this.timers){if(this.timers.hasOwnProperty(ai)){clearTimeout(this.timers[ai])}}Y.removeData(j).removeAttr(M).removeAttr(Q).removeAttr("aria-describedby");if(this.options.suppress&&ah){Y.attr("title",ah).removeAttr(o)}this._unassignEvents();this.options=this.elements=this.cache=this.timers=this.plugins=this.mouse=E;delete W.api[this.id]}if((C!==A||this.triggering==="hide")&&this.rendered){this.tooltip.one("tooltiphidden",J.proxy(X,this));!this.triggering&&this.hide()}else{X.call(this)}return this.target};function s(C){return C===E||J.type(C)!=="object"}function P(C){return !(J.isFunction(C)||C&&C.attr||C.length||J.type(C)==="object"&&(C.jquery||C.then))}function z(Y){var X,ai,ah,C;if(s(Y)){return af}if(s(Y.metadata)){Y.metadata={type:Y.metadata}}if("content" in Y){X=Y.content;if(s(X)||X.jquery||X.done){ai=P(X)?af:X;X=Y.content={text:ai}}else{ai=X.text}if("ajax" in X){ah=X.ajax;C=ah&&ah.once!==af;delete X.ajax;X.text=function(al,ak){var am=ai||J(this).attr(ak.options.content.attr)||"Loading...",aj=J.ajax(J.extend({},ah,{context:ak})).then(ah.success,E,ah.error).then(function(an){if(an&&C){ak.set("content.text",an)}return an},function(ap,an,ao){if(ak.destroyed||ap.status===0){return}ak.set("content.text",an+": "+ao)});return !C?(ak.set("content.text",am),aj):am}}if("title" in X){if(J.isPlainObject(X.title)){X.button=X.title.button;X.title=X.title.text}if(P(X.title||af)){X.title=af}}}if("position" in Y&&s(Y.position)){Y.position={my:Y.position,at:Y.position}}if("show" in Y&&s(Y.show)){Y.show=Y.show.jquery?{target:Y.show}:Y.show===A?{ready:A}:{event:Y.show}}if("hide" in Y&&s(Y.hide)){Y.hide=Y.hide.jquery?{target:Y.hide}:{event:Y.hide}}if("style" in Y&&s(Y.style)){Y.style={classes:Y.style}}J.each(B,function(){this.sanitize&&this.sanitize(Y)});return Y}f=R.checks={builtin:{"^id$":function(ah,ai,C,Y){var aj=C===A?W.nextid:C,X=j+"-"+aj;if(aj!==af&&aj.length>0&&!J("#"+X).length){this._id=X;if(this.rendered){this.tooltip[0].id=this._id;this.elements.content[0].id=this._id+"-content";this.elements.title[0].id=this._id+"-title"}}else{ah[ai]=Y}},"^prerender":function(X,Y,C){C&&!this.rendered&&this.render(this.options.show.ready)},"^content.text$":function(X,Y,C){this._updateContent(C)},"^content.attr$":function(Y,ah,C,X){if(this.options.content.text===this.target.attr(X)){this._updateContent(this.target.attr(C))}},"^content.title$":function(X,Y,C){if(!C){return this._removeTitle()}C&&!this.elements.title&&this._createTitle();this._updateTitle(C)},"^content.button$":function(X,Y,C){this._updateButton(C)},"^content.title.(text|button)$":function(X,Y,C){this.set("content."+Y,C)},"^position.(my|at)$":function(X,Y,C){if("string"===typeof C){this.position[Y]=X[Y]=new n(C,Y==="at")}},"^position.container$":function(X,Y,C){this.rendered&&this.tooltip.appendTo(C)},"^show.ready$":function(X,Y,C){C&&(!this.rendered&&this.render(A)||this.toggle(A))},"^style.classes$":function(Y,ah,C,X){this.rendered&&this.tooltip.removeClass(X).addClass(C)},"^style.(width|height)":function(X,Y,C){this.rendered&&this.tooltip.css(Y,C)},"^style.widget|content.title":function(){this.rendered&&this._setWidget()},"^style.def":function(X,Y,C){this.rendered&&this.tooltip.toggleClass(h,!!C)},"^events.(render|show|move|hide|focus|blur)$":function(X,Y,C){this.rendered&&this.tooltip[(J.isFunction(C)?"":"un")+"bind"]("tooltip"+Y,C)},"^(show|hide|position).(event|target|fixed|inactive|leave|distance|viewport|adjust)":function(){if(!this.rendered){return}var C=this.options.position;this.tooltip.attr("tracking",C.target==="mouse"&&C.adjust.mouse);this._unassignEvents();this._assignEvents()}}};function m(C,ah){var X=0,aj,Y=C,ai=ah.split(".");while(Y=Y[ai[X++]]){if(X<ai.length){aj=Y}}return[aj||C,ai.pop()]}R.get=function(X){if(this.destroyed){return this}var Y=m(this.options,X.toLowerCase()),C=Y[0][Y[1]];return C.precedance?C.string():C};function V(ah,X){var Y,ai,C;for(Y in this.checks){if(!this.checks.hasOwnProperty(Y)){continue}for(ai in this.checks[Y]){if(!this.checks[Y].hasOwnProperty(ai)){continue}if(C=(new RegExp(ai,"i")).exec(ah)){X.push(C);if(Y==="builtin"||this.plugins[Y]){this.checks[Y][ai].apply(this.plugins[Y]||this,X)}}}}}var k=/^position\.(my|at|adjust|target|container|viewport)|style|content|show\.ready/i,ae=/^prerender|show\.ready/i;R.set=function(ah,ai){if(this.destroyed){return this}var aj=this.rendered,C=af,Y=this.options,X;if("string"===typeof ah){X=ah;ah={};ah[X]=ai}else{ah=J.extend({},ah)}J.each(ah,function(al,an){if(aj&&ae.test(al)){delete ah[al];return}var am=m(Y,al.toLowerCase()),ak;ak=am[0][am[1]];am[0][am[1]]=an&&an.nodeType?J(an):an;C=k.test(al)||C;ah[al]=[am[0],am[1],an,ak]});z(Y);this.positioning=A;J.each(ah,J.proxy(V,this));this.positioning=af;if(this.rendered&&this.tooltip[0].offsetWidth>0&&C){this.reposition(Y.position.target==="mouse"?E:this.cache.event)}return this};R._update=function(ah,Y){var X=this,C=this.cache;if(!this.rendered||!ah){return af}if(J.isFunction(ah)){ah=ah.call(this.elements.target,C.event,this)||""}if(J.isFunction(ah.then)){C.waiting=A;return ah.then(function(ai){C.waiting=af;return X._update(ai,Y)},E,function(ai){return X._update(ai,Y)})}if(ah===af||!ah&&ah!==""){return af}if(ah.jquery&&ah.length>0){Y.empty().append(ah.css({display:"block",visibility:"visible"}))}else{Y.html(ah)}return this._waitForContent(Y).then(function(ai){if(X.rendered&&X.tooltip[0].offsetWidth>0){X.reposition(C.event,!ai.length)}})};R._waitForContent=function(X){var C=this.cache;C.waiting=A;return(J.fn.imagesLoaded?X.imagesLoaded():new J.Deferred().resolve([])).done(function(){C.waiting=af}).promise()};R._updateContent=function(X,C){this._update(X,this.elements.content,C)};R._updateTitle=function(X,C){if(this._update(X,this.elements.title,C)===af){this._removeTitle(af)}};R._createTitle=function(){var C=this.elements,X=this._id+"-title";if(C.titlebar){this._removeTitle()}C.titlebar=J("<div />",{"class":j+"-titlebar "+(this.options.style.widget?x("header"):"")}).append(C.title=J("<div />",{id:X,"class":j+"-title","aria-atomic":A})).insertBefore(C.content).delegate(".qtip-close","mousedown keydown mouseup keyup mouseout",function(Y){J(this).toggleClass("ui-state-active ui-state-focus",Y.type.substr(-4)==="down")}).delegate(".qtip-close","mouseover mouseout",function(Y){J(this).toggleClass("ui-state-hover",Y.type==="mouseover")});if(this.options.content.button){this._createButton()}};R._removeTitle=function(C){var X=this.elements;if(X.title){X.titlebar.remove();X.titlebar=X.title=X.button=E;if(C!==af){this.reposition()}}};R._createPosClass=function(C){return j+"-pos-"+(C||this.options.position.my).abbrev()};R.reposition=function(aA,ax){if(!this.rendered||this.positioning||this.destroyed){return this}this.positioning=A;var aw=this.cache,aj=this.tooltip,aD=this.options.position,aF=aD.target,au=aD.my,av=aD.at,aC=aD.viewport,aq=aD.container,az=aD.adjust,X=az.method.split(" "),aB=aj.outerWidth(af),ay=aj.outerHeight(af),al=0,am=0,Y=aj.css("position"),aE={left:0,top:0},C=aj[0].offsetWidth>0,ar=aA&&aA.type==="scroll",ai=J(b),aG=aq[0].ownerDocument,ap=this.mouse,ao,ak,ah,an;if(J.isArray(aF)&&aF.length===2){av={x:y,y:K};aE={left:aF[0],top:aF[1]}}else{if(aF==="mouse"){av={x:y,y:K};if((!az.mouse||this.options.hide.distance)&&aw.origin&&aw.origin.pageX){aA=aw.origin}else{if(!aA||aA&&(aA.type==="resize"||aA.type==="scroll")){aA=aw.event}else{if(ap&&ap.pageX){aA=ap}}}if(Y!=="static"){aE=aq.offset()}if(aG.body.offsetWidth!==(b.innerWidth||aG.documentElement.clientWidth)){ak=J(a.body).offset()}aE={left:aA.pageX-aE.left+(ak&&ak.left||0),top:aA.pageY-aE.top+(ak&&ak.top||0)};if(az.mouse&&ar&&ap){aE.left-=(ap.scrollX||0)-ai.scrollLeft();aE.top-=(ap.scrollY||0)-ai.scrollTop()}}else{if(aF==="event"){if(aA&&aA.target&&aA.type!=="scroll"&&aA.type!=="resize"){aw.target=J(aA.target)}else{if(!aA.target){aw.target=this.elements.target}}}else{if(aF!=="event"){aw.target=J(aF.jquery?aF:this.elements.target)}}aF=aw.target;aF=J(aF).eq(0);if(aF.length===0){return this}else{if(aF[0]===a||aF[0]===b){al=F.iOS?b.innerWidth:aF.width();am=F.iOS?b.innerHeight:aF.height();if(aF[0]===b){aE={top:(aC||aF).scrollTop(),left:(aC||aF).scrollLeft()}}}else{if(B.imagemap&&aF.is("area")){ao=B.imagemap(this,aF,av,B.viewport?X:af)}else{if(B.svg&&aF&&aF[0].ownerSVGElement){ao=B.svg(this,aF,av,B.viewport?X:af)}else{al=aF.outerWidth(af);am=aF.outerHeight(af);aE=aF.offset()}}}}if(ao){al=ao.width;am=ao.height;ak=ao.offset;aE=ao.position}aE=this.reposition.offset(aF,aE,aq);if(F.iOS>3.1&&F.iOS<4.1||F.iOS>=4.3&&F.iOS<4.33||!F.iOS&&Y==="fixed"){aE.left-=ai.scrollLeft();aE.top-=ai.scrollTop()}if(!ao||ao&&ao.adjustable!==af){aE.left+=av.x===ag?al:av.x===G?al/2:0;aE.top+=av.y===H?am:av.y===G?am/2:0}}}aE.left+=az.x+(au.x===ag?-aB:au.x===G?-aB/2:0);aE.top+=az.y+(au.y===H?-ay:au.y===G?-ay/2:0);if(B.viewport){ah=aE.adjusted=B.viewport(this,aE,aD,al,am,aB,ay);if(ak&&ah.left){aE.left+=ak.left}if(ak&&ah.top){aE.top+=ak.top}if(ah.my){this.position.my=ah.my}}else{aE.adjusted={left:0,top:0}}if(aw.posClass!==(an=this._createPosClass(this.position.my))){aw.posClass=an;aj.removeClass(aw.posClass).addClass(an)}if(!this._trigger("move",[aE,aC.elem||aC],aA)){return this}delete aE.adjusted;if(ax===af||!C||isNaN(aE.left)||isNaN(aE.top)||aF==="mouse"||!J.isFunction(aD.effect)){aj.css(aE)}else{if(J.isFunction(aD.effect)){aD.effect.call(aj,this,J.extend({},aE));aj.queue(function(at){J(this).css({opacity:"",height:""});if(F.ie){this.style.removeAttribute("filter")}at()})}}this.positioning=af;return this};R.reposition.offset=function(ah,al,X){if(!X[0]){return al}var ao=J(ah[0].ownerDocument),ak=!!F.ie&&a.compatMode!=="CSS1Compat",an=X[0],Y,aj,C,ai;function am(aq,ap){al.left+=ap*aq.scrollLeft();al.top+=ap*aq.scrollTop()}do{if((aj=J.css(an,"position"))!=="static"){if(aj==="fixed"){C=an.getBoundingClientRect();am(ao,-1)}else{C=J(an).position();C.left+=parseFloat(J.css(an,"borderLeftWidth"))||0;C.top+=parseFloat(J.css(an,"borderTopWidth"))||0}al.left-=C.left+(parseFloat(J.css(an,"marginLeft"))||0);al.top-=C.top+(parseFloat(J.css(an,"marginTop"))||0);if(!Y&&(ai=J.css(an,"overflow"))!=="hidden"&&ai!=="visible"){Y=J(an)}}}while(an=an.offsetParent);if(Y&&(Y[0]!==ao[0]||ak)){am(Y,1)}return al};var r=(n=R.reposition.Corner=function(X,C){X=(""+X).replace(/([A-Z])/," $1").replace(/middle/gi,G).toLowerCase();this.x=(X.match(/left|right/i)||X.match(/center/)||["inherit"])[0].toLowerCase();this.y=(X.match(/top|bottom|center/i)||["inherit"])[0].toLowerCase();this.forceY=!!C;var Y=X.charAt(0);this.precedance=Y==="t"||Y==="b"?d:e}).prototype;r.invert=function(X,C){this[X]=this[X]===y?ag:this[X]===ag?y:C||this[X]};r.string=function(Y){var X=this.x,ah=this.y;var C=X!==ah?X==="center"||ah!=="center"&&(this.precedance===d||this.forceY)?[ah,X]:[X,ah]:[X];return Y!==false?C.join(" "):C};r.abbrev=function(){var C=this.string(false);return C[0].charAt(0)+(C[1]&&C[1].charAt(0)||"")};r.clone=function(){return new n(this.string(),this.forceY)};R.toggle=function(ai,aj){var X=this.cache,au=this.options,at=this.tooltip;if(aj){if((/over|enter/).test(aj.type)&&X.event&&(/out|leave/).test(X.event.type)&&au.show.target.add(aj.target).length===au.show.target.length&&at.has(aj.relatedTarget).length){return this}X.event=J.event.fix(aj)}this.waiting&&!ai&&(this.hiddenDuringWait=A);if(!this.rendered){return ai?this.render(1):this}else{if(this.destroyed||this.disabled){return this}}var aq=ai?"show":"hide",C=this.options[aq],ar=this.options.position,ao=this.options.content,al=this.tooltip.css("width"),am=this.tooltip.is(":visible"),ak=ai||C.target.length===1,an=!aj||C.target.length<2||X.target[0]===aj.target,ap,ah,Y;if((typeof ai).search("boolean|number")){ai=!am}ap=!at.is(":animated")&&am===ai&&an;ah=!ap?!!this._trigger(aq,[90]):E;if(this.destroyed){return this}if(ah!==af&&ai){this.focus(aj)}if(!ah||ap){return this}J.attr(at[0],"aria-hidden",!!!ai);if(ai){this.mouse&&(X.origin=J.event.fix(this.mouse));if(J.isFunction(ao.text)){this._updateContent(ao.text,af)}if(J.isFunction(ao.title)){this._updateTitle(ao.title,af)}if(!ad&&ar.target==="mouse"&&ar.adjust.mouse){J(a).bind("mousemove."+j,this._storeMouse);ad=A}if(!al){at.css("width",at.outerWidth(af))}this.reposition(aj,arguments[2]);if(!al){at.css("width","")}if(!!C.solo){(typeof C.solo==="string"?J(C.solo):J(l,C.solo)).not(at).not(C.target).qtip("hide",new J.Event("tooltipsolo"))}}else{clearTimeout(this.timers.show);delete X.origin;if(ad&&!J(l+'[tracking="true"]:visible',C.solo).not(at).length){J(a).unbind("mousemove."+j);ad=af}this.blur(aj)}Y=J.proxy(function(){if(ai){if(F.ie){at[0].style.removeAttribute("filter")}at.css("overflow","");if("string"===typeof C.autofocus){J(this.options.show.autofocus,at).focus()}this.options.show.target.trigger("qtip-"+this.id+"-inactive")}else{at.css({display:"",visibility:"",opacity:"",left:"",top:""})}this._trigger(ai?"visible":"hidden")},this);if(C.effect===af||ak===af){at[aq]();Y()}else{if(J.isFunction(C.effect)){at.stop(1,1);C.effect.call(at,this);at.queue("fx",function(av){Y();av()})}else{at.fadeTo(90,ai?1:0,Y)}}if(ai){C.target.trigger("qtip-"+this.id+"-inactive")}return this};R.show=function(C){return this.toggle(A,C)};R.hide=function(C){return this.toggle(af,C)};R.focus=function(Y){if(!this.rendered||this.destroyed){return this}var ai=J(l),ah=this.tooltip,X=parseInt(ah[0].style.zIndex,10),C=W.zindex+ai.length;if(!ah.hasClass(v)){if(this._trigger("focus",[C],Y)){if(X!==C){ai.each(function(){if(this.style.zIndex>X){this.style.zIndex=this.style.zIndex-1}});ai.filter("."+v).qtip("blur",Y)}ah.addClass(v)[0].style.zIndex=C}}return this};R.blur=function(C){if(!this.rendered||this.destroyed){return this}this.tooltip.removeClass(v);this._trigger("blur",[this.tooltip.css("zIndex")],C);return this};R.disable=function(C){if(this.destroyed){return this}if(C==="toggle"){C=!(this.rendered?this.tooltip.hasClass(O):this.disabled)}else{if("boolean"!==typeof C){C=A}}if(this.rendered){this.tooltip.toggleClass(O,C).attr("aria-disabled",C)}this.disabled=!!C;return this};R.enable=function(){return this.disable(af)};R._createButton=function(){var X=this,ai=this.elements,ah=ai.tooltip,Y=this.options.content.button,C=typeof Y==="string",aj=C?Y:"Close tooltip";if(ai.button){ai.button.remove()}if(Y.jquery){ai.button=Y}else{ai.button=J("<a />",{"class":"qtip-close "+(this.options.style.widget?"":j+"-icon"),title:aj,"aria-label":aj}).prepend(J("<span />",{"class":"ui-icon ui-icon-close",html:"×"}))}ai.button.appendTo(ai.titlebar||ah).attr("role","button").click(function(ak){if(!ah.hasClass(O)){X.hide(ak)}return af})};R._updateButton=function(C){if(!this.rendered){return af}var X=this.elements.button;if(C){this._createButton()}else{X.remove()}};function x(C){return p.concat("").join(C?"-"+C+" ":" ")}R._setWidget=function(){var C=this.options.style.widget,ah=this.elements,Y=ah.tooltip,X=Y.hasClass(O);Y.removeClass(O);O=C?"ui-state-disabled":"qtip-disabled";Y.toggleClass(O,X);Y.toggleClass("ui-helper-reset "+x(),C).toggleClass(h,this.options.style.def&&!C);if(ah.content){ah.content.toggleClass(x("content"),C)}if(ah.titlebar){ah.titlebar.toggleClass(x("header"),C)}if(ah.button){ah.button.toggleClass(j+"-icon",!C)}};function L(X,C){if(C>0){return setTimeout(J.proxy(X,this),C)}else{X.call(this)}}function D(C){if(this.tooltip.hasClass(O)){return}clearTimeout(this.timers.show);clearTimeout(this.timers.hide);this.timers.show=L.call(this,function(){this.toggle(A,C)},this.options.show.delay)}function U(ah){if(this.tooltip.hasClass(O)||this.destroyed){return}var X=J(ah.relatedTarget),C=X.closest(l)[0]===this.tooltip[0],Y=X[0]===this.options.show.target[0];clearTimeout(this.timers.show);clearTimeout(this.timers.hide);if(this!==X[0]&&(this.options.position.target==="mouse"&&C)||this.options.hide.fixed&&((/mouse(out|leave|move)/).test(ah.type)&&(C||Y))){try{ah.preventDefault();ah.stopImmediatePropagation()}catch(ai){}return}this.timers.hide=L.call(this,function(){this.toggle(af,ah)},this.options.hide.delay,this)}function ac(C){if(this.tooltip.hasClass(O)||!this.options.hide.inactive){return}clearTimeout(this.timers.inactive);this.timers.inactive=L.call(this,function(){this.hide(C)},this.options.hide.inactive)}function S(C){if(this.rendered&&this.tooltip[0].offsetWidth>0){this.reposition(C)}}R._storeMouse=function(C){(this.mouse=J.event.fix(C)).type="mousemove";return this};R._bind=function(C,Y,aj,ai,X){if(!C||!aj||!Y.length){return}var ah="."+this._id+(ai?"-"+ai:"");J(C).bind((Y.split?Y:Y.join(ah+" "))+ah,J.proxy(aj,X||this));return this};R._unbind=function(C,X){C&&J(C).unbind("."+this._id+(X?"-"+X:""));return this};function t(C,X,Y){J(a.body).delegate(C,(X.split?X:X.join("."+j+" "))+"."+j,function(){var ah=W.api[J.attr(this,M)];ah&&!ah.disabled&&Y.apply(ah,arguments)})}R._trigger=function(X,C,Y){var ah=new J.Event("tooltip"+X);ah.originalEvent=Y&&J.extend({},Y)||this.cache.event||E;this.triggering=X;this.tooltip.trigger(ah,[this].concat(C||[]));this.triggering=af;return !ah.isDefaultPrevented()};R._bindEvents=function(X,al,Y,ai,ah,C){var ak=Y.filter(ai).add(ai.filter(Y)),aj=[];if(ak.length){J.each(al,function(an,ao){var am=J.inArray(ao,X);am>-1&&aj.push(X.splice(am,1)[0])});if(aj.length){this._bind(ak,aj,function(am){var an=this.rendered?this.tooltip[0].offsetWidth>0:false;(an?C:ah).call(this,am)});Y=Y.not(ak);ai=ai.not(ak)}}this._bind(Y,X,ah);this._bind(ai,al,C)};R._assignInitialEvents=function(ai){var X=this.options,ah=X.show.target,Y=X.hide.target,C=X.show.event?J.trim(""+X.show.event).split(" "):[],ak=X.hide.event?J.trim(""+X.hide.event).split(" "):[];this._bind(this.elements.target,["remove","removeqtip"],function(){this.destroy(true)},"destroy");if(/mouse(over|enter)/i.test(X.show.event)&&!/mouse(out|leave)/i.test(X.hide.event)){ak.push("mouseleave")}this._bind(ah,"mousemove",function(al){this._storeMouse(al);this.cache.onTarget=A});function aj(al){if(this.disabled||this.destroyed){return af}this.cache.event=al&&J.event.fix(al);this.cache.target=al&&J(al.target);clearTimeout(this.timers.show);this.timers.show=L.call(this,function(){this.render(typeof al==="object"||X.show.ready)},X.prerender?0:X.show.delay)}this._bindEvents(C,ak,ah,Y,aj,function(){if(!this.timers){return af}clearTimeout(this.timers.show)});if(X.show.ready||X.prerender){aj.call(this,ai)}};R._assignEvents=function(){var an=this,ap=this.options,al=ap.position,ao=this.tooltip,ah=ap.show.target,ak=ap.hide.target,ai=al.container,X=al.viewport,Y=J(a),aj=J(b),C=ap.show.event?J.trim(""+ap.show.event).split(" "):[],am=ap.hide.event?J.trim(""+ap.hide.event).split(" "):[];J.each(ap.events,function(aq,ar){an._bind(ao,aq==="toggle"?["tooltipshow","tooltiphide"]:["tooltip"+aq],ar,null,ao)});if(/mouse(out|leave)/i.test(ap.hide.event)&&ap.hide.leave==="window"){this._bind(Y,["mouseout","blur"],function(aq){if(!/select|option/.test(aq.target.nodeName)&&!aq.relatedTarget){this.hide(aq)}})}if(ap.hide.fixed){ak=ak.add(ao.addClass(Z))}else{if(/mouse(over|enter)/i.test(ap.show.event)){this._bind(ak,"mouseleave",function(){clearTimeout(this.timers.show)})}}if((""+ap.hide.event).indexOf("unfocus")>-1){this._bind(ai.closest("html"),["mousedown","touchstart"],function(au){var at=J(au.target),ar=this.rendered&&!this.tooltip.hasClass(O)&&this.tooltip[0].offsetWidth>0,aq=at.parents(l).filter(this.tooltip[0]).length>0;if(at[0]!==this.target[0]&&at[0]!==this.tooltip[0]&&!aq&&!this.target.has(at[0]).length&&ar){this.hide(au)}})}if("number"===typeof ap.hide.inactive){this._bind(ah,"qtip-"+this.id+"-inactive",ac,"inactive");this._bind(ak.add(ao),W.inactiveEvents,ac)}this._bindEvents(C,am,ah,ak,D,U);this._bind(ah.add(ao),"mousemove",function(au){if("number"===typeof ap.hide.distance){var at=this.cache.origin||{},ar=this.options.hide.distance,aq=Math.abs;if(aq(au.pageX-at.pageX)>=ar||aq(au.pageY-at.pageY)>=ar){this.hide(au)}}this._storeMouse(au)});if(al.target==="mouse"){if(al.adjust.mouse){if(ap.hide.event){this._bind(ah,["mouseenter","mouseleave"],function(aq){if(!this.cache){return af}this.cache.onTarget=aq.type==="mouseenter"})}this._bind(Y,"mousemove",function(aq){if(this.rendered&&this.cache.onTarget&&!this.tooltip.hasClass(O)&&this.tooltip[0].offsetWidth>0){this.reposition(aq)}})}}if(al.adjust.resize||X.length){this._bind(J.event.special.resize?X:aj,"resize",S)}if(al.adjust.scroll){this._bind(aj.add(al.container),"scroll",S)}};R._unassignEvents=function(){var X=this.options,Y=X.show.target,ah=X.hide.target,C=J.grep([this.elements.target[0],this.rendered&&this.tooltip[0],X.position.container[0],X.position.viewport[0],X.position.container.closest("html")[0],b,a],function(ai){return typeof ai==="object"});if(Y&&Y.toArray){C=C.concat(Y.toArray())}if(ah&&ah.toArray){C=C.concat(ah.toArray())}this._unbind(C)._unbind(C,"destroy")._unbind(C,"inactive")};J(function(){t(l,["mouseenter","mouseleave"],function(X){var ah=X.type==="mouseenter",Y=J(X.currentTarget),ai=J(X.relatedTarget||X.target),C=this.options;if(ah){this.focus(X);Y.hasClass(Z)&&!Y.hasClass(O)&&clearTimeout(this.timers.hide)}else{if(C.position.target==="mouse"&&C.position.adjust.mouse&&C.hide.event&&C.show.target&&!ai.closest(C.show.target[0]).length){this.hide(X)}}Y.toggleClass(aa,ah)});t("["+M+"]",w,ac)});function ab(ah,X,C){var ai,ar,am,Y,ap,aj=J(a.body),ao=ah[0]===a?aj:ah,an=ah.metadata?ah.metadata(C.metadata):E,aq=C.metadata.type==="html5"&&an?an[C.metadata.name]:E,ak=ah.data(C.metadata.name||"qtipopts");try{ak=typeof ak==="string"?J.parseJSON(ak):ak}catch(al){}Y=J.extend(A,{},W.defaults,C,typeof ak==="object"?z(ak):E,z(aq||an));ar=Y.position;Y.id=X;if("boolean"===typeof Y.content.text){am=ah.attr(Y.content.attr);if(Y.content.attr!==af&&am){Y.content.text=am}else{return af}}if(!ar.container.length){ar.container=aj}if(ar.target===af){ar.target=ao}if(Y.show.target===af){Y.show.target=ao}if(Y.show.solo===A){Y.show.solo=ar.container.closest("body")}if(Y.hide.target===af){Y.hide.target=ao}if(Y.position.viewport===A){Y.position.viewport=ar.container}ar.container=ar.container.eq(0);ar.at=new n(ar.at,A);ar.my=new n(ar.my);if(ah.data(j)){if(Y.overwrite){ah.qtip("destroy",true)}else{if(Y.overwrite===af){return af}}}ah.attr(Q,X);if(Y.suppress&&(ap=ah.attr("title"))){ah.removeAttr("title").attr(o,ap).attr("title","")}ai=new g(ah,Y,X,!!am);ah.data(j,ai);return ai}W=J.fn.qtip=function(X,aj,ak){var al=(""+X).toLowerCase(),ai=E,C=J.makeArray(arguments).slice(1),ah=C[C.length-1],Y=this[0]?J.data(this[0],j):E;if(!arguments.length&&Y||al==="api"){return Y}else{if("string"===typeof X){this.each(function(){var am=J.data(this,j);if(!am){return A}if(ah&&ah.timeStamp){am.cache.event=ah}if(aj&&(al==="option"||al==="options")){if(ak!==c||J.isPlainObject(aj)){am.set(aj,ak)}else{ai=am.get(aj);return af}}else{if(am[al]){am[al].apply(am,C)}}});return ai!==E?ai:this}else{if("object"===typeof X||!arguments.length){Y=z(J.extend(A,{},X));return this.each(function(am){var an,ao;ao=J.isArray(Y.id)?Y.id[am]:Y.id;ao=!ao||ao===af||ao.length<1||W.api[ao]?W.nextid++:ao;an=ab(J(this),ao,Y);if(an===af){return A}else{W.api[ao]=an}J.each(B,function(){if(this.initialize==="initialize"){this(an)}});an._assignInitialEvents(ah)})}}}};J.qtip=g;W.api={};J.each({attr:function(C,ai){if(this.length){var X=this[0],ah="title",Y=J.data(X,"qtip");if(C===ah&&Y&&Y.options&&"object"===typeof Y&&"object"===typeof Y.options&&Y.options.suppress){if(arguments.length<2){return J.attr(X,o)}if(Y&&Y.options.content.attr===ah&&Y.cache.attr){Y.set("content.text",ai)}return this.attr(o,ai)}}return J.fn["attr"+u].apply(this,arguments)},clone:function(X){var C=J.fn["clone"+u].apply(this,arguments);if(!X){C.filter("["+o+"]").attr("title",function(){return J.attr(this,o)}).removeAttr(o)}return C}},function(X,Y){if(!Y||J.fn[X+u]){return A}var C=J.fn[X+u]=J.fn[X];J.fn[X]=function(){return Y.apply(this,arguments)||C.apply(this,arguments)}});if(!J.ui){J["cleanData"+u]=J.cleanData;J.cleanData=function(C){for(var X=0,Y;(Y=J(C[X])).length;X++){if(Y.attr(Q)){try{Y.triggerHandler("removeqtip")}catch(ah){}}}J["cleanData"+u].apply(this,arguments)}}W.version="3.0.3";W.nextid=0;W.inactiveEvents=w;W.zindex=15000;W.defaults={prerender:af,id:af,overwrite:A,suppress:A,content:{text:A,attr:"title",title:af,button:af},position:{my:"top left",at:"bottom right",target:af,container:af,viewport:af,adjust:{x:0,y:0,mouse:A,scroll:A,resize:A,method:"flipinvert flipinvert"},effect:function(C,X){J(this).animate(X,{duration:200,queue:af})}},show:{target:af,event:"mouseenter",effect:A,delay:90,solo:af,ready:af,autofocus:af},hide:{target:af,event:"mouseleave",effect:A,delay:0,fixed:af,inactive:af,leave:"window",distance:af},style:{classes:"",widget:af,width:af,height:af,def:A},events:{render:E,move:E,show:E,hide:E,toggle:E,visible:E,hidden:E,focus:E,blur:E}}}))}(window,document));
|