YUI.add("anim-base",function(e,t){var n="running",r="startTime",i="elapsedTime",s="start",o="tween",u="end",a="node",f="paused",l="reverse",c="iterationCount",h=Number,p={},d;e.Anim=function(){e.Anim.superclass.constructor.apply(this,arguments),e.Anim._instances[e.stamp(this)]=this},e.Anim.NAME="anim",e.Anim._instances={},e.Anim.RE_DEFAULT_UNIT=/^width|height|top|right|bottom|left|margin.*|padding.*|border.*$/i,e.Anim.DEFAULT_UNIT="px",e.Anim.DEFAULT_EASING=function(e,t,n,r){return n*e/r+t},e.Anim._intervalTime=20,e.Anim.behaviors={left:{get:function(e,t){return e._getOffset(t)}}},e.Anim.behaviors.top=e.Anim.behaviors.left,e.Anim.DEFAULT_SETTER=function(t,n,r,i,s,o,u,a){var f=t._node,l=f._node,c=u(s,h(r),h(i)-h(r),o);l?"style"in l&&(n in l.style||n in e.DOM.CUSTOM_STYLES)?(a=a||"",f.setStyle(n,c+a)):"attributes"in l&&n in l.attributes?f.setAttribute(n,c):n in l&&(l[n]=c):f.set?f.set(n,c):n in f&&(f[n]=c)},e.Anim.DEFAULT_GETTER=function(t,n){var r=t._node,i=r._node,s="";return i?"style"in i&&(n in i.style||n in e.DOM.CUSTOM_STYLES)?s=r.getComputedStyle(n):"attributes"in i&&n in i.attributes?s=r.getAttribute(n):n in i&&(s=i[n]):r.get?s=r.get(n):n in r&&(s=r[n]),s},e.Anim.ATTRS={node:{setter:function(t){return t&&(typeof t=="string"||t.nodeType)&&(t=e.one(t)),this._node=t,!t,t}},duration:{value:1},easing:{value:e.Anim.DEFAULT_EASING,setter:function(t){if(typeof t=="string"&&e.Easing)return e.Easing[t]}},from:{},to:{},startTime:{value:0,readOnly:!0},elapsedTime:{value:0,readOnly:!0},running:{getter:function(){return!!p[e.stamp(this)]},value:!1,readOnly:!0},iterations:{value:1},iterationCount:{value:0,readOnly:!0},direction:{value:"normal"},paused:{readOnly:!0,value:!1},reverse:{value:!1}},e.Anim.run=function(){var t=e.Anim._instances,n;for(n in t)t[n].run&&t[n].run()},e.Anim.pause=function(){for(var t in p)p[t].pause&&p[t].pause();e.Anim._stopTimer()},e.Anim.stop=function(){for(var t in p)p[t].stop&&p[t].stop();e.Anim._stopTimer()},e.Anim._startTimer=function(){d||(d=setInterval(e.Anim._runFrame,e.Anim._intervalTime))},e.Anim._stopTimer=function(){clearInterval(d),d=0},e.Anim._runFrame=function(){var t=!0,n;for(n in p)p[n]._runFrame&&(t=!1,p[n]._runFrame());t&&e.Anim._stopTimer()},e.Anim.RE_UNITS=/^(-?\d*\.?\d*){1}(em|ex|px|in|cm|mm|pt|pc|%)*$/;var v={run:function(){return this.get(f)?this._resume():this.get(n)||this._start(),this},pause:function(){return this.get(n)&&this._pause(),this},stop:function(e){return(this.get(n)||this.get(f))&&this._end(e),this},_added:!1,_start:function(){this._set(r,new Date-this.get(i)),this._actualFrames=0,this.get(f)||this._initAnimAttr(),p[e.stamp(this)]=this,e.Anim._startTimer(),this.fire(s)},_pause:function(){this._set(r,null),this._set(f,!0),delete p[e.stamp(this)],this.fire("pause")},_resume:function(){this._set(f,!1),p[e.stamp(this)]=this,this._set(r,new Date-this.get(i)),e.Anim._startTimer(),this.fire("resume")},_end:function(t){var n=this.get("duration")*1e3;t&&this._runAttrs(n,n,this.get(l)),this._set(r,null),this._set(i,0),this._set(f,!1),delete p[e.stamp(this)],this.fire(u,{elapsed:this.get(i)})},_runFrame:function(){var e=this._runtimeAttr.duration,t=new Date-this.get(r),n=this.get(l),s=t>=e;this._runAttrs(t,e,n),this._actualFrames+=1,this._set(i,t),this.fire(o),s&&this._lastFrame()},_runAttrs:function(t,n,r){var i=this._runtimeAttr,s=e.Anim.behaviors,o=i.easing,u=n,a=!1,f,l,c;t>=n&&(a=!0),r&&(t=n-t,u=0);for(c in i)i[c].to&&(f=i[c],l=c in s&&"set"in s[c]?s[c].set:e.Anim.DEFAULT_SETTER,a?l(this,c,f.from,f.to,u,n,o,f.unit):l(this,c,f.from,f.to,t,n,o,f.unit))},_lastFrame:function(){var e=this.get("iterations"),t=this.get(c);t+=1,e==="infinite"||t<e?(this.get("direction")==="alternate"&&this.set(l,!this.get(l)),this.fire("iteration")):(t=0,this._end()),this._set(r,new Date),this._set(c,t)},_initAnimAttr:function(){var t=this.get("from")||{},n=this.get("to")||{},r={duration:this.get("duration")*1e3,easing:this.get("easing")},i=e.Anim.behaviors,s=this.get(a),o,u,f;e.each(n,function(n,a){typeof n=="function"&&(n=n.call(this,s)),u=t[a],u===undefined?u=a in i&&"get"in i[a]?i[a].get(this,a):e.Anim.DEFAULT_GETTER(this,a):typeof u=="function"&&(u=u.call(this,s));var l=e.Anim.RE_UNITS.exec(u),c=e.Anim.RE_UNITS.exec(n);u=l?l[1]:u,f=c?c[1]:n,o=c?c[2]:l?l[2]:"",!o&&e.Anim.RE_DEFAULT_UNIT.test(a)&&(o=e.Anim.DEFAULT_UNIT);if(!u||!f){e.error('invalid "from" or "to" for "'+a+'"',"Anim");return}r[a]={from:e.Lang.isObject(u)?e.clone(u):u,to:f,unit:o}},this),this._runtimeAttr=r},_getOffset:function(e){var t=this._node,n=t.getComputedStyle(e),r=e==="left"?"getX":"getY",i=e==="left"?"setX":"setY",s;return n==="auto"&&(s=t.getStyle("position"),s==="absolute"||s==="fixed"?(n=t[r](),t[i](n)):n=0),n},destructor:function(){delete e.Anim._instances[e.stamp(this)]}};e.extend(e.Anim,e.Base,v)},"patched-v3.11.0",{requires:["base-base","node-style"]});YUI.add("anim-color",function(e,t){var n=Number;e.Anim.getUpdatedColorValue=function(t,r,i,s,o){return t=e.Color.re_RGB.exec(e.Color.toRGB(t)),r=e.Color.re_RGB.exec(e.Color.toRGB(r)),(!t||t.length<3||!r||r.length<3)&&e.error("invalid from or to passed to color behavior"),"rgb("+[Math.floor(o(i,n(t[1]),n(r[1])-n(t[1]),s)),Math.floor(o(i,n(t[2]),n(r[2])-n(t[2]),s)),Math.floor(o(i,n(t[3]),n(r[3])-n(t[3]),s))].join(", ")+")"},e.Anim.behaviors.color={set:function(t,n,r,i,s,o,u){t._node.setStyle(n,e.Anim.getUpdatedColorValue(r,i,s,o,u))},get:function(e,t){var n=e._node.getComputedStyle(t);return n=n==="transparent"?"rgb(255, 255, 255)":n,n}},e.each(["backgroundColor","borderColor","borderTopColor","borderRightColor","borderBottomColor","borderLeftColor"],function(t){e.Anim.behaviors[t]=e.Anim.behaviors.color})},"patched-v3.11.0",{requires:["anim-base"]});YUI.add("anim-xy",function(e,t){var n=Number;e.Anim.behaviors.xy={set:function(e,t,r,i,s,o,u){e._node.setXY([u(s,n(r[0]),n(i[0])-n(r[0]),o),u(s,n(r[1]),n(i[1])-n(r[1]),o)])},get:function(e){return e._node.getXY()}}},"patched-v3.11.0",{requires:["anim-base","node-screen"]});YUI.add("anim-curve",function(e,t){e.Anim.behaviors.curve={set:function(t,n,r,i,s,o,u){r=r.slice.call(r),i=i.slice.call(i);var a=u(s,0,100,o)/100;i.unshift(r),t._node.setXY(e.Anim.getBezier(i,a))},get:function(e){return e._node.getXY()}},e.Anim.getBezier=function(e,t){var n=e.length,r=[],i,s;for(i=0;i<n;++i)r[i]=[e[i][0],e[i][1]];for(s=1;s<n;++s)for(i=0;i<n-s;++i)r[i][0]=(1-t)*r[i][0]+t*r[parseInt(i+1,10)][0],r[i][1]=(1-t)*r[i][1]+t*r[parseInt(i+1,10)][1];return[r[0][0],r[0][1]]}},"patched-v3.11.0",{requires:["anim-xy"]});YUI.add("anim-easing",function(e,t){var n={easeNone:function(e,t,n,r){return n*e/r+t},easeIn:function(e,t,n,r){return n*(e/=r)*e+t},easeOut:function(e,t,n,r){return-n*(e/=r)*(e-2)+t},easeBoth:function(e,t,n,r){return(e/=r/2)<1?n/2*e*e+t:-n/2*(--e*(e-2)-1)+t},easeInStrong:function(e,t,n,r){return n*(e/=r)*e*e*e+t},easeOutStrong:function(e,t,n,r){return-n*((e=e/r-1)*e*e*e-1)+t},easeBothStrong:function(e,t,n,r){return(e/=r/2)<1?n/2*e*e*e*e+t:-n/2*((e-=2)*e*e*e-2)+t},elasticIn:function(e,t,n,r,i,s){var o;return e===0?t:(e/=r)===1?t+n:(s||(s=r*.3),!i||i<Math.abs(n)?(i=n,o=s/4):o=s/(2*Math.PI)*Math.asin(n/i),-(i*Math.pow(2,10*(e-=1))*Math.sin((e*r-o)*2*Math.PI/s))+t)},elasticOut:function(e,t,n,r,i,s){var o;return e===0?t:(e/=r)===1?t+n:(s||(s=r*.3),!i||i<Math.abs(n)?(i=n,o=s/4):o=s/(2*Math.PI)*Math.asin(n/i),i*Math.pow(2,-10*e)*Math.sin((e*r-o)*2*Math.PI/s)+n+t)},elasticBoth:function(e,t,n,r,i,s){var o;return e===0?t:(e/=r/2)===2?t+n:(s||(s=r*.3*1.5),!i||i<Math.abs(n)?(i=n,o=s/4):o=s/(2*Math.PI)*Math.asin(n/i),e<1?-0.5*i*Math.pow(2,10*(e-=1))*Math.sin((e*r-o)*2*Math.PI/s)+t:i*Math.pow(2,-10*(e-=1))*Math.sin((e*r-o)*2*Math.PI/s)*.5+n+t)},backIn:function(e,t,n,r,i){return i===undefined&&(i=1.70158),e===r&&(e-=.001),n*(e/=r)*e*((i+1)*e-i)+t},backOut:function(e,t,n,r,i){return typeof i=="undefined"&&(i=1.70158),n*((e=e/r-1)*e*((i+1)*e+i)+1)+t},backBoth:function(e,t,n,r,i){return typeof i=="undefined"&&(i=1.70158),(e/=r/2)<1?n/2*e*e*(((i*=1.525)+1)*e-i)+t:n/2*((e-=2)*e*(((i*=1.525)+1)*e+i)+2)+t},bounceIn:function(t,n,r,i){return r-e.Easing.bounceOut(i-t,0,r,i)+n},bounceOut:function(e,t,n,r){return(e/=r)<1/2.75?n*7.5625*e*e+t:e<2/2.75?n*(7.5625*(e-=1.5/2.75)*e+.75)+t:e<2.5/2.75?n*(7.5625*(e-=2.25/2.75)*e+.9375)+t:n*(7.5625*(e-=2.625/2.75)*e+.984375)+t},bounceBoth:function(t,n,r,i){return t<i/2?e.Easing.bounceIn(t*2,0,r,i)*.5+n:e.Easing.bounceOut(t*2-i,0,r,i)*.5+r*.5+n}};e.Easing=n},"patched-v3.11.0",{requires:["anim-base"]});YUI.add("anim-node-plugin",function(e,t){var n=function(t){t=t?e.merge(t):{},t.node=t.host,n.superclass.constructor.apply(this,arguments)};n.NAME="nodefx",n.NS="fx",e.extend(n,e.Anim),e.namespace("Plugin"),e.Plugin.NodeFX=n},"patched-v3.11.0",{requires:["node-pluginhost","anim-base"]});YUI.add("anim-scroll",function(e,t){var n=Number;e.Anim.behaviors.scroll={set:function(e,t,r,i,s,o,u){var a=e._node,f=[u(s,n(r[0]),n(i[0])-n(r[0]),o),u(s,n(r[1]),n(i[1])-n(r[1]),o)];f[0]&&a.set("scrollLeft",f[0]),f[1]&&a.set("scrollTop",f[1])},get:function(e){var t=e._node;return[t.get("scrollLeft"),t.get("scrollTop")]}}},"patched-v3.11.0",{requires:["anim-base"]});YUI.add("overlay",function(e,t){e.Overlay=e.Base.create("overlay",e.Widget,[e.WidgetStdMod,e.WidgetPosition,e.WidgetStack,e.WidgetPositionAlign,e.WidgetPositionConstrain])},"patched-v3.11.0",{requires:["widget","widget-stdmod","widget-position","widget-position-align","widget-stack","widget-position-constrain"],skinnable:!0});YUI.add("aui-overlay-manager-deprecated",function(e,t){var n=e.Lang,r=n.isArray,i=n.isBoolean,s=n.isNumber,o=n.isString,u="boundingBox",a="default",f="host",l="OverlayManager",c="group",h="zIndex",p="zIndexBase",d=e.Component.create({NAME:l.toLowerCase(),ATTRS:{zIndexBase:{value:1e3,validator:s,setter:n.toInt}},EXTENDS:e.Base,prototype:{initializer:function(){var e=this;e._overlays=[]},bringToTop:function(e){var t=this,n=t._overlays.sort(t.sortByZIndexDesc),r=n[0];if(r!==e){var i=e.get(h),s=r.get(h);e.set(h,s+1),e.set("focused",!0)}},destructor:function(){var e=this;e._overlays=[]},register:function(t){var n=this,i=n._overlays;if(r(t))e.Array.each(t,function(e){n.register(e)});else{var s=n.get(p),o=n._registered(t);if(!o&&t&&(t instanceof e.Overlay||e.Component&&t instanceof e.Component)){var a=t.get(u);i.push(t);var f=t.get(h)||0,l=i.length+f+s;t.set(h,l),t.on("focusedChange",n._onFocusedChange,n),a.on("mousedown",n._onMouseDown,n)}}return i},remove:function(t){var n=this,r=n._overlays;return r.length?e.Array.removeItem(r,t):null},each:function(t){var n=this,r=n._overlays;e.Array.each(r,t)},showAll:function(){this.each(function(e){e.show()})},hideAll:function(){this.each(function(e){e.hide()})},sortByZIndexDesc:function(t,n){if(!t||!n||!t.hasImpl(e.WidgetStack)||!n.hasImpl(e.WidgetStack))return 0;var r=t.get(h),i=n.get(h);return r>i?-1:r<i?1:0},_registered:function(t){var n=this;return e.Array.indexOf(n._overlays,t)!=-1},_onMouseDown:function(t){var n=this,r=e.Widget.getByNode(t.currentTarget||t.target),i=n._registered(r);r&&i&&n.bringToTop(r)},_onFocusedChange:function(e){var t=this;if(e.newVal){var n=e.currentTarget||e.target,r=t._registered(n);n&&r&&t.bringToTop(n)}}}});e.OverlayManager=d},"2.0.0",{requires:["overlay","plugin","aui-base-deprecated","aui-overlay-base-deprecated"]});YUI.add("aui-aria",function(e,t){var n=e.Lang,r=n.isBoolean,i=n.isFunction,s=n.isObject,o=n.isString,u="attributeValueFormat",a="attributes",f="aria",l="aria-",c="attributeNode",h="boundingBox",p="host",d="role",v="roleName",m="roleNode",g="validateW3C",y="Change",b="",w=/([^a-z])/ig,E="aria:processAttribute",S=e.cached(function(e){return e.replace(w,function(){return b}).toLowerCase()}),x=e.Component.create({NAME:f,NS:f,ATTRS:{attributes:{value:{},validator:s},attributeValueFormat:{value:function(e){return e},validator:i},attributeNode:{writeOnce:!0,setter:e.one,valueFn:function(){return this.get(p).get(h)}},roleName:{valueFn:function(){var e=this,t=e.get(p),n=S(t.constructor.NAME||b);return e.isValidRole(n)?n:b},validator:o},roleNode:{writeOnce:!0,setter:e.one,valueFn:function(){return this.get(p).get(h)}},validateW3C:{value:!0,validator:r}},EXTENDS:e.Plugin.Base,prototype:{initializer:function(){var e=this;e.publish(E,{defaultFn:e._defProcessFn,queuable:!1,emitFacade:!0,bubbles:!0,prefix:f}),e._uiSetRoleName(e.get(v)),e.after("roleNameChange",e._afterRoleNameChange),e._bindHostAttributes()},isValidAttribute:function(t){var n=this;return n.get(g)?e.Plugin.Aria.W3C_ATTRIBUTES[t]:!0},isValidRole:function(t){var n=this;return n.get(g)?e.Plugin.Aria.W3C_ROLES[t]:!0},setAttribute:function(e,t,n){var r=this;return r.isValidAttribute(e)?((n||r.get(c)).set(l+e,t),!0):!1},setAttributes:function(t){var n=this;e.Array.each(t,function(e,t,r){n.setAttribute(e.name,e.value,e.node)})},setRole:function(e,t){var n=this;return n.isValidRole(e)?((t||n.get(m)).set(d,e),!0):!1},setRoles:function(t){var n=this;e.Array.each(t,function(e,t,r){n.setRole(e.name,e.node)})},_afterHostAttributeChange:function(e){var t=this;t._handleProcessAttribute(e)},_afterRoleNameChange:function(e){var t=this;t._uiSetRoleName(e.newVal)},_bindHostAttributes:function(){var t=this,n=t.get(a);e.each(n,function(e,n){var r=t._getAriaAttribute(e,n);t._handleProcessAttribute({aria:r}),t.afterHostEvent(n+y,function(e){e.aria=r,t._afterHostAttributeChange(e)})})},_defProcessFn:function(e){var t=this;t._setAttribute(e.aria)},_getAriaAttribute:function(t,n){var r=this,i=r.get(u),a={};return o(t)?a=e.merge(a,{ariaName:t,attrName:n,format:i,node:null}):s(t)&&(a=e.mix(t,{ariaName:b,attrName:n,format:i,node:null})),a},_handleProcessAttribute:function(e){var t=this;t.fire(E,{aria:e.aria})},_setAttribute:function(e){var t=this,n=t.get(p),r=n.get(e.attrName),s=e.node;i(s)&&(s=s.apply(t,[e])),t.setAttribute(e.ariaName,e.format.apply(t,[r,e]),s)},_uiSetRoleName:function(e){var t=this;t.setRole(e)}}});e.Plugin.Aria=x,e.Plugin.Aria.W3C_ROLES={alert:1,alertdialog:1,application:1,article:1,banner:1,button:1,checkbox:1,columnheader:1,combobox:1,command:1,complementary:1,composite:1,contentinfo:1,definition:1,dialog:1,directory:1,document:1,form:1,grid:1,gridcell:1,group:1,heading:1,img:1,input:1,landmark:1,link:1,list:1,listbox:1,listitem:1,log:1,main:1,marquee:1,math:1,menu:1,menubar:1,menuitem:1,menuitemcheckbox:1,menuitemradio:1,navigation:1,note:1,option:1,presentation:1,progressbar:1,radio:1,radiogroup:1,range:1,region:1,roletype:1,row:1,rowheader:1,scrollbar:1,search:1,section:1,sectionhead:1,select:1,separator:1,slider:1,spinbutton:1,status:1,structure:1,tab:1,tablist:1,tabpanel:1,textbox:1,timer:1,toolbar:1,tooltip:1,tree:1,treegrid:1,treeitem:1,widget:1,window:1},e.Plugin.Aria.W3C_ATTRIBUTES={activedescendant:1,atomic:1,autocomplete:1,busy:1,checked:1,controls:1,describedby:1,disabled:1,dropeffect:1,expanded:1,flowto:1,grabbed:1,haspopup:1,hidden:1,invalid:1,label:1,labelledby:1,level:1,live:1,multiline:1,multiselectable:1,orientation:1,owns:1,posinset:1,pressed:1,readonly:1,relevant:1,required:1,selected:1,setsize:1,sort:1,valuemax:1,valuemin:1,valuenow:1,valuetext:1}},"2.0.0",{requires:["plugin","aui-component"]});YUI.add("aui-overlay-context-deprecated",function(e,t){var n=e.Lang,r=n.isString,i=n.isNumber,s=n.isObject,o=n.isBoolean,u=function(t){return t instanceof e.NodeList},a="align",f="bl",l="boundingBox",c="cancellableHide",h="overlaycontext",p="currentNode",d="focused",v="hide",m="hideDelay",g="hideOn",y="hideOnDocumentClick",b="mousedown",w="show",E="showDelay",S="showOn",x="tl",T="trigger",N="useARIA",C="visible",k=e.Component.create({NAME:h,ATTRS:{align:{value:{node:null,points:[x,f]}},cancellableHide:{value:!0,validator:o},currentNode:{valueFn:function(){return this.get(T).item(0)}},delay:{value:null,validator:s},hideOn:{lazyAdd:!1,value:"mouseout",setter:function(e){return this._setHideOn(e)}},hideOnDocumentClick:{lazyAdd:!1,setter:function(e){return this._setHideOnDocumentClick(e)},value:!0,validator:o},hideDelay:{lazyAdd:!1,setter:"_setHideDelay",value:0,validator:i},showOn:{lazyAdd:!1,value:"mouseover",setter:function(e){return this._setShowOn(e)}},showDelay:{lazyAdd:!1,setter:"_setShowDelay",value:0,validator:i},trigger:{lazyAdd:!1,setter:function(t){return u(t)?t:r(t)?e.all(t):new e.NodeList([t])}},useARIA:{value:!0},visible:{value:!1}},EXTENDS:e.OverlayBase,constructor:function(e){var t=this;t._showCallback=null,t._hideCallback=null,k.superclass.constructor.apply(this,arguments)},prototype:{initializer:function(){var e=this,t=e.get(T);t&&t.size()&&e.set("align.node",t.item(0))},bindUI:function(){var t=this,n=t.get(l);n.on(b,t._stopTriggerEventPropagation),t.before("triggerChange",t._beforeTriggerChange),t.before("showOnChange",t._beforeShowOnChange),t.before("hideOnChange",t._beforeHideOnChange),t.after("triggerChange",t._afterTriggerChange),t.after("showOnChange",t._afterShowOnChange),t.after("hideOnChange",t._afterHideOnChange),n.on("click",e.bind(t._cancelAutoHide,t)),n.on("mouseenter",e.bind(t._cancelAutoHide,t)),n.on("mouseleave",e.bind(t._invokeHideTaskOnInteraction,t)),t.after("focusedChange",e.bind(t._invokeHideTaskOnInteraction,t)),t.on("visibleChange",t._onVisibleChangeOverlayContext)},hide:function(){var e=this;e.clearIntervals(),e.fire("hide"),k.superclass.hide.apply(e,arguments)},show:function(e){var t=this;t.clearIntervals(),t.updateCurrentNode(e),t.fire("show"),k.superclass.show.apply(t,arguments),t.refreshAlign()},syncUI:function(){var t=this;t.get(N)&&t.plug(e.Plugin.Aria,{attributes:{trigger:{ariaName:"controls",format:function(e){var n=t.get(l).generateID();return n},node:function(){return t.get(T)}},visible:{ariaName:"hidden",format:function(e){return!e}}},roleName:"dialog"})},toggle:function(e){var t=this;t.get(C)?t._hideTask(e):t._showTask(e)},clearIntervals:function(){this._hideTask.cancel(),this._showTask.cancel()},refreshAlign:function(){var e=this,t=e.get(a),n=e.get(p);n&&e._uiSetAlign(n,t.points)},updateCurrentNode:function(e){var t=this,n=t.get(a),r=t.get(T),i=null;e&&(i=e.currentTarget);var s=i||r.item(0)||n.node;s&&t.set(p,s)},_toggle:function(e){var t=this;if(t.get("disabled"))return;var n=e.currentTarget;t._lastTarget!=n&&t.hide(),t.toggle(e),e.stopPropagation(),t._lastTarget=n},_afterShowOnChange:function(e){var t=this,n=e.prevVal==t.get(g);if(n){var r=t.get(T);r.detach(e.prevVal,t._hideCallback),t._setHideOn(t.get(g))}},_afterHideOnChange:function(e){var t=this,n=e.prevVal==t.get(S);if(n){var r=t.get(T);r.detach(e.prevVal,t._showCallback),t._setShowOn(t.get(S))}},_afterTriggerChange:function(e){var t=this;t._setShowOn(t.get(S)),t._setHideOn(t.get(g))},_beforeShowOnChange:function(e){var t=this,n=t.get(T);n.detach(e.prevVal,t._showCallback)},_beforeHideOnChange:function(e){var t=this,n=t.get(T);n.detach(e.prevVal,t._hideCallback)},_beforeTriggerChange:function(e){var t=this,n=t.get(T),r=t.get(S),i=t.get(g);n.detach(r,t._showCallback),n.detach(i,t._hideCallback),n.detach(b,t._stopTriggerEventPropagation)},_cancelAutoHide:function(e){var t=this;t.get(c)&&t.clearIntervals(),e.stopPropagation()},_invokeHideTaskOnInteraction:function(e){var t=this,n=t.get(c),r=t.get(d);!r&&!n&&t._hideTask()},_onVisibleChangeOverlayContext:function(e){var t=this;e.newVal&&t.get("disabled")&&e.preventDefault()},_stopTriggerEventPropagation:function(e){e.stopPropagation()},_setHideDelay:function(t){var n=this;return n._hideTask=e.debounce(n.hide,t,n),t},_setHideOn:function(t){var n=this,r=n.get(T),i=t==n.get(S);if(i)n._hideCallback=e.bind(n._toggle,n),r.detach(t,n._showCallback);else{var s=n.get(m);n._hideCallback=function(e){n._hideTask(e),e.stopPropagation()}}return r.on(t,n._hideCallback),t},_setHideOnDocumentClick:function(t){var n=this;return t?e.OverlayContextManager.register(n):e.OverlayContextManager.remove(n),t},_setShowDelay:function(t){var n=this;return n._showTask=e.debounce(n.show,t,n),t},_setShowOn:function(t){var n=this,r=n.get(T),i=t==n.get(g);if(i)n._showCallback=e.bind(n._toggle,n),r.detach(t,n._hideCallback);else{var s=n.get(E);n._showCallback=function(e){n._showTask(e),e.stopPropagation()}}return t!=b?r.on(b,n._stopTriggerEventPropagation):r.detach(b,n._stopTriggerEventPropagation),r.on(t,n._showCallback),t}}});e.OverlayContext=k,e.OverlayContextManager=new e.OverlayManager({}),e.on(b,function(){e.OverlayContextManager.hideAll()},e.getDoc())},"2.0.0",{requires:["aui-overlay-manager-deprecated","aui-delayed-task-deprecated","aui-aria"]});YUI.add("aui-overlay-context-panel-deprecated",function(e,t){var n=e.Lang,r=n.isBoolean,i=n.isString,s=n.isObject,o="align",u="anim",a="arrow",f="backgroundColor",l="",c="boundingBox",h="click",p="contentBox",d="overlaycontextpanel",v="default",m=".",g="end",y="hidden",b="inner",w="opacity",E="pointer",S="showArrow",x="state",T="style",N="visible",C="bc",k="bl",L="br",A="cc",O="lb",M="lc",_="lt",D="rb",P="rc",H="rl",B=e.getClassName,j=B(d),F=B(d,a,l),I=B(d,y),q=B(d,E),R=B(d,E,b),U=B(x,v),z='<div class="'+[U,q].join(" ")+'"></div>',W='<div class="'+R+'"></div>',X=e.Component.create({NAME:d,ATTRS:{anim:{lazyAdd:!1,value:{show:!1},setter:function(e){return this._setAnim(e)}},arrow:{value:null,validator:i},hideOn:{value:h},showOn:{value:h},showArrow:{lazyAdd:!1,value:!0,validator:r},stack:{lazyAdd:!1,value:!0,setter:function(e){return this._setStack(e)},validator:r}},EXTENDS:e.OverlayContext,prototype:{bindUI:function(){var e=this;e.after("showArrowChange",e._afterShowArrowChange),e.before("show",e._beforeShow),X.superclass.bindUI.apply(e,arguments)},renderUI:function(){var e=this;e._renderElements()},syncUI:function(){var e=this;X.superclass.syncUI.apply(e,arguments),e._syncElements()},align:function(e,t){var n=this;X.superclass.align.apply(this,arguments),n._syncElements()},fixPointerColor:function(){var e=this,t=e.get(p),n=t.one(m+R);n.removeAttribute(T);var r=t.getStyle(f),i="borderBottomColor",s=[m+F+D,m+F+P,m+F+H].join(","),o=[m+F+L,m+F+C,m+F+k].join(","),u=[m+F+O,m+F+M,m+F+_].join(",");t.test(s)?i="borderLeftColor":t.test(o)?i="borderTopColor":t.test(u)&&(i="borderRightColor"),n.setStyle(i,r)},getAlignPoint:function(){var e=this,t=e.get(o).points[0];return t==A&&(t=C),e.get(a)||t},hide:function(e){var t=this;if(t._hideAnim){var n=t.get(N);n&&(t._hideAnim.once(g,function(){X.superclass.hide.apply(t,arguments)}),t._hideAnim.run())}else X.superclass.hide.apply(t,arguments)},_renderElements:function(){var t=this,n=t.get(p),r=t.get(o),i=r.points[0];n.addClass(U),t._pointerNode=e.Node.create(z).append(W),n.append(t._pointerNode)},_syncElements:function(){var e=this,t=e.get(p),n=e._pointerNode,r=e.getAlignPoint();e.get(S)?(n.removeClass(I),t.removeClass(F+e._lastOverlayPoint),t.addClass(F+r),e.fixPointerColor()):n.addClass(I),e._lastOverlayPoint=r},_setStack:function(t){var n=this;return t?e.OverlayContextPanelManager.register(n):e.OverlayContextPanelManager.remove(n),t},_setAnim:function(t){var n=this,r=n.get(c);if(t){var i={node:r,duration:.1},o=e.merge(i,{from:{opacity:0},to:{opacity:1}}),u=e.merge(i,{from:{opacity:1},to:{opacity:0}});s(t)&&(o=e.merge(o,t.show),u=e.merge(u,t.hide)),n._showAnim=new e.Anim(o),n._hideAnim=new e.Anim(u),s(t)&&(t.show===!1&&(n._showAnim=null),t.hide===!1&&(n._hideAnim=null))}return t},_beforeShow:function(e){var t=this,n=t.get(c),r=t.get(N);!r&&t._showAnim?(n.setStyle(w,0),t._showAnim.run()):n.setStyle(w,1)},_afterShowArrowChange:function(){var e=this;e._syncElements()}}});e.OverlayContextPanel=X,e.OverlayContextPanelManager=new e.OverlayManager({zIndexBase:1e3})},"2.0.0",{requires:["anim","aui-overlay-context-deprecated"],skinnable:!0});YUI.add("aui-tooltip-deprecated",function(e,t){var n=e.Lang,r=n.isString,i=n.isUndefined,s=n.isBoolean,o="bl",u="tr",a="",f="attr",l="title",c="currentNode",h="section",p="trigger",d="bodyContent",v="tooltip",m=e.Component.create({NAME:v,ATTRS:{anim:{value:{show:!1}},align:{value:{node:null,points:[o,u]}},showOn:{value:"mouseover"},hideOn:{value:"mouseout"},hideClass:{value:!1},hideDelay:{value:500},title:{value:!1,validator:s}},EXTENDS:e.OverlayContextPanel,prototype:{bindUI:function(){var e=this;m.superclass.bindUI.apply(e,arguments)},show:function(){var e=this,t=e.get(d);m.superclass.show.apply(e,arguments),e.get(l)&&e._loadBodyContentFromTitle(e.get(c))},_loadBodyContentFromTitle:function(e){var t=this,n=t.get(p);t._titles||(t._titles=n.attr(l),n.attr(l,a));if(e){var r=n.indexOf(e),i=t._titles[r];t.set(d,i)}},_afterBodyChange:function(e){var t=this;m.superclass._afterBodyChange.apply(this,arguments),t.refreshAlign()}}});e.Tooltip=m},"2.0.0",{requires:["aui-overlay-context-panel-deprecated"],skinnable:!0});YUI.add("async-queue",function(e,t){e.AsyncQueue=function(){this._init(),this.add.apply(this,arguments)};var n=e.AsyncQueue,r="execute",i="shift",s="promote",o="remove",u=e.Lang.isObject,a=e.Lang.isFunction;n.defaults=e.mix({autoContinue:!0,iterations:1,timeout:10,until:function(){return this.iterations|=0,this.iterations<=0}},e.config.queueDefaults||{}),e.extend(n,e.EventTarget,{_running:!1,_init:function(){e.EventTarget.call(this,{prefix:"queue",emitFacade:!0}),this._q=[],this.defaults={},this._initEvents()},_initEvents:function(){this.publish({execute:{defaultFn:this._defExecFn,emitFacade:!0},shift:{defaultFn:this._defShiftFn,emitFacade:!0},add:{defaultFn:this._defAddFn,emitFacade:!0},promote:{defaultFn:this._defPromoteFn,emitFacade:!0},remove:{defaultFn:this._defRemoveFn,emitFacade:!0}})},next:function(){var e;while(this._q.length){e=this._q[0]=this._prepare(this._q[0]);if(!e||!e.until())break;this.fire(i,{callback:e}),e=null}return e||null},_defShiftFn:function(e){this.indexOf(e.callback)===0&&this._q.shift()},_prepare:function(t){if(a(t)&&t._prepared)return t;var r=e.merge(n.defaults,{context:this,args:[],_prepared:!0},this.defaults,a(t)?{fn:t}:t),i=e.bind(function(){i._running||i.iterations--,a(i.fn)&&i.fn.apply(i.context||e,e.Array(i.args))},this);return e.mix(i,r)},run:function(){var e,t=!0;if(this._executing)return this._running=!0,this;for(e=this.next();e&&!this.isRunning();e=this.next()){t=e.timeout<0?this._execute(e):this._schedule(e);if(!t)break}return e||this.fire("complete"),this},_execute:function(e){this._running=e._running=!0,this._executing=e,e.iterations--,this.fire(r,{callback:e});var t=this._running&&e.autoContinue;return this._running=e._running=!1,this._executing=!1,t},_schedule:function(t){return this._running=e.later(t.timeout,this,function(){this._execute(t)&&this.run()}),!1},isRunning:function(){return!!this._running},_defExecFn:function(e){e.callback()},add:function(){return this.fire("add",{callbacks:e.Array(arguments,0,!0)}),this},_defAddFn:function(t){var n=this._q,r=[];e.Array.each(t.callbacks,function(e){u(e)&&(n.push(e),r.push(e))}),t.added=r},pause:function(){return this._running&&u(this._running)&&this._running.cancel(),this._running=!1,this},stop:function(){return this._q=[],this._running&&u(this._running)&&(this._running.cancel(),this._running=!1),this},indexOf:function(e){var t=0,n=this._q.length,r;for(;t<n;++t){r=this._q[t];if(r===e||r.id===e)return t}return-1},getCallback:function(e){var t=this.indexOf(e);return t>-1?this._q[t]:null},promote:function(e){var t={callback:e},n;return this.isRunning()?n=this.after(i,function(){this.fire(s,t),n.detach()},this):this.fire(s,t),this},_defPromoteFn:function(e){var t=this.indexOf(e.callback),n=t>-1?this._q.splice(t,1)[0]:null;e.promoted=n,n&&this._q.unshift(n)},remove:function(e){var t={callback:e},n;return this.isRunning()?n=this.after(i,function(){this.fire(o,t),n.detach()},this):this.fire(o,t),this},_defRemoveFn:function(e){var t=this.indexOf(e.callback);e.removed=t>-1?this._q.splice(t,1)[0]:null},size:function(){return this.isRunning()||this.next(),this._q.length}})},"patched-v3.11.0",{requires:["event-custom"]});YUI.add("aui-parse-content",function(e,t){var n=e.Lang,r=n.isString,i=e.config.doc,s="<div>_</div>",o={"":1,"text/javascript":1,"text/parsed":1},u=e.Component.create({NAME:"ParseContent",NS:"ParseContent",ATTRS:{queue:{value:null},preserveScriptNodes:{validator:n.isBoolean,value:!1}},EXTENDS:e.Plugin.Base,prototype:{initializer:function(){var t=this;u.superclass.initializer.apply(this,arguments),t.set("queue",new e.AsyncQueue),t._bindAOP()},globalEval:function(t){var r=e.getDoc(),s=r.one("head")||r.get("documentElement"),o=i.createElement("script");o.type="text/javascript",t&&(o.text=n.trim(t)),s.appendChild(o).remove()},parseContent:function(e){var t=this,n=t._extractScripts(e);return t._dispatch(n),n},_addInlineScript:function(e){var t=this;t.get("queue").add({args:e,context:t,fn:t.globalEval,timeout:0})},_bindAOP:function(){var t=this,n=function(n){var r=Array.prototype.slice.call(arguments),i=t.parseContent(n);return r.splice(0,1,i.fragment),new e.Do.AlterArgs(null,r)};this.doBefore("insert",n),this.doBefore("replaceChild",n);var r=function(n){var r=t.parseContent(n);return new e.Do.AlterArgs(null,[r.fragment])};this.doBefore("replace",r),this.doBefore("setContent",r)},_extractScripts:function(t){var n=this,i=e.Node.create("<div></div>"),u={},a=n.get("preserveScriptNodes");return r(t)?(t=s+t,e.DOM.addHTML(i,t,"append")):(i.append(s),i.append(t)),u.js=i.all("script").filter(function(e){var t=o[e.getAttribute("type").toLowerCase()];return a&&e.setAttribute("type","text/parsed"),t}),a||u.js.each(function(e){e.remove()}),i.get("firstChild").remove(),u.fragment=i.get("childNodes").toFrag(),u},_dispatch:function(t){var n=this,r=n.get("queue"),i=[];t.js.each(function(t){var s=t.get("src");if(s)i.length&&(n._addInlineScript(i.join(";")),i.length=0),r.add({autoContinue:!1,fn:function(){e.Get.script(s,{onEnd:function(e){e.purge(),r.run()}})},timeout:0});else{var o=t._node;i.push(o.text||o.textContent||o.innerHTML||"")}}),i.length&&n._addInlineScript(i.join(";")),r.run()}}});e.namespace("Plugin").ParseContent=u},"2.0.0",{requires:["async-queue","plugin","io-base","aui-component","aui-node-base"]});YUI.add("aui-overlay-mask-deprecated",function(e,t){var n=e.Lang,r=n.isArray,i=n.isString,s=n.isNumber,o=n.isValue,u=e.config,a=e.UA,f=a.ie<=6,l="absolute",c="alignPoints",h="background",p="boundingBox",d="contentBox",v="fixed",m="height",g="offsetHeight",y="offsetWidth",b="opacity",w="overlaymask",E="position",S="target",x="width",T=e.Component.create({NAME:w,ATTRS:{alignPoints:{value:["tl","tl"],validator:r},background:{lazyAdd:!1,value:null,validator:i,setter:function(e){return e&&this.get(d).setStyle(h,e),e}},target:{cloneDefaultValue:!1,lazyAdd:!1,value:u.doc,setter:function(t){var n=this,r=e.one(t),i=n._isDoc=r.compareTo(u.doc),s=n._isWin=r.compareTo(u.win);return n._fullPage=i||s,r}},opacity:{value:.5,validator:s,setter:function(e){return this._setOpacity(e)}},shim:{value:e.UA.ie},visible:{value:!1},zIndex:{value:1e3}},EXTENDS:e.OverlayBase,prototype:{bindUI:function(){var t=this;T.superclass.bindUI.apply(this,arguments),t.after("targetChange",t._afterTargetChange),t.after("visibleChange",t._afterVisibleChange),e.on("windowresize",e.bind(t.refreshMask,t))},syncUI:function(){var e=this;e.refreshMask()},getTargetSize:function(){var t=this,n=t.get(S),r=t._isDoc,i=t._isWin,s=n.get(g),o=n.get(y);return f?i?(o=e.DOM.winWidth(),s=e.DOM.winHeight()):r&&(o=e.DOM.docWidth(),s=e.DOM.docHeight()):t._fullPage&&(s="100%",o="100%"),{height:s,width:o}},refreshMask:function(){var e=this,t=e.get(c),n=e.get(S),r=e.get(p),i=e.getTargetSize(),s=e._fullPage;r.setStyles({position:f||!s?l:v,left:0,top:0});var u=i.height,a=i.width;o(u)&&e.set(m,u),o(a)&&e.set(x,a),s||e.align(n,t)},_setOpacity:function(e){var t=this;return t.get(d).setStyle(b,e),e},_uiSetVisible:function(e){var t=this;T.superclass._uiSetVisible.apply(this,arguments),e&&t._setOpacity(t.get(b))},_afterTargetChange:function(e){var t=this;t.refreshMask()},_afterVisibleChange:function(e){var t=this;t._uiSetVisible(e.newVal)},_uiSetXY:function(){var e=this;(!e._fullPage||f)&&T.superclass._uiSetXY.apply(e,arguments)}}});e.OverlayMask=T},"2.0.0",{requires:["event-resize","aui-base-deprecated","aui-overlay-base-deprecated"],skinnable:!0});