"use strict";jQuery((function(t){var o={delay:1e3,duration:200,showEffect:"fadeIn",hideEffect:"fadeOut",track:!0,tooltipClass:"default",close:function(){t(".ui-helper-hidden-accessible > *:not(:last)").remove()}},e={my:"left+15 top+15",at:"left bottom",collision:"flipfit flip"};function i(o,e){var i,a=t(this),n=e.horizontal,r=e.vertical;switch(r){case"bottom":r="top";break;case"top":r="bottom"}switch(n){case"left":n="right";break;case"right":n="left"}i="position-"+n+" position-"+r,a.removeClass((function(t,o){return(o.match(/\position-\w+/g)||[]).join(" ")})),a.addClass(i),a.css(o)}t(".jqUITooltip:not(.inited)").livequery((function(){var a=t(this),n=t.extend({},o,a.data());if(a.addClass("inited"),n.show=t.extend(n.show,{effect:n.showEffect,delay:n.delay,duration:n.duration}),n.hide=t.extend(n.hide,{effect:n.hideEffect,delay:n.delay,duration:n.duration}),void 0!==n.theme&&(n.classes={"ui-tooltip":n.theme}),"string"==typeof n.position)switch(n.position){case"bottom":n.position={my:"center top",at:"center bottom+13"},n.track=!1;break;case"top":n.position={my:"center bottom",at:"center top-13"},n.track=!1;break;case"right":n.position={my:"left middle",at:"right+13 middle"},n.track=!1;break;case"left":n.position={my:"right middle",at:"left-13 middle"},n.track=!1;break;case"top left":case"left top":n.position={my:"right bottom",at:"left-5 top-5"},n.track=!1,n.arrow=!1;break;case"top right":case"right top":n.position={my:"left bottom",at:"right+5 top-5"},n.track=!1,n.arrow=!1;break;case"bottom left":case"left bottom":n.position={my:"right top",at:"left-5 bottom+5"},n.track=!1,n.arrow=!1;break;case"bottom right":case"right bottom":n.position={my:"left top",at:"right+5 bottom+5"},n.track=!1,n.arrow=!1;break;default:n.position=t.extend({},e)}"object"==typeof n.position&&(n.position.using=i),n.ajax?(n.content=function(o){var e=t(this);if(e.data("content"))return e.data("content");t.get(n.ajax).then((function(t){e.data("content",t),o(t)}))},n.items=a):n.content=function(){return t(this).attr("title")},a.tooltip(n).on("tooltipopen",(function(t,o){n.arrow&&o.tooltip.prepend("<div class='ui-arrow'></div>")}))}))}));
