(function(c,B,L){function M(){M.history=M.history||[];M.history.push(arguments);if("object"===typeof console){var c=console[console.warn?"warn":"log"],a=Array.prototype.slice.call(arguments);"string"===typeof arguments[0]&&(a[0]="qTip2: "+a[0]);c.apply?c.apply(console,a):c(a)}}function N(b){var a;if(!b||"object"!==typeof b)return l;if(b.metadata===w||"object"!==typeof b.metadata)b.metadata={type:b.metadata};if("content"in b){if(b.content===w||"object"!==typeof b.content||b.content.jquery)b.content=
{text:b.content};a=b.content.text||l;!c.isFunction(a)&&(!a&&!a.attr||1>a.length||"object"===typeof a&&!a.jquery)&&(b.content.text=l);if("title"in b.content){if(b.content.title===w||"object"!==typeof b.content.title)b.content.title={text:b.content.title};a=b.content.title.text||l;!c.isFunction(a)&&(!a&&!a.attr||1>a.length||"object"===typeof a&&!a.jquery)&&(b.content.title.text=l)}}"position"in b&&(b.position===w||"object"!==typeof b.position)&&(b.position={my:b.position,at:b.position});"show"in b&&
(b.show===w||"object"!==typeof b.show)&&(b.show=b.show.jquery?{target:b.show}:{event:b.show});"hide"in b&&(b.hide===w||"object"!==typeof b.hide)&&(b.hide=b.hide.jquery?{target:b.hide}:{event:b.hide});"style"in b&&(b.style===w||"object"!==typeof b.style)&&(b.style={classes:b.style});c.each(x,function(){this.sanitize&&this.sanitize(b)});return b}function O(b,a,m,e){function r(c){var b=0,d,h=a;for(c=c.split(".");h=h[c[b++]];)b<c.length&&(d=h);return[d||a,c.pop()]}function k(){var c=a.style.widget;h.toggleClass(W,
c).toggleClass(aa,!c);u.content.toggleClass(W+"-content",c);u.titlebar&&u.titlebar.toggleClass(W+"-header",c);u.button&&u.button.toggleClass(E+"-icon",!c)}function n(a){u.title&&(u.titlebar.remove(),u.titlebar=u.title=u.button=w,a!==l&&d.reposition())}function g(){var b=a.content.title.button,f="string"===typeof b?b:"Close tooltip";u.button&&u.button.remove();u.button=b.jquery?b:c("\x3ca /\x3e",{"class":"ui-state-default ui-tooltip-close "+(a.style.widget?"":E+"-icon"),title:f,"aria-label":f}).prepend(c("\x3cspan /\x3e",
{"class":"ui-icon ui-icon-close",html:"\x26times;"}));u.button.appendTo(u.titlebar).attr("role","button").click(function(a){h.hasClass(H)||d.hide(a);return l});d.redraw()}function f(){var b=C+"-title";u.titlebar&&n();u.titlebar=c("\x3cdiv /\x3e",{"class":E+"-titlebar "+(a.style.widget?"ui-widget-header":"")}).append(u.title=c("\x3cdiv /\x3e",{id:b,"class":E+"-title","aria-atomic":s})).insertBefore(u.content).delegate(".ui-tooltip-close","mousedown keydown mouseup keyup mouseout",function(a){c(this).toggleClass("ui-state-active ui-state-focus",
"down"===a.type.substr(-4))}).delegate(".ui-tooltip-close","mouseover mouseout",function(a){c(this).toggleClass("ui-state-hover","mouseover"===a.type)});a.content.title.button?g():d.rendered&&d.redraw()}function D(a,f){var t=u.title;if(!d.rendered||!a)return l;c.isFunction(a)&&(a=a.call(b,v.event,d));if(a===l)return n(l);a.jquery&&0<a.length?t.empty().append(a.css({display:"block"})):t.html(a);d.redraw();f!==l&&d.rendered&&h.is(":visible")&&d.reposition(v.event)}function p(a,f){function t(a){function b(h){h&&
(delete S[h.src],clearTimeout(d.timers.img[h.src]),c(h).unbind(z));c.isEmptyObject(S)&&(d.redraw(),f!==l&&d.reposition(v.event),a())}var h,S={};if(0===(h=e.find("img:not([height]):not([width])")).length)return b();h.each(function(a,h){if(void 0===S[h.src]){var f=0;(function ba(){if(h.height||h.width||3<f)return b(h);f+=1;d.timers.img[h.src]=setTimeout(ba,700)})();c(h).bind("error"+z+" load"+z,function(){b(this)});S[h.src]=h}})}var e=u.content;if(!d.rendered||!a)return l;c.isFunction(a)&&(a=a.call(b,
v.event,d)||"");a.jquery&&0<a.length?e.empty().append(a.css({display:"block"})):e.html(a);0>d.rendered?h.queue("fx",t):(F=0,t(c.noop));return d}function y(){function f(c){if(h.hasClass(H))return l;clearTimeout(d.timers.show);clearTimeout(d.timers.hide);var b=function(){d.toggle(s,c)};0<a.show.delay?d.timers.show=setTimeout(b,a.show.delay):b()}function e(b){if(h.hasClass(H)||G||F)return l;var f=c(b.relatedTarget||b.target),S=f.closest(I)[0]===h[0],f=f[0]===g.show[0];clearTimeout(d.timers.show);clearTimeout(d.timers.hide);
if("mouse"===k.target&&S||a.hide.fixed&&/mouse(out|leave|move)/.test(b.type)&&(S||f))try{b.preventDefault(),b.stopImmediatePropagation()}catch(t){}else 0<a.hide.delay?d.timers.hide=setTimeout(function(){d.hide(b)},a.hide.delay):d.hide(b)}function t(c){if(h.hasClass(H))return l;clearTimeout(d.timers.inactive);d.timers.inactive=setTimeout(function(){d.hide(c)},a.hide.inactive)}function C(a){h.is(":visible")&&d.reposition(a)}var k=a.position,g={show:a.show.target,hide:a.hide.target,viewport:c(k.viewport),
document:c(document),body:c(document.body),window:c(B)},n=c.trim(""+a.show.event).split(" "),r=c.trim(""+a.hide.event).split(" "),D=c.browser.msie&&6===parseInt(c.browser.version,10);h.bind("mouseenter"+z+" mouseleave"+z,function(a){var c="mouseenter"===a.type;c&&d.focus(a);h.toggleClass(ca,c)});a.hide.fixed&&(g.hide=g.hide.add(h),h.bind("mouseover"+z,function(){h.hasClass(H)||clearTimeout(d.timers.hide)}));/mouse(out|leave)/i.test(a.hide.event)?"window"===a.hide.leave&&g.window.bind("mouseout"+z+
" blur"+z,function(a){/select|option/.test(a.target)&&!a.relatedTarget&&d.hide(a)}):/mouse(over|enter)/i.test(a.show.event)&&g.hide.bind("mouseleave"+z,function(a){clearTimeout(d.timers.show)});-1<(""+a.hide.event).indexOf("unfocus")&&g.body.bind("mousedown"+z,function(a){var f=c(a.target);!h.hasClass(H)&&h.is(":visible");f[0]!==h[0]&&0===f.parents(I).length&&1<f.add(b).length&&!f.attr("disabled")&&d.hide(a)});"number"===typeof a.hide.inactive&&(g.show.bind("qtip-"+m+"-inactive",t),c.each(A.inactiveEvents,
function(a,c){g.hide.add(u.tooltip).bind(c+z+"-inactive",t)}));c.each(r,function(a,b){var d=c.inArray(b,n),t=c(g.hide);-1<d&&t.add(g.show).length===t.length||"unfocus"===b?(g.show.bind(b+z,function(a){h.is(":visible")?e(a):f(a)}),delete n[d]):g.hide.bind(b+z,e)});c.each(n,function(a,c){g.show.bind(c+z,f)});"number"===typeof a.hide.distance&&g.show.add(h).bind("mousemove"+z,function(c){var b=v.origin||{},h=a.hide.distance,f=Math.abs;(f(c.pageX-b.pageX)>=h||f(c.pageY-b.pageY)>=h)&&d.hide(c)});"mouse"===
k.target&&(g.show.bind("mousemove"+z,function(a){J={pageX:a.pageX,pageY:a.pageY,type:"mousemove"}}),k.adjust.mouse&&(a.hide.event&&h.bind("mouseleave"+z,function(a){(a.relatedTarget||a.target)!==g.show[0]&&d.hide(a)}),g.document.bind("mousemove"+z,function(a){!h.hasClass(H)&&h.is(":visible")&&d.reposition(a||J)})));(k.adjust.resize||g.viewport.length)&&(c.event.special.resize?g.viewport:g.window).bind("resize"+z,C);(g.viewport.length||D&&"fixed"===h.css("position"))&&g.viewport.bind("scroll"+z,C)}
function P(){var b=[a.show.target[0],a.hide.target[0],d.rendered&&u.tooltip[0],a.position.container[0],a.position.viewport[0],B,document];d.rendered?c([]).pushStack(c.grep(b,function(a){return"object"===typeof a})).unbind(z):a.show.target.unbind(z+"-create")}var d=this,da=document.body,C=E+"-"+m,G=0,F=0,h=c(),z=".qtip-"+m,u,v;d.id=m;d.rendered=l;d.elements=u={target:b};d.timers={img:{}};d.options=a;d.checks={};d.plugins={};d.cache=v={event:{},target:c(),disabled:l,attr:e};d.checks.builtin={"^id$":function(a,
b,d){a=d===s?A.nextid:d;b=E+"-"+a;a!==l&&0<a.length&&!c("#"+b).length&&(h[0].id=b,u.content[0].id=b+"-content",u.title[0].id=b+"-title")},"^content.text$":function(a,c,b){p(b)},"^content.title.text$":function(a,c,b){if(!b)return n();!u.title&&b&&f();D(b)},"^content.title.button$":function(a,c,b){a=u.button;c=u.title;d.rendered&&(b?(c||f(),g()):a.remove())},"^position.(my|at)$":function(a,c,b){"string"===typeof b&&(a[c]=new x.Corner(b))},"^position.container$":function(a,c,b){d.rendered&&h.appendTo(b)},
"^show.ready$":function(){d.rendered?d.toggle(s):d.render(1)},"^style.classes$":function(a,c,b){h.attr("class",E+" qtip ui-helper-reset "+b)},"^style.widget|content.title":k,"^events.(render|show|move|hide|focus|blur)$":function(a,b,d){h[(c.isFunction(d)?"":"un")+"bind"]("tooltip"+b,d)},"^(show|hide|position).(event|target|fixed|inactive|leave|distance|viewport|adjust)":function(){var b=a.position;h.attr("tracking","mouse"===b.target&&b.adjust.mouse);P();y()}};c.extend(d,{render:function(g){if(d.rendered)return d;
var e=a.content.text,t=a.content.title.text,m=a.position,n=c.Event("tooltiprender");c.attr(b[0],"aria-describedby",C);h=u.tooltip=c("\x3cdiv/\x3e",{id:C,"class":E+" qtip ui-helper-reset "+aa+" "+a.style.classes+" "+E+"-pos-"+a.position.my.abbrev(),width:a.style.width||"",height:a.style.height||"",tracking:"mouse"===m.target&&m.adjust.mouse,role:"alert","aria-live":"polite","aria-atomic":l,"aria-describedby":C+"-content","aria-hidden":s}).toggleClass(H,v.disabled).data("qtip",d).appendTo(a.position.container).append(u.content=
c("\x3cdiv /\x3e",{"class":E+"-content",id:C+"-content","aria-atomic":s}));d.rendered=-1;G=F=1;t&&(f(),c.isFunction(t)||D(t,l));c.isFunction(e)||p(e,l);d.rendered=s;k();c.each(a.events,function(a,b){c.isFunction(b)&&h.bind("toggle"===a?"tooltipshow tooltiphide":"tooltip"+a,b)});c.each(x,function(){"render"===this.initialize&&this(d)});y();h.queue("fx",function(b){n.originalEvent=v.event;h.trigger(n,[d]);G=F=0;d.redraw();(a.show.ready||g)&&d.toggle(s,v.event,l);b()});return d},get:function(b){switch(b.toLowerCase()){case "dimensions":b=
{height:h.outerHeight(),width:h.outerWidth()};break;case "offset":b=x.offset(h,a.position.container);break;default:b=r(b.toLowerCase()),b=b[0][b[1]],b=b.precedance?b.string():b}return b},set:function(b,f){var g=/^position\.(my|at|adjust|target|container)|style|content|show\.ready/i,e=/^content\.(title|attr)|style/i,C=l,k=l,m=d.checks,n;"string"===typeof b?(n=b,b={},b[n]=f):b=c.extend(s,{},b);c.each(b,function(a,d){var f=r(a.toLowerCase()),h;h=f[0][f[1]];f[0][f[1]]="object"===typeof d&&d.nodeType?
c(d):d;b[a]=[f[0],f[1],d,h];C=g.test(a)||C;k=e.test(a)||k});N(a);G=F=1;c.each(b,function(a,b){var c,f,h;for(c in m)for(f in m[c])if(h=(new RegExp(f,"i")).exec(a))b.push(h),m[c][f].apply(d,b)});G=F=0;h.is(":visible")&&d.rendered&&(C&&d.reposition("mouse"===a.position.target?w:v.event),k&&d.redraw());return d},toggle:function(b,f,g){function e(){b?(c.browser.msie&&h[0].style.removeAttribute("filter"),h.css("overflow",""),"string"===typeof k.autofocus&&c(k.autofocus,h).focus(),z=c.Event("tooltipvisible"),
z.originalEvent=f?v.event:w,h.trigger(z,[d]),k.target.trigger("qtip-"+m+"-inactive")):h.css({display:"",visibility:"",opacity:"",left:"",top:""})}if(!d.rendered)return b?d.render(1):d;var C=b?"show":"hide",k=a[C],n=h.is(":visible"),G=!f||2>a[C].target.length||v.target[0]===f.target,r=a.position,u=a.content,z;(typeof b).search("boolean|number")&&(b=!n);if(!h.is(":animated")&&n===b&&G)return d;if(f){if(/over|enter/.test(f.type)&&/out|leave/.test(v.event.type)&&f.target===a.show.target[0]&&h.has(f.relatedTarget).length)return d;
v.event=c.extend({},f)}z=c.Event("tooltip"+C);z.originalEvent=f?v.event:w;h.trigger(z,[d,90]);if(z.isDefaultPrevented())return d;c.attr(h[0],"aria-hidden",!b);b?(v.origin=c.extend({},J),d.focus(f),c.isFunction(u.text)&&p(u.text,l),c.isFunction(u.title.text)&&D(u.title.text,l),!U&&"mouse"===r.target&&r.adjust.mouse&&(c(document).bind("mousemove.qtip",function(a){J={pageX:a.pageX,pageY:a.pageY,type:"mousemove"}}),U=s),d.reposition(f,g),(z.solo=!!k.solo)&&c(I,k.solo).not(h).qtip("hide",z)):(clearTimeout(d.timers.show),
delete v.origin,U&&!c(I+'[tracking\x3d"true"]:visible',k.solo).not(h).length&&(c(document).unbind("mousemove.qtip"),U=l),d.blur(f));G&&h.stop(0,1);k.effect===l?(h[C](),e.call(h)):c.isFunction(k.effect)?(k.effect.call(h,d),h.queue("fx",function(a){e();a()})):h.fadeTo(90,b?1:0,e);b&&k.target.trigger("qtip-"+m+"-inactive");return d},show:function(a){return d.toggle(s,a)},hide:function(a){return d.toggle(l,a)},focus:function(a){if(!d.rendered)return d;var b=c(I),f=parseInt(h[0].style.zIndex,10),g=A.zindex+
b.length;a=c.extend({},a);var e;h.hasClass(Q)||(e=c.Event("tooltipfocus"),e.originalEvent=a,h.trigger(e,[d,g]),e.isDefaultPrevented()||(f!==g&&(b.each(function(){this.style.zIndex>f&&(this.style.zIndex-=1)}),b.filter("."+Q).qtip("blur",a)),h.addClass(Q)[0].style.zIndex=g));return d},blur:function(a){a=c.extend({},a);var b;h.removeClass(Q);b=c.Event("tooltipblur");b.originalEvent=a;h.trigger(b,[d]);return d},reposition:function(b,f){if(!d.rendered||G)return d;G=1;var g=a.position.target,e=a.position,
k=e.my,C=e.at,m=e.adjust,n=m.method.split(" "),z=h.outerWidth(),u=h.outerHeight(),r=0,F=0,D=c.Event("tooltipmove"),s="fixed"===h.css("position"),p=e.viewport,q={left:0,top:0},w=e.container,P=l,y=d.plugins.tip,A={horizontal:n[0],vertical:n[1]=n[1]||n[0],enabled:p.jquery&&g[0]!==B&&g[0]!==da&&"none"!==m.method,left:function(a){var b="shift"===A.horizontal,c=-w.offset.left+p.offset.left+p.scrollLeft,f="left"===k.x?z:"right"===k.x?-z:-z/2,d="left"===C.x?r:"right"===C.x?-r:-r/2,h=y&&y.size?y.size.width||
0:0,g=y&&y.corner&&"x"===y.corner.precedance&&!b?h:0,e=c-a+g,n=a+z-p.width-c+g,d=f-("x"===k.precedance||k.x===k.y?d:0),g="center"===k.x;b?(g=y&&y.corner&&"y"===y.corner.precedance?h:0,d=("left"===k.x?1:-1)*f-g,q.left+=0<e?e:0<n?-n:0,q.left=Math.max(-w.offset.left+p.offset.left+(g&&"center"===y.corner.x?y.offset:0),a-d,Math.min(Math.max(-w.offset.left+p.offset.left+p.width,a+d),q.left))):(0<e&&("left"!==k.x||0<n)?q.left-=d:0<n&&("right"!==k.x||0<e)&&(q.left-=g?-d:d),q.left!==a&&g&&(q.left-=m.x),q.left<
c&&-q.left>n&&(q.left=a));return q.left-a},top:function(a){var b="shift"===A.vertical,c=-w.offset.top+p.offset.top+p.scrollTop,f="top"===k.y?u:"bottom"===k.y?-u:-u/2,d="top"===C.y?F:"bottom"===C.y?-F:-F/2,g=y&&y.size?y.size.height||0:0,h=y&&y.corner&&"y"===y.corner.precedance&&!b?g:0,e=c-a+h,c=a+u-p.height-c+h,d=f-("y"===k.precedance||k.x===k.y?d:0),h="center"===k.y;b?(h=y&&y.corner&&"x"===y.corner.precedance?g:0,d=("top"===k.y?1:-1)*f-h,q.top+=0<e?e:0<c?-c:0,q.top=Math.max(-w.offset.top+p.offset.top+
(h&&"center"===y.corner.x?y.offset:0),a-d,Math.min(Math.max(-w.offset.top+p.offset.top+p.height,a+d),q.top))):(0<e&&("top"!==k.y||0<c)?q.top-=d:0<c&&("bottom"!==k.y||0<e)&&(q.top-=h?-d:d),q.top!==a&&h&&(q.top-=m.y),0>q.top&&-q.top>c&&(q.top=a));return q.top-a}};if(c.isArray(g)&&2===g.length)C={x:"left",y:"top"},q={left:g[0],top:g[1]};else if("mouse"===g&&(b&&b.pageX||v.event.pageX))C={x:"left",y:"top"},b=(!b||"resize"!==b.type&&"scroll"!==b.type?b&&b.pageX&&"mousemove"===b.type?b:!J||!J.pageX||!m.mouse&&
b&&b.pageX?!m.mouse&&v.origin&&v.origin.pageX?v.origin:b:{pageX:J.pageX,pageY:J.pageY}:v.event)||b||v.event||J||{},q={top:b.pageY,left:b.pageX};else{"event"===g?g=b&&b.target&&"scroll"!==b.type&&"resize"!==b.type?v.target=c(b.target):v.target:v.target=c(g);g=c(g).eq(0);if(0===g.length)return d;g[0]===document||g[0]===B?(r=x.iOS?B.innerWidth:g.width(),F=x.iOS?B.innerHeight:g.height(),g[0]===B&&(q={top:s||x.iOS?(p||g).scrollTop():0,left:s||x.iOS?(p||g).scrollLeft():0})):g.is("area")&&x.imagemap?q=x.imagemap(g,
C,A.enabled?n:l):"http://www.w3.org/2000/svg"===g[0].namespaceURI&&x.svg?q=x.svg(g,C):(r=g.outerWidth(),F=g.outerHeight(),q=x.offset(g,w));q.offset&&(r=q.width,F=q.height,P=q.flipoffset,q=q.offset);if(4.1>x.iOS&&3.1<x.iOS||4.3==x.iOS||!x.iOS&&s)n=c(B),q.left-=n.scrollLeft(),q.top-=n.scrollTop();q.left+="right"===C.x?r:"center"===C.x?r/2:0;q.top+="bottom"===C.y?F:"center"===C.y?F/2:0}q.left+=m.x+("right"===k.x?-z:"center"===k.x?-z/2:0);q.top+=m.y+("bottom"===k.y?-u:"center"===k.y?-u/2:0);A.enabled?
(p={elem:p,height:p[(p[0]===B?"h":"outerH")+"eight"](),width:p[(p[0]===B?"w":"outerW")+"idth"](),scrollLeft:s?0:p.scrollLeft(),scrollTop:s?0:p.scrollTop(),offset:p.offset()||{left:0,top:0}},w={elem:w,scrollLeft:w.scrollLeft(),scrollTop:w.scrollTop(),offset:w.offset()||{left:0,top:0}},q.adjusted={left:"none"!==A.horizontal?A.left(q.left):0,top:"none"!==A.vertical?A.top(q.top):0},q.adjusted.left+q.adjusted.top&&h.attr("class",h[0].className.replace(/ui-tooltip-pos-\w+/i,E+"-pos-"+k.abbrev())),P&&q.adjusted.left&&
(q.left+=P.left),P&&q.adjusted.top&&(q.top+=P.top)):q.adjusted={left:0,top:0};D.originalEvent=c.extend({},b);h.trigger(D,[d,q,p.elem||p]);if(D.isDefaultPrevented())return d;delete q.adjusted;f===l||isNaN(q.left)||isNaN(q.top)||"mouse"===g||!c.isFunction(e.effect)?h.css(q):c.isFunction(e.effect)&&(e.effect.call(h,d,c.extend({},q)),h.queue(function(a){c(this).css({opacity:"",height:""});c.browser.msie&&this.style.removeAttribute("filter");a()}));G=0;return d},redraw:function(){if(1>d.rendered||F)return d;
var b=a.position.container,c,f,g;F=1;a.style.height&&h.css("height",a.style.height);a.style.width?h.css("width",a.style.width):(h.css("width","").addClass(T),c=h.width()+1,f=h.css("max-width")||"",g=h.css("min-width")||"",b=-1<(f+g).indexOf("%")?b.width()/100:0,f=(-1<f.indexOf("%")?b:1)*parseInt(f,10)||c,g=(-1<g.indexOf("%")?b:1)*parseInt(g,10)||0,c=f+g?Math.min(Math.max(c,g),f):c,h.css("width",Math.round(c)).removeClass(T));F=0;return d},disable:function(a){"boolean"!==typeof a&&(a=!(h.hasClass(H)||
v.disabled));d.rendered?(h.toggleClass(H,a),c.attr(h[0],"aria-disabled",a)):v.disabled=!!a;return d},enable:function(){return d.disable(l)},destroy:function(){var f=b[0],g=c.attr(f,R),e=b.data("qtip");d.rendered&&(h.remove(),c.each(d.plugins,function(){this.destroy&&this.destroy()}));clearTimeout(d.timers.show);clearTimeout(d.timers.hide);P();e&&d!==e||(c.removeData(f,"qtip"),a.suppress&&g&&(c.attr(f,"title",g),b.removeAttr(R)),b.removeAttr("aria-describedby"));b.unbind(".qtip-"+m);delete X[d.id];
return b}})}function Y(b,a){var m,e,r,k,n,g=c(this),f=c(document.body),D=this===document?f:g;e=g.metadata?g.metadata(a.metadata):w;k="html5"===a.metadata.type&&e?e[a.metadata.name]:w;var p=g.data(a.metadata.name||"qtipopts");try{p="string"===typeof p?(new Function("return "+p))():p}catch(y){M("Unable to parse HTML5 attribute data: "+p)}k=c.extend(s,{},A.defaults,a,"object"===typeof p?N(p):w,N(k||e));e=k.position;k.id=b;if("boolean"===typeof k.content.text)if(r=g.attr(k.content.attr),k.content.attr!==
l&&r)k.content.text=r;else return l;e.container.length||(e.container=f);e.target===l&&(e.target=D);k.show.target===l&&(k.show.target=D);k.show.solo===s&&(k.show.solo=f);k.hide.target===l&&(k.hide.target=D);k.position.viewport===s&&(k.position.viewport=e.container);e.at=new x.Corner(e.at);e.my=new x.Corner(e.my);if(c.data(this,"qtip"))if(k.overwrite)g.qtip("destroy");else if(k.overwrite===l)return l;k.suppress&&(n=c.attr(this,"title"))&&c(this).removeAttr("title").attr(R,n);m=new O(g,k,b,!!r);c.data(this,
"qtip",m);g.bind("remove.qtip-"+b,function(){m.destroy()});return m}function Z(b){var a=this,m=b.elements.tooltip,e=b.options.content.ajax,r=/<script\b[^<]*(?:(?!<\/script>)<[^<]*)*<\/script>/gi;b.checks.ajax={"^content.ajax":function(b,c,g){"ajax"===c&&(e=g);"once"===c?a.init():e&&e.url?a.load():m.unbind(".qtip-ajax")}};c.extend(a,{init:function(){if(e&&e.url)m.unbind(".qtip-ajax")[e.once?"one":"bind"]("tooltipshow.qtip-ajax",a.load);return a},load:function(k,n){var g=e.url.indexOf(" "),f=e.url,
m,p=e.once&&!e.loading&&n;if(p)try{k.preventDefault()}catch(s){}else if(k&&k.isDefaultPrevented())return a;-1<g&&(m=f.substr(g),f=f.substr(0,g));c.ajax(c.extend({success:function(a){m&&(a=c("\x3cdiv/\x3e").append(a.replace(r,"")).find(m));b.set("content.text",a)},error:function(a,c,f){0!==a.status&&b.set("content.text",c+": "+f)},context:b},e,{url:f,complete:function(){p&&(b.show(k.originalEvent),n=l);c.isFunction(e.complete)&&e.complete.apply(this,arguments)}}))}});a.init()}function V(b){var a=this,
m=b.elements,e=m.tooltip,l=".bgiframe-"+b.id;c.extend(a,{init:function(){m.bgiframe=c('\x3ciframe class\x3d"ui-tooltip-bgiframe" frameborder\x3d"0" tabindex\x3d"-1" src\x3d"javascript:\'\';"  style\x3d"display:block; position:absolute; z-index:-1; filter:alpha(opacity\x3d0); -ms-filter:"progid:DXImageTransform.Microsoft.Alpha(Opacity\x3d0)";"\x3e\x3c/iframe\x3e');m.bgiframe.appendTo(e);e.bind("tooltipmove"+l,a.adjust)},adjust:function(){var a=b.get("dimensions"),c=b.plugins.tip,g=m.tip,f;f=parseInt(e.css("border-left-width"),
10)||0;f={left:-f,top:-f};c&&g&&(c="x"===c.corner.precedance?["width","left"]:["height","top"],f[c[1]]-=g[c[0]]());m.bgiframe.css(f).css(a)},destroy:function(){m.bgiframe.remove();e.unbind(l)}});a.init()}function ea(b){var a=this,m=b.options.show.modal,e=b.elements,r=e.tooltip,k=".qtipmodal"+b.id,n=c(document.body),g;b.checks.modal={"^show.modal.(on|blur)$":function(){a.init();e.overlay.toggle(r.is(":visible"))}};c.extend(a,{init:function(){if(!m.on)return a;g=a.create();r.attr("is-modal-qtip",s).css("z-index",
x.modal.zindex+c(I+"[is-modal-qtip]").length).unbind(".qtipmodal").unbind(k).bind("tooltipshow.qtipmodal tooltiphide.qtipmodal",function(b,e,k){if((e=b.originalEvent)&&"tooltiphide"===b.type&&/mouse(leave|enter)/.test(e.type)&&c(e.relatedTarget).closest(g[0]).length)try{b.preventDefault()}catch(m){}else if(!e||e&&!e.solo)a[b.type.replace("tooltip","")](b,k)}).bind("tooltipfocus.qtipmodal",function(a){if(!a.isDefaultPrevented()){var b=c(I).filter("[is-modal-qtip]"),e=x.modal.zindex+b.length,k=parseInt(r[0].style.zIndex,
10);g[0].style.zIndex=e-1;b.each(function(){this.style.zIndex>k&&(this.style.zIndex-=1)});b.end().filter("."+Q).qtip("blur",a.originalEvent);r.addClass(Q)[0].style.zIndex=e;try{a.preventDefault()}catch(m){}}}).bind("tooltiphide.qtipmodal",function(a){c("[is-modal-qtip]").filter(":visible").not(r).last().qtip("focus",a)});m.escape&&c(B).unbind(k).bind("keydown"+k,function(a){27===a.keyCode&&r.hasClass(Q)&&b.hide(a)});m.blur&&e.overlay.unbind(k).bind("click"+k,function(a){r.hasClass(Q)&&b.hide(a)});
return a},create:function(){var a=c("#qtip-overlay");if(a.length)return e.overlay=a.insertAfter(c(I).last());g=e.overlay=c("\x3cdiv /\x3e",{id:"qtip-overlay",html:"\x3cdiv\x3e\x3c/div\x3e",mousedown:function(){return l}}).insertAfter(c(I).last());c(B).unbind(".qtipmodal").bind("resize.qtipmodal",function(){g.css({height:c(B).height(),width:c(B).width()})}).triggerHandler("resize");return g},toggle:function(b,e,p){if(b&&b.isDefaultPrevented())return a;b=m.effect;var y=e?"show":"hide",w=g.is(":visible"),
d=c("[is-modal-qtip]").filter(":visible").not(r);g||(g=a.create());if(g.is(":animated")&&w===e||!e&&d.length)return a;e?(g.css({left:0,top:0}),g.toggleClass("blurs",m.blur),n.bind("focusin"+k,function(a){var b=c(a.target).closest(".qtip");(1>b.length?l:parseInt(b[0].style.zIndex,10)>parseInt(r[0].style.zIndex,10))||c(a.target).closest(I)[0]===r[0]||r.find("input:visible").filter(":first").focus()})):n.undelegate("*","focusin"+k);g.stop(s,l);if(c.isFunction(b))b.call(g,e);else if(b===l)g[y]();else g.fadeTo(parseInt(p,
10)||90,e?1:0,function(){e||c(this).hide()});e||g.queue(function(a){g.css({left:"",top:""});a()});return a},show:function(b,c){return a.toggle(b,s,c)},hide:function(b,c){return a.toggle(b,l,c)},destroy:function(){var a=g;a&&((a=1>c("[is-modal-qtip]").not(r).length)?(e.overlay.remove(),c(B).unbind(".qtipmodal")):e.overlay.unbind(".qtipmodal"+b.id),n.undelegate("*","focusin"+k));return r.removeAttr("is-modal-qtip").unbind(".qtipmodal")}});a.init()}function fa(b,a,c){var e=Math.ceil(a/2),l=Math.ceil(c/
2);a={bottomright:[[0,0],[a,c],[a,0]],bottomleft:[[0,0],[a,0],[0,c]],topright:[[0,c],[a,0],[a,c]],topleft:[[0,0],[0,c],[a,c]],topcenter:[[0,c],[e,0],[a,c]],bottomcenter:[[0,0],[a,0],[e,c]],rightcenter:[[0,0],[a,l],[0,c]],leftcenter:[[a,0],[a,c],[0,l]]};a.lefttop=a.bottomright;a.righttop=a.bottomleft;a.leftbottom=a.topright;a.rightbottom=a.topleft;return a[b.string()]}function ga(b,a){function m(a,c,d,h){if(g.tip){a=k.corner.clone();c=d.adjusted;var f=b.options.position.adjust.method.split(" ");h=
f[0];var f=f[1]||f[0],e=l,m=l,r=0,p=0,t,y={},w;k.corner.fixed!==s&&("shift"===h&&"x"===a.precedance&&c.left&&"center"!==a.y?a.precedance="x"===a.precedance?"y":"x":"flip"===h&&c.left&&(a.x="center"===a.x?0<c.left?"left":"right":"left"===a.x?"right":"left"),"shift"===f&&"y"===a.precedance&&c.top&&"center"!==a.x?a.precedance="y"===a.precedance?"x":"y":"flip"===f&&c.top&&(a.y="center"===a.y?0<c.top?"top":"bottom":"top"===a.y?"bottom":"top"),a.string()===D.corner.string()||D.top===c.top&&D.left===c.left||
k.update(a,l));t=k.position(a,c);void 0!==t.right&&(t.left=-t.right);void 0!==t.bottom&&(t.top=-t.bottom);t.user=Math.max(0,n.offset);if(e="shift"===h&&!!c.left)"center"===a.x?y["margin-left"]=r=t["margin-left"]-c.left:(w=void 0!==t.right?[c.left,-t.left]:[-c.left,t.left],(r=Math.max(w[0],w[1]))>w[0]&&(d.left-=c.left,e=l),y[void 0!==t.right?"right":"left"]=r);if(m="shift"===f&&!!c.top)"center"===a.y?y["margin-top"]=p=t["margin-top"]-c.top:(w=void 0!==t.bottom?[c.top,-t.top]:[-c.top,t.top],(p=Math.max(w[0],
w[1]))>w[0]&&(d.top-=c.top,m=l),y[void 0!==t.bottom?"bottom":"top"]=p);g.tip.css(y).toggle(!(r&&p||"center"===a.x&&p||"center"===a.y&&r));d.left-=t.left.charAt?t.user:"shift"!==h||m||!e&&!m?t.left:0;d.top-=t.top.charAt?t.user:"shift"!==f||e||!e&&!m?t.top:0;D.left=c.left;D.top=c.top;D.corner=a.clone()}}function e(a,b,c){b=b?b:a[a.precedance];var d=f.hasClass(T);a=g.titlebar&&"top"===a.y?g.titlebar:g.content;b="border-"+b+"-width";f.addClass(T);a=parseInt(a.css(b),10);a=(c?a||parseInt(f.css(b),10):
a)||0;f.toggleClass(T,d);return a}function r(a){var b="y"===a.precedance,c=p[b?"width":"height"],g=p[b?"height":"width"],f=-1<a.string().indexOf("center"),e=c*(f?0.5:1),k=Math.pow;a=Math.round;var m=Math.sqrt(k(e,2)+k(g,2)),e=[d/e*m,d/g*m];e[2]=Math.sqrt(k(e[0],2)-k(d,2));e[3]=Math.sqrt(k(e[1],2)-k(d,2));f=(m+e[2]+e[3]+(f?0:e[0]))/m;c=[a(f*g),a(f*c)];return{height:c[b?0:1],width:c[b?1:0]}}var k=this,n=b.options.style.tip,g=b.elements,f=g.tooltip,D={top:0,left:0},p={width:n.width,height:n.height},
y,A,d=n.border||0,B=!!(c("\x3ccanvas /\x3e")[0]||{}).getContext;k.corner=w;k.mimic=w;k.border=d;k.offset=n.offset;k.size=p;b.checks.tip={"^position.my|style.tip.(corner|mimic|border)$":function(){k.init()||k.destroy();b.reposition()},"^style.tip.(height|width)$":function(){p={width:n.width,height:n.height};k.create();k.update();b.reposition()},"^content.title.text|style.(classes|widget)$":function(){g.tip&&k.update()}};c.extend(k,{init:function(){var a=k.detectCorner()&&(B||c.browser.msie);a&&(k.create(),
k.update(),f.unbind(".qtip-tip").bind("tooltipmove.qtip-tip",m));return a},detectCorner:function(){var a=n.corner,c=b.options.position,d=c.at,c=c.my.string?c.my.string():c.my;if(a===l||c===l&&d===l)return l;a===s?k.corner=new x.Corner(c):a.string||(k.corner=new x.Corner(a),k.corner.fixed=s);return"centercenter"!==k.corner.string()},detectColours:function(a){var d,e,h=g.tip.css("cssText","");d=a||k.corner;var m=d[d.precedance];a="border-"+m+"-color";e="border"+m.charAt(0)+m.substr(1)+"Color";var m=
/rgba?\(0, 0, 0(, 0)?\)|transparent|#123456/i,l=c(document.body).css("color");b.elements.content.css("color");var r=g.titlebar&&("top"===d.y||"center"===d.y&&h.position().top+p.height/2+n.offset<g.titlebar.outerHeight(1))?g.titlebar:g.content;f.addClass(T);y=d=h.css("background-color");A=e=h[0].style[e]||h.css(a)||f.css(a);if(!d||m.test(d))y=r.css("background-color")||"transparent",m.test(y)&&(y=f.css("background-color")||d);if(!e||m.test(e)||e===l)A=r.css(a)||"transparent",m.test(A)&&(A=e);c("*",
h).add(h).css("cssText","background-color:transparent !important;border:0 !important;");f.removeClass(T)},create:function(){var a=p.width,b=p.height;g.tip&&g.tip.remove();g.tip=c("\x3cdiv /\x3e",{"class":"ui-tooltip-tip"}).css({width:a,height:b}).prependTo(f);B?c("\x3ccanvas /\x3e").appendTo(g.tip)[0].getContext("2d").save():(g.tip.html('\x3cvml:shape coordorigin\x3d"0,0" style\x3d"display:inline-block; position:absolute; behavior:url(#default#VML);"\x3e\x3c/vml:shape\x3e\x3cvml:shape coordorigin\x3d"0,0" style\x3d"display:inline-block; position:absolute; behavior:url(#default#VML);"\x3e\x3c/vml:shape\x3e'),
c("*",g.tip).bind("click mousedown",function(a){a.stopPropagation()}))},update:function(a,b){var f=g.tip,h=f.children(),m=p.width,u=p.height,v=n.mimic,E=Math.round,N,t,K;a||(a=D.corner||k.corner);v===l?v=a:(v=new x.Corner(v),v.precedance=a.precedance,"inherit"===v.x?v.x=a.x:"inherit"===v.y?v.y=a.y:v.x===v.y&&(v[a.precedance]=a[a.precedance]));N=v.precedance;k.detectColours(a);"transparent"!==A&&"#123456"!==A?(d=e(a,w,s),0===n.border&&0<d&&(y=A),k.border=d=n.border!==s?n.border:d):k.border=d=0;t=fa(v,
m,u);k.size=K=r(a);f.css(K);f="y"===a.precedance?[E("left"===v.x?d:"right"===v.x?K.width-m-d:(K.width-m)/2),E("top"===v.y?K.height-u:0)]:[E("left"===v.x?K.width-m:0),E("top"===v.y?d:"bottom"===v.y?K.height-u-d:(K.height-u)/2)];B?(h.attr(K),h=h[0].getContext("2d"),h.restore(),h.save(),h.clearRect(0,0,3E3,3E3),h.translate(f[0],f[1]),h.beginPath(),h.moveTo(t[0][0],t[0][1]),h.lineTo(t[1][0],t[1][1]),h.lineTo(t[2][0],t[2][1]),h.closePath(),h.fillStyle=y,h.strokeStyle=A,h.lineWidth=2*d,h.lineJoin="miter",
h.miterLimit=100,d&&h.stroke(),h.fill()):(t="m"+t[0][0]+","+t[0][1]+" l"+t[1][0]+","+t[1][1]+" "+t[2][0]+","+t[2][1]+" xe",f[2]=d&&/^(r|b)/i.test(a.string())?8===parseFloat(c.browser.version,10)?2:1:0,h.css({antialias:""+(-1<v.string().indexOf("center")),left:f[0]-f[2]*Number("x"===N),top:f[1]-f[2]*Number("y"===N),width:m+d,height:u+d}).each(function(a){var b=c(this);b[b.prop?"prop":"attr"]({coordsize:m+d+" "+(u+d),path:t,fillcolor:y,filled:!!a,stroked:!a}).css({display:d||a?"block":"none"});a||""!==
b.html()||b.html('\x3cvml:stroke weight\x3d"'+2*d+'px" color\x3d"'+A+'" miterlimit\x3d"1000" joinstyle\x3d"miter"  style\x3d"behavior:url(#default#VML); display:inline-block;" /\x3e')}));b!==l&&k.position(a)},position:function(a){var b=g.tip,m={},h=Math.max(0,n.offset),p,u,v;if(n.corner===l||!b)return l;a=a||k.corner;p=a.precedance;u=r(a);v=[a.x,a.y];"x"===p&&v.reverse();c.each(v,function(b,k){var n,l;if("center"===k)n="y"===p?"left":"top",m[n]="50%",m["margin-"+n]=-Math.round(u["y"===p?"width":"height"]/
2)+h;else{n=e(a,k,s);l=c.browser.mozilla;var r=a.y+(l?"":"-")+a.x;l=(l?"-moz-":c.browser.webkit?"-webkit-":"")+(l?"border-radius-"+r:"border-"+r+"-radius");l=parseInt((g.titlebar&&"top"===a.y?g.titlebar:g.content).css(l),10)||parseInt(f.css(l),10)||0;m[k]=b?d?e(a,k):0:h+(l>n?l:0)}});m[a[p]]-=u["x"===p?"width":"height"];b.css({top:"",bottom:"",left:"",right:"",margin:""}).css(m);return m},destroy:function(){g.tip&&g.tip.remove();f.unbind(".qtip-tip")}});D.corner=new x.Corner(k.init())}var s=!0,l=!1,
w=null,A,x,J,X={},E="ui-tooltip",W="ui-widget",H="ui-state-disabled",I="div.qtip."+E,aa=E+"-default",Q=E+"-focus",ca=E+"-hover",T=E+"-fluid",R="oldtitle",U;A=c.fn.qtip=function(b,a,m){var e=(""+b).toLowerCase(),r=w,k=c.makeArray(arguments).slice(1),n=k[k.length-1],g=this[0]?c.data(this[0],"qtip"):w;if(!arguments.length&&g||"api"===e)return g;if("string"===typeof b)return this.each(function(){var b=c.data(this,"qtip");if(!b)return s;n&&n.timeStamp&&(b.cache.event=n);if("option"!==e&&"options"!==e||
!a)b[e]&&b[e].apply(b[e],k);else if(c.isPlainObject(a)||void 0!==m)b.set(a,m);else return r=b.get(a),l}),r!==w?r:this;if("object"===typeof b||!arguments.length)return g=N(c.extend(s,{},b)),A.bind.call(this,g,n)};A.bind=function(b,a){return this.each(function(m){function e(a){function b(){f.render("object"===typeof a||r.show.ready);k.show.add(k.hide).unbind(g)}if(f.cache.disabled)return l;f.cache.event=c.extend({},a);f.cache.target=a?c(a.target):[void 0];0<r.show.delay?(clearTimeout(f.timers.show),
f.timers.show=setTimeout(b,r.show.delay),n.show!==n.hide&&k.hide.bind(n.hide,function(){clearTimeout(f.timers.show)})):b()}var r,k,n,g,f;m=c.isArray(b.id)?b.id[m]:b.id;m=!m||m===l||1>m.length||X[m]?A.nextid++:X[m]=m;g=".qtip-"+m+"-create";f=Y.call(this,m,b);if(f===l)return s;r=f.options;c.each(x,function(){"initialize"===this.initialize&&this(f)});k={show:r.show.target,hide:r.hide.target};n={show:c.trim(""+r.show.event).replace(/ /g,g+" ")+g,hide:c.trim(""+r.hide.event).replace(/ /g,g+" ")+g};/mouse(over|enter)/i.test(n.show)&&
!/mouse(out|leave)/i.test(n.hide)&&(n.hide+=" mouseleave"+g);k.show.bind("mousemove"+g,function(a){J={pageX:a.pageX,pageY:a.pageY,type:"mousemove"}});k.show.bind(n.show,e);(r.show.ready||r.prerender)&&e(a)})};x=A.plugins={Corner:function(b){b=(""+b).replace(/([A-Z])/," $1").replace(/middle/gi,"center").toLowerCase();this.x=(b.match(/left|right/i)||b.match(/center/)||["inherit"])[0].toLowerCase();this.y=(b.match(/top|bottom|center/i)||["inherit"])[0].toLowerCase();b=b.charAt(0);this.precedance="t"===
b||"b"===b?"y":"x";this.string=function(){return"y"===this.precedance?this.y+this.x:this.x+this.y};this.abbrev=function(){var a=this.x.substr(0,1),b=this.y.substr(0,1);return a===b?a:"c"===a||"c"!==a&&"c"!==b?b+a:a+b};this.clone=function(){return{x:this.x,y:this.y,precedance:this.precedance,string:this.string,abbrev:this.abbrev,clone:this.clone}}},offset:function(b,a){var c=b.offset(),e=a,l=0,k=document.body,n;if(e){do if("static"!==e.css("position")&&(n=e[0]===k?{left:parseInt(e.css("left"),10)||
0,top:parseInt(e.css("top"),10)||0}:e.position(),c.left-=n.left+(parseInt(e.css("borderLeftWidth"),10)||0)+(parseInt(e.css("marginLeft"),10)||0),c.top-=n.top+(parseInt(e.css("borderTopWidth"),10)||0),n=e.css("overflow"),"scroll"!==n&&"auto"!==n||l++),e[0]===k)break;while(e=e.offsetParent());a[0]!==k&&l&&(c.left+=1*a.scrollLeft(),c.top+=1*a.scrollTop())}return c},iOS:parseFloat((""+(/CPU.*OS ([0-9_]{1,3})|(CPU like).*AppleWebKit.*Mobile/i.exec(navigator.userAgent)||[0,""])[1]).replace("undefined",
"3_2").replace("_","."))||l,fn:{attr:function(b,a){if(this.length){var m=this[0],e=c.data(m,"qtip");if("title"===b&&e&&"object"===typeof e&&e.options.suppress){if(2>arguments.length)return c.attr(m,R);e&&"title"===e.options.content.attr&&e.cache.attr&&e.set("content.text",a);return this.attr(R,a)}}return c.fn.attr_replacedByqTip.apply(this,arguments)},clone:function(b){c([]);var a=c.fn.clone_replacedByqTip.apply(this,arguments);b||a.filter("["+R+"]").attr("title",function(){return c.attr(this,R)}).removeAttr(R);
return a},remove:c.ui?w:function(b,a){c.ui||c(this).each(function(){a||b&&!c.filter(b,[this]).length||c("*",this).add(this).each(function(){c(this).triggerHandler("remove")})})}}};c.each(x.fn,function(b,a){if(!a||c.fn[b+"_replacedByqTip"])return s;var m=c.fn[b+"_replacedByqTip"]=c.fn[b];c.fn[b]=function(){return a.apply(this,arguments)||m.apply(this,arguments)}});A.version="2.0.0pre";A.nextid=0;A.inactiveEvents="click dblclick mousedown mouseup mousemove mouseleave mouseenter".split(" ");A.zindex=
15E3;A.defaults={prerender:l,id:l,overwrite:s,suppress:s,content:{text:s,attr:"title",title:{text:l,button:l}},position:{my:"top left",at:"bottom right",target:l,container:l,viewport:l,adjust:{x:0,y:0,mouse:s,resize:s,method:"flip flip"},effect:function(b,a,m){c(this).animate(a,{duration:200,queue:l})}},show:{target:l,event:"mouseenter",effect:s,delay:90,solo:l,ready:l,autofocus:l},hide:{target:l,event:"mouseleave",effect:s,delay:0,fixed:l,inactive:l,leave:"window",distance:l},style:{classes:"",widget:l,
width:l,height:l},events:{render:w,move:w,show:w,hide:w,toggle:w,visible:w,focus:w,blur:w}};x.ajax=function(b){var a=b.plugins.ajax;return"object"===typeof a?a:b.plugins.ajax=new Z(b)};x.ajax.initialize="render";x.ajax.sanitize=function(b){var a=b.content;a&&"ajax"in a&&(a=a.ajax,"object"!==typeof a&&(a=b.content.ajax={url:a}),"boolean"!==typeof a.once&&a.once&&(a.once=!!a.once))};c.extend(s,A.defaults,{content:{ajax:{loading:s,once:s}}});x.bgiframe=function(b){var a=c.browser,m=b.plugins.bgiframe;
return 1>c("select, object").length||!a.msie||"6"!==(""+a.version).charAt(0)?l:"object"===typeof m?m:b.plugins.bgiframe=new V(b)};x.bgiframe.initialize="render";x.imagemap=function(b,a,m){function e(a,b,c){for(var e=0,f=1,g=1,k=0,h=0,m=a.width,l=a.height;0<m&&0<l&&0<f&&0<g;)for(m=Math.floor(m/2),l=Math.floor(l/2),f="left"===c.x?m:"right"===c.x?a.width-m:f+Math.floor(m/2),g="top"===c.y?l:"bottom"===c.y?a.height-l:g+Math.floor(l/2),e=b.length;e--&&!(2>b.length);)k=b[e][0]-a.offset.left,h=b[e][1]-a.offset.top,
("left"===c.x&&k>=f||"right"===c.x&&k<=f||"center"===c.x&&(k<f||k>a.width-f)||"top"===c.y&&h>=g||"bottom"===c.y&&h<=g||"center"===c.y&&(h<g||h>a.height-g))&&b.splice(e,1);return{left:b[0][0],top:b[0][1]}}b.jquery||(b=c(b));var l=(b[0].shape||b.attr("shape")).toLowerCase(),k=(b[0].coords||b.attr("coords")).split(","),n=[];b=c('img[usemap\x3d"#'+b.parent("map").attr("name")+'"]');var g=b.offset(),f={width:0,height:0,offset:{top:1E10,right:0,bottom:0,left:1E10}},s=0,p=0;g.left+=Math.ceil((b.outerWidth()-
b.width())/2);g.top+=Math.ceil((b.outerHeight()-b.height())/2);if("poly"===l)for(s=k.length;s--;)p=[parseInt(k[--s],10),parseInt(k[s+1],10)],p[0]>f.offset.right&&(f.offset.right=p[0]),p[0]<f.offset.left&&(f.offset.left=p[0]),p[1]>f.offset.bottom&&(f.offset.bottom=p[1]),p[1]<f.offset.top&&(f.offset.top=p[1]),n.push(p);else n=c.map(k,function(a){return parseInt(a,10)});switch(l){case "rect":f={width:Math.abs(n[2]-n[0]),height:Math.abs(n[3]-n[1]),offset:{left:Math.min(n[0],n[2]),top:Math.min(n[1],n[3])}};
break;case "circle":f={width:n[2]+2,height:n[2]+2,offset:{left:n[0],top:n[1]}};break;case "poly":c.extend(f,{width:Math.abs(f.offset.right-f.offset.left),height:Math.abs(f.offset.bottom-f.offset.top)}),"centercenter"===a.string()?f.offset={left:f.offset.left+f.width/2,top:f.offset.top+f.height/2}:(f.offset=e(f,n.slice(),a),!m||"flip"!==m[0]&&"flip"!==m[1]||(f.flipoffset=e(f,n.slice(),{x:"left"===a.x?"right":"right"===a.x?"left":"center",y:"top"===a.y?"bottom":"bottom"===a.y?"top":"center"}),f.flipoffset.left-=
f.offset.left,f.flipoffset.top-=f.offset.top)),f.width=f.height=0}f.offset.left+=g.left;f.offset.top+=g.top;return f};x.modal=function(b){var a=b.plugins.modal;return"object"===typeof a?a:b.plugins.modal=new ea(b)};x.modal.initialize="render";x.modal.sanitize=function(b){b.show&&("object"!==typeof b.show.modal?b.show.modal={on:!!b.show.modal}:"undefined"===typeof b.show.modal.on&&(b.show.modal.on=s))};x.modal.zindex=A.zindex+1E3;c.extend(s,A.defaults,{show:{modal:{on:l,effect:s,blur:s,escape:s}}});
x.svg=function(b,a){var m=c(document),e=b[0],l={width:0,height:0,offset:{top:1E10,left:1E10}},k,n,g;if(e.getBBox&&e.parentNode){k=e.getBBox();n=e.getScreenCTM();e=e.farthestViewportElement||e;if(!e.createSVGPoint)return l;e=e.createSVGPoint();e.x=k.x;e.y=k.y;g=e.matrixTransform(n);l.offset.left=g.x;l.offset.top=g.y;e.x+=k.width;e.y+=k.height;g=e.matrixTransform(n);l.width=g.x-l.offset.left;l.height=g.y-l.offset.top;l.offset.left+=m.scrollLeft();l.offset.top+=m.scrollTop()}return l};x.tip=function(b){var a=
b.plugins.tip;return"object"===typeof a?a:b.plugins.tip=new ga(b)};x.tip.initialize="render";x.tip.sanitize=function(b){var a=b.style;a&&"tip"in a&&(a=b.style.tip,"object"!==typeof a&&(b.style.tip={corner:a}),/string|boolean/i.test(typeof a.corner)||(a.corner=s),"number"!==typeof a.width&&delete a.width,"number"!==typeof a.height&&delete a.height,"number"!==typeof a.border&&a.border!==s&&delete a.border,"number"!==typeof a.offset&&delete a.offset)};c.extend(s,A.defaults,{style:{tip:{corner:s,mimic:l,
width:6,height:6,border:s,offset:0}}})})(jQuery,window);PrimeFacesExt.widget.Tooltip=PrimeFaces.widget.BaseWidget.extend({init:function(c){var B=c.id;this.cfg=c;var L=this;this.cfg.forTarget&&(this.cfg.forTarget=PrimeFaces.expressions.SearchExpressionFacade.resolveComponentsAsSelector(this.cfg.forTarget));this.cfg.global?(this.cfg.position.container=$(document.body),c=null==this.cfg.forTarget?"*[title]":this.cfg.forTarget.selector+"[title]",$("body").off(".tooltip").on(this.cfg.show.event+".tooltip",c,function(c){var B=$(this);if(!B.is(":disabled")){B.attr("oldtitle",
B.attr("title")).attr("title","");var O=L.cfg;O.content={};O.content.text=B.attr("oldtitle");O.show.ready=!0;B.qtip(O,c)}})):this.cfg.shared?(c=PrimeFaces.escapeClientId(B),$(document.body).children("#ui-tooltip-shared-"+c).remove(),c=$("\x3cdiv id\x3d'ui-tooltip-shared-"+c+"'/\x3e"),c.appendTo(document.body),this.cfg.position.container=c,$("\x3cdiv/\x3e").qtip(this.cfg)):(this.cfg.position.container=$(document.body),$(this.cfg.forTarget).qtip("destroy").qtip(this.cfg),this.cfg.autoShow&&(c="debouncedresize.tooltip"+
PrimeFaces.escapeClientId(B),$(window).off(c).on(c,function(c){$(L.cfg.forTarget).qtip("reposition")})));this.removeScriptElement(B)},show:function(){this.cfg.forTarget&&$(this.cfg.forTarget).qtip("show")},hide:function(){this.cfg.forTarget&&$(this.cfg.forTarget).qtip("hide")},destroy:function(){this.cfg.forTarget&&($(this.cfg.forTarget).qtip("destroy"),this.cfg.autoShow&&$(window).off("debouncedresize.tooltip"+PrimeFaces.escapeClientId(this.cfg.id)))},reposition:function(){this.cfg.forTarget&&$(this.cfg.forTarget).qtip("reposition")}});
$.fn.qtip.defaults.style.widget=!0;$.fn.qtip.defaults.style.classes="ui-tooltip-rounded ui-tooltip-shadow";(function(c){var B=c.event,L,M;L=B.special.debouncedresize={setup:function(){c(this).on("resize",L.handler)},teardown:function(){c(this).off("resize",L.handler)},handler:function(c,O){var Y=this,Z=arguments,V=function(){c.type="debouncedresize";B.dispatch.apply(Y,Z)};M&&clearTimeout(M);O?V():M=setTimeout(V,L.threshold)},threshold:250}})(jQuery);