(function(A,Liferay){var Tabs=Liferay.namespace("Portal.Tabs");var ToolTip=Liferay.namespace("Portal.ToolTip");var BODY_CONTENT="bodyContent";var TRIGGER="trigger";Liferay.Portal.Tabs._show=function(event){var names=event.names;var namespace=event.namespace;var selectedIndex=event.selectedIndex;var tabItem=event.tabItem;var tabSection=event.tabSection;if(tabItem)tabItem.radioClass("active");if(tabSection)tabSection.show();var tabTitle=A.one("#"+event.namespace+"dropdownTitle");if(tabTitle)tabTitle.html(tabItem.one("a").text());
names.splice(selectedIndex,1);var el;for(var i=0;i<names.length;i++){el=A.one("#"+namespace+Liferay.Util.toCharCode(names[i])+"TabsSection");if(el)el.hide()}};Liferay.provide(Tabs,"show",function(namespace,names,id,callback){var namespacedId=namespace+Liferay.Util.toCharCode(id);var tab=A.one("#"+namespacedId+"TabsId");var tabSection=A.one("#"+namespacedId+"TabsSection");var details={id:id,names:names,namespace:namespace,selectedIndex:names.indexOf(id),tabItem:tab,tabSection:tabSection};if(callback&&
A.Lang.isFunction(callback))callback.call(this,namespace,names,id,details);Liferay.fire("showTab",details)},["aui-base"]);Liferay.publish("showTab",{defaultFn:Liferay.Portal.Tabs._show});ToolTip._getText=function(id){var node=A.one("#"+id);var text="";if(node){var toolTipTextNode=node.next(".taglib-text");if(toolTipTextNode)text=toolTipTextNode.html()}return text};ToolTip.hide=function(){var instance=this;var cached=instance._cached;if(cached)cached.hide()};Liferay.provide(ToolTip,"show",function(obj,
text,tooltipConfig){var instance=this;var cached=instance._cached;var hideTooltipTask=instance._hideTooltipTask;if(!cached){var config=A.merge({cssClass:"tooltip-help",html:true,opacity:1,stickDuration:100,visible:false,zIndex:Liferay.zIndex.TOOLTIP},tooltipConfig);cached=(new A.Tooltip(config)).render();cached.after("visibleChange",A.bind("_syncUIPosAlign",cached));hideTooltipTask=A.debounce("_onBoundingBoxMouseleave",cached.get("stickDuration"),cached);instance._hideTooltipTask=hideTooltipTask;
instance._cached=cached}else cached.setAttrs(tooltipConfig);hideTooltipTask.cancel();if(obj.jquery)obj=obj[0];obj=A.one(obj);if(text==null)text=instance._getText(obj.guid());cached.set(BODY_CONTENT,text);cached.set(TRIGGER,obj);var boundingBox=cached.get("boundingBox");boundingBox.detach("hover");obj.detach("hover");obj.on("hover",A.bind("_onBoundingBoxMouseenter",cached),hideTooltipTask);boundingBox.on("hover",function(event){hideTooltipTask.cancel();obj.once("mouseenter",hideTooltipTask.cancel)},
hideTooltipTask);cached.show()},["aui-tooltip-base"])})(AUI(),Liferay);
(function(A,Liferay){var Lang=A.Lang;var Util=Liferay.Util;var STR_HEAD="head";var TPL_NOT_AJAXABLE='\x3cdiv class\x3d"alert alert-info"\x3e{0}\x3c/div\x3e';var Portlet={list:[],readyCounter:0,destroyComponents:function destroyComponents(portletId){Liferay.destroyComponents(function(component,destroyConfig){return portletId===destroyConfig.portletId})},isStatic:function isStatic(portletId){var instance=this;var id=Util.getPortletId(portletId.id||portletId);return id in instance._staticPortlets},refreshLayout:function refreshLayout(portletBoundary){},
register:function register(portletId){var instance=this;if(instance.list.indexOf(portletId)<0)instance.list.push(portletId)},_defCloseFn:function _defCloseFn(event){var instance=this;event.portlet.remove(true);if(!event.nestedPortlet)A.io.request(themeDisplay.getPathMain()+"/portal/update_layout",{after:{success:function success(){Liferay.fire("updatedLayout")}},data:{cmd:"delete",doAsUserId:event.doAsUserId,p_auth:Liferay.authToken,p_l_id:event.plid,p_p_id:event.portletId,p_v_l_s_g_id:themeDisplay.getSiteGroupId()}})},
_loadMarkupHeadElements:function _loadMarkupHeadElements(response,loadHTML){var markupHeadElements=response.markupHeadElements;if(markupHeadElements&&markupHeadElements.length){var head=A.one(STR_HEAD);head.append(markupHeadElements);var container=A.Node.create("\x3cdiv /\x3e");container.plug(A.Plugin.ParseContent);container.setContent(markupHeadElements)}},_loadPortletFiles:function _loadPortletFiles(response,loadHTML){var footerCssPaths=response.footerCssPaths||[];var headerCssPaths=response.headerCssPaths||
[];var javascriptPaths=response.headerJavaScriptPaths||[];javascriptPaths=javascriptPaths.concat(response.footerJavaScriptPaths||[]);var body=A.getBody();var head=A.one(STR_HEAD);if(headerCssPaths.length)A.Get.css(headerCssPaths,{insertBefore:head.get("firstChild").getDOM()});var lastChild=body.get("lastChild").getDOM();if(footerCssPaths.length)A.Get.css(footerCssPaths,{insertBefore:lastChild});var responseHTML=response.portletHTML;if(javascriptPaths.length)A.Get.script(javascriptPaths,{onEnd:function onEnd(obj){loadHTML(responseHTML)}});
else loadHTML(responseHTML)},_mergeOptions:function _mergeOptions(portlet,options){options=options||{};options.doAsUserId=options.doAsUserId||themeDisplay.getDoAsUserIdEncoded();options.plid=options.plid||themeDisplay.getPlid();options.portlet=portlet;options.portletId=portlet.portletId;return options},_staticPortlets:{}};Liferay.provide(Portlet,"add",function(options){var instance=this;Liferay.fire("initLayout");var doAsUserId=options.doAsUserId||themeDisplay.getDoAsUserIdEncoded();var plid=options.plid||
themeDisplay.getPlid();var portletData=options.portletData;var portletId=options.portletId;var portletItemId=options.portletItemId;var placeHolder=options.placeHolder;if(!placeHolder)placeHolder=A.Node.create('\x3cdiv class\x3d"loading-animation" /\x3e');else placeHolder=A.one(placeHolder);var beforePortletLoaded=options.beforePortletLoaded;var onCompleteFn=options.onComplete;var onComplete=function onComplete(portlet,portletId){if(onCompleteFn)onCompleteFn(portlet,portletId);instance.list.push(portlet.portletId);
if(portlet)portlet.attr("data-qa-id","app-loaded");Liferay.fire("addPortlet",{portlet:portlet})};var container=null;if(Liferay.Layout&&Liferay.Layout.INITIALIZED)container=Liferay.Layout.getActiveDropContainer();if(!container)return;var currentColumnId=Util.getColumnId(container.attr("id"));var portletPosition=0;if(options.placeHolder){var column=placeHolder.get("parentNode");if(!column)return;placeHolder.addClass("portlet-boundary");var columnPortlets=column.all(".portlet-boundary");var nestedPortlets=
column.all(".portlet-nested-portlets");portletPosition=columnPortlets.indexOf(placeHolder);var nestedPortletOffset=0;nestedPortlets.some(function(nestedPortlet){var nestedPortletIndex=columnPortlets.indexOf(nestedPortlet);if(nestedPortletIndex!==-1&&nestedPortletIndex<portletPosition)nestedPortletOffset+=nestedPortlet.all(".portlet-boundary").size();else if(nestedPortletIndex>=portletPosition)return true});portletPosition-=nestedPortletOffset;currentColumnId=Util.getColumnId(column.attr("id"))}var url=
themeDisplay.getPathMain()+"/portal/update_layout";var data={cmd:"add",dataType:"JSON",doAsUserId:doAsUserId,p_auth:Liferay.authToken,p_l_id:plid,p_p_col_id:currentColumnId,p_p_col_pos:portletPosition,p_p_i_id:portletItemId,p_p_id:portletId,p_p_isolated:true,p_v_l_s_g_id:themeDisplay.getSiteGroupId(),portletData:portletData};var firstPortlet=container.one(".portlet-boundary");var hasStaticPortlet=firstPortlet&&firstPortlet.isStatic;if(!options.placeHolder&&!options.plid)if(!hasStaticPortlet)container.prepend(placeHolder);
else firstPortlet.placeAfter(placeHolder);if(themeDisplay.isFreeformLayout())container.prepend(placeHolder);data.currentURL=Liferay.currentURL;instance.addHTML({beforePortletLoaded:beforePortletLoaded,data:data,onComplete:onComplete,placeHolder:placeHolder,url:url})},["aui-base"]);Liferay.provide(Portlet,"addHTML",function(options){var instance=this;var portletBoundary=null;var beforePortletLoaded=options.beforePortletLoaded;var data=options.data;var dataType="HTML";var onComplete=options.onComplete;
var placeHolder=options.placeHolder;var url=options.url;if(data&&Lang.isString(data.dataType))dataType=data.dataType;dataType=dataType.toUpperCase();var addPortletReturn=function addPortletReturn(html){var container=placeHolder.get("parentNode");var portletBound=A.Node.create("\x3cdiv\x3e\x3c/div\x3e");portletBound.plug(A.Plugin.ParseContent);portletBound.setContent(html);portletBound=portletBound.one("\x3e *");var portletId;if(portletBound){var id=portletBound.attr("id");portletId=Util.getPortletId(id);
portletBound.portletId=portletId;placeHolder.hide();placeHolder.placeAfter(portletBound);placeHolder.remove();instance.refreshLayout(portletBound);if(window.location.hash)window.location.href=window.location.hash;portletBoundary=portletBound;var Layout=Liferay.Layout;if(Layout&&Layout.INITIALIZED){Layout.updateCurrentPortletInfo(portletBoundary);if(container)Layout.syncEmptyColumnClassUI(container);Layout.syncDraggableClassUI();Layout.updatePortletDropZones(portletBoundary)}if(onComplete)onComplete(portletBoundary,
portletId)}else placeHolder.remove();return portletId};if(beforePortletLoaded)beforePortletLoaded(placeHolder);A.io.request(url,{after:{success:function success(){if(!data||!data.preventNotification)Liferay.fire("updatedLayout")}},data:data,dataType:dataType,on:{failure:function failure(event,id,obj){var statusText=obj.statusText;if(statusText){var status='Unexpected\x20error\x2e\x20Please\x20refresh\x2e';if(statusText=="timeout")status='Request\x20Timeout';
placeHolder.hide();placeHolder.placeAfter('\x3cdiv class\x3d"alert alert-danger"\x3e'+status+"\x3c/div\x3e")}},success:function success(event,id,obj){var instance=this;var response=instance.get("responseData");if(dataType=="HTML")addPortletReturn(response);else if(response.refresh)addPortletReturn(response.portletHTML);else{Portlet._loadMarkupHeadElements(response);Portlet._loadPortletFiles(response,addPortletReturn)}}}})},["aui-io-request","aui-parse-content"]);Liferay.provide(Portlet,"close",function(portlet,
skipConfirm,options){var instance=this;portlet=A.one(portlet);if(portlet&&(skipConfirm||confirm('Are\x20you\x20sure\x20you\x20want\x20to\x20remove\x20this\x20component\x3f'))){var portletId=portlet.portletId;var portletIndex=instance.list.indexOf(portletId);if(portletIndex>=0)instance.list.splice(portletIndex,1);options=Portlet._mergeOptions(portlet,options);Portlet.destroyComponents(portletId);Liferay.fire("destroyPortlet",options);Liferay.fire("closePortlet",options)}else A.config.win.focus()},["aui-io-request"]);
Liferay.provide(Portlet,"destroy",function(portlet,options){portlet=A.one(portlet);if(portlet){var portletId=portlet.portletId||Util.getPortletId(portlet.attr("id"));Portlet.destroyComponents(portletId);Liferay.fire("destroyPortlet",Portlet._mergeOptions(portlet,options))}},["aui-node-base"]);Liferay.provide(Portlet,"minimize",function(portlet,el,options){var instance=this;options=options||{};var doAsUserId=options.doAsUserId||themeDisplay.getDoAsUserIdEncoded();var plid=options.plid||themeDisplay.getPlid();
portlet=A.one(portlet);if(portlet){var content=portlet.one(".portlet-content-container");if(content){var restore=content.hasClass("hide");content.toggle();portlet.toggleClass("portlet-minimized");var link=A.one(el);if(link){var title=restore?'Minimize':'Restore';link.attr("alt",title);link.attr("title",title);var linkText=link.one(".taglib-text-icon");if(linkText)linkText.html(title);var icon=link.one("i");if(icon){icon.removeClass("icon-minus icon-resize-vertical");
if(restore)icon.addClass("icon-minus");else icon.addClass("icon-resize-vertical")}}A.io.request(themeDisplay.getPathMain()+"/portal/update_layout",{after:{success:function success(){if(restore){var data={doAsUserId:doAsUserId,p_l_id:plid,p_p_boundary:false,p_p_id:portlet.portletId,p_p_isolated:true};portlet.plug(A.Plugin.ParseContent);portlet.load(themeDisplay.getPathMain()+"/portal/render_portlet?"+A.QueryString.stringify(data))}}},data:{cmd:"minimize",doAsUserId:doAsUserId,p_auth:Liferay.authToken,
p_l_id:plid,p_p_id:portlet.portletId,p_p_restore:restore,p_v_l_s_g_id:themeDisplay.getSiteGroupId()}})}}},["aui-io","aui-parse-content","node-load","querystring-stringify"]);Liferay.provide(Portlet,"onLoad",function(options){var instance=this;var canEditTitle=options.canEditTitle;var columnPos=options.columnPos;var isStatic=options.isStatic=="no"?null:options.isStatic;var namespacedId=options.namespacedId;var portletId=options.portletId;var refreshURL=options.refreshURL;var refreshURLData=options.refreshURLData;
if(isStatic)instance.registerStatic(portletId);var portlet=A.one("#"+namespacedId);if(portlet&&!portlet.portletProcessed){portlet.portletProcessed=true;portlet.portletId=portletId;portlet.columnPos=columnPos;portlet.isStatic=isStatic;portlet.refreshURL=refreshURL;portlet.refreshURLData=refreshURLData;if(canEditTitle){var events="focus";if(!A.UA.touch)events=["focus","mousemove"];var handle=portlet.on(events,function(event){Util.portletTitleEdit({doAsUserId:themeDisplay.getDoAsUserIdEncoded(),obj:portlet,
plid:themeDisplay.getPlid(),portletId:portletId});handle.detach()})}}Liferay.fire("portletReady",{portlet:portlet,portletId:portletId});instance.readyCounter++;if(instance.readyCounter===instance.list.length)Liferay.fire("allPortletsReady",{portletId:portletId})},["aui-base","aui-timer","event-move"]);Liferay.provide(Portlet,"refresh",function(portlet,data){var instance=this;portlet=A.one(portlet);if(portlet){data=data||portlet.refreshURLData||{};if(!data.hasOwnProperty("portletAjaxable"))data.portletAjaxable=
true;var id=portlet.attr("portlet");var url=portlet.refreshURL;var placeHolder=A.Node.create('\x3cdiv class\x3d"loading-animation" id\x3d"p_p_id'+id+'" /\x3e');if(data.portletAjaxable&&url){portlet.placeBefore(placeHolder);portlet.remove(true);Portlet.destroyComponents(portlet.portletId);var params={};var urlPieces=url.split("?");if(urlPieces.length>1){params=A.QueryString.parse(urlPieces[1]);delete params.dataType;url=urlPieces[0]}instance.addHTML({data:A.mix(params,data,true),onComplete:function onComplete(portlet,
portletId){portlet.refreshURL=url;if(portlet)portlet.attr("data-qa-id","app-refreshed");Liferay.fire(portlet.portletId+":portletRefreshed",{portlet:portlet,portletId:portletId})},placeHolder:placeHolder,url:url})}else if(!portlet.getData("pendingRefresh")){portlet.setData("pendingRefresh",true);var nonAjaxableContentMessage=Lang.sub(TPL_NOT_AJAXABLE,['This\x20change\x20will\x20only\x20be\x20shown\x20after\x20you\x20refresh\x20the\x20current\x20page\x2e']);var portletBody=portlet.one(".portlet-body");portletBody.placeBefore(nonAjaxableContentMessage);
portletBody.hide()}}},["aui-base","querystring-parse"]);Liferay.provide(Portlet,"registerStatic",function(portletId){var instance=this;var Node=A.Node;if(Node&&portletId instanceof Node)portletId=portletId.attr("id");else if(portletId.id)portletId=portletId.id;var id=Util.getPortletId(portletId);instance._staticPortlets[id]=true},["aui-base"]);Liferay.provide(Portlet,"openWindow",function(options){var instance=this;var bodyCssClass=options.bodyCssClass;var destroyOnHide=options.destroyOnHide;var namespace=
options.namespace;var portlet=options.portlet;var subTitle=options.subTitle;var title=options.title;var uri=options.uri;portlet=A.one(portlet);if(portlet&&uri){var portletTitle=portlet.one(".portlet-title")||portlet.one(".portlet-title-default");var titleHtml=title;if(portletTitle)if(portlet.one("#cpPortletTitle"))titleHtml=portletTitle.one(".portlet-title-text").outerHTML()+" - "+titleHtml;else titleHtml=portletTitle.text()+" - "+titleHtml;if(subTitle)titleHtml+='\x3cdiv class\x3d"portlet-configuration-subtitle small"\x3e\x3cspan class\x3d"portlet-configuration-subtitle-text"\x3e'+
subTitle+"\x3c/span\x3e\x3c/div\x3e";Liferay.Util.openWindow({cache:false,dialog:{destroyOnHide:destroyOnHide},dialogIframe:{bodyCssClass:bodyCssClass,id:namespace+"configurationIframe",uri:uri},id:namespace+"configurationIframeDialog",title:titleHtml,uri:uri},function(dialog){dialog.once("drag:init",function(){dialog.dd.addInvalid(".portlet-configuration-subtitle-text")})})}},["liferay-util-window"]);Liferay.publish("closePortlet",{defaultFn:Portlet._defCloseFn});Liferay.publish("allPortletsReady",
{fireOnce:true});Portlet.ready=function(fn){Liferay.on("portletReady",function(event){fn(event.portletId,event.portlet)})};Liferay.Portlet=Portlet})(AUI(),Liferay);
Liferay.Workflow={ACTION_PUBLISH:1,ACTION_SAVE_DRAFT:2,STATUS_ANY:-1,STATUS_APPROVED:0,STATUS_DENIED:4,STATUS_DRAFT:2,STATUS_EXPIRED:3,STATUS_PENDING:1};
AUI.add("liferay-address",function(A){Liferay.Address={getCountries:function(callback){Liferay.Service("/country/get-countries",{active:true},callback)},getRegions:function(callback,selectKey){Liferay.Service("/region/get-regions",{active:true,countryId:Number(selectKey)},callback)}}},"",{requires:[]});
AUI.add("liferay-form",function(A){var AArray=A.Array;var Lang=A.Lang;var formConfig;var DEFAULTS_FORM_VALIDATOR=A.config.FormValidator;var defaultAcceptFiles=DEFAULTS_FORM_VALIDATOR.RULES.acceptFiles;var TABS_SECTION_STR="TabsSection";var REGEX_EMAIL=/^[\w!#$%&'*+/=?^_`{|}~-]+(?:\.[\w!#$%&'*+/=?^_`{|}~-]+)*@(?:\w(?:[\w-]*\w)?\.)+(\w(?:[\w-]*\w))$/;var REGEX_NUMBER=/^[+\-]?(\d+)([.|,]\d+)*([eE][+-]?\d+)?$/;var REGEX_URL=/((([A-Za-z]{3,9}:(?:\/\/)?)(?:[-;:&=\+\$,\w]+@)?[A-Za-z0-9.-]+|(https?:\/\/|www.|[-;:&=\+\$,\w]+@)[A-Za-z0-9.-]+)((?:\/[\+~%\/.\w-_]*)?\??(?:[-\+=&;%@.\w_]*)#?(?:[\w]*))((.*):(\d*)\/?(.*))?)/;
var acceptFiles=function(val,node,ruleValue){if(ruleValue=="*")return true;return defaultAcceptFiles(val,node,ruleValue)};var email=function(val){return REGEX_EMAIL.test(val)};var maxFileSize=function(val,node,ruleValue){var nodeType=node.get("type").toLowerCase();if(nodeType==="file")return ruleValue===0||node._node.files[0].size<=ruleValue;return true};var number=function(val,node,ruleValue){return REGEX_NUMBER&&REGEX_NUMBER.test(val)};var url=function(val,node,ruleValue){return REGEX_URL&&REGEX_URL.test(val)};
A.mix(DEFAULTS_FORM_VALIDATOR.RULES,{acceptFiles:acceptFiles,email:email,maxFileSize:maxFileSize,number:number,url:url},true);A.mix(DEFAULTS_FORM_VALIDATOR.STRINGS,{DEFAULT:'Please\x20fix\x20this\x20field\x2e',acceptFiles:'Please\x20enter\x20a\x20file\x20with\x20a\x20valid\x20extension\x20\x28\x7b0\x7d\x29\x2e',alpha:'Please\x20enter\x20only\x20alpha\x20characters\x2e',alphanum:'Please\x20enter\x20only\x20alphanumeric\x20characters\x2e',date:'Please\x20enter\x20a\x20valid\x20date\x2e',digits:'Please\x20enter\x20only\x20digits\x2e',
email:'Please\x20enter\x20a\x20valid\x20email\x20address\x2e',equalTo:'Please\x20enter\x20the\x20same\x20value\x20again\x2e',max:'Please\x20enter\x20a\x20value\x20less\x20than\x20or\x20equal\x20to\x20\x7b0\x7d\x2e',maxFileSize:'Please\x20enter\x20a\x20file\x20with\x20a\x20valid\x20file\x20size\x20no\x20larger\x20than\x20\x7b0\x7d\x2e',maxLength:'Please\x20enter\x20no\x20more\x20than\x20\x7b0\x7d\x20characters\x2e',min:'Please\x20enter\x20a\x20value\x20greater\x20than\x20or\x20equal\x20to\x20\x7b0\x7d\x2e',minLength:'Please\x20enter\x20at\x20least\x20\x7b0\x7d\x20characters\x2e',
number:'Please\x20enter\x20a\x20valid\x20number\x2e',range:'Please\x20enter\x20a\x20value\x20between\x20\x7b0\x7d\x20and\x20\x7b1\x7d\x2e',rangeLength:'Please\x20enter\x20a\x20value\x20between\x20\x7b0\x7d\x20and\x20\x7b1\x7d\x20characters\x20long\x2e',required:'This\x20field\x20is\x20required\x2e',url:'Please\x20enter\x20a\x20valid\x20URL\x2e'},true);var Form=A.Component.create({ATTRS:{fieldRules:{setter:function(val){var instance=this;instance._processFieldRules(val);return val}},id:{},namespace:{},onSubmit:{valueFn:function(){var instance=
this;return instance._onSubmit}},validateOnBlur:{validator:Lang.isBoolean,value:true}},EXTENDS:A.Base,prototype:{initializer:function(){var instance=this;var id=instance.get("id");var form=document[id];var formNode=A.one(form);instance.form=form;instance.formNode=formNode;if(formNode){var formValidator=new A.FormValidator({boundingBox:formNode,validateOnBlur:instance.get("validateOnBlur")});A.Do.before("_validatable",formValidator,"validatable",instance);instance.formValidator=formValidator;instance._processFieldRules();
instance._bindForm()}},addRule:function(fieldName,validatorName,errorMessage,body,custom){var instance=this;var fieldRules=instance.get("fieldRules");var ruleIndex=instance._findRuleIndex(fieldRules,fieldName,validatorName);if(ruleIndex==-1){fieldRules.push({body:body||"",custom:custom||false,errorMessage:errorMessage||"",fieldName:fieldName,validatorName:validatorName});instance._processFieldRules(fieldRules)}},removeRule:function(fieldName,validatorName){var instance=this;var fieldRules=instance.get("fieldRules");
var ruleIndex=instance._findRuleIndex(fieldRules,fieldName,validatorName);if(ruleIndex!=-1){var rule=fieldRules[ruleIndex];instance.formValidator.resetField(rule.fieldName);fieldRules.splice(ruleIndex,1);instance._processFieldRules(fieldRules)}},_afterGetFieldsByName:function(fieldName){var instance=this;var editorString="Editor";if(fieldName.lastIndexOf(editorString)===fieldName.length-editorString.length){var formNode=instance.formNode;return new A.Do.AlterReturn("Return editor dom element",formNode.one("#"+
fieldName))}},_bindForm:function(){var instance=this;var formNode=instance.formNode;var formValidator=instance.formValidator;formValidator.on("submit",A.bind("_onValidatorSubmit",instance));formValidator.on("submitError",A.bind("_onSubmitError",instance));formNode.delegate(["blur","focus"],A.bind("_onFieldFocusChange",instance),"button,input,select,textarea");formNode.delegate(["blur","input"],A.bind("_onEditorBlur",instance),'div[contenteditable\x3d"true"]');A.Do.after("_afterGetFieldsByName",formValidator,
"getFieldsByName",instance)},_defaultSubmitFn:function(event){var instance=this;if(!event.stopped)submitForm(instance.form)},_findRuleIndex:function(fieldRules,fieldName,validatorName){var ruleIndex=-1;AArray.some(fieldRules,function(element,index){if(element.fieldName===fieldName&&element.validatorName===validatorName){ruleIndex=index;return true}});return ruleIndex},_focusInvalidFieldTab:function(){var instance=this;var formNode=instance.formNode;var field=formNode.one("."+instance.formValidator.get("errorClass"));
if(field){var fieldWrapper=field.ancestor("form \x3e div");var formTabs=formNode.one(".lfr-nav");if(fieldWrapper&&formTabs){var tabs=formTabs.all(".tab");var tabsNamespace=formTabs.getAttribute("data-tabs-namespace");var tabNames=AArray.map(tabs._nodes,function(tab){return tab.getAttribute("data-tab-name")});var fieldWrapperId=fieldWrapper.getAttribute("id").slice(0,-TABS_SECTION_STR.length);var fieldTabId=AArray.find(tabs._nodes,function(tab){return tab.getAttribute("id").indexOf(fieldWrapperId)!==
-1});Liferay.Portal.Tabs.show(tabsNamespace,tabNames,fieldTabId.getAttribute("data-tab-name"))}}},_onEditorBlur:function(event){var instance=this;var formValidator=instance.formValidator;formValidator.validateField(event.target)},_onFieldFocusChange:function(event){var instance=this;var row=event.currentTarget.ancestor(".field");if(row)row.toggleClass("field-focused",event.type==="focus")},_onSubmit:function(event){var instance=this;event.preventDefault();setTimeout(function(){instance._defaultSubmitFn(event)},
0)},_onSubmitError:function(event){var instance=this;var collapsiblePanels=instance.formNode.all(".panel-collapse");collapsiblePanels.each(function(panel){var errorFields=panel.get("children").all(".has-error");if(errorFields.size()>0&&!panel.hasClass("in")){var panelNode=panel.getDOM();AUI.$(panelNode).collapse("show")}})},_onValidatorSubmit:function(event){var instance=this;var onSubmit=instance.get("onSubmit");onSubmit.call(instance,event.validator.formEvent)},_processFieldRule:function(rules,
strings,rule){var instance=this;var value=true;var fieldName=rule.fieldName;var validatorName=rule.validatorName;var field=this.formValidator.getField(fieldName);if(field){var fieldNode=field.getDOMNode();A.Do.after("_setFieldAttribute",fieldNode,"setAttribute",instance,fieldName);A.Do.after("_removeFieldAttribute",fieldNode,"removeAttribute",instance,fieldName)}if((rule.body||rule.body===0)&&!rule.custom)value=rule.body;var fieldRules=rules[fieldName];if(!fieldRules){fieldRules={};rules[fieldName]=
fieldRules}fieldRules[validatorName]=value;if(rule.custom)DEFAULTS_FORM_VALIDATOR.RULES[validatorName]=rule.body;var errorMessage=rule.errorMessage;if(errorMessage){var fieldStrings=strings[fieldName];if(!fieldStrings){fieldStrings={};strings[fieldName]=fieldStrings}fieldStrings[validatorName]=errorMessage}},_processFieldRules:function(fieldRules){var instance=this;if(!fieldRules)fieldRules=instance.get("fieldRules");var fieldStrings={};var rules={};for(var rule in fieldRules)instance._processFieldRule(rules,
fieldStrings,fieldRules[rule]);var formValidator=instance.formValidator;if(formValidator){formValidator.set("fieldStrings",fieldStrings);formValidator.set("rules",rules)}},_removeFieldAttribute:function(name,fieldName){var instance=this;if(name==="disabled")this.formValidator.validateField(fieldName)},_setFieldAttribute:function(name,value,fieldName){var instance=this;if(name==="disabled")this.formValidator.resetField(fieldName)},_validatable:function(field){var result;if(field.test(":disabled"))result=
new A.Do.Halt;return result}},get:function(id){var instance=this;return instance._INSTANCES[id]},register:function(config){var instance=this;formConfig=config;var form=new Liferay.Form(config);var formName=config.id||config.namespace;instance._INSTANCES[formName]=form;Liferay.fire("form:registered",{form:form,formName:formName});return form},_INSTANCES:{}});Liferay.Form=Form},"",{requires:["aui-base","aui-form-validator"]});
AUI.add("liferay-form-placeholders",function(A){var ANode=A.Node;var CSS_PLACEHOLDER="text-placeholder";var MAP_IGNORE_ATTRS={id:1,name:1,type:1};var SELECTOR_PLACEHOLDER_INPUTS="input[placeholder], textarea[placeholder]";var STR_BLANK="";var STR_DATA_TYPE_PASSWORD_PLACEHOLDER="data-type-password-placeholder";var STR_FOCUS="focus";var STR_PASSWORD="password";var STR_PLACEHOLDER="placeholder";var STR_SPACE=" ";var STR_TYPE="type";var Placeholders=A.Component.create({EXTENDS:A.Plugin.Base,NAME:"placeholders",
NS:STR_PLACEHOLDER,prototype:{initializer:function(config){var instance=this;var host=instance.get("host");var formNode=host.formNode;if(formNode){var placeholderInputs=formNode.all(SELECTOR_PLACEHOLDER_INPUTS);placeholderInputs.each(function(item,index){if(!item.val())if(item.attr(STR_TYPE)===STR_PASSWORD)instance._initializePasswordNode(item);else{item.addClass(CSS_PLACEHOLDER);item.val(item.attr(STR_PLACEHOLDER))}});instance.host=host;instance.beforeHostMethod("_onValidatorSubmit",instance._removePlaceholders,
instance);instance.beforeHostMethod("_onFieldFocusChange",instance._togglePlaceholders,instance)}},_initializePasswordNode:function(field){var placeholder=ANode.create('\x3cinput name\x3d"'+field.attr("name")+'_pass_placeholder" type\x3d"text" /\x3e');Liferay.Util.getAttributes(field,function(value,name,attrs){var result=false;if(!MAP_IGNORE_ATTRS[name]){if(name==="class")value+=STR_SPACE+CSS_PLACEHOLDER;placeholder.setAttribute(name,value)}return result});placeholder.val(field.attr(STR_PLACEHOLDER));
placeholder.attr(STR_DATA_TYPE_PASSWORD_PLACEHOLDER,true);field.placeBefore(placeholder);field.hide()},_removePlaceholders:function(){var instance=this;var formNode=instance.host.formNode;var placeholderInputs=formNode.all(SELECTOR_PLACEHOLDER_INPUTS);placeholderInputs.each(function(item,index){if(item.val()==item.attr(STR_PLACEHOLDER))item.val(STR_BLANK)})},_toggleLocalizedPlaceholders:function(event,currentTarget){var placeholder=currentTarget.attr(STR_PLACEHOLDER);if(placeholder){var value=currentTarget.val();
if(event.type===STR_FOCUS){if(value===placeholder)currentTarget.removeClass(CSS_PLACEHOLDER)}else if(!value){currentTarget.val(placeholder);currentTarget.addClass(CSS_PLACEHOLDER)}}},_togglePasswordPlaceholders:function(event,currentTarget){var placeholder=currentTarget.attr(STR_PLACEHOLDER);if(placeholder)if(event.type===STR_FOCUS){if(currentTarget.hasAttribute(STR_DATA_TYPE_PASSWORD_PLACEHOLDER)){currentTarget.hide();var passwordField=currentTarget.next();passwordField.show();setTimeout(function(){Liferay.Util.focusFormField(passwordField)},
0)}}else if(currentTarget.attr(STR_TYPE)===STR_PASSWORD){var value=currentTarget.val();if(!value){currentTarget.hide();currentTarget.previous().show()}}},_togglePlaceholders:function(event){var instance=this;var currentTarget=event.currentTarget;if(currentTarget.hasAttribute(STR_DATA_TYPE_PASSWORD_PLACEHOLDER)||currentTarget.attr(STR_TYPE)===STR_PASSWORD)instance._togglePasswordPlaceholders(event,currentTarget);else if(currentTarget.hasClass("language-value"))instance._toggleLocalizedPlaceholders(event,
currentTarget);else{var placeholder=currentTarget.attr(STR_PLACEHOLDER);if(placeholder){var value=currentTarget.val();if(event.type===STR_FOCUS){if(value===placeholder){currentTarget.val(STR_BLANK);currentTarget.removeClass(CSS_PLACEHOLDER)}}else if(!value){currentTarget.val(placeholder);currentTarget.addClass(CSS_PLACEHOLDER)}}}}}});Liferay.Form.Placeholders=Placeholders;A.Base.plug(Liferay.Form,Placeholders)},"",{requires:["liferay-form","plugin"]});
AUI.add("liferay-icon",function(A){var _ICON_REGISTRY={};var Icon={register:function(config){var instance=this;var doc=A.one(A.config.doc);_ICON_REGISTRY[config.id]=config;if(!instance._docClickHandler)instance._docClickHandler=doc.delegate("click",instance._handleDocClick,".lfr-icon-item",instance);if(!instance._docHoverHandler)instance._docHoverHandler=doc.delegate("hover",instance._handleDocMouseOver,instance._handleDocMouseOut,".lfr-icon-item",instance);Liferay.once("screenLoad",function(){delete _ICON_REGISTRY[config.id]})},
_forcePost:function(event){var instance=this;if(!Liferay.SPA||!Liferay.SPA.app){Liferay.Util.forcePost(event.currentTarget);event.preventDefault()}},_getConfig:function(event){var instance=this;return _ICON_REGISTRY[event.currentTarget.attr("id")]},_handleDocClick:function(event){var instance=this;var config=instance._getConfig(event);if(config){event.preventDefault();if(config.useDialog)instance._useDialog(event);else instance._forcePost(event)}},_handleDocMouseOut:function(event){var instance=this;
var config=instance._getConfig(event);if(config&&config.srcHover)instance._onMouseHover(event,config.src)},_handleDocMouseOver:function(event){var instance=this;var config=instance._getConfig(event);if(config&&config.srcHover)instance._onMouseHover(event,config.srcHover)},_onMouseHover:function(event,src){var instance=this;var img=event.currentTarget.one("img");if(img)img.attr("src",src)},_useDialog:function(event){Liferay.Util.openInDialog(event,{dialog:{destroyOnHide:true},dialogIframe:{bodyCssClass:"dialog-with-footer"}})}};
Liferay.Icon=Icon},"",{requires:["aui-base","liferay-util-window"]});
AUI.add("liferay-menu",function(A){var Util=Liferay.Util;var ARIA_ATTR_ROLE="role";var ATTR_CLASS_NAME="className";var AUTO="auto";var CSS_BTN_PRIMARY="btn-primary";var CSS_EXTENDED="lfr-extended";var CSS_OPEN="open";var CSS_PORTLET=".portlet";var DEFAULT_ALIGN_POINTS=["tl","bl"];var EVENT_CLICK="click";var PARENT_NODE="parentNode";var STR_BOTTOM="b";var STR_LEFT="l";var STR_LTR="ltr";var STR_RIGHT="r";var STR_RTL="rtl";var STR_TOP="t";var MAP_ALIGN_HORIZONTAL_OVERLAY={left:STR_RIGHT,right:STR_LEFT};
var MAP_ALIGN_HORIZONTAL_OVERLAY_RTL={left:STR_LEFT,right:STR_RIGHT};var MAP_ALIGN_HORIZONTAL_TRIGGER={left:STR_LEFT,right:STR_RIGHT};var MAP_ALIGN_HORIZONTAL_TRIGGER_RTL={left:STR_RIGHT,right:STR_LEFT};var MAP_ALIGN_VERTICAL_OVERLAY={down:STR_TOP,up:STR_BOTTOM};var MAP_ALIGN_VERTICAL_TRIGGER={down:STR_BOTTOM,up:STR_TOP};var MAP_LIVE_SEARCH={};var REGEX_DIRECTION=/\bdirection-(down|left|right|up)\b/;var REGEX_MAX_DISPLAY_ITEMS=/max-display-items-(\d+)/;var SELECTOR_ANCHOR="a";var SELECTOR_LIST_ITEM=
"li";var SELECTOR_SEARCH_CONTAINER=".lfr-menu-list-search-container";var TPL_MENU='\x3cdiv class\x3d"open" /\x3e';var Menu=function(){var instance=this;instance._handles=[];if(!Menu._INSTANCE)Menu._INSTANCE=instance};Menu.prototype={_closeActiveMenu:function(){var instance=this;var menu=instance._activeMenu;if(menu){var handles=instance._handles;A.Array.invoke(handles,"detach");handles.length=0;var overlay=instance._overlay;if(overlay)overlay.hide();var trigger=instance._activeTrigger;instance._activeMenu=
null;instance._activeTrigger=null;if(trigger.hasClass(CSS_EXTENDED))trigger.removeClass(CSS_BTN_PRIMARY);else{trigger.get(PARENT_NODE).removeClass(CSS_OPEN);var portlet=trigger.ancestor(CSS_PORTLET);if(portlet)portlet.removeClass(CSS_OPEN)}}},_getAlignPoints:A.cached(function(cssClass){var instance=this;var alignPoints=DEFAULT_ALIGN_POINTS;var defaultOverlayHorizontalAlign=STR_RIGHT;var defaultTriggerHorizontalAlign=STR_LEFT;var mapAlignHorizontalOverlay=MAP_ALIGN_HORIZONTAL_OVERLAY;var mapAlignHorizontalTrigger=
MAP_ALIGN_HORIZONTAL_TRIGGER;var langDir=Liferay.Language.direction[themeDisplay.getLanguageId()]||STR_LTR;if(langDir===STR_RTL){defaultOverlayHorizontalAlign=STR_LEFT;defaultTriggerHorizontalAlign=STR_RIGHT;mapAlignHorizontalOverlay=MAP_ALIGN_HORIZONTAL_OVERLAY_RTL;mapAlignHorizontalTrigger=MAP_ALIGN_HORIZONTAL_TRIGGER_RTL}if(cssClass.indexOf(AUTO)===-1){var directionMatch=cssClass.match(REGEX_DIRECTION);var direction=directionMatch&&directionMatch[1]||AUTO;if(direction!="down"){var overlayHorizontal=
mapAlignHorizontalOverlay[direction]||defaultOverlayHorizontalAlign;var overlayVertical=MAP_ALIGN_VERTICAL_OVERLAY[direction]||STR_TOP;var triggerHorizontal=mapAlignHorizontalTrigger[direction]||defaultTriggerHorizontalAlign;var triggerVertical=MAP_ALIGN_VERTICAL_TRIGGER[direction]||STR_TOP;alignPoints=[overlayVertical+overlayHorizontal,triggerVertical+triggerHorizontal]}}return alignPoints}),_getMenu:function(trigger){var instance=this;var overlay=instance._overlay;if(!overlay){var MenuOverlay=A.Component.create({AUGMENTS:[A.WidgetCssClass,
A.WidgetPosition,A.WidgetStdMod,A.WidgetModality,A.WidgetPositionAlign,A.WidgetPositionConstrain,A.WidgetStack],CSS_PREFIX:"overlay",EXTENDS:A.Widget,NAME:"overlay"});overlay=(new MenuOverlay({align:{node:trigger,points:DEFAULT_ALIGN_POINTS},constrain:true,hideClass:false,preventOverlap:true,zIndex:Liferay.zIndex.MENU})).render();Liferay.once("beforeScreenFlip",function(){overlay.destroy();instance._overlay=null});instance._overlay=overlay}else overlay.set("align.node",trigger);var listContainer=
trigger.getData("menuListContainer");var menu=trigger.getData("menu");var menuHeight=trigger.getData("menuHeight");var liveSearch=menu&&MAP_LIVE_SEARCH[menu.guid()];if(liveSearch)liveSearch.reset();var listItems;if(!menu||!listContainer){listContainer=trigger.next("ul");listItems=listContainer.all(SELECTOR_LIST_ITEM);menu=A.Node.create(TPL_MENU);listContainer.placeBefore(menu);listItems.last().addClass("last");menu.append(listContainer);trigger.setData("menuListContainer",listContainer);trigger.setData("menu",
menu);instance._setARIARoles(trigger,menu,listContainer);if(trigger.hasClass("select"))listContainer.delegate("click",function(event){var selectedListItem=event.currentTarget;var selectedListItemIcon=selectedListItem.one("i");var triggerIcon=trigger.one("i");if(selectedListItemIcon&&triggerIcon){var selectedListItemIconClass=selectedListItemIcon.attr("class");triggerIcon.attr("class",selectedListItemIconClass)}var selectedListItemMessage=selectedListItem.one(".lfr-icon-menu-text");var triggerMessage=
trigger.one(".lfr-icon-menu-text");if(selectedListItemMessage&&triggerMessage)triggerMessage.setContent(selectedListItemMessage.text())},SELECTOR_LIST_ITEM)}overlay.setStdModContent(A.WidgetStdMod.BODY,menu);if(!menuHeight){menuHeight=instance._getMenuHeight(trigger,menu,listItems||listContainer.all(SELECTOR_LIST_ITEM));trigger.setData("menuHeight",menuHeight);if(menuHeight!==AUTO)listContainer.setStyle("maxHeight",menuHeight)}instance._getFocusManager();return menu},_getMenuHeight:function(trigger,
menu,listItems){var instance=this;var cssClass=trigger.attr(ATTR_CLASS_NAME);var height=AUTO;if(cssClass.indexOf("lfr-menu-expanded")===-1){var params=REGEX_MAX_DISPLAY_ITEMS.exec(cssClass);var maxDisplayItems=params&&parseInt(params[1],10);if(maxDisplayItems&&listItems.size()>maxDisplayItems){instance._getLiveSearch(trigger,trigger.getData("menu"));height=0;var heights=listItems.slice(0,maxDisplayItems).get("offsetHeight");for(var i=heights.length-1;i>=0;i--)height+=heights[i]}}return height},_positionActiveMenu:function(){var instance=
this;var menu=instance._activeMenu;var trigger=instance._activeTrigger;if(menu){var cssClass=trigger.attr(ATTR_CLASS_NAME);var overlay=instance._overlay;var align=overlay.get("align");var listNode=menu.one("ul");var listNodeHeight=listNode.get("offsetHeight");var listNodeWidth=listNode.get("offsetWidth");var modalMask=false;align.points=instance._getAlignPoints(cssClass);menu.addClass("lfr-icon-menu-open");if(Util.isPhone()||Util.isTablet()){overlay.hide();modalMask=true}overlay.setAttrs({align:align,
centered:false,height:listNodeHeight,modal:modalMask,width:listNodeWidth});if(!Util.isPhone()&&!Util.isTablet()){var focusManager=overlay.bodyNode.focusManager;if(focusManager)focusManager.focus(0)}overlay.show();if(cssClass.indexOf(CSS_EXTENDED)>-1)trigger.addClass(CSS_BTN_PRIMARY);else{trigger.get(PARENT_NODE).addClass(CSS_OPEN);var portlet=trigger.ancestor(CSS_PORTLET);if(portlet)portlet.addClass(CSS_OPEN)}}},_setARIARoles:function(trigger,menu,listContainer){var links=menu.all(SELECTOR_ANCHOR);
var searchContainer=menu.one(SELECTOR_SEARCH_CONTAINER);var listNode=menu.one("ul");var ariaLinksAttr="menuitem";var ariaListNodeAttr="menu";if(searchContainer){ariaListNodeAttr="listbox";ariaListNodeAttr="option"}listNode.setAttribute(ARIA_ATTR_ROLE,ariaListNodeAttr);links.set(ARIA_ATTR_ROLE,ariaLinksAttr);trigger.attr({"aria-haspopup":true,role:"button"});listNode.setAttribute("aria-labelledby",trigger.guid())}};Menu.handleFocus=function(id){var node=A.one(id);if(node){node.delegate("mouseenter",
A.rbind(Menu._targetLink,node,"focus"),SELECTOR_LIST_ITEM);node.delegate("mouseleave",A.rbind(Menu._targetLink,node,"blur"),SELECTOR_LIST_ITEM)}};var buffer=[];Menu.register=function(id){var menuNode=document.getElementById(id);if(menuNode){if(!Menu._INSTANCE)new Menu;buffer.push(menuNode);Menu._registerTask()}};Menu._registerTask=A.debounce(function(){if(buffer.length){var nodes=A.all(buffer);nodes.on(EVENT_CLICK,A.bind("_registerMenu",Menu));buffer.length=0}},100);Menu._targetLink=function(event,
action){var anchor=event.currentTarget.one(SELECTOR_ANCHOR);if(anchor)anchor[action]()};Liferay.provide(Menu,"_getFocusManager",function(){var menuInstance=Menu._INSTANCE;var focusManager=menuInstance._focusManager;if(!focusManager){var bodyNode=menuInstance._overlay.bodyNode;bodyNode.plug(A.Plugin.NodeFocusManager,{circular:true,descendants:"li:not(.hide) a,input",focusClass:"focus",keys:{next:"down:40",previous:"down:38"}});bodyNode.on("key",function(event){var activeTrigger=menuInstance._activeTrigger;
if(activeTrigger){menuInstance._closeActiveMenu();activeTrigger.focus()}},"down:27,9");focusManager=bodyNode.focusManager;bodyNode.delegate("mouseenter",function(event){if(focusManager.get("focused"))focusManager.focus(event.currentTarget.one(SELECTOR_ANCHOR))},SELECTOR_LIST_ITEM);focusManager.after("activeDescendantChange",function(event){var descendants=focusManager.get("descendants");var selectedItem=descendants.item(event.newVal);if(selectedItem){var overlayList=bodyNode.one("ul");if(overlayList)overlayList.setAttribute("aria-activedescendant",
selectedItem.guid())}});menuInstance._focusManager=focusManager}focusManager.refresh()},["node-focusmanager"],true);Liferay.provide(Menu,"_getLiveSearch",function(trigger,menu){var instance=this;var id=menu.guid();var liveSearch=MAP_LIVE_SEARCH[id];if(!liveSearch){var listNode=menu.one("ul");var results=[];listNode.all("li").each(function(node){results.push({name:node.one(".taglib-text-icon").text().trim(),node:node})});liveSearch=new Liferay.MenuFilter({content:listNode,minQueryLength:0,queryDelay:0,
resultFilters:"phraseMatch",resultTextLocator:"name",source:results});liveSearch.get("inputNode").swallowEvent("click");MAP_LIVE_SEARCH[id]=liveSearch}},["liferay-menu-filter"],true);Liferay.provide(Menu,"_registerMenu",function(event){var menuInstance=Menu._INSTANCE;var handles=menuInstance._handles;var trigger=event.currentTarget;var activeTrigger=menuInstance._activeTrigger;if(activeTrigger)if(activeTrigger!=trigger){activeTrigger.removeClass(CSS_BTN_PRIMARY);activeTrigger.get(PARENT_NODE).removeClass(CSS_OPEN);
var portlet=activeTrigger.ancestor(CSS_PORTLET);if(portlet)portlet.removeClass(CSS_OPEN)}else{menuInstance._closeActiveMenu();return}if(!trigger.hasClass("disabled")){var menu=menuInstance._getMenu(trigger);menuInstance._activeMenu=menu;menuInstance._activeTrigger=trigger;if(!handles.length){var listContainer=trigger.getData("menuListContainer");A.Event.defineOutside("touchend");handles.push(A.getWin().on("resize",A.debounce(menuInstance._positionActiveMenu,200,menuInstance)),A.getDoc().on(EVENT_CLICK,
menuInstance._closeActiveMenu,menuInstance),listContainer.on("touchendoutside",function(event){event.preventDefault();menuInstance._closeActiveMenu()},menuInstance),Liferay.on("dropdownShow",function(event){if(event.src!=="LiferayMenu")menuInstance._closeActiveMenu()}));var DDM=A.DD&&A.DD.DDM;if(DDM)handles.push(DDM.on("ddm:start",menuInstance._closeActiveMenu,menuInstance))}menuInstance._positionActiveMenu();Liferay.fire("dropdownShow",{src:"LiferayMenu"});event.halt()}},["aui-widget-cssclass","event-outside",
"event-touch","widget","widget-modality","widget-position","widget-position-align","widget-position-constrain","widget-stack","widget-stdmod"]);Liferay.Menu=Menu},"",{requires:["array-invoke","aui-debounce","aui-node","portal-available-languages"]});
AUI.add("liferay-notice",function(A){var ADOM=A.DOM;var ANode=A.Node;var Do=A.Do;var Lang=A.Lang;var CSS_ALERTS="has-alerts";var STR_CLICK="click";var STR_EMPTY="";var STR_HIDE="hide";var STR_PX="px";var STR_SHOW="show";var Notice=function(options){var instance=this;options=options||{};instance._closeText=options.closeText;instance._node=options.node;instance._noticeType=options.type||"notice";instance._noticeClass="alert-notice";instance._onClose=options.onClose;instance._useCloseButton=true;if(options.useAnimation){instance._noticeClass+=
" popup-alert-notice";if(!Lang.isNumber(options.timeout))options.timeout=5E3}instance._animationConfig=options.animationConfig||{duration:2,easing:"ease-out",top:"50px"};instance._useAnimation=options.useAnimation;instance._timeout=options.timeout;instance._body=A.getBody();instance._useToggleButton=false;instance._hideText=STR_EMPTY;instance._showText=STR_EMPTY;if(options.toggleText!==false){instance.toggleText=A.mix(options.toggleText,{hide:null,show:null});instance._useToggleButton=true}if(instance._noticeType==
"warning")instance._noticeClass="alert-danger popup-alert-warning";if(options.noticeClass)instance._noticeClass+=" "+options.noticeClass;instance._content=options.content||STR_EMPTY;instance._createHTML();return instance._notice};Notice.prototype={close:function(){var instance=this;var notice=instance._notice;notice.hide();instance._body.removeClass(CSS_ALERTS);if(instance._onClose)instance._onClose()},setClosing:function(){var instance=this;var alerts=A.all(".popup-alert-notice, .popup-alert-warning");
if(alerts.size()){instance._useCloseButton=true;if(!instance._body)instance._body=A.getBody();instance._body.addClass(CSS_ALERTS);alerts.each(instance._addCloseButton,instance)}},_addCloseButton:function(notice){var instance=this;var closeButton;if(instance._closeText!==false)instance._closeText=instance._closeText||'Close';else{instance._useCloseButton=false;instance._closeText=STR_EMPTY}if(instance._useCloseButton){var html='\x3cbutton class\x3d"btn btn-default submit popup-alert-close"\x3e'+
instance._closeText+"\x3c/button\x3e";closeButton=notice.append(html)}else closeButton=notice.one(".close");if(closeButton)closeButton.on(STR_CLICK,instance.close,instance)},_addToggleButton:function(notice){var instance=this;if(instance._useToggleButton){instance._hideText=instance._toggleText.hide||'Hide';instance._showText=instance._toggleText.show||'Show';var toggleButton=ANode.create('\x3ca class\x3d"toggle-button" href\x3d"javascript:;"\x3e\x3cspan\x3e'+
instance._hideText+"\x3c/span\x3e\x3c/a\x3e");var toggleSpan=toggleButton.one("span");var visible=0;var hideText=instance._hideText;var showText=instance._showText;toggleButton.on(STR_CLICK,function(event){var text=showText;if(visible===0){text=hideText;visible=1}else visible=0;notice.toggle();toggleSpan.text(text)});notice.append(toggleButton)}},_afterNoticeShow:function(event){var instance=this;instance._preventHide();var notice=instance._notice;if(instance._useAnimation){var animationConfig=instance._animationConfig;
var left=animationConfig.left;var top=animationConfig.top;if(!left){var noticeRegion=ADOM.region(ANode.getDOMNode(notice));left=ADOM.winWidth()/2-noticeRegion.width/2;top=-noticeRegion.height;animationConfig.left=left+STR_PX}notice.setXY([left,top]);notice.transition(instance._animationConfig,function(){instance._hideHandle=A.later(instance._timeout,notice,STR_HIDE)})}else if(instance._timeout>-1)instance._hideHandle=A.later(instance._timeout,notice,STR_HIDE);Liferay.fire("noticeShow",{notice:instance,
useAnimation:instance._useAnimation})},_beforeNoticeHide:function(event){var instance=this;var returnVal;if(instance._useAnimation){var animationConfig=A.merge(instance._animationConfig,{top:-instance._notice.get("offsetHeight")+STR_PX});instance._notice.transition(animationConfig,function(){instance._notice.toggle(false)});returnVal=new Do.Halt(null)}Liferay.fire("noticeHide",{notice:instance,useAnimation:instance._useAnimation});return returnVal},_beforeNoticeShow:function(event){var instance=this;
instance._notice.toggle(true)},_createHTML:function(){var instance=this;var content=instance._content;var node=A.one(instance._node);var notice=node||ANode.create('\x3cdiv class\x3d"alert alert-warning" dynamic\x3d"true"\x3e\x3c/div\x3e');if(content)notice.html(content);instance._noticeClass.split(" ").forEach(function(item,index){notice.addClass(item)});instance._addCloseButton(notice);instance._addToggleButton(notice);if(!node||node&&!node.inDoc())instance._body.prepend(notice);instance._body.addClass(CSS_ALERTS);
Do.before(instance._beforeNoticeHide,notice,STR_HIDE,instance);Do.before(instance._beforeNoticeShow,notice,STR_SHOW,instance);Do.after(instance._afterNoticeShow,notice,STR_SHOW,instance);instance._notice=notice},_preventHide:function(){var instance=this;if(instance._hideHandle){instance._hideHandle.cancel();instance._hideHandle=null}}};Liferay.Notice=Notice},"",{requires:["aui-base"]});
AUI.add("liferay-poller",function(A){var AObject=A.Object;var _browserKey=Liferay.Util.randomInt();var _enabled=false;var _encryptedUserId=null;var _supportsComet=false;var _delayAccessCount=0;var _delayIndex=0;var _delays=[1,2,3,4,5,7,10];var _getEncryptedUserId=function(){return _encryptedUserId};var _frozen=false;var _locked=false;var _maxDelay=_delays.length-1;var _portletIdsMap={};var _metaData={browserKey:_browserKey,companyId:themeDisplay.getCompanyId(),portletIdsMap:_portletIdsMap,startPolling:true};
var _customDelay=null;var _portlets={};var _requestDelay=_delays[0];var _sendQueue=[];var _suspended=false;var _timerId=null;var _url=themeDisplay.getPathContext()+"/poller";var _receiveChannel=_url+"/receive";var _sendChannel=_url+"/send";var _closeCurlyBrace="}";var _openCurlyBrace="{";var _escapedCloseCurlyBrace="[$CLOSE_CURLY_BRACE$]";var _escapedOpenCurlyBrace="[$OPEN_CURLY_BRACE$]";var _cancelRequestTimer=function(){clearTimeout(_timerId);_timerId=null};var _createRequestTimer=function(){_cancelRequestTimer();
if(_enabled)if(Poller.isSupportsComet())_receive();else _timerId=setTimeout(_receive,Poller.getDelay())};var _freezeConnection=function(){_frozen=true;_cancelRequestTimer()};var _getReceiveUrl=function(){return _receiveChannel};var _getSendUrl=function(){return _sendChannel};var _processResponse=function(id,obj){var response=JSON.parse(obj.responseText);var send=false;if(Array.isArray(response)){var meta=response.shift();for(var i=0;i<response.length;i++){var chunk=response[i].payload;var chunkData=
chunk.data;var portletId=chunk.portletId;var portlet=_portlets[portletId];if(portlet){var currentPortletId=_portletIdsMap[portletId];if(chunkData&&currentPortletId)chunkData.initialRequest=portlet.initialRequest;portlet.listener.call(portlet.scope||Poller,chunkData,chunk.chunkId);if(chunkData&&chunkData.pollerHintHighConnectivity){_requestDelay=_delays[0];_delayIndex=0}if(portlet.initialRequest&&currentPortletId){send=true;portlet.initialRequest=false}}}if("startPolling"in _metaData)delete _metaData.startPolling;
if(send)_send();if(!meta.suspendPolling)_thawConnection();else _freezeConnection()}};var _receive=function(){if(!_suspended&&!_frozen){_metaData.userId=_getEncryptedUserId();_metaData.timestamp=(new Date).getTime();AObject.each(_portlets,_updatePortletIdsMap);var requestStr=JSON.stringify([_metaData]);A.io(_getReceiveUrl(),{data:{pollerRequest:requestStr},method:A.config.io.method,on:{success:_processResponse}})}};var _releaseLock=function(){_locked=false};var _sendComplete=function(){_releaseLock();
_send()};var _send=function(){if(_enabled&&!_locked&&_sendQueue.length&&!_suspended&&!_frozen){_locked=true;var data=_sendQueue.shift();_metaData.userId=_getEncryptedUserId();_metaData.timestamp=(new Date).getTime();AObject.each(_portlets,_updatePortletIdsMap);var requestStr=JSON.stringify([_metaData].concat(data));A.io(_getSendUrl(),{data:{pollerRequest:requestStr},method:A.config.io.method,on:{complete:_sendComplete}})}};var _thawConnection=function(){_frozen=false;_createRequestTimer()};var _updatePortletIdsMap=
function(item,index){_portletIdsMap[index]=item.initialRequest};var Poller={init:function(options){var instance=this;instance.setEncryptedUserId(options.encryptedUserId);instance.setSupportsComet(options.supportsComet)},addListener:function(key,listener,scope){_portlets[key]={initialRequest:true,listener:listener,scope:scope};if(!_enabled){_enabled=true;_receive()}},cancelCustomDelay:function(){_customDelay=null},getDelay:function(){if(_customDelay!==null)_requestDelay=_customDelay;else if(_delayIndex<=
_maxDelay){_requestDelay=_delays[_delayIndex];_delayAccessCount++;if(_delayAccessCount==3){_delayIndex++;_delayAccessCount=0}}return _requestDelay*1E3},getReceiveUrl:_getReceiveUrl,getSendUrl:_getSendUrl,isSupportsComet:function(){return _supportsComet},processResponse:_processResponse,removeListener:function(key){var instance=this;if(key in _portlets)delete _portlets[key];if(AObject.keys(_portlets).length===0){_enabled=false;_cancelRequestTimer()}},resume:function(){_suspended=false;_createRequestTimer()},
setCustomDelay:function(delay){if(delay===null)_customDelay=delay;else _customDelay=delay/1E3},setDelay:function(delay){_requestDelay=delay/1E3},setEncryptedUserId:function(encryptedUserId){_encryptedUserId=encryptedUserId},setSupportsComet:function(supportsComet){_supportsComet=supportsComet},setUrl:function(url){_url=url},submitRequest:function(key,data,chunkId){if(!_frozen&&key in _portlets){for(var i in data)if(data.hasOwnProperty(i)){var content=data[i];if(content.replace){content=content.replace(_openCurlyBrace,
_escapedOpenCurlyBrace);content=content.replace(_closeCurlyBrace,_escapedCloseCurlyBrace);data[i]=content}}var requestData={data:data,portletId:key};if(chunkId)requestData.chunkId=chunkId;_sendQueue.push(requestData);_send()}},suspend:function(){_cancelRequestTimer();_suspended=true},url:_url};A.getWin().on("focus",function(event){_metaData.startPolling=true;_thawConnection()});Liferay.Poller=Poller},"",{requires:["aui-base","io","json"]});
YUI.add("async-queue",function(Y,NAME){Y.AsyncQueue=function(){this._init();this.add.apply(this,arguments)};var Queue=Y.AsyncQueue,EXECUTE="execute",SHIFT="shift",PROMOTE="promote",REMOVE="remove",isObject=Y.Lang.isObject,isFunction=Y.Lang.isFunction;Queue.defaults=Y.mix({autoContinue:true,iterations:1,timeout:10,until:function(){this.iterations|=0;return this.iterations<=0}},Y.config.queueDefaults||{});Y.extend(Queue,Y.EventTarget,{_running:false,_init:function(){Y.EventTarget.call(this,{prefix:"queue",
emitFacade:true});this._q=[];this.defaults={};this._initEvents()},_initEvents:function(){this.publish({"execute":{defaultFn:this._defExecFn,emitFacade:true},"shift":{defaultFn:this._defShiftFn,emitFacade:true},"add":{defaultFn:this._defAddFn,emitFacade:true},"promote":{defaultFn:this._defPromoteFn,emitFacade:true},"remove":{defaultFn:this._defRemoveFn,emitFacade:true}})},next:function(){var callback;while(this._q.length){callback=this._q[0]=this._prepare(this._q[0]);if(callback&&callback.until()){this.fire(SHIFT,
{callback:callback});callback=null}else break}return callback||null},_defShiftFn:function(e){if(this.indexOf(e.callback)===0)this._q.shift()},_prepare:function(callback){if(isFunction(callback)&&callback._prepared)return callback;var config=Y.merge(Queue.defaults,{context:this,args:[],_prepared:true},this.defaults,isFunction(callback)?{fn:callback}:callback),wrapper=Y.bind(function(){if(!wrapper._running)wrapper.iterations--;if(isFunction(wrapper.fn))wrapper.fn.apply(wrapper.context||Y,Y.Array(wrapper.args))},
this);return Y.mix(wrapper,config)},run:function(){var callback,cont=true;if(this._executing){this._running=true;return this}for(callback=this.next();callback&&!this.isRunning();callback=this.next()){cont=callback.timeout<0?this._execute(callback):this._schedule(callback);if(!cont)break}if(!callback)this.fire("complete");return this},_execute:function(callback){this._running=callback._running=true;this._executing=callback;callback.iterations--;this.fire(EXECUTE,{callback:callback});var cont=this._running&&
callback.autoContinue;this._running=callback._running=false;this._executing=false;return cont},_schedule:function(callback){this._running=Y.later(callback.timeout,this,function(){if(this._execute(callback))this.run()});return false},isRunning:function(){return!!this._running},_defExecFn:function(e){e.callback()},add:function(){this.fire("add",{callbacks:Y.Array(arguments,0,true)});return this},_defAddFn:function(e){var _q=this._q,added=[];Y.Array.each(e.callbacks,function(c){if(isObject(c)){_q.push(c);
added.push(c)}});e.added=added},pause:function(){if(this._running&&isObject(this._running))this._running.cancel();this._running=false;return this},stop:function(){this._q=[];if(this._running&&isObject(this._running)){this._running.cancel();this._running=false}if(!this._executing)this.run();return this},indexOf:function(callback){var i=0,len=this._q.length,c;for(;i<len;++i){c=this._q[i];if(c===callback||c.id===callback)return i}return-1},getCallback:function(id){var i=this.indexOf(id);return i>-1?
this._q[i]:null},promote:function(callback){var payload={callback:callback},e;if(this.isRunning())e=this.after(SHIFT,function(){this.fire(PROMOTE,payload);e.detach()},this);else this.fire(PROMOTE,payload);return this},_defPromoteFn:function(e){var i=this.indexOf(e.callback),promoted=i>-1?this._q.splice(i,1)[0]:null;e.promoted=promoted;if(promoted)this._q.unshift(promoted)},remove:function(callback){var payload={callback:callback},e;if(this.isRunning())e=this.after(SHIFT,function(){this.fire(REMOVE,
payload);e.detach()},this);else this.fire(REMOVE,payload);return this},_defRemoveFn:function(e){var i=this.indexOf(e.callback);e.removed=i>-1?this._q.splice(i,1)[0]:null},size:function(){if(!this.isRunning())this.next();return this._q.length}})},"patched-v3.18.1",{"requires":["event-custom"]});
YUI.add("base-build",function(Y,NAME){var BaseCore=Y.BaseCore,Base=Y.Base,L=Y.Lang,INITIALIZER="initializer",DESTRUCTOR="destructor",AGGREGATES=["_PLUG","_UNPLUG"],build;function arrayAggregator(prop,r,s){if(s[prop])r[prop]=(r[prop]||[]).concat(s[prop])}function attrCfgAggregator(prop,r,s){if(s._ATTR_CFG){r._ATTR_CFG_HASH=null;arrayAggregator.apply(null,arguments)}}function attrsAggregator(prop,r,s){BaseCore.modifyAttrs(r,s.ATTRS)}Base._build=function(name,main,extensions,px,sx,cfg){var build=Base._build,
builtClass=build._ctor(main,cfg),buildCfg=build._cfg(main,cfg,extensions),_mixCust=build._mixCust,dynamic=builtClass._yuibuild.dynamic,i,l,extClass,extProto,initializer,destructor;for(i=0,l=extensions.length;i<l;i++){extClass=extensions[i];extProto=extClass.prototype;initializer=extProto[INITIALIZER];destructor=extProto[DESTRUCTOR];delete extProto[INITIALIZER];delete extProto[DESTRUCTOR];Y.mix(builtClass,extClass,true,null,1);_mixCust(builtClass,extClass,buildCfg);if(initializer)extProto[INITIALIZER]=
initializer;if(destructor)extProto[DESTRUCTOR]=destructor;builtClass._yuibuild.exts.push(extClass)}if(px)Y.mix(builtClass.prototype,px,true);if(sx){Y.mix(builtClass,build._clean(sx,buildCfg),true);_mixCust(builtClass,sx,buildCfg)}builtClass.prototype.hasImpl=build._impl;if(dynamic){builtClass.NAME=name;builtClass.prototype.constructor=builtClass;builtClass.modifyAttrs=main.modifyAttrs}return builtClass};build=Base._build;Y.mix(build,{_mixCust:function(r,s,cfg){var aggregates,custom,statics,aggr,l,
i;if(cfg){aggregates=cfg.aggregates;custom=cfg.custom;statics=cfg.statics}if(statics)Y.mix(r,s,true,statics);if(aggregates)for(i=0,l=aggregates.length;i<l;i++){aggr=aggregates[i];if(!r.hasOwnProperty(aggr)&&s.hasOwnProperty(aggr))r[aggr]=L.isArray(s[aggr])?[]:{};Y.aggregate(r,s,true,[aggr])}if(custom)for(i in custom)if(custom.hasOwnProperty(i))custom[i](i,r,s)},_tmpl:function(main){function BuiltClass(){BuiltClass.superclass.constructor.apply(this,arguments)}Y.extend(BuiltClass,main);return BuiltClass},
_impl:function(extClass){var classes=this._getClasses(),i,l,cls,exts,ll,j;for(i=0,l=classes.length;i<l;i++){cls=classes[i];if(cls._yuibuild){exts=cls._yuibuild.exts;ll=exts.length;for(j=0;j<ll;j++)if(exts[j]===extClass)return true}}return false},_ctor:function(main,cfg){var dynamic=cfg&&false===cfg.dynamic?false:true,builtClass=dynamic?build._tmpl(main):main,buildCfg=builtClass._yuibuild;if(!buildCfg)buildCfg=builtClass._yuibuild={};buildCfg.id=buildCfg.id||null;buildCfg.exts=buildCfg.exts||[];buildCfg.dynamic=
dynamic;return builtClass},_cfg:function(main,cfg,exts){var aggr=[],cust={},statics=[],buildCfg,cfgAggr=cfg&&cfg.aggregates,cfgCustBuild=cfg&&cfg.custom,cfgStatics=cfg&&cfg.statics,c=main,i,l;while(c&&c.prototype){buildCfg=c._buildCfg;if(buildCfg){if(buildCfg.aggregates)aggr=aggr.concat(buildCfg.aggregates);if(buildCfg.custom)Y.mix(cust,buildCfg.custom,true);if(buildCfg.statics)statics=statics.concat(buildCfg.statics)}c=c.superclass?c.superclass.constructor:null}if(exts)for(i=0,l=exts.length;i<l;i++){c=
exts[i];buildCfg=c._buildCfg;if(buildCfg){if(buildCfg.aggregates)aggr=aggr.concat(buildCfg.aggregates);if(buildCfg.custom)Y.mix(cust,buildCfg.custom,true);if(buildCfg.statics)statics=statics.concat(buildCfg.statics)}}if(cfgAggr)aggr=aggr.concat(cfgAggr);if(cfgCustBuild)Y.mix(cust,cfg.cfgBuild,true);if(cfgStatics)statics=statics.concat(cfgStatics);return{aggregates:aggr,custom:cust,statics:statics}},_clean:function(sx,cfg){var prop,i,l,sxclone=Y.merge(sx),aggregates=cfg.aggregates,custom=cfg.custom;
for(prop in custom)if(sxclone.hasOwnProperty(prop))delete sxclone[prop];for(i=0,l=aggregates.length;i<l;i++){prop=aggregates[i];if(sxclone.hasOwnProperty(prop))delete sxclone[prop]}return sxclone}});Base.build=function(name,main,extensions,cfg){return build(name,main,extensions,null,null,cfg)};Base.create=function(name,base,extensions,px,sx){return build(name,base,extensions,px,sx)};Base.mix=function(main,extensions){if(main._CACHED_CLASS_DATA)main._CACHED_CLASS_DATA=null;return build(null,main,extensions,
null,null,{dynamic:false})};BaseCore._buildCfg={aggregates:AGGREGATES.concat(),custom:{ATTRS:attrsAggregator,_ATTR_CFG:attrCfgAggregator,_NON_ATTRS_CFG:arrayAggregator}};Base._buildCfg={aggregates:AGGREGATES.concat(),custom:{ATTRS:attrsAggregator,_ATTR_CFG:attrCfgAggregator,_NON_ATTRS_CFG:arrayAggregator}}},"patched-v3.18.1",{"requires":["base-base"]});
YUI.add("cookie",function(Y,NAME){var L=Y.Lang,O=Y.Object,NULL=null,isString=L.isString,isObject=L.isObject,isUndefined=L.isUndefined,isFunction=L.isFunction,encode=encodeURIComponent,decode=decodeURIComponent,doc=Y.config.doc;function error(message){throw new TypeError(message);}function validateCookieName(name){if(!isString(name)||name==="")error("Cookie name must be a non-empty string.")}function validateSubcookieName(subName){if(!isString(subName)||subName==="")error("Subcookie name must be a non-empty string.")}
Y.Cookie={_createCookieString:function(name,value,encodeValue,options){options=options||{};var text=encode(name)+"\x3d"+(encodeValue?encode(value):value),expires=options.expires,path=options.path,domain=options.domain;if(isObject(options)){if(expires instanceof Date)text+="; expires\x3d"+expires.toUTCString();if(isString(path)&&path!=="")text+="; path\x3d"+path;if(isString(domain)&&domain!=="")text+="; domain\x3d"+domain;if(options.secure===true)text+="; secure"}return text},_createCookieHashString:function(hash){if(!isObject(hash))error("Cookie._createCookieHashString(): Argument must be an object.");
var text=[];O.each(hash,function(value,key){if(!isFunction(value)&&!isUndefined(value))text.push(encode(key)+"\x3d"+encode(String(value)))});return text.join("\x26")},_parseCookieHash:function(text){var hashParts=text.split("\x26"),hashPart=NULL,hash={};if(text.length)for(var i=0,len=hashParts.length;i<len;i++){hashPart=hashParts[i].split("\x3d");hash[decode(hashPart[0])]=decode(hashPart[1])}return hash},_parseCookieString:function(text,shouldDecode,options){var cookies={};if(isString(text)&&text.length>
0){var decodeValue=shouldDecode===false?function(s){return s}:decode,cookieParts=text.split(/;\s/g),cookieName=NULL,cookieValue=NULL,cookieNameValue=NULL;for(var i=0,len=cookieParts.length;i<len;i++){cookieNameValue=cookieParts[i].match(/([^=]+)=/i);if(cookieNameValue instanceof Array)try{cookieName=decode(cookieNameValue[1]);cookieValue=decodeValue(cookieParts[i].substring(cookieNameValue[1].length+1))}catch(ex){}else{cookieName=decode(cookieParts[i]);cookieValue=""}if(!isUndefined(options)&&options.reverseCookieLoading){if(isUndefined(cookies[cookieName]))cookies[cookieName]=
cookieValue}else cookies[cookieName]=cookieValue}}return cookies},_setDoc:function(newDoc){doc=newDoc},exists:function(name){validateCookieName(name);var cookies=this._parseCookieString(doc.cookie,true);return cookies.hasOwnProperty(name)},get:function(name,options){validateCookieName(name);var cookies,cookie,converter;if(isFunction(options)){converter=options;options={}}else if(isObject(options))converter=options.converter;else options={};cookies=this._parseCookieString(doc.cookie,!options.raw,options);
cookie=cookies[name];if(isUndefined(cookie))return NULL;if(!isFunction(converter))return cookie;else return converter(cookie)},getSub:function(name,subName,converter,options){var hash=this.getSubs(name,options);if(hash!==NULL){validateSubcookieName(subName);if(isUndefined(hash[subName]))return NULL;if(!isFunction(converter))return hash[subName];else return converter(hash[subName])}else return NULL},getSubs:function(name,options){validateCookieName(name);var cookies=this._parseCookieString(doc.cookie,
false,options);if(isString(cookies[name]))return this._parseCookieHash(cookies[name]);return NULL},remove:function(name,options){validateCookieName(name);options=Y.merge(options||{},{expires:new Date(0)});return this.set(name,"",options)},removeSub:function(name,subName,options){validateCookieName(name);validateSubcookieName(subName);options=options||{};var subs=this.getSubs(name);if(isObject(subs)&&subs.hasOwnProperty(subName)){delete subs[subName];if(!options.removeIfEmpty)return this.setSubs(name,
subs,options);else{for(var key in subs)if(subs.hasOwnProperty(key)&&!isFunction(subs[key])&&!isUndefined(subs[key]))return this.setSubs(name,subs,options);return this.remove(name,options)}}else return""},set:function(name,value,options){validateCookieName(name);if(isUndefined(value))error("Cookie.set(): Value cannot be undefined.");options=options||{};var text=this._createCookieString(name,value,!options.raw,options);doc.cookie=text;return text},setSub:function(name,subName,value,options){validateCookieName(name);
validateSubcookieName(subName);if(isUndefined(value))error("Cookie.setSub(): Subcookie value cannot be undefined.");var hash=this.getSubs(name);if(!isObject(hash))hash={};hash[subName]=value;return this.setSubs(name,hash,options)},setSubs:function(name,value,options){validateCookieName(name);if(!isObject(value))error("Cookie.setSubs(): Cookie value must be an object.");var text=this._createCookieString(name,this._createCookieHashString(value),false,options);doc.cookie=text;return text}}},"patched-v3.18.1",
{"requires":["yui-base"]});
YUI.add("event-touch",function(Y,NAME){var SCALE="scale",ROTATION="rotation",IDENTIFIER="identifier",win=Y.config.win,GESTURE_MAP={};Y.DOMEventFacade.prototype._touch=function(e,currentTarget,wrapper){var i,l,etCached,et,touchCache;if(e.touches){this.touches=[];touchCache={};for(i=0,l=e.touches.length;i<l;++i){et=e.touches[i];touchCache[Y.stamp(et)]=this.touches[i]=new Y.DOMEventFacade(et,currentTarget,wrapper)}}if(e.targetTouches){this.targetTouches=[];for(i=0,l=e.targetTouches.length;i<l;++i){et=
e.targetTouches[i];etCached=touchCache&&touchCache[Y.stamp(et,true)];this.targetTouches[i]=etCached||new Y.DOMEventFacade(et,currentTarget,wrapper)}}if(e.changedTouches){this.changedTouches=[];for(i=0,l=e.changedTouches.length;i<l;++i){et=e.changedTouches[i];etCached=touchCache&&touchCache[Y.stamp(et,true)];this.changedTouches[i]=etCached||new Y.DOMEventFacade(et,currentTarget,wrapper)}}if(SCALE in e)this[SCALE]=e[SCALE];if(ROTATION in e)this[ROTATION]=e[ROTATION];if(IDENTIFIER in e)this[IDENTIFIER]=
e[IDENTIFIER]};if(Y.Node.DOM_EVENTS)Y.mix(Y.Node.DOM_EVENTS,{touchstart:1,touchmove:1,touchend:1,touchcancel:1,gesturestart:1,gesturechange:1,gestureend:1,MSPointerDown:1,MSPointerUp:1,MSPointerMove:1,MSPointerCancel:1,pointerdown:1,pointerup:1,pointermove:1,pointercancel:1});if(win&&"ontouchstart"in win&&!(Y.UA.chrome&&Y.UA.chrome<6)){GESTURE_MAP.start=["touchstart","mousedown"];GESTURE_MAP.end=["touchend","mouseup"];GESTURE_MAP.move=["touchmove","mousemove"];GESTURE_MAP.cancel=["touchcancel","mousecancel"]}else if(win&&
win.PointerEvent){GESTURE_MAP.start="pointerdown";GESTURE_MAP.end="pointerup";GESTURE_MAP.move="pointermove";GESTURE_MAP.cancel="pointercancel"}else if(win&&"msPointerEnabled"in win.navigator){GESTURE_MAP.start="MSPointerDown";GESTURE_MAP.end="MSPointerUp";GESTURE_MAP.move="MSPointerMove";GESTURE_MAP.cancel="MSPointerCancel"}else{GESTURE_MAP.start="mousedown";GESTURE_MAP.end="mouseup";GESTURE_MAP.move="mousemove";GESTURE_MAP.cancel="mousecancel"}Y.Event._GESTURE_MAP=GESTURE_MAP},"patched-v3.18.1",
{"requires":["node-base"]});
YUI.add("overlay",function(Y,NAME){Y.Overlay=Y.Base.create("overlay",Y.Widget,[Y.WidgetStdMod,Y.WidgetPosition,Y.WidgetStack,Y.WidgetPositionAlign,Y.WidgetPositionConstrain])},"patched-v3.18.1",{"requires":["widget","widget-stdmod","widget-position","widget-position-align","widget-stack","widget-position-constrain"],"skinnable":true});
YUI.add("querystring-stringify",function(Y,NAME){var QueryString=Y.namespace("QueryString"),stack=[],L=Y.Lang;QueryString.escape=encodeURIComponent;QueryString.stringify=function(obj,c,name){var begin,end,i,l,n,s,sep=c&&c.sep?c.sep:"\x26",eq=c&&c.eq?c.eq:"\x3d",aK=c&&c.arrayKey?c.arrayKey:false;if(L.isNull(obj)||L.isUndefined(obj)||L.isFunction(obj))return name?QueryString.escape(name)+eq:"";if(L.isBoolean(obj)||Object.prototype.toString.call(obj)==="[object Boolean]")obj=+obj;if(L.isNumber(obj)||
L.isString(obj))return QueryString.escape(name)+eq+QueryString.escape(obj);if(L.isArray(obj)){s=[];name=aK?name+"[]":name;l=obj.length;for(i=0;i<l;i++)s.push(QueryString.stringify(obj[i],c,name));return s.join(sep)}for(i=stack.length-1;i>=0;--i)if(stack[i]===obj)throw new Error("QueryString.stringify. Cyclical reference");stack.push(obj);s=[];begin=name?name+"[":"";end=name?"]":"";for(i in obj)if(obj.hasOwnProperty(i)){n=begin+i+end;s.push(QueryString.stringify(obj[i],c,n))}stack.pop();s=s.join(sep);
if(!s&&name)return name+"\x3d";return s}},"patched-v3.18.1",{"requires":["yui-base"]});
YUI.add("widget-child",function(Y,NAME){var Lang=Y.Lang;function Child(){Y.after(this._syncUIChild,this,"syncUI");Y.after(this._bindUIChild,this,"bindUI")}Child.ATTRS={selected:{value:0,validator:Lang.isNumber},index:{readOnly:true,getter:function(){var parent=this.get("parent"),index=-1;if(parent)index=parent.indexOf(this);return index}},parent:{readOnly:true},depth:{readOnly:true,getter:function(){var parent=this.get("parent"),root=this.get("root"),depth=-1;while(parent){depth=depth+1;if(parent==
root)break;parent=parent.get("parent")}return depth}},root:{readOnly:true,getter:function(){var getParent=function(child){var parent=child.get("parent"),FnRootType=child.ROOT_TYPE,criteria=parent;if(FnRootType)criteria=parent&&Y.instanceOf(parent,FnRootType);return criteria?getParent(parent):child};return getParent(this)}}};Child.prototype={ROOT_TYPE:null,_getUIEventNode:function(){var root=this.get("root"),returnVal;if(root)returnVal=root.get("boundingBox");return returnVal},next:function(circular){var parent=
this.get("parent"),sibling;if(parent)sibling=parent.item(this.get("index")+1);if(!sibling&&circular)sibling=parent.item(0);return sibling},previous:function(circular){var parent=this.get("parent"),index=this.get("index"),sibling;if(parent&&index>0)sibling=parent.item([index-1]);if(!sibling&&circular)sibling=parent.item(parent.size()-1);return sibling},remove:function(index){var parent,removed;if(Lang.isNumber(index))removed=Y.WidgetParent.prototype.remove.apply(this,arguments);else{parent=this.get("parent");
if(parent)removed=parent.remove(this.get("index"))}return removed},isRoot:function(){return this==this.get("root")},ancestor:function(depth){var root=this.get("root"),parent;if(this.get("depth")>depth){parent=this.get("parent");while(parent!=root&&parent.get("depth")>depth)parent=parent.get("parent")}return parent},_uiSetChildSelected:function(selected){var box=this.get("boundingBox"),sClassName=this.getClassName("selected");if(selected===0)box.removeClass(sClassName);else box.addClass(sClassName)},
_afterChildSelectedChange:function(event){this._uiSetChildSelected(event.newVal)},_syncUIChild:function(){this._uiSetChildSelected(this.get("selected"))},_bindUIChild:function(){this.after("selectedChange",this._afterChildSelectedChange)}};Y.WidgetChild=Child},"patched-v3.18.1",{"requires":["base-build","widget"]});
YUI.add("widget-position-align",function(Y,NAME){var Lang=Y.Lang,ALIGN="align",ALIGN_ON="alignOn",VISIBLE="visible",BOUNDING_BOX="boundingBox",OFFSET_WIDTH="offsetWidth",OFFSET_HEIGHT="offsetHeight",REGION="region",VIEWPORT_REGION="viewportRegion";function PositionAlign(config){}PositionAlign.ATTRS={align:{value:null},centered:{setter:"_setAlignCenter",lazyAdd:false,value:false},alignOn:{value:[],validator:Y.Lang.isArray}};PositionAlign.TL="tl";PositionAlign.TR="tr";PositionAlign.BL="bl";PositionAlign.BR=
"br";PositionAlign.TC="tc";PositionAlign.RC="rc";PositionAlign.BC="bc";PositionAlign.LC="lc";PositionAlign.CC="cc";PositionAlign.prototype={initializer:function(){if(!this._posNode)Y.error("WidgetPosition needs to be added to the Widget, "+"before WidgetPositionAlign is added");Y.after(this._bindUIPosAlign,this,"bindUI");Y.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 align=this.get(ALIGN);this._uiSetVisiblePosAlign(this.get(VISIBLE));if(align)this._uiSetAlign(align.node,align.points)},align:function(node,points){if(arguments.length)this.set(ALIGN,{node:node,points:points});else this._syncUIPosAlign();return this},centered:function(node){return this.align(node,[PositionAlign.CC,PositionAlign.CC])},_getAlignToXY:function(node,point,
x,y){var xy;switch(point){case PositionAlign.TL:xy=[x,y];break;case PositionAlign.TR:xy=[x-node.get(OFFSET_WIDTH),y];break;case PositionAlign.BL:xy=[x,y-node.get(OFFSET_HEIGHT)];break;case PositionAlign.BR:xy=[x-node.get(OFFSET_WIDTH),y-node.get(OFFSET_HEIGHT)];break;case PositionAlign.TC:xy=[x-node.get(OFFSET_WIDTH)/2,y];break;case PositionAlign.BC:xy=[x-node.get(OFFSET_WIDTH)/2,y-node.get(OFFSET_HEIGHT)];break;case PositionAlign.LC:xy=[x,y-node.get(OFFSET_HEIGHT)/2];break;case PositionAlign.RC:xy=
[x-node.get(OFFSET_WIDTH),y-node.get(OFFSET_HEIGHT)/2];break;case PositionAlign.CC:xy=[x-node.get(OFFSET_WIDTH)/2,y-node.get(OFFSET_HEIGHT)/2];break;default:break}return xy},_getAlignedXY:function(node,points){if(!Lang.isArray(points)||points.length!==2){Y.error("align: Invalid Points Arguments");return}var nodeRegion=this._getRegion(node),nodePoint,xy;if(!nodeRegion)return;nodePoint=points[1];switch(nodePoint){case PositionAlign.TL:xy=[nodeRegion.left,nodeRegion.top];break;case PositionAlign.TR:xy=
[nodeRegion.right,nodeRegion.top];break;case PositionAlign.BL:xy=[nodeRegion.left,nodeRegion.bottom];break;case PositionAlign.BR:xy=[nodeRegion.right,nodeRegion.bottom];break;case PositionAlign.TC:xy=[nodeRegion.left+Math.floor(nodeRegion.width/2),nodeRegion.top];break;case PositionAlign.BC:xy=[nodeRegion.left+Math.floor(nodeRegion.width/2),nodeRegion.bottom];break;case PositionAlign.LC:xy=[nodeRegion.left,nodeRegion.top+Math.floor(nodeRegion.height/2)];break;case PositionAlign.RC:xy=[nodeRegion.right,
nodeRegion.top+Math.floor(nodeRegion.height/2)];break;case PositionAlign.CC:xy=[nodeRegion.left+Math.floor(nodeRegion.width/2),nodeRegion.top+Math.floor(nodeRegion.height/2)];break;default:break}return this._getAlignToXY(this._posNode,points[0],xy[0],xy[1])},_setAlignCenter:function(val){if(val)this.set(ALIGN,{node:val===true?null:val,points:[PositionAlign.CC,PositionAlign.CC]});return val},_uiSetAlign:function(node,points){var xy=this._getAlignedXY(node,points);if(xy)this._doAlign(xy)},_uiSetVisiblePosAlign:function(visible){if(visible)this._attachPosAlignUIHandles();
else this._detachPosAlignUIHandles()},_attachPosAlignUIHandles:function(){if(this._posAlignUIHandles)return;var bb=this.get(BOUNDING_BOX),syncAlign=Y.bind(this._syncUIPosAlign,this),handles=[];Y.Array.each(this.get(ALIGN_ON),function(o){var event=o.eventName,node=Y.one(o.node)||bb;if(event)handles.push(node.on(event,syncAlign))});this._posAlignUIHandles=handles},_detachPosAlignUIHandles:function(){var handles=this._posAlignUIHandles;if(handles){(new Y.EventHandle(handles)).detach();this._posAlignUIHandles=
null}},_doAlign:function(xy){if(xy)this.move(xy)},_getRegion:function(node){var nodeRegion;if(!node)nodeRegion=this._posNode.get(VIEWPORT_REGION);else{node=Y.Node.one(node);if(node)nodeRegion=node.get(REGION)}return nodeRegion},_afterAlignChange:function(e){var align=e.newVal;if(align)this._uiSetAlign(align.node,align.points)},_afterAlignOnChange:function(e){this._detachPosAlignUIHandles();if(this.get(VISIBLE))this._attachPosAlignUIHandles()}};Y.WidgetPositionAlign=PositionAlign},"patched-v3.18.1",
{"requires":["widget-position"]});
YUI.add("widget-position-constrain",function(Y,NAME){var CONSTRAIN="constrain",CONSTRAIN_XYCHANGE="constrain|xyChange",CONSTRAIN_CHANGE="constrainChange",PREVENT_OVERLAP="preventOverlap",ALIGN="align",EMPTY_STR="",BINDUI="bindUI",XY="xy",X_COORD="x",Y_COORD="y",Node=Y.Node,VIEWPORT_REGION="viewportRegion",REGION="region",PREVENT_OVERLAP_MAP;function PositionConstrain(config){}PositionConstrain.ATTRS={constrain:{value:null,setter:"_setConstrain"},preventOverlap:{value:false}};PREVENT_OVERLAP_MAP=PositionConstrain._PREVENT_OVERLAP=
{x:{"tltr":1,"blbr":1,"brbl":1,"trtl":1},y:{"trbr":1,"tlbl":1,"bltl":1,"brtr":1}};PositionConstrain.prototype={initializer:function(){if(!this._posNode)Y.error("WidgetPosition needs to be added to the Widget, before WidgetPositionConstrain is added");Y.after(this._bindUIPosConstrained,this,BINDUI)},getConstrainedXY:function(xy,node){node=node||this.get(CONSTRAIN);var constrainingRegion=this._getRegion(node===true?null:node),nodeRegion=this._posNode.get(REGION);return[this._constrain(xy[0],X_COORD,
nodeRegion,constrainingRegion),this._constrain(xy[1],Y_COORD,nodeRegion,constrainingRegion)]},constrain:function(xy,node){var currentXY,constrainedXY,constraint=node||this.get(CONSTRAIN);if(constraint){currentXY=xy||this.get(XY);constrainedXY=this.getConstrainedXY(currentXY,constraint);if(constrainedXY[0]!==currentXY[0]||constrainedXY[1]!==currentXY[1])this.set(XY,constrainedXY,{constrained:true})}},_setConstrain:function(val){return val===true?val:Node.one(val)},_constrain:function(val,axis,nodeRegion,
constrainingRegion){if(constrainingRegion){if(this.get(PREVENT_OVERLAP))val=this._preventOverlap(val,axis,nodeRegion,constrainingRegion);var x=axis==X_COORD,regionSize=x?constrainingRegion.width:constrainingRegion.height,nodeSize=x?nodeRegion.width:nodeRegion.height,minConstraint=x?constrainingRegion.left:constrainingRegion.top,maxConstraint=x?constrainingRegion.right-nodeSize:constrainingRegion.bottom-nodeSize;if(val<minConstraint||val>maxConstraint)if(nodeSize<regionSize)if(val<minConstraint)val=
minConstraint;else{if(val>maxConstraint)val=maxConstraint}else val=minConstraint}return val},_preventOverlap:function(val,axis,nodeRegion,constrainingRegion){var align=this.get(ALIGN),x=axis===X_COORD,nodeSize,alignRegion,nearEdge,farEdge,spaceOnNearSide,spaceOnFarSide;if(align&&align.points&&PREVENT_OVERLAP_MAP[axis][align.points.join(EMPTY_STR)]){alignRegion=this._getRegion(align.node);if(alignRegion){nodeSize=x?nodeRegion.width:nodeRegion.height;nearEdge=x?alignRegion.left:alignRegion.top;farEdge=
x?alignRegion.right:alignRegion.bottom;spaceOnNearSide=x?alignRegion.left-constrainingRegion.left:alignRegion.top-constrainingRegion.top;spaceOnFarSide=x?constrainingRegion.right-alignRegion.right:constrainingRegion.bottom-alignRegion.bottom}if(val>nearEdge){if(spaceOnFarSide<nodeSize&&spaceOnNearSide>nodeSize)val=nearEdge-nodeSize}else if(spaceOnNearSide<nodeSize&&spaceOnFarSide>nodeSize)val=farEdge}return val},_bindUIPosConstrained:function(){this.after(CONSTRAIN_CHANGE,this._afterConstrainChange);
this._enableConstraints(this.get(CONSTRAIN))},_afterConstrainChange:function(e){this._enableConstraints(e.newVal)},_enableConstraints:function(enable){if(enable){this.constrain();this._cxyHandle=this._cxyHandle||this.on(CONSTRAIN_XYCHANGE,this._constrainOnXYChange)}else if(this._cxyHandle){this._cxyHandle.detach();this._cxyHandle=null}},_constrainOnXYChange:function(e){if(!e.constrained)e.newVal=this.getConstrainedXY(e.newVal)},_getRegion:function(node){var region;if(!node)region=this._posNode.get(VIEWPORT_REGION);
else{node=Node.one(node);if(node)region=node.get(REGION)}return region}};Y.WidgetPositionConstrain=PositionConstrain},"patched-v3.18.1",{"requires":["widget-position"]});
YUI.add("widget-position",function(Y,NAME){var Lang=Y.Lang,Widget=Y.Widget,XY_COORD="xy",POSITION="position",POSITIONED="positioned",BOUNDING_BOX="boundingBox",RELATIVE="relative",RENDERUI="renderUI",BINDUI="bindUI",SYNCUI="syncUI",UI=Widget.UI_SRC,XYChange="xyChange";function Position(config){}Position.ATTRS={x:{setter:function(val){this._setX(val)},getter:function(){return this._getX()},lazyAdd:false},y:{setter:function(val){this._setY(val)},getter:function(){return this._getY()},lazyAdd:false},
xy:{value:[0,0],validator:function(val){return this._validateXY(val)}}};Position.POSITIONED_CLASS_NAME=Widget.getClassName(POSITIONED);Position.prototype={initializer:function(){this._posNode=this.get(BOUNDING_BOX);Y.after(this._renderUIPosition,this,RENDERUI);Y.after(this._syncUIPosition,this,SYNCUI);Y.after(this._bindUIPosition,this,BINDUI)},_renderUIPosition:function(){this._posNode.addClass(Position.POSITIONED_CLASS_NAME)},_syncUIPosition:function(){var posNode=this._posNode;if(posNode.getStyle(POSITION)===
RELATIVE)this.syncXY();this._uiSetXY(this.get(XY_COORD))},_bindUIPosition:function(){this.after(XYChange,this._afterXYChange)},move:function(){var args=arguments,coord=Lang.isArray(args[0])?args[0]:[args[0],args[1]];this.set(XY_COORD,coord)},syncXY:function(){this.set(XY_COORD,this._posNode.getXY(),{src:UI})},_validateXY:function(val){return Lang.isArray(val)&&Lang.isNumber(val[0])&&Lang.isNumber(val[1])},_setX:function(val){this.set(XY_COORD,[val,this.get(XY_COORD)[1]])},_setY:function(val){this.set(XY_COORD,
[this.get(XY_COORD)[0],val])},_getX:function(){return this.get(XY_COORD)[0]},_getY:function(){return this.get(XY_COORD)[1]},_afterXYChange:function(e){if(e.src!=UI)this._uiSetXY(e.newVal)},_uiSetXY:function(val){this._posNode.setXY(val)}};Y.WidgetPosition=Position},"patched-v3.18.1",{"requires":["base-build","node-screen","widget"]});
YUI.add("widget-stack",function(Y,NAME){var L=Y.Lang,UA=Y.UA,Node=Y.Node,Widget=Y.Widget,ZINDEX="zIndex",SHIM="shim",VISIBLE="visible",BOUNDING_BOX="boundingBox",RENDER_UI="renderUI",BIND_UI="bindUI",SYNC_UI="syncUI",OFFSET_WIDTH="offsetWidth",OFFSET_HEIGHT="offsetHeight",PARENT_NODE="parentNode",FIRST_CHILD="firstChild",OWNER_DOCUMENT="ownerDocument",WIDTH="width",HEIGHT="height",PX="px",SHIM_DEFERRED="shimdeferred",SHIM_RESIZE="shimresize",VisibleChange="visibleChange",WidthChange="widthChange",
HeightChange="heightChange",ShimChange="shimChange",ZIndexChange="zIndexChange",ContentUpdate="contentUpdate",STACKED="stacked";function Stack(config){}Stack.ATTRS={shim:{value:UA.ie==6},zIndex:{value:0,setter:"_setZIndex"}};Stack.HTML_PARSER={zIndex:function(srcNode){return this._parseZIndex(srcNode)}};Stack.SHIM_CLASS_NAME=Widget.getClassName(SHIM);Stack.STACKED_CLASS_NAME=Widget.getClassName(STACKED);Stack.SHIM_TEMPLATE='\x3ciframe class\x3d"'+Stack.SHIM_CLASS_NAME+'" frameborder\x3d"0" title\x3d"Widget Stacking Shim" src\x3d"javascript:false" tabindex\x3d"-1" role\x3d"presentation"\x3e\x3c/iframe\x3e';
Stack.prototype={initializer:function(){this._stackNode=this.get(BOUNDING_BOX);this._stackHandles={};Y.after(this._renderUIStack,this,RENDER_UI);Y.after(this._syncUIStack,this,SYNC_UI);Y.after(this._bindUIStack,this,BIND_UI)},_syncUIStack:function(){this._uiSetShim(this.get(SHIM));this._uiSetZIndex(this.get(ZINDEX))},_bindUIStack:function(){this.after(ShimChange,this._afterShimChange);this.after(ZIndexChange,this._afterZIndexChange)},_renderUIStack:function(){this._stackNode.addClass(Stack.STACKED_CLASS_NAME)},
_parseZIndex:function(srcNode){var zIndex;if(!srcNode.inDoc()||srcNode.getStyle("position")==="static")zIndex="auto";else zIndex=srcNode.getComputedStyle("zIndex");return zIndex==="auto"?null:zIndex},_setZIndex:function(zIndex){if(L.isString(zIndex))zIndex=parseInt(zIndex,10);if(!L.isNumber(zIndex))zIndex=0;return zIndex},_afterShimChange:function(e){this._uiSetShim(e.newVal)},_afterZIndexChange:function(e){this._uiSetZIndex(e.newVal)},_uiSetZIndex:function(zIndex){this._stackNode.setStyle(ZINDEX,
zIndex)},_uiSetShim:function(enable){if(enable){if(this.get(VISIBLE))this._renderShim();else this._renderShimDeferred();if(UA.ie==6)this._addShimResizeHandlers()}else this._destroyShim()},_renderShimDeferred:function(){this._stackHandles[SHIM_DEFERRED]=this._stackHandles[SHIM_DEFERRED]||[];var handles=this._stackHandles[SHIM_DEFERRED],createBeforeVisible=function(e){if(e.newVal)this._renderShim()};handles.push(this.on(VisibleChange,createBeforeVisible))},_addShimResizeHandlers:function(){this._stackHandles[SHIM_RESIZE]=
this._stackHandles[SHIM_RESIZE]||[];var sizeShim=this.sizeShim,handles=this._stackHandles[SHIM_RESIZE];handles.push(this.after(VisibleChange,sizeShim));handles.push(this.after(WidthChange,sizeShim));handles.push(this.after(HeightChange,sizeShim));handles.push(this.after(ContentUpdate,sizeShim))},_detachStackHandles:function(handleKey){var handles=this._stackHandles[handleKey],handle;if(handles&&handles.length>0)while(handle=handles.pop())handle.detach()},_renderShim:function(){var shimEl=this._shimNode,
stackEl=this._stackNode;if(!shimEl){shimEl=this._shimNode=this._getShimTemplate();stackEl.insertBefore(shimEl,stackEl.get(FIRST_CHILD));this._detachStackHandles(SHIM_DEFERRED);this.sizeShim()}},_destroyShim:function(){if(this._shimNode){this._shimNode.get(PARENT_NODE).removeChild(this._shimNode);this._shimNode=null;this._detachStackHandles(SHIM_DEFERRED);this._detachStackHandles(SHIM_RESIZE)}},sizeShim:function(){var shim=this._shimNode,node=this._stackNode;if(shim&&UA.ie===6&&this.get(VISIBLE)){shim.setStyle(WIDTH,
node.get(OFFSET_WIDTH)+PX);shim.setStyle(HEIGHT,node.get(OFFSET_HEIGHT)+PX)}},_getShimTemplate:function(){return Node.create(Stack.SHIM_TEMPLATE,this._stackNode.get(OWNER_DOCUMENT))}};Y.WidgetStack=Stack},"patched-v3.18.1",{"requires":["base-build","widget"],"skinnable":true});
YUI.add("widget-stdmod",function(Y,NAME){var L=Y.Lang,Node=Y.Node,UA=Y.UA,Widget=Y.Widget,EMPTY="",HD="hd",BD="bd",FT="ft",HEADER="header",BODY="body",FOOTER="footer",FILL_HEIGHT="fillHeight",STDMOD="stdmod",NODE_SUFFIX="Node",CONTENT_SUFFIX="Content",FIRST_CHILD="firstChild",CHILD_NODES="childNodes",OWNER_DOCUMENT="ownerDocument",CONTENT_BOX="contentBox",HEIGHT="height",OFFSET_HEIGHT="offsetHeight",AUTO="auto",HeaderChange="headerContentChange",BodyChange="bodyContentChange",FooterChange="footerContentChange",
FillHeightChange="fillHeightChange",HeightChange="heightChange",ContentUpdate="contentUpdate",RENDERUI="renderUI",BINDUI="bindUI",SYNCUI="syncUI",APPLY_PARSED_CONFIG="_applyParsedConfig",UI=Y.Widget.UI_SRC;function StdMod(config){}StdMod.HEADER=HEADER;StdMod.BODY=BODY;StdMod.FOOTER=FOOTER;StdMod.AFTER="after";StdMod.BEFORE="before";StdMod.REPLACE="replace";var STD_HEADER=StdMod.HEADER,STD_BODY=StdMod.BODY,STD_FOOTER=StdMod.FOOTER,HEADER_CONTENT=STD_HEADER+CONTENT_SUFFIX,FOOTER_CONTENT=STD_FOOTER+
CONTENT_SUFFIX,BODY_CONTENT=STD_BODY+CONTENT_SUFFIX;StdMod.ATTRS={headerContent:{value:null},footerContent:{value:null},bodyContent:{value:null},fillHeight:{value:StdMod.BODY,validator:function(val){return this._validateFillHeight(val)}}};StdMod.HTML_PARSER={headerContent:function(contentBox){return this._parseStdModHTML(STD_HEADER)},bodyContent:function(contentBox){return this._parseStdModHTML(STD_BODY)},footerContent:function(contentBox){return this._parseStdModHTML(STD_FOOTER)}};StdMod.SECTION_CLASS_NAMES=
{header:Widget.getClassName(HD),body:Widget.getClassName(BD),footer:Widget.getClassName(FT)};StdMod.TEMPLATES={header:'\x3cdiv class\x3d"'+StdMod.SECTION_CLASS_NAMES[STD_HEADER]+'"\x3e\x3c/div\x3e',body:'\x3cdiv class\x3d"'+StdMod.SECTION_CLASS_NAMES[STD_BODY]+'"\x3e\x3c/div\x3e',footer:'\x3cdiv class\x3d"'+StdMod.SECTION_CLASS_NAMES[STD_FOOTER]+'"\x3e\x3c/div\x3e'};StdMod.prototype={initializer:function(){this._stdModNode=this.get(CONTENT_BOX);Y.before(this._renderUIStdMod,this,RENDERUI);Y.before(this._bindUIStdMod,
this,BINDUI);Y.before(this._syncUIStdMod,this,SYNCUI)},_syncUIStdMod:function(){var stdModParsed=this._stdModParsed;if(!stdModParsed||!stdModParsed[HEADER_CONTENT])this._uiSetStdMod(STD_HEADER,this.get(HEADER_CONTENT));if(!stdModParsed||!stdModParsed[BODY_CONTENT])this._uiSetStdMod(STD_BODY,this.get(BODY_CONTENT));if(!stdModParsed||!stdModParsed[FOOTER_CONTENT])this._uiSetStdMod(STD_FOOTER,this.get(FOOTER_CONTENT));this._uiSetFillHeight(this.get(FILL_HEIGHT))},_renderUIStdMod:function(){this._stdModNode.addClass(Widget.getClassName(STDMOD));
this._renderStdModSections();this.after(HeaderChange,this._afterHeaderChange);this.after(BodyChange,this._afterBodyChange);this.after(FooterChange,this._afterFooterChange)},_renderStdModSections:function(){if(L.isValue(this.get(HEADER_CONTENT)))this._renderStdMod(STD_HEADER);if(L.isValue(this.get(BODY_CONTENT)))this._renderStdMod(STD_BODY);if(L.isValue(this.get(FOOTER_CONTENT)))this._renderStdMod(STD_FOOTER)},_bindUIStdMod:function(){this.after(FillHeightChange,this._afterFillHeightChange);this.after(HeightChange,
this._fillHeight);this.after(ContentUpdate,this._fillHeight)},_afterHeaderChange:function(e){if(e.src!==UI)this._uiSetStdMod(STD_HEADER,e.newVal,e.stdModPosition)},_afterBodyChange:function(e){if(e.src!==UI)this._uiSetStdMod(STD_BODY,e.newVal,e.stdModPosition)},_afterFooterChange:function(e){if(e.src!==UI)this._uiSetStdMod(STD_FOOTER,e.newVal,e.stdModPosition)},_afterFillHeightChange:function(e){this._uiSetFillHeight(e.newVal)},_validateFillHeight:function(val){return!val||val==StdMod.BODY||val==
StdMod.HEADER||val==StdMod.FOOTER},_uiSetFillHeight:function(fillSection){var fillNode=this.getStdModNode(fillSection);var currNode=this._currFillNode;if(currNode&&fillNode!==currNode)currNode.setStyle(HEIGHT,EMPTY);if(fillNode)this._currFillNode=fillNode;this._fillHeight()},_fillHeight:function(){if(this.get(FILL_HEIGHT)){var height=this.get(HEIGHT);if(height!=EMPTY&&height!=AUTO)this.fillHeight(this.getStdModNode(this.get(FILL_HEIGHT)))}},_uiSetStdMod:function(section,content,where){if(L.isValue(content)){var node=
this.getStdModNode(section,true);this._addStdModContent(node,content,where);this.set(section+CONTENT_SUFFIX,this._getStdModContent(section),{src:UI})}else this._eraseStdMod(section);this.fire(ContentUpdate)},_renderStdMod:function(section){var contentBox=this.get(CONTENT_BOX),sectionNode=this._findStdModSection(section);if(!sectionNode)sectionNode=this._getStdModTemplate(section);this._insertStdModSection(contentBox,section,sectionNode);this[section+NODE_SUFFIX]=sectionNode;return this[section+NODE_SUFFIX]},
_eraseStdMod:function(section){var sectionNode=this.getStdModNode(section);if(sectionNode){sectionNode.remove(true);delete this[section+NODE_SUFFIX]}},_insertStdModSection:function(contentBox,section,sectionNode){var fc=contentBox.get(FIRST_CHILD);if(section===STD_FOOTER||!fc)contentBox.appendChild(sectionNode);else if(section===STD_HEADER)contentBox.insertBefore(sectionNode,fc);else{var footer=this[STD_FOOTER+NODE_SUFFIX];if(footer)contentBox.insertBefore(sectionNode,footer);else contentBox.appendChild(sectionNode)}},
_getStdModTemplate:function(section){return Node.create(StdMod.TEMPLATES[section],this._stdModNode.get(OWNER_DOCUMENT))},_addStdModContent:function(node,children,where){switch(where){case StdMod.BEFORE:where=0;break;case StdMod.AFTER:where=undefined;break;default:where=StdMod.REPLACE}node.insert(children,where)},_getPreciseHeight:function(node){var height=node?node.get(OFFSET_HEIGHT):0,getBCR="getBoundingClientRect";if(node&&node.hasMethod(getBCR)){var preciseRegion=node.invoke(getBCR);if(preciseRegion)height=
preciseRegion.bottom-preciseRegion.top}return height},_findStdModSection:function(section){return this.get(CONTENT_BOX).one("\x3e ."+StdMod.SECTION_CLASS_NAMES[section])},_parseStdModHTML:function(section){var node=this._findStdModSection(section);if(node){if(!this._stdModParsed){this._stdModParsed={};Y.before(this._applyStdModParsedConfig,this,APPLY_PARSED_CONFIG)}this._stdModParsed[section+CONTENT_SUFFIX]=1;return node.get("innerHTML")}return null},_applyStdModParsedConfig:function(node,cfg,parsedCfg){var parsed=
this._stdModParsed;if(parsed){parsed[HEADER_CONTENT]=!(HEADER_CONTENT in cfg)&&HEADER_CONTENT in parsed;parsed[BODY_CONTENT]=!(BODY_CONTENT in cfg)&&BODY_CONTENT in parsed;parsed[FOOTER_CONTENT]=!(FOOTER_CONTENT in cfg)&&FOOTER_CONTENT in parsed}},_getStdModContent:function(section){return this[section+NODE_SUFFIX]?this[section+NODE_SUFFIX].get(CHILD_NODES):null},setStdModContent:function(section,content,where){this.set(section+CONTENT_SUFFIX,content,{stdModPosition:where})},getStdModNode:function(section,
forceCreate){var node=this[section+NODE_SUFFIX]||null;if(!node&&forceCreate)node=this._renderStdMod(section);return node},fillHeight:function(node){if(node){var contentBox=this.get(CONTENT_BOX),stdModNodes=[this.headerNode,this.bodyNode,this.footerNode],stdModNode,cbContentHeight,filled=0,remaining=0,validNode=false;for(var i=0,l=stdModNodes.length;i<l;i++){stdModNode=stdModNodes[i];if(stdModNode)if(stdModNode!==node)filled+=this._getPreciseHeight(stdModNode);else validNode=true}if(validNode){if(UA.ie||
UA.opera)node.set(OFFSET_HEIGHT,0);cbContentHeight=contentBox.get(OFFSET_HEIGHT)-parseInt(contentBox.getComputedStyle("paddingTop"),10)-parseInt(contentBox.getComputedStyle("paddingBottom"),10)-parseInt(contentBox.getComputedStyle("borderBottomWidth"),10)-parseInt(contentBox.getComputedStyle("borderTopWidth"),10);if(L.isNumber(cbContentHeight)){remaining=cbContentHeight-filled;if(remaining>=0)node.set(OFFSET_HEIGHT,remaining)}}}}};Y.WidgetStdMod=StdMod},"patched-v3.18.1",{"requires":["base-build",
"widget"]});
YUI.add("aui-aria",function(A,NAME){var Lang=A.Lang,isBoolean=Lang.isBoolean,isFunction=Lang.isFunction,isObject=Lang.isObject,isString=Lang.isString,STR_REGEX=/([^a-z])/ig,_toAriaRole=A.cached(function(str){return str.replace(STR_REGEX,function(){return""}).toLowerCase()});var Aria=A.Component.create({NAME:"aria",NS:"aria",ATTRS:{attributes:{value:{},validator:isObject},attributeValueFormat:{value:function(val){return val},validator:isFunction},attributeNode:{writeOnce:true,setter:A.one,valueFn:function(){return this.get("host").get("boundingBox")}},
roleName:{valueFn:function(){var instance=this;var host=instance.get("host");var roleName=_toAriaRole(host.constructor.NAME||"");return instance.isValidRole(roleName)?roleName:""},validator:isString},roleNode:{writeOnce:true,setter:A.one,valueFn:function(){return this.get("host").get("boundingBox")}},validateW3C:{value:true,validator:isBoolean}},EXTENDS:A.Plugin.Base,prototype:{initializer:function(){var instance=this;instance.publish("aria:processAttribute",{defaultFn:instance._defProcessFn,queuable:false,
emitFacade:true,bubbles:true,prefix:"aria"});instance._uiSetRoleName(instance.get("roleName"));instance.after("roleNameChange",instance._afterRoleNameChange);instance._bindHostAttributes()},isValidAttribute:function(attrName){var instance=this;return instance.get("validateW3C")?A.Plugin.Aria.W3C_ATTRIBUTES[attrName]:true},isValidRole:function(roleName){var instance=this;return instance.get("validateW3C")?A.Plugin.Aria.W3C_ROLES[roleName]:true},setAttribute:function(attrName,attrValue,node){var instance=
this;if(instance.isValidAttribute(attrName)){(node||instance.get("attributeNode")).set("aria-"+attrName,attrValue);return true}return false},setAttributes:function(attributes){var instance=this;A.Array.each(attributes,function(attribute){instance.setAttribute(attribute.name,attribute.value,attribute.node)})},setRole:function(roleName,node){var instance=this;if(instance.isValidRole(roleName)){(node||instance.get("roleNode")).set("role",roleName);return true}return false},setRoles:function(roles){var instance=
this;A.Array.each(roles,function(role){instance.setRole(role.name,role.node)})},_afterHostAttributeChange:function(event){var instance=this;instance._handleProcessAttribute(event)},_afterRoleNameChange:function(event){var instance=this;instance._uiSetRoleName(event.newVal)},_bindHostAttributes:function(){var instance=this;var attributes=instance.get("attributes");A.each(attributes,function(aria,attrName){var ariaAttr=instance._getAriaAttribute(aria,attrName);instance._handleProcessAttribute({aria:ariaAttr});
instance.afterHostEvent(attrName+"Change",function(event){event.aria=ariaAttr;instance._afterHostAttributeChange(event)})})},_defProcessFn:function(event){var instance=this;instance._setAttribute(event.aria)},_getAriaAttribute:function(aria,attrName){var instance=this;var attributeValueFormat=instance.get("attributeValueFormat");var prepared={};if(isString(aria))prepared=A.merge(prepared,{ariaName:aria,attrName:attrName,format:attributeValueFormat,node:null});else if(isObject(aria))prepared=A.mix(aria,
{ariaName:"",attrName:attrName,format:attributeValueFormat,node:null});return prepared},_handleProcessAttribute:function(event){var instance=this;instance.fire("aria:processAttribute",{aria:event.aria})},_setAttribute:function(ariaAttr){var instance=this;var host=instance.get("host");var attrValue=host.get(ariaAttr.attrName);var attrNode=ariaAttr.node;if(isFunction(attrNode))attrNode=attrNode.apply(instance,[ariaAttr]);instance.setAttribute(ariaAttr.ariaName,ariaAttr.format.apply(instance,[attrValue,
ariaAttr]),attrNode)},_uiSetRoleName:function(val){var instance=this;instance.setRole(val)}}});A.Plugin.Aria=Aria;A.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};A.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}},"3.1.0-deprecated.79",
{"requires":["plugin","aui-component"]});
YUI.add("aui-io-plugin-deprecated",function(A,NAME){var L=A.Lang,isBoolean=L.isBoolean,isString=L.isString,isNode=function(v){return v instanceof A.Node},StdMod=A.WidgetStdMod,TYPE_NODE="Node",TYPE_WIDGET="Widget",EMPTY="",FAILURE="failure",FAILURE_MESSAGE="failureMessage",HOST="host",ICON="icon",IO="io",IO_PLUGIN="IOPlugin",LOADING="loading",LOADING_MASK="loadingMask",NODE="node",OUTER="outer",PARSE_CONTENT="parseContent",QUEUE="queue",RENDERED="rendered",SECTION="section",SHOW_LOADING="showLoading",
SUCCESS="success",TYPE="type",WHERE="where",getCN=A.getClassName,CSS_ICON_LOADING=getCN(ICON,LOADING);var IOPlugin=A.Component.create({NAME:IO_PLUGIN,NS:IO,ATTRS:{node:{value:null,getter:function(value){var instance=this;if(!value){var host=instance.get(HOST);var type=instance.get(TYPE);if(type==TYPE_NODE)value=host;else if(type==TYPE_WIDGET){var section=instance.get(SECTION);if(!host.getStdModNode(section))host.setStdModContent(section,EMPTY);value=host.getStdModNode(section)}}return A.one(value)},
validator:isNode},failureMessage:{value:"Failed to retrieve content",validator:isString},loadingMask:{value:{}},parseContent:{value:true,validator:isBoolean},showLoading:{value:true,validator:isBoolean},section:{value:StdMod.BODY,validator:function(val){return!val||val==StdMod.BODY||val==StdMod.HEADER||val==StdMod.FOOTER}},type:{readOnly:true,valueFn:function(){var instance=this;var type=TYPE_NODE;if(instance.get(HOST)instanceof A.Widget)type=TYPE_WIDGET;return type},validator:isString},where:{value:StdMod.REPLACE,
validator:function(val){return!val||val==StdMod.AFTER||val==StdMod.BEFORE||val==StdMod.REPLACE||val==OUTER}}},EXTENDS:A.IORequest,prototype:{bindUI:function(){var instance=this;instance.on("activeChange",instance._onActiveChange);instance.on(SUCCESS,instance._successHandler);instance.on(FAILURE,instance._failureHandler);if(instance.get(TYPE)==TYPE_WIDGET&&instance.get(SHOW_LOADING)){var host=instance.get(HOST);host.after("heightChange",instance._syncLoadingMaskUI,instance);host.after("widthChange",
instance._syncLoadingMaskUI,instance)}},_autoStart:function(){var instance=this;instance.bindUI();IOPlugin.superclass._autoStart.apply(this,arguments)},_bindParseContent:function(){var instance=this;var node=instance.get(NODE);if(node&&!node.ParseContent&&instance.get(PARSE_CONTENT))node.plug(A.Plugin.ParseContent)},hideLoading:function(){var instance=this;var node=instance.get(NODE);if(node.loadingmask)node.loadingmask.hide()},setContent:function(content){var instance=this;instance._bindParseContent();
instance._getContentSetterByType().apply(instance,[content]);if(instance.overlayMaskBoundingBox)instance.overlayMaskBoundingBox.remove()},showLoading:function(){var instance=this;var node=instance.get(NODE);if(node.loadingmask){if(instance.overlayMaskBoundingBox)node.append(instance.overlayMaskBoundingBox)}else{node.plug(A.LoadingMask,instance.get(LOADING_MASK));instance.overlayMaskBoundingBox=node.loadingmask.overlayMask.get("boundingBox")}node.loadingmask.show()},start:function(){var instance=this;
var host=instance.get(HOST);if(!host.get(RENDERED))host.after("render",function(){instance._setLoadingUI(true)});IOPlugin.superclass.start.apply(instance,arguments)},_getContentSetterByType:function(){var instance=this;var setters={Node:function(content){var instance=this;var node=instance.get(NODE);if(content instanceof A.NodeList)content=content.toFrag();if(content instanceof A.Node)content=content._node;var where=instance.get(WHERE);if(where==OUTER)node.replace(content);else node.insert(content,
where)},Widget:function(content){var instance=this;var host=instance.get(HOST);host.setStdModContent.apply(host,[instance.get(SECTION),content,instance.get(WHERE)])}};return setters[this.get(TYPE)]},_setLoadingUI:function(show){var instance=this;if(instance.get(SHOW_LOADING))if(show)instance.showLoading();else instance.hideLoading()},_syncLoadingMaskUI:function(){var instance=this;instance.get(NODE).loadingmask.refreshMask()},_successHandler:function(event,id,xhr){var instance=this;instance.setContent(this.get("responseData"))},
_failureHandler:function(event,id,xhr){var instance=this;instance.setContent(instance.get(FAILURE_MESSAGE))},_onActiveChange:function(event){var instance=this;var host=instance.get(HOST);var widget=instance.get(TYPE)==TYPE_WIDGET;if(!widget||widget&&host&&host.get(RENDERED))instance._setLoadingUI(event.newVal)}}});A.Node.prototype.load=function(uri,config,callback){var instance=this;var index=uri.indexOf(" ");var selector;if(index>0){selector=uri.slice(index,uri.length);uri=uri.slice(0,index)}if(L.isFunction(config)){callback=
config;config=null}config=config||{};if(callback){config.after=config.after||{};config.after.success=callback}var where=config.where;config.uri=uri;config.where=where;if(selector){config.selector=selector;config.where=where||"replace"}instance.plug(A.Plugin.IO,config);return instance};A.namespace("Plugin").IO=IOPlugin},"3.1.0-deprecated.79",{"requires":["aui-overlay-base-deprecated","aui-parse-content","aui-io-request","aui-loading-mask-deprecated"]});
YUI.add("aui-io-request",function(A,NAME){var L=A.Lang,isBoolean=L.isBoolean,isFunction=L.isFunction,isString=L.isString,defaults=A.namespace("config.io"),getDefault=function(attr){return function(){return defaults[attr]}},ACCEPTS={all:"*/*",html:"text/html",json:"application/json, text/javascript",text:"text/plain",xml:"application/xml, text/xml"};var IORequest=A.Component.create({NAME:"IORequest",ATTRS:{autoLoad:{value:true,validator:isBoolean},cache:{value:true,validator:isBoolean},dataType:{setter:function(v){return(v||
"").toLowerCase()},value:null,validator:isString},responseData:{setter:function(v){return this._setResponseData(v)},value:null},uri:{setter:function(v){return this._parseURL(v)},value:null,validator:isString},active:{value:false,validator:isBoolean},cfg:{getter:function(){var instance=this;return{arguments:instance.get("arguments"),context:instance.get("context"),data:instance.getFormattedData(),form:instance.get("form"),headers:instance.get("headers"),method:instance.get("method"),on:{complete:A.bind(instance.fire,
instance,"complete"),end:A.bind(instance._end,instance),failure:A.bind(instance.fire,instance,"failure"),start:A.bind(instance.fire,instance,"start"),success:A.bind(instance._success,instance)},sync:instance.get("sync"),timeout:instance.get("timeout"),xdr:instance.get("xdr")}},readOnly:true},transaction:{value:null},arguments:{valueFn:getDefault("arguments")},context:{valueFn:getDefault("context")},data:{valueFn:getDefault("data")},form:{valueFn:getDefault("form")},headers:{getter:function(value){var header=
[];var instance=this;var dataType=instance.get("dataType");if(dataType)header.push(ACCEPTS[dataType]);header.push(ACCEPTS.all);return A.merge(value,{Accept:header.join(", ")})},valueFn:getDefault("headers")},method:{setter:function(val){return val.toLowerCase()},valueFn:getDefault("method")},selector:{value:null},sync:{valueFn:getDefault("sync")},timeout:{valueFn:getDefault("timeout")},xdr:{valueFn:getDefault("xdr")}},EXTENDS:A.Plugin.Base,prototype:{init:function(){var instance=this;IORequest.superclass.init.apply(this,
arguments);instance._autoStart()},destructor:function(){var instance=this;instance.stop();instance.set("transaction",null)},getFormattedData:function(){var instance=this;var value=instance.get("data");var dataFormatter=defaults.dataFormatter;if(isFunction(dataFormatter))value=dataFormatter.call(instance,value);return value},start:function(){var instance=this;instance.destructor();instance.set("active",true);var ioObj=instance._yuiIOObj;if(!ioObj){ioObj=new A.IO;instance._yuiIOObj=ioObj}var transaction=
ioObj.send(instance.get("uri"),instance.get("cfg"));instance.set("transaction",transaction)},stop:function(){var instance=this;var transaction=instance.get("transaction");if(transaction)transaction.abort()},_autoStart:function(){var instance=this;if(instance.get("autoLoad"))instance.start()},_parseURL:function(url){var instance=this;var cache=instance.get("cache");var method=instance.get("method");if(cache===false&&method==="get"){var ts=+new Date;var ret=url.replace(/(\?|&)_=.*?(&|$)/,"$1_\x3d"+
ts+"$2");url=ret+(ret===url?(url.match(/\?/)?"\x26":"?")+"_\x3d"+ts:"")}var uriFormatter=defaults.uriFormatter;if(isFunction(uriFormatter))url=uriFormatter.apply(instance,[url]);return url},_end:function(id,args){var instance=this;instance.set("active",false);instance.set("transaction",null);instance.fire("end",id,args)},_success:function(id,obj,args){var instance=this;instance.set("responseData",obj);instance.fire("success",id,obj,args)},_setResponseData:function(xhr){var data=null;var instance=
this;if(xhr){var dataType=instance.get("dataType");var contentType=xhr.getResponseHeader("content-type")||"";if(dataType==="xml"||!dataType&&contentType.indexOf("xml")>=0){data=xhr.responseXML;if(data.documentElement.tagName==="parsererror")throw"Parser error: IO dataType is not correctly parsing";}else data=xhr.responseText;if(data==="")data=null;if(dataType==="json")try{data=A.JSON.parse(data)}catch(e){}else{var selector=instance.get("selector");if(data&&selector){var tempRoot;if(data.documentElement)tempRoot=
A.one(data);else tempRoot=A.Node.create(data);data=tempRoot.all(selector)}}}return data}}});A.IORequest=IORequest;A.io.request=function(uri,config){return new A.IORequest(A.merge(config,{uri:uri}))}},"3.1.0-deprecated.79",{"requires":["io-base","json","plugin","querystring-stringify","aui-component"]});
YUI.add("aui-loading-mask-deprecated",function(A,NAME){var Lang=A.Lang,BOUNDING_BOX="boundingBox",CONTENT_BOX="contentBox",HIDE="hide",HOST="host",MESSAGE_EL="messageEl",NAME="loadingmask",POSITION="position",SHOW="show",STATIC="static",STRINGS="strings",TARGET="target",TOGGLE="toggle",getClassName=A.getClassName,CSS_LOADINGMASK=getClassName(NAME),CSS_MASKED=getClassName(NAME,"masked"),CSS_MASKED_RELATIVE=getClassName(NAME,"masked","relative"),CSS_MESSAGE_LOADING=getClassName(NAME,"message"),CSS_MESSAGE_LOADING_CONTENT=
getClassName(NAME,"message","content"),TPL_MESSAGE_LOADING='\x3cdiv class\x3d"'+CSS_MESSAGE_LOADING+'"\x3e\x3cdiv class\x3d"'+CSS_MESSAGE_LOADING_CONTENT+'"\x3e{0}\x3c/div\x3e\x3c/div\x3e';var LoadingMask=A.Component.create({NAME:NAME,NS:NAME,ATTRS:{messageEl:{valueFn:function(val){var instance=this;var strings=instance.get(STRINGS);return A.Node.create(Lang.sub(TPL_MESSAGE_LOADING,[strings.loading]))}},strings:{value:{loading:"Loading\x26hellip;"}},target:{setter:function(){var instance=this;var target=
instance.get(HOST);if(target instanceof A.Widget)target=target.get(CONTENT_BOX);return target},value:null}},EXTENDS:A.Plugin.Base,prototype:{initializer:function(config){var instance=this;instance.IGNORED_ATTRS=A.merge({host:true},LoadingMask.ATTRS);instance.renderUI();instance.bindUI();instance._createDynamicAttrs(config)},renderUI:function(){var instance=this;var strings=instance.get(STRINGS);instance._renderOverlayMask();instance.overlayMask.get(BOUNDING_BOX).append(instance.get(MESSAGE_EL))},
bindUI:function(){var instance=this;instance._bindOverlayMaskUI()},destructor:function(){var instance=this;instance.overlayMask.destroy();instance._visibleChangeHandle.detach()},_bindOverlayMaskUI:function(){var instance=this;instance._visibleChangeHandle=instance.overlayMask.after("visibleChange",instance._afterVisibleChange,instance)},centerMessage:function(){var instance=this;instance.get(MESSAGE_EL).center(instance.overlayMask.get(BOUNDING_BOX))},refreshMask:function(){var instance=this;instance.overlayMask.refreshMask();
instance.centerMessage()},_afterVisibleChange:function(event){var instance=this;var target=instance.get(TARGET);var isStaticPositioned=target.getStyle(POSITION)==STATIC;target.toggleClass(CSS_MASKED,event.newVal);target.toggleClass(CSS_MASKED_RELATIVE,event.newVal&&isStaticPositioned);if(event.newVal)instance.refreshMask()},_renderOverlayMask:function(){var instance=this;var target=instance.get(TARGET);instance.overlayMask=(new A.OverlayMask({target:target,cssClass:CSS_LOADINGMASK})).render(target)},
_createDynamicAttrs:function(config){var instance=this;A.each(config,function(value,key){var ignoredAttr=instance.IGNORED_ATTRS[key];if(!ignoredAttr)instance.addAttr(key,{setter:function(val){this.overlayMask.set(key,val);return val},value:value})})}}});A.each([HIDE,SHOW,TOGGLE],function(method){LoadingMask.prototype[method]=function(){this.overlayMask[method]()}});A.LoadingMask=LoadingMask},"3.1.0-deprecated.79",{"requires":["plugin","aui-overlay-mask-deprecated"],"skinnable":true});
YUI.add("aui-overlay-base-deprecated",function(A,NAME){A.OverlayBase=A.Component.create({NAME:"overlay",ATTRS:{hideClass:{value:false}},AUGMENTS:[A.WidgetPosition,A.WidgetStack,A.WidgetPositionAlign,A.WidgetPositionConstrain,A.WidgetStdMod]})},"3.1.0-deprecated.79",{"requires":["widget-position","widget-stack","widget-position-align","widget-position-constrain","widget-stdmod","aui-component"]});
YUI.add("aui-overlay-context-deprecated",function(A,NAME){var L=A.Lang,isString=L.isString,isNumber=L.isNumber,isObject=L.isObject,isBoolean=L.isBoolean,isNodeList=function(v){return v instanceof A.NodeList},ALIGN="align",BL="bl",BOUNDING_BOX="boundingBox",CANCELLABLE_HIDE="cancellableHide",OVERLAY_CONTEXT="overlaycontext",CURRENT_NODE="currentNode",FOCUSED="focused",HIDE="hide",HIDE_DELAY="hideDelay",HIDE_ON="hideOn",HIDE_ON_DOCUMENT_CLICK="hideOnDocumentClick",MOUSEDOWN="mousedown",SHOW="show",
SHOW_DELAY="showDelay",SHOW_ON="showOn",TL="tl",TRIGGER="trigger",USE_ARIA="useARIA",VISIBLE="visible";var OverlayContext=A.Component.create({NAME:OVERLAY_CONTEXT,ATTRS:{align:{value:{node:null,points:[TL,BL]}},cancellableHide:{value:true,validator:isBoolean},currentNode:{valueFn:function(){return this.get(TRIGGER).item(0)}},delay:{value:null,validator:isObject},hideOn:{lazyAdd:false,value:"mouseout",setter:function(v){return this._setHideOn(v)}},hideOnDocumentClick:{lazyAdd:false,setter:function(v){return this._setHideOnDocumentClick(v)},
value:true,validator:isBoolean},hideDelay:{lazyAdd:false,setter:"_setHideDelay",value:0,validator:isNumber},showOn:{lazyAdd:false,value:"mouseover",setter:function(v){return this._setShowOn(v)}},showDelay:{lazyAdd:false,setter:"_setShowDelay",value:0,validator:isNumber},trigger:{lazyAdd:false,setter:function(v){if(isNodeList(v))return v;else if(isString(v))return A.all(v);return new A.NodeList([v])}},useARIA:{value:true},visible:{value:false}},EXTENDS:A.OverlayBase,constructor:function(config){var instance=
this;instance._showCallback=null;instance._hideCallback=null;OverlayContext.superclass.constructor.apply(this,arguments)},prototype:{initializer:function(){var instance=this;var trigger=instance.get(TRIGGER);if(trigger&&trigger.size())instance.set("align.node",trigger.item(0))},bindUI:function(){var instance=this;var boundingBox=instance.get(BOUNDING_BOX);boundingBox.on(MOUSEDOWN,instance._stopTriggerEventPropagation);instance.before("triggerChange",instance._beforeTriggerChange);instance.before("showOnChange",
instance._beforeShowOnChange);instance.before("hideOnChange",instance._beforeHideOnChange);instance.after("triggerChange",instance._afterTriggerChange);instance.after("showOnChange",instance._afterShowOnChange);instance.after("hideOnChange",instance._afterHideOnChange);boundingBox.on("click",A.bind(instance._cancelAutoHide,instance));boundingBox.on("mouseenter",A.bind(instance._cancelAutoHide,instance));boundingBox.on("mouseleave",A.bind(instance._invokeHideTaskOnInteraction,instance));instance.after("focusedChange",
A.bind(instance._invokeHideTaskOnInteraction,instance));instance.on("visibleChange",instance._onVisibleChangeOverlayContext)},hide:function(){var instance=this;instance.clearIntervals();instance.fire("hide");OverlayContext.superclass.hide.apply(instance,arguments)},show:function(event){var instance=this;instance.clearIntervals();instance.updateCurrentNode(event);instance.fire("show");OverlayContext.superclass.show.apply(instance,arguments);instance.refreshAlign()},syncUI:function(){var instance=this;
if(instance.get(USE_ARIA))instance.plug(A.Plugin.Aria,{attributes:{trigger:{ariaName:"controls",format:function(value){var id=instance.get(BOUNDING_BOX).generateID();return id},node:function(){return instance.get(TRIGGER)}},visible:{ariaName:"hidden",format:function(value){return!value}}},roleName:"dialog"})},toggle:function(event){var instance=this;if(instance.get(VISIBLE))instance._hideTask(event);else instance._showTask(event)},clearIntervals:function(){this._hideTask.cancel();this._showTask.cancel()},
refreshAlign:function(){var instance=this;var align=instance.get(ALIGN);var currentNode=instance.get(CURRENT_NODE);if(currentNode)instance._uiSetAlign(currentNode,align.points)},updateCurrentNode:function(event){var instance=this;var align=instance.get(ALIGN);var trigger=instance.get(TRIGGER);var currentTarget=null;if(event)currentTarget=event.currentTarget;var node=currentTarget||trigger.item(0)||align.node;if(node)instance.set(CURRENT_NODE,node)},_toggle:function(event){var instance=this;if(instance.get("disabled"))return;
var currentTarget=event.currentTarget;if(instance._lastTarget!=currentTarget)instance.hide();instance.toggle(event);event.stopPropagation();instance._lastTarget=currentTarget},_afterShowOnChange:function(event){var instance=this;var wasToggle=event.prevVal==instance.get(HIDE_ON);if(wasToggle){var trigger=instance.get(TRIGGER);trigger.detach(event.prevVal,instance._hideCallback);instance._setHideOn(instance.get(HIDE_ON))}},_afterHideOnChange:function(event){var instance=this;var wasToggle=event.prevVal==
instance.get(SHOW_ON);if(wasToggle){var trigger=instance.get(TRIGGER);trigger.detach(event.prevVal,instance._showCallback);instance._setShowOn(instance.get(SHOW_ON))}},_afterTriggerChange:function(event){var instance=this;instance._setShowOn(instance.get(SHOW_ON));instance._setHideOn(instance.get(HIDE_ON))},_beforeShowOnChange:function(event){var instance=this;var trigger=instance.get(TRIGGER);trigger.detach(event.prevVal,instance._showCallback)},_beforeHideOnChange:function(event){var instance=this;
var trigger=instance.get(TRIGGER);trigger.detach(event.prevVal,instance._hideCallback)},_beforeTriggerChange:function(event){var instance=this;var trigger=instance.get(TRIGGER);var showOn=instance.get(SHOW_ON);var hideOn=instance.get(HIDE_ON);trigger.detach(showOn,instance._showCallback);trigger.detach(hideOn,instance._hideCallback);trigger.detach(MOUSEDOWN,instance._stopTriggerEventPropagation)},_cancelAutoHide:function(event){var instance=this;if(instance.get(CANCELLABLE_HIDE))instance.clearIntervals();
event.stopPropagation()},_invokeHideTaskOnInteraction:function(event){var instance=this;var cancellableHide=instance.get(CANCELLABLE_HIDE);var focused=instance.get(FOCUSED);if(!focused&&!cancellableHide)instance._hideTask()},_onVisibleChangeOverlayContext:function(event){var instance=this;if(event.newVal&&instance.get("disabled"))event.preventDefault()},_stopTriggerEventPropagation:function(event){event.stopPropagation()},_setHideDelay:function(val){var instance=this;instance._hideTask=A.debounce(instance.hide,
val,instance);return val},_setHideOn:function(eventType){var instance=this;var trigger=instance.get(TRIGGER);var toggle=eventType==instance.get(SHOW_ON);if(toggle){instance._hideCallback=A.bind(instance._toggle,instance);trigger.detach(eventType,instance._showCallback)}else{var delay=instance.get(HIDE_DELAY);instance._hideCallback=function(event){instance._hideTask(event);event.stopPropagation()}}trigger.on(eventType,instance._hideCallback);return eventType},_setHideOnDocumentClick:function(value){var instance=
this;if(value)A.OverlayContextManager.register(instance);else A.OverlayContextManager.remove(instance);return value},_setShowDelay:function(val){var instance=this;instance._showTask=A.debounce(instance.show,val,instance);return val},_setShowOn:function(eventType){var instance=this;var trigger=instance.get(TRIGGER);var toggle=eventType==instance.get(HIDE_ON);if(toggle){instance._showCallback=A.bind(instance._toggle,instance);trigger.detach(eventType,instance._hideCallback)}else{var delay=instance.get(SHOW_DELAY);
instance._showCallback=function(event){instance._showTask(event);event.stopPropagation()}}if(eventType!=MOUSEDOWN)trigger.on(MOUSEDOWN,instance._stopTriggerEventPropagation);else trigger.detach(MOUSEDOWN,instance._stopTriggerEventPropagation);trigger.on(eventType,instance._showCallback);return eventType}}});A.OverlayContext=OverlayContext;A.OverlayContextManager=new A.OverlayManager({});A.on(MOUSEDOWN,function(){A.OverlayContextManager.hideAll()},A.getDoc())},"3.1.0-deprecated.79",{"requires":["aui-overlay-manager-deprecated",
"aui-delayed-task-deprecated","aui-aria"]});
YUI.add("aui-overlay-manager-deprecated",function(A,NAME){var Lang=A.Lang,isArray=Lang.isArray,isBoolean=Lang.isBoolean,isNumber=Lang.isNumber,isString=Lang.isString,BOUNDING_BOX="boundingBox",DEFAULT="default",HOST="host",OVERLAY_MANAGER="OverlayManager",GROUP="group",Z_INDEX="zIndex",Z_INDEX_BASE="zIndexBase";var OverlayManager=A.Component.create({NAME:OVERLAY_MANAGER.toLowerCase(),ATTRS:{zIndexBase:{value:1E3,validator:isNumber,setter:Lang.toInt}},EXTENDS:A.Base,prototype:{initializer:function(){var instance=
this;instance._overlays=[]},bringToTop:function(overlay){var instance=this;var overlays=instance._overlays.sort(instance.sortByZIndexDesc);var highest=overlays[0];if(highest!==overlay){var overlayZ=overlay.get(Z_INDEX);var highestZ=highest.get(Z_INDEX);overlay.set(Z_INDEX,highestZ+1);overlay.set("focused",true)}},destructor:function(){var instance=this;instance._overlays=[]},register:function(overlay){var instance=this;var overlays=instance._overlays;if(isArray(overlay))A.Array.each(overlay,function(o){instance.register(o)});
else{var zIndexBase=instance.get(Z_INDEX_BASE);var registered=instance._registered(overlay);if(!registered&&overlay&&(overlay instanceof A.Overlay||A.Component&&overlay instanceof A.Component)){var boundingBox=overlay.get(BOUNDING_BOX);overlays.push(overlay);var zIndex=overlay.get(Z_INDEX)||0;var newZIndex=overlays.length+zIndex+zIndexBase;overlay.set(Z_INDEX,newZIndex);overlay.on("focusedChange",instance._onFocusedChange,instance);boundingBox.on("mousedown",instance._onMouseDown,instance)}}return overlays},
remove:function(overlay){var instance=this;var overlays=instance._overlays;if(overlays.length)return A.Array.removeItem(overlays,overlay);return null},each:function(fn){var instance=this;var overlays=instance._overlays;A.Array.each(overlays,fn)},showAll:function(){this.each(function(overlay){overlay.show()})},hideAll:function(){this.each(function(overlay){overlay.hide()})},sortByZIndexDesc:function(a,b){if(!a||!b||!a.hasImpl(A.WidgetStack)||!b.hasImpl(A.WidgetStack))return 0;else{var aZ=a.get(Z_INDEX);
var bZ=b.get(Z_INDEX);if(aZ>bZ)return-1;else if(aZ<bZ)return 1;else return 0}},_registered:function(overlay){var instance=this;return A.Array.indexOf(instance._overlays,overlay)!=-1},_onMouseDown:function(event){var instance=this;var overlay=A.Widget.getByNode(event.currentTarget||event.target);var registered=instance._registered(overlay);if(overlay&&registered)instance.bringToTop(overlay)},_onFocusedChange:function(event){var instance=this;if(event.newVal){var overlay=event.currentTarget||event.target;
var registered=instance._registered(overlay);if(overlay&&registered)instance.bringToTop(overlay)}}}});A.OverlayManager=OverlayManager},"3.1.0-deprecated.79",{"requires":["overlay","plugin","aui-base-deprecated","aui-overlay-base-deprecated"]});
YUI.add("aui-overlay-mask-deprecated",function(A,NAME){var L=A.Lang,isArray=L.isArray,isString=L.isString,isNumber=L.isNumber,isValue=L.isValue,CONFIG=A.config,UA=A.UA,IE6=UA.ie<=6,ABSOLUTE="absolute",ALIGN_POINTS="alignPoints",BACKGROUND="background",BOUNDING_BOX="boundingBox",CONTENT_BOX="contentBox",FIXED="fixed",HEIGHT="height",OFFSET_HEIGHT="offsetHeight",OFFSET_WIDTH="offsetWidth",OPACITY="opacity",OVERLAY_MASK="overlaymask",POSITION="position",TARGET="target",WIDTH="width";var OverlayMask=
A.Component.create({NAME:OVERLAY_MASK,ATTRS:{alignPoints:{value:["tl","tl"],validator:isArray},background:{lazyAdd:false,value:null,validator:isString,setter:function(v){if(v)this.get(CONTENT_BOX).setStyle(BACKGROUND,v);return v}},target:{cloneDefaultValue:false,lazyAdd:false,value:CONFIG.doc,setter:function(v){var instance=this;var target=A.one(v);var isDoc=instance._isDoc=target.compareTo(CONFIG.doc);var isWin=instance._isWin=target.compareTo(CONFIG.win);instance._fullPage=isDoc||isWin;return target}},
opacity:{value:.5,validator:isNumber,setter:function(v){return this._setOpacity(v)}},shim:{value:A.UA.ie},visible:{value:false},zIndex:{value:1E3}},EXTENDS:A.OverlayBase,prototype:{bindUI:function(){var instance=this;OverlayMask.superclass.bindUI.apply(this,arguments);instance._eventHandles=[instance.after("targetChange",instance._afterTargetChange),instance.after("visibleChange",instance._afterVisibleChange),A.on("windowresize",A.bind(instance.refreshMask,instance))]},syncUI:function(){var instance=
this;instance.refreshMask()},destructor:function(){var instance=this;(new A.EventHandle(instance._eventHandles)).detach()},getTargetSize:function(){var instance=this;var target=instance.get(TARGET);var isDoc=instance._isDoc;var isWin=instance._isWin;var height=target.get(OFFSET_HEIGHT);var width=target.get(OFFSET_WIDTH);if(IE6)if(isWin){width=A.DOM.winWidth();height=A.DOM.winHeight()}else{if(isDoc){width=A.DOM.docWidth();height=A.DOM.docHeight()}}else if(instance._fullPage){height="100%";width="100%"}return{height:height,
width:width}},refreshMask:function(){var instance=this;var alignPoints=instance.get(ALIGN_POINTS);var target=instance.get(TARGET);var boundingBox=instance.get(BOUNDING_BOX);var targetSize=instance.getTargetSize();var fullPage=instance._fullPage;boundingBox.setStyles({position:IE6||!fullPage?ABSOLUTE:FIXED,left:0,top:0});var height=targetSize.height;var width=targetSize.width;if(isValue(height))instance.set(HEIGHT,height);if(isValue(width))instance.set(WIDTH,width);if(!fullPage)instance.align(target,
alignPoints)},_setOpacity:function(v){var instance=this;instance.get(CONTENT_BOX).setStyle(OPACITY,v);return v},_uiSetVisible:function(val){var instance=this;OverlayMask.superclass._uiSetVisible.apply(this,arguments);if(val)instance._setOpacity(instance.get(OPACITY))},_afterTargetChange:function(event){var instance=this;instance.refreshMask()},_afterVisibleChange:function(event){var instance=this;instance._uiSetVisible(event.newVal)},_uiSetXY:function(){var instance=this;if(!instance._fullPage||IE6)OverlayMask.superclass._uiSetXY.apply(instance,
arguments)}}});A.OverlayMask=OverlayMask},"3.1.0-deprecated.79",{"requires":["event-resize","aui-base-deprecated","aui-overlay-base-deprecated"],"skinnable":true});
