YUI.add("base-core",function(n,t){var h=n.Object,e=n.Lang,y="initializer",a=Object.prototype.constructor,u="destructor",s=n.AttributeCore,_=function(t,s,i){for(var r in s)i[r]&&(t[r]=s[r]);return t};function i(t){this._BaseInvoked||(this._BaseInvoked=!0,this._initBase(t))}i._ATTR_CFG=s._ATTR_CFG.concat("cloneDefaultValue"),i._NON_ATTRS_CFG=["plugins"],i.NAME="baseCore",i.ATTRS={initialized:{readOnly:!0,value:!1},destroyed:{readOnly:!0,value:!1}},i.modifyAttrs=function(t,s){var i,r,e;if("function"!=typeof t&&(s=t,t=this),i=t.ATTRS||(t.ATTRS={}),s)for(e in t._CACHED_CLASS_DATA=null,s)s.hasOwnProperty(e)&&(r=i[e]||(i[e]={}),n.mix(r,s[e],!0))},i.prototype={_initBase:function(t){n.stamp(this),this._initAttribute(t);var s=n.Plugin&&n.Plugin.Host;this._initPlugins&&s&&s.call(this),!1!==this._lazyAddAttrs&&(this._lazyAddAttrs=!0),this.name=this.constructor.NAME,this.init.apply(this,arguments)},_initAttribute:function(){s.call(this)},init:function(t){return this._baseInit(t),this},_baseInit:function(t){this._initHierarchy(t),this._initPlugins&&this._initPlugins(t),this._set("initialized",!0)},destroy:function(){return this._baseDestroy(),this},_baseDestroy:function(){this._destroyPlugins&&this._destroyPlugins(),this._destroyHierarchy(),this._set("destroyed",!0)},_getClasses:function(){return this._classes||this._initHierarchyData(),this._classes},_getAttrCfgs:function(){return this._attrs||this._initHierarchyData(),this._attrs},_getInstanceAttrCfgs:function(t){var s,i,r,e,n,a,o={},l=t._subAttrs,u=this._attrCfgHash();for(n in t)if(t.hasOwnProperty(n)&&"_subAttrs"!==n&&(a=t[n],(a=(s=o[n]=_({},a,u)).value)&&"object"==typeof a&&this._cloneDefaultValue(n,s),l&&l.hasOwnProperty(n)))for(e in r=t._subAttrs[n])(i=r[e]).path&&h.setValue(s.value,i.path,i.value);return o},_filterAdHocAttrs:function(t,s){var i,r,e=this._nonAttrs;if(s)for(r in i={},s)t[r]||e[r]||!s.hasOwnProperty(r)||(i[r]={value:s[r]});return i},_initHierarchyData:function(){var t,s,i,r,e,n=this.constructor,a=n._CACHED_CLASS_DATA,o=!n._ATTR_CFG_HASH,l={},u=[],h=[],_=n;if(!a){for(;_;){if((u[u.length]=_).ATTRS&&(h[h.length]=_.ATTRS),o&&(r=r||{},i=_._ATTR_CFG))for(t=0,s=i.length;t<s;t+=1)r[i[t]]=!0;if(e=_._NON_ATTRS_CFG)for(t=0,s=e.length;t<s;t++)l[e[t]]=!0;_=_.superclass?_.superclass.constructor:null}o&&(n._ATTR_CFG_HASH=r),a=n._CACHED_CLASS_DATA={classes:u,nonAttrs:l,attrs:this._aggregateAttrs(h)}}this._classes=a.classes,this._attrs=a.attrs,this._nonAttrs=a.nonAttrs},_attrCfgHash:function(){return this.constructor._ATTR_CFG_HASH},_cloneDefaultValue:function(t,s){var i=s.value,r=s.cloneDefaultValue;"deep"===r||!0===r?s.value=n.clone(i):"shallow"===r?s.value=n.merge(i):r!==undefined||a!==i.constructor&&!e.isArray(i)||(s.value=n.clone(i))},_aggregateAttrs:function(t){var s,i,r,e,n,a,o,l=this._attrCfgHash(),u={};if(t)for(a=t.length-1;0<=a;--a)for(s in i=t[a])i.hasOwnProperty(s)&&(e=_({},i[s],l),n=null,o=u[s=-1!==s.indexOf(".")?(n=s.split(".")).shift():s],n&&o&&o.value?((r=(r=u._subAttrs)||(u._subAttrs={}))[s]||(r[s]={}),r[s][n.join(".")]={value:e.value,path:n}):n||(o?(o.valueFn&&"value"in e&&(o.valueFn=null),_(o,e,l)):u[s]=e));return u},_initHierarchy:function(t){for(var s,i,r,e,n,a,o,l,u,h=this._lazyAddAttrs,_=[],c=this._getClasses(),A=this._getAttrCfgs(),f=c.length-1;0<=f;f--)if(i=(s=c[f]).prototype,l=s._yuibuild&&s._yuibuild.exts,i.hasOwnProperty(y)&&(_[_.length]=i.initializer),l)for(n=0,a=l.length;n<a;n++)(o=l[n]).apply(this,arguments),(o=o.prototype).hasOwnProperty(y)&&(_[_.length]=o.initializer);for(u=this._getInstanceAttrCfgs(A),this._preAddAttrs&&this._preAddAttrs(u,t,h),this._allowAdHocAttrs&&this.addAttrs(this._filterAdHocAttrs(A,t),t,h),this.addAttrs(u,t,h),r=0,e=_.length;r<e;r++)_[r].apply(this,arguments)},_destroyHierarchy:function(){for(var t,s,i,r,e,n,a=this._getClasses(),o=0,l=a.length;o<l;o++){if(s=(t=a[o]).prototype,e=t._yuibuild&&t._yuibuild.exts)for(i=0,r=e.length;i<r;i++)(n=e[i].prototype).hasOwnProperty(u)&&n.destructor.apply(this,arguments);s.hasOwnProperty(u)&&s.destructor.apply(this,arguments)}},toString:function(){return this.name+"["+n.stamp(this,!0)+"]"}},n.mix(i,s,!1,null,1),n.BaseCore=i.prototype.constructor=i},"patched-v3.18.4",{requires:["attribute-core"]});
YUI.add("base-observable",function(t,e){var n=t.Lang,i="destroy",r=t.AttributeObservable,s=t.BaseCore;function a(){}a._ATTR_CFG=r._ATTR_CFG.concat(),a._NON_ATTRS_CFG=["on","after","bubbleTargets"],a.prototype={_initAttribute:function(){s.prototype._initAttribute.apply(this,arguments),r.call(this),this._eventPrefix=this.constructor.EVENT_PREFIX||this.constructor.NAME,this._yuievt.config.prefix=this._eventPrefix},init:function(t){var e=this._getFullType("init"),i=this._publish(e);return i.emitFacade=!0,i.fireOnce=!0,i.defaultTargetOnly=!0,i.defaultFn=this._defInitFn,this._preInitEventCfg(t),i._hasPotentialSubscribers()?this.fire(e,{cfg:t}):(this._baseInit(t),i.fired=!0,i.firedWith=[{cfg:t}]),this},_preInitEventCfg:function(t){t&&(t.on&&this.on(t.on),t.after&&this.after(t.after));var e,i,r,s=t&&"bubbleTargets"in t;if(s||"_bubbleTargets"in this)if(r=s?t&&t.bubbleTargets:this._bubbleTargets,n.isArray(r))for(e=0,i=r.length;e<i;e++)this.addTarget(r[e]);else r&&this.addTarget(r)},destroy:function(){return this.publish(i,{fireOnce:!0,defaultTargetOnly:!0,defaultFn:this._defDestroyFn}),this.fire(i),this.detachAll(),this},_defInitFn:function(t){this._baseInit(t.cfg)},_defDestroyFn:function(t){this._baseDestroy(t.cfg)}},t.mix(a,r,!1,null,1),t.BaseObservable=a},"patched-v3.18.4",{requires:["attribute-observable","base-core"]});
YUI.add("aui-widget-cssclass",function(e,t){function n(){}n.ATTRS={cssClass:{}},n.CSS_CLASS_CONTENT_SUFFIX="-content",n.prototype={initializer:function(){var e=this;e._uiSetCssClass(e.get("cssClass")),e.after("cssClassChange",e._afterCssClassChange)},_afterCssClassChange:function(e){var t=this,r;r=e.prevVal,r&&(t.get("boundingBox").removeClass(r),t.get("contentBox").removeClass(r+n.CSS_CLASS_CONTENT_SUFFIX)),t._uiSetCssClass(e.newVal)},_uiSetCssClass:function(e){var t=this;e&&(t.get("boundingBox").addClass(e),t.get("contentBox").addClass(e+n.CSS_CLASS_CONTENT_SUFFIX))}},e.WidgetCssClass=n},"3.1.0-deprecated.101",{requires:["widget-base"]});

YUI.add("aui-widget-toggle",function(e,t){function n(){}n.prototype={toggle:function(t){var n=this;return e.Lang.isBoolean(t)||(t=!n.get("visible")),n.set("visible",t)}},e.WidgetToggle=n},"3.1.0-deprecated.101");

YUI.add("base-build",function(p,t){var u,n=p.BaseCore,y=p.Base,o=p.Lang,A="initializer",C="destructor",e=["_PLUG","_UNPLUG"];function i(t,e,r){r[t]&&(e[t]=(e[t]||[]).concat(r[t]))}function r(t,e,r){r._ATTR_CFG&&(e._ATTR_CFG_HASH=null,i.apply(null,arguments))}function s(t,e,r){n.modifyAttrs(e,r.ATTRS)}y._build=function(t,e,r,n,i,u){for(var s,a,c,o,l=y._build,g=l._ctor(e,u),_=l._cfg(e,u,r),f=l._mixCust,u=g._yuibuild.dynamic,m=0,d=r.length;m<d;m++)c=(a=(s=r[m]).prototype)[A],o=a[C],delete a[A],delete a[C],p.mix(g,s,!0,null,1),f(g,s,_),c&&(a[A]=c),o&&(a[C]=o),g._yuibuild.exts.push(s);return n&&p.mix(g.prototype,n,!0),i&&(p.mix(g,l._clean(i,_),!0),f(g,i,_)),g.prototype.hasImpl=l._impl,u&&(g.NAME=t,(g.prototype.constructor=g).modifyAttrs=e.modifyAttrs),g},u=y._build,p.mix(u,{_mixCust:function(t,e,r){var n,i,u,s,a,c;if(r&&(n=r.aggregates,i=r.custom,u=r.statics),u&&p.mix(t,e,!0,u),n)for(c=0,a=n.length;c<a;c++)s=n[c],!t.hasOwnProperty(s)&&e.hasOwnProperty(s)&&(t[s]=o.isArray(e[s])?[]:{}),p.aggregate(t,e,!0,[s]);if(i)for(c in i)i.hasOwnProperty(c)&&i[c](c,t,e)},_tmpl:function(t){function e(){e.superclass.constructor.apply(this,arguments)}return p.extend(e,t),e},_impl:function(t){for(var e,r,n,i,u=this._getClasses(),s=0,a=u.length;s<a;s++)if((e=u[s])._yuibuild)for(n=(r=e._yuibuild.exts).length,i=0;i<n;i++)if(r[i]===t)return!0;return!1},_ctor:function(t,e){var e=!e||!1!==e.dynamic,t=e?u._tmpl(t):t,r=t._yuibuild;return(r=r||(t._yuibuild={})).id=r.id||null,r.exts=r.exts||[],r.dynamic=e,t},_cfg:function(t,e,r){for(var n,i,u,s=[],a={},c=[],o=e&&e.aggregates,l=e&&e.custom,g=e&&e.statics,_=t;_&&_.prototype;)(n=_._buildCfg)&&(n.aggregates&&(s=s.concat(n.aggregates)),n.custom&&p.mix(a,n.custom,!0),n.statics&&(c=c.concat(n.statics))),_=_.superclass?_.superclass.constructor:null;if(r)for(i=0,u=r.length;i<u;i++)(n=(_=r[i])._buildCfg)&&(n.aggregates&&(s=s.concat(n.aggregates)),n.custom&&p.mix(a,n.custom,!0),n.statics&&(c=c.concat(n.statics)));return o&&(s=s.concat(o)),l&&p.mix(a,e.cfgBuild,!0),{aggregates:s,custom:a,statics:c=g?c.concat(g):c}},_clean:function(t,e){var r,n,i,u=p.merge(t),s=e.aggregates;for(r in e.custom)u.hasOwnProperty(r)&&delete u[r];for(n=0,i=s.length;n<i;n++)r=s[n],u.hasOwnProperty(r)&&delete u[r];return u}}),y.build=function(t,e,r,n){return u(t,e,r,null,null,n)},y.create=function(t,e,r,n,i){return u(t,e,r,n,i)},y.mix=function(t,e){return t._CACHED_CLASS_DATA&&(t._CACHED_CLASS_DATA=null),u(null,t,e,null,null,{dynamic:!1})},n._buildCfg={aggregates:e.concat(),custom:{ATTRS:s,_ATTR_CFG:r,_NON_ATTRS_CFG:i}},y._buildCfg={aggregates:e.concat(),custom:{ATTRS:s,_ATTR_CFG:r,_NON_ATTRS_CFG:i}}},"patched-v3.18.4",{requires:["base-base"]});
YUI.add("widget-position",function(t,i){var e=t.Lang,n=t.Widget,s="xy",o=n.UI_SRC;function r(t){}r.ATTRS={x:{setter:function(t){this._setX(t)},getter:function(){return this._getX()},lazyAdd:!1},y:{setter:function(t){this._setY(t)},getter:function(){return this._getY()},lazyAdd:!1},xy:{value:[0,0],validator:function(t){return this._validateXY(t)}}},r.POSITIONED_CLASS_NAME=n.getClassName("positioned"),r.prototype={initializer:function(){this._posNode=this.get("boundingBox"),t.after(this._renderUIPosition,this,"renderUI"),t.after(this._syncUIPosition,this,"syncUI"),t.after(this._bindUIPosition,this,"bindUI")},_renderUIPosition:function(){this._posNode.addClass(r.POSITIONED_CLASS_NAME)},_syncUIPosition:function(){"relative"===this._posNode.getStyle("position")&&this.syncXY(),this._uiSetXY(this.get(s))},_bindUIPosition:function(){this.after("xyChange",this._afterXYChange)},move:function(){var t=arguments,t=e.isArray(t[0])?t[0]:[t[0],t[1]];this.set(s,t)},syncXY:function(){this.set(s,this._posNode.getXY(),{src:o})},_validateXY:function(t){return e.isArray(t)&&e.isNumber(t[0])&&e.isNumber(t[1])},_setX:function(t){this.set(s,[t,this.get(s)[1]])},_setY:function(t){this.set(s,[this.get(s)[0],t])},_getX:function(){return this.get(s)[0]},_getY:function(){return this.get(s)[1]},_afterXYChange:function(t){t.src!=o&&this._uiSetXY(t.newVal)},_uiSetXY:function(t){this._posNode.setXY(t)}},t.WidgetPosition=r},"patched-v3.18.4",{requires:["base-build","node-screen","widget"]});
YUI.add("widget-stack",function(e,t){var i=e.Lang,s=e.UA,n=e.Node,h=e.Widget,a="zIndex",d="shim",r="visible",_="shimdeferred",c="shimresize",o="visibleChange";function S(e){}S.ATTRS={shim:{value:6==s.ie},zIndex:{value:0,setter:"_setZIndex"}},S.HTML_PARSER={zIndex:function(e){return this._parseZIndex(e)}},S.SHIM_CLASS_NAME=h.getClassName(d),S.STACKED_CLASS_NAME=h.getClassName("stacked"),S.SHIM_TEMPLATE='<iframe class="'+S.SHIM_CLASS_NAME+'" frameborder="0" title="Widget Stacking Shim" src="javascript:false" tabindex="-1" role="presentation"></iframe>',S.prototype={initializer:function(){this._stackNode=this.get("boundingBox"),this._stackHandles={},e.after(this._renderUIStack,this,"renderUI"),e.after(this._syncUIStack,this,"syncUI"),e.after(this._bindUIStack,this,"bindUI")},_syncUIStack:function(){this._uiSetShim(this.get(d)),this._uiSetZIndex(this.get(a))},_bindUIStack:function(){this.after("shimChange",this._afterShimChange),this.after("zIndexChange",this._afterZIndexChange)},_renderUIStack:function(){this._stackNode.addClass(S.STACKED_CLASS_NAME)},_parseZIndex:function(e){e=e.inDoc()&&"static"!==e.getStyle("position")?e.getComputedStyle("zIndex"):"auto";return"auto"===e?null:e},_setZIndex:function(e){return i.isString(e)&&(e=parseInt(e,10)),e=i.isNumber(e)?e:0},_afterShimChange:function(e){this._uiSetShim(e.newVal)},_afterZIndexChange:function(e){this._uiSetZIndex(e.newVal)},_uiSetZIndex:function(e){this._stackNode.setStyle(a,e)},_uiSetShim:function(e){e?(this.get(r)?this._renderShim():this._renderShimDeferred(),6==s.ie&&this._addShimResizeHandlers()):this._destroyShim()},_renderShimDeferred:function(){this._stackHandles[_]=this._stackHandles[_]||[];this._stackHandles[_].push(this.on(o,function(e){e.newVal&&this._renderShim()}))},_addShimResizeHandlers:function(){this._stackHandles[c]=this._stackHandles[c]||[];var e=this.sizeShim,t=this._stackHandles[c];t.push(this.after(o,e)),t.push(this.after("widthChange",e)),t.push(this.after("heightChange",e)),t.push(this.after("contentUpdate",e))},_detachStackHandles:function(e){var t,i=this._stackHandles[e];if(i&&0<i.length)for(;t=i.pop();)t.detach()},_renderShim:function(){var e=this._shimNode,t=this._stackNode;e||(e=this._shimNode=this._getShimTemplate(),t.insertBefore(e,t.get("firstChild")),this._detachStackHandles(_),this.sizeShim())},_destroyShim:function(){this._shimNode&&(this._shimNode.get("parentNode").removeChild(this._shimNode),this._shimNode=null,this._detachStackHandles(_),this._detachStackHandles(c))},sizeShim:function(){var e=this._shimNode,t=this._stackNode;e&&6===s.ie&&this.get(r)&&(e.setStyle("width",t.get("offsetWidth")+"px"),e.setStyle("height",t.get("offsetHeight")+"px"))},_getShimTemplate:function(){return n.create(S.SHIM_TEMPLATE,this._stackNode.get("ownerDocument"))}},e.WidgetStack=S},"patched-v3.18.4",{requires:["base-build","widget"],skinnable:!0});
YUI.add("widget-position-align",function(o,t){var s=o.Lang,i="align",e="visible",a="offsetWidth",g="offsetHeight";function l(t){}l.ATTRS={align:{value:null},centered:{setter:"_setAlignCenter",lazyAdd:!1,value:!1},alignOn:{value:[],validator:o.Lang.isArray}},l.TL="tl",l.TR="tr",l.BL="bl",l.BR="br",l.TC="tc",l.RC="rc",l.BC="bc",l.LC="lc",l.CC="cc",l.prototype={initializer:function(){this._posNode||o.error("WidgetPosition needs to be added to the Widget, before WidgetPositionAlign is added"),o.after(this._bindUIPosAlign,this,"bindUI"),o.after(this._syncUIPosAlign,this,"syncUI")},_posAlignUIHandles:null,destructor:function(){this._detachPosAlignUIHandles()},_bindUIPosAlign:function(){this.after("alignChange",this._afterAlignChange),this.after("alignOnChange",this._afterAlignOnChange),this.after("visibleChange",this._syncUIPosAlign)},_syncUIPosAlign:function(){var t=this.get(i);this._uiSetVisiblePosAlign(this.get(e)),t&&this._uiSetAlign(t.node,t.points)},align:function(t,e){return arguments.length?this.set(i,{node:t,points:e}):this._syncUIPosAlign(),this},centered:function(t){return this.align(t,[l.CC,l.CC])},_getAlignToXY:function(t,e,i,n){var s;switch(e){case l.TL:s=[i,n];break;case l.TR:s=[i-t.get(a),n];break;case l.BL:s=[i,n-t.get(g)];break;case l.BR:s=[i-t.get(a),n-t.get(g)];break;case l.TC:s=[i-t.get(a)/2,n];break;case l.BC:s=[i-t.get(a)/2,n-t.get(g)];break;case l.LC:s=[i,n-t.get(g)/2];break;case l.RC:s=[i-t.get(a),n-t.get(g)/2];break;case l.CC:s=[i-t.get(a)/2,n-t.get(g)/2]}return s},_getAlignedXY:function(t,e){if(s.isArray(e)&&2===e.length){var i,n=this._getRegion(t);if(n){switch(e[1]){case l.TL:i=[n.left,n.top];break;case l.TR:i=[n.right,n.top];break;case l.BL:i=[n.left,n.bottom];break;case l.BR:i=[n.right,n.bottom];break;case l.TC:i=[n.left+Math.floor(n.width/2),n.top];break;case l.BC:i=[n.left+Math.floor(n.width/2),n.bottom];break;case l.LC:i=[n.left,n.top+Math.floor(n.height/2)];break;case l.RC:i=[n.right,n.top+Math.floor(n.height/2)];break;case l.CC:i=[n.left+Math.floor(n.width/2),n.top+Math.floor(n.height/2)]}return this._getAlignToXY(this._posNode,e[0],i[0],i[1])}}else o.error("align: Invalid Points Arguments")},_setAlignCenter:function(t){return t&&this.set(i,{node:!0===t?null:t,points:[l.CC,l.CC]}),t},_uiSetAlign:function(t,e){t=this._getAlignedXY(t,e);t&&this._doAlign(t)},_uiSetVisiblePosAlign:function(t){t?this._attachPosAlignUIHandles():this._detachPosAlignUIHandles()},_attachPosAlignUIHandles:function(){var i,n,s;this._posAlignUIHandles||(i=this.get("boundingBox"),n=o.bind(this._syncUIPosAlign,this),s=[],o.Array.each(this.get("alignOn"),function(t){var e=t.eventName,t=o.one(t.node)||i;e&&s.push(t.on(e,n))}),this._posAlignUIHandles=s)},_detachPosAlignUIHandles:function(){var t=this._posAlignUIHandles;t&&(new o.EventHandle(t).detach(),this._posAlignUIHandles=null)},_doAlign:function(t){t&&this.move(t)},_getRegion:function(t){var e;return t?(t=o.Node.one(t))&&(e=t.get("region")):e=this._posNode.get("viewportRegion"),e},_afterAlignChange:function(t){t=t.newVal;t&&this._uiSetAlign(t.node,t.points)},_afterAlignOnChange:function(t){this._detachPosAlignUIHandles(),this.get(e)&&this._attachPosAlignUIHandles()}},o.WidgetPositionAlign=l},"patched-v3.18.4",{requires:["widget-position"]});
YUI.add("widget-position-constrain",function(t,n){var l,e="constrain",i=t.Node,o="region";function s(t){}s.ATTRS={constrain:{value:null,setter:"_setConstrain"},preventOverlap:{value:!1}},l=s._PREVENT_OVERLAP={x:{tltr:1,blbr:1,brbl:1,trtl:1},y:{trbr:1,tlbl:1,bltl:1,brtr:1}},s.prototype={initializer:function(){this._posNode||t.error("WidgetPosition needs to be added to the Widget, before WidgetPositionConstrain is added"),t.after(this._bindUIPosConstrained,this,"bindUI")},getConstrainedXY:function(t,n){n=n||this.get(e);var n=this._getRegion(!0===n?null:n),i=this._posNode.get(o);return[this._constrain(t[0],"x",i,n),this._constrain(t[1],"y",i,n)]},constrain:function(t,n){var n=n||this.get(e);n&&(t=t||this.get("xy"),(n=this.getConstrainedXY(t,n))[0]===t[0]&&n[1]===t[1]||this.set("xy",n,{constrained:!0}))},_setConstrain:function(t){return!0===t?t:i.one(t)},_constrain:function(t,n,i,e){var o,s;return e&&(this.get("preventOverlap")&&(t=this._preventOverlap(t,n,i,e)),o=(n="x"==n)?e.width:e.height,i=n?i.width:i.height,s=n?e.left:e.top,n=n?e.right-i:e.bottom-i,(t<s||n<t)&&(!(i<o)||t<s?t=s:n<t&&(t=n))),t},_preventOverlap:function(t,n,i,e){var o,s,r,a,h,g=this.get("align"),d="x"===n;return g&&g.points&&l[n][g.points.join("")]&&((n=this._getRegion(g.node))&&(o=d?i.width:i.height,s=d?n.left:n.top,r=d?n.right:n.bottom,a=d?n.left-e.left:n.top-e.top,h=d?e.right-n.right:e.bottom-n.bottom),s<t?h<o&&o<a&&(t=s-o):a<o&&o<h&&(t=r)),t},_bindUIPosConstrained:function(){this.after("constrainChange",this._afterConstrainChange),this._enableConstraints(this.get(e))},_afterConstrainChange:function(t){this._enableConstraints(t.newVal)},_enableConstraints:function(t){t?(this.constrain(),this._cxyHandle=this._cxyHandle||this.on("constrain|xyChange",this._constrainOnXYChange)):this._cxyHandle&&(this._cxyHandle.detach(),this._cxyHandle=null)},_constrainOnXYChange:function(t){t.constrained||(t.newVal=this.getConstrainedXY(t.newVal))},_getRegion:function(t){var n;return t?(t=i.one(t))&&(n=t.get(o)):n=this._posNode.get("viewportRegion"),n}},t.WidgetPositionConstrain=s},"patched-v3.18.4",{requires:["widget-position"]});
YUI.add("widget-stdmod",function(i,t){var o,e,n,s,r,h,a=i.Lang,d=i.Node,S=i.UA,l=i.Widget,g="fillHeight",f="Node",u="Content",_="contentBox",M="height",c="offsetHeight",C="contentUpdate",E=i.Widget.UI_SRC;function p(t){}p.HEADER="header",p.BODY="body",p.FOOTER="footer",p.AFTER="after",p.BEFORE="before",p.REPLACE="replace",s=(o=p.HEADER)+u,r=(n=p.FOOTER)+u,h=(e=p.BODY)+u,p.ATTRS={headerContent:{value:null},footerContent:{value:null},bodyContent:{value:null},fillHeight:{value:p.BODY,validator:function(t){return this._validateFillHeight(t)}}},p.HTML_PARSER={headerContent:function(t){return this._parseStdModHTML(o)},bodyContent:function(t){return this._parseStdModHTML(e)},footerContent:function(t){return this._parseStdModHTML(n)}},p.SECTION_CLASS_NAMES={header:l.getClassName("hd"),body:l.getClassName("bd"),footer:l.getClassName("ft")},p.TEMPLATES={header:'<div class="'+p.SECTION_CLASS_NAMES[o]+'"></div>',body:'<div class="'+p.SECTION_CLASS_NAMES[e]+'"></div>',footer:'<div class="'+p.SECTION_CLASS_NAMES[n]+'"></div>'},p.prototype={initializer:function(){this._stdModNode=this.get(_),i.before(this._renderUIStdMod,this,"renderUI"),i.before(this._bindUIStdMod,this,"bindUI"),i.before(this._syncUIStdMod,this,"syncUI")},_syncUIStdMod:function(){var t=this._stdModParsed;t&&t[s]||this._uiSetStdMod(o,this.get(s)),t&&t[h]||this._uiSetStdMod(e,this.get(h)),t&&t[r]||this._uiSetStdMod(n,this.get(r)),this._uiSetFillHeight(this.get(g))},_renderUIStdMod:function(){this._stdModNode.addClass(l.getClassName("stdmod")),this._renderStdModSections(),this.after("headerContentChange",this._afterHeaderChange),this.after("bodyContentChange",this._afterBodyChange),this.after("footerContentChange",this._afterFooterChange)},_renderStdModSections:function(){a.isValue(this.get(s))&&this._renderStdMod(o),a.isValue(this.get(h))&&this._renderStdMod(e),a.isValue(this.get(r))&&this._renderStdMod(n)},_bindUIStdMod:function(){this.after("fillHeightChange",this._afterFillHeightChange),this.after("heightChange",this._fillHeight),this.after(C,this._fillHeight)},_afterHeaderChange:function(t){t.src!==E&&this._uiSetStdMod(o,t.newVal,t.stdModPosition)},_afterBodyChange:function(t){t.src!==E&&this._uiSetStdMod(e,t.newVal,t.stdModPosition)},_afterFooterChange:function(t){t.src!==E&&this._uiSetStdMod(n,t.newVal,t.stdModPosition)},_afterFillHeightChange:function(t){this._uiSetFillHeight(t.newVal)},_validateFillHeight:function(t){return!t||t==p.BODY||t==p.HEADER||t==p.FOOTER},_uiSetFillHeight:function(t){var t=this.getStdModNode(t),e=this._currFillNode;e&&t!==e&&e.setStyle(M,""),t&&(this._currFillNode=t),this._fillHeight()},_fillHeight:function(){var t;this.get(g)&&""!=(t=this.get(M))&&"auto"!=t&&this.fillHeight(this.getStdModNode(this.get(g)))},_uiSetStdMod:function(t,e,i){var d;a.isValue(e)?(d=this.getStdModNode(t,!0),this._addStdModContent(d,e,i),this.set(t+u,this._getStdModContent(t),{src:E})):this._eraseStdMod(t),this.fire(C)},_renderStdMod:function(t){var e=this.get(_),i=(i=this._findStdModSection(t))||this._getStdModTemplate(t);return this._insertStdModSection(e,t,i),this[t+f]=i,this[t+f]},_eraseStdMod:function(t){var e=this.getStdModNode(t);e&&(e.remove(!0),delete this[t+f])},_insertStdModSection:function(t,e,i){var d=t.get("firstChild");e!==n&&d?e===o?t.insertBefore(i,d):(e=this[n+f])?t.insertBefore(i,e):t.appendChild(i):t.appendChild(i)},_getStdModTemplate:function(t){return d.create(p.TEMPLATES[t],this._stdModNode.get("ownerDocument"))},_addStdModContent:function(t,e,i){switch(i){case p.BEFORE:i=0;break;case p.AFTER:i=undefined;break;default:i=p.REPLACE}t.insert(e,i)},_getPreciseHeight:function(t){var e=t?t.get(c):0,i="getBoundingClientRect";return e=t&&t.hasMethod(i)&&(i=t.invoke(i))?i.bottom-i.top:e},_findStdModSection:function(t){return this.get(_).one("> ."+p.SECTION_CLASS_NAMES[t])},_parseStdModHTML:function(t){var e=this._findStdModSection(t);return e?(this._stdModParsed||(this._stdModParsed={},i.before(this._applyStdModParsedConfig,this,"_applyParsedConfig")),this._stdModParsed[t+u]=1,e.get("innerHTML")):null},_applyStdModParsedConfig:function(t,e,i){var d=this._stdModParsed;d&&(d[s]=!(s in e)&&s in d,d[h]=!(h in e)&&h in d,d[r]=!(r in e)&&r in d)},_getStdModContent:function(t){return this[t+f]?this[t+f].get("childNodes"):null},setStdModContent:function(t,e,i){this.set(t+u,e,{stdModPosition:i})},getStdModNode:function(t,e){var i=this[t+f]||null;return i=!i&&e?this._renderStdMod(t):i},fillHeight:function(t){var e,i,d,o,n,s,r;if(t){for(o=this.get(_),n=!(e=[this.headerNode,this.bodyNode,this.footerNode]),s=d=0,r=e.length;s<r;s++)(i=e[s])&&(i!==t?d+=this._getPreciseHeight(i):n=!0);n&&((S.ie||S.opera)&&t.set(c,0),o=o.get(c)-parseInt(o.getComputedStyle("paddingTop"),10)-parseInt(o.getComputedStyle("paddingBottom"),10)-parseInt(o.getComputedStyle("borderBottomWidth"),10)-parseInt(o.getComputedStyle("borderTopWidth"),10),a.isNumber(o)&&0<=(o=o-d)&&t.set(c,o))}}},i.WidgetStdMod=p},"patched-v3.18.4",{requires:["base-build","widget"]});
YUI.add("aui-overlay-base-deprecated",function(e,t){e.OverlayBase=e.Component.create({NAME:"overlay",ATTRS:{hideClass:{value:!1}},AUGMENTS:[e.WidgetPosition,e.WidgetStack,e.WidgetPositionAlign,e.WidgetPositionConstrain,e.WidgetStdMod]})},"3.1.0-deprecated.101",{requires:["widget-position","widget-stack","widget-position-align","widget-position-constrain","widget-stdmod","aui-component"]});

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._eventHandles=[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()},destructor:function(){var t=this;(new e.EventHandle(t._eventHandles)).detach()},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},"3.1.0-deprecated.101",{requires:["event-resize","aui-base-deprecated","aui-overlay-base-deprecated"],skinnable:!0});

