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.2",{"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.90",
{"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.90",{"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.90",{"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.90",{"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.90",{"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.90",{"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.90",{"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.90",{"requires":["event-resize","aui-base-deprecated","aui-overlay-base-deprecated"],"skinnable":true});
YUI.add("aui-parse-content",function(A,NAME){var L=A.Lang,isString=L.isString,DOC=A.config.doc,PADDING_NODE="\x3cdiv\x3e_\x3c/div\x3e",SCRIPT_TYPES={"":1,"text/javascript":1,"text/parsed":1};var ParseContent=A.Component.create({NAME:"ParseContent",NS:"ParseContent",ATTRS:{queue:{value:null},preserveScriptNodes:{validator:L.isBoolean,value:false}},EXTENDS:A.Plugin.Base,prototype:{initializer:function(){var instance=this;ParseContent.superclass.initializer.apply(this,arguments);instance.set("queue",
new A.AsyncQueue);instance._bindAOP()},globalEval:function(data){var doc=A.getDoc();var head=doc.one("head")||doc.get("documentElement");var newScript=DOC.createElement("script");newScript.type="text/javascript";if(data)newScript.text=L.trim(data);head.appendChild(newScript).remove()},parseContent:function(content){var instance=this;var output=instance._extractScripts(content);instance._dispatch(output);return output},_addInlineScript:function(data){var instance=this;instance.get("queue").add({args:data,
context:instance,fn:instance.globalEval,timeout:0})},_bindAOP:function(){var instance=this;var cleanFirstArg=function(content){var args=Array.prototype.slice.call(arguments);var output=instance.parseContent(content);args.splice(0,1,output.fragment);return new A.Do.AlterArgs(null,args)};this.doBefore("insert",cleanFirstArg);this.doBefore("replaceChild",cleanFirstArg);var cleanArgs=function(content){var output=instance.parseContent(content);return new A.Do.AlterArgs(null,[output.fragment])};this.doBefore("replace",
cleanArgs);this.doBefore("setContent",cleanArgs)},_extractScripts:function(content){var instance=this,fragment=A.Node.create("\x3cdiv\x3e\x3c/div\x3e"),output={},preserveScriptNodes=instance.get("preserveScriptNodes");if(isString(content)){content=PADDING_NODE+content;A.DOM.addHTML(fragment,content,"append")}else{fragment.append(PADDING_NODE);fragment.append(content)}output.js=fragment.all("script").filter(function(script){var includeScript=SCRIPT_TYPES[script.getAttribute("type").toLowerCase()];
if(preserveScriptNodes)script.setAttribute("type","text/parsed");return includeScript});if(!preserveScriptNodes)output.js.each(function(node){node.remove()});fragment.get("firstChild").remove();output.fragment=fragment.get("childNodes").toFrag();return output},_dispatch:function(output){var instance=this;var queue=instance.get("queue");var scriptContent=[];output.js.each(function(node){var src=node.get("src");if(src){if(scriptContent.length){instance._addInlineScript(scriptContent.join(";"));scriptContent.length=
0}queue.add({autoContinue:false,fn:function(){A.Get.script(src,{onEnd:function(o){o.purge();queue.run()}})},timeout:0})}else{var dom=node._node;scriptContent.push(dom.text||dom.textContent||dom.innerHTML||"")}});if(scriptContent.length)instance._addInlineScript(scriptContent.join(";"));queue.run()}}});A.namespace("Plugin").ParseContent=ParseContent},"3.1.0-deprecated.90",{"requires":["async-queue","plugin","io-base","aui-component","aui-node-base"]});
function ownKeys(e,t){var i=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),i.push.apply(i,n)}return i}
function _objectSpread(e){for(var t=1;t<arguments.length;t++){var i=null!=arguments[t]?arguments[t]:{};t%2?ownKeys(Object(i),!0).forEach(function(t){_defineProperty(e,t,i[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(i)):ownKeys(Object(i)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(i,t))})}return e}
function _defineProperty(e,t,i){return t in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}
AUI.add("liferay-session",(e)=>{var t=e.Lang,i=[],n=e.config,r=n.doc,s={active:"activated"};var a={},o={src:a};const g="sessionToast";var l=themeDisplay.getPathMain()+"/portal/",d=e.Component.create({ATTRS:{autoExtend:{value:!1},redirectOnExpire:{value:!0},redirectUrl:{value:""},sessionLength:{getter:"_getLengthInMillis",value:0},sessionState:{value:"active"},sessionTimeoutOffset:{getter:"_getLengthInMillis",value:0},timestamp:{getter:"_getTimestamp",setter:"_setTimestamp",value:0},warningLength:{getter:"_getLengthInMillis",
setter:"_setWarningLength",value:0},warningTime:{getter:"_getWarningTime",value:0}},EXTENDS:e.Base,NAME:"liferaysession",prototype:{_afterSessionStateChange(e){var t=e.details,i=e.newVal,n=null;"src"in e&&t.length&&(n=t[0]),this.fire(s[i]||i,n)},_defActivatedFn(e){this.set("timestamp"),e.src===a&&Liferay.Util.fetch(l+"extend_session")},_defExpiredFn(t){e.clearInterval(this._intervalId),t.src===a&&this._expireSession()},_expireSession(){var t=this;Liferay.Util.fetch(l+"expire_session").then((i)=>{i.ok?
(Liferay.fire("sessionExpired"),t.get("redirectOnExpire")&&(location.href=t.get("redirectUrl"))):e.setTimeout(()=>{t._expireSession()},1E3)})},_getLengthInMillis:(e)=>1E3*e,_getTimestamp(){var t=this;return e.Cookie.get(t._cookieKey,t._cookieOptions)||t._initTimestamp},_getWarningTime(){return this.get("sessionLength")-this.get("warningLength")},_initEvents(){var i=this;i.publish("activated",{defaultFn:e.bind("_defActivatedFn",i)}),i.publish("expired",{defaultFn:e.bind("_defExpiredFn",i)}),i.publish("warned"),
i._eventHandlers=[i.on("sessionStateChange",i._onSessionStateChange),i.after("sessionStateChange",i._afterSessionStateChange),e.on("io:complete",(e,n,r)=>{(!r||r&&r.sessionExtend||!t.isBoolean(r.sessionExtend))&&i.resetInterval()}),Liferay.once("screenLoad",()=>{i.destroy()})]},_onSessionStateChange(e){var t=e.newVal,i=e.prevVal;"expired"===i&&i!==t?e.preventDefault():"active"===i&&i===t&&this._afterSessionStateChange(e)},_setTimestamp(t){var i=this;t=String(t||Date.now()),i._initTimestamp=t,navigator.cookieEnabled&&
e.Cookie.set(i._cookieKey,t,i._cookieOptions)},_setWarningLength(e){return Math.min(this.get("sessionLength"),e)},_startTimer(){const t=this,i=t.get("sessionLength"),n=t.get("sessionTimeoutOffset"),r=t.get("warningTime");t._intervalId=e.setInterval(()=>{const e=t.get("sessionState"),s=t.get("timestamp");t._initTimestamp!==s&&(t.set("timestamp",s),"active"!==e&&t.set("sessionState","active",o));const a=1E3*Math.floor((Date.now()-s)/1E3),g=t.get("autoExtend"),l=a>=i,d=a>=i-n,_=a>=r;l&&"expired"!==e?
t.expire():g&&d?t.extend():!g&&_&&"warned"!==e&&t.warn();const p=t._registered;for(const e in p)p[e](a,_,l)},1E3)},_stopTimer(){e.clearInterval(this._intervalId)},destructor(){(new e.EventHandle(this._eventHandlers)).detach(),this._stopTimer()},expire(){this.set("sessionState","expired",o)},extend(){this.set("sessionState","active",o)},initializer(){var t=this;t._cookieKey="LFR_SESSION_STATE_"+themeDisplay.getUserId(),t._cookieOptions={path:"/",secure:e.UA.secure},t._registered={},t.set("timestamp"),
t._initEvents(),t._startTimer(),Liferay.fire("sessionInitialized",{session:t})},registerInterval(i){var n,r=this._registered;return t.isFunction(i)&&(r[n=e.stamp(i)]=i),n},resetInterval(){this._stopTimer(),this._startTimer()},unregisterInterval(e){var t=this._registered;return Object.prototype.hasOwnProperty.call(t,e)&&delete t[e],e},warn(){this.set("sessionState","warned",o)}}});d.SRC=a;var _=e.Component.create({ATTRS:{openToast:{validator:t.isFunction},pageTitle:{value:r.title}},EXTENDS:e.Plugin.Base,
NAME:"liferaysessiondisplay",NS:"display",prototype:{_afterDefActivatedFn(){this._uiSetActivated()},_afterDefExpiredFn(){var e=this;e._host.unregisterInterval(e._intervalId),e._uiSetExpired()},_beforeHostWarned(){const e=this,i=e._host,n=i.get("sessionLength"),r=i.get("timestamp"),s=i.get("warningLength");let a=n;t.toInt(r)&&(a=1E3*Math.floor((Date.now()-r)/1E3));let o=n-a;o>s&&(o=s),e._getBanner();const l=document.querySelector("#".concat(g," .countdown-timer"));e._uiSetRemainingTime(o,l),e._intervalId=
i.registerInterval((t,i,r)=>{i?r||e._uiSetRemainingTime(n-t,l):e._uiSetActivated()})},_destroyBanner(){const e=document.getElementById(g),t=null==e?void 0:e.parentElement;Liferay.destroyComponent(g),t&&t.remove(),this._banner=!1},_formatNumber:(e)=>t.String.padNumber(Math.floor(e),2),_formatTime(e){var n=this;return e=Number(e),t.isNumber(e)&&e>0?(e/=1E3,i[0]=n._formatNumber(e/3600),e%=3600,i[1]=n._formatNumber(e/60),e%=60,i[2]=n._formatNumber(e),e=i.join(":")):e=0,e},_getBanner(){var e=this,t=e._banner;
if(!t){var i=e.get("openToast"),n={onClick({event:t}){t.target.classList.contains("alert-link")&&e._host.extend()},renderData:{componentId:g},toastProps:{autoClose:!1,id:g,role:"alert"}};i(_objectSpread({message:e._warningText,type:"warning"},n)),t=_objectSpread({open(t){e._destroyBanner(),i(_objectSpread(_objectSpread({},t),n))}},Liferay.component(g)),e._banner=t}return t},_onHostSessionStateChange(e){"warned"===e.newVal&&this._beforeHostWarned(e)},_uiSetActivated(){var e=this;r.title=e.reset("pageTitle").get("pageTitle"),
e._host.unregisterInterval(e._intervalId),e._banner&&e._destroyBanner()},_uiSetExpired(){var e=this;e._getBanner().open({message:e._expiredText,title:'Perigo',type:"danger"}),r.title=e.get("pageTitle")},_uiSetRemainingTime(e,i){var n=this;if(e=n._formatTime(e),!n._alertClosed){var s=i.closest('div[role\x3d"alert"]');s&&(s.removeAttribute("role"),n._alert=s),i.innerHTML=e}r.title=t.sub('A\x20sessão\x20expira\x20em\x20\x7b0\x7d\x2e',[e])+" | "+n.get("pageTitle")},destructor(){this._banner&&
this._destroyBanner()},initializer(){var e=this,i=e.get("host");Liferay.Util.getTop()===n.win?(e._host=i,e._toggleText={hide:'Ocultar',show:'Exibir'},e._expiredText='Devido\x20a\x20inatividade\x2c\x20sua\x20sessão\x20expirou\x2e\x20Por\x20favor\x2c\x20salve\x20quaisquer\x20dados\x20que\x20você\x20tenha\x20inserido\x20antes\x20de\x20atualizar\x20a\x20página\x2e',e._warningText='Devido\x20a\x20inatividade\x2c\x20sua\x20sessão\x20expirará\x20em\x20\x7b0\x7d\x2e\x20Para\x20estender\x20sua\x20sessão\x20por\x20mais\x20\x7b1\x7d\x20minuto\x28s\x29\x2c\x20por\x20favor\x2c\x20pressione\x20o\x20botão\x20\x3cem\x3eEstender\x3c\x2fem\x3e\x2e\x20\x7b2\x7d',e._warningText=t.sub(e._warningText,['\x3cspan class\x3d"countdown-timer"\x3e{0}\x3c/span\x3e',i.get("sessionLength")/6E4,'\x3ca class\x3d"alert-link" href\x3d"javascript:;"\x3e'+
'Estender'+"\x3c/a\x3e"]),i.on("sessionStateChange",e._onHostSessionStateChange,e),e.afterHostMethod("_defActivatedFn",e._afterDefActivatedFn),e.afterHostMethod("_defExpiredFn",e._afterDefExpiredFn)):i.unplug(e)}}});Liferay.SessionBase=d,Liferay.SessionDisplay=_},"",{requires:["aui-base","aui-component","aui-timer","cookie","plugin"]});
(function(A){var Util=Liferay.Util,Lang=A.Lang,htmlEscapedValues=[],htmlUnescapedValues=[],MAP_HTML_CHARS_ESCAPED={'"':"\x26#034;","\x26":"\x26amp;","'":"\x26#039;","/":"\x26#047;","\x3c":"\x26lt;","\x3e":"\x26gt;","`":"\x26#096;"},MAP_HTML_CHARS_UNESCAPED={};A.Object.each(MAP_HTML_CHARS_ESCAPED,(e,t)=>{MAP_HTML_CHARS_UNESCAPED[e]=t,htmlEscapedValues.push(e),htmlUnescapedValues.push(t)});var REGEX_DASH=/-([a-z])/gi,STR_RIGHT_SQUARE_BRACKET="]";Util.actsAsAspect=function(object){object.yield=null,
object.rv={},object.before=function(method,f){var original=eval("this."+method);this[method]=function(){return f.apply(this,arguments),original.apply(this,arguments)}},object.after=function(method,f){var original=eval("this."+method);this[method]=function(){return this.rv[method]=original.apply(this,arguments),f.apply(this,arguments)}},object.around=function(method,f){var original=eval("this."+method);this[method]=function(){return this.yield=original,f.apply(this,arguments)}}},Util.addInputFocus=
function(){A.use("aui-base",(e)=>{var t=function(e){var t=e.target,a=t.get("tagName");a&&(a=a.toLowerCase());var i=t.get("type");if("input"===a&&/text|password/.test(i)||"textarea"===a){var n="addClass";/blur|focusout/.test(e.type)&&(n="removeClass"),t[n]("focus")}};e.on("focus",t,document),e.on("blur",t,document)}),Util.addInputFocus=function(){}},Util.addInputType=function(e){return Util.addInputType=Lang.emptyFn,Util.addInputType(e)},Util.camelize=function(e,t){var a=REGEX_DASH;return t&&(a=new RegExp(t+
"([a-z])","gi")),e=e.replace(a,(e,t)=>t.toUpperCase())},Util.clamp=function(e,t,a){return Math.min(Math.max(e,t),a)},Util.isEditorPresent=function(e){return Liferay.EDITORS&&Liferay.EDITORS[e]},Util.randomMinMax=function(e,t){return Math.round(Math.random()*(t-e))+e},Util.selectAndCopy=function(e){(e.focus(),e.select(),document.all)&&e.createTextRange().execCommand("copy")},Util.setBox=function(e,t){for(var a=e.length-1;a>-1;a--)e.options[a]=null;for(a=0;a<t.length;a++)e.options[a]=new Option(t[a].value,
a);e.options[0].selected=!0},Util.startsWith=function(e,t){return 0===e.indexOf(t)},Util.textareaTabs=function(e){var t=e.currentTarget.getDOM();if(e.isKey("TAB")){e.halt();var a=t.scrollTop;if(t.setSelectionRange){var i=t.selectionStart+1,n=t.value;t.value=n.substring(0,t.selectionStart)+"\t"+n.substring(t.selectionEnd,n.length),setTimeout(()=>{t.focus(),t.setSelectionRange(i,i)},0)}else document.selection.createRange().text="\t";return t.scrollTop=a,!1}},Util.uncamelize=function(e,t){return t=t||
" ",e=(e=e.replace(/([a-zA-Z][a-zA-Z])([A-Z])([a-z])/g,"$1"+t+"$2$3")).replace(/([a-z])([A-Z])/g,"$1"+t+"$2")},Liferay.provide(Util,"check",(e,t,a)=>{var i=A.one(e[t]);i&&i.attr("checked",a)},["aui-base"]),Liferay.provide(Util,"disableSelectBoxes",(e,t,a)=>{var i=A.one("#"+a),n=A.one("#"+e);if(i&&n){var r=Lang.isFunction(t),o=function(){var e=i.val(),a=t===e;r&&(a=t(e,t)),n.attr("disabled",!a)};o(),i.on("change",o)}},["aui-base"]),Liferay.provide(Util,"disableTextareaTabs",(e)=>{(e=A.one(e))&&"enabled"!==
e.attr("textareatabs")&&(e.attr("textareatabs","disabled"),e.detach("keydown",Util.textareaTabs))},["aui-base"]),Liferay.provide(Util,"enableTextareaTabs",(e)=>{(e=A.one(e))&&"enabled"!==e.attr("textareatabs")&&(e.attr("textareatabs","disabled"),e.on("keydown",Util.textareaTabs))},["aui-base"]),Liferay.provide(Util,"removeItem",(e,t)=>{var a=(e=A.one(e)).get("selectedIndex");t?e.all("option[value\x3d"+t+STR_RIGHT_SQUARE_BRACKET).item(a).remove(!0):e.all("option").item(a).remove(!0)},["aui-base"]),
Liferay.provide(Util,"resizeTextarea",(e,t)=>{var a=A.one("#"+e);if(a||(a=A.one("textarea[name\x3d"+e+STR_RIGHT_SQUARE_BRACKET)),a){var i,n=A.getBody(),r=function(r){var o=n.get("winHeight");if(t)try{"iframe"!==a.get("nodeName").toLowerCase()&&(a=window[e])}catch(e){}if(!i){var l=n.one(".button-holder"),s=n.one(".lfr-template-editor");if(l&&s){var u=s.getXY();i=l.outerHeight(!0)+u[1]+25}else i=170}a=A.one(a);var c={width:"98%"};r&&(c.height=o-i),!t||a&&A.DOM.inDoc(a)?a&&a.setStyles(c):A.on("available",
()=>{(a=A.one(window[e]))&&a.setStyles(c)},"#"+e+"_cp")};r();var o=Liferay.Util.getWindow();if(o){var l=o.iframe.after("resizeiframe:heightChange",r);A.getWin().on("unload",l.detach,l)}}},["aui-base"]),Liferay.provide(Util,"setSelectedValue",(e,t)=>{var a=A.one(e).one("option[value\x3d"+t+STR_RIGHT_SQUARE_BRACKET);a&&a.attr("selected",!0)},["aui-base"]),Liferay.provide(Util,"switchEditor",(e)=>{var t=e.uri,a=Liferay.Util.getWindowName(),i=Liferay.Util.getWindow(a);i&&i.iframe.set("uri",t)},["aui-io"])})(AUI());
!function(){var s={_scheduledTasks:[],_taskStates:[],addTask(s){this._scheduledTasks.push(s)},addTaskState(s){this._taskStates.push(s)},reset(){this._taskStates.length=0,this._scheduledTasks.length=0},runTasks(s){for(var t=this._scheduledTasks,a=this._taskStates,e=t.length,h=a.length,d=0;d<e;d++)for(var k=t[d],n=k.params,i=0;i<h;i++){var r=a[i];k.condition(r,n,s)&&k.action(r,n,s)}}};Liferay.DOMTaskRunner=s}();
!function(e){var t={},a=Liferay.Util;e.use("attribute","oop",(e)=>{e.augment(Liferay,e.Attribute,!0)}),Liferay.provide(Liferay,"delegateClick",(a,i)=>{var r=e.config.doc.getElementById(a);if(r&&r.id===a){var l=e.one(r).addClass("lfr-delegate-click").guid();t[l]=i,Liferay._baseDelegateHandle||(Liferay._baseDelegateHandle=e.getBody().delegate("click",Liferay._baseDelegate,".lfr-delegate-click"))}},["aui-base"]),Liferay._baseDelegate=function(e){var a=e.currentTarget.attr("id"),i=t[a];i&&i.apply(this,
arguments)},Liferay._CLICK_EVENTS=t,Liferay.provide(window,"submitForm",(t,i,r,l)=>{a._submitLocked||(t.jquery&&(t=t[0]),Liferay.fire("submitForm",{action:i,form:e.one(t),singleSubmit:r,validate:!1!==l}))},["aui-base","aui-form-validator","aui-url","liferay-form"]),Liferay.publish("submitForm",{defaultFn(t){var i=t.form,r=!1;if(t.validate){var l=Liferay.Form.get(i.attr("id"));if(l){var o=l.formValidator;e.instanceOf(o,e.FormValidator)&&(o.validate(),(r=o.hasErrors())&&o.focusInvalidField())}}if(!r){var n,
d,f=t.action||i.getAttribute("action"),u=t.singleSubmit,s=i.all("button[type\x3dsubmit], input[type\x3dbutton], input[type\x3dimage], input[type\x3dreset], input[type\x3dsubmit]");a.disableFormButtons(s,i),a._submitLocked=!1!==u||e.later(1E3,a,a.enableFormButtons,[s,i]);var m=f.indexOf("?");-1===m?(n=f,d=""):(n=f.slice(0,m),d=f.slice(m+1));var y=new URLSearchParams(d),g=y.get("p_auth")||"";g.includes("#")&&(g=g.substring(0,g.indexOf("#"))),g&&(i.append('\x3cinput name\x3d"p_auth" type\x3d"hidden" value\x3d"'+
g+'" /\x3e'),y.delete("p_auth"),f=n+"?"+y.toString()),i.attr("action",f),a.submitForm(i),i.attr("target",""),a._submitLocked=null}}}),Liferay.after("closeWindow",(e)=>{var t=e.id,i=a.getTop().Liferay.Util.Window.getById(t);if(i&&i.iframe){var r=i.iframe.node.get("contentWindow").getDOM().Liferay.Util.getOpener(),l=e.redirect;if(l)r.Liferay.Util.navigate(l);else{var o,n=e.refresh;if(n&&r)e.portletAjaxable||(o={portletAjaxable:!1}),r.Liferay.Portlet.refresh("#p_p_id_"+n+"_",o)}i.hide()}})}(AUI());
Liferay.lazyLoad=function(){var r,n,e,f=function(r){return"function"==typeof r};if(Array.isArray(arguments[0]))n=arguments[0],e=f(arguments[1])?arguments[1]:null,r=f(arguments[2])?arguments[2]:null;else{n=[];for(var i=0;i<arguments.length;++i)if("string"==typeof arguments[i])n[i]=arguments[i];else if(f(arguments[i])){e=arguments[i],r=f(arguments[++i])?arguments[i]:null;break}}return function(){for(var f=[],i=0;i<arguments.length;++i)f.push(arguments[i]);Liferay.Loader.require(n,function(){for(var r=
0;r<arguments.length;++r)f.splice(r,0,arguments[r]);e.apply(e,f)},r)}};
Liferay=window.Liferay||{},function(){var e=function(e){return"function"==typeof e},t=function(e){return e&&(e._node||e.jquery||e.nodeType)},r=/^get$/i;Liferay.namespace=function(e,t){void 0===t&&(t=e,e=this);for(var r,o=t.split(".");o.length&&(r=o.shift());)e=e[r]&&e[r]!==Object.prototype[r]?e[r]:e[r]={};return e};var o=function e(){var t=e.parseInvokeArgs(Array.prototype.slice.call(arguments,0));return e.invoke.apply(e,t)};function n(e){return function(){var t=Array.prototype.slice.call(arguments,
0),r={method:e};return t.push(r),o.apply(o,t)}}o.URL_INVOKE=themeDisplay.getPathContext()+"/api/jsonws/invoke",o.bind=function(){var e=Array.prototype.slice.call(arguments,0);return function(){var t=Array.prototype.slice.call(arguments,0);return o.apply(o,e.concat(t))}},o.parseInvokeArgs=function(e){var t=this,r=e[0],o=t.parseIOConfig(e);if("string"==typeof r){r=t.parseStringPayload(e),t.parseIOFormConfig(o,e);var n=e[e.length-1];"object"==typeof n&&n.method&&(o.method=n.method)}return[r,o]},o.parseIOConfig=
function(t){var o=t[0],n=o.io||{};if(delete o.io,!n.success){var a=t.filter(e),i=a[1],p=a[0];i||(i=p),n.error=i,n.complete=function(e){if(Object.keys(e).length>0&&!Object.prototype.hasOwnProperty.call(e,"exception"))p&&p.call(this,e);else if(i){var t=e?e.exception:"The server returned an empty response";i.call(this,t,e)}}}return!Object.prototype.hasOwnProperty.call(n,"cache")&&r.test(n.type)&&(n.cache=!1),n},o.parseIOFormConfig=function(e,r){var o=r[1];t(o)&&("multipart/form-data"===o.enctype&&(e.contentType=
"multipart/form-data"),e.formData=new FormData(o))},o.parseStringPayload=function(r){var o={},n={},a=r[1];return e(a)||t(a)||(o=a),n[r[0]]=o,n},o.invoke=function(e,t){var r=JSON.stringify(e),o=r;return t.formData&&(t.formData.append("cmd",r),o=t.formData),Liferay.Util.fetch(this.URL_INVOKE,{body:o,headers:{contentType:t.contentType},method:"POST"}).then((e)=>Promise.all([Promise.resolve(e),e.json()])).then(([e,r])=>{e.ok?t.complete(r):t.error()}).catch(t.error)},o.get=n("get"),o.del=n("delete"),o.post=
n("post"),o.put=n("put"),o.update=n("update"),Liferay.Service=o,Liferay.Template={PORTLET:'\x3cdiv class\x3d"portlet"\x3e\x3cdiv class\x3d"portlet-topper"\x3e\x3cdiv class\x3d"portlet-title"\x3e\x3c/div\x3e\x3c/div\x3e\x3cdiv class\x3d"portlet-content"\x3e\x3c/div\x3e\x3cdiv class\x3d"forbidden-action"\x3e\x3c/div\x3e\x3c/div\x3e'}}();
!function(e,t){for(var r in t)e[r]=t[r];t.__esModule&&Object.defineProperty(e,"__esModule",{value:!0})}(window,(()=>{var e={8686:(e,t,r)=>{var n,o=/[&<>"'`]/g,i=RegExp(o.source),a="object"==typeof r.g&&r.g&&r.g.Object===Object&&r.g,s="object"==typeof self&&self&&self.Object===Object&&self,c=a||s||Function("return this")(),l=(n={"\x26":"\x26amp;","\x3c":"\x26lt;","\x3e":"\x26gt;",'"':"\x26quot;","'":"\x26#39;","`":"\x26#96;"},function(e){return null==n?void 0:n[e]}),u=Object.prototype.toString,f=c.Symbol,
d=f?f.prototype:void 0,p=d?d.toString:void 0;e.exports=function(e){var t;return(e=null==(t=e)?"":function(e){if("string"==typeof e)return e;if(function(e){return"symbol"==typeof e||function(e){return!!e&&"object"==typeof e}(e)&&"[object Symbol]"==u.call(e)}(e))return p?p.call(e):"";var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}(t))&&i.test(e)?e.replace(o,l):e}},1991:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n,o=(n=r(1521))&&n.__esModule?n:{default:n};function i(e,
t){let r=e.indexOf('"\x3e');const n=e.substring(r);r=t.indexOf('"\x3e');const o=t.substring(r);return n<o?-1:n>o?1:0}function a(e,t,r){const n=e[t],a=document.getElementById(n.select);if(!a)return;const s=function(e){return!!Array.isArray(e)||!(!e||"object"!=typeof e||"number"!=typeof e.length||e.tagName||e.scrollTo||e.document)}(l=n.selectVal)?Array.from(l):[l],c=[];var l;for(!1!==n.selectNullable&&c.push('\x3coption selected value\x3d"0"\x3e\x3c/option\x3e'),r.forEach((e)=>{const t=Liferay.Util.escapeHTML(e[n.selectId]),
r=Liferay.Util.escapeHTML(e[n.selectDesc]);let o="";s.indexOf(t)>-1&&(o='selected\x3d"selected"'),c.push("\x3coption ".concat(o,' value\x3d"').concat(t,'"\x3e').concat(r,"\x3c/option\x3e"))}),n.selectSort&&c.sort(i);a.lastChild;)a.removeChild(a.lastChild);a.innerHTML=c.join(""),n.selectDisableOnEmpty&&(0,o.default)(a,!r.length)}t.default=class{constructor(e){!function(e){e.forEach((t,r)=>{const n=t.select,o=document.getElementById(n),i=t.selectData;if(o){let t;o.setAttribute("data-componentType",
"dynamic_select"),r>0&&(t=e[r-1].selectVal),i((t)=>{a(e,r,t)},t),o.getAttribute("name")||o.setAttribute("name",n),o.addEventListener("change",()=>{!function(e,t){if(t+1<e.length){const r=document.getElementById(e[t].select);(0,e[t+1].selectData)((r)=>{a(e,t+1,r)},r&&r.value)}}(e,r)})}})}(e)}}},3337:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default={PHONE:768,TABLET:980}},2801:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.initComponentCache=
t.getComponentCache=t.destroyUnfulfilledPromises=t.destroyComponents=t.destroyComponent=t.componentReady=t.component=void 0;const r={};let n={};const o={};let i={};const a={},s=["p_p_id","p_p_lifecycle"],c=["ddmStructureKey","fileEntryTypeId","folderId","navigation","status"],l="liferay.component",u=function(e){let t;if(e)t={promise:Promise.resolve(e),resolve(){}};else{let e;t={promise:new Promise((t)=>{e=t}),resolve:e}}return t},f=function(e,t,r){const n=e.data;Object.keys(n).forEach((e)=>{const t=
r.querySelector("#".concat(e));t&&(t.innerHTML=n[e].html)})},d=function(e){const t=new URL(window.location.href),n=new URL(e.path,window.location.href);if(s.every((e)=>n.searchParams.get(e)===t.searchParams.get(e))){var a=Object.keys(o);a=a.filter((e)=>{const i=o[e];if(!i)return!1;const a=r[e],s=c.every((e)=>{let r=!1;if(a){const o="_".concat(a.portletId,"_").concat(e);r=n.searchParams.get(o)===t.searchParams.get(o)}return r});return"function"==typeof i.isCacheable&&i.isCacheable(n)&&s&&a&&a.cacheState&&
i.element&&i.getState}),i=a.reduce((e,t)=>{const n=o[t],i=r[t],a=n.getState(),s=i.cacheState.reduce((e,t)=>(e[t]=a[t],e),{});return e[t]={html:n.element.innerHTML,state:s},e},[]),Liferay.DOMTaskRunner.addTask({action:f,condition:(e)=>e.owner===l}),Liferay.DOMTaskRunner.addTaskState({data:i,owner:l})}else i={}},p=function(e,t,i){let s;if(1===arguments.length){let t=o[e];t&&"function"==typeof t&&(a[e]=t,t=t(),o[e]=t),s=t}else if(o[e]&&null!==t&&(delete r[e],delete n[e],console.warn('Component with id "'+
e+'" is being registered twice. This can lead to unexpected behaviour in the "Liferay.component" and "Liferay.componentReady" APIs, as well as in the "*:registered" events.')),s=o[e]=t,null===t)delete r[e],delete n[e];else{r[e]=i,Liferay.fire(e+":registered");const o=n[e];o?o.resolve(t):n[e]=u(t)}return s};t.component=p,t.componentReady=function e(){let t,r;if(1===arguments.length)t=arguments[0];else{t=[];for(var o=0;o<arguments.length;o++)t[o]=arguments[o]}if(Array.isArray(t))r=Promise.all(t.map((t)=>
e(t)));else{let e=n[t];e||(n[t]=e=u()),r=e.promise}return r};const h=function(e){const t=o[e];if(t){const i=t.destroy||t.dispose;i&&i.call(t),delete r[e],delete n[e],delete a[e],delete o[e]}};t.destroyComponent=h,t.destroyComponents=function(e){var t=Object.keys(o);e&&(t=t.filter((t)=>e(o[t],r[t]||{}))),t.forEach(h)},t.destroyUnfulfilledPromises=function(){n={}},t.getComponentCache=function(e){const t=i[e];return t?t.state:{}},t.initComponentCache=function(){Liferay.on("startNavigate",d)};var y=p;
t.default=y},5894:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default=class{constructor(){this._disposed=!1}dispose(){this._disposed||(this.disposeInternal(),this._disposed=!0)}disposeInternal(){}isDisposed(){return this._disposed}}},6454:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=i(r(5894)),o=i(r(2045));function i(e){return e&&e.__esModule?e:{default:e}}const a=[0];class s extends n.default{constructor(){super(),this._events=
null,this._listenerHandlers=null,this._shouldUseFacade=!1}_addHandler(e,t){return e?(Array.isArray(e)||(e=[e]),e.push(t)):e=t,e}addListener(e,t,r){this._validateListener(t);const n=this._toEventsArray(e);for(let e=0;e<n.length;e++)this._addSingleListener(n[e],t,r);return new o.default(this,e,t)}_addSingleListener(e,t,r,n){this._runListenerHandlers(e),(r||n)&&(t={default:r,fn:t,origin:n}),this._events=this._events||{},this._events[e]=this._addHandler(this._events[e],t)}_buildFacade(e){if(this.getShouldUseFacade()){const t=
{preventDefault(){t.preventedDefault=!0},target:this,type:e};return t}}disposeInternal(){this._events=null}emit(e){const t=this._getRawListeners(e);if(0===t.length)return!1;const r=Array.prototype.slice.call(arguments,1);return this._runListeners(t,r,this._buildFacade(e)),!0}_getRawListeners(e){return c(this._events&&this._events[e]).concat(c(this._events&&this._events["*"]))}getShouldUseFacade(){return this._shouldUseFacade}listeners(e){return this._getRawListeners(e).map((e)=>e.fn?e.fn:e)}many(e,
t,r){const n=this._toEventsArray(e);for(let e=0;e<n.length;e++)this._many(n[e],t,r);return new o.default(this,e,r)}_many(e,t,r){const n=this;t<=0||n._addSingleListener(e,function o(){0==--t&&n.removeListener(e,o),r.apply(n,arguments)},!1,r)}_matchesListener(e,t){return(e.fn||e)===t||e.origin&&e.origin===t}off(e,t){if(this._validateListener(t),!this._events)return this;const r=this._toEventsArray(e);for(let e=0;e<r.length;e++)this._events[r[e]]=this._removeMatchingListenerObjs(c(this._events[r[e]]),
t);return this}on(){return this.addListener.apply(this,arguments)}onListener(e){this._listenerHandlers=this._addHandler(this._listenerHandlers,e)}once(e,t){return this.many(e,1,t)}removeAllListeners(e){if(this._events)if(e){const t=this._toEventsArray(e);for(let e=0;e<t.length;e++)this._events[t[e]]=null}else this._events=null;return this}_removeMatchingListenerObjs(e,t){const r=[];for(let n=0;n<e.length;n++)this._matchesListener(e[n],t)||r.push(e[n]);return r.length>0?r:null}removeListener(){return this.off.apply(this,
arguments)}_runListenerHandlers(e){let t=this._listenerHandlers;if(t){t=c(t);for(let r=0;r<t.length;r++)t[r](e)}}_runListeners(e,t,r){r&&t.push(r);const n=[];for(let r=0;r<e.length;r++){const o=e[r].fn||e[r];e[r].default?n.push(o):o.apply(this,t)}if(!r||!r.preventedDefault)for(let e=0;e<n.length;e++)n[e].apply(this,t)}setShouldUseFacade(e){return this._shouldUseFacade=e,this}_toEventsArray(e){return"string"==typeof e&&(a[0]=e,e=a),e}_validateListener(e){if("function"!=typeof e)throw new TypeError("Listener must be a function");
}}function c(e){return e=e||[],Array.isArray(e)?e:[e]}var l=s;t.default=l},2045:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n,o=(n=r(5894))&&n.__esModule?n:{default:n};class i extends o.default{constructor(e,t,r){super(),this._emitter=e,this._event=t,this._listener=r}disposeInternal(){this.removeListener(),this._emitter=null,this._listener=null}removeListener(){this._emitter.isDisposed()||this._emitter.removeListener(this._event,this._listener)}}var a=i;t.default=
a},2698:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"portlet",{enumerable:!0,get:function(){return p.default}});var n=G(r(8686)),o=G(r(1593)),i=G(r(8652)),a=G(r(1093)),s=G(r(1991)),c=G(r(3337)),l=r(2801),u=r(34),f=r(9356),d=r(1425),p=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var t=V();if(t&&t.has(e))return t.get(e);var r={},n=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(Object.prototype.hasOwnProperty.call(e,
o)){var i=n?Object.getOwnPropertyDescriptor(e,o):null;i&&(i.get||i.set)?Object.defineProperty(r,o,i):r[o]=e[o]}return r.default=e,t&&t.set(e,r),r}(r(5659)),h=G(r(7370)),y=G(r(9296)),_=G(r(3873)),g=G(r(9094)),v=G(r(6549)),m=G(r(85)),b=G(r(8002)),w=G(r(7494)),O=G(r(7535)),j=G(r(5273)),P=G(r(8206)),S=G(r(7019)),L=G(r(7068)),E=G(r(4968)),T=G(r(8999)),M=G(r(1166)),A=G(r(6797)),I=r(7387),U=G(r(6515)),C=G(r(5506)),R=G(r(7442)),D=G(r(386)),x=G(r(1625)),k=G(r(4294)),F=G(r(1357)),N=G(r(1146)),H=G(r(4821)),
q=G(r(6535)),z=G(r(576)),W=r(3833),B=G(r(7639)),$=G(r(1521));function V(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return V=function(){return e},e}function G(e){return e&&e.__esModule?e:{default:e}}Liferay=window.Liferay||{},Liferay.BREAKPOINTS=c.default,Liferay.component=l.component,Liferay.componentReady=l.componentReady,Liferay.destroyComponent=l.destroyComponent,Liferay.destroyComponents=l.destroyComponents,Liferay.destroyUnfulfilledPromises=l.destroyUnfulfilledPromises,Liferay.getComponentCache=
l.getComponentCache,Liferay.initComponentCache=l.initComponentCache,Liferay.Address={getCountries:_.default,getRegions:g.default},Liferay.DynamicSelect=s.default,Liferay.LayoutExporter={all:u.hideLayoutPane,details:u.toggleLayoutDetails,icons:(0,u.getLayoutIcons)(),proposeLayout:u.proposeLayout,publishToLive:u.publishToLive,selected:u.showLayoutPane},Liferay.Portal={Tabs:{show:f.showTab},ToolTip:{show:d.showTooltip}},Liferay.Portlet=Liferay.Portlet||{},Liferay.Portlet.minimize=p.minimizePortlet,Liferay.Portlet.openModal=
(...e)=>{Liferay.Loader.require("frontend-js-web/liferay/modal/Modal",(t)=>{t.openPortletModal(...e)})},Liferay.Portlet.openWindow=(...e)=>{Liferay.Loader.require("frontend-js-web/liferay/modal/Modal",(t)=>{t.openPortletWindow(...e)})},Liferay.SideNavigation=h.default,Liferay.Util=Liferay.Util||{},Liferay.Util.MAP_HTML_CHARS_ESCAPED=I.MAP_HTML_CHARS_ESCAPED,Liferay.Util.addParams=y.default,Liferay.Util.disableEsc=()=>{document.all&&27===window.event.keyCode&&(window.event.returnValue=!1)},Liferay.Util.escape=
n.default,Liferay.Util.escapeHTML=I.escapeHTML,Liferay.Util.fetch=v.default,Liferay.Util.focusFormField=m.default,Liferay.Util.formatStorage=P.default,Liferay.Util.formatXML=S.default,Liferay.Util.getCropRegion=L.default,Liferay.Util.getDOM=E.default,Liferay.Util.getElement=T.default,Liferay.Util.getFormElement=b.default,Liferay.Util.getPortletId=M.default,Liferay.Util.getPortletNamespace=A.default,Liferay.Util.groupBy=o.default,Liferay.Util.inBrowserView=U.default,Liferay.Util.isEqual=i.default,
Liferay.Util.isPhone=C.default,Liferay.Util.isTablet=R.default,Liferay.Util.navigate=D.default,Liferay.Util.ns=k.default,Liferay.Util.objectToFormData=w.default,Liferay.Util.objectToURLSearchParams=F.default,Liferay.Util.normalizeFriendlyURL=x.default,Liferay.Util.PortletURL={createActionURL:N.default,createPortletURL:H.default,createRenderURL:q.default,createResourceURL:z.default},Liferay.Util.postForm=O.default,Liferay.Util.setFormValues=j.default,Liferay.Util.toCharCode=B.default,Liferay.Util.toggleDisabled=
$.default,Liferay.Util.openModal=(...e)=>{Liferay.Loader.require("frontend-js-web/liferay/modal/Modal",(t)=>{t.openModal(...e)})},Liferay.Util.openSelectionModal=(...e)=>{Liferay.Loader.require("frontend-js-web/liferay/modal/Modal",(t)=>{t.openSelectionModal(...e)})},Liferay.Util.openToast=(...e)=>{Liferay.Loader.require("frontend-js-web/liferay/toast/commands/OpenToast.es",(t)=>{t.openToast(...e)})},Liferay.Util.Session={get:W.getSessionValue,set:W.setSessionValue},Liferay.Util.unescape=a.default,
Liferay.Util.unescapeHTML=I.unescapeHTML},34:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.hideLayoutPane=function(e){var t=(e=e||{}).obj,r=e.pane;t&&t.checked&&(r=document.querySelector(r))&&r.classList.add("hide")},t.getLayoutIcons=function(){return{minus:themeDisplay.getPathThemeImages()+"/arrows/01_minus.png",plus:themeDisplay.getPathThemeImages()+"/arrows/01_plus.png"}},t.proposeLayout=function(e){var t=(e=e||{}).namespace,r=e.reviewers,n='\x3cdiv\x3e\x3cform action\x3d"'+e.url+
'" method\x3d"post"\x3e';if(r.length>0){n+='\x3ctextarea name\x3d"'+t+'description" style\x3d"height: 100px; width: 284px;"\x3e\x3c/textarea\x3e\x3cbr /\x3e\x3cbr /\x3e'+'Revisor'+' \x3cselect name\x3d"'+t+'reviewUserId"\x3e';for(var o=0;o<r.length;o++)n+='\x3coption value\x3d"'+r[o].userId+'"\x3e'+r[o].fullName+"\x3c/option\x3e";n+='\x3c/select\x3e\x3cbr /\x3e\x3cbr /\x3e\x3cinput type\x3d"submit" value\x3d"'+'Proceder'+'" /\x3e'}else n+='Não\x20foram\x20encontrados\x20revisores\x2e'+
"\x3cbr /\x3e"+'Por\x20favor\x2c\x20contate\x20o\x20administrador\x20para\x20atribuir\x20revisores\x2e'+"\x3cbr /\x3e\x3cbr /\x3e";n+="\x3c/form\x3e\x3c/div\x3e",Liferay.Util.openWindow({dialog:{destroyOnHide:!0},title:n})},t.publishToLive=function(e){e=e||{},Liferay.Util.openWindow({dialog:{constrain:!0,modal:!0,on:{visibleChange(e){e.newVal||this.destroy()}}},title:e.title,uri:e.url})},t.showLayoutPane=function(e){var t=(e=e||{}).obj,r=e.pane;t&&t.checked&&(r=document.querySelector(r))&&r.classList.remove("hide")},
t.toggleLayoutDetails=function(e){e=e||{};var t=document.querySelector(e.detail),r=document.querySelector(e.toggle);if(t&&r){var n=themeDisplay.getPathThemeImages()+"/arrows/01_plus.png";t.classList.contains("hide")?(t.classList.remove("hide"),n=themeDisplay.getPathThemeImages()+"/arrows/01_minus.png"):t.classList.add("hide"),r.setAttribute("src",n)}}},9356:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.showTab=function(e,t,r,n){const s=e+(0,o.default)(r),c=document.getElementById(s+
"TabsId"),l=document.getElementById(s+"TabsSection");if(c&&l){const o={id:r,names:t,namespace:e,selectedTab:c,selectedTabSection:l};n&&"function"==typeof n&&n.call(this,e,t,r,o);try{Liferay.on(i,a),Liferay.fire(i,o)}finally{Liferay.detach(i,a)}}},t.applyTabSelectionDOMChanges=a;var n,o=(n=r(7639))&&n.__esModule?n:{default:n};const i="showTab";function a({id:e,names:t,namespace:r,selectedTab:n,selectedTabSection:i}){const a=n.querySelector("a");if(n&&a){const e=n.parentElement.querySelector(".active");
e&&e.classList.remove("active"),a.classList.add("active")}i&&i.classList.remove("hide");const s=document.getElementById(r+"dropdownTitle");let c;s&&a&&(s.innerHTML=a.textContent),t.splice(t.indexOf(e),1);for(var l=0;l<t.length;l++)c=document.getElementById(r+(0,o.default)(t[l])+"TabsSection"),c&&c.classList.add("hide")}},1425:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.showTooltip=function(e,t){e.setAttribute("title",t),e.classList.add("lfr-portal-tooltip")}},7212:(e,t,r)=>{Object.defineProperty(t,
"__esModule",{value:!0}),t.default=t.PortletInit=void 0;var n=l(r(8633)),o=l(r(6549)),i=l(r(889)),a=l(r(1842)),s=l(r(7737)),c=r(6134);function l(e){return e&&e.__esModule?e:{default:e}}function u(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function f(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,
writable:!0}):e[t]=r,e}const d=window.history&&window.history.pushState;let p=!1;const h={},y=[];let _;class g{constructor(e){this._portletId=e,this.constants=function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?u(Object(r),!0).forEach(function(t){f(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):u(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}({},
s.default),_||(_=r.g.portlet.data.pageRenderState,this._updateHistory(!0)),this.portletModes=_.portlets[this._portletId].allowedPM.slice(0),this.windowStates=_.portlets[this._portletId].allowedWS.slice(0)}_executeAction(e,t){return new Promise((r,n)=>{(0,c.getUrl)(_,"ACTION",this._portletId,e).then((e)=>{const i=(0,c.generateActionUrl)(this._portletId,e,t);(0,o.default)(i.url,i).then((e)=>e.text()).then((e)=>{const t=this._updatePageStateFromString(e,this._portletId);r(t)}).catch((e)=>{n(e)})})})}_hasListener(e){return Object.keys(h).map((e)=>
h[e].id).includes(e)}_reportError(e,t){Object.keys(h).map((r)=>{const n=h[r];return n.id===e&&"portlet.onError"===n.type&&setTimeout(()=>{n.handler("portlet.onError",t)}),!1})}_setPageState(e,t){if("string"!=typeof t)throw new TypeError("Invalid update string: ".concat(t));this._updatePageState(t,e).then((e)=>{this._updatePortletStates(e)},(t)=>{p=!1,this._reportError(e,t)})}_setState(e){const t=(0,c.getUpdatedPublicRenderParameters)(_,this._portletId,e),r=[];Object.keys(t).forEach((e)=>{const n=
t[e],o=_.prpMap[e];Object.keys(o).forEach((e)=>{if(e!==this._portletId){const t=o[e].split("|"),i=t[0],a=t[1];void 0===n?delete _.portlets[i].state.parameters[a]:_.portlets[i].state.parameters[a]=[...n],r.push(i)}})});const n=this._portletId;return _.portlets[n].state=e,r.push(n),r.forEach((e)=>{_.portlets[e].renderData.content=null}),this._updateHistory(),Promise.resolve(r)}_setupAction(e,t){if(this.isInProgress())throw{message:"Operation is already in progress",name:"AccessDeniedException"};if(!this._hasListener(this._portletId))throw{message:"No onStateChange listener registered for portlet: ".concat(this._portletId),
name:"NotInitializedException"};return p=!0,this._executeAction(e,t).then((e)=>this._updatePortletStates(e).then((e)=>(p=!1,e)),(e)=>{p=!1,this._reportError(this._portletId,e)})}_updateHistory(e){d&&(0,c.getUrl)(_,"RENDER",null,{}).then((t)=>{const r=JSON.stringify(_);if(e)history.replaceState(r,"");else try{history.pushState(r,"",t)}catch(e){}})}_updatePageState(e){return new Promise((t,r)=>{try{t(this._updatePageStateFromString(e,this._portletId))}catch(e){r(new Error("Partial Action decode status: ".concat(e.message)))}})}_updatePageStateFromString(e,
t){const r=(0,c.decodeUpdateString)(_,e),n=[];let o=!1;return Object.entries(r).forEach(([e,t])=>{_.portlets[e]=t,n.push(e),o=!0}),o&&t&&this._updateHistory(),n}_updatePortletStates(e){return new Promise((t)=>{0===e.length?p=!1:e.forEach((e)=>{this._updateStateForPortlet(e)}),t(e)})}_updateState(e){if(p)throw{message:"Operation in progress",name:"AccessDeniedException"};if(!this._hasListener(this._portletId))throw{message:"No onStateChange listener registered for portlet: ".concat(this._portletId),
name:"NotInitializedException"};p=!0,this._setState(e).then((e)=>{this._updatePortletStates(e)}).catch((e)=>{p=!1,this._reportError(this._portletId,e)})}_updateStateForPortlet(e){const t=y.map((e)=>e.handle);Object.entries(h).forEach(([r,n])=>{"portlet.onStateChange"===n.type&&(n.id!==e||t.includes(r)||y.push(n))}),y.length>0&&setTimeout(()=>{for(p=!0;y.length>0;){const e=y.shift(),t=e.handler,r=e.id;if(!_.portlets[r])continue;const n=_.portlets[r].renderData,o=new a.default(_.portlets[r].state);
n&&n.content?t("portlet.onStateChange",o,n):t("portlet.onStateChange",o)}p=!1})}action(...e){let t=null,r=0,n=null;return e.forEach((e)=>{if(e instanceof HTMLFormElement){if(null!==n)throw new TypeError("Too many [object HTMLFormElement] arguments: ".concat(e,", ").concat(n));n=e}else if((0,i.default)(e)){if((0,c.validateParameters)(e),null!==t)throw new TypeError("Too many parameters arguments");t=e}else if(void 0!==e){const t=Object.prototype.toString.call(e);throw new TypeError("Invalid argument type. Argument ".concat(r+
1," is of type ").concat(t));}r++}),n&&(0,c.validateForm)(n),this._setupAction(t,n).then((e)=>{Promise.resolve(e)}).catch((e)=>{Promise.reject(e)})}addEventListener(e,t){if(arguments.length>2)throw new TypeError("Too many arguments passed to addEventListener");if("string"!=typeof e||"function"!=typeof t)throw new TypeError("Invalid arguments passed to addEventListener");const r=this._portletId;if(e.startsWith("portlet.")&&"portlet.onStateChange"!==e&&"portlet.onError"!==e)throw new TypeError("The system event type is invalid: ".concat(e));
const o=(0,n.default)(),i={handle:o,handler:t,id:r,type:e};return h[o]=i,"portlet.onStateChange"===e&&this._updateStateForPortlet(this._portletId),o}createResourceUrl(e,t,r){if(arguments.length>3)throw new TypeError("Too many arguments. 3 arguments are allowed.");if(e){if(!(0,i.default)(e))throw new TypeError("Invalid argument type. Resource parameters must be a parameters object.");(0,c.validateParameters)(e)}let n=null;if(t){if("string"!=typeof t)throw new TypeError("Invalid argument type. Cacheability argument must be a string.");
if("cacheLevelPage"!==t&&"cacheLevelPortlet"!==t&&"cacheLevelFull"!==t)throw new TypeError("Invalid cacheability argument: ".concat(t));n=t}if(n||(n="cacheLevelPage"),r&&"string"!=typeof r)throw new TypeError("Invalid argument type. Resource ID argument must be a string.");return(0,c.getUrl)(_,"RESOURCE",this._portletId,e,n,r)}dispatchClientEvent(e,t){if((0,c.validateArguments)(arguments,2,2,["string"]),e.match(new RegExp("^portlet[.].*")))throw new TypeError("The event type is invalid: "+e);return Object.keys(h).reduce((r,
n)=>{const o=h[n];return e.match(o.type)&&(o.handler(e,t),r++),r},0)}isInProgress(){return p}newParameters(e={}){const t={};return Object.keys(e).forEach((r)=>{Array.isArray(e[r])&&(t[r]=[...e[r]])}),t}newState(e){return new a.default(e)}removeEventListener(e){if(arguments.length>1)throw new TypeError("Too many arguments passed to removeEventListener");if(null==e)throw new TypeError("The event handle provided is ".concat(typeof e));let t=!1;if((0,i.default)(h[e])&&h[e].id===this._portletId){delete h[e];
const r=y.length;for(let t=0;t<r;t++){const r=y[t];r&&r.handle===e&&y.splice(t,1)}t=!0}if(!t)throw new TypeError("The event listener handle doesn't match any listeners.");}setRenderState(e){if((0,c.validateArguments)(arguments,1,1,["object"]),_.portlets&&_.portlets[this._portletId]){const t=_.portlets[this._portletId];(0,c.validateState)(e,t),this._updateState(e)}}startPartialAction(e){const t=this;let r=null;if(arguments.length>1)throw new TypeError("Too many arguments. 1 arguments are allowed");
if(void 0!==e){if(!(0,i.default)(e))throw new TypeError("Invalid argument type. Argument is of type ".concat(typeof e));(0,c.validateParameters)(e),r=e}if(!0===p)throw{message:"Operation in progress",name:"AccessDeniedException"};if(!this._hasListener(this._portletId))throw{message:"No onStateChange listener registered for portlet: ".concat(this._portletId),name:"NotInitializedException"};p=!0;const n={setPageState(e){t._setPageState(t._portletId,e)},url:""};return(0,c.getUrl)(_,"PARTIAL_ACTION",
this._portletId,r).then((e)=>(n.url=e,n))}}t.PortletInit=g;var v=g;t.default=v},1842:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.RenderState=void 0;var n=i(r(889)),o=i(r(7737));function i(e){return e&&e.__esModule?e:{default:e}}class a{constructor(e){(0,n.default)(e)?this.from(e):(this.parameters={},this.portletMode=o.default.VIEW,this.windowState=o.default.NORMAL)}clone(){return new a(this)}from(e){this.parameters={},Object.keys(e.parameters).forEach((t)=>{Array.isArray(e.parameters[t])&&
(this.parameters[t]=e.parameters[t].slice(0))}),this.setPortletMode(e.portletMode),this.setWindowState(e.windowState)}getPortletMode(){return this.portletMode}getValue(e,t){if("string"!=typeof e)throw new TypeError("Parameter name must be a string");let r=this.parameters[e];return Array.isArray(r)&&(r=r[0]),void 0===r&&void 0!==t&&(r=t),r}getValues(e,t){if("string"!=typeof e)throw new TypeError("Parameter name must be a string");return this.parameters[e]||t}getWindowState(){return this.windowState}remove(e){if("string"!=
typeof e)throw new TypeError("Parameter name must be a string");void 0!==this.parameters[e]&&delete this.parameters[e]}setPortletMode(e){if("string"!=typeof e)throw new TypeError("Portlet Mode must be a string");e!==o.default.EDIT&&e!==o.default.HELP&&e!==o.default.VIEW||(this.portletMode=e)}setValue(e,t){if("string"!=typeof e)throw new TypeError("Parameter name must be a string");if("string"!=typeof t&&null!==t&&!Array.isArray(t))throw new TypeError("Parameter value must be a string, an array or null");
Array.isArray(t)||(t=[t]),this.parameters[e]=t}setValues(e,t){this.setValue(e,t)}setWindowState(e){if("string"!=typeof e)throw new TypeError("Window State must be a string");e!==o.default.MAXIMIZED&&e!==o.default.MINIMIZED&&e!==o.default.NORMAL||(this.windowState=e)}}t.RenderState=a;var s=a;t.default=s},5659:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.minimizePortlet=function(e,t,r){r=function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?c(Object(r),
!0).forEach(function(t){l(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):c(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}({doAsUserId:themeDisplay.getDoAsUserIdEncoded(),plid:themeDisplay.getPlid()},r);const s=document.querySelector(e);if(s){const e=s.querySelector(".portlet-content-container");if(e){const c=e.classList.contains("d-none");if(c?(e.classList.remove("d-none"),s.classList.remove("portlet-minimized")):
(e.classList.add("d-none"),s.classList.add("portlet-minimized")),t){const e=c?'Minimizar':'Restaurar';t.setAttribute("alt",e),t.setAttribute("title",e);const r=t.querySelector(".taglib-text-icon");r&&(r.innerHTML=e);const n=t.querySelector("i");n&&(n.classList.remove("icon-minus","icon-resize-vertical"),c?(n.classList.add("icon-minus"),n.classList.remove("icon-resize-vertical")):(n.classList.add("icon-resize-vertical"),n.classList.remove("icon-minus")))}const l=
(0,i.default)(s.id),u=(0,o.default)({cmd:"minimize",doAsUserId:r.doAsUserId,p_auth:Liferay.authToken,p_l_id:r.plid,p_p_id:l,p_p_restore:c,p_v_l_s_g_id:themeDisplay.getSiteGroupId()});(0,n.default)(themeDisplay.getPathMain()+"/portal/update_layout",{body:u,method:"POST"}).then((e)=>{if(e.ok&&c){const e={doAsUserId:r.doAsUserId,p_l_id:r.plid,p_p_boundary:!1,p_p_id:l,p_p_isolated:!0};(0,n.default)((0,a.default)(themeDisplay.getPathMain()+"/portal/render_portlet",e)).then((e)=>e.text()).then((e)=>{const t=
document.createRange();t.selectNode(s),s.innerHTML="";const r=t.createContextualFragment(e);s.appendChild(r)}).catch((e)=>{})}}).catch((e)=>{})}}},t.default=void 0;var n=s(r(6549)),o=s(r(7494)),i=s(r(1166)),a=s(r(4821));function s(e){return e&&e.__esModule?e:{default:e}}function c(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function l(e,
t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var u={register:s(r(8203)).default};t.default=u},7737:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.PortletConstants=void 0;const r={EDIT:"edit",HELP:"help",VIEW:"view",MAXIMIZED:"maximized",MINIMIZED:"minimized",NORMAL:"normal",FULL:"cacheLevelFull",PAGE:"cacheLevelPage",PORTLET:"cacheLevelPortlet"};t.PortletConstants=r;var n=r;t.default=n},6134:(e,t)=>{Object.defineProperty(t,
"__esModule",{value:!0}),t.validateState=t.validatePortletId=t.validateParameters=t.validateForm=t.validateArguments=t.getUrl=t.getUpdatedPublicRenderParameters=t.generatePortletModeAndWindowStateString=t.generateActionUrl=t.encodeFormAsString=t.decodeUpdateString=void 0;const r="p_r_p_",n="priv_r_p_",o=function(e,t){let r=!1;void 0===e&&void 0===t&&(r=!0),void 0!==e&&void 0!==t||(r=!1),e.length!==t.length&&(r=!1);for(let n=e.length-1;n>=0;n--)e[n]!==t[n]&&(r=!1);return r};t.decodeUpdateString=function(e,
t){const r=e&&e.portlets?e.portlets:{};try{const n=JSON.parse(t);n.portlets&&Object.keys(r).forEach((t)=>{const i=n.portlets[t].state,a=r[t].state;if(!i||!a)throw new Error("Invalid update string.\nold state\x3d".concat(a,"\nnew state\x3d").concat(i));(function(e,t,r){let n=!1;if(e&&e.portlets&&e.portlets[r]){const i=e.portlets[r].state;if(!t.portletMode||!t.windowState||!t.parameters)throw new Error("Error decoding state: ".concat(t));t.porletMode!==i.portletMode||t.windowState!==i.windowState?n=
!0:(Object.keys(t.parameters).forEach((e)=>{const r=t.parameters[e],a=i.parameters[e];o(r,a)||(n=!0)}),Object.keys(i.parameters).forEach((e)=>{t.parameters[e]||(n=!0)}))}return n})(e,i,t)&&(r[t]=n.portlets[t])})}catch(e){}return r};const i=function(e,t){const r=[];for(let n=0;n<t.elements.length;n++){const o=t.elements[n],i=o.name,a=o.nodeName.toUpperCase(),s="INPUT"===a?o.type.toUpperCase():"",c=o.value;if(i&&!o.disabled&&"FILE"!==s)if("SELECT"===a&&o.multiple)[...o.options].forEach((t)=>{if(t.checked){const n=
t.value,o=encodeURIComponent(e+i)+"\x3d"+encodeURIComponent(n);r.push(o)}});else if("CHECKBOX"!==s&&"RADIO"!==s||o.checked){const t=encodeURIComponent(e+i)+"\x3d"+encodeURIComponent(c);r.push(t)}}return r.join("\x26")};t.encodeFormAsString=i;const a=function(e,t){let r="";return Array.isArray(t)&&(0===t.length?r+="\x26"+encodeURIComponent(e)+"\x3d":t.forEach((t)=>{r+="\x26"+encodeURIComponent(e),r+=null===t?"\x3d":"\x3d"+encodeURIComponent(t)})),r};t.generateActionUrl=function(e,t,r){const n={credentials:"same-origin",
method:"POST",url:t};if(r)if("multipart/form-data"===r.enctype){const e=new FormData(r);n.body=e}else{const o=i(e,r);"GET"===(r.method?r.method.toUpperCase():"GET")?(t.indexOf("?")>=0?t+="\x26".concat(o):t+="?".concat(o),n.url=t):(n.body=o,n.headers={"Content-Type":"application/x-www-form-urlencoded"})}return n};const s=function(e,t,o,i,s){let c="";if(e.portlets&&e.portlets[t]){const l=e.portlets[t];if(l&&l.state&&l.state.parameters){const e=l.state.parameters[o];void 0!==e&&(c+=a(i===r?s:i===n?t+
n+o:t+o,e))}}return c},c=function(e,t){let r="";if(e.portlets){const n=e.portlets[t];if(n.state){const e=n.state;r+="\x26p_p_mode\x3d"+encodeURIComponent(e.portletMode),r+="\x26p_p_state\x3d"+encodeURIComponent(e.windowState)}}return r};t.generatePortletModeAndWindowStateString=c,t.getUpdatedPublicRenderParameters=function(e,t,r){const n={};if(e&&e.portlets){const i=e.portlets[t];if(i&&i.pubParms){const a=i.pubParms;Object.keys(a).forEach((i)=>{if(!function(e,t,r,n){let i=!1;if(e&&e.portlets){const a=
e.portlets[t];if(r.parameters[n]&&a.state.parameters[n]){const e=r.parameters[n],t=a.state.parameters[n];i=o(e,t)}}return i}(e,t,r,i)){const e=a[i];n[e]=r.parameters[i]}})}}return n},t.getUrl=function(e,t,o,i,l,u){let f="cacheLevelPage",d="",p="";if(e&&e.portlets){"RENDER"===t&&void 0===o&&(o=null);const i=e.portlets[o];if(i&&("RESOURCE"===t?(p=decodeURIComponent(i.encodedResourceURL),l&&(f=l),p+="\x26p_p_cacheability\x3d"+encodeURIComponent(f),u&&(p+="\x26p_p_resource_id\x3d"+encodeURIComponent(u))):
"RENDER"===t&&null!==o?p=decodeURIComponent(i.encodedRenderURL):"RENDER"===t?p=decodeURIComponent(e.encodedCurrentURL):"ACTION"===t?(p=decodeURIComponent(i.encodedActionURL),p+="\x26p_p_hub\x3d"+encodeURIComponent("0")):"PARTIAL_ACTION"===t&&(p=decodeURIComponent(i.encodedActionURL),p+="\x26p_p_hub\x3d"+encodeURIComponent("1")),"RESOURCE"!==t||"cacheLevelFull"!==f)){if(o&&(p+=c(e,o)),o&&(d="",i.state&&i.state.parameters)){const t=i.state.parameters;Object.keys(t).forEach((t)=>{(function(e,t,r){let n=
!1;if(e&&e.portlets){const o=e.portlets[t];o&&o.pubParms&&(n=Object.keys(o.pubParms).includes(r))}return n})(e,o,t)||(d+=s(e,o,t,n))}),p+=d}if(e.prpMap){d="";const t={};Object.keys(e.prpMap).forEach((n)=>{Object.keys(e.prpMap[n]).forEach((o)=>{const i=e.prpMap[n][o].split("|");Object.hasOwnProperty.call(t,n)||(t[n]=s(e,i[0],i[1],r,n),d+=t[n])})}),p+=d}}}return i&&(d="",Object.keys(i).forEach((e)=>{d+=a(o+e,i[e])}),p+=d),Promise.resolve(p)},t.validateArguments=function(e=[],t=0,r=1,n=[]){if(e.length<
t)throw new TypeError("Too few arguments provided: Number of arguments: ".concat(e.length));if(e.length>r)throw new TypeError("Too many arguments provided: ".concat([].join.call(e,", ")));if(Array.isArray(n)){let t=Math.min(e.length,n.length)-1;for(;t>=0;t--){if(typeof e[t]!==n[t])throw new TypeError("Parameter ".concat(t," is of type ").concat(typeof e[t]," rather than the expected type ").concat(n[t]));if(null===e[t]||void 0===e[t])throw new TypeError("Argument is ".concat(typeof e[t]));}}},t.validateForm=
function(e){if(!(e instanceof HTMLFormElement))throw new TypeError("Element must be an HTMLFormElement");const t=e.method?e.method.toUpperCase():void 0;if(t&&"GET"!==t&&"POST"!==t)throw new TypeError("Invalid form method ".concat(t,". Allowed methods are GET \x26 POST"));const r=e.enctype;if(r&&"application/x-www-form-urlencoded"!==r&&"multipart/form-data"!==r)throw new TypeError("Invalid form enctype ".concat(r,". Allowed: 'application/x-www-form-urlencoded' \x26 'multipart/form-data'"));if(r&&"multipart/form-data"===
r&&"POST"!==t)throw new TypeError("Invalid method with multipart/form-data. Must be POST");if(!r||"application/x-www-form-urlencoded"===r){const t=e.elements.length;for(let r=0;r<t;r++)if("INPUT"===e.elements[r].nodeName.toUpperCase()&&"FILE"===e.elements[r].type.toUpperCase())throw new TypeError("Must use enctype \x3d 'multipart/form-data' with input type FILE.");}};const l=function(e){if(null==e)throw new TypeError("The parameter object is: ".concat(typeof e));Object.keys(e).forEach((t)=>{if(!Array.isArray(e[t]))throw new TypeError("".concat(t,
" parameter is not an array"));if(!e[t].length)throw new TypeError("".concat(t," parameter is an empty array"));})};t.validateParameters=l,t.validatePortletId=function(e={},t=""){return e.portlets&&Object.keys(e.portlets).includes(t)},t.validateState=function(e={},t={}){l(e.parameters);const r=e.portletMode;if("string"!=typeof r)throw new TypeError("Invalid parameters. portletMode is ".concat(typeof r));{const e=t.allowedPM;if(!e.includes(r.toLowerCase()))throw new TypeError("Invalid portletMode\x3d".concat(r,
" is not in ").concat(e));}const n=e.windowState;if("string"!=typeof n)throw new TypeError("Invalid parameters. windowState is ".concat(typeof n));{const e=t.allowedWS;if(!e.includes(n.toLowerCase()))throw new TypeError("Invalid windowState\x3d".concat(n," is not in ").concat(e));}}},8203:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.register=void 0;var n,o=(n=r(7212))&&n.__esModule?n:{default:n},i=r(6134);const a=function(e){(0,i.validateArguments)(arguments,1,1,["string"]);
const t=r.g.portlet.data.pageRenderState;return new Promise((r,n)=>{(0,i.validatePortletId)(t,e)?r(new o.default(e)):n(new Error("Invalid portlet ID"))})};t.register=a;var s=a;t.default=s},7370:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n,o=(n=r(6454))&&n.__esModule?n:{default:n};function i(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),
r.push.apply(r,n)}return r}function a(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?i(Object(r),!0).forEach(function(t){s(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):i(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function s(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const c=
{breakpoint:768,content:".sidenav-content",gutter:"0px",loadingIndicatorTPL:'\x3cdiv class\x3d"loading-animation loading-animation-md"\x3e\x3c/div\x3e',navigation:".sidenav-menu-slider",position:"left",type:"relative",typeMobile:"relative",url:null,width:"225px"},l=new WeakMap;function u(e){if(e&&e.jquery){if(e.length>1)throw new Error("getElement(): Expected at most one element, got ".concat(e.length));e=e.get(0)}return!e||e instanceof HTMLElement||(e=e.element),e}function f(e){return e=u(e),l.get(e)}
const d=[/^aria-/,/^data-/,/^type$/];function p(e,t){y(e,{[t]:!0})}function h(e,t){y(e,{[t]:!1})}function y(e,t){(e=u(e))&&Object.entries(t).forEach(([t,r])=>{t.split(/\s+/).forEach((t)=>{r?e.classList.add(t):e.classList.remove(t)})})}function _(e,t){return e=u(e),t.split(/\s+/).every((t)=>e.classList.contains(t))}function g(e,t){(e=u(e))&&Object.entries(t).forEach(([t,r])=>{e.style[t]=r})}function v(e){return"number"==typeof e?e+"px":"string"==typeof e&&e.match(/^\s*\d+\s*$/)?e.trim()+"px":e}function m(e){return e.getBoundingClientRect().left+
(e.ownerDocument.defaultView.pageOffsetX||0)}const b={};function w(e,t,r){if(e){b[t]||(b[t]={},document.body.addEventListener(t,(e)=>function(e,t){Object.keys(b[e]).forEach((r)=>{let n=!1,o=t.target;for(;o&&(n=o.matches&&o.matches(r),!n);)o=o.parentNode;n&&b[e][r].emit("click",t)})}(t,e)));const n=b[t],i="string"==typeof e?e:function(e){if((e=u(e)).id)return"#".concat(e.id);let t=e.parentNode;for(;t&&!t.id;)t=t.parentNode;const r=Array.from(e.attributes).map(({name:e,value:t})=>d.some((t)=>t.test(e))?
"[".concat(e,"\x3d").concat(JSON.stringify(t),"]"):null).filter(Boolean).sort();return[t?"#".concat(t.id," "):"",e.tagName.toLowerCase(),...r].join("")}(e);n[i]||(n[i]=new o.default);const a=n[i].on(t,(e)=>{e.defaultPrevented||r(e)});return{dispose(){a.dispose()}}}return null}function O(e){return parseInt(e,10)||0}function j(e,t){e=u(e),this.init(e,t)}function P(){const e=document.querySelectorAll('[data-toggle\x3d"liferay-sidenav"]');Array.from(e).forEach(j.initialize)}j.TRANSITION_DURATION=500,
j.prototype={_bindUI(){this._subscribeClickTrigger(),this._subscribeClickSidenavClose()},_emit(e){this._emitter.emit(e,this)},_getSidenavWidth(){const e=this.options.widthOriginal;let t=e;const r=window.innerWidth;return r<e+40&&(t=r-40),t},_getSimpleSidenavType(){const e=this.options,t=this._isDesktop(),r=e.type,n=e.typeMobile;return t&&"fixed-push"===r?"desktop-fixed-push":t||"fixed-push"!==n?"fixed":"mobile-fixed-push"},_isDesktop(){return window.innerWidth>=this.options.breakpoint},_isSidenavRight(){const e=
this.options;return _(document.querySelector(e.container),"sidenav-right")},_isSimpleSidenavClosed(){const e=this.options,t=e.openClass;return!_(document.querySelector(e.container),t)},_loadUrl(e,t){const r=this,n=e.querySelector(".sidebar-body");if(!r._fetchPromise&&n){for(;n.firstChild;)n.removeChild(n.firstChild);const e=document.createElement("div");p(e,"sidenav-loading"),e.innerHTML=r.options.loadingIndicatorTPL,n.appendChild(e),r._fetchPromise=Liferay.Util.fetch(t),r._fetchPromise.then((e)=>
{if(!e.ok)throw new Error("Failed to fetch ".concat(t));return e.text()}).then((t)=>{const o=document.createRange();o.selectNode(n);const i=o.createContextualFragment(t);n.removeChild(e),n.appendChild(i),r.setHeight()}).catch((e)=>{console.error(e)})}},_renderNav(){const e=this,t=e.options,r=document.querySelector(t.container),n=r.querySelector(t.navigation).querySelector(".sidenav-menu"),o=_(r,"closed"),i=e._isSidenavRight(),a=e._getSidenavWidth();o?(g(n,{width:v(a)}),i&&g(n,{[t.rtl?"left":"right"]:v(a)})):
(e.showSidenav(),e.setHeight())},_renderUI(){const e=this,t=e.options,r=document.querySelector(t.container),n=e.toggler,o=e.mobile,i=o?t.typeMobile:t.type;e.useDataAttribute||(o&&(y(r,{closed:!0,open:!1}),y(n,{active:!1,open:!1})),"right"===t.position&&p(r,"sidenav-right"),"relative"!==i&&p(r,"sidenav-fixed"),e._renderNav()),g(r,{display:""})},_subscribeClickSidenavClose(){const e=this,t=e.options.container;if(!e._sidenavCloseSubscription){const r="".concat(t," .sidenav-close");e._sidenavCloseSubscription=
w(r,"click",function(t){t.preventDefault(),e.toggle()})}},_subscribeClickTrigger(){const e=this;if(!e._togglerSubscription){const t=e.toggler;e._togglerSubscription=w(t,"click",function(t){e.toggle(),t.preventDefault()})}},_subscribeSidenavTransitionEnd(e,t){setTimeout(()=>{h(e,"sidenav-transition"),t()},j.TRANSITION_DURATION)},clearHeight(){const e=this.options,t=document.querySelector(e.container);t&&[t.querySelector(e.content),t.querySelector(e.navigation),t.querySelector(".sidenav-menu")].forEach((e)=>
{g(e,{height:"","min-height":""})})},destroy(){const e=this;e._sidenavCloseSubscription&&(e._sidenavCloseSubscription.dispose(),e._sidenavCloseSubscription=null),e._togglerSubscription&&(e._togglerSubscription.dispose(),e._togglerSubscription=null),l.delete(e.toggler)},hide(){const e=this;e.useDataAttribute?e.hideSimpleSidenav():e.toggleNavigation(!1)},hideSidenav(){const e=this,t=e.options,r=document.querySelector(t.container);if(r){const n=r.querySelector(t.content),o=r.querySelector(t.navigation),
i=o.querySelector(".sidenav-menu"),a=e._isSidenavRight();let s=t.rtl?"right":"left";a&&(s=t.rtl?"left":"right"),g(n,{["padding-"+s]:"",[s]:""}),g(o,{width:""}),a&&g(i,{[s]:v(e._getSidenavWidth())})}},hideSimpleSidenav(){const e=this,t=e.options;if(!e._isSimpleSidenavClosed()){const r=document.querySelector(t.content),n=document.querySelector(t.container),o=t.closedClass,i=t.openClass,a=e.toggler,s=a.dataset.target||a.getAttribute("href");e._emit("closedStart.lexicon.sidenav"),e._subscribeSidenavTransitionEnd(r,
()=>{h(n,"sidenav-transition"),h(a,"sidenav-transition"),e._emit("closed.lexicon.sidenav")}),_(r,i)&&y(r,{[o]:!0,[i]:!1,"sidenav-transition":!0}),p(n,"sidenav-transition"),p(a,"sidenav-transition"),y(n,{[o]:!0,[i]:!1});const c=document.querySelectorAll('[data-target\x3d"'.concat(s,'"], [href\x3d"').concat(s,'"]'));Array.from(c).forEach((e)=>{y(e,{active:!1,[i]:!1}),y(e,{active:!1,[i]:!1})})}},init(e,t){const r=this,n="liferay-sidenav"===e.dataset.toggle;(t=a(a({},c),t)).breakpoint=O(t.breakpoint),
t.container=t.container||e.dataset.target||e.getAttribute("href"),t.gutter=O(t.gutter),t.rtl="rtl"===document.dir,t.width=O(t.width),t.widthOriginal=t.width,n&&(t.closedClass=e.dataset.closedClass||"closed",t.content=e.dataset.content,t.loadingIndicatorTPL=e.dataset.loadingIndicatorTpl||t.loadingIndicatorTPL,t.openClass=e.dataset.openClass||"open",t.type=e.dataset.type,t.typeMobile=e.dataset.typeMobile,t.url=e.dataset.url,t.width=""),r.toggler=e,r.options=t,r.useDataAttribute=n,r._emitter=new o.default,
r._bindUI(),r._renderUI()},on(e,t){return this._emitter.on(e,t)},setHeight(){const e=this.options,t=document.querySelector(e.container),r=this.mobile?e.typeMobile:e.type;if("fixed"!==r&&"fixed-push"!==r){const r=t.querySelector(e.content),n=t.querySelector(e.navigation),o=t.querySelector(".sidenav-menu"),i=r.getBoundingClientRect().height,a=n.getBoundingClientRect().height,s=v(Math.max(i,a));g(r,{"min-height":s}),g(n,{height:"100%","min-height":s}),g(o,{height:"100%","min-height":s})}},show(){const e=
this;e.useDataAttribute?e.showSimpleSidenav():e.toggleNavigation(!0)},showSidenav(){const e=this,t=e.mobile,r=e.options,n=document.querySelector(r.container),o=n.querySelector(r.content),i=n.querySelector(r.navigation),a=i.querySelector(".sidenav-menu"),s=e._isSidenavRight(),c=e._getSidenavWidth(),l=c+r.gutter,u=r.url;u&&e._loadUrl(a,u),g(i,{width:v(c)}),g(a,{width:v(c)});let f=r.rtl?"right":"left";s&&(f=r.rtl?"left":"right");const d=t?f:"padding-"+f;if("fixed"!==(t?r.typeMobile:r.type)){let e=_(n,
"open")?m(i)-r.gutter:m(i)-l;const t=m(o),a=O(getComputedStyle(o).width);let c="";r.rtl&&s||!r.rtl&&"left"===r.position?(e=m(i)+l,e>t&&(c=e-t)):(r.rtl&&"left"===r.position||!r.rtl&&s)&&e<t+a&&(c=t+a-e,c>=l&&(c=l)),g(o,{[d]:v(c)})}},showSimpleSidenav(){const e=this,t=e.options;if(e._isSimpleSidenavClosed()){const r=document.querySelector(t.content),n=document.querySelector(t.container),o=t.closedClass,i=t.openClass,a=e.toggler,s=a.dataset.url;s&&e._loadUrl(n,s),e._emit("openStart.lexicon.sidenav"),
e._subscribeSidenavTransitionEnd(r,()=>{h(n,"sidenav-transition"),h(a,"sidenav-transition"),e._emit("open.lexicon.sidenav")}),y(r,{[o]:!1,[i]:!0,"sidenav-transition":!0}),y(n,{[o]:!1,[i]:!0,"sidenav-transition":!0}),y(a,{active:!0,[i]:!0,"sidenav-transition":!0})}},toggle(){const e=this;e.useDataAttribute?e.toggleSimpleSidenav():e.toggleNavigation()},toggleNavigation(e){const t=this,r=t.options,n=document.querySelector(r.container),o=n.querySelector(".sidenav-menu"),i=t.toggler,a=r.width,s="boolean"==
typeof e?e:_(n,"closed"),c=t._isSidenavRight();if(s?t._emit("openStart.lexicon.sidenav"):t._emit("closedStart.lexicon.sidenav"),t._subscribeSidenavTransitionEnd(n,()=>{const e=n.querySelector(".sidenav-menu");_(n,"closed")?(t.clearHeight(),y(i,{open:!1,"sidenav-transition":!1}),t._emit("closed.lexicon.sidenav")):(y(i,{open:!0,"sidenav-transition":!1}),t._emit("open.lexicon.sidenav")),t.mobile&&e.focus()}),s){t.setHeight(),g(o,{width:v(a)});const e=r.rtl?"left":"right";c&&g(o,{[e]:""})}p(n,"sidenav-transition"),
p(i,"sidenav-transition"),s?t.showSidenav():t.hideSidenav(),y(n,{closed:!s,open:s}),y(i,{active:s,open:s})},toggleSimpleSidenav(){const e=this;e._isSimpleSidenavClosed()?e.showSimpleSidenav():e.hideSimpleSidenav()},visible(){const e=this;let t;if(e.useDataAttribute)t=e._isSimpleSidenavClosed();else{const r=document.querySelector(e.options.container);t=_(r,"sidenav-transition")?!_(r,"closed"):_(r,"closed")}return!t}},j.destroy=function(e){const t=f(e);t&&t.destroy()},j.hide=function(e){const t=f(e);
t&&t.hide()},j.initialize=function(e,t={}){e=u(e);let r=l.get(e);return r||(r=new j(e,t),l.set(e,r)),r},j.instance=f,"loading"!==document.readyState?P():document.addEventListener("DOMContentLoaded",()=>{P()});var S=j;t.default=S},9296:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){if(!e||"object"!=typeof e&&"string"!=typeof e)throw new TypeError("Parameter params must be an object or string");if("string"!=typeof t)throw new TypeError("Parameter baseUrl must be a string");
const r=t.startsWith("/")?new URL(t,location.href):new URL(t);return"object"==typeof e?Object.entries(e).forEach(([e,t])=>{r.searchParams.append(e,t)}):(new URLSearchParams(e.trim())).forEach((e,t)=>{e?r.searchParams.append(t,e):r.searchParams.append(t,"")}),r.toString()}},3873:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){if("function"!=typeof e)throw new TypeError("Parameter callback must be a function");Liferay.Service("/country/get-countries",{active:!0},e)}},
9094:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){if("function"!=typeof e)throw new TypeError("Parameter callback must be a function");if("string"!=typeof t)throw new TypeError("Parameter selectKey must be a string");Liferay.Service("/region/get-regions",{active:!0,countryId:parseInt(t,10)},e)}},6549:(e,t)=>{function r(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,
t).enumerable})),r.push.apply(r,n)}return r}function n(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?r(Object(n),!0).forEach(function(t){o(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):r(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function o(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):
e[t]=r,e}Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t={}){e||(e="/o/");let r=e.url?e.url:e.toString();r.startsWith("/")&&(r=window.location.origin+r);const o=new URL(r),i=new Headers({}),a={};return o.origin===window.location.origin&&(i.set("x-csrf-token",Liferay.authToken),a.credentials="include"),(new Headers(t.headers||{})).forEach((e,t)=>{i.set(t,e)}),fetch(e,n(n(n({},a),t),{},{headers:i}))}},85:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){if(e=
(0,n.default)(e),(0,o.default)(e)){const t=function(e){const t=[];for(;e.parentElement;)e.parentElement.getAttribute("disabled")&&t.push(e.parentElement),e=e.parentElement;return t}(e),r=!e.getAttribute("disabled")&&e.offsetWidth>0&&e.offsetHeight>0&&!t.length,n=e.closest("form");if(!n||r)e.focus();else if(n){const t=n.dataset.fmNamespace+"formReady",r=(o)=>{n.getAttribute("name")===o.formName&&(e.focus(),Liferay.detach(t,r))};Liferay.on(t,r)}}};var n=i(r(8999)),o=i(r(6515));function i(e){return e&&
e.__esModule?e:{default:e}}},8002:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){let r=null;if(void 0!==e&&"FORM"===e.nodeName&&"string"==typeof t){const n=e.dataset.fmNamespace||"";r=e.elements[n+t]||null}return r}},7494:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=function e(t={},r=new FormData,n){return Object.entries(t).forEach(([t,i])=>{const a=n?"".concat(n,"[").concat(t,"]"):t;Array.isArray(i)?i.forEach((t)=>{e({[a]:t},r)}):!(0,o.default)(i)||
i instanceof File?r.append(a,i):e(i,r,a)}),r};var n,o=(n=r(889))&&n.__esModule?n:{default:n}},7535:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){if("string"==typeof e&&(e=document.querySelector(e)),e&&"FORM"===e.nodeName)if(e.setAttribute("method","post"),(0,n.default)(t)){const {data:r,url:i}=t;if(!(0,n.default)(r))return;(0,o.default)(e,r),void 0===i?submitForm(e):"string"==typeof i&&submitForm(e,i)}else submitForm(e)};var n=i(r(889)),o=i(r(5273));function i(e){return e&&
e.__esModule?e:{default:e}}},5273:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){void 0!==e&&"FORM"===e.nodeName&&(0,n.default)(t)&&Object.entries(t).forEach(([t,r])=>{const n=(0,o.default)(e,t);n&&(n.value=r)})};var n=i(r(889)),o=i(r(8002));function i(e){return e&&e.__esModule?e:{default:e}}},8206:(e,t)=>{function r(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,
t).enumerable})),r.push.apply(r,n)}return r}function n(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?r(Object(n),!0).forEach(function(t){o(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):r(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function o(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):
e[t]=r,e}Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t={}){const {addSpaceBeforeSuffix:r,decimalSeparator:o,denominator:a,suffixGB:s,suffixKB:c,suffixMB:l}=n(n({},i),t);if("number"!=typeof e)throw new TypeError("Parameter size must be a number");let u=0,f=c;(e/=a)>=a&&(f=l,e/=a,u=1),e>=a&&(f=s,e/=a,u=1);let d=e.toFixed(u);return"."!==o&&(d=d.replace(/\./,o)),d+(r?" ":"")+f};const i={addSpaceBeforeSuffix:!1,decimalSeparator:".",denominator:1024,suffixGB:"GB",suffixKB:"KB",
suffixMB:"MB"}},7019:(e,t)=>{function r(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function n(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?r(Object(n),!0).forEach(function(t){o(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):r(Object(n)).forEach(function(t){Object.defineProperty(e,
t,Object.getOwnPropertyDescriptor(n,t))})}return e}function o(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t={}){const {newLine:r,tagIndent:o}=n(n({},j),t);if("string"!=typeof e)throw new TypeError("Parameter content must be a string");const S=[];e=(e=(e=(e=(e=(e=e.trim()).replace(i,(e)=>(S.push(e),w))).replace(m,"\x3e\x3c")).replace(g,"~::~\x3c")).replace(y,"~::~$1$2")).replace(O,
()=>S.shift());let L=0,E=!1;const T=e.split(b);let M=0,A="";return T.forEach((e,t)=>{i.test(e)?A+=P(M,r,o)+e:s.test(e)?(A+=P(M,r,o)+e,L++,E=!0,(a.test(e)||l.test(e))&&(L--,E=0!==L)):a.test(e)?(A+=e,L--,E=0!==L):u.exec(T[t-1])&&f.exec(e)&&d.exec(T[t-1]).toString()===p.exec(e)[0].replace("/","").toString()?(A+=e,E||--M):!h.test(e)||_.test(e)||v.test(e)?h.test(e)&&_.test(e)?A+=E?e:P(M,r,o)+e:_.test(e)?A+=E?e:P(--M,r,o)+e:v.test(e)?A+=E?e:P(M,r,o)+e:(c.test(e),A+=P(M,r,o)+e):A+=E?e:P(M++,r,o)+e,(new RegExp("^"+
r)).test(A)&&(A=A.slice(r.length))}),A};const i=/<!\[CDATA\[[\0-\uFFFF]*?\]\]>/g,a=/--\x3e|\]>/,s=/<!/,c=/<\?/,l=/!DOCTYPE/,u=/^<\w/,f=/^<\/\w/,d=/^<[\w:\-.,]+/,p=/^<\/[\w:\-.,]+/,h=/<\w/,y=/\s*(xmlns)(:|=)/g,_=/<\//,g=/</g,v=/\/>/,m=/>\s+</g,b="~::~",w="\x3c~::~CDATA~::~\x3e",O=new RegExp(w,"g"),j={newLine:"\r\n",tagIndent:"\t"};function P(e,t,r){return t+(new Array(e+1)).join(r)}},7068:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){if(!(0,o.default)(e)||(0,o.default)(e)&&
"IMG"!==e.tagName)throw new TypeError("Parameter imagePreview must be an image");if(!(0,o.default)(t))throw new TypeError("Parameter region must be an object");const r=e.naturalWidth/e.offsetWidth,n=e.naturalHeight/e.offsetHeight;return{height:t.height?t.height*n:e.naturalHeight,width:t.width?t.width*r:e.naturalWidth,x:t.x?Math.max(t.x*r,0):0,y:t.y?Math.max(t.y*n,0):0}};var n,o=(n=r(889))&&n.__esModule?n:{default:n}},4968:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return e._node||
e._nodes?e.nodeType?e:e._node||null:e}},8999:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){const t=(0,o.default)(e);return"string"==typeof t?document.querySelector(t):t.jquery?t[0]:t};var n,o=(n=r(4968))&&n.__esModule?n:{default:n}},1166:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return e.replace(r,"$1")};const r=/^(?:p_p_id)?_(.*)_.*$/},6797:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){if("string"!=
typeof e)throw new TypeError("portletId must be a string");return"_".concat(e,"_")}},7387:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.escapeHTML=function(e){return e.replace(i,(e)=>r[e])},t.unescapeHTML=function(e){return e.replace(a,(e)=>(new DOMParser).parseFromString(e,"text/html").documentElement.textContent)},t.MAP_HTML_CHARS_ESCAPED=void 0;const r={'"':"\x26#034;","\x26":"\x26amp;","'":"\x26#039;","/":"\x26#047;","\x3c":"\x26lt;","\x3e":"\x26gt;","`":"\x26#096;"};t.MAP_HTML_CHARS_ESCAPED=
r;const n={};Object.entries(r).forEach(([e,t])=>{n[t]=e});const o=Object.keys(r),i=new RegExp("[".concat(o.join(""),"]"),"g"),a=/&([^\s;]+);/g},6515:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=function e(t,r,n){let i=!1;if(t=(0,o.default)(t)){n||((n={left:(n=t.getBoundingClientRect()).left+window.scrollX,top:n.top+window.scrollY}).bottom=n.top+t.offsetHeight,n.right=n.left+t.offsetWidth),r||(r=window),r=(0,o.default)(r);const a={};if(a.left=r.scrollX,a.right=a.left+r.innerWidth,
a.top=r.scrollY,a.bottom=a.top+r.innerHeight,i=n.bottom<=a.bottom&&n.left>=a.left&&n.right<=a.right&&n.top>=a.top,i){const o=r.frameElement;if(o){let s=o.getBoundingClientRect();s={left:s.left+window.scrollX,top:s.top+window.scrollY};const c=s.left-a.left;n.left+=c,n.right+=c;const l=s.top-a.top;n.top+=l,n.bottom+=l,i=e(t,r.parent,n)}}}return i};var n,o=(n=r(8999))&&n.__esModule?n:{default:n}},889:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){const t=typeof e;return"object"===
t&&null!==e||"function"===t}},5506:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){return window.innerWidth<o.default.PHONE};var n,o=(n=r(3337))&&n.__esModule?n:{default:n}},7442:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){return window.innerWidth<o.default.TABLET};var n,o=(n=r(3337))&&n.__esModule?n:{default:n}},386:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){var r,n,o;let i=e;"URL"===(null==
e||null===(r=e.constructor)||void 0===r?void 0:r.name)&&(i=String(e)),(null===(n=Liferay.SPA)||void 0===n||null===(o=n.app)||void 0===o?void 0:o.canNavigate(i))?(Liferay.SPA.app.navigate(i),t&&Object.keys(t).forEach((e)=>{Liferay.once(e,t[e])})):function(e){let t;try{t=e.startsWith("/")?new URL(e,window.location.origin):new URL(e)}catch(e){return!1}return"http:"===t.protocol||"https:"===t.protocol}(i)&&(window.location.href=i)}},1625:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=
function(e){if("string"!=typeof e)throw new TypeError("parameter text must be a string");return e.replace(/[^a-z0-9_-]/gi,"-").replace(/^-+/,"").replace(/--+/,"-").toLowerCase()}},4294:(e,t,r)=>{var n;Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){let r;return"object"!=typeof t?r=o(e,t):(r={},Object.keys(t).forEach((n)=>{const i=n;n=o(e,n),r[n]=t[i]})),r};const o=(i=(e,t)=>(void 0!==t&&0!==t.lastIndexOf(e,0)&&(t="".concat(e).concat(t)),t),(0,((n=r(8511))&&n.__esModule?n:
{default:n}).default)(i,(...e)=>e.length>1?Array.prototype.join.call(e,"_"):String(e[0])));var i},1357:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){if(!(0,o.default)(e))throw new TypeError("Parameter obj must be an object");const t=new URLSearchParams;return Object.entries(e).forEach(([e,r])=>{if(Array.isArray(r))for(let n=0;n<r.length;n++)t.append(e,r[n]);else t.append(e,r)}),t};var n,o=(n=r(889))&&n.__esModule?n:{default:n}},1146:(e,t,r)=>{Object.defineProperty(t,
"__esModule",{value:!0}),t.default=function(e,t={}){return(0,o.default)(e,a(a({},t),{},{p_p_lifecycle:"1"}))};var n,o=(n=r(4821))&&n.__esModule?n:{default:n};function i(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function a(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?i(Object(r),!0).forEach(function(t){s(e,
t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):i(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function s(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}},4821:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t={}){if("string"!=typeof e)throw new TypeError("basePortletURL parameter must be a string");
if(!t||"object"!=typeof t)throw new TypeError("parameters argument must be an object");const r=new Set(["doAsGroupId","doAsUserId","doAsUserLanguageId","p_auth","p_auth_secret","p_f_id","p_j_a_id","p_l_id","p_l_reset","p_p_auth","p_p_cacheability","p_p_i_id","p_p_id","p_p_isolated","p_p_lifecycle","p_p_mode","p_p_resource_id","p_p_state","p_p_state_rcv","p_p_static","p_p_url_type","p_p_width","p_t_lifecycle","p_v_l_s_g_id","refererGroupId","refererPlid","saveLastPath","scroll"]);var n;0===e.indexOf(Liferay.ThemeDisplay.getPortalURL())||
(n=e,i.test(n))||(e=0!==e.indexOf("/")?"".concat(Liferay.ThemeDisplay.getPortalURL(),"/").concat(e):Liferay.ThemeDisplay.getPortalURL()+e);const a=new URL(e),s=new URLSearchParams(a.search),c=t.p_p_id||s.get("p_p_id");if(Object.entries(t).length&&!c)throw new TypeError("Portlet ID must not be null if parameters are provided");let l="";return Object.entries(t).length&&(l=(0,o.default)(c)),Object.keys(t).forEach((e)=>{let n;n=r.has(e)?e:"".concat(l).concat(e),s.set(n,t[e])}),a.search=s.toString(),a};
var n,o=(n=r(6797))&&n.__esModule?n:{default:n};const i=/^[a-z][a-z0-9+.-]*:/i},6535:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t={}){return(0,o.default)(e,a(a({},t),{},{p_p_lifecycle:"0"}))};var n,o=(n=r(4821))&&n.__esModule?n:{default:n};function i(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function a(e){for(var t=
1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?i(Object(r),!0).forEach(function(t){s(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):i(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function s(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}},576:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),
t.default=function(e,t={}){return(0,o.default)(e,a(a({},t),{},{p_p_lifecycle:"2"}))};var n,o=(n=r(4821))&&n.__esModule?n:{default:n};function i(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function a(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?i(Object(r),!0).forEach(function(t){s(e,t,r[t])}):Object.getOwnPropertyDescriptors?
Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):i(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function s(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}},3833:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.getSessionValue=function(e,t={}){const r=a("get");return r.append("key",e),t.useHttpSession&&r.append("useHttpSession",!0),(0,o.default)(s(),{body:r,
method:"POST"}).then((e)=>e.text()).then((e)=>{if(e.startsWith(i)){const t=e.substring(i.length);e=JSON.parse(t)}return e})},t.setSessionValue=function(e,t,r={}){const n=a("set");return t&&"object"==typeof t&&(t=i+JSON.stringify(t)),n.append(e,t),r.useHttpSession&&n.append("useHttpSession",!0),(0,o.default)(s(),{body:n,method:"POST"})};var n,o=(n=r(6549))&&n.__esModule?n:{default:n};const i="serialize://";function a(e){const t=Liferay.ThemeDisplay.getDoAsUserIdEncoded(),r=new FormData;return r.append("cmd",
e),r.append("p_auth",Liferay.authToken),t&&r.append("doAsUserId",t),r}function s(){return"".concat(Liferay.ThemeDisplay.getPortalURL()).concat(Liferay.ThemeDisplay.getPathMain(),"/portal/session_click")}},7639:(e,t,r)=>{var n;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=(0,((n=r(8511))&&n.__esModule?n:{default:n}).default)((e)=>e.split("").map((e)=>e.charCodeAt()).join(""));t.default=o},1521:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){"string"==
typeof e?e=document.querySelectorAll(e):e._node?e=[e._node]:e._nodes?e=e._nodes:e.nodeType===Node.ELEMENT_NODE&&(e=[e]),e.forEach((e)=>{e.disabled=t,t?e.classList.add("disabled"):e.classList.remove("disabled")})}},1593:(e,t,r)=>{e=r.nmd(e);var n="__lodash_hash_undefined__",o=9007199254740991,i="[object Arguments]",a="[object Array]",s="[object Boolean]",c="[object Date]",l="[object Error]",u="[object Function]",f="[object Map]",d="[object Number]",p="[object Object]",h="[object Promise]",y="[object RegExp]",
_="[object Set]",g="[object String]",v="[object Symbol]",m="[object WeakMap]",b="[object ArrayBuffer]",w="[object DataView]",O=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,j=/^\w*$/,P=/^\./,S=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,L=/\\(\\)?/g,E=/^\[object .+?Constructor\]$/,T=/^(?:0|[1-9]\d*)$/,M={};M["[object Float32Array]"]=M["[object Float64Array]"]=M["[object Int8Array]"]=M["[object Int16Array]"]=M["[object Int32Array]"]=M["[object Uint8Array]"]=
M["[object Uint8ClampedArray]"]=M["[object Uint16Array]"]=M["[object Uint32Array]"]=!0,M[i]=M[a]=M[b]=M[s]=M[w]=M[c]=M[l]=M[u]=M[f]=M[d]=M[p]=M[y]=M[_]=M[g]=M[m]=!1;var A="object"==typeof r.g&&r.g&&r.g.Object===Object&&r.g,I="object"==typeof self&&self&&self.Object===Object&&self,U=A||I||Function("return this")(),C=t&&!t.nodeType&&t,R=C&&e&&!e.nodeType&&e,D=R&&R.exports===C&&A.process,x=function(){try{return D&&D.binding("util")}catch(e){}}(),k=x&&x.isTypedArray;function F(e,t,r,n){for(var o=-1,i=
e?e.length:0;++o<i;){var a=e[o];t(n,a,r(a),e)}return n}function N(e,t){for(var r=-1,n=e?e.length:0;++r<n;)if(t(e[r],r,e))return!0;return!1}function H(e){var t=!1;if(null!=e&&"function"!=typeof e.toString)try{t=!!(e+"")}catch(e){}return t}function q(e){var t=-1,r=Array(e.size);return e.forEach(function(e,n){r[++t]=[n,e]}),r}function z(e){var t=-1,r=Array(e.size);return e.forEach(function(e){r[++t]=e}),r}var W,B,$,V=Array.prototype,G=Function.prototype,X=Object.prototype,K=U["__core-js_shared__"],J=
(W=/[^.]+$/.exec(K&&K.keys&&K.keys.IE_PROTO||""))?"Symbol(src)_1."+W:"",Y=G.toString,Z=X.hasOwnProperty,Q=X.toString,ee=RegExp("^"+Y.call(Z).replace(/[\\^$.*+?()[\]{}|]/g,"\\$\x26").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),te=U.Symbol,re=U.Uint8Array,ne=X.propertyIsEnumerable,oe=V.splice,ie=(B=Object.keys,$=Object,function(e){return B($(e))}),ae=xe(U,"DataView"),se=xe(U,"Map"),ce=xe(U,"Promise"),le=xe(U,"Set"),ue=xe(U,"WeakMap"),fe=xe(Object,"create"),de=Be(ae),
pe=Be(se),he=Be(ce),ye=Be(le),_e=Be(ue),ge=te?te.prototype:void 0,ve=ge?ge.valueOf:void 0,me=ge?ge.toString:void 0;function be(e){var t=-1,r=e?e.length:0;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}function we(e){var t=-1,r=e?e.length:0;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}function Oe(e){var t=-1,r=e?e.length:0;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}function je(e){var t=-1,r=e?e.length:0;for(this.__data__=new Oe;++t<r;)this.add(e[t])}function Pe(e){this.__data__=
new we(e)}function Se(e,t){for(var r=e.length;r--;)if(Xe(e[r][0],t))return r;return-1}function Le(e,t,r,n){return Te(e,function(e,o,i){t(n,e,r(e),i)}),n}be.prototype.clear=function(){this.__data__=fe?fe(null):{}},be.prototype.delete=function(e){return this.has(e)&&delete this.__data__[e]},be.prototype.get=function(e){var t=this.__data__;if(fe){var r=t[e];return r===n?void 0:r}return Z.call(t,e)?t[e]:void 0},be.prototype.has=function(e){var t=this.__data__;return fe?void 0!==t[e]:Z.call(t,e)},be.prototype.set=
function(e,t){return this.__data__[e]=fe&&void 0===t?n:t,this},we.prototype.clear=function(){this.__data__=[]},we.prototype.delete=function(e){var t=this.__data__,r=Se(t,e);return!(r<0||(r==t.length-1?t.pop():oe.call(t,r,1),0))},we.prototype.get=function(e){var t=this.__data__,r=Se(t,e);return r<0?void 0:t[r][1]},we.prototype.has=function(e){return Se(this.__data__,e)>-1},we.prototype.set=function(e,t){var r=this.__data__,n=Se(r,e);return n<0?r.push([e,t]):r[n][1]=t,this},Oe.prototype.clear=function(){this.__data__=
{hash:new be,map:new (se||we),string:new be}},Oe.prototype.delete=function(e){return De(this,e).delete(e)},Oe.prototype.get=function(e){return De(this,e).get(e)},Oe.prototype.has=function(e){return De(this,e).has(e)},Oe.prototype.set=function(e,t){return De(this,e).set(e,t),this},je.prototype.add=je.prototype.push=function(e){return this.__data__.set(e,n),this},je.prototype.has=function(e){return this.__data__.has(e)},Pe.prototype.clear=function(){this.__data__=new we},Pe.prototype.delete=function(e){return this.__data__.delete(e)},
Pe.prototype.get=function(e){return this.__data__.get(e)},Pe.prototype.has=function(e){return this.__data__.has(e)},Pe.prototype.set=function(e,t){var r=this.__data__;if(r instanceof we){var n=r.__data__;if(!se||n.length<199)return n.push([e,t]),this;r=this.__data__=new Oe(n)}return r.set(e,t),this};var Ee,Te=(Ee=function(e,t){return e&&Me(e,t,ot)},function(e,t){if(null==e)return e;if(!Ye(e))return Ee(e,t);for(var r=e.length,n=-1,o=Object(e);++n<r&&!1!==t(o[n],n,o););return e}),Me=function(e,t,r){for(var n=
-1,o=Object(e),i=r(e),a=i.length;a--;){var s=i[++n];if(!1===t(o[s],s,o))break}return e};function Ae(e,t){for(var r=0,n=(t=Ne(t,e)?[t]:Ce(t)).length;null!=e&&r<n;)e=e[We(t[r++])];return r&&r==n?e:void 0}function Ie(e,t){return null!=e&&t in Object(e)}function Ue(e,t,r,n,o){return e===t||(null==e||null==t||!et(e)&&!tt(t)?e!=e&&t!=t:function(e,t,r,n,o,u){var h=Je(e),m=Je(t),O=a,j=a;h||(O=(O=ke(e))==i?p:O),m||(j=(j=ke(t))==i?p:j);var P=O==p&&!H(e),S=j==p&&!H(t),L=O==j;if(L&&!P)return u||(u=new Pe),h||
nt(e)?Re(e,t,r,n,o,u):function(e,t,r,n,o,i,a){switch(r){case w:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case b:return!(e.byteLength!=t.byteLength||!n(new re(e),new re(t)));case s:case c:case d:return Xe(+e,+t);case l:return e.name==t.name&&e.message==t.message;case y:case g:return e==t+"";case f:var u=q;case _:var p=2&i;if(u||(u=z),e.size!=t.size&&!p)return!1;var h=a.get(e);if(h)return h==t;i|=1,a.set(e,t);var m=Re(u(e),u(t),n,o,i,a);return a.delete(e),
m;case v:if(ve)return ve.call(e)==ve.call(t)}return!1}(e,t,O,r,n,o,u);if(!(2&o)){var E=P&&Z.call(e,"__wrapped__"),T=S&&Z.call(t,"__wrapped__");if(E||T){var M=E?e.value():e,A=T?t.value():t;return u||(u=new Pe),r(M,A,n,o,u)}}return!!L&&(u||(u=new Pe),function(e,t,r,n,o,i){var a=2&o,s=ot(e),c=s.length;if(c!=ot(t).length&&!a)return!1;for(var l=c;l--;){var u=s[l];if(!(a?u in t:Z.call(t,u)))return!1}var f=i.get(e);if(f&&i.get(t))return f==t;var d=!0;i.set(e,t),i.set(t,e);for(var p=a;++l<c;){var h=e[u=s[l]],
y=t[u];if(n)var _=a?n(y,h,u,t,e,i):n(h,y,u,e,t,i);if(!(void 0===_?h===y||r(h,y,n,o,i):_)){d=!1;break}p||(p="constructor"==u)}if(d&&!p){var g=e.constructor,v=t.constructor;g==v||!("constructor"in e)||!("constructor"in t)||"function"==typeof g&&g instanceof g&&"function"==typeof v&&v instanceof v||(d=!1)}return i.delete(e),i.delete(t),d}(e,t,r,n,o,u))}(e,t,Ue,r,n,o))}function Ce(e){return Je(e)?e:ze(e)}function Re(e,t,r,n,o,i){var a=2&o,s=e.length,c=t.length;if(s!=c&&!(a&&c>s))return!1;var l=i.get(e);
if(l&&i.get(t))return l==t;var u=-1,f=!0,d=1&o?new je:void 0;for(i.set(e,t),i.set(t,e);++u<s;){var p=e[u],h=t[u];if(n)var y=a?n(h,p,u,t,e,i):n(p,h,u,e,t,i);if(void 0!==y){if(y)continue;f=!1;break}if(d){if(!N(t,function(e,t){if(!d.has(t)&&(p===e||r(p,e,n,o,i)))return d.add(t)})){f=!1;break}}else if(p!==h&&!r(p,h,n,o,i)){f=!1;break}}return i.delete(e),i.delete(t),f}function De(e,t){var r,n,o=e.__data__;return("string"==(n=typeof(r=t))||"number"==n||"symbol"==n||"boolean"==n?"__proto__"!==r:null===r)?
o["string"==typeof t?"string":"hash"]:o.map}function xe(e,t){var r=function(e,t){return null==e?void 0:e[t]}(e,t);return function(e){return!(!et(e)||function(e){return!!J&&J in e}(e))&&(Ze(e)||H(e)?ee:E).test(Be(e))}(r)?r:void 0}var ke=function(e){return Q.call(e)};function Fe(e,t){return!!(t=null==t?o:t)&&("number"==typeof e||T.test(e))&&e>-1&&e%1==0&&e<t}function Ne(e,t){if(Je(e))return!1;var r=typeof e;return!("number"!=r&&"symbol"!=r&&"boolean"!=r&&null!=e&&!rt(e))||j.test(e)||!O.test(e)||null!=
t&&e in Object(t)}function He(e){return e==e&&!et(e)}function qe(e,t){return function(r){return null!=r&&r[e]===t&&(void 0!==t||e in Object(r))}}(ae&&ke(new ae(new ArrayBuffer(1)))!=w||se&&ke(new se)!=f||ce&&ke(ce.resolve())!=h||le&&ke(new le)!=_||ue&&ke(new ue)!=m)&&(ke=function(e){var t=Q.call(e),r=t==p?e.constructor:void 0,n=r?Be(r):void 0;if(n)switch(n){case de:return w;case pe:return f;case he:return h;case ye:return _;case _e:return m}return t});var ze=Ge(function(e){var t;e=null==(t=e)?"":
function(e){if("string"==typeof e)return e;if(rt(e))return me?me.call(e):"";var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}(t);var r=[];return P.test(e)&&r.push(""),e.replace(S,function(e,t,n,o){r.push(n?o.replace(L,"$1"):t||e)}),r});function We(e){if("string"==typeof e||rt(e))return e;var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}function Be(e){if(null!=e){try{return Y.call(e)}catch(e){}try{return e+""}catch(e){}}return""}var $e,Ve=($e=function(e,t,r){Z.call(e,r)?e[r].push(t):e[r]=[t]},function(e,t){var r,
n,o,i,a;return(Je(e)?F:Le)(e,$e,"function"==typeof(r=t)?r:null==r?it:"object"==typeof r?Je(r)?function(e,t){return Ne(e)&&He(t)?qe(We(e),t):function(r){var n=function(e,t,r){var n=null==e?void 0:Ae(e,t);return void 0===n?void 0:n}(r,e);return void 0===n&&n===t?function(e,t){return null!=e&&function(e,t,r){for(var n,o=-1,i=(t=Ne(t,e)?[t]:Ce(t)).length;++o<i;){var a=We(t[o]);if(!(n=null!=e&&r(e,a)))break;e=e[a]}return n||!!(i=e?e.length:0)&&Qe(i)&&Fe(a,i)&&(Je(e)||Ke(e))}(e,t,Ie)}(r,e):Ue(t,n,void 0,
3)}}(r[0],r[1]):1==(o=function(e){for(var t=ot(e),r=t.length;r--;){var n=t[r],o=e[n];t[r]=[n,o,He(o)]}return t}(n=r)).length&&o[0][2]?qe(o[0][0],o[0][1]):function(e){return e===n||function(e,t,r,n){var o=r.length,i=o;if(null==e)return!i;for(e=Object(e);o--;){var a=r[o];if(a[2]?a[1]!==e[a[0]]:!(a[0]in e))return!1}for(;++o<i;){var s=(a=r[o])[0],c=e[s],l=a[1];if(a[2]){if(void 0===c&&!(s in e))return!1}else if(!Ue(l,c,undefined,3,new Pe))return!1}return!0}(e,0,o)}:Ne(i=r)?(a=We(i),function(e){return null==
e?void 0:e[a]}):function(e){return function(t){return Ae(t,e)}}(i),{})});function Ge(e,t){if("function"!=typeof e||t&&"function"!=typeof t)throw new TypeError("Expected a function");var r=function(){var n=arguments,o=t?t.apply(this,n):n[0],i=r.cache;if(i.has(o))return i.get(o);var a=e.apply(this,n);return r.cache=i.set(o,a),a};return r.cache=new (Ge.Cache||Oe),r}function Xe(e,t){return e===t||e!=e&&t!=t}function Ke(e){return function(e){return tt(e)&&Ye(e)}(e)&&Z.call(e,"callee")&&(!ne.call(e,"callee")||
Q.call(e)==i)}Ge.Cache=Oe;var Je=Array.isArray;function Ye(e){return null!=e&&Qe(e.length)&&!Ze(e)}function Ze(e){var t=et(e)?Q.call(e):"";return t==u||"[object GeneratorFunction]"==t}function Qe(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=o}function et(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function tt(e){return!!e&&"object"==typeof e}function rt(e){return"symbol"==typeof e||tt(e)&&Q.call(e)==v}var nt=k?function(e){return function(t){return e(t)}}(k):function(e){return tt(e)&&
Qe(e.length)&&!!M[Q.call(e)]};function ot(e){return Ye(e)?function(e,t){var r=Je(e)||Ke(e)?function(e,t){for(var r=-1,n=Array(e);++r<e;)n[r]=t(r);return n}(e.length,String):[],n=r.length,o=!!n;for(var i in e)!Z.call(e,i)||o&&("length"==i||Fe(i,n))||r.push(i);return r}(e):function(e){if(r=(t=e)&&t.constructor,t!==("function"==typeof r&&r.prototype||X))return ie(e);var t,r,n=[];for(var o in Object(e))Z.call(e,o)&&"constructor"!=o&&n.push(o);return n}(e)}function it(e){return e}e.exports=Ve},8652:(e,
t,r)=>{e=r.nmd(e);var n="__lodash_hash_undefined__",o=9007199254740991,i="[object Arguments]",a="[object Array]",s="[object Boolean]",c="[object Date]",l="[object Error]",u="[object Function]",f="[object Map]",d="[object Number]",p="[object Object]",h="[object Promise]",y="[object RegExp]",_="[object Set]",g="[object String]",v="[object WeakMap]",m="[object ArrayBuffer]",b="[object DataView]",w=/^\[object .+?Constructor\]$/,O=/^(?:0|[1-9]\d*)$/,j={};j["[object Float32Array]"]=j["[object Float64Array]"]=
j["[object Int8Array]"]=j["[object Int16Array]"]=j["[object Int32Array]"]=j["[object Uint8Array]"]=j["[object Uint8ClampedArray]"]=j["[object Uint16Array]"]=j["[object Uint32Array]"]=!0,j[i]=j[a]=j[m]=j[s]=j[b]=j[c]=j[l]=j[u]=j[f]=j[d]=j[p]=j[y]=j[_]=j[g]=j[v]=!1;var P="object"==typeof r.g&&r.g&&r.g.Object===Object&&r.g,S="object"==typeof self&&self&&self.Object===Object&&self,L=P||S||Function("return this")(),E=t&&!t.nodeType&&t,T=E&&e&&!e.nodeType&&e,M=T&&T.exports===E,A=M&&P.process,I=function(){try{return A&&
A.binding&&A.binding("util")}catch(e){}}(),U=I&&I.isTypedArray;function C(e,t){for(var r=-1,n=null==e?0:e.length;++r<n;)if(t(e[r],r,e))return!0;return!1}function R(e){var t=-1,r=Array(e.size);return e.forEach(function(e,n){r[++t]=[n,e]}),r}function D(e){var t=-1,r=Array(e.size);return e.forEach(function(e){r[++t]=e}),r}var x,k,F,N=Array.prototype,H=Function.prototype,q=Object.prototype,z=L["__core-js_shared__"],W=H.toString,B=q.hasOwnProperty,$=(x=/[^.]+$/.exec(z&&z.keys&&z.keys.IE_PROTO||""))?"Symbol(src)_1."+
x:"",V=q.toString,G=RegExp("^"+W.call(B).replace(/[\\^$.*+?()[\]{}|]/g,"\\$\x26").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),X=M?L.Buffer:void 0,K=L.Symbol,J=L.Uint8Array,Y=q.propertyIsEnumerable,Z=N.splice,Q=K?K.toStringTag:void 0,ee=Object.getOwnPropertySymbols,te=X?X.isBuffer:void 0,re=(k=Object.keys,F=Object,function(e){return k(F(e))}),ne=Te(L,"DataView"),oe=Te(L,"Map"),ie=Te(L,"Promise"),ae=Te(L,"Set"),se=Te(L,"WeakMap"),ce=Te(Object,"create"),le=Ue(ne),ue=
Ue(oe),fe=Ue(ie),de=Ue(ae),pe=Ue(se),he=K?K.prototype:void 0,ye=he?he.valueOf:void 0;function _e(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}function ge(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}function ve(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}function me(e){var t=-1,r=null==e?0:e.length;for(this.__data__=new ve;++t<r;)this.add(e[t])}function be(e){var t=
this.__data__=new ge(e);this.size=t.size}function we(e,t){for(var r=e.length;r--;)if(Ce(e[r][0],t))return r;return-1}function Oe(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":Q&&Q in Object(e)?function(e){var t=B.call(e,Q),r=e[Q];try{e[Q]=void 0;var n=!0}catch(e){}var o=V.call(e);return n&&(t?e[Q]=r:delete e[Q]),o}(e):function(e){return V.call(e)}(e)}function je(e){return He(e)&&Oe(e)==i}function Pe(e,t,r,n,o){return e===t||(null==e||null==t||!He(e)&&!He(t)?e!=e&&t!=t:function(e,
t,r,n,o,u){var h=De(e),v=De(t),w=h?a:Ae(e),O=v?a:Ae(t),j=(w=w==i?p:w)==p,P=(O=O==i?p:O)==p,S=w==O;if(S&&xe(e)){if(!xe(t))return!1;h=!0,j=!1}if(S&&!j)return u||(u=new be),h||qe(e)?Se(e,t,r,n,o,u):function(e,t,r,n,o,i,a){switch(r){case b:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case m:return!(e.byteLength!=t.byteLength||!i(new J(e),new J(t)));case s:case c:case d:return Ce(+e,+t);case l:return e.name==t.name&&e.message==t.message;case y:case g:return e==
t+"";case f:var u=R;case _:var p=1&n;if(u||(u=D),e.size!=t.size&&!p)return!1;var h=a.get(e);if(h)return h==t;n|=2,a.set(e,t);var v=Se(u(e),u(t),n,o,i,a);return a.delete(e),v;case "[object Symbol]":if(ye)return ye.call(e)==ye.call(t)}return!1}(e,t,w,r,n,o,u);if(!(1&r)){var L=j&&B.call(e,"__wrapped__"),E=P&&B.call(t,"__wrapped__");if(L||E){var T=L?e.value():e,M=E?t.value():t;return u||(u=new be),o(T,M,r,n,u)}}return!!S&&(u||(u=new be),function(e,t,r,n,o,i){var a=1&r,s=Le(e),c=s.length;if(c!=Le(t).length&&
!a)return!1;for(var l=c;l--;){var u=s[l];if(!(a?u in t:B.call(t,u)))return!1}var f=i.get(e);if(f&&i.get(t))return f==t;var d=!0;i.set(e,t),i.set(t,e);for(var p=a;++l<c;){var h=e[u=s[l]],y=t[u];if(n)var _=a?n(y,h,u,t,e,i):n(h,y,u,e,t,i);if(!(void 0===_?h===y||o(h,y,r,n,i):_)){d=!1;break}p||(p="constructor"==u)}if(d&&!p){var g=e.constructor,v=t.constructor;g==v||!("constructor"in e)||!("constructor"in t)||"function"==typeof g&&g instanceof g&&"function"==typeof v&&v instanceof v||(d=!1)}return i.delete(e),
i.delete(t),d}(e,t,r,n,o,u))}(e,t,r,n,Pe,o))}function Se(e,t,r,n,o,i){var a=1&r,s=e.length,c=t.length;if(s!=c&&!(a&&c>s))return!1;var l=i.get(e);if(l&&i.get(t))return l==t;var u=-1,f=!0,d=2&r?new me:void 0;for(i.set(e,t),i.set(t,e);++u<s;){var p=e[u],h=t[u];if(n)var y=a?n(h,p,u,t,e,i):n(p,h,u,e,t,i);if(void 0!==y){if(y)continue;f=!1;break}if(d){if(!C(t,function(e,t){if(a=t,!d.has(a)&&(p===e||o(p,e,r,n,i)))return d.push(t);var a})){f=!1;break}}else if(p!==h&&!o(p,h,r,n,i)){f=!1;break}}return i.delete(e),
i.delete(t),f}function Le(e){return function(e,t,r){var n=t(e);return De(e)?n:function(e,t){for(var r=-1,n=t.length,o=e.length;++r<n;)e[o+r]=t[r];return e}(n,r(e))}(e,ze,Me)}function Ee(e,t){var r,n,o=e.__data__;return("string"==(n=typeof(r=t))||"number"==n||"symbol"==n||"boolean"==n?"__proto__"!==r:null===r)?o["string"==typeof t?"string":"hash"]:o.map}function Te(e,t){var r=function(e,t){return null==e?void 0:e[t]}(e,t);return function(e){return!(!Ne(e)||function(e){return!!$&&$ in e}(e))&&(ke(e)?
G:w).test(Ue(e))}(r)?r:void 0}_e.prototype.clear=function(){this.__data__=ce?ce(null):{},this.size=0},_e.prototype.delete=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},_e.prototype.get=function(e){var t=this.__data__;if(ce){var r=t[e];return r===n?void 0:r}return B.call(t,e)?t[e]:void 0},_e.prototype.has=function(e){var t=this.__data__;return ce?void 0!==t[e]:B.call(t,e)},_e.prototype.set=function(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=
ce&&void 0===t?n:t,this},ge.prototype.clear=function(){this.__data__=[],this.size=0},ge.prototype.delete=function(e){var t=this.__data__,r=we(t,e);return!(r<0||(r==t.length-1?t.pop():Z.call(t,r,1),--this.size,0))},ge.prototype.get=function(e){var t=this.__data__,r=we(t,e);return r<0?void 0:t[r][1]},ge.prototype.has=function(e){return we(this.__data__,e)>-1},ge.prototype.set=function(e,t){var r=this.__data__,n=we(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this},ve.prototype.clear=function(){this.size=
0,this.__data__={hash:new _e,map:new (oe||ge),string:new _e}},ve.prototype.delete=function(e){var t=Ee(this,e).delete(e);return this.size-=t?1:0,t},ve.prototype.get=function(e){return Ee(this,e).get(e)},ve.prototype.has=function(e){return Ee(this,e).has(e)},ve.prototype.set=function(e,t){var r=Ee(this,e),n=r.size;return r.set(e,t),this.size+=r.size==n?0:1,this},me.prototype.add=me.prototype.push=function(e){return this.__data__.set(e,n),this},me.prototype.has=function(e){return this.__data__.has(e)},
be.prototype.clear=function(){this.__data__=new ge,this.size=0},be.prototype.delete=function(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r},be.prototype.get=function(e){return this.__data__.get(e)},be.prototype.has=function(e){return this.__data__.has(e)},be.prototype.set=function(e,t){var r=this.__data__;if(r instanceof ge){var n=r.__data__;if(!oe||n.length<199)return n.push([e,t]),this.size=++r.size,this;r=this.__data__=new ve(n)}return r.set(e,t),this.size=r.size,this};var Me=
ee?function(e){return null==e?[]:(e=Object(e),function(t,r){for(var n=-1,o=null==t?0:t.length,i=0,a=[];++n<o;){var s=t[n];c=s,Y.call(e,c)&&(a[i++]=s)}var c;return a}(ee(e)))}:function(){return[]},Ae=Oe;function Ie(e,t){return!!(t=null==t?o:t)&&("number"==typeof e||O.test(e))&&e>-1&&e%1==0&&e<t}function Ue(e){if(null!=e){try{return W.call(e)}catch(e){}try{return e+""}catch(e){}}return""}function Ce(e,t){return e===t||e!=e&&t!=t}(ne&&Ae(new ne(new ArrayBuffer(1)))!=b||oe&&Ae(new oe)!=f||ie&&Ae(ie.resolve())!=
h||ae&&Ae(new ae)!=_||se&&Ae(new se)!=v)&&(Ae=function(e){var t=Oe(e),r=t==p?e.constructor:void 0,n=r?Ue(r):"";if(n)switch(n){case le:return b;case ue:return f;case fe:return h;case de:return _;case pe:return v}return t});var Re=je(function(){return arguments}())?je:function(e){return He(e)&&B.call(e,"callee")&&!Y.call(e,"callee")},De=Array.isArray,xe=te||function(){return!1};function ke(e){if(!Ne(e))return!1;var t=Oe(e);return t==u||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==
t}function Fe(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=o}function Ne(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function He(e){return null!=e&&"object"==typeof e}var qe=U?function(e){return function(t){return e(t)}}(U):function(e){return He(e)&&Fe(e.length)&&!!j[Oe(e)]};function ze(e){return null!=(t=e)&&Fe(t.length)&&!ke(t)?function(e,t){var r=De(e),n=!r&&Re(e),o=!r&&!n&&xe(e),i=!r&&!n&&!o&&qe(e),a=r||n||o||i,s=a?function(e,t){for(var r=-1,n=Array(e);++r<e;)n[r]=t(r);return n}(e.length,
String):[],c=s.length;for(var l in e)!B.call(e,l)||a&&("length"==l||o&&("offset"==l||"parent"==l)||i&&("buffer"==l||"byteLength"==l||"byteOffset"==l)||Ie(l,c))||s.push(l);return s}(e):function(e){if(r=(t=e)&&t.constructor,t!==("function"==typeof r&&r.prototype||q))return re(e);var t,r,n=[];for(var o in Object(e))B.call(e,o)&&"constructor"!=o&&n.push(o);return n}(e);var t}e.exports=function(e,t){return Pe(e,t)}},8511:(e,t,r)=>{var n,o="__lodash_hash_undefined__",i=/^\[object .+?Constructor\]$/,a="object"==
typeof r.g&&r.g&&r.g.Object===Object&&r.g,s="object"==typeof self&&self&&self.Object===Object&&self,c=a||s||Function("return this")(),l=Array.prototype,u=Function.prototype,f=Object.prototype,d=c["__core-js_shared__"],p=(n=/[^.]+$/.exec(d&&d.keys&&d.keys.IE_PROTO||""))?"Symbol(src)_1."+n:"",h=u.toString,y=f.hasOwnProperty,_=f.toString,g=RegExp("^"+h.call(y).replace(/[\\^$.*+?()[\]{}|]/g,"\\$\x26").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),v=l.splice,m=L(c,"Map"),
b=L(Object,"create");function w(e){var t=-1,r=e?e.length:0;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}function O(e){var t=-1,r=e?e.length:0;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}function j(e){var t=-1,r=e?e.length:0;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}function P(e,t){for(var r,n,o=e.length;o--;)if((r=e[o][0])===(n=t)||r!=r&&n!=n)return o;return-1}function S(e,t){var r,n,o=e.__data__;return("string"==(n=typeof(r=t))||"number"==n||"symbol"==n||"boolean"==
n?"__proto__"!==r:null===r)?o["string"==typeof t?"string":"hash"]:o.map}function L(e,t){var r=function(e,t){return null==e?void 0:e[t]}(e,t);return function(e){return!(!T(e)||(t=e,p&&p in t))&&(function(e){var t=T(e)?_.call(e):"";return"[object Function]"==t||"[object GeneratorFunction]"==t}(e)||function(e){var t=!1;if(null!=e&&"function"!=typeof e.toString)try{t=!!(e+"")}catch(e){}return t}(e)?g:i).test(function(e){if(null!=e){try{return h.call(e)}catch(e){}try{return e+""}catch(e){}}return""}(e));
var t}(r)?r:void 0}function E(e,t){if("function"!=typeof e||t&&"function"!=typeof t)throw new TypeError("Expected a function");var r=function(){var n=arguments,o=t?t.apply(this,n):n[0],i=r.cache;if(i.has(o))return i.get(o);var a=e.apply(this,n);return r.cache=i.set(o,a),a};return r.cache=new (E.Cache||j),r}function T(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}w.prototype.clear=function(){this.__data__=b?b(null):{}},w.prototype.delete=function(e){return this.has(e)&&delete this.__data__[e]},
w.prototype.get=function(e){var t=this.__data__;if(b){var r=t[e];return r===o?void 0:r}return y.call(t,e)?t[e]:void 0},w.prototype.has=function(e){var t=this.__data__;return b?void 0!==t[e]:y.call(t,e)},w.prototype.set=function(e,t){return this.__data__[e]=b&&void 0===t?o:t,this},O.prototype.clear=function(){this.__data__=[]},O.prototype.delete=function(e){var t=this.__data__,r=P(t,e);return!(r<0||(r==t.length-1?t.pop():v.call(t,r,1),0))},O.prototype.get=function(e){var t=this.__data__,r=P(t,e);return r<
0?void 0:t[r][1]},O.prototype.has=function(e){return P(this.__data__,e)>-1},O.prototype.set=function(e,t){var r=this.__data__,n=P(r,e);return n<0?r.push([e,t]):r[n][1]=t,this},j.prototype.clear=function(){this.__data__={hash:new w,map:new (m||O),string:new w}},j.prototype.delete=function(e){return S(this,e).delete(e)},j.prototype.get=function(e){return S(this,e).get(e)},j.prototype.has=function(e){return S(this,e).has(e)},j.prototype.set=function(e,t){return S(this,e).set(e,t),this},E.Cache=j,e.exports=
E},1093:(e,t,r)=>{var n,o=/&(?:amp|lt|gt|quot|#39|#96);/g,i=RegExp(o.source),a="object"==typeof r.g&&r.g&&r.g.Object===Object&&r.g,s="object"==typeof self&&self&&self.Object===Object&&self,c=a||s||Function("return this")(),l=(n={"\x26amp;":"\x26","\x26lt;":"\x3c","\x26gt;":"\x3e","\x26quot;":'"',"\x26#39;":"'","\x26#96;":"`"},function(e){return null==n?void 0:n[e]}),u=Object.prototype.toString,f=c.Symbol,d=f?f.prototype:void 0,p=d?d.toString:void 0;e.exports=function(e){var t;return(e=null==(t=e)?
"":function(e){if("string"==typeof e)return e;if(function(e){return"symbol"==typeof e||function(e){return!!e&&"object"==typeof e}(e)&&"[object Symbol]"==u.call(e)}(e))return p?p.call(e):"";var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}(t))&&i.test(e)?e.replace(o,l):e}},26:(e)=>{for(var t=[],r=0;r<256;++r)t[r]=(r+256).toString(16).substr(1);e.exports=function(e,r){var n=r||0,o=t;return[o[e[n++]],o[e[n++]],o[e[n++]],o[e[n++]],"-",o[e[n++]],o[e[n++]],"-",o[e[n++]],o[e[n++]],"-",o[e[n++]],o[e[n++]],"-",o[e[n++]],
o[e[n++]],o[e[n++]],o[e[n++]],o[e[n++]],o[e[n++]]].join("")}},1814:(e)=>{var t="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof window.msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto);if(t){var r=new Uint8Array(16);e.exports=function(){return t(r),r}}else{var n=new Array(16);e.exports=function(){for(var e,t=0;t<16;t++)0==(3&t)&&(e=4294967296*Math.random()),n[t]=e>>>((3&t)<<3)&255;return n}}},
8633:(e,t,r)=>{var n,o,i=r(1814),a=r(26),s=0,c=0;e.exports=function(e,t,r){var l=t&&r||0,u=t||[],f=(e=e||{}).node||n,d=void 0!==e.clockseq?e.clockseq:o;if(null==f||null==d){var p=i();null==f&&(f=n=[1|p[0],p[1],p[2],p[3],p[4],p[5]]),null==d&&(d=o=16383&(p[6]<<8|p[7]))}var h=void 0!==e.msecs?e.msecs:(new Date).getTime(),y=void 0!==e.nsecs?e.nsecs:c+1,_=h-s+(y-c)/1E4;if(_<0&&void 0===e.clockseq&&(d=d+1&16383),(_<0||h>s)&&void 0===e.nsecs&&(y=0),y>=1E4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");
s=h,c=y,o=d;var g=(1E4*(268435455&(h+=122192928E5))+y)%4294967296;u[l++]=g>>>24&255,u[l++]=g>>>16&255,u[l++]=g>>>8&255,u[l++]=255&g;var v=h/4294967296*1E4&268435455;u[l++]=v>>>8&255,u[l++]=255&v,u[l++]=v>>>24&15|16,u[l++]=v>>>16&255,u[l++]=d>>>8|128,u[l++]=255&d;for(var m=0;m<6;++m)u[l+m]=f[m];return t||a(u)}}},t={};function r(n){if(t[n])return t[n].exports;var o=t[n]={id:n,loaded:!1,exports:{}};return e[n](o,o.exports,r),o.loaded=!0,o.exports}return r.g=function(){if("object"==typeof globalThis)return globalThis;
try{return this||(new Function("return this"))()}catch(e){if("object"==typeof window)return window}}(),r.nmd=(e)=>(e.paths=[],e.children||(e.children=[]),e),r(2698)})());
function ownKeys(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,a)}return r}
function _objectSpread(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?ownKeys(Object(r),!0).forEach(function(t){_defineProperty(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ownKeys(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}
function _defineProperty(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}
!function(e){var t=e.Lang,r=Liferay.Util,a="head",o=_objectSpread(_objectSpread({},Liferay.Portlet),{},{_defCloseFn(e){if(e.portlet.remove(!0),!e.nestedPortlet){var t=Liferay.Util.objectToFormData({cmd:"delete",doAsUserId:e.doAsUserId,p_auth:Liferay.authToken,p_l_id:e.plid,p_p_id:e.portletId,p_v_l_s_g_id:themeDisplay.getSiteGroupId()});Liferay.Util.fetch(themeDisplay.getPathMain()+"/portal/update_layout",{body:t,method:"POST"}).then((e)=>{e.ok&&Liferay.fire("updatedLayout")})}},_loadMarkupHeadElements(t){var r=
t.markupHeadElements;if(r&&r.length){e.one(a).append(r);var o=e.Node.create("\x3cdiv /\x3e");o.plug(e.Plugin.ParseContent),o.setContent(r)}},_loadPortletFiles(t,r){var o=t.footerCssPaths||[],i=t.headerCssPaths||[],l=t.headerJavaScriptPaths||[];l=l.concat(t.footerJavaScriptPaths||[]);var d=e.one(a);i.length&&e.Get.css(i,{insertBefore:d.get("firstChild").getDOM()});var n=document.body.lastChild;o.length&&e.Get.css(o,{insertBefore:n});var s=t.portletHTML;l.length?e.Get.script(l,{onEnd(){r(s)}}):r(s)},
_mergeOptions:(e,t)=>((t=t||{}).doAsUserId=t.doAsUserId||themeDisplay.getDoAsUserIdEncoded(),t.plid=t.plid||themeDisplay.getPlid(),t.portlet=e,t.portletId=e.portletId,t),_staticPortlets:{},destroyComponents(e){Liferay.destroyComponents((t,r)=>e===r.portletId)},isStatic(e){return r.getPortletId(e.id||e)in this._staticPortlets},list:[],readyCounter:0,refreshLayout(e){},register(e){this.list.indexOf(e)<0&&this.list.push(e)}});Liferay.provide(o,"add",function(t){var a=this;Liferay.fire("initLayout");
var o=t.doAsUserId||themeDisplay.getDoAsUserIdEncoded(),i=t.plid||themeDisplay.getPlid(),l=t.portletData,d=t.portletId,n=t.portletItemId,s=t.placeHolder;s=s?e.one(s):e.Node.create('\x3cdiv class\x3d"loading-animation" /\x3e');var p=t.beforePortletLoaded,f=t.onComplete,c=null;if(Liferay.Layout&&Liferay.Layout.INITIALIZED&&(c=Liferay.Layout.getActiveDropContainer()),c){var y=c.attr("id").replace(/layout-column_/,""),u=0;if(t.placeHolder){var h=s.get("parentNode");if(!h)return;s.addClass("portlet-boundary");
var L=h.all(".portlet-boundary"),g=h.all(".portlet-nested-portlets");u=L.indexOf(s);var v=0;g.some((e)=>{var t=L.indexOf(e);if(-1!==t&&t<u)v+=e.all(".portlet-boundary").size();else if(t>=u)return!0}),u-=v,y=r.getColumnId(h.attr("id"))}var m=themeDisplay.getPathMain()+"/portal/update_layout",P={cmd:"add",dataType:"JSON",doAsUserId:o,p_auth:Liferay.authToken,p_l_id:i,p_p_col_id:y,p_p_col_pos:u,p_p_i_id:n,p_p_id:d,p_p_isolated:!0,p_v_l_s_g_id:themeDisplay.getSiteGroupId(),portletData:l},_=c.one(".portlet-boundary"),
b=_&&_.isStatic;t.placeHolder||t.plid||(b?_.placeAfter(s):c.prepend(s)),P.currentURL=Liferay.currentURL,a.addHTML({beforePortletLoaded:p,data:P,onComplete:function(e,t){f&&f(e,t),a.list.push(e.portletId),e&&e.attr("data-qa-id","app-loaded"),Liferay.fire("addPortlet",{portlet:e})},placeHolder:s,url:m})}},["aui-base"]),Liferay.provide(o,"addHTML",function(a){var i=this,l=null,d=a.beforePortletLoaded,n=a.data,s="HTML",p=a.onComplete,f=a.placeHolder,c=a.url;n&&t.isString(n.dataType)&&(s=n.dataType),s=
s.toUpperCase();var y=function(t){var a,o=f.get("parentNode"),d=e.Node.create("\x3cdiv\x3e\x3c/div\x3e");if(d.plug(e.Plugin.ParseContent),d.setContent(t),d=d.one("\x3e *")){var n=d.attr("id");a=r.getPortletId(n),d.portletId=a,f.hide(),f.placeAfter(d),f.remove(),i.refreshLayout(d),window.location.hash&&(window.location.href=window.location.hash),l=d;var s=Liferay.Layout;s&&s.INITIALIZED&&(s.updateCurrentPortletInfo(l),o&&s.syncEmptyColumnClassUI(o),s.syncDraggableClassUI(),s.updatePortletDropZones(l)),
p&&p(l,a)}else f.remove();return a};d&&d(f),Liferay.Util.fetch(c,{body:Liferay.Util.objectToURLSearchParams(n),method:"POST"}).then((e)=>"JSON"===s?e.json():e.text()).then((e)=>{"HTML"===s?y(e):e.refresh?y(e.portletHTML):(o._loadMarkupHeadElements(e),o._loadPortletFiles(e,y)),n&&n.preventNotification||Liferay.fire("updatedLayout")}).catch((e)=>{var t="string"==typeof e?e:'Ocorreu\x20um\x20erro\x20inesperado\x2e\x20Por\x20favor\x2c\x20atualize\x20a\x20página\x20atual\x2e';Liferay.Util.openToast({message:t,type:"danger"})})},
["aui-parse-content"]),Liferay.provide(o,"close",function(t,r,a){if((t=e.one(t))&&(r||confirm('Você\x20tem\x20certeza\x20que\x20deseja\x20remover\x20este\x20componente\x3f'))){var i=t.portletId,l=this.list.indexOf(i);l>=0&&this.list.splice(l,1),a=o._mergeOptions(t,a),o.destroyComponents(i),Liferay.fire("destroyPortlet",a),Liferay.fire("closePortlet",a)}else e.config.win.focus()},[]),Liferay.provide(o,"destroy",(t,a)=>{if(t=e.one(t)){var i=t.portletId||r.getPortletId(t.attr("id"));o.destroyComponents(i),Liferay.fire("destroyPortlet",
o._mergeOptions(t,a))}},["aui-node-base"]),Liferay.provide(o,"onLoad",function(t){var a=this,o=t.canEditTitle,i=t.columnPos,l="no"===t.isStatic?null:t.isStatic,d=t.namespacedId,n=t.portletId,s=t.refreshURL,p=t.refreshURLData;l&&a.registerStatic(n);var f=e.one("#"+d);if(f&&!f.portletProcessed&&(f.portletProcessed=!0,f.portletId=n,f.columnPos=i,f.isStatic=l,f.refreshURL=s,f.refreshURLData=p,o)){var c="focus";e.UA.touchEnabled||(c=["focus","mousemove"]);var y=f.on(c,()=>{r.portletTitleEdit({doAsUserId:themeDisplay.getDoAsUserIdEncoded(),
obj:f,plid:themeDisplay.getPlid(),portletId:n}),y.detach()})}Liferay.fire("portletReady",{portlet:f,portletId:n}),a.readyCounter++,a.readyCounter===a.list.length&&Liferay.fire("allPortletsReady",{portletId:n})},["aui-base","aui-timer","event-move"]),Liferay.provide(o,"refresh",function(r,a,i){if(r=e.one(r)){a=i?_objectSpread(_objectSpread({},r.refreshURLData||{}),a||{}):a||r.refreshURLData||{},Object.prototype.hasOwnProperty.call(a,"portletAjaxable")||(a.portletAjaxable=!0);var l=r.attr("portlet"),
d=r.refreshURL,n=e.Node.create('\x3cdiv class\x3d"loading-animation" id\x3d"p_p_id'+l+'" /\x3e');if(a.portletAjaxable&&d){r.placeBefore(n),r.remove(!0),o.destroyComponents(r.portletId);var s={},p=d.split("?");p.length>1&&(delete (s=e.QueryString.parse(p[1])).dataType,d=p[0]),this.addHTML({data:e.mix(s,a,!0),onComplete(e,t){e.refreshURL=d,e&&e.attr("data-qa-id","app-refreshed"),Liferay.fire(e.portletId+":portletRefreshed",{portlet:e,portletId:t})},placeHolder:n,url:d})}else if(!r.getData("pendingRefresh")){r.setData("pendingRefresh",
!0);var f=t.sub('\x3cdiv class\x3d"alert alert-info"\x3e{0}\x3c/div\x3e',['Esta\x20modificação\x20será\x20exibida\x20somente\x20quando\x20a\x20página\x20for\x20atualizada\x2e']),c=r.one(".portlet-body");c.placeBefore(f),c.hide()}}},["aui-base","querystring-parse"]),Liferay.provide(o,"registerStatic",function(t){var a=e.Node;a&&t instanceof a?t=t.attr("id"):t.id&&(t=t.id);var o=r.getPortletId(t);this._staticPortlets[o]=!0},["aui-base"]),Liferay.publish("closePortlet",{defaultFn:o._defCloseFn}),Liferay.publish("allPortletsReady",
{fireOnce:!0}),o.ready=function(e){Liferay.on("portletReady",(t)=>{e(t.portletId,t.portlet)})},Liferay.Portlet=o}(AUI());
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};
(function(){const CONTAINER_REQUESTS_SYMBOL=Symbol.for("__LIFERAY_WEBPACK_CONTAINER_REQUESTS__");const CONTAINERS_SYMBOL=Symbol.for("__LIFERAY_WEBPACK_CONTAINERS__");const GET_MODULE_SYMBOL=Symbol.for("__LIFERAY_WEBPACK_GET_MODULE__");const SHARED_SCOPE_SYMBOL=Symbol.for("__LIFERAY_WEBPACK_SHARED_SCOPE__");const WEBPACK_HELPERS_SYMBOL=Symbol.for("__LIFERAY_WEBPACK_HELPERS__");window[CONTAINER_REQUESTS_SYMBOL]=window[CONTAINER_REQUESTS_SYMBOL]||{};window[CONTAINERS_SYMBOL]=window[CONTAINERS_SYMBOL]||
{};window[SHARED_SCOPE_SYMBOL]=window[SHARED_SCOPE_SYMBOL]||{};const containerRequests=window[CONTAINER_REQUESTS_SYMBOL];const sharedScope=window[SHARED_SCOPE_SYMBOL];let inGetModule=false;let nextCallId=1;const queuedGetModuleCalls=[];const serializeModuleRequests=false;function createContainerRequest(url,onLoadHandler){const script=document.createElement("script");const containerRequest={container:undefined,error:undefined,fetched:false,modules:undefined,script,subscribers:[]};script.src=url;script.onload=
()=>onLoadHandler(containerRequest);document.head.appendChild(script);return containerRequest}function explain(...things){if(Liferay.EXPLAIN_RESOLUTIONS)console.log(...things)}function transformChunkScriptFilename(chunkScriptFileName){return chunkScriptFileName+"?languageId\x3d"+Liferay.ThemeDisplay.getLanguageId()}function getContainerURL(containerId){if(containerId[0]==="@"){const i=containerId.indexOf("/");containerId=containerId.substr(i+1)}return"/o/"+containerId+"/__generated__/container.js?languageId\x3d"+
Liferay.ThemeDisplay.getLanguageId()}function fetchContainer(callId,containerId,resolve,reject){if(containerRequests[containerId])throw new Error(`A request is already registered for container ${containerId}`);const url=getContainerURL(containerId);explain(callId,"Fetching container from URL",url);containerRequests[containerId]=createContainerRequest(url,(containerRequest)=>{explain(callId,"Fetched container",containerId);const container=getContainer(containerId);if(container){explain(callId,"Initializing container with scope:\n",
"   ",Object.entries(sharedScope).map(([name,data])=>`${name}: `+Object.entries(data).map(([version,data])=>`(${version}: ${data.from})`)).join("\n     "));Promise.resolve(container.init(sharedScope)).then(()=>finalizeContainerRequest(callId,containerRequest,container)).catch(reject)}else{const message=`Container ${containerId} was fetched but its script `+`failed to register with Liferay`;console.warn(message);finalizeContainerRequest(callId,containerRequest,new Error(message))}});explain(callId,
"Subscribing to container request");subscribeContainerRequest(containerRequests[containerId],resolve,reject)}function finalizeContainerRequest(callId,containerRequest,result){const {script,subscribers}=containerRequest;containerRequest.fetched=true;containerRequest.script=undefined;containerRequest.subscribers=undefined;if(result instanceof Error){explain(callId,"Rejecting container",script.src,"for",subscribers.length,"subscribers");containerRequest.error=result;subscribers.forEach(({reject})=>reject(result))}else{explain(callId,
"Resolving container",script.src,"for",subscribers.length,"subscribers");containerRequest.container=result;containerRequest.modules={};subscribers.forEach(({resolve})=>resolve(result))}}function getContainer(containerId){if(containerId[0]==="@")containerId=containerId.substr(1).replace("/","!");return window[CONTAINERS_SYMBOL][containerId]}function getModule(moduleName,caller){if(serializeModuleRequests)if(inGetModule)return new Promise((resolve,reject)=>{queuedGetModuleCalls.push(()=>getModule(moduleName,
caller).then(resolve).catch(reject))});else inGetModule=true;const callId=`[${nextCallId++}]`;caller=caller||`[${(new Error).stack.split("\n")[1]}]`;explain(callId,"Getting module",moduleName,"for",caller);return new Promise((resolve,reject)=>{const {containerId,path}=splitModuleName(moduleName);const dispatchNextQueuedCall=()=>{if(!serializeModuleRequests)return;inGetModule=false;if(queuedGetModuleCalls.length)setTimeout(queuedGetModuleCalls.shift(),0)};const resolveGetModuleCall=()=>{const containerRequest=
containerRequests[containerId];const {modules}=containerRequest;const module=modules[path];if(module){explain(callId,"Resolving cached module");resolve(module);dispatchNextQueuedCall()}else{const {container}=containerRequest;explain(callId,"Getting module from container");Promise.resolve(container.get(path)).then((moduleFactory)=>{const module=moduleFactory();modules[path]=module;return module}).then((module)=>{explain(callId,"Resolving module");resolve(module);dispatchNextQueuedCall()}).catch((error)=>
{explain(callId,"Rejecting module",error);reject(error);dispatchNextQueuedCall()})}};const containerRequest=containerRequests[containerId];if(containerRequest){const {fetched}=containerRequest;if(!fetched){explain(callId,"Subscribing to container request");subscribeContainerRequest(containerRequest,resolveGetModuleCall,reject);return}const {error}=containerRequest;if(error){explain(callId,"Rejecting with error",error);reject(error);return}resolveGetModuleCall()}else fetchContainer(callId,containerId,
resolveGetModuleCall,reject)})}function splitModuleName(moduleName){let i=moduleName.indexOf("/");if(moduleName[0]==="@")i=moduleName.indexOf("/",i+1);let containerId;let path;if(i===-1){containerId=moduleName;path="."}else{containerId=moduleName.substring(0,i);path=moduleName.substring(i+1)}return{containerId,path}}function subscribeContainerRequest(containerRequest,resolve,reject){containerRequest.subscribers.push({reject,resolve})}window[GET_MODULE_SYMBOL]=getModule;window[WEBPACK_HELPERS_SYMBOL]=
{transformChunkScriptFilename}})();
