").attr("id",t).data("ui-tabs-destroy",!0)},_setOptionDisabled:function(t){var e,s,n;for(i.isArray(t)&&(t.length?t.length===this.anchors.length&&(t=!0):t=!1),n=0;s=this.tabs[n];n++)e=i(s),t===!0||i.inArray(n,t)!==-1?(e.attr("aria-disabled","true"),this._addClass(e,null,"ui-state-disabled")):(e.removeAttr("aria-disabled"),this._removeClass(e,null,"ui-state-disabled"));this.options.disabled=t,this._toggleClass(this.widget(),this.widgetFullName+"-disabled",null,t===!0)},_setupEvents:function(t){var e={};t&&i.each(t.split(" "),function(s,n){e[n]="_eventHandler"}),this._off(this.anchors.add(this.tabs).add(this.panels)),this._on(!0,this.anchors,{click:function(s){s.preventDefault()}}),this._on(this.anchors,e),this._on(this.tabs,{keydown:"_tabKeydown"}),this._on(this.panels,{keydown:"_panelKeydown"}),this._focusable(this.tabs),this._hoverable(this.tabs)},_setupHeightStyle:function(t){var e,s=this.element.parent();t==="fill"?(e=s.height(),e-=this.element.outerHeight()-this.element.height(),this.element.siblings(":visible").each(function(){var n=i(this),o=n.css("position");o!=="absolute"&&o!=="fixed"&&(e-=n.outerHeight(!0))}),this.element.children().not(this.panels).each(function(){e-=i(this).outerHeight(!0)}),this.panels.each(function(){i(this).height(Math.max(0,e-i(this).innerHeight()+i(this).height()))}).css("overflow","auto")):t==="auto"&&(e=0,this.panels.each(function(){e=Math.max(e,i(this).height("").height())}).height(e))},_eventHandler:function(t){var e=this.options,s=this.active,n=i(t.currentTarget).closest("li"),o=n[0]===s[0],a=o&&e.collapsible,r=a?i():this._getPanelForTab(n),h=s.length?this._getPanelForTab(s):i(),l={oldTab:s,oldPanel:h,newTab:a?i():n,newPanel:r};t.preventDefault(),n.hasClass("ui-state-disabled")||n.hasClass("ui-tabs-loading")||this.running||o&&!e.collapsible||this._trigger("beforeActivate",t,l)===!1||(e.active=!a&&this.tabs.index(n),this.active=o?i():n,this.xhr&&this.xhr.abort(),h.length||r.length||i.error("jQuery UI Tabs: Mismatching fragment identifier."),r.length&&this.load(this.tabs.index(n),t),this._toggle(t,l))},_toggle:function(t,e){function s(){o.running=!1,o._trigger("activate",t,e)}function n(){o._addClass(e.newTab.closest("li"),"ui-tabs-active","ui-state-active"),a.length&&o.options.show?o._show(a,o.options.show,s):(a.show(),s())}var o=this,a=e.newPanel,r=e.oldPanel;this.running=!0,r.length&&this.options.hide?this._hide(r,this.options.hide,function(){o._removeClass(e.oldTab.closest("li"),"ui-tabs-active","ui-state-active"),n()}):(this._removeClass(e.oldTab.closest("li"),"ui-tabs-active","ui-state-active"),r.hide(),n()),r.attr("aria-hidden","true"),e.oldTab.attr({"aria-selected":"false","aria-expanded":"false"}),a.length&&r.length?e.oldTab.attr("tabIndex",-1):a.length&&this.tabs.filter(function(){return i(this).attr("tabIndex")===0}).attr("tabIndex",-1),a.attr("aria-hidden","false"),e.newTab.attr({"aria-selected":"true","aria-expanded":"true",tabIndex:0})},_activate:function(t){var e,s=this._findActive(t);s[0]!==this.active[0]&&(s.length||(s=this.active),e=s.find(".ui-tabs-anchor")[0],this._eventHandler({target:e,currentTarget:e,preventDefault:i.noop}))},_findActive:function(t){return t===!1?i():this.tabs.eq(t)},_getIndex:function(t){return typeof t=="string"&&(t=this.anchors.index(this.anchors.filter("[href$='"+i.ui.escapeSelector(t)+"']"))),t},_destroy:function(){this.xhr&&this.xhr.abort(),this.tablist.removeAttr("role").off(this.eventNamespace),this.anchors.removeAttr("role tabIndex").removeUniqueId(),this.tabs.add(this.panels).each(function(){i.data(this,"ui-tabs-destroy")?i(this).remove():i(this).removeAttr("role tabIndex aria-live aria-busy aria-selected aria-labelledby aria-hidden aria-expanded")}),this.tabs.each(function(){var t=i(this),e=t.data("ui-tabs-aria-controls");e?t.attr("aria-controls",e).removeData("ui-tabs-aria-controls"):t.removeAttr("aria-controls")}),this.panels.show(),this.options.heightStyle!=="content"&&this.panels.css("height","")},enable:function(t){var e=this.options.disabled;e!==!1&&(t===void 0?e=!1:(t=this._getIndex(t),e=i.isArray(e)?i.map(e,function(s){return s!==t?s:null}):i.map(this.tabs,function(s,n){return n!==t?n:null})),this._setOptionDisabled(e))},disable:function(t){var e=this.options.disabled;if(e!==!0){if(t===void 0)e=!0;else{if(t=this._getIndex(t),i.inArray(t,e)!==-1)return;e=i.isArray(e)?i.merge([t],e).sort():[t]}this._setOptionDisabled(e)}},load:function(t,e){t=this._getIndex(t);var s=this,n=this.tabs.eq(t),o=n.find(".ui-tabs-anchor"),a=this._getPanelForTab(n),r={tab:n,panel:a},h=function(l,u){u==="abort"&&s.panels.stop(!1,!0),s._removeClass(n,"ui-tabs-loading"),a.removeAttr("aria-busy"),l===s.xhr&&delete s.xhr};this._isLocal(o[0])||(this.xhr=i.ajax(this._ajaxSettings(o,e,r)),this.xhr&&this.xhr.statusText!=="canceled"&&(this._addClass(n,"ui-tabs-loading"),a.attr("aria-busy","true"),this.xhr.done(function(l,u,p){setTimeout(function(){a.html(l),s._trigger("load",e,r),h(p,u)},1)}).fail(function(l,u){setTimeout(function(){h(l,u)},1)})))},_ajaxSettings:function(t,e,s){var n=this;return{url:t.attr("href").replace(/#.*$/,""),beforeSend:function(o,a){return n._trigger("beforeLoad",e,i.extend({jqXHR:o,ajaxSettings:a},s))}}},_getPanelForTab:function(t){var e=i(t).attr("aria-controls");return this.element.find(this._sanitizeSelector("#"+e))}}),i.uiBackCompat!==!1&&i.widget("ui.tabs",i.ui.tabs,{_processTabs:function(){this._superApply(arguments),this._addClass(this.tabs,"ui-tab")}}),i.ui.tabs;var Q="ui-effects-",Z="ui-effects-style",tt="ui-effects-animated",ct=i;i.effects={effect:{}},function(t,e){function s(c,g,_){var v=p[g.type]||{};return c==null?_||!g.def?null:g.def:(c=v.floor?~~c:parseFloat(c),isNaN(c)?g.def:v.mod?(c+v.mod)%v.mod:0>c?0:c>v.max?v.max:c)}function n(c){var g=l(),_=g._rgba=[];return c=c.toLowerCase(),m(h,function(v,b){var y,C=b.re.exec(c),x=C&&b.parse(C),k=b.space||"rgba";return x?(y=g[k](x),g[u[k].cache]=y[u[k].cache],_=g._rgba=y._rgba,!1):e}),_.length?(_.join()==="0,0,0,0"&&t.extend(_,a.transparent),g):a[c]}function o(c,g,_){return 1>6*(_=(_+1)%1)?c+6*(g-c)*_:1>2*_?g:2>3*_?c+6*(g-c)*(2/3-_):c}var a,r=/^([\-+])=\s*(\d+\.?\d*)/,h=[{re:/rgba?\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*(?:,\s*(\d?(?:\.\d+)?)\s*)?\)/,parse:function(c){return[c[1],c[2],c[3],c[4]]}},{re:/rgba?\(\s*(\d+(?:\.\d+)?)\%\s*,\s*(\d+(?:\.\d+)?)\%\s*,\s*(\d+(?:\.\d+)?)\%\s*(?:,\s*(\d?(?:\.\d+)?)\s*)?\)/,parse:function(c){return[2.55*c[1],2.55*c[2],2.55*c[3],c[4]]}},{re:/#([a-f0-9]{2})([a-f0-9]{2})([a-f0-9]{2})/,parse:function(c){return[parseInt(c[1],16),parseInt(c[2],16),parseInt(c[3],16)]}},{re:/#([a-f0-9])([a-f0-9])([a-f0-9])/,parse:function(c){return[parseInt(c[1]+c[1],16),parseInt(c[2]+c[2],16),parseInt(c[3]+c[3],16)]}},{re:/hsla?\(\s*(\d+(?:\.\d+)?)\s*,\s*(\d+(?:\.\d+)?)\%\s*,\s*(\d+(?:\.\d+)?)\%\s*(?:,\s*(\d?(?:\.\d+)?)\s*)?\)/,space:"hsla",parse:function(c){return[c[1],c[2]/100,c[3]/100,c[4]]}}],l=t.Color=function(c,g,_,v){return new t.Color.fn.parse(c,g,_,v)},u={rgba:{props:{red:{idx:0,type:"byte"},green:{idx:1,type:"byte"},blue:{idx:2,type:"byte"}}},hsla:{props:{hue:{idx:0,type:"degrees"},saturation:{idx:1,type:"percent"},lightness:{idx:2,type:"percent"}}}},p={byte:{floor:!0,max:255},percent:{max:1},degrees:{mod:360,floor:!0}},d=l.support={},f=t("
")[0],m=t.each;f.style.cssText="background-color:rgba(1,1,1,.5)",d.rgba=f.style.backgroundColor.indexOf("rgba")>-1,m(u,function(c,g){g.cache="_"+c,g.props.alpha={idx:3,type:"percent",def:1}}),l.fn=t.extend(l.prototype,{parse:function(c,g,_,v){if(c===e)return this._rgba=[null,null,null,null],this;(c.jquery||c.nodeType)&&(c=t(c).css(g),g=e);var b=this,y=t.type(c),C=this._rgba=[];return g!==e&&(c=[c,g,_,v],y="array"),y==="string"?this.parse(n(c)||a._default):y==="array"?(m(u.rgba.props,function(x,k){C[k.idx]=s(c[k.idx],k)}),this):y==="object"?(m(u,c instanceof l?function(x,k){c[k.cache]&&(b[k.cache]=c[k.cache].slice())}:function(x,k){var w=k.cache;m(k.props,function(D,I){if(!b[w]&&k.to){if(D==="alpha"||c[D]==null)return;b[w]=k.to(b._rgba)}b[w][I.idx]=s(c[D],I,!0)}),b[w]&&0>t.inArray(null,b[w].slice(0,3))&&(b[w][3]=1,k.from&&(b._rgba=k.from(b[w])))}),this):e},is:function(c){var g=l(c),_=!0,v=this;return m(u,function(b,y){var C,x=g[y.cache];return x&&(C=v[y.cache]||y.to&&y.to(v._rgba)||[],m(y.props,function(k,w){return x[w.idx]!=null?_=x[w.idx]===C[w.idx]:e})),_}),_},_space:function(){var c=[],g=this;return m(u,function(_,v){g[v.cache]&&c.push(_)}),c.pop()},transition:function(c,g){var _=l(c),v=_._space(),b=u[v],y=this.alpha()===0?l("transparent"):this,C=y[b.cache]||b.to(y._rgba),x=C.slice();return _=_[b.cache],m(b.props,function(k,w){var D=w.idx,I=C[D],T=_[D],P=p[w.type]||{};T!==null&&(I===null?x[D]=T:(P.mod&&(T-I>P.mod/2?I+=P.mod:I-T>P.mod/2&&(I-=P.mod)),x[D]=s((T-I)*g+I,w)))}),this[v](x)},blend:function(c){if(this._rgba[3]===1)return this;var g=this._rgba.slice(),_=g.pop(),v=l(c)._rgba;return l(t.map(g,function(b,y){return(1-_)*v[y]+_*b}))},toRgbaString:function(){var c="rgba(",g=t.map(this._rgba,function(_,v){return _??(v>2?1:0)});return g[3]===1&&(g.pop(),c="rgb("),c+g.join()+")"},toHslaString:function(){var c="hsla(",g=t.map(this.hsla(),function(_,v){return _==null&&(_=v>2?1:0),v&&3>v&&(_=Math.round(100*_)+"%"),_});return g[3]===1&&(g.pop(),c="hsl("),c+g.join()+")"},toHexString:function(c){var g=this._rgba.slice(),_=g.pop();return c&&g.push(~~(255*_)),"#"+t.map(g,function(v){return(v=(v||0).toString(16)).length===1?"0"+v:v}).join("")},toString:function(){return this._rgba[3]===0?"transparent":this.toRgbaString()}}),l.fn.parse.prototype=l.fn,u.hsla.to=function(c){if(c[0]==null||c[1]==null||c[2]==null)return[null,null,null,c[3]];var g,_,v=c[0]/255,b=c[1]/255,y=c[2]/255,C=c[3],x=Math.max(v,b,y),k=Math.min(v,b,y),w=x-k,D=x+k,I=.5*D;return g=k===x?0:v===x?60*(b-y)/w+360:b===x?60*(y-v)/w+120:60*(v-b)/w+240,_=w===0?0:.5>=I?w/D:w/(2-D),[Math.round(g)%360,_,I,C??1]},u.hsla.from=function(c){if(c[0]==null||c[1]==null||c[2]==null)return[null,null,null,c[3]];var g=c[0]/360,_=c[1],v=c[2],b=c[3],y=.5>=v?v*(1+_):v+_-v*_,C=2*v-y;return[Math.round(255*o(C,y,g+1/3)),Math.round(255*o(C,y,g)),Math.round(255*o(C,y,g-1/3)),b]},m(u,function(c,g){var _=g.props,v=g.cache,b=g.to,y=g.from;l.fn[c]=function(C){if(b&&!this[v]&&(this[v]=b(this._rgba)),C===e)return this[v].slice();var x,k=t.type(C),w=k==="array"||k==="object"?C:arguments,D=this[v].slice();return m(_,function(I,T){var P=w[k==="object"?I:T.idx];P==null&&(P=D[T.idx]),D[T.idx]=s(P,T)}),y?((x=l(y(D)))[v]=D,x):l(D)},m(_,function(C,x){l.fn[C]||(l.fn[C]=function(k){var w,D=t.type(k),I=C==="alpha"?this._hsla?"hsla":"rgba":c,T=this[I](),P=T[x.idx];return D==="undefined"?P:(D==="function"&&(k=k.call(this,P),D=t.type(k)),k==null&&x.empty?this:(D==="string"&&(w=r.exec(k))&&(k=P+parseFloat(w[2])*(w[1]==="+"?1:-1)),T[x.idx]=k,this[I](T)))})})}),l.hook=function(c){var g=c.split(" ");m(g,function(_,v){t.cssHooks[v]={set:function(b,y){var C,x,k="";if(y!=="transparent"&&(t.type(y)!=="string"||(C=n(y)))){if(y=l(C||y),!d.rgba&&y._rgba[3]!==1){for(x=v==="backgroundColor"?b.parentNode:b;(k===""||k==="transparent")&&x&&x.style;)try{k=t.css(x,"backgroundColor"),x=x.parentNode}catch{}y=y.blend(k&&k!=="transparent"?k:"_default")}y=y.toRgbaString()}try{b.style[v]=y}catch{}}},t.fx.step[v]=function(b){b.colorInit||(b.start=l(b.elem,v),b.end=l(b.end),b.colorInit=!0),t.cssHooks[v].set(b.elem,b.start.transition(b.end,b.pos))}})},l.hook("backgroundColor borderBottomColor borderLeftColor borderRightColor borderTopColor color columnRuleColor outlineColor textDecorationColor textEmphasisColor"),t.cssHooks.borderColor={expand:function(c){var g={};return m(["Top","Right","Bottom","Left"],function(_,v){g["border"+v+"Color"]=c}),g}},a=t.Color.names={aqua:"#00ffff",black:"#000000",blue:"#0000ff",fuchsia:"#ff00ff",gray:"#808080",green:"#008000",lime:"#00ff00",maroon:"#800000",navy:"#000080",olive:"#808000",purple:"#800080",red:"#ff0000",silver:"#c0c0c0",teal:"#008080",white:"#ffffff",yellow:"#ffff00",transparent:[null,null,null,0],_default:"#ffffff"}}(ct),function(){function t(o){var a,r,h=o.ownerDocument.defaultView?o.ownerDocument.defaultView.getComputedStyle(o,null):o.currentStyle,l={};if(h&&h.length&&h[0]&&h[h[0]])for(r=h.length;r--;)typeof h[a=h[r]]=="string"&&(l[i.camelCase(a)]=h[a]);else for(a in h)typeof h[a]=="string"&&(l[a]=h[a]);return l}function e(o,a){var r,h,l={};for(r in a)h=a[r],o[r]!==h&&(n[r]||(i.fx.step[r]||!isNaN(parseFloat(h)))&&(l[r]=h));return l}var s=["add","remove","toggle"],n={border:1,borderBottom:1,borderColor:1,borderLeft:1,borderRight:1,borderTop:1,borderWidth:1,margin:1,padding:1};i.each(["borderLeftStyle","borderRightStyle","borderBottomStyle","borderTopStyle"],function(o,a){i.fx.step[a]=function(r){(r.end!=="none"&&!r.setAttr||r.pos===1&&!r.setAttr)&&(ct.style(r.elem,a,r.end),r.setAttr=!0)}}),i.fn.addBack||(i.fn.addBack=function(o){return this.add(o==null?this.prevObject:this.prevObject.filter(o))}),i.effects.animateClass=function(o,a,r,h){var l=i.speed(a,r,h);return this.queue(function(){var u,p=i(this),d=p.attr("class")||"",f=l.children?p.find("*").addBack():p;f=f.map(function(){return{el:i(this),start:t(this)}}),(u=function(){i.each(s,function(m,c){o[c]&&p[c+"Class"](o[c])})})(),f=f.map(function(){return this.end=t(this.el[0]),this.diff=e(this.start,this.end),this}),p.attr("class",d),f=f.map(function(){var m=this,c=i.Deferred(),g=i.extend({},l,{queue:!1,complete:function(){c.resolve(m)}});return this.el.animate(this.diff,g),c.promise()}),i.when.apply(i,f.get()).done(function(){u(),i.each(arguments,function(){var m=this.el;i.each(this.diff,function(c){m.css(c,"")})}),l.complete.call(p[0])})})},i.fn.extend({addClass:function(o){return function(a,r,h,l){return r?i.effects.animateClass.call(this,{add:a},r,h,l):o.apply(this,arguments)}}(i.fn.addClass),removeClass:function(o){return function(a,r,h,l){return arguments.length>1?i.effects.animateClass.call(this,{remove:a},r,h,l):o.apply(this,arguments)}}(i.fn.removeClass),toggleClass:function(o){return function(a,r,h,l,u){return typeof r=="boolean"||r===void 0?h?i.effects.animateClass.call(this,r?{add:a}:{remove:a},h,l,u):o.apply(this,arguments):i.effects.animateClass.call(this,{toggle:a},r,h,l)}}(i.fn.toggleClass),switchClass:function(o,a,r,h,l){return i.effects.animateClass.call(this,{add:a,remove:o},r,h,l)}})}(),function(){function t(n,o,a,r){return i.isPlainObject(n)&&(o=n,n=n.effect),n={effect:n},o==null&&(o={}),i.isFunction(o)&&(r=o,a=null,o={}),(typeof o=="number"||i.fx.speeds[o])&&(r=a,a=o,o={}),i.isFunction(a)&&(r=a,a=null),o&&i.extend(n,o),a=a||o.duration,n.duration=i.fx.off?0:typeof a=="number"?a:a in i.fx.speeds?i.fx.speeds[a]:i.fx.speeds._default,n.complete=r||o.complete,n}function e(n){return!(n&&typeof n!="number"&&!i.fx.speeds[n])||typeof n=="string"&&!i.effects.effect[n]||!!i.isFunction(n)||typeof n=="object"&&!n.effect}function s(n,o){var a=o.outerWidth(),r=o.outerHeight(),h=/^rect\((-?\d*\.?\d*px|-?\d+%|auto),?\s*(-?\d*\.?\d*px|-?\d+%|auto),?\s*(-?\d*\.?\d*px|-?\d+%|auto),?\s*(-?\d*\.?\d*px|-?\d+%|auto)\)$/.exec(n)||["",0,a,r,0];return{top:parseFloat(h[1])||0,right:h[2]==="auto"?a:parseFloat(h[2]),bottom:h[3]==="auto"?r:parseFloat(h[3]),left:parseFloat(h[4])||0}}i.expr&&i.expr.filters&&i.expr.filters.animated&&(i.expr.filters.animated=function(n){return function(o){return!!i(o).data(tt)||n(o)}}(i.expr.filters.animated)),i.uiBackCompat!==!1&&i.extend(i.effects,{save:function(n,o){for(var a=0,r=o.length;r>a;a++)o[a]!==null&&n.data(Q+o[a],n[0].style[o[a]])},restore:function(n,o){for(var a,r=0,h=o.length;h>r;r++)o[r]!==null&&(a=n.data(Q+o[r]),n.css(o[r],a))},setMode:function(n,o){return o==="toggle"&&(o=n.is(":hidden")?"show":"hide"),o},createWrapper:function(n){if(n.parent().is(".ui-effects-wrapper"))return n.parent();var o={width:n.outerWidth(!0),height:n.outerHeight(!0),float:n.css("float")},a=i("
").addClass("ui-effects-wrapper").css({fontSize:"100%",background:"transparent",border:"none",margin:0,padding:0}),r={width:n.width(),height:n.height()},h=document.activeElement;try{h.id}catch{h=document.body}return n.wrap(a),(n[0]===h||i.contains(n[0],h))&&i(h).trigger("focus"),a=n.parent(),n.css("position")==="static"?(a.css({position:"relative"}),n.css({position:"relative"})):(i.extend(o,{position:n.css("position"),zIndex:n.css("z-index")}),i.each(["top","left","bottom","right"],function(l,u){o[u]=n.css(u),isNaN(parseInt(o[u],10))&&(o[u]="auto")}),n.css({position:"relative",top:0,left:0,right:"auto",bottom:"auto"})),n.css(r),a.css(o).show()},removeWrapper:function(n){var o=document.activeElement;return n.parent().is(".ui-effects-wrapper")&&(n.parent().replaceWith(n),(n[0]===o||i.contains(n[0],o))&&i(o).trigger("focus")),n}}),i.extend(i.effects,{version:"1.12.1",define:function(n,o,a){return a||(a=o,o="effect"),i.effects.effect[n]=a,i.effects.effect[n].mode=o,a},scaledDimensions:function(n,o,a){if(o===0)return{height:0,width:0,outerHeight:0,outerWidth:0};var r=a!=="horizontal"?(o||100)/100:1,h=a!=="vertical"?(o||100)/100:1;return{height:n.height()*h,width:n.width()*r,outerHeight:n.outerHeight()*h,outerWidth:n.outerWidth()*r}},clipToBox:function(n){return{width:n.clip.right-n.clip.left,height:n.clip.bottom-n.clip.top,left:n.clip.left,top:n.clip.top}},unshift:function(n,o,a){var r=n.queue();o>1&&r.splice.apply(r,[1,0].concat(r.splice(o,a))),n.dequeue()},saveStyle:function(n){n.data(Z,n[0].style.cssText)},restoreStyle:function(n){n[0].style.cssText=n.data(Z)||"",n.removeData(Z)},mode:function(n,o){var a=n.is(":hidden");return o==="toggle"&&(o=a?"show":"hide"),(a?o==="hide":o==="show")&&(o="none"),o},getBaseline:function(n,o){var a,r;switch(n[0]){case"top":a=0;break;case"middle":a=.5;break;case"bottom":a=1;break;default:a=n[0]/o.height}switch(n[1]){case"left":r=0;break;case"center":r=.5;break;case"right":r=1;break;default:r=n[1]/o.width}return{x:r,y:a}},createPlaceholder:function(n){var o,a=n.css("position"),r=n.position();return n.css({marginTop:n.css("marginTop"),marginBottom:n.css("marginBottom"),marginLeft:n.css("marginLeft"),marginRight:n.css("marginRight")}).outerWidth(n.outerWidth()).outerHeight(n.outerHeight()),/^(static|relative)/.test(a)&&(a="absolute",o=i("<"+n[0].nodeName+">").insertAfter(n).css({display:/^(inline|ruby)/.test(n.css("display"))?"inline-block":"block",visibility:"hidden",marginTop:n.css("marginTop"),marginBottom:n.css("marginBottom"),marginLeft:n.css("marginLeft"),marginRight:n.css("marginRight"),float:n.css("float")}).outerWidth(n.outerWidth()).outerHeight(n.outerHeight()).addClass("ui-effects-placeholder"),n.data(Q+"placeholder",o)),n.css({position:a,left:r.left,top:r.top}),o},removePlaceholder:function(n){var o=Q+"placeholder",a=n.data(o);a&&(a.remove(),n.removeData(o))},cleanUp:function(n){i.effects.restoreStyle(n),i.effects.removePlaceholder(n)},setTransition:function(n,o,a,r){return r=r||{},i.each(o,function(h,l){var u=n.cssUnit(l);u[0]>0&&(r[l]=u[0]*a+u[1])}),r}}),i.fn.extend({effect:function(){function n(m){function c(){i.isFunction(u)&&u.call(g[0]),i.isFunction(m)&&m()}var g=i(this);o.mode=d.shift(),i.uiBackCompat===!1||r?o.mode==="none"?(g[p](),c()):a.call(g[0],o,function(){g.removeData(tt),i.effects.cleanUp(g),o.mode==="hide"&&g.hide(),c()}):(g.is(":hidden")?p==="hide":p==="show")?(g[p](),c()):a.call(g[0],o,c)}var o=t.apply(this,arguments),a=i.effects.effect[o.effect],r=a.mode,h=o.queue,l=h||"fx",u=o.complete,p=o.mode,d=[],f=function(m){var c=i(this),g=i.effects.mode(c,p)||r;c.data(tt,!0),d.push(g),r&&(g==="show"||g===r&&g==="hide")&&c.show(),r&&g==="none"||i.effects.saveStyle(c),i.isFunction(m)&&m()};return i.fx.off||!a?p?this[p](o.duration,u):this.each(function(){u&&u.call(this)}):h===!1?this.each(f).each(n):this.queue(l,f).queue(l,n)},show:function(n){return function(o){if(e(o))return n.apply(this,arguments);var a=t.apply(this,arguments);return a.mode="show",this.effect.call(this,a)}}(i.fn.show),hide:function(n){return function(o){if(e(o))return n.apply(this,arguments);var a=t.apply(this,arguments);return a.mode="hide",this.effect.call(this,a)}}(i.fn.hide),toggle:function(n){return function(o){if(e(o)||typeof o=="boolean")return n.apply(this,arguments);var a=t.apply(this,arguments);return a.mode="toggle",this.effect.call(this,a)}}(i.fn.toggle),cssUnit:function(n){var o=this.css(n),a=[];return i.each(["em","px","%","pt"],function(r,h){o.indexOf(h)>0&&(a=[parseFloat(o),h])}),a},cssClip:function(n){return n?this.css("clip","rect("+n.top+"px "+n.right+"px "+n.bottom+"px "+n.left+"px)"):s(this.css("clip"),this)},transfer:function(n,o){var a=i(this),r=i(n.to),h=r.css("position")==="fixed",l=i("body"),u=h?l.scrollTop():0,p=h?l.scrollLeft():0,d=r.offset(),f={top:d.top-u,left:d.left-p,height:r.innerHeight(),width:r.innerWidth()},m=a.offset(),c=i("
").appendTo("body").addClass(n.className).css({top:m.top-u,left:m.left-p,height:a.innerHeight(),width:a.innerWidth(),position:h?"fixed":"absolute"}).animate(f,n.duration,n.easing,function(){c.remove(),i.isFunction(o)&&o()})}}),i.fx.step.clip=function(n){n.clipInit||(n.start=i(n.elem).cssClip(),typeof n.end=="string"&&(n.end=s(n.end,n.elem)),n.clipInit=!0),i(n.elem).cssClip({top:n.pos*(n.end.top-n.start.top)+n.start.top,right:n.pos*(n.end.right-n.start.right)+n.start.right,bottom:n.pos*(n.end.bottom-n.start.bottom)+n.start.bottom,left:n.pos*(n.end.left-n.start.left)+n.start.left})}}(),function(){var t={};i.each(["Quad","Cubic","Quart","Quint","Expo"],function(e,s){t[s]=function(n){return Math.pow(n,e+2)}}),i.extend(t,{Sine:function(e){return 1-Math.cos(e*Math.PI/2)},Circ:function(e){return 1-Math.sqrt(1-e*e)},Elastic:function(e){return e===0||e===1?e:-Math.pow(2,8*(e-1))*Math.sin((80*(e-1)-7.5)*Math.PI/15)},Back:function(e){return e*e*(3*e-2)},Bounce:function(e){for(var s,n=4;((s=Math.pow(2,--n))-1)/11>e;);return 1/Math.pow(4,3-n)-7.5625*Math.pow((3*s-2)/22-e,2)}}),i.each(t,function(e,s){i.easing["easeIn"+e]=s,i.easing["easeOut"+e]=function(n){return 1-s(1-n)},i.easing["easeInOut"+e]=function(n){return .5>n?s(2*n)/2:1-s(-2*n+2)/2}})}(),i.effects,i.effects.define("blind","hide",function(t,e){var s={up:["bottom","top"],vertical:["bottom","top"],down:["top","bottom"],left:["right","left"],horizontal:["right","left"],right:["left","right"]},n=i(this),o=t.direction||"up",a=n.cssClip(),r={clip:i.extend({},a)},h=i.effects.createPlaceholder(n);r.clip[s[o][0]]=r.clip[s[o][1]],t.mode==="show"&&(n.cssClip(r.clip),h&&h.css(i.effects.clipToBox(r)),r.clip=a),h&&h.animate(i.effects.clipToBox(r),t.duration,t.easing),n.animate(r,{queue:!1,duration:t.duration,easing:t.easing,complete:e})}),i.effects.define("bounce",function(t,e){var s,n,o,a=i(this),r=t.mode,h=r==="hide",l=r==="show",u=t.direction||"up",p=t.distance,d=t.times||5,f=2*d+(l||h?1:0),m=t.duration/f,c=t.easing,g=u==="up"||u==="down"?"top":"left",_=u==="up"||u==="left",v=0,b=a.queue().length;for(i.effects.createPlaceholder(a),o=a.css(g),p||(p=a[g==="top"?"outerHeight":"outerWidth"]()/3),l&&((n={opacity:1})[g]=o,a.css("opacity",0).css(g,_?2*-p:2*p).animate(n,m,c)),h&&(p/=Math.pow(2,d-1)),(n={})[g]=o;d>v;v++)(s={})[g]=(_?"-=":"+=")+p,a.animate(s,m,c).animate(n,m,c),p=h?2*p:p/2;h&&((s={opacity:0})[g]=(_?"-=":"+=")+p,a.animate(s,m,c)),a.queue(e),i.effects.unshift(a,b,f+1)}),i.effects.define("clip","hide",function(t,e){var s,n={},o=i(this),a=t.direction||"vertical",r=a==="both",h=r||a==="horizontal",l=r||a==="vertical";s=o.cssClip(),n.clip={top:l?(s.bottom-s.top)/2:s.top,right:h?(s.right-s.left)/2:s.right,bottom:l?(s.bottom-s.top)/2:s.bottom,left:h?(s.right-s.left)/2:s.left},i.effects.createPlaceholder(o),t.mode==="show"&&(o.cssClip(n.clip),n.clip=s),o.animate(n,{queue:!1,duration:t.duration,easing:t.easing,complete:e})}),i.effects.define("drop","hide",function(t,e){var s,n=i(this),o=t.mode==="show",a=t.direction||"left",r=a==="up"||a==="down"?"top":"left",h=a==="up"||a==="left"?"-=":"+=",l=h==="+="?"-=":"+=",u={opacity:0};i.effects.createPlaceholder(n),s=t.distance||n[r==="top"?"outerHeight":"outerWidth"](!0)/2,u[r]=h+s,o&&(n.css(u),u[r]=l+s,u.opacity=1),n.animate(u,{queue:!1,duration:t.duration,easing:t.easing,complete:e})}),i.effects.define("explode","hide",function(t,e){function s(){_.push(this),_.length===u*p&&(d.css({visibility:"visible"}),i(_).remove(),e())}var n,o,a,r,h,l,u=t.pieces?Math.round(Math.sqrt(t.pieces)):3,p=u,d=i(this),f=t.mode==="show",m=d.show().css("visibility","hidden").offset(),c=Math.ceil(d.outerWidth()/p),g=Math.ceil(d.outerHeight()/u),_=[];for(n=0;u>n;n++)for(r=m.top+n*g,l=n-(u-1)/2,o=0;p>o;o++)a=m.left+o*c,h=o-(p-1)/2,d.clone().appendTo("body").wrap("
").css({position:"absolute",visibility:"visible",left:-o*c,top:-n*g}).parent().addClass("ui-effects-explode").css({position:"absolute",overflow:"hidden",width:c,height:g,left:a+(f?h*c:0),top:r+(f?l*g:0),opacity:f?0:1}).animate({left:a+(f?0:h*c),top:r+(f?0:l*g),opacity:f?1:0},t.duration||500,t.easing,s)}),i.effects.define("fade","toggle",function(t,e){var s=t.mode==="show";i(this).css("opacity",s?0:1).animate({opacity:s?1:0},{queue:!1,duration:t.duration,easing:t.easing,complete:e})}),i.effects.define("fold","hide",function(t,e){var s=i(this),n=t.mode,o=n==="show",a=n==="hide",r=t.size||15,h=/([0-9]+)%/.exec(r),l=t.horizFirst?["right","bottom"]:["bottom","right"],u=t.duration/2,p=i.effects.createPlaceholder(s),d=s.cssClip(),f={clip:i.extend({},d)},m={clip:i.extend({},d)},c=[d[l[0]],d[l[1]]],g=s.queue().length;h&&(r=parseInt(h[1],10)/100*c[a?0:1]),f.clip[l[0]]=r,m.clip[l[0]]=r,m.clip[l[1]]=0,o&&(s.cssClip(m.clip),p&&p.css(i.effects.clipToBox(m)),m.clip=d),s.queue(function(_){p&&p.animate(i.effects.clipToBox(f),u,t.easing).animate(i.effects.clipToBox(m),u,t.easing),_()}).animate(f,u,t.easing).animate(m,u,t.easing).queue(e),i.effects.unshift(s,g,4)}),i.effects.define("highlight","show",function(t,e){var s=i(this),n={backgroundColor:s.css("backgroundColor")};t.mode==="hide"&&(n.opacity=0),i.effects.saveStyle(s),s.css({backgroundImage:"none",backgroundColor:t.color||"#ffff99"}).animate(n,{queue:!1,duration:t.duration,easing:t.easing,complete:e})}),i.effects.define("size",function(t,e){var s,n,o,a=i(this),r=["fontSize"],h=["borderTopWidth","borderBottomWidth","paddingTop","paddingBottom"],l=["borderLeftWidth","borderRightWidth","paddingLeft","paddingRight"],u=t.mode,p=u!=="effect",d=t.scale||"both",f=t.origin||["middle","center"],m=a.css("position"),c=a.position(),g=i.effects.scaledDimensions(a),_=t.from||g,v=t.to||i.effects.scaledDimensions(a,0);i.effects.createPlaceholder(a),u==="show"&&(o=_,_=v,v=o),n={from:{y:_.height/g.height,x:_.width/g.width},to:{y:v.height/g.height,x:v.width/g.width}},(d==="box"||d==="both")&&(n.from.y!==n.to.y&&(_=i.effects.setTransition(a,h,n.from.y,_),v=i.effects.setTransition(a,h,n.to.y,v)),n.from.x!==n.to.x&&(_=i.effects.setTransition(a,l,n.from.x,_),v=i.effects.setTransition(a,l,n.to.x,v))),(d==="content"||d==="both")&&n.from.y!==n.to.y&&(_=i.effects.setTransition(a,r,n.from.y,_),v=i.effects.setTransition(a,r,n.to.y,v)),f&&(s=i.effects.getBaseline(f,g),_.top=(g.outerHeight-_.outerHeight)*s.y+c.top,_.left=(g.outerWidth-_.outerWidth)*s.x+c.left,v.top=(g.outerHeight-v.outerHeight)*s.y+c.top,v.left=(g.outerWidth-v.outerWidth)*s.x+c.left),a.css(_),(d==="content"||d==="both")&&(h=h.concat(["marginTop","marginBottom"]).concat(r),l=l.concat(["marginLeft","marginRight"]),a.find("*[width]").each(function(){var b=i(this),y=i.effects.scaledDimensions(b),C={height:y.height*n.from.y,width:y.width*n.from.x,outerHeight:y.outerHeight*n.from.y,outerWidth:y.outerWidth*n.from.x},x={height:y.height*n.to.y,width:y.width*n.to.x,outerHeight:y.height*n.to.y,outerWidth:y.width*n.to.x};n.from.y!==n.to.y&&(C=i.effects.setTransition(b,h,n.from.y,C),x=i.effects.setTransition(b,h,n.to.y,x)),n.from.x!==n.to.x&&(C=i.effects.setTransition(b,l,n.from.x,C),x=i.effects.setTransition(b,l,n.to.x,x)),p&&i.effects.saveStyle(b),b.css(C),b.animate(x,t.duration,t.easing,function(){p&&i.effects.restoreStyle(b)})})),a.animate(v,{queue:!1,duration:t.duration,easing:t.easing,complete:function(){var b=a.offset();v.opacity===0&&a.css("opacity",_.opacity),p||(a.css("position",m==="static"?"relative":m).offset(b),i.effects.saveStyle(a)),e()}})}),i.effects.define("scale",function(t,e){var s=i(this),n=t.mode,o=parseInt(t.percent,10)||(parseInt(t.percent,10)===0||n!=="effect"?0:100),a=i.extend(!0,{from:i.effects.scaledDimensions(s),to:i.effects.scaledDimensions(s,o,t.direction||"both"),origin:t.origin||["middle","center"]},t);t.fade&&(a.from.opacity=1,a.to.opacity=0),i.effects.effect.size.call(this,a,e)}),i.effects.define("puff","hide",function(t,e){var s=i.extend(!0,{},t,{fade:!0,percent:parseInt(t.percent,10)||150});i.effects.effect.scale.call(this,s,e)}),i.effects.define("pulsate","show",function(t,e){var s=i(this),n=t.mode,o=n==="show",a=o||n==="hide",r=2*(t.times||5)+(a?1:0),h=t.duration/r,l=0,u=1,p=s.queue().length;for((o||!s.is(":visible"))&&(s.css("opacity",0).show(),l=1);r>u;u++)s.animate({opacity:l},h,t.easing),l=1-l;s.animate({opacity:l},h,t.easing),s.queue(e),i.effects.unshift(s,p,r+1)}),i.effects.define("shake",function(t,e){var s=1,n=i(this),o=t.direction||"left",a=t.distance||20,r=t.times||3,h=2*r+1,l=Math.round(t.duration/h),u=o==="up"||o==="down"?"top":"left",p=o==="up"||o==="left",d={},f={},m={},c=n.queue().length;for(i.effects.createPlaceholder(n),d[u]=(p?"-=":"+=")+a,f[u]=(p?"+=":"-=")+2*a,m[u]=(p?"-=":"+=")+2*a,n.animate(d,l,t.easing);r>s;s++)n.animate(f,l,t.easing).animate(m,l,t.easing);n.animate(f,l,t.easing).animate(d,l/2,t.easing).queue(e),i.effects.unshift(n,c,h+1)}),i.effects.define("slide","show",function(t,e){var s,n,o=i(this),a={up:["bottom","top"],down:["top","bottom"],left:["right","left"],right:["left","right"]},r=t.mode,h=t.direction||"left",l=h==="up"||h==="down"?"top":"left",u=h==="up"||h==="left",p=t.distance||o[l==="top"?"outerHeight":"outerWidth"](!0),d={};i.effects.createPlaceholder(o),s=o.cssClip(),n=o.position()[l],d[l]=(u?-1:1)*p+n,d.clip=o.cssClip(),d.clip[a[h][1]]=d.clip[a[h][0]],r==="show"&&(o.cssClip(d.clip),o.css(l,d[l]),d.clip=s,d[l]=n),o.animate(d,{queue:!1,duration:t.duration,easing:t.easing,complete:e})}),i.uiBackCompat!==!1&&i.effects.define("transfer",function(t,e){i(this).transfer(t,e)})});