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("base-base",function(t,e){var a=t.AttributeCore,s=t.AttributeExtras,r=t.BaseCore,T=t.BaseObservable;function o(){r.apply(this,arguments),T.apply(this,arguments),s.apply(this,arguments)}o._ATTR_CFG=r._ATTR_CFG.concat(T._ATTR_CFG),o._NON_ATTRS_CFG=r._NON_ATTRS_CFG.concat(T._NON_ATTRS_CFG),o.NAME="base",o.ATTRS=a.protectAttrs(r.ATTRS),o.modifyAttrs=r.modifyAttrs,t.mix(o,r,!1,null,1),t.mix(o,s,!1,null,1),t.mix(o,T,!0,null,1),t.Base=o.prototype.constructor=o},"patched-v3.18.4",{requires:["attribute-base","base-core","base-observable"]});
YUI.add("base-pluginhost",function(u,l){var n=u.Base,s=u.Plugin.Host;u.mix(n,s,!1,null,1),n.plug=s.plug,n.unplug=s.unplug},"patched-v3.18.4",{requires:["base-base","pluginhost"]});
YUI.add("event-focus",function(v,t){var e,n,s=v.Event,o=v.Lang.isString,y=v.Array.indexOf,u=(e=!1,(n=v.config.doc)&&((n=n.createElement("p")).setAttribute("onbeforeactivate",";"),e=n.onbeforeactivate!==undefined),e);function a(a,r,f){var b="_"+a+"Notifiers";v.Event.define(a,{_useActivate:u,_attach:function(t,e,n){return v.DOM.isWindow(t)?s._attach([a,function(t){e.fire(t)},t]):s._attach([r,this._proxy,t,this,e,n],{capture:!0})},_proxy:function(t,e,n){var a=t.target,r=t.currentTarget,o=a.getData(b),c=v.stamp(r._node),i=u||a!==r;e.currentTarget=n?a:r,e.container=n?r:null,o?i=!0:(a.setData(b,o={}),i&&(s._attach([f,this._notify,a._node]).sub.once=!0)),o[c]||(o[c]=[]),o[c].push(e),i||this._notify(t)},_notify:function(t,e){var n,a,r,o,c,i,f,s,u,d=t.currentTarget,h=d.getData(b),l=d.ancestors(),p=d.get("ownerDocument"),g=[],_=h?v.Object.keys(h).length:0;for(d.clearData(b),l.push(d),p&&l.unshift(p),l._nodes.reverse(),_&&(d=_,l.some(function(t){var e,n,t=v.stamp(t),a=h[t];if(a)for(_--,e=0,n=a.length;e<n;++e)a[e].handle.sub.filter&&g.push(a[e]);return!_}),_=d);_&&(n=l.shift());){if(o=v.stamp(n),a=h[o]){for(i=0,f=a.length;i<f&&(s=(r=a[i]).handle.sub,c=!0,t.currentTarget=n,s.filter&&(c=s.filter.apply(n,[n,t].concat(s.args||[])),g.splice(y(g,r),1)),c&&(t.container=r.container,u=r.fire(t)),!1!==u&&2!==t.stopped);++i);delete a[o],_--}if(2!==t.stopped)for(i=0,f=g.length;i<f&&((s=(r=g[i]).handle.sub).filter.apply(n,[n,t].concat(s.args||[]))&&(t.container=r.container,t.currentTarget=n,u=r.fire(t)),!(!1===u||2===t.stopped||t.stopped&&g[i+1]&&g[i+1].container!==r.container));++i);if(t.stopped)break}},on:function(t,e,n){e.handle=this._attach(t._node,n)},detach:function(t,e){e.handle.detach()},delegate:function(e,t,n,a){o(a)&&(t.filter=function(t){return v.Selector.test(t._node,a,e===t?null:e._node)}),t.handle=this._attach(e._node,n,!0)},detachDelegate:function(t,e){e.handle.detach()}},!0)}u?(a("focus","beforeactivate","focusin"),a("blur","beforedeactivate","focusout")):(a("focus","focus","focus"),a("blur","blur","blur"))},"patched-v3.18.4",{requires:["event-synthetic"]});
YUI.add("widget-base",function(r,t){var i,n,s=r.Lang,o=r.Node,e=r.ClassNameManager,u=e.getClassName,a=r.cached(function(t){return t.substring(0,1).toUpperCase()+t.substring(1)}),c="content",h="visible",l="disabled",d="focused",_="width",g="height",f="boundingBox",N="contentBox",m="ownerDocument",v="srcNode",C="tabIndex",b="id",I="render",T="rendered",p="strings",D="<div></div>",E="loading",S="_uiSet",U=function(){},B=!0,y=!1,A={},F=[h,l,g,_,d,C],O=r.UA.webkit,x={};function w(t){var e,s=this,n=s.constructor;s._strs={},s._cssPrefix=n.CSS_PREFIX||u(n.NAME.toLowerCase()),w.superclass.constructor.call(s,t=t||{}),(n=s.get(I))&&s.render(e=n!==B?n:e)}w.NAME="widget",n=w.UI_SRC="ui",(w.ATTRS=A).id={valueFn:"_guid",writeOnce:B},A[T]={value:y,readOnly:B},A[f]={valueFn:"_defaultBB",setter:"_setBB",writeOnce:B},A[N]={valueFn:"_defaultCB",setter:"_setCB",writeOnce:B},A[C]={value:null,validator:"_validTabIndex"},A[d]={value:y,readOnly:B},A[l]={value:y},A[h]={value:B},A[g]={value:""},A[_]={value:""},A[p]={value:{},setter:"_strSetter",getter:"_strGetter"},A[I]={value:y,writeOnce:B},w.CSS_PREFIX=u(w.NAME.toLowerCase()),i=w.getClassName=function(){return u.apply(e,[w.CSS_PREFIX].concat(r.Array(arguments),!0))},w.getByNode=function(t){var e,s=i();return(e=(t=(t=o.one(t))&&t.ancestor("."+s,!0))?x[r.stamp(t,!0)]:e)||null},r.extend(w,r.Base,{getClassName:function(){return u.apply(e,[this._cssPrefix].concat(r.Array(arguments),!0))},initializer:function(t){var e=this.get(f);e instanceof o&&this._mapInstance(r.stamp(e))},_mapInstance:function(t){x[t]=this},destructor:function(){var t=this.get(f);t instanceof o&&((t=r.stamp(t,!0))in x&&delete x[t],this._destroyBox())},destroy:function(t){return this._destroyAllNodes=t,w.superclass.destroy.apply(this)},_destroyBox:function(){var t=this.get(f),e=this.get(N),s=this._destroyAllNodes,n=t&&t.compareTo(e);this.UI_EVENTS&&this._destroyUIEvents(),this._unbindUI(t),e&&(s&&e.empty(),e.remove(B)),n||(s&&t.empty(),t.remove(B))},render:function(t){return this.get("destroyed")||this.get(T)||(this.publish(I,{queuable:y,fireOnce:B,defaultTargetOnly:B,defaultFn:this._defRenderFn}),this.fire(I,{parentNode:t?o.one(t):null})),this},_defRenderFn:function(t){this._parentNode=t.parentNode,this.renderer(),this._set(T,B),this._removeLoadingClassNames()},renderer:function(){var t=this;t._renderUI(),t.renderUI(),t._bindUI(),t.bindUI(),t._syncUI(),t.syncUI()},bindUI:U,renderUI:U,syncUI:U,hide:function(){return this.set(h,y)},show:function(){return this.set(h,B)},focus:function(){return this._set(d,B)},blur:function(){return this._set(d,y)},enable:function(){return this.set(l,y)},disable:function(){return this.set(l,B)},_uiSizeCB:function(t){this.get(N).toggleClass(i(c,"expanded"),t)},_renderBox:function(t){var e=this.get(N),s=this.get(f),n=this.get(v),i=this.DEF_PARENT_NODE,r=n&&n.get(m)||s.get(m)||e.get(m);!n||n.compareTo(e)||e.inDoc(r)||n.replace(e),s.compareTo(e.get("parentNode"))||s.compareTo(e)||(e.inDoc(r)&&e.replace(s),s.appendChild(e)),(t=t||i&&o.one(i))?t.appendChild(s):s.inDoc(r)||o.one("body").insert(s,0)},_setBB:function(t){return this._setBox(this.get(b),t,this.BOUNDING_TEMPLATE,!0)},_setCB:function(t){return null===this.CONTENT_TEMPLATE?this.get(f):this._setBox(null,t,this.CONTENT_TEMPLATE,!1)},_defaultBB:function(){var t=this.get(v),e=null===this.CONTENT_TEMPLATE;return t&&e?t:null},_defaultCB:function(t){return this.get(v)||null},_setBox:function(t,e,s,n){return(e=o.one(e))||(e=o.create(s),n?this._bbFromTemplate=!0:this._cbFromTemplate=!0),e.get(b)||e.set(b,t||r.guid()),e},_renderUI:function(){this._renderBoxClassNames(),this._renderBox(this._parentNode)},_renderBoxClassNames:function(){var t,e,s=this._getClasses(),n=this.get(f);for(n.addClass(i()),e=s.length-3;0<=e;e--)t=s[e],n.addClass(t.CSS_PREFIX||u(t.NAME.toLowerCase()));this.get(N).addClass(this.getClassName(c))},_removeLoadingClassNames:function(){var t=this.get(f),e=this.get(N),s=this.getClassName(E),n=i(E);t.removeClass(n).removeClass(s),e.removeClass(n).removeClass(s)},_bindUI:function(){this._bindAttrUI(this._UI_ATTRS.BIND),this._bindDOM()},_unbindUI:function(t){this._unbindDOM(t)},_bindDOM:function(){var t=this.get(f).get(m),e=w._hDocFocus;e||((e=w._hDocFocus=t.on("focus",this._onDocFocus,this)).listeners={count:0}),e.listeners[r.stamp(this,!0)]=!0,e.listeners.count++,O&&(this._hDocMouseDown=t.on("mousedown",this._onDocMouseDown,this))},_unbindDOM:function(t){var e,s=w._hDocFocus,n=r.stamp(this,!0),i=this._hDocMouseDown;s&&((e=s.listeners)[n]&&(delete e[n],e.count--),0===e.count&&(s.detach(),w._hDocFocus=null)),O&&i&&i.detach()},_syncUI:function(){this._syncAttrUI(this._UI_ATTRS.SYNC)},_uiSetHeight:function(t){this._uiSetDim(g,t),this._uiSizeCB(""!==t&&"auto"!==t)},_uiSetWidth:function(t){this._uiSetDim(_,t)},_uiSetDim:function(t,e){this.get(f).setStyle(t,s.isNumber(e)?e+this.DEF_UNIT:e)},_uiSetVisible:function(t){this.get(f).toggleClass(this.getClassName("hidden"),!t)},_uiSetDisabled:function(t){this.get(f).toggleClass(this.getClassName(l),t)},_uiSetFocused:function(t,e){var s=this.get(f);s.toggleClass(this.getClassName(d),t),e!==n&&(t?s.focus():s.blur())},_uiSetTabIndex:function(t){var e=this.get(f);s.isNumber(t)?e.set(C,t):e.removeAttribute(C)},_onDocMouseDown:function(t){this._domFocus&&this._onDocFocus(t)},_onDocFocus:function(t){var t=w.getByNode(t.target),e=w._active;e&&e!==t&&(e._domFocus=!1,e._set(d,!1,{src:n}),w._active=null),t&&(t._domFocus=!0,t._set(d,!0,{src:n}),w._active=t)},toString:function(){return this.name+"["+this.get(b)+"]"},DEF_UNIT:"px",DEF_PARENT_NODE:null,CONTENT_TEMPLATE:D,BOUNDING_TEMPLATE:D,_guid:function(){return r.guid()},_validTabIndex:function(t){return s.isNumber(t)||s.isNull(t)},_bindAttrUI:function(t){for(var e=t.length,s=0;s<e;s++)this.after(t[s]+"Change",this._setAttrUI)},_syncAttrUI:function(t){for(var e,s=t.length,n=0;n<s;n++)e=t[n],this[S+a(e)](this.get(e))},_setAttrUI:function(t){t.target===this&&this[S+a(t.attrName)](t.newVal,t.src)},_strSetter:function(t){return r.merge(
this.get(p),t)},getString:function(t){return this.get(p)[t]},getStrings:function(){return this.get(p)},_UI_ATTRS:{BIND:F,SYNC:F}}),r.Widget=w},"patched-v3.18.4",{requires:["attribute","base-base","base-pluginhost","classnamemanager","event-focus","node-base","node-style"],skinnable:!0});
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.102",{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.102");

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("aui-component",function(e,t){var n=e.Lang,r=e.Array,i=function(e,t){return(e||[]).concat(t||[])},s={},o=e.config.win.Object.prototype.constructor,u=e.ClassNameManager,a=u.getClassName,f=e.Widget.getClassName,l=e.getClassName,c=l("hide"),h=e.Base.create("component",e.Widget,[e.WidgetCssClass,e.WidgetToggle],{initializer:function(e){var t=this;t._originalConfig=e,t._setRender(e),s[t.get("id")]=t},clone:function(t){var n=this;return t=t||{},t.id=t.id||e.guid(),e.mix(t,n._originalConfig),new n.constructor(t)},_uiSetVisible:function(e){var t=this,n=h.superclass._uiSetVisible;n&&n.apply(t,arguments);var r=t.get("hideClass");if(r!==!1){var i=t.get("boundingBox");i.toggleClass(r||c,!e)}},_renderBoxClassNames:function(){var e=this,t=e.get("boundingBox")._node,n=e.get("contentBox")._node,i=t.className,s=n.className,o=i?i.split(" "):[],u=s?s.split(" "):[],c=e._getClasses(),h=c.length,p=h-4,d,v;o.push(f());for(var m=h-3;m>=0;m--)d=c[m],v=String(d.NAME).toLowerCase(),o.push(d.CSS_PREFIX||a(v)),m<=p&&(v=v,u.push(l(v,"content")));u.push(e.getClassName("content")),t===n?s=r.dedupe(u.concat(o)).join(" "):(t.className=r.dedupe(o).join(" "),s=r.dedupe(u).join(" ")),n.className=s},_renderInteraction:function(e,t){var n=this;n.render(t);var r=n._renderHandles;for(var i=r.length-1;i>=0;i--){var s=r.pop();s.detach()}},_setRender:function(t){var r=this,i=t&&t.render;if(i&&i.constructor===o){var s=i.eventType||"mousemove",u=i.parentNode,a=i.selector||u;if(a){r._renderHandles=[];var f=r._renderHandles;n.isArray(s)||(s=[s]);var l=e.rbind(r._renderInteraction,r,u),c=e.one(a);for(var h=s.length-1;h>=0;h--)f[h]=c.once(s[h],l);delete t.render}}}},{ATTRS:{useARIA:{writeOnce:!0,value:!1,validator:n.isBoolean},hideClass:{value:c},render:{value:!1,writeOnce:!0}}});h._INSTANCES=s,h.getById=function(e){return s[e]};var p=e.Widget.prototype._UI_ATTRS;h._applyCssPrefix=function(t){return t&&t.NAME&&!("CSS_PREFIX"in t)&&(t.CSS_PREFIX=e.getClassName(String(t.NAME).toLowerCase())),t},h.create=function(t){t=t||{};var r=t.EXTENDS||e.Component,s=t.constructor;e.Object.owns(t,"constructor")||(s=function(){s.superclass.constructor.apply(this,arguments)});var o=t.prototype;if(o)if(t.UI_ATTRS||t.BIND_UI_ATTRS||t.SYNC_UI_ATTRS){var u=i(t.BIND_UI_ATTRS,t.UI_ATTRS),a=i(t.SYNC_UI_ATTRS,t.UI_ATTRS),f=r.prototype,l=f&&f._UI_ATTRS||p;u=i(l.BIND,u),a=i(l.SYNC,a);var c=o._UI_ATTRS;c||(c=o._UI_ATTRS={}),u.length&&(c.BIND=u),a.length&&(c.SYNC=a)}var d=t.AUGMENTS;return d&&!n.isArray(d)&&(d=[d]),e.mix(s,t),delete s.prototype,e.extend(s,r,o),d&&(s=e.Base.build(t.NAME,s,d,{dynamic:!1})),h._applyCssPrefix(s),s},h.CSS_PREFIX=l("component");var d=e.Base;h.build=function(){var e=d.build.apply(d,arguments);return h._applyCssPrefix(e),e},e.Component=h},"3.1.0-deprecated.102",{requires:["aui-classnamemanager","aui-widget-cssclass","aui-widget-toggle","base-build","widget-base"]});

YUI.add("cookie",function(n,e){var t=n.Lang,o=n.Object,g=null,S=t.isString,r=t.isObject,k=t.isUndefined,s=t.isFunction,u=encodeURIComponent,b=decodeURIComponent,i=n.config.doc;function a(e){throw new TypeError(e)}function c(e){S(e)&&""!==e||a("Cookie name must be a non-empty string.")}function f(e){S(e)&&""!==e||a("Subcookie name must be a non-empty string.")}n.Cookie={_createCookieString:function(e,t,n,o){o=o||{};var e=u(e)+"="+(n?u(t):t),n=o.expires,t=o.path,i=o.domain;return r(o)&&(n instanceof Date&&(e+="; expires="+n.toUTCString()),S(t)&&""!==t&&(e+="; path="+t),S(i)&&""!==i&&(e+="; domain="+i),!0===o.secure&&(e+="; secure")),e},_createCookieHashString:function(e){r(e)||a("Cookie._createCookieHashString(): Argument must be an object.");var n=[];return o.each(e,function(e,t){s(e)||k(e)||n.push(u(t)+"="+u(String(e)))}),n.join("&")},_parseCookieHash:function(e){var t,n,o,i=e.split("&"),r={};if(e.length)for(t=0,n=i.length;t<n;t++)o=i[t].split("="),r[b(o[0])]=b(o[1]);return r},_parseCookieString:function(e,t,n){var o,i,r,s,u,a,c,f={};if(S(e)&&0<e.length)for(o=!1===t?function(e){return e}:b,i=e.split(/;\s/g),s=r=g,a=0,c=i.length;a<c;a++){if((u=i[a].match(/([^=]+)=/i))instanceof Array)try{r=b(u[1]),s=o(i[a].substring(u[1].length+1))}catch(h){}else r=b(i[a]),s="";(k(n)||!n.reverseCookieLoading||k(f[r]))&&(f[r]=s)}return f},_setDoc:function(e){i=e},exists:function(e){return c(e),this._parseCookieString(i.cookie,!0).hasOwnProperty(e)},get:function(e,t){var n;return c(e),s(t)?(n=t,t={}):r(t)?n=t.converter:t={},t=this._parseCookieString(i.cookie,!t.raw,t)[e],k(t)?g:s(n)?n(t):t},getSub:function(e,t,n,o){e=this.getSubs(e,o);return e!==g?(f(t),k(e[t])?g:s(n)?n(e[t]):e[t]):g},getSubs:function(e,t){c(e);t=this._parseCookieString(i.cookie,!1,t);return S(t[e])?this._parseCookieHash(t[e]):g},remove:function(e,t){return c(e),t=n.merge(t||{},{expires:new Date(0)}),this.set(e,"",t)},removeSub:function(e,t,n){var o,i;if(c(e),f(t),n=n||{},o=this.getSubs(e),r(o)&&o.hasOwnProperty(t)){if(delete o[t],n.removeIfEmpty){for(i in o)if(o.hasOwnProperty(i)&&!s(o[i])&&!k(o[i]))return this.setSubs(e,o,n);return this.remove(e,n)}return this.setSubs(e,o,n)}return""},set:function(e,t,n){c(e),k(t)&&a("Cookie.set(): Value cannot be undefined.");e=this._createCookieString(e,t,!(n=n||{}).raw,n);return i.cookie=e},setSub:function(e,t,n,o){c(e),f(t),k(n)&&a("Cookie.setSub(): Subcookie value cannot be undefined.");var i=this.getSubs(e);return(i=r(i)?i:{})[t]=n,this.setSubs(e,i,o)},setSubs:function(e,t,n){c(e),r(t)||a("Cookie.setSubs(): Cookie value must be an object.");e=this._createCookieString(e,this._createCookieHashString(t),!1,n);return i.cookie=e}}},"patched-v3.18.4",{requires:["yui-base"]});
YUI.add("plugin",function(n,t){function s(t){(this.hasImpl&&this.hasImpl(n.Plugin.Base)?s.prototype.initializer:s.superclass.constructor).apply(this,arguments)}s.ATTRS={host:{writeOnce:!0}},s.NAME="plugin",s.NS="plugin",n.extend(s,n.Base,{_handles:null,initializer:function(t){this._handles=[]},destructor:function(){if(this._handles)for(var t=0,s=this._handles.length;t<s;t++)this._handles[t].detach()},doBefore:function(t,s,e){var n,h=this.get("host");return t in h?n=this.beforeHostMethod(t,s,e):h.on&&(n=this.onHostEvent(t,s,e)),n},doAfter:function(t,s,e){var n,h=this.get("host");return t in h?n=this.afterHostMethod(t,s,e):h.after&&(n=this.afterHostEvent(t,s,e)),n},onHostEvent:function(t,s,e){t=this.get("host").on(t,s,e||this);return this._handles.push(t),t},onceHostEvent:function(t,s,e){t=this.get("host").once(t,s,e||this);return this._handles.push(t),t},afterHostEvent:function(t,s,e){t=this.get("host").after(t,s,e||this);return this._handles.push(t),t},onceAfterHostEvent:function(t,s,e){t=this.get("host").onceAfter(t,s,e||this);return this._handles.push(t),t},beforeHostMethod:function(t,s,e){s=n.Do.before(s,this.get("host"),t,e||this);return this._handles.push(s),s},afterHostMethod:function(t,s,e){s=n.Do.after(s,this.get("host"),t,e||this);return this._handles.push(s),s},toString:function(){return this.constructor.NAME+"["+this.constructor.NS+"]"}}),n.namespace("Plugin").Base=s},"patched-v3.18.4",{requires:["base-base"]});
function ownKeys(e,t){var i=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),i.push.apply(i,n)}return i}function _objectSpread(e){for(var t=1;t<arguments.length;t++){var i=null!=arguments[t]?arguments[t]:{};t%2?ownKeys(Object(i),!0).forEach((function(t){_defineProperty(e,t,i[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(i)):ownKeys(Object(i)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(i,t))}))}return e}function _defineProperty(e,t,i){return t in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}AUI.add("liferay-session",(e=>{const t=e.Lang,i=[],n=e.config,s=n.doc,r={active:"activated"},a={},o={src:a},g="sessionToast",l=themeDisplay.getPathMain()+"/portal/",c=e.Component.create({ATTRS:{autoExtend:{value:!1},redirectOnExpire:{value:!0},redirectUrl:{value:""},sessionLength:{getter:"_getLengthInMillis",value:0},sessionState:{value:"active"},sessionTimeoutOffset:{getter:"_getLengthInMillis",value:0},timestamp:{getter:"_getTimestamp",setter:"_setTimestamp",value:0},warningLength:{getter:"_getLengthInMillis",setter:"_setWarningLength",value:0},warningTime:{getter:"_getWarningTime",value:0}},EXTENDS:e.Base,NAME:"liferaysession",prototype:{_afterSessionStateChange(e){const t=e.details,i=e.newVal;let n=null;"src"in e&&t.length&&(n=t[0]),this.fire(r[i]||i,n)},_defActivatedFn(e){const t=this;t.set("timestamp"),e.src===a&&Liferay.Util.fetch(l+"extend_session").then((e=>{500===e.status&&t.expire()}))},_defExpiredFn(t){const i=this;e.clearInterval(i._intervalId),t.src===a&&i._expireSession()},_expireSession(){const t=this;Liferay.Util.fetch(l+"expire_session").then((i=>{i.ok?(Liferay.fire("sessionExpired"),t.get("redirectOnExpire")&&(location.href=t.get("redirectUrl"))):e.setTimeout((()=>{t._expireSession()}),1e3)}))},_getLengthInMillis:e=>1e3*e,_getTimestamp(){return Liferay.Util.Cookie.get(this._cookieKey,Liferay.Util.Cookie.TYPES.NECESSARY)||this._initTimestamp},_getWarningTime(){return this.get("sessionLength")-this.get("warningLength")},_initEvents(){const i=this;i.publish("activated",{defaultFn:e.bind("_defActivatedFn",i)}),i.publish("expired",{defaultFn:e.bind("_defExpiredFn",i)}),i.publish("warned"),i._eventHandlers=[i.on("sessionStateChange",i._onSessionStateChange),i.after("sessionStateChange",i._afterSessionStateChange),e.on("io:complete",((e,n,s)=>{(!s||s&&s.sessionExtend||!t.isBoolean(s.sessionExtend))&&i.resetInterval()})),Liferay.once("screenLoad",(()=>{i.destroy()}))]},_onSessionStateChange(e){const t=this,i=e.newVal,n=e.prevVal;"expired"===n&&n!==i?e.preventDefault():"active"===n&&n===i&&t._afterSessionStateChange(e)},_setTimestamp(e){const t=this;e=String(e||Date.now()),t._initTimestamp=e,navigator.cookieEnabled&&Liferay.Util.Cookie.set(t._cookieKey,e,Liferay.Util.Cookie.TYPES.NECESSARY,t._cookieOptions)},_setWarningLength(e){return Math.min(this.get("sessionLength"),e)},_startTimer(){const t=this,i=t.get("sessionLength"),n=t.get("sessionTimeoutOffset"),s=t.get("warningTime");t._intervalId=e.setInterval((()=>{const e=t.get("sessionState"),r=t.get("timestamp");t._initTimestamp!==r&&(t.set("timestamp",r),"active"!==e&&t.set("sessionState","active",o));const a=1e3*Math.floor((Date.now()-r)/1e3),g=t.get("autoExtend"),l=a>=i,c=a>=i-n,d=a>=s;l&&"expired"!==e?t.expire():g&&c?t.extend():!g&&d&&"warned"!==e&&t.warn();const p=t._registered;for(const e in p)p[e](a,d,l)}),1e3)},_stopTimer(){e.clearInterval(this._intervalId)},destructor(){new e.EventHandle(this._eventHandlers).detach(),this._stopTimer()},expire(){this.set("sessionState","expired",o)},extend(){this.set("sessionState","active",o)},initializer(){const t=this;t._cookieKey="LFR_SESSION_STATE_"+themeDisplay.getRealUserId(),t._cookieOptions={path:"/",secure:e.UA.secure},t._registered={},t.set("timestamp"),t._initEvents(),t._startTimer(),Liferay.fire("sessionInitialized",{session:t})},registerInterval(i){let n;const s=this._registered;return t.isFunction(i)&&(n=e.stamp(i),s[n]=i),n},resetInterval(){this._stopTimer(),this._startTimer()},unregisterInterval(e){const t=this._registered;return Object.prototype.hasOwnProperty.call(t,e)&&delete t[e],e},warn(){this.set("sessionState","warned",o)}}});c.SRC=a;const d=e.Component.create({ATTRS:{openToast:{validator:t.isFunction},pageTitle:{value:s.title}},EXTENDS:e.Plugin.Base,NAME:"liferaysessiondisplay",NS:"display",prototype:{_afterDefActivatedFn(){this._uiSetActivated()},_afterDefExpiredFn(){const e=this;e._host.unregisterInterval(e._intervalId),e._uiSetExpired()},_beforeHostWarned(){const e=this,i=e._host,n=i.get("sessionLength"),s=i.get("timestamp"),r=i.get("warningLength");let a=n;t.toInt(s)&&(a=1e3*Math.floor((Date.now()-s)/1e3));let o=n-a;o>r&&(o=r),e._getBanner();const l=document.querySelector("#".concat(g," .countdown-timer"));e._uiSetRemainingTime(o,l),e._intervalId=i.registerInterval(((t,i,s)=>{i?s||e._uiSetRemainingTime(n-t,l):e._uiSetActivated()}))},_destroyBanner(){const e=document.getElementById(g),t=null==e?void 0:e.parentElement;Liferay.destroyComponent(g),t&&t.remove(),this._banner=!1},_formatNumber:e=>t.String.padNumber(Math.floor(e),2),_formatTime(e){const n=this;return e=Number(e),t.isNumber(e)&&e>0?(e/=1e3,i[0]=n._formatNumber(e/3600),e%=3600,i[1]=n._formatNumber(e/60),e%=60,i[2]=n._formatNumber(e),e=i.join(":")):e=0,e},_getBanner(){const e=this;let t=e._banner;if(!t){const i=e.get("openToast"),n={onClick({event:t}){t.target.classList.contains("alert-link")&&e._host.extend()},renderData:{componentId:g},toastProps:{autoClose:!1,id:g,role:"alert"}};i(_objectSpread({message:e._warningText,type:"warning"},n));t=_objectSpread({open(t){e._destroyBanner(),i(_objectSpread(_objectSpread({},t),n))}},Liferay.component(g)),e._banner=t}return t},_onHostSessionStateChange(e){const t=this;"warned"===e.newVal&&t._beforeHostWarned(e)},_uiSetActivated(){const e=this;s.title=e.reset("pageTitle").get("pageTitle"),e._host.unregisterInterval(e._intervalId),e._banner&&e._destroyBanner()},_uiSetExpired(){const e=this;e._getBanner().open({message:e._expiredText,title:'Danger',type:"danger"}),s.title=e.get("pageTitle")},_uiSetRemainingTime(e,i){const n=this;if(e=n._formatTime(e),!n._alertClosed){const t=i.closest('div[role="alert"]');t&&(t.removeAttribute("role"),n._alert=t),i.innerHTML=e}s.title=t.sub('Session\x20expires\x20in\x20\x7b0\x7d\x2e',[e])+" | "+n.get("pageTitle")},destructor(){const e=this;e._banner&&e._destroyBanner()},initializer(){const e=this,i=e.get("host");Liferay.Util.getTop()===n.win?(e._host=i,e._toggleText={hide:'Hide',show:'Show'},e._expiredText='Due\x20to\x20inactivity\x2c\x20your\x20session\x20has\x20expired\x2e\x20Before\x20you\x20continue\x2c\x20make\x20sure\x20your\x20entered\x20data\x20is\x20saved\x20locally\x2e',e._warningText='Due\x20to\x20inactivity\x2c\x20your\x20session\x20will\x20expire\x20in\x20\x7b0\x7d\x2e\x20To\x20extend\x20your\x20session\x20another\x20\x7b1\x7d\x20minute\x28s\x29\x2c\x20please\x20press\x20the\x20\x3cem\x3eExtend\x3c\x2fem\x3e\x20button\x2e\x20\x7b2\x7d',e._warningText=t.sub(e._warningText,['<span class="countdown-timer">{0}</span>',i.get("sessionLength")/6e4,'<a class="alert-link" href="javascript:void(0);">'+'Extend'+"</a>"]),i.on("sessionStateChange",e._onHostSessionStateChange,e),e.afterHostMethod("_defActivatedFn",e._afterDefActivatedFn),e.afterHostMethod("_defExpiredFn",e._afterDefExpiredFn)):i.unplug(e)}}});Liferay.SessionBase=c,Liferay.SessionDisplay=d}),"",{requires:["aui-base","aui-component","aui-timer","cookie","plugin"]});

