").attr({role:"log","aria-live":"assertive","aria-relevant":"additions"}).addClass("ui-helper-hidden-accessible").appendTo(this.document[0].body)},_setOption:function(t,e){var i=this;"disabled"===t?(this[e?"_disable":"_enable"](),this.options[t]=e):(this._super(t,e),"content"===t&&x.each(this.tooltips,function(t,e){i._updateContent(e.element)}))},_disable:function(){var s=this;x.each(this.tooltips,function(t,e){var i=x.Event("blur");i.target=i.currentTarget=e.element[0],s.close(i,!0)}),this.element.find(this.options.items).addBack().each(function(){var t=x(this);t.is("[title]")&&t.data("ui-tooltip-title",t.attr("title")).removeAttr("title")})},_enable:function(){this.element.find(this.options.items).addBack().each(function(){var t=x(this);t.data("ui-tooltip-title")&&t.attr("title",t.data("ui-tooltip-title"))})},open:function(t){var i=this,e=x(t?t.target:this.element).closest(this.options.items);e.length&&!e.data("ui-tooltip-id")&&(e.attr("title")&&e.data("ui-tooltip-title",e.attr("title")),e.data("ui-tooltip-open",!0),t&&"mouseover"===t.type&&e.parents().each(function(){var t,e=x(this);e.data("ui-tooltip-open")&&((t=x.Event("blur")).target=t.currentTarget=this,i.close(t,!0)),e.attr("title")&&(e.uniqueId(),i.parents[this.id]={element:this,title:e.attr("title")},e.attr("title",""))}),this._registerCloseHandlers(t,e),this._updateContent(e,t))},_updateContent:function(e,i){var t=this.options.content,s=this,n=i?i.type:null;if("string"==typeof t)return this._open(i,e,t);(t=t.call(e[0],function(t){s._delay(function(){e.data("ui-tooltip-open")&&(i&&(i.type=n),this._open(i,e,t))})}))&&this._open(i,e,t)},_open:function(t,e,i){var s,n,o,a,r=x.extend({},this.options.position);function h(t){r.of=t,n.is(":hidden")||n.position(r)}i&&((s=this._find(e))?s.tooltip.find(".ui-tooltip-content").html(i):(e.is("[title]")&&(t&&"mouseover"===t.type?e.attr("title",""):e.removeAttr("title")),s=this._tooltip(e),n=s.tooltip,this._addDescribedBy(e,n.attr("id")),n.find(".ui-tooltip-content").html(i),this.liveRegion.children().hide(),i.clone?(a=i.clone()).removeAttr("id").find("[id]").removeAttr("id"):a=i,x("
").html(a).appendTo(this.liveRegion),this.options.track&&t&&/^mouse/.test(t.type)?(this._on(this.document,{mousemove:h}),h(t)):n.position(x.extend({of:e},this.options.position)),n.hide(),this._show(n,this.options.show),this.options.show&&this.options.show.delay&&(o=this.delayedShow=setInterval(function(){n.is(":visible")&&(h(r.of),clearInterval(o))},x.fx.interval)),this._trigger("open",t,{tooltip:n})))},_registerCloseHandlers:function(t,e){var i={keyup:function(t){t.keyCode===x.ui.keyCode.ESCAPE&&((t=x.Event(t)).currentTarget=e[0],this.close(t,!0))}};e[0]!==this.element[0]&&(i.remove=function(){this._removeTooltip(this._find(e).tooltip)}),t&&"mouseover"!==t.type||(i.mouseleave="close"),t&&"focusin"!==t.type||(i.focusout="close"),this._on(!0,e,i)},close:function(t){var e,i=this,s=x(t?t.currentTarget:this.element),n=this._find(s);n?(e=n.tooltip,n.closing||(clearInterval(this.delayedShow),s.data("ui-tooltip-title")&&!s.attr("title")&&s.attr("title",s.data("ui-tooltip-title")),this._removeDescribedBy(s),n.hiding=!0,e.stop(!0),this._hide(e,this.options.hide,function(){i._removeTooltip(x(this))}),s.removeData("ui-tooltip-open"),this._off(s,"mouseleave focusout keyup"),s[0]!==this.element[0]&&this._off(s,"remove"),this._off(this.document,"mousemove"),t&&"mouseleave"===t.type&&x.each(this.parents,function(t,e){x(e.element).attr("title",e.title),delete i.parents[t]}),n.closing=!0,this._trigger("close",t,{tooltip:e}),n.hiding)||(n.closing=!1)):s.removeData("ui-tooltip-open")},_tooltip:function(t){var e=x("
").attr("role","tooltip").addClass("ui-tooltip ui-widget ui-corner-all ui-widget-content "+(this.options.tooltipClass||"")),i=e.uniqueId().attr("id");return x("
").addClass("ui-tooltip-content").appendTo(e),e.appendTo(this.document[0].body),this.tooltips[i]={element:t,tooltip:e}},_find:function(t){t=t.data("ui-tooltip-id");return t?this.tooltips[t]:null},_removeTooltip:function(t){t.remove(),delete this.tooltips[t.attr("id")]},_destroy:function(){var s=this;x.each(this.tooltips,function(t,e){var i=x.Event("blur"),e=e.element;i.target=i.currentTarget=e[0],s.close(i,!0),x("#"+t).remove(),e.data("ui-tooltip-title")&&(e.attr("title")||e.attr("title",e.data("ui-tooltip-title")),e.removeData("ui-tooltip-title"))}),this.liveRegion.remove()}});var m,v,b,w,j,$,_,y,T,I,E,K,U,X,G,Y,Q,V,J,N,Z="ui-effects-",tt=x;function P(t,e,i){var s=T[e.type]||{};return null==t?i||!e.def?null:e.def:(t=s.floor?~~t:parseFloat(t),isNaN(t)?e.def:s.mod?(t+s.mod)%s.mod:t<0?0:s.max")[0],E=v.each,f.style.cssText="background-color:rgba(1,1,1,.5)",I.rgba=-1o.mod/2?s+=o.mod:s-n>o.mod/2&&(s-=o.mod)),h[i]=P((n-s)*a+s,e)))}),this[t](h)},blend:function(t){var e,i,s;return 1===this._rgba[3]?this:(e=this._rgba.slice(),i=e.pop(),s=_(t)._rgba,_(v.map(e,function(t,e){return(1-i)*s[e]+i*t})))},toRgbaString:function(){var t="rgba(",e=v.map(this._rgba,function(t,e){return null==t?2
").addClass("ui-effects-wrapper").css({fontSize:"100%",background:"transparent",border:"none",margin:0,padding:0}),e={width:i.width(),height:i.height()},n=document.activeElement;try{n.id}catch(t){n=document.body}return i.wrap(t),i[0]!==n&&!x.contains(i[0],n)||x(n).focus(),t=i.parent(),"static"===i.css("position")?(t.css({position:"relative"}),i.css({position:"relative"})):(x.extend(s,{position:i.css("position"),zIndex:i.css("z-index")}),x.each(["top","left","bottom","right"],function(t,e){s[e]=i.css(e),isNaN(parseInt(s[e],10))&&(s[e]="auto")}),i.css({position:"relative",top:0,left:0,right:"auto",bottom:"auto"})),i.css(e),t.css(s).show()},removeWrapper:function(t){var e=document.activeElement;return t.parent().is(".ui-effects-wrapper")&&(t.parent().replaceWith(t),t[0]!==e&&!x.contains(t[0],e)||x(e).focus()),t},setTransition:function(s,t,n,o){return o=o||{},x.each(t,function(t,e){var i=s.cssUnit(e);0
").css({position:"absolute",visibility:"visible",left:-s*f,top:-i*p}).parent().addClass("ui-effects-explode").css({position:"absolute",overflow:"hidden",width:f,height:p,left:n+(d?a*f:0),top:o+(d?r*p:0),opacity:d?0:1}).animate({left:n+(d?0:a*f),top:o+(d?0:r*p),opacity:d?1:0},t.duration||500,t.easing,m)},x.effects.effect.fade=function(t,e){var i=x(this),s=x.effects.setMode(i,t.mode||"toggle");i.animate({opacity:s},{queue:!1,duration:t.duration,easing:t.easing,complete:e})},x.effects.effect.fold=function(t,e){var i,s=x(this),n=["position","top","bottom","left","right","height","width"],o=x.effects.setMode(s,t.mode||"hide"),a="show"===o,r="hide"===o,o=t.size||15,h=/([0-9]+)%/.exec(o),l=!!t.horizFirst,c=a!=l,d=c?["width","height"]:["height","width"],u=t.duration/2,f={},p={};x.effects.save(s,n),s.show(),i=x.effects.createWrapper(s).css({overflow:"hidden"}),c=c?[i.width(),i.height()]:[i.height(),i.width()],h&&(o=parseInt(h[1],10)/100*c[r?0:1]),a&&i.css(l?{height:0,width:o}:{height:o,width:0}),f[d[0]]=a?c[0]:o,p[d[1]]=a?c[1]:0,i.animate(f,u,t.easing).animate(p,u,t.easing,function(){r&&s.hide(),x.effects.restore(s,n),x.effects.removeWrapper(s),e()})},x.effects.effect.highlight=function(t,e){var i=x(this),s=["backgroundImage","backgroundColor","opacity"],n=x.effects.setMode(i,t.mode||"show"),o={backgroundColor:i.css("backgroundColor")};"hide"===n&&(o.opacity=0),x.effects.save(i,s),i.show().css({backgroundImage:"none",backgroundColor:t.color||"#ffff99"}).animate(o,{queue:!1,duration:t.duration,easing:t.easing,complete:function(){"hide"===n&&i.hide(),x.effects.restore(i,s),e()}})},x.effects.effect.size=function(o,t){var e,a,r=x(this),i=["position","top","bottom","left","right","width","height","overflow","opacity"],h=["width","height","overflow"],s=["fontSize"],l=["borderTopWidth","borderBottomWidth","paddingTop","paddingBottom"],c=["borderLeftWidth","borderRightWidth","paddingLeft","paddingRight"],n=x.effects.setMode(r,o.mode||"effect"),d=o.restore||"effect"!==n,u=o.scale||"both",f=o.origin||["middle","center"],p=r.css("position"),g=d?i:["position","top","bottom","left","right","overflow","opacity"],m={height:0,width:0,outerHeight:0,outerWidth:0};"show"===n&&r.show(),e={height:r.height(),width:r.width(),outerHeight:r.outerHeight(),outerWidth:r.outerWidth()},"toggle"===o.mode&&"show"===n?(r.from=o.to||m,r.to=o.from||e):(r.from=o.from||("show"===n?m:e),r.to=o.to||("hide"===n?m:e)),a={from:{y:r.from.height/e.height,x:r.from.width/e.width},to:{y:r.to.height/e.height,x:r.to.width/e.width}},"box"!==u&&"both"!==u||(a.from.y!==a.to.y&&(g=g.concat(l),r.from=x.effects.setTransition(r,l,a.from.y,r.from),r.to=x.effects.setTransition(r,l,a.to.y,r.to)),a.from.x!==a.to.x&&(g=g.concat(c),r.from=x.effects.setTransition(r,c,a.from.x,r.from),r.to=x.effects.setTransition(r,c,a.to.x,r.to))),"content"!==u&&"both"!==u||a.from.y!==a.to.y&&(g=g.concat(s).concat(h),r.from=x.effects.setTransition(r,s,a.from.y,r.from),r.to=x.effects.setTransition(r,s,a.to.y,r.to)),x.effects.save(r,g),r.show(),x.effects.createWrapper(r),r.css("overflow","hidden").css(r.from),f&&(m=x.effects.getBaseline(f,e),r.from.top=(e.outerHeight-r.outerHeight())*m.y,r.from.left=(e.outerWidth-r.outerWidth())*m.x,r.to.top=(e.outerHeight-r.to.outerHeight)*m.y,r.to.left=(e.outerWidth-r.to.outerWidth)*m.x),r.css(r.from),"content"!==u&&"both"!==u||(l=l.concat(["marginTop","marginBottom"]).concat(s),c=c.concat(["marginLeft","marginRight"]),h=i.concat(l).concat(c),r.find("*[width]").each(function(){var t=x(this),e=t.height(),i=t.width(),s=t.outerHeight(),n=t.outerWidth();d&&x.effects.save(t,h),t.from={height:e*a.from.y,width:i*a.from.x,outerHeight:s*a.from.y,outerWidth:n*a.from.x},t.to={height:e*a.to.y,width:i*a.to.x,outerHeight:e*a.to.y,outerWidth:i*a.to.x},a.from.y!==a.to.y&&(t.from=x.effects.setTransition(t,l,a.from.y,t.from),t.to=x.effects.setTransition(t,l,a.to.y,t.to)),a.from.x!==a.to.x&&(t.from=x.effects.setTransition(t,c,a.from.x,t.from),t.to=x.effects.setTransition(t,c,a.to.x,t.to)),t.css(t.from),t.animate(t.to,o.duration,o.easing,function(){d&&x.effects.restore(t,h)})})),r.animate(r.to,{queue:!1,duration:o.duration,easing:o.easing,complete:function(){0===r.to.opacity&&r.css("opacity",r.from.opacity),"hide"===n&&r.hide(),x.effects.restore(r,g),d||("static"===p?r.css({position:"relative",top:r.to.top,left:r.to.left}):x.each(["top","left"],function(n,t){r.css(t,function(t,e){var i=parseInt(e,10),s=n?r.to.left:r.to.top;return"auto"===e?s+"px":i+s+"px"})})),x.effects.removeWrapper(r),t()}})},x.effects.effect.scale=function(t,e){var i=x(this),s=x.extend(!0,{},t),n=x.effects.setMode(i,t.mode||"effect"),o=parseInt(t.percent,10)||(0===parseInt(t.percent,10)||"hide"===n?0:100),a=t.direction||"both",r=t.origin,h={height:i.height(),width:i.width(),outerHeight:i.outerHeight(),outerWidth:i.outerWidth()},l="horizontal"!==a?o/100:1,a="vertical"!==a?o/100:1;s.effect="size",s.queue=!1,s.complete=e,"effect"!==n&&(s.origin=r||["middle","center"],s.restore=!0),s.from=t.from||("show"===n?{height:0,width:0,outerHeight:0,outerWidth:0}:h),s.to={height:h.height*l,width:h.width*a,outerHeight:h.outerHeight*l,outerWidth:h.outerWidth*a},s.fade&&("show"===n&&(s.from.opacity=0,s.to.opacity=1),"hide"===n)&&(s.from.opacity=1,s.to.opacity=0),i.effect(s)},x.effects.effect.puff=function(t,e){var i=x(this),s=x.effects.setMode(i,t.mode||"hide"),n="hide"===s,o=parseInt(t.percent,10)||150,a=o/100,r={height:i.height(),width:i.width(),outerHeight:i.outerHeight(),outerWidth:i.outerWidth()};x.extend(t,{effect:"scale",queue:!1,fade:!0,mode:s,complete:e,percent:n?o:100,from:n?r:{height:r.height*a,width:r.width*a,outerHeight:r.outerHeight*a,outerWidth:r.outerWidth*a}}),i.effect(t)},x.effects.effect.pulsate=function(t,e){var i,s=x(this),n=x.effects.setMode(s,t.mode||"show"),o="show"===n,a="hide"===n,r=2*(t.times||5)+(o||"hide"===n?1:0),h=t.duration/r,l=0,n=s.queue(),c=n.length;for(!o&&s.is(":visible")||(s.css("opacity",0).show(),l=1),i=1;i
").appendTo(document.body).addClass(t.className).css({top:s.top-a,left:s.left-o,height:i.innerHeight(),width:i.innerWidth(),position:n?"fixed":"absolute"}).animate(r,t.duration,t.easing,function(){h.remove(),e()})}});