












!function(){const 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){const t=this._scheduledTasks,a=this._taskStates,e=t.length,h=a.length;for(let n=0;n<e;n++){const e=t[n],d=e.params;for(let t=0;t<h;t++){const h=a[t];e.condition(h,d,s)&&e.action(h,d,s)}}}};Liferay.DOMTaskRunner=s}();

!function(e){const t={},i=Liferay.Util;e.use("attribute","oop",(e=>{e.augment(Liferay,e.Attribute,!0)})),Liferay.provide(Liferay,"delegateClick",((i,a)=>{const r=e.config.doc.getElementById(i);if(!r||r.id!==i)return;const n=e.one(r).addClass("lfr-delegate-click").guid();t[n]=a,Liferay._baseDelegateHandle||(Liferay._baseDelegateHandle=e.getBody().delegate("click",Liferay._baseDelegate,".lfr-delegate-click"))}),["aui-base"]),Liferay._baseDelegate=function(e){const i=e.currentTarget.attr("id"),a=t[i];a&&a.apply(this,arguments)},Liferay._CLICK_EVENTS=t,Liferay.provide(window,"submitForm",((t,a,r,n)=>{i._submitLocked||(t.jquery&&(t=t[0]),Liferay.fire("submitForm",{action:a,form:e.one(t),singleSubmit:r,validate:!1!==n}))}),["aui-base","aui-form-validator","aui-url","liferay-form"]),Liferay.publish("submitForm",{defaultFn(t){const a=t.form;let r=!1;if(t.validate){const t=Liferay.Form.get(a.attr("id"));if(t){const i=t.formValidator;e.instanceOf(i,e.FormValidator)&&(i.validate(),r=i.hasErrors(),r&&i.focusInvalidField())}}if(!r){let r=t.action||a.getAttribute("action");const n=t.singleSubmit,o=a.all("button[type=submit], input[type=button], input[type=image], input[type=reset], input[type=submit]"),l=Array.from(o._nodes);let s,d;l.length&&l.map((e=>{e.disabled=!0,e.style.opacity=.5})),i._submitLocked=!1!==n||e.later(1e3,i,(function enableFormButtons(e){i._submitLocked=null,i.toggleDisabled(e,!1)}),[o,a]);const f=r.indexOf("?");-1===f?(s=r,d=""):(s=r.slice(0,f),d=r.slice(f+1));const u=new URLSearchParams(d);let c=u.get("p_auth")||"";c.includes("#")&&(c=c.substring(0,c.indexOf("#"))),c&&(a.append('<input name="p_auth" type="hidden" value="'+c+'" />'),u.delete("p_auth"),r=s+"?"+u.toString()),a.attr("action",r),i.submitForm(a),a.attr("target",""),i._submitLocked=null}}}),Liferay.after("closeWindow",(e=>{const t=e.id,a=i.getTop().Liferay.Util.Window.getById(t);if(a&&a.iframe){const t=a.iframe.node.get("contentWindow").getDOM().Liferay.Util.getOpener(),i=e.redirect;if(i)t.Liferay.Util.navigate(i);else{const i=e.refresh;if(i&&t){let a;e.portletAjaxable||(a={portletAjaxable:!1}),t.Liferay.Portlet.refresh("#p_p_id_"+i+"_",a)}}a.hide()}}))}(AUI());


Liferay.lazyLoad=function(){let e;const isFunction=function(e){return"function"==typeof e};let n,t;if(Array.isArray(arguments[0]))n=arguments[0],t=isFunction(arguments[1])?arguments[1]:null,e=isFunction(arguments[2])?arguments[2]:null;else{n=[];for(let l=0;l<arguments.length;++l)if("string"==typeof arguments[l])n[l]=arguments[l];else if(isFunction(arguments[l])){t=arguments[l],e=isFunction(arguments[++l])?arguments[l]:null;break}}return function(){const l=[];for(let e=0;e<arguments.length;++e)l.push(arguments[e]);Liferay.Loader.require(n,(function(){for(let e=0;e<arguments.length;++e)l.splice(e,0,arguments[e]);t.apply(t,l)}),e)}};

Liferay=window.Liferay||{},function(){const isFunction=function(t){return"function"==typeof t},isNode=function(t){return t&&(t._node||t.jquery||t.nodeType)},t=/^get$/i;Liferay.namespace=function namespace(t,e){void 0===e&&(e=t,t=this);const o=e.split(".");for(let e;o.length&&(e=o.shift());)t=t[e]&&t[e]!==Object.prototype[e]?t[e]:t[e]={};return t};const Service=function(){const t=Service.parseInvokeArgs(Array.prototype.slice.call(arguments,0));return Service.invoke.apply(Service,t)};function getHttpMethodFunction(t){return function(){const e=Array.prototype.slice.call(arguments,0),o={method:t};return e.push(o),Service.apply(Service,e)}}Service.URL_INVOKE=themeDisplay.getPathContext()+"/api/jsonws/invoke",Service.bind=function(){const t=Array.prototype.slice.call(arguments,0);return function(){const e=Array.prototype.slice.call(arguments,0);return Service.apply(Service,t.concat(e))}},Service.parseInvokeArgs=function(t){const e=this;let o=t[0];const n=e.parseIOConfig(t);if("string"==typeof o){o=e.parseStringPayload(t),e.parseIOFormConfig(n,t);const r=t[t.length-1];"object"==typeof r&&r.method&&(n.method=r.method)}return[o,n]},Service.parseIOConfig=function(e){const o=e[0],n=o.io||{};if(delete o.io,!n.success){const t=e.filter(isFunction);let o=t[1];const r=t[0];o||(o=r),n.error=o,n.complete=function(t){if(Object.prototype.hasOwnProperty.call(t,"exception")){if(o){const e=t?t.exception:"The server returned an empty response";o.call(this,e,t)}}else r&&r.call(this,t)}}return!Object.prototype.hasOwnProperty.call(n,"cache")&&t.test(n.type)&&(n.cache=!1),n},Service.parseIOFormConfig=function(t,e){const o=e[1];isNode(o)&&("multipart/form-data"===o.enctype&&(t.contentType="multipart/form-data"),t.formData=new FormData(o))},Service.parseStringPayload=function(t){let e={};const o={},n=t[1];return isFunction(n)||isNode(n)||(e=n),o[t[0]]=e,o},Service.invoke=function(t,e){const o=JSON.stringify(t);let n=o;return e.formData&&(e.formData.append("cmd",o),n=e.formData),Liferay.Util.fetch(this.URL_INVOKE,{body:n,headers:{contentType:e.contentType},method:"POST"}).then((t=>Promise.all([Promise.resolve(t),t.json()]))).then((([t,o])=>{t.ok?e.complete(o):e.error()})).catch(e.error)},Service.get=getHttpMethodFunction("get"),Service.del=getHttpMethodFunction("delete"),Service.post=getHttpMethodFunction("post"),Service.put=getHttpMethodFunction("put"),Service.update=getHttpMethodFunction("update"),Liferay.Service=Service,Liferay.Template={PORTLET:'<div class="portlet"><div class="portlet-topper"><div class="portlet-title"></div></div><div class="portlet-content"></div><div class="forbidden-action"></div></div>'}}();


(()=>{var t={8686:(t,S,C)=>{var I,A=/[&<>"'`]/g,M=RegExp(A.source),D="object"==typeof C.g&&C.g&&C.g.Object===Object&&C.g,k="object"==typeof self&&self&&self.Object===Object&&self,z=D||k||Function("return this")(),W=(I={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","`":"&#96;"},function(t){return null==I?void 0:I[t]}),V=Object.prototype.toString,$=z.Symbol,Y=$?$.prototype:void 0,G=Y?Y.toString:void 0;t.exports=function(t){var S;return(t=null==(S=t)?"":function(t){if("string"==typeof t)return t;if(function(t){return"symbol"==typeof t||function(t){return!!t&&"object"==typeof t}(t)&&"[object Symbol]"==V.call(t)}(t))return G?G.call(t):"";var S=t+"";return"0"==S&&1/t==-1/0?"-0":S}(S))&&M.test(t)?t.replace(A,W):t}},1991:(t,S,C)=>{Object.defineProperty(S,"__esModule",{value:!0}),S.default=void 0;var I,A=C(7387),M=(I=C(1521))&&I.__esModule?I:{default:I};function a(t,S){let C=t.indexOf('">');const I=t.substring(C);C=S.indexOf('">');const A=S.substring(C);return I<A?-1:I>A?1:0}function s(t,S,C){const I=t[S],D=document.getElementById(I.select);if(!D)return;const k=function(t){return!!Array.isArray(t)||!(!t||"object"!=typeof t||"number"!=typeof t.length||t.tagName||t.scrollTo||t.document)}(W=I.selectVal)?Array.from(W):[W],z=[];var W;for(!1!==I.selectNullable&&z.push('<option selected value="0"></option>'),C.forEach((t=>{const S=(0,A.escapeHTML)(t[I.selectId]),C=(0,A.escapeHTML)(t[I.selectDesc]);let M="";k.indexOf(S)>-1&&(M='selected="selected"'),z.push("<option ".concat(M,' value="').concat(S,'">').concat(C,"</option>"))})),I.selectSort&&z.sort(a);D.lastChild;)D.removeChild(D.lastChild);D.innerHTML=z.join(""),I.selectDisableOnEmpty&&(0,M.default)(D,!C.length)}S.default=class{constructor(t){!function(t){t.forEach(((S,C)=>{const I=S.select,A=document.getElementById(I),M=S.selectData;if(A){let S;A.setAttribute("data-componentType","dynamic_select"),C>0&&(S=t[C-1].selectVal),M((S=>{s(t,C,S)}),S),A.getAttribute("name")||A.setAttribute("name",I),A.addEventListener("change",(()=>{!function(t,S){if(S+1<t.length){const C=document.getElementById(t[S].select);(0,t[S+1].selectData)((C=>{s(t,S+1,C)}),C&&C.value)}}(t,C)}))}}))}(t)}}},3337:(t,S)=>{Object.defineProperty(S,"__esModule",{value:!0}),S.default=void 0,S.default={PHONE:768,TABLET:980}},2801:(t,S)=>{Object.defineProperty(S,"__esModule",{value:!0}),S.default=S.initComponentCache=S.getComponentCache=S.destroyUnfulfilledPromises=S.destroyComponents=S.destroyComponent=S.componentReady=S.component=void 0;const C={};let I={};const A={};let M={};const D={},k=["p_p_id","p_p_lifecycle"],z=["ddmStructureKey","fileEntryTypeId","folderId","navigation","status"],W="liferay.component",u=function(t){let S;if(t)S={promise:Promise.resolve(t),resolve(){}};else{let t;S={promise:new Promise((S=>{t=S})),resolve:t}}return S},d=function(t,S,C){const I=t.data;Object.keys(I).forEach((t=>{const S=C.querySelector("#".concat(t));S&&(S.innerHTML=I[t].html)}))},f=function(t){const S=new URL(window.location.href),I=new URL(t.path,window.location.href);if(k.every((t=>I.searchParams.get(t)===S.searchParams.get(t)))){let t=Object.keys(A);t=t.filter((t=>{const M=A[t];if(!M)return!1;const D=C[t],k=z.every((t=>{let C=!1;if(D){const A="_".concat(D.portletId,"_").concat(t);C=I.searchParams.get(A)===S.searchParams.get(A)}return C}));return"function"==typeof M.isCacheable&&M.isCacheable(I)&&k&&D&&D.cacheState&&M.element&&M.getState})),M=t.reduce(((t,S)=>{const I=A[S],M=C[S],D=I.getState(),k=M.cacheState.reduce(((t,S)=>(t[S]=D[S],t)),{});return t[S]={html:I.element.innerHTML,state:k},t}),[]),Liferay.DOMTaskRunner.addTask({action:d,condition:t=>t.owner===W}),Liferay.DOMTaskRunner.addTaskState({data:M,owner:W})}else M={}},p=function(t,S,M){let k;if(1===arguments.length){let S=A[t];S&&"function"==typeof S&&(D[t]=S,S=S(),A[t]=S),k=S}else if(A[t]&&null!==S&&(delete C[t],delete I[t],console.warn('Component with id "'+t+'" 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.')),k=A[t]=S,null===S)delete C[t],delete I[t];else{C[t]=M,Liferay.fire(t+":registered");const A=I[t];A?A.resolve(S):I[t]=u(S)}return k};S.component=p,S.componentReady=function e(){let t,S;if(1===arguments.length)t=arguments[0];else{t=[];for(let S=0;S<arguments.length;S++)t[S]=arguments[S]}if(Array.isArray(t))S=Promise.all(t.map((t=>e(t))));else{let C=I[t];C||(I[t]=C=u()),S=C.promise}return S};const h=function(t){const S=A[t];if(S){const M=S.destroy||S.dispose;M&&M.call(S),delete C[t],delete I[t],delete D[t],delete A[t]}};S.destroyComponent=h,S.destroyComponents=function(t){let S=Object.keys(A);t&&(S=S.filter((S=>t(A[S],C[S]||{})))),S.forEach(h)},S.destroyUnfulfilledPromises=function(){I={}},S.getComponentCache=function(t){const S=M[t];return S?S.state:{}},S.initComponentCache=function(){Liferay.on("startNavigate",f)};var V=p;S.default=V},5894:(t,S)=>{Object.defineProperty(S,"__esModule",{value:!0}),S.default=void 0,S.default=class{constructor(){this._disposed=!1}dispose(){this._disposed||(this.disposeInternal(),this._disposed=!0)}disposeInternal(){}isDisposed(){return this._disposed}}},6454:(t,S,C)=>{Object.defineProperty(S,"__esModule",{value:!0}),S.default=void 0;var I=i(C(5894)),A=i(C(2045));function i(t){return t&&t.__esModule?t:{default:t}}const M=[0];class s extends I.default{constructor(){super(),this._events=null,this._listenerHandlers=null,this._shouldUseFacade=!1}_addHandler(t,S){return t?(Array.isArray(t)||(t=[t]),t.push(S)):t=S,t}addListener(t,S,C){this._validateListener(S);const I=this._toEventsArray(t);for(let t=0;t<I.length;t++)this._addSingleListener(I[t],S,C);return new A.default(this,t,S)}_addSingleListener(t,S,C,I){this._runListenerHandlers(t),(C||I)&&(S={default:C,fn:S,origin:I}),this._events=this._events||{},this._events[t]=this._addHandler(this._events[t],S)}_buildFacade(t){if(this.getShouldUseFacade()){const S={preventDefault(){S.preventedDefault=!0},target:this,type:t};return S}}disposeInternal(){this._events=null}emit(t){const S=this._getRawListeners(t);if(!S.length)return!1;const C=Array.prototype.slice.call(arguments,1);return this._runListeners(S,C,this._buildFacade(t)),!0}_getRawListeners(t){return c(this._events&&this._events[t]).concat(c(this._events&&this._events["*"]))}getShouldUseFacade(){return this._shouldUseFacade}listeners(t){return this._getRawListeners(t).map((t=>t.fn?t.fn:t))}many(t,S,C){const I=this._toEventsArray(t);for(let t=0;t<I.length;t++)this._many(I[t],S,C);return new A.default(this,t,C)}_many(t,S,C){const I=this;S<=0||I._addSingleListener(t,(function o(){0==--S&&I.removeListener(t,o),C.apply(I,arguments)}),!1,C)}_matchesListener(t,S){return(t.fn||t)===S||t.origin&&t.origin===S}off(t,S){if(this._validateListener(S),!this._events)return this;const C=this._toEventsArray(t);for(let t=0;t<C.length;t++)this._events[C[t]]=this._removeMatchingListenerObjs(c(this._events[C[t]]),S);return this}on(){return this.addListener.apply(this,arguments)}onListener(t){this._listenerHandlers=this._addHandler(this._listenerHandlers,t)}once(t,S){return this.many(t,1,S)}removeAllListeners(t){if(this._events)if(t){const S=this._toEventsArray(t);for(let t=0;t<S.length;t++)this._events[S[t]]=null}else this._events=null;return this}_removeMatchingListenerObjs(t,S){const C=[];for(let I=0;I<t.length;I++)this._matchesListener(t[I],S)||C.push(t[I]);return C.length?C:null}removeListener(){return this.off.apply(this,arguments)}_runListenerHandlers(t){let S=this._listenerHandlers;if(S){S=c(S);for(let C=0;C<S.length;C++)S[C](t)}}_runListeners(t,S,C){C&&S.push(C);const I=[];for(let C=0;C<t.length;C++){const A=t[C].fn||t[C];t[C].default?I.push(A):A.apply(this,S)}if(!C||!C.preventedDefault)for(let t=0;t<I.length;t++)I[t].apply(this,S)}setShouldUseFacade(t){return this._shouldUseFacade=t,this}_toEventsArray(t){return"string"==typeof t&&(M[0]=t,t=M),t}_validateListener(t){if("function"!=typeof t)throw new TypeError("Listener must be a function")}}function c(t){return t=t||[],Array.isArray(t)?t:[t]}var D=s;S.default=D},2045:(t,S,C)=>{Object.defineProperty(S,"__esModule",{value:!0}),S.default=void 0;var I,A=(I=C(5894))&&I.__esModule?I:{default:I};class i extends A.default{constructor(t,S,C){super(),this._emitter=t,this._event=S,this._listener=C}disposeInternal(){this.removeListener(),this._emitter=null,this._listener=null}removeListener(){this._emitter.isDisposed()||this._emitter.removeListener(this._event,this._listener)}}var M=i;S.default=M},34:(t,S,C)=>{Object.defineProperty(S,"__esModule",{value:!0}),S.hideLayoutPane=function(t){const S=(t=t||{}).obj;let C=t.pane;S&&S.checked&&(C=document.querySelector(C),C&&C.classList.add("hide"))},S.getLayoutIcons=function(){return{minus:themeDisplay.getPathThemeImages()+"/arrows/01_minus.png",plus:themeDisplay.getPathThemeImages()+"/arrows/01_plus.png"}},S.proposeLayout=function(t){const S=(t=t||{}).namespace,C=t.reviewers;let I='<div><form action="'+t.url+'" method="post">';if(C.length){I+='<textarea name="'+S+'description" style="height: 100px; width: 284px;"></textarea><br /><br />'+'Reviewer'+' <select name="'+S+'reviewUserId">';for(let t=0;t<C.length;t++)I+='<option value="'+C[t].userId+'">'+C[t].fullName+"</option>";I+='</select><br /><br /><input type="submit" value="'+'Proceed'+'" />'}else I+='No\x20reviewers\x20were\x20found\x2e'+"<br />"+'Please\x20contact\x20the\x20administrator\x20to\x20assign\x20reviewers\x2e'+"<br /><br />";I+="</form></div>",(0,A.default)({dialog:{destroyOnHide:!0},title:I})},S.publishToLive=function(t){t=t||{},(0,A.default)({dialog:{constrain:!0,modal:!0,on:{visibleChange(t){t.newVal||this.destroy()}}},title:t.title,uri:t.url})},S.showLayoutPane=function(t){const S=(t=t||{}).obj;let C=t.pane;S&&S.checked&&(C=document.querySelector(C),C&&C.classList.remove("hide"))},S.toggleLayoutDetails=function(t){t=t||{};const S=document.querySelector(t.detail),C=document.querySelector(t.toggle);if(S&&C){let t=themeDisplay.getPathThemeImages()+"/arrows/01_plus.png";S.classList.contains("hide")?(S.classList.remove("hide"),t=themeDisplay.getPathThemeImages()+"/arrows/01_minus.png"):S.classList.add("hide"),C.setAttribute("src",t)}};var I,A=(I=C(742))&&I.__esModule?I:{default:I}},9356:(t,S,C)=>{Object.defineProperty(S,"__esModule",{value:!0}),S.showTab=function(t,S,C,I){const D=t+(0,A.default)(C),k=document.getElementById(D+"TabsId"),z=document.getElementById(D+"TabsSection");if(k&&z){const A={id:C,names:S,namespace:t,selectedTab:k,selectedTabSection:z};I&&"function"==typeof I&&I.call(this,t,S,C,A);try{Liferay.on(M,a),Liferay.fire(M,A)}finally{Liferay.detach(M,a)}}},S.applyTabSelectionDOMChanges=a;var I,A=(I=C(7639))&&I.__esModule?I:{default:I};const M="showTab";function a({id:t,names:S,namespace:C,selectedTab:I,selectedTabSection:M}){const D=I.querySelector("a");if(I&&D){const t=I.parentElement.querySelector(".active");t&&t.classList.remove("active"),D.classList.add("active")}M&&M.classList.remove("hide");const k=document.getElementById(C+"dropdownTitle");let z;k&&D&&(k.innerHTML=D.textContent),S.splice(S.indexOf(t),1);for(let t=0;t<S.length;t++)z=document.getElementById(C+(0,A.default)(S[t])+"TabsSection"),z&&z.classList.add("hide")}},1425:(t,S)=>{Object.defineProperty(S,"__esModule",{value:!0}),S.showTooltip=function(t,S){t.setAttribute("title",S),t.classList.add("lfr-portal-tooltip")}},7212:(t,S,C)=>{Object.defineProperty(S,"__esModule",{value:!0}),S.default=S.PortletInit=void 0;var I=l(C(8633)),A=l(C(6549)),M=l(C(889)),D=l(C(1842)),k=l(C(7737)),z=C(6134);function l(t){return t&&t.__esModule?t:{default:t}}function u(t,S){var C=Object.keys(t);if(Object.getOwnPropertySymbols){var I=Object.getOwnPropertySymbols(t);S&&(I=I.filter((function(S){return Object.getOwnPropertyDescriptor(t,S).enumerable}))),C.push.apply(C,I)}return C}function d(t,S,C){return S in t?Object.defineProperty(t,S,{value:C,enumerable:!0,configurable:!0,writable:!0}):t[S]=C,t}const W=window.history&&window.history.pushState;let V=!1;const $={},Y=[];let G;class _{constructor(t){this._portletId=t,this.constants=function(t){for(var S=1;S<arguments.length;S++){var C=null!=arguments[S]?arguments[S]:{};S%2?u(Object(C),!0).forEach((function(S){d(t,S,C[S])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(C)):u(Object(C)).forEach((function(S){Object.defineProperty(t,S,Object.getOwnPropertyDescriptor(C,S))}))}return t}({},k.default),G||(G=C.g.portlet.data.pageRenderState,this._updateHistory(!0)),this.portletModes=G.portlets[this._portletId].allowedPM.slice(0),this.windowStates=G.portlets[this._portletId].allowedWS.slice(0)}_executeAction(t,S){return new Promise(((C,I)=>{(0,z.getUrl)(G,"ACTION",this._portletId,t).then((t=>{const M=(0,z.generateActionUrl)(this._portletId,t,S);(0,A.default)(M.url,M).then((t=>t.text())).then((t=>{const S=this._updatePageStateFromString(t,this._portletId);C(S)})).catch((t=>{I(t)}))}))}))}_hasListener(t){return Object.keys($).map((t=>$[t].id)).includes(t)}_reportError(t,S){Object.keys($).map((C=>{const I=$[C];return I.id===t&&"portlet.onError"===I.type&&setTimeout((()=>{I.handler("portlet.onError",S)})),!1}))}_setPageState(t,S){if("string"!=typeof S)throw new TypeError("Invalid update string: ".concat(S));this._updatePageState(S,t).then((t=>{this._updatePortletStates(t)}),(S=>{V=!1,this._reportError(t,S)}))}_setState(t){const S=(0,z.getUpdatedPublicRenderParameters)(G,this._portletId,t),C=[];Object.keys(S).forEach((t=>{const I=S[t],A=G.prpMap[t];Object.keys(A).forEach((t=>{if(t!==this._portletId){const S=A[t].split("|"),M=S[0],D=S[1];void 0===I?delete G.portlets[M].state.parameters[D]:G.portlets[M].state.parameters[D]=[...I],C.push(M)}}))}));const I=this._portletId;return G.portlets[I].state=t,C.push(I),C.forEach((t=>{G.portlets[t].renderData.content=null})),this._updateHistory(),Promise.resolve(C)}_setupAction(t,S){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 V=!0,this._executeAction(t,S).then((t=>this._updatePortletStates(t).then((t=>(V=!1,t)))),(t=>{V=!1,this._reportError(this._portletId,t)}))}_updateHistory(t){W&&(0,z.getUrl)(G,"RENDER",null,{}).then((S=>{const C=JSON.stringify(G);if(t)history.replaceState(C,"");else try{history.pushState(C,"",S)}catch(t){}}))}_updatePageState(t){return new Promise(((S,C)=>{try{S(this._updatePageStateFromString(t,this._portletId))}catch(t){C(new Error("Partial Action decode status: ".concat(t.message)))}}))}_updatePageStateFromString(t,S){const C=(0,z.decodeUpdateString)(G,t),I=[];let A=!1;return Object.entries(C).forEach((([t,S])=>{G.portlets[t]=S,I.push(t),A=!0})),A&&S&&this._updateHistory(),I}_updatePortletStates(t){return new Promise((S=>{t.length?t.forEach((t=>{this._updateStateForPortlet(t)})):V=!1,S(t)}))}_updateState(t){if(V)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"};V=!0,this._setState(t).then((t=>{this._updatePortletStates(t)})).catch((t=>{V=!1,this._reportError(this._portletId,t)}))}_updateStateForPortlet(t){const S=Y.map((t=>t.handle));Object.entries($).forEach((([C,I])=>{"portlet.onStateChange"===I.type&&(I.id!==t||S.includes(C)||Y.push(I))})),Y.length&&setTimeout((()=>{for(V=!0;Y.length;){const t=Y.shift(),S=t.handler,C=t.id;if(!G.portlets[C])continue;const I=G.portlets[C].renderData,A=new D.default(G.portlets[C].state);I&&I.content?S("portlet.onStateChange",A,I):S("portlet.onStateChange",A)}V=!1}))}action(...t){let S=null,C=0,I=null;return t.forEach((t=>{if(t instanceof HTMLFormElement){if(null!==I)throw new TypeError("Too many [object HTMLFormElement] arguments: ".concat(t,", ").concat(I));I=t}else if((0,M.default)(t)){if((0,z.validateParameters)(t),null!==S)throw new TypeError("Too many parameters arguments");S=t}else if(void 0!==t){const S=Object.prototype.toString.call(t);throw new TypeError("Invalid argument type. Argument ".concat(C+1," is of type ").concat(S))}C++})),I&&(0,z.validateForm)(I),this._setupAction(S,I).then((t=>{Promise.resolve(t)})).catch((t=>{Promise.reject(t)}))}addEventListener(t,S){if(arguments.length>2)throw new TypeError("Too many arguments passed to addEventListener");if("string"!=typeof t||"function"!=typeof S)throw new TypeError("Invalid arguments passed to addEventListener");const C=this._portletId;if(t.startsWith("portlet.")&&"portlet.onStateChange"!==t&&"portlet.onError"!==t)throw new TypeError("The system event type is invalid: ".concat(t));const A=(0,I.default)(),M={handle:A,handler:S,id:C,type:t};return $[A]=M,"portlet.onStateChange"===t&&this._updateStateForPortlet(this._portletId),A}createResourceUrl(t,S,C){if(arguments.length>3)throw new TypeError("Too many arguments. 3 arguments are allowed.");if(t){if(!(0,M.default)(t))throw new TypeError("Invalid argument type. Resource parameters must be a parameters object.");(0,z.validateParameters)(t)}let I=null;if(S){if("string"!=typeof S)throw new TypeError("Invalid argument type. Cacheability argument must be a string.");if("cacheLevelPage"!==S&&"cacheLevelPortlet"!==S&&"cacheLevelFull"!==S)throw new TypeError("Invalid cacheability argument: ".concat(S));I=S}if(I||(I="cacheLevelPage"),C&&"string"!=typeof C)throw new TypeError("Invalid argument type. Resource ID argument must be a string.");return(0,z.getUrl)(G,"RESOURCE",this._portletId,t,I,C)}dispatchClientEvent(t,S){if((0,z.validateArguments)(arguments,2,2,["string"]),t.match(new RegExp("^portlet[.].*")))throw new TypeError("The event type is invalid: "+t);return Object.keys($).reduce(((C,I)=>{const A=$[I];return t.match(A.type)&&(A.handler(t,S),C++),C}),0)}isInProgress(){return V}newParameters(t={}){const S={};return Object.keys(t).forEach((C=>{Array.isArray(t[C])&&(S[C]=[...t[C]])})),S}newState(t){return new D.default(t)}removeEventListener(t){if(arguments.length>1)throw new TypeError("Too many arguments passed to removeEventListener");if(null==t)throw new TypeError("The event handle provided is ".concat(typeof t));let S=!1;if((0,M.default)($[t])&&$[t].id===this._portletId){delete $[t];const C=Y.length;for(let S=0;S<C;S++){const C=Y[S];C&&C.handle===t&&Y.splice(S,1)}S=!0}if(!S)throw new TypeError("The event listener handle doesn't match any listeners.")}setRenderState(t){if((0,z.validateArguments)(arguments,1,1,["object"]),G.portlets&&G.portlets[this._portletId]){const S=G.portlets[this._portletId];(0,z.validateState)(t,S),this._updateState(t)}}startPartialAction(t){const S=this;let C=null;if(arguments.length>1)throw new TypeError("Too many arguments. 1 arguments are allowed");if(void 0!==t){if(!(0,M.default)(t))throw new TypeError("Invalid argument type. Argument is of type ".concat(typeof t));(0,z.validateParameters)(t),C=t}if(!0===V)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"};V=!0;const I={setPageState(t){S._setPageState(S._portletId,t)},url:""};return(0,z.getUrl)(G,"PARTIAL_ACTION",this._portletId,C).then((t=>(I.url=t,I)))}}S.PortletInit=_;var X=_;S.default=X},1842:(t,S,C)=>{Object.defineProperty(S,"__esModule",{value:!0}),S.default=S.RenderState=void 0;var I=i(C(889)),A=i(C(7737));function i(t){return t&&t.__esModule?t:{default:t}}class a{constructor(t){(0,I.default)(t)?this.from(t):(this.parameters={},this.portletMode=A.default.VIEW,this.windowState=A.default.NORMAL)}clone(){return new a(this)}from(t){this.parameters={},Object.keys(t.parameters).forEach((S=>{Array.isArray(t.parameters[S])&&(this.parameters[S]=t.parameters[S].slice(0))})),this.setPortletMode(t.portletMode),this.setWindowState(t.windowState)}getPortletMode(){return this.portletMode}getValue(t,S){if("string"!=typeof t)throw new TypeError("Parameter name must be a string");let C=this.parameters[t];return Array.isArray(C)&&(C=C[0]),void 0===C&&void 0!==S&&(C=S),C}getValues(t,S){if("string"!=typeof t)throw new TypeError("Parameter name must be a string");return this.parameters[t]||S}getWindowState(){return this.windowState}remove(t){if("string"!=typeof t)throw new TypeError("Parameter name must be a string");void 0!==this.parameters[t]&&delete this.parameters[t]}setPortletMode(t){if("string"!=typeof t)throw new TypeError("Portlet Mode must be a string");t!==A.default.EDIT&&t!==A.default.HELP&&t!==A.default.VIEW||(this.portletMode=t)}setValue(t,S){if("string"!=typeof t)throw new TypeError("Parameter name must be a string");if("string"!=typeof S&&null!==S&&!Array.isArray(S))throw new TypeError("Parameter value must be a string, an array or null");Array.isArray(S)||(S=[S]),this.parameters[t]=S}setValues(t,S){this.setValue(t,S)}setWindowState(t){if("string"!=typeof t)throw new TypeError("Window State must be a string");t!==A.default.MAXIMIZED&&t!==A.default.MINIMIZED&&t!==A.default.NORMAL||(this.windowState=t)}}S.RenderState=a;var M=a;S.default=M},5659:(t,S,C)=>{Object.defineProperty(S,"__esModule",{value:!0}),S.minimizePortlet=function(t,S,C){C=function(t){for(var S=1;S<arguments.length;S++){var C=null!=arguments[S]?arguments[S]:{};S%2?c(Object(C),!0).forEach((function(S){l(t,S,C[S])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(C)):c(Object(C)).forEach((function(S){Object.defineProperty(t,S,Object.getOwnPropertyDescriptor(C,S))}))}return t}({doAsUserId:themeDisplay.getDoAsUserIdEncoded(),plid:themeDisplay.getPlid()},C);const k=document.querySelector(t);if(k){const t=k.querySelector(".portlet-content-container");if(t){const z=t.classList.contains("d-none");if(z?(t.classList.remove("d-none"),k.classList.remove("portlet-minimized")):(t.classList.add("d-none"),k.classList.add("portlet-minimized")),S){const t=z?'Minimise':'Restore';S.setAttribute("alt",t),S.setAttribute("title",t),S.innerHTML=t;const C=S.querySelector("i");C&&(C.classList.remove("icon-minus","icon-resize-vertical"),z?(C.classList.add("icon-minus"),C.classList.remove("icon-resize-vertical")):(C.classList.add("icon-resize-vertical"),C.classList.remove("icon-minus")))}const W=(0,M.default)(k.id),V=(0,A.default)({cmd:"minimize",doAsUserId:C.doAsUserId,p_auth:Liferay.authToken,p_l_id:C.plid,p_p_id:W,p_p_restore:z,p_v_l_s_g_id:themeDisplay.getSiteGroupId()});(0,I.default)(themeDisplay.getPathMain()+"/portal/update_layout",{body:V,method:"POST"}).then((t=>{if(t.ok&&z){const t={doAsUserId:C.doAsUserId,p_l_id:C.plid,p_p_boundary:!1,p_p_id:W,p_p_isolated:!0};(0,I.default)((0,D.default)(themeDisplay.getPathMain()+"/portal/render_portlet",t)).then((t=>t.text())).then((t=>{const S=document.createRange();S.selectNode(k),k.innerHTML="";const C=S.createContextualFragment(t);k.appendChild(C)})).catch((t=>{}))}})).catch((t=>{}))}}},S.default=void 0;var I=s(C(6549)),A=s(C(7494)),M=s(C(1166)),D=s(C(4821));function s(t){return t&&t.__esModule?t:{default:t}}function c(t,S){var C=Object.keys(t);if(Object.getOwnPropertySymbols){var I=Object.getOwnPropertySymbols(t);S&&(I=I.filter((function(S){return Object.getOwnPropertyDescriptor(t,S).enumerable}))),C.push.apply(C,I)}return C}function l(t,S,C){return S in t?Object.defineProperty(t,S,{value:C,enumerable:!0,configurable:!0,writable:!0}):t[S]=C,t}var k={register:s(C(8203)).default};S.default=k},7737:(t,S)=>{Object.defineProperty(S,"__esModule",{value:!0}),S.default=S.PortletConstants=void 0;const C={EDIT:"edit",HELP:"help",VIEW:"view",MAXIMIZED:"maximized",MINIMIZED:"minimized",NORMAL:"normal",FULL:"cacheLevelFull",PAGE:"cacheLevelPage",PORTLET:"cacheLevelPortlet"};S.PortletConstants=C;var I=C;S.default=I},6134:(t,S)=>{Object.defineProperty(S,"__esModule",{value:!0}),S.validateState=S.validatePortletId=S.validateParameters=S.validateForm=S.validateArguments=S.getUrl=S.getUpdatedPublicRenderParameters=S.generatePortletModeAndWindowStateString=S.generateActionUrl=S.encodeFormAsString=S.decodeUpdateString=void 0;const C="p_r_p_",I="priv_r_p_",o=function(t,S){let C=!1;void 0===t&&void 0===S&&(C=!0),void 0!==t&&void 0!==S||(C=!1),t.length!==S.length&&(C=!1);for(let I=t.length-1;I>=0;I--)t[I]!==S[I]&&(C=!1);return C};S.decodeUpdateString=function(t,S){const C=t&&t.portlets?t.portlets:{};try{const I=JSON.parse(S);I.portlets&&Object.keys(C).forEach((S=>{const A=I.portlets[S].state,M=C[S].state;if(!A||!M)throw new Error("Invalid update string.\nold state=".concat(M,"\nnew state=").concat(A));(function(t,S,C){let I=!1;if(t&&t.portlets&&t.portlets[C]){const A=t.portlets[C].state;if(!S.portletMode||!S.windowState||!S.parameters)throw new Error("Error decoding state: ".concat(S));S.porletMode!==A.portletMode||S.windowState!==A.windowState?I=!0:(Object.keys(S.parameters).forEach((t=>{const C=S.parameters[t],M=A.parameters[t];o(C,M)||(I=!0)})),Object.keys(A.parameters).forEach((t=>{S.parameters[t]||(I=!0)})))}return I})(t,A,S)&&(C[S]=I.portlets[S])}))}catch(t){}return C};const i=function(t,S){const C=[];for(let I=0;I<S.elements.length;I++){const A=S.elements[I],M=A.name,D=A.nodeName.toUpperCase(),k="INPUT"===D?A.type.toUpperCase():"",z=A.value;if(M&&!A.disabled&&"FILE"!==k)if("SELECT"===D&&A.multiple)[...A.options].forEach((S=>{if(S.checked){const I=S.value,A=encodeURIComponent(t+M)+"="+encodeURIComponent(I);C.push(A)}}));else if("CHECKBOX"!==k&&"RADIO"!==k||A.checked){const S=encodeURIComponent(t+M)+"="+encodeURIComponent(z);C.push(S)}}return C.join("&")};S.encodeFormAsString=i;const a=function(t,S){let C="";return Array.isArray(S)&&(S.length?S.forEach((S=>{C+="&"+encodeURIComponent(t),C+=null===S?"=":"="+encodeURIComponent(S)})):C+="&"+encodeURIComponent(t)+"="),C};S.generateActionUrl=function(t,S,C){const I={credentials:"same-origin",method:"POST",url:S};if(C)if("multipart/form-data"===C.enctype){const t=new FormData(C);I.body=t}else{const A=i(t,C);"GET"===(C.method?C.method.toUpperCase():"GET")?(S.indexOf("?")>=0?S+="&".concat(A):S+="?".concat(A),I.url=S):(I.body=A,I.headers={"Content-Type":"application/x-www-form-urlencoded"})}return I};const s=function(t,S,A,M,D){let k="";if(t.portlets&&t.portlets[S]){const z=t.portlets[S];if(z&&z.state&&z.state.parameters){const t=z.state.parameters[A];void 0!==t&&(k+=a(M===C?D:M===I?S+I+A:S+A,t))}}return k},c=function(t,S){let C="";if(t.portlets){const I=t.portlets[S];if(I.state){const t=I.state;C+="&p_p_mode="+encodeURIComponent(t.portletMode),C+="&p_p_state="+encodeURIComponent(t.windowState)}}return C};S.generatePortletModeAndWindowStateString=c,S.getUpdatedPublicRenderParameters=function(t,S,C){const I={};if(t&&t.portlets){const A=t.portlets[S];if(A&&A.pubParms){const M=A.pubParms;Object.keys(M).forEach((A=>{if(!function(t,S,C,I){let A=!1;if(t&&t.portlets){const M=t.portlets[S];if(C.parameters[I]&&M.state.parameters[I]){const t=C.parameters[I],S=M.state.parameters[I];A=o(t,S)}}return A}(t,S,C,A)){const t=M[A];I[t]=C.parameters[A]}}))}}return I},S.getUrl=function(t,S,A,M,D,k){let z="cacheLevelPage",W="",V="";if(t&&t.portlets){"RENDER"===S&&void 0===A&&(A=null);const M=t.portlets[A];if(M&&("RESOURCE"===S?(V=decodeURIComponent(M.encodedResourceURL),D&&(z=D),V+="&p_p_cacheability="+encodeURIComponent(z),k&&(V+="&p_p_resource_id="+encodeURIComponent(k))):"RENDER"===S&&null!==A?V=decodeURIComponent(M.encodedRenderURL):"RENDER"===S?V=decodeURIComponent(t.encodedCurrentURL):"ACTION"===S?(V=decodeURIComponent(M.encodedActionURL),V+="&p_p_hub="+encodeURIComponent("0")):"PARTIAL_ACTION"===S&&(V=decodeURIComponent(M.encodedActionURL),V+="&p_p_hub="+encodeURIComponent("1")),"RESOURCE"!==S||"cacheLevelFull"!==z)){if(A&&(V+=c(t,A)),A&&(W="",M.state&&M.state.parameters)){const S=M.state.parameters;Object.keys(S).forEach((S=>{(function(t,S,C){let I=!1;if(t&&t.portlets){const A=t.portlets[S];A&&A.pubParms&&(I=Object.keys(A.pubParms).includes(C))}return I})(t,A,S)||(W+=s(t,A,S,I))})),V+=W}if(t.prpMap){W="";const S={};Object.keys(t.prpMap).forEach((I=>{Object.keys(t.prpMap[I]).forEach((A=>{const M=t.prpMap[I][A].split("|");Object.hasOwnProperty.call(S,I)||(S[I]=s(t,M[0],M[1],C,I),W+=S[I])}))})),V+=W}}}return M&&(W="",Object.keys(M).forEach((t=>{W+=a(A+t,M[t])})),V+=W),Promise.resolve(V)},S.validateArguments=function(t=[],S=0,C=1,I=[]){if(t.length<S)throw new TypeError("Too few arguments provided: Number of arguments: ".concat(t.length));if(t.length>C)throw new TypeError("Too many arguments provided: ".concat([].join.call(t,", ")));if(Array.isArray(I)){let S=Math.min(t.length,I.length)-1;for(;S>=0;S--){if(typeof t[S]!==I[S])throw new TypeError("Parameter ".concat(S," is of type ").concat(typeof t[S]," rather than the expected type ").concat(I[S]));if(null===t[S]||void 0===t[S])throw new TypeError("Argument is ".concat(typeof t[S]))}}},S.validateForm=function(t){if(!(t instanceof HTMLFormElement))throw new TypeError("Element must be an HTMLFormElement");const S=t.method?t.method.toUpperCase():void 0;if(S&&"GET"!==S&&"POST"!==S)throw new TypeError("Invalid form method ".concat(S,". Allowed methods are GET & POST"));const C=t.enctype;if(C&&"application/x-www-form-urlencoded"!==C&&"multipart/form-data"!==C)throw new TypeError("Invalid form enctype ".concat(C,". Allowed: 'application/x-www-form-urlencoded' & 'multipart/form-data'"));if(C&&"multipart/form-data"===C&&"POST"!==S)throw new TypeError("Invalid method with multipart/form-data. Must be POST");if(!C||"application/x-www-form-urlencoded"===C){const S=t.elements.length;for(let C=0;C<S;C++)if("INPUT"===t.elements[C].nodeName.toUpperCase()&&"FILE"===t.elements[C].type.toUpperCase())throw new TypeError("Must use enctype = 'multipart/form-data' with input type FILE.")}};const l=function(t){if(null==t)throw new TypeError("The parameter object is: ".concat(typeof t));Object.keys(t).forEach((S=>{if(!Array.isArray(t[S]))throw new TypeError("".concat(S," parameter is not an array"));if(!t[S].length)throw new TypeError("".concat(S," parameter is an empty array"))}))};S.validateParameters=l,S.validatePortletId=function(t={},S=""){return t.portlets&&Object.keys(t.portlets).includes(S)},S.validateState=function(t={},S={}){l(t.parameters);const C=t.portletMode;if("string"!=typeof C)throw new TypeError("Invalid parameters. portletMode is ".concat(typeof C));{const t=S.allowedPM;if(!t.includes(C.toLowerCase()))throw new TypeError("Invalid portletMode=".concat(C," is not in ").concat(t))}const I=t.windowState;if("string"!=typeof I)throw new TypeError("Invalid parameters. windowState is ".concat(typeof I));{const t=S.allowedWS;if(!t.includes(I.toLowerCase()))throw new TypeError("Invalid windowState=".concat(I," is not in ").concat(t))}}},8203:(t,S,C)=>{Object.defineProperty(S,"__esModule",{value:!0}),S.default=S.register=void 0;var I,A=(I=C(7212))&&I.__esModule?I:{default:I},M=C(6134);const a=function(t){(0,M.validateArguments)(arguments,1,1,["string"]);const S=C.g.portlet.data.pageRenderState;return new Promise(((C,I)=>{(0,M.validatePortletId)(S,t)?C(new A.default(t)):I(new Error("Invalid portlet ID"))}))};S.register=a;var D=a;S.default=D},7370:(t,S,C)=>{Object.defineProperty(S,"__esModule",{value:!0}),S.default=void 0;var I=a(C(6454)),A=a(C(36)),M=a(C(6549));function a(t){return t&&t.__esModule?t:{default:t}}function s(t,S){var C=Object.keys(t);if(Object.getOwnPropertySymbols){var I=Object.getOwnPropertySymbols(t);S&&(I=I.filter((function(S){return Object.getOwnPropertyDescriptor(t,S).enumerable}))),C.push.apply(C,I)}return C}function c(t){for(var S=1;S<arguments.length;S++){var C=null!=arguments[S]?arguments[S]:{};S%2?s(Object(C),!0).forEach((function(S){l(t,S,C[S])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(C)):s(Object(C)).forEach((function(S){Object.defineProperty(t,S,Object.getOwnPropertyDescriptor(C,S))}))}return t}function l(t,S,C){return S in t?Object.defineProperty(t,S,{value:C,enumerable:!0,configurable:!0,writable:!0}):t[S]=C,t}const D={breakpoint:576,content:".sidenav-content",gutter:"12px",loadingIndicatorTPL:'<div class="loading-animation loading-animation-md"></div>',navigation:".sidenav-menu-slider",position:"left",type:"relative",typeMobile:"relative",url:null,width:"225px"},k=new WeakMap;function f(t){if(t&&t.jquery){if(t.length>1)throw new Error("getElement(): Expected at most one element, got ".concat(t.length));t=t.get(0)}return!t||t instanceof HTMLElement||(t=t.element),t}function p(t){return t=f(t),k.get(t)}const z=[/^aria-/,/^data-/,/^type$/];function y(t,S,C=null){const I=new CustomEvent(S,{detail:C});t.dispatchEvent(I)}function g(t,S){v(t,{[S]:!0})}function _(t,S){v(t,{[S]:!1})}function v(t,S){(t=f(t))&&Object.entries(S).forEach((([S,C])=>{S.split(/\s+/).forEach((S=>{C?t.classList.add(S):t.classList.remove(S)}))}))}function m(t,S){return t=f(t),S.split(/\s+/).every((S=>t.classList.contains(S)))}function b(t,S){(t=f(t))&&Object.entries(S).forEach((([S,C])=>{t.style[S]=C}))}function w(t){return"number"==typeof t?t+"px":"string"==typeof t&&t.match(/^\s*\d+\s*$/)?t.trim()+"px":t}function O(t){return t.getBoundingClientRect().left+(t.ownerDocument.defaultView.pageOffsetX||0)}const W={};let V;function P(t,S,C){if(t){W[S]||(W[S]={},document.addEventListener(S,(t=>function(t,S){Object.keys(W[t]).forEach((C=>{let I=!1,A=S.target;for(;A&&(I=A.matches&&A.matches(C),!I);)A=A.parentNode;I&&W[t][C].emit("click",S)}))}(S,t))));const A=W[S],M="string"==typeof t?t:function(t){if((t=f(t)).id)return"#".concat(t.id);let S=t.parentNode;for(;S&&!S.id;)S=S.parentNode;const C=Array.from(t.attributes).map((({name:t,value:S})=>z.some((S=>S.test(t)))?"[".concat(t,"=").concat(JSON.stringify(S),"]"):null)).filter(Boolean).sort();return[S?"#".concat(S.id," "):"",t.tagName.toLowerCase(),...C].join("")}(t);A[M]||(A[M]=new I.default);const D=A[M].on(S,(t=>{t.defaultPrevented||C(t)}));return{dispose(){D.dispose()}}}return null}function L(t){return parseInt(t,10)||0}function E(t,S){t=f(t),this.init(t,S)}function T(){const t=document.querySelectorAll('[data-toggle="liferay-sidenav"]');Array.from(t).forEach(E.initialize)}E.TRANSITION_DURATION=500,E.prototype={_bindUI(){this._subscribeClickTrigger(),this._subscribeClickSidenavClose()},_emit(t){this._emitter.emit(t,this)},_focusCloseButton(){const e=()=>{const C=document.querySelector(this.options.container);if(!C)return;const I=C.querySelector(".sidenav-close");I&&(I.addEventListener("click",(()=>this.toggler.focus()),{once:!0}),I.focus(),clearInterval(t),clearTimeout(S))},t=setInterval(e,200),S=setTimeout((()=>clearInterval(t)),3e3);e()},_getSidenavWidth(){const t=this.options.widthOriginal;let S=t;const C=window.innerWidth;return C<t+40&&(S=C-40),S},_getSimpleSidenavType(){const t=this._getType();return this._isDesktop()&&"fixed-push"===t?"desktop-fixed-push":this._isDesktop()||"fixed-push"!==t?"fixed":"mobile-fixed-push"},_getType(){return this._isDesktop()?this.options.type:this.options.typeMobile},_isDesktop(){return window.innerWidth>=this.options.breakpoint},_isSidenavRight(){const t=this.options,S=document.querySelector(t.container);if(S)return m(S,"sidenav-right")},_isSimpleSidenavClosed(){const t=this.options,S=t.openClass,C=document.querySelector(t.container);if(C)return!m(C,S)},_loadUrl(t,S){const C=this,I=t.querySelector(".sidebar-body");if(!C._fetchPromise&&I){for(;I.firstChild;)I.removeChild(I.firstChild);const t=document.createElement("div");g(t,"sidenav-loading"),t.innerHTML=C.options.loadingIndicatorTPL,I.appendChild(t),C._fetchPromise=(0,M.default)(S),C._fetchPromise.then((t=>{if(!t.ok)throw new Error("Failed to fetch ".concat(S));return t.text()})).then((S=>{const A=document.createRange();A.selectNode(I);const M=A.createContextualFragment(S);I.removeChild(t),I.appendChild(M),C.setHeight()})).catch((t=>{console.error(t)}))}},_onClosed(){const t=this.options,S=document.querySelector(t.container);S&&(this._handleClosed||(this._handleClosed=()=>{"relative"===this._getType()&&m(S,"open")&&_(S,"sidenav-transition")},document.addEventListener("closed.lexicon.sidenav",this._handleClosed)))},_onClosedStart(){const t=this.options,S=document.querySelector(t.container),C=document.querySelector(t.content);S&&C&&(this._handleClosedStart||(this._handleClosedStart=()=>{if("relative"===this._getType()&&m(S,"open")&&C.closest(".page-maximized")){let I=document.body.scrollWidth-C.getBoundingClientRect().right,A=t.gutter+t.width;const M=getComputedStyle(C).maxWidth||getComputedStyle(C).width;/px$/.test(M)&&(I=(document.body.scrollWidth-L(M))/2,I>t.width?A="":I>0&&I<t.width&&(A=t.gutter+t.width-I)),g(S,"sidenav-transition"),b(C,{"padding-right":w(A)})}},document.addEventListener("closedStart.lexicon.sidenav",this._handleClosedStart)))},_onOpen(){const t=this.options,S=document.querySelector(t.container);S&&(this._handleOpen||(this._handleOpen=()=>{"relative"===this._getType()&&m(S,"open")&&_(S,"sidenav-transition")},document.addEventListener("open.lexicon.sidenav",this._handleOpen)))},_onOpenStart(){const t=this.options,S=document.querySelector(t.container),C=document.querySelector(t.content);S&&C&&(this._handleOpenStart||(this._handleOpenStart=I=>{if("relative"===this._getType()&&m(S,"open")&&C.closest(".page-maximized")){const A=document.querySelector(I.detail.options.container+" .sidenav-menu");if(!A)return;const M=A.getBoundingClientRect().width,D=document.body.scrollWidth-C.getBoundingClientRect().right-M/2,k=D>0?t.width+t.gutter-D:t.width+t.gutter;g(S,"sidenav-transition"),b(C,{"padding-right":w(k)})}},document.addEventListener("openStart.lexicon.sidenav",this._handleOpenStart)))},_onScreenChange(){const t=this.options,S=document.querySelector(t.container),C=document.querySelector(t.content);if(!S||!C)return;let I=this._isDesktop();this._handleOnScreenChange||(this._handleOnScreenChange=()=>{const t=this._getType();"relative"===t&&m(S,"open")&&(this.setHeight(),this.setWidth()),this._isDesktop()!==I&&("relative"!==t?(g(S,"sidenav-fixed"),C.style.paddingRight="",C.style.minHeight=""):_(S,"sidenav-fixed"),I=this._isDesktop())},document.addEventListener("screenChange.lexicon.sidenav",this._handleOnScreenChange))},_renderNav(){const t=this.options,S=document.querySelector(t.container),C=S.querySelector(t.navigation);if(!S||!C)return;const I=C.querySelector(".sidenav-menu"),A=m(S,"closed"),M=this._isSidenavRight(),D=this._getSidenavWidth();A?(b(I,{width:w(D)}),M&&b(I,{[t.rtl?"left":"right"]:w(D)})):(this.showSidenav(),this.setHeight())},_renderUI(){const t=this.options,S=document.querySelector(t.container);if(!S)return;const C=this.toggler,I=this._getType();this.useDataAttribute||(V||(V=(0,A.default)((()=>{y(document,"screenChange.lexicon.sidenav")}),150),window.addEventListener("resize",V)),this._onClosedStart(),this._onClosed(),this._onOpenStart(),this._onOpen(),this._onScreenChange(),this._isDesktop()||(v(S,{closed:!0,open:!1}),v(C,{active:!1,open:!1})),"right"===t.position&&g(S,"sidenav-right"),"relative"!==I&&g(S,"sidenav-fixed"),this._renderNav()),b(S,{display:""})},_subscribeClickSidenavClose(){const t=this,S=t.options.container;if(!t._sidenavCloseSubscription){const C="".concat(S," .sidenav-close");t._sidenavCloseSubscription=P(C,"click",(function(S){S.preventDefault(),t.toggle()}))}},_subscribeClickTrigger(){const t=this;if(!t._togglerSubscription){const S=t.toggler;t._togglerSubscription=P(S,"click",(function(S){t.toggle(),S.preventDefault()}))}},_subscribeSidenavTransitionEnd(t,S){setTimeout((()=>{_(t,"sidenav-transition"),S()}),E.TRANSITION_DURATION)},clearHeight(){const t=this.options,S=document.querySelector(t.container);S&&[S.querySelector(t.content),S.querySelector(t.navigation),S.querySelector(".sidenav-menu")].forEach((t=>{b(t,{height:"","min-height":""})}))},destroy(){const t=this;t._sidenavCloseSubscription&&(t._sidenavCloseSubscription.dispose(),t._sidenavCloseSubscription=null),t._togglerSubscription&&(t._togglerSubscription.dispose(),t._togglerSubscription=null),k.delete(t.toggler),document.removeEventListener("closedStart.lexicon.sidenav",t._handleClosedStart),document.removeEventListener("closed.lexicon.sidenav",t._handleClosed),document.removeEventListener("openStart.lexicon.sidenav",t._handleOpenStart),document.removeEventListener("open.lexicon.sidenav",t._handleOpen),document.removeEventListener("screenChange.lexicon.sidenav",t._handleOnScreenChange),V&&(window.removeEventListener("resize",V),V=null)},hide(){this.useDataAttribute?this.hideSimpleSidenav():this.toggleNavigation(!1)},hideSidenav(){const t=this.options,S=document.querySelector(t.container);if(S){const C=S.querySelector(t.content),I=S.querySelector(t.navigation),A=I.querySelector(".sidenav-menu"),M=this._isSidenavRight();let D=t.rtl?"right":"left";M&&(D=t.rtl?"left":"right"),b(C,{["padding-"+D]:"",[D]:""}),b(I,{width:""}),M&&b(A,{[D]:w(this._getSidenavWidth())})}},hideSimpleSidenav(){const t=this,S=t.options;if(!t._isSimpleSidenavClosed()){const C=document.querySelector(S.container),I=document.querySelector(S.content);if(!C||!I)return;const A=S.closedClass,M=S.openClass,D=t.toggler,k=D.dataset.target||D.getAttribute("href");t._emit("closedStart.lexicon.sidenav"),y(document,"closedStart.lexicon.sidenav",t),t._subscribeSidenavTransitionEnd(I,(()=>{_(C,"sidenav-transition"),_(D,"sidenav-transition"),t._emit("closed.lexicon.sidenav"),y(document,"closed.lexicon.sidenav",t)})),m(I,M)&&v(I,{[A]:!0,[M]:!1,"sidenav-transition":!0}),g(C,"sidenav-transition"),g(D,"sidenav-transition"),v(C,{[A]:!0,[M]:!1});const z=document.querySelectorAll('[data-target="'.concat(k,'"], [href="').concat(k,'"]'));Array.from(z).forEach((t=>{v(t,{active:!1,[M]:!1}),v(t,{active:!1,[M]:!1})}))}},init(t,S){const C="liferay-sidenav"===t.dataset.toggle;(S=c(c({},D),S)).breakpoint=L(S.breakpoint),S.container=S.container||t.dataset.target||t.getAttribute("href"),S.gutter=L(S.gutter),S.rtl="rtl"===document.dir,S.width=L(S.width),S.widthOriginal=S.width,C&&(S.closedClass=t.dataset.closedClass||"closed",S.content=t.dataset.content,S.loadingIndicatorTPL=t.dataset.loadingIndicatorTpl||S.loadingIndicatorTPL,S.openClass=t.dataset.openClass||"open",S.type=t.dataset.type,S.typeMobile=t.dataset.typeMobile,S.url=t.dataset.url,S.width=""),this.toggler=t,this.options=S,this.useDataAttribute=C,this._emitter=new I.default,this._bindUI(),this._renderUI()},on(t,S){return this._emitter.on(t,S)},setHeight(){const t=this.options,S=document.querySelector(t.container);if(!S)return;const C=this._getType();if("fixed"!==C&&"fixed-push"!==C){const C=S.querySelector(t.content),I=S.querySelector(t.navigation),A=S.querySelector(".sidenav-menu"),M=C.closest(".page-maximized")?window.innerHeight-A.getBoundingClientRect().top:C.getBoundingClientRect().height,D=I.getBoundingClientRect().height,k=w(Math.max(M,D));b(C,{"min-height":k}),b(I,{height:"100%","min-height":k}),b(A,{height:"100%","min-height":k})}},setWidth(){const t=this.options,S=document.querySelector(t.container),C=S.querySelector(t.content),I=S.querySelector(t.navigation);if(!S||!C||!I)return;const A=I.querySelector(".sidenav-menu"),M=this._isSidenavRight(),D=this._getSidenavWidth(),k=D+t.gutter,z=t.url;z&&this._loadUrl(A,z),b(I,{width:w(D)}),b(A,{width:w(D)});let W=t.rtl?"right":"left";M&&(W=t.rtl?"left":"right");const V="padding-"+W,$=this._isDesktop()?V:W,Y=this._getType();if("relative"!==Y&&g(S,"sidenav-fixed"),"fixed"!==Y){let A=m(S,"open")?O(I)-t.gutter:O(I)-k;const D=O(C),z=L(getComputedStyle(C).width);let W="";t.rtl&&M||!t.rtl&&"left"===t.position?(A=O(I)+k,A>D&&(W=A-D)):(t.rtl&&"left"===t.position||!t.rtl&&M)&&A<D+z&&(W=D+z-A,W>=k&&(W=k)),b(C,{[$]:w(W)})}},show(){this.useDataAttribute?this.showSimpleSidenav():this.toggleNavigation(!0)},showSidenav(){const t=this.options,S=document.querySelector(t.container),C=S.querySelector(t.navigation);if(!S||!C)return;const I=C.querySelector(".sidenav-menu"),A=t.url;A&&this._loadUrl(I,A),this.setWidth(),this._focusCloseButton()},showSimpleSidenav(){const t=this,S=t.options;if(t._isSimpleSidenavClosed()){const C=document.querySelector(S.container),I=document.querySelector(S.content);if(!C||!I)return;const A=S.closedClass,M=S.openClass,D=t.toggler,k=D.dataset.url;k&&t._loadUrl(C,k),t._emit("openStart.lexicon.sidenav"),y(document,"openStart.lexicon.sidenav",t),t._subscribeSidenavTransitionEnd(I,(()=>{_(C,"sidenav-transition"),_(D,"sidenav-transition"),t._emit("open.lexicon.sidenav"),y(document,"open.lexicon.sidenav",t),this._focusCloseButton()})),v(I,{[A]:!1,[M]:!0,"sidenav-transition":!0}),v(C,{[A]:!1,[M]:!0,"sidenav-transition":!0}),v(D,{active:!0,[M]:!0,"sidenav-transition":!0})}},toggle(){this.useDataAttribute?this.toggleSimpleSidenav():this.toggleNavigation()},toggleNavigation(t){const S=this,C=S.options,I=S._getType(),A=document.querySelector(C.container),M=A.querySelector(".sidenav-menu");if(!A||!M)return;const D=S.toggler,k=C.width,z="boolean"==typeof t?t:m(A,"closed"),W=S._isSidenavRight();if(z?(S._emit("openStart.lexicon.sidenav"),y(document,"openStart.lexicon.sidenav",S)):(S._emit("closedStart.lexicon.sidenav"),y(document,"closedStart.lexicon.sidenav",S)),S._subscribeSidenavTransitionEnd(A,(()=>{const t=A.querySelector(".sidenav-menu");m(A,"closed")?(S.clearHeight(),v(D,{open:!1,"sidenav-transition":!1}),S._emit("closed.lexicon.sidenav"),y(document,"closed.lexicon.sidenav",S)):(v(D,{open:!0,"sidenav-transition":!1}),S._emit("open.lexicon.sidenav"),y(document,"open.lexicon.sidenav",S)),S._isDesktop()||t.focus()})),z){"relative"===I&&S.setHeight(),b(M,{width:w(k)});const t=C.rtl?"left":"right";W&&b(M,{[t]:""})}g(A,"sidenav-transition"),g(D,"sidenav-transition"),z?S.showSidenav():S.hideSidenav(),v(A,{closed:!z,open:z}),v(D,{active:z,open:z})},toggleSimpleSidenav(){this._isSimpleSidenavClosed()?this.showSimpleSidenav():this.hideSimpleSidenav()},visible(){let t;if(this.useDataAttribute)t=this._isSimpleSidenavClosed();else{const S=document.querySelector(this.options.container);if(!S)return;t=m(S,"sidenav-transition")?!m(S,"closed"):m(S,"closed")}return!t}},E.destroy=function(t){const S=p(t);S&&S.destroy()},E.hide=function(t){const S=p(t);S&&S.hide()},E.initialize=function(t,S={}){t=f(t);let C=k.get(t);return C||(C=new E(t,S),k.set(t,C)),C},E.instance=p,"loading"!==document.readyState?T():document.addEventListener("DOMContentLoaded",(()=>{T()}));var $=E;S.default=$},2534:(t,S)=>{Object.defineProperty(S,"__esModule",{value:!0}),S.default=void 0,S.default={BAD_REQUEST:400,INTERNAL_SERVER_ERROR:500,OK:200,SC_DUPLICATE_FILE_EXCEPTION:490,SC_FILE_ANTIVIRUS_EXCEPTION:494,SC_FILE_CUSTOM_EXCEPTION:499,SC_FILE_EXTENSION_EXCEPTION:491,SC_FILE_NAME_EXCEPTION:492,SC_FILE_SIZE_EXCEPTION:493,SC_UPLOAD_REQUEST_SIZE_EXCEPTION:495}},36:(t,S)=>{Object.defineProperty(S,"__esModule",{value:!0}),S.default=function(t,S){let C,I=null;return function(...A){const M=this,D=Date.now(),s=()=>{I=setTimeout((()=>{I=null}),S),C=D,t.apply(M,A)};if(null===I)s();else{const t=Math.max(C+S-D,0);clearTimeout(I),I=setTimeout(s,t)}}}},9296:(t,S)=>{Object.defineProperty(S,"__esModule",{value:!0}),S.default=function(t,S){if(!t||"object"!=typeof t&&"string"!=typeof t)throw new TypeError("Parameter params must be an object or string");if("string"!=typeof S)throw new TypeError("Parameter baseUrl must be a string");const C=S.startsWith("/")?new URL(S,location.href):new URL(S);return"object"==typeof t?Object.entries(t).forEach((([t,S])=>{C.searchParams.append(t,S)})):new URLSearchParams(t.trim()).forEach(((t,S)=>{t?C.searchParams.append(S,t):C.searchParams.append(S,"")})),C.toString()}},3873:(t,S)=>{Object.defineProperty(S,"__esModule",{value:!0}),S.default=function(t){if("function"!=typeof t)throw new TypeError("Parameter callback must be a function");Liferay.Service("/country/get-company-countries",{active:!0,companyId:Liferay.ThemeDisplay.getCompanyId()},t)}},9094:(t,S)=>{Object.defineProperty(S,"__esModule",{value:!0}),S.default=function(t,S){if("function"!=typeof t)throw new TypeError("Parameter callback must be a function");if("string"!=typeof S)throw new TypeError("Parameter selectKey must be a string");Liferay.Service("/region/get-regions",{active:!0,countryId:parseInt(S,10)},t)}},7267:(t,S,C)=>{Object.defineProperty(S,"__esModule",{value:!0}),S.checkConsent=function(t){return t===A.NECESSARY||"false"!==(0,I.getCookie)(t,A.NECESSARY)},S.CONSENT_TYPES=void 0;var I=C(7322);const A={FUNCTIONAL:"CONSENT_TYPE_FUNCTIONAL",NECESSARY:"CONSENT_TYPE_NECESSARY",PERFORMANCE:"CONSENT_TYPE_PERFORMANCE",PERSONALIZATION:"CONSENT_TYPE_PERSONALIZATION"};S.CONSENT_TYPES=A},7322:(t,S,C)=>{Object.defineProperty(S,"__esModule",{value:!0}),S.getCookie=i,S.removeCookie=a,S.setCookie=s,S.default=void 0;var I=C(7267);const o=(t,S,C={})=>{let I="".concat(t,"=").concat(S);C.path||(I+="; path=/"),C.expires||"max-age"in C||(I+="; max-age=".concat(31536e3));for(const[t,S]of Object.entries(C))"secure"===t&&(I+=S?"; secure":""),I+="; ".concat(t,"=").concat(S);return I};function i(t,S){var C;if((0,I.checkConsent)(S))return null===(C=document.cookie.split("; ").find((S=>S.startsWith("".concat(t,"=")))))||void 0===C?void 0:C.split("=")[1]}function a(t){document.cookie=o(t,"",{"max-age":0})}function s(t,S,C,A){return!!(0,I.checkConsent)(C)&&(document.cookie=o(t,S,A),!0)}var A={TYPES:I.CONSENT_TYPES,get:i,remove:a,set:s};S.default=A},6549:(t,S)=>{function r(t,S){var C=Object.keys(t);if(Object.getOwnPropertySymbols){var I=Object.getOwnPropertySymbols(t);S&&(I=I.filter((function(S){return Object.getOwnPropertyDescriptor(t,S).enumerable}))),C.push.apply(C,I)}return C}function n(t){for(var S=1;S<arguments.length;S++){var C=null!=arguments[S]?arguments[S]:{};S%2?r(Object(C),!0).forEach((function(S){o(t,S,C[S])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(C)):r(Object(C)).forEach((function(S){Object.defineProperty(t,S,Object.getOwnPropertyDescriptor(C,S))}))}return t}function o(t,S,C){return S in t?Object.defineProperty(t,S,{value:C,enumerable:!0,configurable:!0,writable:!0}):t[S]=C,t}Object.defineProperty(S,"__esModule",{value:!0}),S.default=function(t,S={}){t||(t="/o/");let C=t.url?t.url:t.toString();if(C.startsWith("/")){const S=Liferay.ThemeDisplay.getPathContext();S&&!C.startsWith(S)&&(C=S+C,t="string"==typeof t?C:n(n({},t),{},{url:C})),C=window.location.origin+C}const I=new URL(C),A=new Headers({}),M={};return I.origin===window.location.origin&&(A.set("x-csrf-token",Liferay.authToken),M.credentials="include"),new Headers(S.headers||{}).forEach(((t,S)=>{A.set(S,t)})),fetch(t,n(n(n({},M),S),{},{headers:A}))}},85:(t,S,C)=>{Object.defineProperty(S,"__esModule",{value:!0}),S.default=function(t){if(t=(0,I.default)(t),(0,A.default)(t)){const S=function(t){const S=[];for(;t.parentElement;)t.parentElement.getAttribute("disabled")&&S.push(t.parentElement),t=t.parentElement;return S}(t),C=!t.getAttribute("disabled")&&t.offsetWidth>0&&t.offsetHeight>0&&!S.length,I=t.closest("form");if(!I||C)t.focus();else if(I){const S=I.dataset.fmNamespace+"formReady",r=C=>{I.getAttribute("name")===C.formName&&(t.focus(),Liferay.detach(S,r))};Liferay.on(S,r)}}};var I=i(C(8999)),A=i(C(6515));function i(t){return t&&t.__esModule?t:{default:t}}},8002:(t,S)=>{Object.defineProperty(S,"__esModule",{value:!0}),S.default=function(t,S){let C=null;if(void 0!==t&&"FORM"===t.nodeName&&"string"==typeof S){const I=t.dataset.fmNamespace||"";C=t.elements[I+S]||null}return C}},7494:(t,S,C)=>{Object.defineProperty(S,"__esModule",{value:!0}),S.default=function e(t={},S=new FormData,C){return Object.entries(t).forEach((([t,I])=>{const M=C?"".concat(C,"[").concat(t,"]"):t;Array.isArray(I)?I.forEach((t=>{e({[M]:t},S)})):!(0,A.default)(I)||I instanceof File?S.append(M,I):e(I,S,M)})),S};var I,A=(I=C(889))&&I.__esModule?I:{default:I}},7535:(t,S,C)=>{Object.defineProperty(S,"__esModule",{value:!0}),S.default=function(t,S){if("string"==typeof t&&(t=document.querySelector(t)),t&&"FORM"===t.nodeName)if(t.setAttribute("method","post"),(0,I.default)(S)){const{data:C,url:M}=S;if(!(0,I.default)(C))return;(0,A.default)(t,C),void 0===M?submitForm(t):"string"==typeof M&&submitForm(t,M)}else submitForm(t)};var I=i(C(889)),A=i(C(5273));function i(t){return t&&t.__esModule?t:{default:t}}},5273:(t,S,C)=>{Object.defineProperty(S,"__esModule",{value:!0}),S.default=function(t,S){void 0!==t&&"FORM"===t.nodeName&&(0,I.default)(S)&&Object.entries(S).forEach((([S,C])=>{const I=(0,A.default)(t,S);I&&(I.value=C)}))};var I=i(C(889)),A=i(C(8002));function i(t){return t&&t.__esModule?t:{default:t}}},8206:(t,S)=>{function r(t,S){var C=Object.keys(t);if(Object.getOwnPropertySymbols){var I=Object.getOwnPropertySymbols(t);S&&(I=I.filter((function(S){return Object.getOwnPropertyDescriptor(t,S).enumerable}))),C.push.apply(C,I)}return C}function n(t){for(var S=1;S<arguments.length;S++){var C=null!=arguments[S]?arguments[S]:{};S%2?r(Object(C),!0).forEach((function(S){o(t,S,C[S])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(C)):r(Object(C)).forEach((function(S){Object.defineProperty(t,S,Object.getOwnPropertyDescriptor(C,S))}))}return t}function o(t,S,C){return S in t?Object.defineProperty(t,S,{value:C,enumerable:!0,configurable:!0,writable:!0}):t[S]=C,t}Object.defineProperty(S,"__esModule",{value:!0}),S.default=function(t,S={}){const{addSpaceBeforeSuffix:I,decimalSeparator:A,denominator:M,suffixGB:D,suffixKB:k,suffixMB:z}=n(n({},C),S);if("number"!=typeof t)throw new TypeError("Parameter size must be a number");let W=0,V=k;(t/=M)>=M&&(V=z,t/=M,W=1),t>=M&&(V=D,t/=M,W=1);let $=t.toFixed(W);return"."!==A&&($=$.replace(/\./,A)),$+(I?" ":"")+V};const C={addSpaceBeforeSuffix:!1,decimalSeparator:".",denominator:1024,suffixGB:"GB",suffixKB:"KB",suffixMB:"MB"}},7019:(t,S)=>{function r(t,S){var C=Object.keys(t);if(Object.getOwnPropertySymbols){var I=Object.getOwnPropertySymbols(t);S&&(I=I.filter((function(S){return Object.getOwnPropertyDescriptor(t,S).enumerable}))),C.push.apply(C,I)}return C}function n(t){for(var S=1;S<arguments.length;S++){var C=null!=arguments[S]?arguments[S]:{};S%2?r(Object(C),!0).forEach((function(S){o(t,S,C[S])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(C)):r(Object(C)).forEach((function(S){Object.defineProperty(t,S,Object.getOwnPropertyDescriptor(C,S))}))}return t}function o(t,S,C){return S in t?Object.defineProperty(t,S,{value:C,enumerable:!0,configurable:!0,writable:!0}):t[S]=C,t}Object.defineProperty(S,"__esModule",{value:!0}),S.default=function(t,S={}){const{newLine:re,tagIndent:ne}=n(n({},te),S);if("string"!=typeof t)throw new TypeError("Parameter content must be a string");const oe=[];t=(t=(t=(t=(t=(t=t.trim()).replace(C,(t=>(oe.push(t),Q)))).replace(K,"><")).replace(X,"~::~<")).replace(Y,"~::~$1$2")).replace(ee,(()=>oe.shift()));let ie=0,ae=!1;const se=t.split(J);let ce=0,le="";return se.forEach(((t,S)=>{C.test(t)?le+=j(ce,re,ne)+t:A.test(t)?(le+=j(ce,re,ne)+t,ie++,ae=!0,(I.test(t)||D.test(t))&&(ie--,ae=0!==ie)):I.test(t)?(le+=t,ie--,ae=0!==ie):k.exec(se[S-1])&&z.exec(t)&&W.exec(se[S-1]).toString()===V.exec(t)[0].replace("/","").toString()?(le+=t,ae||--ce):!$.test(t)||G.test(t)||Z.test(t)?$.test(t)&&G.test(t)?le+=ae?t:j(ce,re,ne)+t:G.test(t)?le+=ae?t:j(--ce,re,ne)+t:Z.test(t)?le+=ae?t:j(ce,re,ne)+t:(M.test(t),le+=j(ce,re,ne)+t):le+=ae?t:j(ce++,re,ne)+t,new RegExp("^"+re).test(le)&&(le=le.slice(re.length))})),le};const C=/<!\[CDATA\[[\0-\uFFFF]*?\]\]>/g,I=/-->|\]>/,A=/<!/,M=/<\?/,D=/!DOCTYPE/,k=/^<\w/,z=/^<\/\w/,W=/^<[\w:\-.,]+/,V=/^<\/[\w:\-.,]+/,$=/<\w/,Y=/\s*(xmlns)(:|=)/g,G=/<\//,X=/</g,Z=/\/>/,K=/>\s+</g,J="~::~",Q="<~::~CDATA~::~>",ee=new RegExp(Q,"g"),te={newLine:"\r\n",tagIndent:"\t"};function j(t,S,C){return S+new Array(t+1).join(C)}},1511:(t,S)=>{function r(t,S,C,I){t="string"==typeof t?document.querySelector(t):t._node||t;let A="input[type=checkbox]";C&&(A+="[name=".concat(C,"]"));const M=Array.from(t.querySelectorAll(A));return M.length?M.reduce(((t,C)=>{const{checked:A,disabled:M,name:D,value:k}=C;return k&&D!==S&&A===I&&!M&&t.push(k),t}),[]).join():""}Object.defineProperty(S,"__esModule",{value:!0}),S.getCheckedCheckboxes=function(t,S,C){return r(t,S,C,!0)},S.getUncheckedCheckboxes=function(t,S,C){return r(t,S,C,!1)}},7068:(t,S,C)=>{Object.defineProperty(S,"__esModule",{value:!0}),S.default=function(t,S){if(!(0,A.default)(t)||(0,A.default)(t)&&"IMG"!==t.tagName)throw new TypeError("Parameter imagePreview must be an image");if(!(0,A.default)(S))throw new TypeError("Parameter region must be an object");const C=t.naturalWidth/t.offsetWidth,I=t.naturalHeight/t.offsetHeight;return{height:S.height?S.height*I:t.naturalHeight,width:S.width?S.width*C:t.naturalWidth,x:S.x?Math.max(S.x*C,0):0,y:S.y?Math.max(S.y*I,0):0}};var I,A=(I=C(889))&&I.__esModule?I:{default:I}},4968:(t,S)=>{Object.defineProperty(S,"__esModule",{value:!0}),S.default=function(t){return t._node||t._nodes?t.nodeType?t:t._node||null:t}},8999:(t,S,C)=>{Object.defineProperty(S,"__esModule",{value:!0}),S.default=function(t){const S=(0,A.default)(t);return"string"==typeof S?document.querySelector(S):S.jquery?S[0]:S};var I,A=(I=C(4968))&&I.__esModule?I:{default:I}},775:(t,S)=>{Object.defineProperty(S,"__esModule",{value:!0}),S.default=function(t,S,C){t&&navigator.geolocation?navigator.geolocation.getCurrentPosition((S=>{t(S.coords.latitude,S.coords.longitude,S)}),S,C):S&&S()}},455:(t,S)=>{Object.defineProperty(S,"__esModule",{value:!0}),S.default=function(t,S=""){if(!t)throw new TypeError("Parameter icon must be provided");const C=function(t,S){return'<svg\n\t\t\t\taria-hidden="true"\n\t\t\t\tclass="lexicon-icon lexicon-icon-'.concat(t," ").concat(S,'"\n\t\t\t\tfocusable="false"\n\t\t\t\trole="presentation"\n\t\t\t>\n\t\t\t\t<use href="').concat(Liferay.Icons.spritemap,"#").concat(t,'" />\n\t\t\t</svg>')}(t,S),I=document.createElement("div");return I.innerHTML=C,I.firstChild}},7320:(t,S)=>{Object.defineProperty(S,"__esModule",{value:!0}),S.default=function(t,S=""){return'<svg aria-hidden="true" class="lexicon-icon lexicon-icon-'.concat(t," ").concat(S,'" focusable="false" role="presentation">')+'<use href="'.concat(Liferay.Icons.spritemap,"#").concat(t,'" />')+"</svg>"}},4397:(t,S,C)=>{Object.defineProperty(S,"__esModule",{value:!0}),S.default=function(){let t=M;if(!t){const S=(0,A.default)().Liferay.Util,C=window.name,I=S.Window.getById(C);I&&(t=I._opener,M=t)}return t||window.opener||window.parent};var I,A=(I=C(260))&&I.__esModule?I:{default:I};let M},1166:(t,S)=>{Object.defineProperty(S,"__esModule",{value:!0}),S.default=function(t){return t.replace(C,"$1")};const C=/^(?:p_p_id)?_(.*)_.*$/},6797:(t,S)=>{Object.defineProperty(S,"__esModule",{value:!0}),S.default=function(t){if("string"!=typeof t)throw new TypeError("portletId must be a string");return"_".concat(t,"_")}},6506:(t,S)=>{Object.defineProperty(S,"__esModule",{value:!0}),S.default=function(t,S=","){return Array.from(t.getElementsByTagName("option")).reduce(((t,S)=>{const{value:C}=S;return C&&t.push(C),t}),[]).join(S)}},260:(t,S)=>{let C;Object.defineProperty(S,"__esModule",{value:!0}),S.default=function(){let t=C;if(!t){let S,I=window.parent;for(;I!==window;){try{if(void 0===I.location.href)break;S=I.themeDisplay}catch(t){break}if(!S||"simulationDeviceIframe"===window.name)break;if(!S.isStatePopUp()||I===I.parent){t=I;break}I=I.parent}t||(t=window),C=t}return t}},4612:(t,S)=>{Object.defineProperty(S,"__esModule",{value:!0}),S.default=function(t){if(!themeDisplay.isAddSessionIdToURL())return t;let S=t.indexOf(";");if(S>-1)return t;const C=";jsessionid=".concat(themeDisplay.getSessionId());return S=t.indexOf("?"),S>-1?"".concat(t.substring(0,S)).concat(C).concat(t.substring(S)):(S=t.indexOf("//"),S>-1&&S+1===t.lastIndexOf("/")?"".concat(t,"/").concat(C):"".concat(t).concat(C))}},9105:(t,S,C)=>{Object.defineProperty(S,"__esModule",{value:!0}),S.default=function(t=window.name){return(0,A.default)().Liferay.Util.Window.getById(t)};var I,A=(I=C(260))&&I.__esModule?I:{default:I}},7387:(t,S)=>{Object.defineProperty(S,"__esModule",{value:!0}),S.escapeHTML=function(t){return t.replace(M,(t=>C[t]))},S.unescapeHTML=function(t){return t.replace(D,(t=>(new DOMParser).parseFromString(t,"text/html").documentElement.textContent))},S.MAP_HTML_CHARS_ESCAPED=void 0;const C={'"':"&#034;","&":"&amp;","'":"&#039;","/":"&#047;","<":"&lt;",">":"&gt;","`":"&#096;"};S.MAP_HTML_CHARS_ESCAPED=C;const I={};Object.entries(C).forEach((([t,S])=>{I[S]=t}));const A=Object.keys(C),M=new RegExp("[".concat(A.join(""),"]"),"g"),D=/&([^\s;]+);/g},6515:(t,S,C)=>{Object.defineProperty(S,"__esModule",{value:!0}),S.default=function e(t,S,C){let I=!1;if(t=(0,A.default)(t)){C||((C={left:(C=t.getBoundingClientRect()).left+window.scrollX,top:C.top+window.scrollY}).bottom=C.top+t.offsetHeight,C.right=C.left+t.offsetWidth),S||(S=window),S=(0,A.default)(S);const M={};if(M.left=S.scrollX,M.right=M.left+S.innerWidth,M.top=S.scrollY,M.bottom=M.top+S.innerHeight,I=C.bottom<=M.bottom&&C.left>=M.left&&C.right<=M.right&&C.top>=M.top,I){const A=S.frameElement;if(A){let D=A.getBoundingClientRect();D={left:D.left+window.scrollX,top:D.top+window.scrollY};const k=D.left-M.left;C.left+=k,C.right+=k;const z=D.top-M.top;C.top+=z,C.bottom+=z,I=e(t,S.parent,C)}}}return I};var I,A=(I=C(8999))&&I.__esModule?I:{default:I}},889:(t,S)=>{Object.defineProperty(S,"__esModule",{value:!0}),S.default=function(t){const S=typeof t;return"object"===S&&null!==t||"function"===S}},5506:(t,S,C)=>{Object.defineProperty(S,"__esModule",{value:!0}),S.default=function(){return window.innerWidth<A.default.PHONE};var I,A=(I=C(3337))&&I.__esModule?I:{default:I}},7442:(t,S,C)=>{Object.defineProperty(S,"__esModule",{value:!0}),S.default=function(){return window.innerWidth<A.default.TABLET};var I,A=(I=C(3337))&&I.__esModule?I:{default:I}},4161:(t,S,C)=>{var I;Object.defineProperty(S,"__esModule",{value:!0}),S.default=void 0;var A=new(((I=C(3765))&&I.__esModule?I:{default:I}).default)(localStorage);S.default=A},6353:(t,S)=>{Object.defineProperty(S,"__esModule",{value:!0}),S.default=function(t){if("function"!=typeof t)throw new TypeError("Parameter fn must be a function");const S=new Map,r=(...C)=>{let I;if(C.find((t=>"object"==typeof t))){const t=C.filter((t=>"object"==typeof t));I=t.map((t=>JSON.stringify(t))),C.length>1&&t.length<C.length&&C.forEach((t=>"object"!=typeof t&&I.push(t))),I=I.join(",")}else I=C.length>1?C.join(","):C[0];if(S.has(I))return S.get(I);{const A=t.apply(null,C);return S.set(I,A),A}};return r.getCache=()=>S,r}},386:(t,S)=>{Object.defineProperty(S,"__esModule",{value:!0}),S.default=function(t,S){var C,I,A;let M=t;"URL"===(null==t||null===(C=t.constructor)||void 0===C?void 0:C.name)&&(M=String(t)),(null===(I=Liferay.SPA)||void 0===I||null===(A=I.app)||void 0===A?void 0:A.canNavigate(M))?(Liferay.SPA.app.navigate(M),S&&Object.keys(S).forEach((t=>{Liferay.once(t,S[t])}))):function(t){let S;try{S=t.startsWith("/")?new URL(t,window.location.origin):new URL(t)}catch(t){return!1}return"http:"===S.protocol||"https:"===S.protocol}(M)&&(window.location.href=M)}},1625:(t,S)=>{Object.defineProperty(S,"__esModule",{value:!0}),S.default=function(t){if("string"!=typeof t)throw new TypeError("parameter text must be a string");return t.replace(/[^a-z0-9_-]/gi,"-").replace(/^-+/,"").replace(/--+/,"-").toLowerCase()}},4294:(t,S,C)=>{var I;Object.defineProperty(S,"__esModule",{value:!0}),S.default=function(t,S){let C;return"object"!=typeof S?C=A(t,S):(C={},Object.keys(S).forEach((I=>{const M=I;I=A(t,I),C[I]=S[M]}))),C};const A=(0,((I=C(6353))&&I.__esModule?I:{default:I}).default)(((t,S)=>(void 0!==S&&0!==S.lastIndexOf(t,0)&&(S="".concat(t).concat(S)),S)))},1357:(t,S,C)=>{Object.defineProperty(S,"__esModule",{value:!0}),S.default=function(t){if(!(0,A.default)(t))throw new TypeError("Parameter obj must be an object");const S=new URLSearchParams;return Object.entries(t).forEach((([t,C])=>{if(Array.isArray(C))for(let I=0;I<C.length;I++)S.append(t,C[I]);else S.append(t,C)})),S};var I,A=(I=C(889))&&I.__esModule?I:{default:I}},742:(t,S,C)=>{Object.defineProperty(S,"__esModule",{value:!0}),S.default=function(t,S){const C=(0,A.default)();t.openingWindow=window,C.Liferay.Util._openWindowProvider(t,S)};var I,A=(I=C(260))&&I.__esModule?I:{default:I}},4874:(t,S)=>{Object.defineProperty(S,"__esModule",{value:!0}),S.getPortletConfigurationIconAction=function(t){return C.get(t)},S.setPortletConfigurationIconAction=function(t,S){C.set(t,S)},S.portletConfigurationIconActions=void 0;const C=new Map;S.portletConfigurationIconActions=C},1146:(t,S,C)=>{Object.defineProperty(S,"__esModule",{value:!0}),S.default=function(t,S={}){return(0,A.default)(t,a(a({},S),{},{p_p_lifecycle:"1"}))};var I,A=(I=C(4821))&&I.__esModule?I:{default:I};function i(t,S){var C=Object.keys(t);if(Object.getOwnPropertySymbols){var I=Object.getOwnPropertySymbols(t);S&&(I=I.filter((function(S){return Object.getOwnPropertyDescriptor(t,S).enumerable}))),C.push.apply(C,I)}return C}function a(t){for(var S=1;S<arguments.length;S++){var C=null!=arguments[S]?arguments[S]:{};S%2?i(Object(C),!0).forEach((function(S){s(t,S,C[S])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(C)):i(Object(C)).forEach((function(S){Object.defineProperty(t,S,Object.getOwnPropertyDescriptor(C,S))}))}return t}function s(t,S,C){return S in t?Object.defineProperty(t,S,{value:C,enumerable:!0,configurable:!0,writable:!0}):t[S]=C,t}},4821:(t,S,C)=>{Object.defineProperty(S,"__esModule",{value:!0}),S.default=function(t,S={}){if("string"!=typeof t)throw new TypeError("basePortletURL parameter must be a string");if(!S||"object"!=typeof S)throw new TypeError("parameters argument must be an object");const C=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 I;0===t.indexOf(Liferay.ThemeDisplay.getPortalURL())||(I=t,M.test(I))||(t=0!==t.indexOf("/")?"".concat(Liferay.ThemeDisplay.getPortalURL(),"/").concat(t):Liferay.ThemeDisplay.getPortalURL()+t);const D=new URL(t),k=new URLSearchParams(D.search),z=S.p_p_id||k.get("p_p_id");if(Object.entries(S).length&&!z)throw new TypeError("Portlet ID must not be null if parameters are provided");let W="";return Object.entries(S).length&&(W=(0,A.default)(z)),Object.keys(S).forEach((t=>{let I;I=C.has(t)?t:"".concat(W).concat(t),k.set(I,S[t])})),D.search=k.toString(),D};var I,A=(I=C(6797))&&I.__esModule?I:{default:I};const M=/^[a-z][a-z0-9+.-]*:/i},6535:(t,S,C)=>{Object.defineProperty(S,"__esModule",{value:!0}),S.default=function(t,S={}){return(0,A.default)(t,a(a({},S),{},{p_p_lifecycle:"0"}))};var I,A=(I=C(4821))&&I.__esModule?I:{default:I};function i(t,S){var C=Object.keys(t);if(Object.getOwnPropertySymbols){var I=Object.getOwnPropertySymbols(t);S&&(I=I.filter((function(S){return Object.getOwnPropertyDescriptor(t,S).enumerable}))),C.push.apply(C,I)}return C}function a(t){for(var S=1;S<arguments.length;S++){var C=null!=arguments[S]?arguments[S]:{};S%2?i(Object(C),!0).forEach((function(S){s(t,S,C[S])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(C)):i(Object(C)).forEach((function(S){Object.defineProperty(t,S,Object.getOwnPropertyDescriptor(C,S))}))}return t}function s(t,S,C){return S in t?Object.defineProperty(t,S,{value:C,enumerable:!0,configurable:!0,writable:!0}):t[S]=C,t}},576:(t,S,C)=>{Object.defineProperty(S,"__esModule",{value:!0}),S.default=function(t,S={}){return(0,A.default)(t,a(a({},S),{},{p_p_lifecycle:"2"}))};var I,A=(I=C(4821))&&I.__esModule?I:{default:I};function i(t,S){var C=Object.keys(t);if(Object.getOwnPropertySymbols){var I=Object.getOwnPropertySymbols(t);S&&(I=I.filter((function(S){return Object.getOwnPropertyDescriptor(t,S).enumerable}))),C.push.apply(C,I)}return C}function a(t){for(var S=1;S<arguments.length;S++){var C=null!=arguments[S]?arguments[S]:{};S%2?i(Object(C),!0).forEach((function(S){s(t,S,C[S])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(C)):i(Object(C)).forEach((function(S){Object.defineProperty(t,S,Object.getOwnPropertyDescriptor(C,S))}))}return t}function s(t,S,C){return S in t?Object.defineProperty(t,S,{value:C,enumerable:!0,configurable:!0,writable:!0}):t[S]=C,t}},2468:(t,S,C)=>{Object.defineProperty(S,"__esModule",{value:!0}),S.default=function(t,S,C,I){const M=document.getElementById("".concat(I).concat(t));M&&(M.value=0);const D=document.getElementById("".concat(I).concat(S));D&&(D.value=""),(0,A.default)(C,!0),Liferay.fire("entitySelectionRemoved")};var I,A=(I=C(1521))&&I.__esModule?I:{default:I}},4361:(t,S,C)=>{Object.defineProperty(S,"__esModule",{value:!0}),S.default=function(t,S){const C=document.getElementById("".concat(S).concat(t.idString));C&&(C.value=t.idValue);const I=document.getElementById("".concat(S).concat(t.nameString));I&&(I.value=Liferay.Util.unescape(t.nameValue));const M=document.getElementById("".concat(S,"removeFolderButton"));M&&(0,A.default)(M,!1)};var I,A=(I=C(1521))&&I.__esModule?I:{default:I}},3833:(t,S,C)=>{Object.defineProperty(S,"__esModule",{value:!0}),S.getSessionValue=function(t,S={}){const C=a("get");return C.append("key",t),S.useHttpSession&&C.append("useHttpSession",!0),(0,A.default)(s(),{body:C,method:"POST"}).then((t=>t.text())).then((t=>{if(t.startsWith(M)){const S=t.substring(M.length);t=JSON.parse(S)}return t}))},S.setSessionValue=function(t,S,C={}){const I=a("set");return S&&"object"==typeof S&&(S=M+JSON.stringify(S)),I.append(t,S),C.useHttpSession&&I.append("useHttpSession",!0),(0,A.default)(s(),{body:I,method:"POST"})};var I,A=(I=C(6549))&&I.__esModule?I:{default:I};const M="serialize://";function a(t){const S=Liferay.ThemeDisplay.getDoAsUserIdEncoded(),C=new FormData;return C.append("cmd",t),C.append("p_auth",Liferay.authToken),S&&C.append("doAsUserId",S),C}function s(){return"".concat(Liferay.ThemeDisplay.getPortalURL()).concat(Liferay.ThemeDisplay.getPathMain(),"/portal/session_click")}},8021:(t,S,C)=>{var I;Object.defineProperty(S,"__esModule",{value:!0}),S.default=void 0;var A=new(((I=C(3765))&&I.__esModule?I:{default:I}).default)(sessionStorage);S.default=A},2452:(t,S)=>{Object.defineProperty(S,"__esModule",{value:!0}),S.default=function(t,S){const C=document.getElementById(S);C&&(C.style.display="none",t.getModifierState("CapsLock")&&(C.style.display=""))}},3765:(t,S,C)=>{Object.defineProperty(S,"__esModule",{value:!0}),S.default=void 0;var I=C(7267);S.default=class{constructor(t){var S,C,A;S=this,C="TYPES",A=I.CONSENT_TYPES,C in S?Object.defineProperty(S,C,{value:A,enumerable:!0,configurable:!0,writable:!0}):S[C]=A,this.storage=t}clear(){return this.storage.clear()}getItem(t,S){return(0,I.checkConsent)(S)?this.storage.getItem(t):null}key(t,S){return(0,I.checkConsent)(S)?this.storage.key(t):null}removeItem(t){return this.storage.removeItem(t)}setItem(t,S,C){return!!(0,I.checkConsent)(C)&&(this.storage.setItem(t,S),!0)}get length(){return this.storage.length}}},8956:(t,S)=>{Object.defineProperty(S,"__esModule",{value:!0}),S.default=function(t,S){return(arguments.length>2||"object"!=typeof S&&"function"!=typeof S)&&(S=Array.prototype.slice.call(arguments,1)),t.replace(C,((t,C)=>void 0===S[C]?t:S[C]))};const C=/\{\s*([^|}]+?)\s*(?:\|([^}]*))?\s*\}/g},7639:(t,S,C)=>{var I;Object.defineProperty(S,"__esModule",{value:!0}),S.default=void 0;var A=(0,((I=C(6353))&&I.__esModule?I:{default:I}).default)((t=>t.split("").map((t=>t.charCodeAt())).join("")));S.default=A},4601:(t,S)=>{Object.defineProperty(S,"__esModule",{value:!0}),S.default=function(t,S,C,I){const A=document.getElementById(t),M=document.getElementById(S);if(A&&M){let t=A.checked;C&&(t=!t),t?M.classList.remove("hide"):M.classList.add("hide"),A.addEventListener("click",(()=>{M.classList.toggle("hide"),I&&M.querySelectorAll("input[type=checkbox]").forEach((t=>{t.checked=A.checked}))}))}}},9174:(t,S,C)=>{Object.defineProperty(S,"__esModule",{value:!0}),S.default=function(t){const S=document.body,C=(t=t._node||S).querySelector(".toggle-controls");if(!C)return;let I="visible"===Liferay._editControlsState,k=D[I],z=C.querySelector(".lexicon-icon");z&&(k.icon=z),S.classList.add(k.cssClass),Liferay.fire("toggleControls",{enabled:I}),C.addEventListener("click",(()=>{I=!I;const t=k;k=D[I],S.classList.toggle(t.cssClass),S.classList.toggle(k.cssClass);const C=k.iconCssClass,W=k.state,V=(0,A.default)(C);k.icon=V,z.replaceWith(V),z=V,Liferay._editControlsState=W,(0,M.setSessionValue)("com.liferay.frontend.js.web_toggleControls",W),Liferay.fire("toggleControls",{enabled:I,src:"ui"})}))};var I,A=(I=C(455))&&I.__esModule?I:{default:I},M=C(3833);const D={false:{cssClass:"controls-hidden",iconCssClass:"hidden",state:"hidden"},true:{cssClass:"controls-visible",iconCssClass:"view",state:"visible"}}},1521:(t,S)=>{Object.defineProperty(S,"__esModule",{value:!0}),S.default=function(t,S){"string"==typeof t?t=document.querySelectorAll(t):t._node?t=[t._node]:t._nodes?t=t._nodes:t.nodeType===Node.ELEMENT_NODE&&(t=[t]),t.forEach((t=>{t.disabled=S,S?t.classList.add("disabled"):t.classList.remove("disabled")}))}},6544:(t,S)=>{Object.defineProperty(S,"__esModule",{value:!0}),S.default=function(t,S,C){const I=document.getElementById(t);if(I){let t;S&&(Array.isArray(S)&&(S=S.join(",#")),t=document.querySelectorAll("#".concat(S)),t.forEach((t=>{I.checked?t.classList.remove("hide"):t.classList.add("hide")}))),I.addEventListener("change",(()=>{t&&t.forEach((t=>{t.classList.remove("hide")})),C&&(Array.isArray(C)&&(C=C.join(",#")),document.querySelectorAll("#".concat(C)).forEach((t=>{t.classList.add("hide")})))}))}}},3111:(t,S)=>{Object.defineProperty(S,"__esModule",{value:!0}),S.default=function(t,S,C){const I=document.getElementById(t),A=document.getElementById(C);if(!I||!A)return;const M="function"==typeof S;r(I,A,M,S),I.addEventListener("change",(()=>r(I,A,M,S)))};const r=(t,S,C,I)=>{const A=t.value,M=C?I(A,I):I===A;S.classList.toggle("hide",!M)}},9027:(t,S)=>{Object.defineProperty(S,"__esModule",{value:!0}),S.default=void 0,S.default={ALERT:430,DOCK:10,DOCK_PARENT:20,DRAG_ITEM:460,DROP_AREA:440,DROP_POSITION:450,MENU:5e3,OVERLAY:1e3,POPOVER:1600,TOOLTIP:1e4,WINDOW:1200}},1593:(t,S,C)=>{t=C.nmd(t);var I="__lodash_hash_undefined__",A=9007199254740991,M="[object Arguments]",D="[object Array]",k="[object Boolean]",z="[object Date]",W="[object Error]",V="[object Function]",$="[object Map]",Y="[object Number]",G="[object Object]",X="[object Promise]",Z="[object RegExp]",K="[object Set]",J="[object String]",Q="[object Symbol]",ee="[object WeakMap]",te="[object ArrayBuffer]",re="[object DataView]",ne=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,oe=/^\w*$/,ie=/^\./,ae=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,se=/\\(\\)?/g,ce=/^\[object .+?Constructor\]$/,le=/^(?:0|[1-9]\d*)$/,ue={};ue["[object Float32Array]"]=ue["[object Float64Array]"]=ue["[object Int8Array]"]=ue["[object Int16Array]"]=ue["[object Int32Array]"]=ue["[object Uint8Array]"]=ue["[object Uint8ClampedArray]"]=ue["[object Uint16Array]"]=ue["[object Uint32Array]"]=!0,ue[M]=ue[D]=ue[te]=ue[k]=ue[re]=ue[z]=ue[W]=ue[V]=ue[$]=ue[Y]=ue[G]=ue[Z]=ue[K]=ue[J]=ue[ee]=!1;var de="object"==typeof C.g&&C.g&&C.g.Object===Object&&C.g,fe="object"==typeof self&&self&&self.Object===Object&&self,pe=de||fe||Function("return this")(),he=S&&!S.nodeType&&S,ye=he&&t&&!t.nodeType&&t,Ve=ye&&ye.exports===he&&de.process,$e=function(){try{return Ve&&Ve.binding("util")}catch(t){}}(),Ke=$e&&$e.isTypedArray;function N(t,S,C,I){for(var A=-1,M=t?t.length:0;++A<M;){var D=t[A];S(I,D,C(D),t)}return I}function F(t,S){for(var C=-1,I=t?t.length:0;++C<I;)if(S(t[C],C,t))return!0;return!1}function q(t){var S=!1;if(null!=t&&"function"!=typeof t.toString)try{S=!!(t+"")}catch(t){}return S}function H(t){var S=-1,C=Array(t.size);return t.forEach((function(t,I){C[++S]=[I,t]})),C}function B(t){var S=-1,C=Array(t.size);return t.forEach((function(t){C[++S]=t})),C}var nt,at,st,ct=Array.prototype,lt=Function.prototype,ut=Object.prototype,dt=pe["__core-js_shared__"],ft=(nt=/[^.]+$/.exec(dt&&dt.keys&&dt.keys.IE_PROTO||""))?"Symbol(src)_1."+nt:"",pt=lt.toString,ht=ut.hasOwnProperty,yt=ut.toString,_t=RegExp("^"+pt.call(ht).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),gt=pe.Symbol,vt=pe.Uint8Array,mt=ut.propertyIsEnumerable,bt=ct.splice,wt=(at=Object.keys,st=Object,function(t){return at(st(t))}),Ot=De(pe,"DataView"),St=De(pe,"Map"),jt=De(pe,"Promise"),Pt=De(pe,"Set"),Et=De(pe,"WeakMap"),Lt=De(Object,"create"),Tt=ze(Ot),Ct=ze(St),It=ze(jt),At=ze(Pt),Mt=ze(Et),Ut=gt?gt.prototype:void 0,Rt=Ut?Ut.valueOf:void 0,xt=Ut?Ut.toString:void 0;function be(t){var S=-1,C=t?t.length:0;for(this.clear();++S<C;){var I=t[S];this.set(I[0],I[1])}}function we(t){var S=-1,C=t?t.length:0;for(this.clear();++S<C;){var I=t[S];this.set(I[0],I[1])}}function Oe(t){var S=-1,C=t?t.length:0;for(this.clear();++S<C;){var I=t[S];this.set(I[0],I[1])}}function Se(t){var S=-1,C=t?t.length:0;for(this.__data__=new Oe;++S<C;)this.add(t[S])}function je(t){this.__data__=new we(t)}function Pe(t,S){for(var C=t.length;C--;)if(Ge(t[C][0],S))return C;return-1}function Le(t,S,C,I){return kt(t,(function(t,A,M){S(I,t,C(t),M)})),I}be.prototype.clear=function(){this.__data__=Lt?Lt(null):{}},be.prototype.delete=function(t){return this.has(t)&&delete this.__data__[t]},be.prototype.get=function(t){var S=this.__data__;if(Lt){var C=S[t];return C===I?void 0:C}return ht.call(S,t)?S[t]:void 0},be.prototype.has=function(t){var S=this.__data__;return Lt?void 0!==S[t]:ht.call(S,t)},be.prototype.set=function(t,S){return this.__data__[t]=Lt&&void 0===S?I:S,this},we.prototype.clear=function(){this.__data__=[]},we.prototype.delete=function(t){var S=this.__data__,C=Pe(S,t);return!(C<0||(C==S.length-1?S.pop():bt.call(S,C,1),0))},we.prototype.get=function(t){var S=this.__data__,C=Pe(S,t);return C<0?void 0:S[C][1]},we.prototype.has=function(t){return Pe(this.__data__,t)>-1},we.prototype.set=function(t,S){var C=this.__data__,I=Pe(C,t);return I<0?C.push([t,S]):C[I][1]=S,this},Oe.prototype.clear=function(){this.__data__={hash:new be,map:new(St||we),string:new be}},Oe.prototype.delete=function(t){return Re(this,t).delete(t)},Oe.prototype.get=function(t){return Re(this,t).get(t)},Oe.prototype.has=function(t){return Re(this,t).has(t)},Oe.prototype.set=function(t,S){return Re(this,t).set(t,S),this},Se.prototype.add=Se.prototype.push=function(t){return this.__data__.set(t,I),this},Se.prototype.has=function(t){return this.__data__.has(t)},je.prototype.clear=function(){this.__data__=new we},je.prototype.delete=function(t){return this.__data__.delete(t)},je.prototype.get=function(t){return this.__data__.get(t)},je.prototype.has=function(t){return this.__data__.has(t)},je.prototype.set=function(t,S){var C=this.__data__;if(C instanceof we){var I=C.__data__;if(!St||I.length<199)return I.push([t,S]),this;C=this.__data__=new Oe(I)}return C.set(t,S),this};var Dt,kt=(Dt=function(t,S){return t&&Ce(t,S,ot)},function(t,S){if(null==t)return t;if(!Ze(t))return Dt(t,S);for(var C=t.length,I=-1,A=Object(t);++I<C&&!1!==S(A[I],I,A););return t}),Ce=function(t,S,C){for(var I=-1,A=Object(t),M=C(t),D=M.length;D--;){var k=M[++I];if(!1===S(A[k],k,A))break}return t};function Ie(t,S){for(var C=0,I=(S=Fe(S,t)?[S]:Ue(S)).length;null!=t&&C<I;)t=t[We(S[C++])];return C&&C==I?t:void 0}function Me(t,S){return null!=t&&S in Object(t)}function Ae(t,S,C,I,A){return t===S||(null==t||null==S||!et(t)&&!tt(S)?t!=t&&S!=S:function(t,S,C,I,A,V){var X=Ht(t),ee=Ht(S),ne=D,oe=D;X||(ne=(ne=ke(t))==M?G:ne),ee||(oe=(oe=ke(S))==M?G:oe);var ie=ne==G&&!q(t),ae=oe==G&&!q(S),se=ne==oe;if(se&&!ie)return V||(V=new je),X||Bt(t)?xe(t,S,C,I,A,V):function(t,S,C,I,A,M,D){switch(C){case re:if(t.byteLength!=S.byteLength||t.byteOffset!=S.byteOffset)return!1;t=t.buffer,S=S.buffer;case te:return!(t.byteLength!=S.byteLength||!I(new vt(t),new vt(S)));case k:case z:case Y:return Ge(+t,+S);case W:return t.name==S.name&&t.message==S.message;case Z:case J:return t==S+"";case $:var V=H;case K:var G=2&M;if(V||(V=B),t.size!=S.size&&!G)return!1;var X=D.get(t);if(X)return X==S;M|=1,D.set(t,S);var ee=xe(V(t),V(S),I,A,M,D);return D.delete(t),ee;case Q:if(Rt)return Rt.call(t)==Rt.call(S)}return!1}(t,S,ne,C,I,A,V);if(!(2&A)){var ce=ie&&ht.call(t,"__wrapped__"),le=ae&&ht.call(S,"__wrapped__");if(ce||le){var ue=ce?t.value():t,de=le?S.value():S;return V||(V=new je),C(ue,de,I,A,V)}}return!!se&&(V||(V=new je),function(t,S,C,I,A,M){var D=2&A,k=ot(t),z=k.length;if(z!=ot(S).length&&!D)return!1;for(var W=z;W--;){var V=k[W];if(!(D?V in S:ht.call(S,V)))return!1}var $=M.get(t);if($&&M.get(S))return $==S;var Y=!0;M.set(t,S),M.set(S,t);for(var G=D;++W<z;){var X=t[V=k[W]],Z=S[V];if(I)var K=D?I(Z,X,V,S,t,M):I(X,Z,V,t,S,M);if(!(void 0===K?X===Z||C(X,Z,I,A,M):K)){Y=!1;break}G||(G="constructor"==V)}if(Y&&!G){var J=t.constructor,Q=S.constructor;J==Q||!("constructor"in t)||!("constructor"in S)||"function"==typeof J&&J instanceof J&&"function"==typeof Q&&Q instanceof Q||(Y=!1)}return M.delete(t),M.delete(S),Y}(t,S,C,I,A,V))}(t,S,Ae,C,I,A))}function Ue(t){return Ht(t)?t:Nt(t)}function xe(t,S,C,I,A,M){var D=2&A,k=t.length,z=S.length;if(k!=z&&!(D&&z>k))return!1;var W=M.get(t);if(W&&M.get(S))return W==S;var V=-1,$=!0,Y=1&A?new Se:void 0;for(M.set(t,S),M.set(S,t);++V<k;){var G=t[V],X=S[V];if(I)var Z=D?I(X,G,V,S,t,M):I(G,X,V,t,S,M);if(void 0!==Z){if(Z)continue;$=!1;break}if(Y){if(!F(S,(function(t,S){if(!Y.has(S)&&(G===t||C(G,t,I,A,M)))return Y.add(S)}))){$=!1;break}}else if(G!==X&&!C(G,X,I,A,M)){$=!1;break}}return M.delete(t),M.delete(S),$}function Re(t,S){var C,I,A=t.__data__;return("string"==(I=typeof(C=S))||"number"==I||"symbol"==I||"boolean"==I?"__proto__"!==C:null===C)?A["string"==typeof S?"string":"hash"]:A.map}function De(t,S){var C=function(t,S){return null==t?void 0:t[S]}(t,S);return function(t){return!(!et(t)||function(t){return!!ft&&ft in t}(t))&&(Je(t)||q(t)?_t:ce).test(ze(t))}(C)?C:void 0}var ke=function(t){return yt.call(t)};function Ne(t,S){return!!(S=null==S?A:S)&&("number"==typeof t||le.test(t))&&t>-1&&t%1==0&&t<S}function Fe(t,S){if(Ht(t))return!1;var C=typeof t;return!("number"!=C&&"symbol"!=C&&"boolean"!=C&&null!=t&&!rt(t))||oe.test(t)||!ne.test(t)||null!=S&&t in Object(S)}function qe(t){return t==t&&!et(t)}function He(t,S){return function(C){return null!=C&&C[t]===S&&(void 0!==S||t in Object(C))}}(Ot&&ke(new Ot(new ArrayBuffer(1)))!=re||St&&ke(new St)!=$||jt&&ke(jt.resolve())!=X||Pt&&ke(new Pt)!=K||Et&&ke(new Et)!=ee)&&(ke=function(t){var S=yt.call(t),C=S==G?t.constructor:void 0,I=C?ze(C):void 0;if(I)switch(I){case Tt:return re;case Ct:return $;case It:return X;case At:return K;case Mt:return ee}return S});var Nt=Ye((function(t){var S;t=null==(S=t)?"":function(t){if("string"==typeof t)return t;if(rt(t))return xt?xt.call(t):"";var S=t+"";return"0"==S&&1/t==-1/0?"-0":S}(S);var C=[];return ie.test(t)&&C.push(""),t.replace(ae,(function(t,S,I,A){C.push(I?A.replace(se,"$1"):S||t)})),C}));function We(t){if("string"==typeof t||rt(t))return t;var S=t+"";return"0"==S&&1/t==-1/0?"-0":S}function ze(t){if(null!=t){try{return pt.call(t)}catch(t){}try{return t+""}catch(t){}}return""}var qt,Ft=(qt=function(t,S,C){ht.call(t,C)?t[C].push(S):t[C]=[S]},function(t,S){var C,I,A,M,D;return(Ht(t)?N:Le)(t,qt,"function"==typeof(C=S)?C:null==C?it:"object"==typeof C?Ht(C)?function(t,S){return Fe(t)&&qe(S)?He(We(t),S):function(C){var I=function(t,S,C){var I=null==t?void 0:Ie(t,S);return void 0===I?void 0:I}(C,t);return void 0===I&&I===S?function(t,S){return null!=t&&function(t,S,C){for(var I,A=-1,M=(S=Fe(S,t)?[S]:Ue(S)).length;++A<M;){var D=We(S[A]);if(!(I=null!=t&&C(t,D)))break;t=t[D]}return I||!!(M=t?t.length:0)&&Qe(M)&&Ne(D,M)&&(Ht(t)||Xe(t))}(t,S,Me)}(C,t):Ae(S,I,void 0,3)}}(C[0],C[1]):1==(A=function(t){for(var S=ot(t),C=S.length;C--;){var I=S[C],A=t[I];S[C]=[I,A,qe(A)]}return S}(I=C)).length&&A[0][2]?He(A[0][0],A[0][1]):function(t){return t===I||function(t,S,C,I){var A=C.length,M=A;if(null==t)return!M;for(t=Object(t);A--;){var D=C[A];if(D[2]?D[1]!==t[D[0]]:!(D[0]in t))return!1}for(;++A<M;){var k=(D=C[A])[0],z=t[k],W=D[1];if(D[2]){if(void 0===z&&!(k in t))return!1}else if(!Ae(W,z,undefined,3,new je))return!1}return!0}(t,0,A)}:Fe(M=C)?(D=We(M),function(t){return null==t?void 0:t[D]}):function(t){return function(S){return Ie(S,t)}}(M),{})});function Ye(t,S){if("function"!=typeof t||S&&"function"!=typeof S)throw new TypeError("Expected a function");var r=function(){var C=arguments,I=S?S.apply(this,C):C[0],A=r.cache;if(A.has(I))return A.get(I);var M=t.apply(this,C);return r.cache=A.set(I,M),M};return r.cache=new(Ye.Cache||Oe),r}function Ge(t,S){return t===S||t!=t&&S!=S}function Xe(t){return function(t){return tt(t)&&Ze(t)}(t)&&ht.call(t,"callee")&&(!mt.call(t,"callee")||yt.call(t)==M)}Ye.Cache=Oe;var Ht=Array.isArray;function Ze(t){return null!=t&&Qe(t.length)&&!Je(t)}function Je(t){var S=et(t)?yt.call(t):"";return S==V||"[object GeneratorFunction]"==S}function Qe(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=A}function et(t){var S=typeof t;return!!t&&("object"==S||"function"==S)}function tt(t){return!!t&&"object"==typeof t}function rt(t){return"symbol"==typeof t||tt(t)&&yt.call(t)==Q}var Bt=Ke?function(t){return function(S){return t(S)}}(Ke):function(t){return tt(t)&&Qe(t.length)&&!!ue[yt.call(t)]};function ot(t){return Ze(t)?function(t,S){var C=Ht(t)||Xe(t)?function(t,S){for(var C=-1,I=Array(t);++C<t;)I[C]=S(C);return I}(t.length,String):[],I=C.length,A=!!I;for(var M in t)!ht.call(t,M)||A&&("length"==M||Ne(M,I))||C.push(M);return C}(t):function(t){if(C=(S=t)&&S.constructor,S!==("function"==typeof C&&C.prototype||ut))return wt(t);var S,C,I=[];for(var A in Object(t))ht.call(t,A)&&"constructor"!=A&&I.push(A);return I}(t)}function it(t){return t}t.exports=Ft},8652:(t,S,C)=>{t=C.nmd(t);var I="__lodash_hash_undefined__",A=9007199254740991,M="[object Arguments]",D="[object Array]",k="[object Boolean]",z="[object Date]",W="[object Error]",V="[object Function]",$="[object Map]",Y="[object Number]",G="[object Object]",X="[object Promise]",Z="[object RegExp]",K="[object Set]",J="[object String]",Q="[object WeakMap]",ee="[object ArrayBuffer]",te="[object DataView]",re=/^\[object .+?Constructor\]$/,ne=/^(?:0|[1-9]\d*)$/,oe={};oe["[object Float32Array]"]=oe["[object Float64Array]"]=oe["[object Int8Array]"]=oe["[object Int16Array]"]=oe["[object Int32Array]"]=oe["[object Uint8Array]"]=oe["[object Uint8ClampedArray]"]=oe["[object Uint16Array]"]=oe["[object Uint32Array]"]=!0,oe[M]=oe[D]=oe[ee]=oe[k]=oe[te]=oe[z]=oe[W]=oe[V]=oe[$]=oe[Y]=oe[G]=oe[Z]=oe[K]=oe[J]=oe[Q]=!1;var ie="object"==typeof C.g&&C.g&&C.g.Object===Object&&C.g,ae="object"==typeof self&&self&&self.Object===Object&&self,se=ie||ae||Function("return this")(),ce=S&&!S.nodeType&&S,le=ce&&t&&!t.nodeType&&t,ue=le&&le.exports===ce,de=ue&&ie.process,fe=function(){try{return de&&de.binding&&de.binding("util")}catch(t){}}(),pe=fe&&fe.isTypedArray;function U(t,S){for(var C=-1,I=null==t?0:t.length;++C<I;)if(S(t[C],C,t))return!0;return!1}function x(t){var S=-1,C=Array(t.size);return t.forEach((function(t,I){C[++S]=[I,t]})),C}function R(t){var S=-1,C=Array(t.size);return t.forEach((function(t){C[++S]=t})),C}var he,ye,Ve,$e=Array.prototype,Ke=Function.prototype,nt=Object.prototype,at=se["__core-js_shared__"],st=Ke.toString,ct=nt.hasOwnProperty,lt=(he=/[^.]+$/.exec(at&&at.keys&&at.keys.IE_PROTO||""))?"Symbol(src)_1."+he:"",ut=nt.toString,dt=RegExp("^"+st.call(ct).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),ft=ue?se.Buffer:void 0,pt=se.Symbol,ht=se.Uint8Array,yt=nt.propertyIsEnumerable,_t=$e.splice,gt=pt?pt.toStringTag:void 0,vt=Object.getOwnPropertySymbols,mt=ft?ft.isBuffer:void 0,bt=(ye=Object.keys,Ve=Object,function(t){return ye(Ve(t))}),wt=Te(se,"DataView"),Ot=Te(se,"Map"),St=Te(se,"Promise"),jt=Te(se,"Set"),Pt=Te(se,"WeakMap"),Et=Te(Object,"create"),Lt=Ae(wt),Tt=Ae(Ot),Ct=Ae(St),It=Ae(jt),At=Ae(Pt),Mt=pt?pt.prototype:void 0,Ut=Mt?Mt.valueOf:void 0;function ge(t){var S=-1,C=null==t?0:t.length;for(this.clear();++S<C;){var I=t[S];this.set(I[0],I[1])}}function _e(t){var S=-1,C=null==t?0:t.length;for(this.clear();++S<C;){var I=t[S];this.set(I[0],I[1])}}function ve(t){var S=-1,C=null==t?0:t.length;for(this.clear();++S<C;){var I=t[S];this.set(I[0],I[1])}}function me(t){var S=-1,C=null==t?0:t.length;for(this.__data__=new ve;++S<C;)this.add(t[S])}function be(t){var S=this.__data__=new _e(t);this.size=S.size}function we(t,S){for(var C=t.length;C--;)if(Ue(t[C][0],S))return C;return-1}function Oe(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":gt&&gt in Object(t)?function(t){var S=ct.call(t,gt),C=t[gt];try{t[gt]=void 0;var I=!0}catch(t){}var A=ut.call(t);return I&&(S?t[gt]=C:delete t[gt]),A}(t):function(t){return ut.call(t)}(t)}function Se(t){return qe(t)&&Oe(t)==M}function je(t,S,C,I,A){return t===S||(null==t||null==S||!qe(t)&&!qe(S)?t!=t&&S!=S:function(t,S,C,I,A,V){var X=kt(t),Q=kt(S),re=X?D:xt(t),ne=Q?D:xt(S),oe=(re=re==M?G:re)==G,ie=(ne=ne==M?G:ne)==G,ae=re==ne;if(ae&&Nt(t)){if(!Nt(S))return!1;X=!0,oe=!1}if(ae&&!oe)return V||(V=new be),X||qt(t)?Pe(t,S,C,I,A,V):function(t,S,C,I,A,M,D){switch(C){case te:if(t.byteLength!=S.byteLength||t.byteOffset!=S.byteOffset)return!1;t=t.buffer,S=S.buffer;case ee:return!(t.byteLength!=S.byteLength||!M(new ht(t),new ht(S)));case k:case z:case Y:return Ue(+t,+S);case W:return t.name==S.name&&t.message==S.message;case Z:case J:return t==S+"";case $:var V=x;case K:var G=1&I;if(V||(V=R),t.size!=S.size&&!G)return!1;var X=D.get(t);if(X)return X==S;I|=2,D.set(t,S);var Q=Pe(V(t),V(S),I,A,M,D);return D.delete(t),Q;case"[object Symbol]":if(Ut)return Ut.call(t)==Ut.call(S)}return!1}(t,S,re,C,I,A,V);if(!(1&C)){var se=oe&&ct.call(t,"__wrapped__"),ce=ie&&ct.call(S,"__wrapped__");if(se||ce){var le=se?t.value():t,ue=ce?S.value():S;return V||(V=new be),A(le,ue,C,I,V)}}return!!ae&&(V||(V=new be),function(t,S,C,I,A,M){var D=1&C,k=Le(t),z=k.length;if(z!=Le(S).length&&!D)return!1;for(var W=z;W--;){var V=k[W];if(!(D?V in S:ct.call(S,V)))return!1}var $=M.get(t);if($&&M.get(S))return $==S;var Y=!0;M.set(t,S),M.set(S,t);for(var G=D;++W<z;){var X=t[V=k[W]],Z=S[V];if(I)var K=D?I(Z,X,V,S,t,M):I(X,Z,V,t,S,M);if(!(void 0===K?X===Z||A(X,Z,C,I,M):K)){Y=!1;break}G||(G="constructor"==V)}if(Y&&!G){var J=t.constructor,Q=S.constructor;J==Q||!("constructor"in t)||!("constructor"in S)||"function"==typeof J&&J instanceof J&&"function"==typeof Q&&Q instanceof Q||(Y=!1)}return M.delete(t),M.delete(S),Y}(t,S,C,I,A,V))}(t,S,C,I,je,A))}function Pe(t,S,C,I,A,M){var D=1&C,k=t.length,z=S.length;if(k!=z&&!(D&&z>k))return!1;var W=M.get(t);if(W&&M.get(S))return W==S;var V=-1,$=!0,Y=2&C?new me:void 0;for(M.set(t,S),M.set(S,t);++V<k;){var G=t[V],X=S[V];if(I)var Z=D?I(X,G,V,S,t,M):I(G,X,V,t,S,M);if(void 0!==Z){if(Z)continue;$=!1;break}if(Y){if(!U(S,(function(t,S){if(D=S,!Y.has(D)&&(G===t||A(G,t,C,I,M)))return Y.push(S);var D}))){$=!1;break}}else if(G!==X&&!A(G,X,C,I,M)){$=!1;break}}return M.delete(t),M.delete(S),$}function Le(t){return function(t,S,C){var I=S(t);return kt(t)?I:function(t,S){for(var C=-1,I=S.length,A=t.length;++C<I;)t[A+C]=S[C];return t}(I,C(t))}(t,Be,Rt)}function Ee(t,S){var C,I,A=t.__data__;return("string"==(I=typeof(C=S))||"number"==I||"symbol"==I||"boolean"==I?"__proto__"!==C:null===C)?A["string"==typeof S?"string":"hash"]:A.map}function Te(t,S){var C=function(t,S){return null==t?void 0:t[S]}(t,S);return function(t){return!(!Fe(t)||function(t){return!!lt&&lt in t}(t))&&(ke(t)?dt:re).test(Ae(t))}(C)?C:void 0}ge.prototype.clear=function(){this.__data__=Et?Et(null):{},this.size=0},ge.prototype.delete=function(t){var S=this.has(t)&&delete this.__data__[t];return this.size-=S?1:0,S},ge.prototype.get=function(t){var S=this.__data__;if(Et){var C=S[t];return C===I?void 0:C}return ct.call(S,t)?S[t]:void 0},ge.prototype.has=function(t){var S=this.__data__;return Et?void 0!==S[t]:ct.call(S,t)},ge.prototype.set=function(t,S){var C=this.__data__;return this.size+=this.has(t)?0:1,C[t]=Et&&void 0===S?I:S,this},_e.prototype.clear=function(){this.__data__=[],this.size=0},_e.prototype.delete=function(t){var S=this.__data__,C=we(S,t);return!(C<0||(C==S.length-1?S.pop():_t.call(S,C,1),--this.size,0))},_e.prototype.get=function(t){var S=this.__data__,C=we(S,t);return C<0?void 0:S[C][1]},_e.prototype.has=function(t){return we(this.__data__,t)>-1},_e.prototype.set=function(t,S){var C=this.__data__,I=we(C,t);return I<0?(++this.size,C.push([t,S])):C[I][1]=S,this},ve.prototype.clear=function(){this.size=0,this.__data__={hash:new ge,map:new(Ot||_e),string:new ge}},ve.prototype.delete=function(t){var S=Ee(this,t).delete(t);return this.size-=S?1:0,S},ve.prototype.get=function(t){return Ee(this,t).get(t)},ve.prototype.has=function(t){return Ee(this,t).has(t)},ve.prototype.set=function(t,S){var C=Ee(this,t),I=C.size;return C.set(t,S),this.size+=C.size==I?0:1,this},me.prototype.add=me.prototype.push=function(t){return this.__data__.set(t,I),this},me.prototype.has=function(t){return this.__data__.has(t)},be.prototype.clear=function(){this.__data__=new _e,this.size=0},be.prototype.delete=function(t){var S=this.__data__,C=S.delete(t);return this.size=S.size,C},be.prototype.get=function(t){return this.__data__.get(t)},be.prototype.has=function(t){return this.__data__.has(t)},be.prototype.set=function(t,S){var C=this.__data__;if(C instanceof _e){var I=C.__data__;if(!Ot||I.length<199)return I.push([t,S]),this.size=++C.size,this;C=this.__data__=new ve(I)}return C.set(t,S),this.size=C.size,this};var Rt=vt?function(t){return null==t?[]:(t=Object(t),function(S,C){for(var I=-1,A=null==S?0:S.length,M=0,D=[];++I<A;){var k=S[I];z=k,yt.call(t,z)&&(D[M++]=k)}var z;return D}(vt(t)))}:function(){return[]},xt=Oe;function Me(t,S){return!!(S=null==S?A:S)&&("number"==typeof t||ne.test(t))&&t>-1&&t%1==0&&t<S}function Ae(t){if(null!=t){try{return st.call(t)}catch(t){}try{return t+""}catch(t){}}return""}function Ue(t,S){return t===S||t!=t&&S!=S}(wt&&xt(new wt(new ArrayBuffer(1)))!=te||Ot&&xt(new Ot)!=$||St&&xt(St.resolve())!=X||jt&&xt(new jt)!=K||Pt&&xt(new Pt)!=Q)&&(xt=function(t){var S=Oe(t),C=S==G?t.constructor:void 0,I=C?Ae(C):"";if(I)switch(I){case Lt:return te;case Tt:return $;case Ct:return X;case It:return K;case At:return Q}return S});var Dt=Se(function(){return arguments}())?Se:function(t){return qe(t)&&ct.call(t,"callee")&&!yt.call(t,"callee")},kt=Array.isArray,Nt=mt||function(){return!1};function ke(t){if(!Fe(t))return!1;var S=Oe(t);return S==V||"[object GeneratorFunction]"==S||"[object AsyncFunction]"==S||"[object Proxy]"==S}function Ne(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=A}function Fe(t){var S=typeof t;return null!=t&&("object"==S||"function"==S)}function qe(t){return null!=t&&"object"==typeof t}var qt=pe?function(t){return function(S){return t(S)}}(pe):function(t){return qe(t)&&Ne(t.length)&&!!oe[Oe(t)]};function Be(t){return null!=(S=t)&&Ne(S.length)&&!ke(S)?function(t,S){var C=kt(t),I=!C&&Dt(t),A=!C&&!I&&Nt(t),M=!C&&!I&&!A&&qt(t),D=C||I||A||M,k=D?function(t,S){for(var C=-1,I=Array(t);++C<t;)I[C]=S(C);return I}(t.length,String):[],z=k.length;for(var W in t)!ct.call(t,W)||D&&("length"==W||A&&("offset"==W||"parent"==W)||M&&("buffer"==W||"byteLength"==W||"byteOffset"==W)||Me(W,z))||k.push(W);return k}(t):function(t){if(C=(S=t)&&S.constructor,S!==("function"==typeof C&&C.prototype||nt))return bt(t);var S,C,I=[];for(var A in Object(t))ct.call(t,A)&&"constructor"!=A&&I.push(A);return I}(t);var S}t.exports=function(t,S){return je(t,S)}},1093:(t,S,C)=>{var I,A=/&(?:amp|lt|gt|quot|#39|#96);/g,M=RegExp(A.source),D="object"==typeof C.g&&C.g&&C.g.Object===Object&&C.g,k="object"==typeof self&&self&&self.Object===Object&&self,z=D||k||Function("return this")(),W=(I={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'","&#96;":"`"},function(t){return null==I?void 0:I[t]}),V=Object.prototype.toString,$=z.Symbol,Y=$?$.prototype:void 0,G=Y?Y.toString:void 0;t.exports=function(t){var S;return(t=null==(S=t)?"":function(t){if("string"==typeof t)return t;if(function(t){return"symbol"==typeof t||function(t){return!!t&&"object"==typeof t}(t)&&"[object Symbol]"==V.call(t)}(t))return G?G.call(t):"";var S=t+"";return"0"==S&&1/t==-1/0?"-0":S}(S))&&M.test(t)?t.replace(A,W):t}},26:t=>{for(var S=[],C=0;C<256;++C)S[C]=(C+256).toString(16).substr(1);t.exports=function(t,C){var I=C||0,A=S;return[A[t[I++]],A[t[I++]],A[t[I++]],A[t[I++]],"-",A[t[I++]],A[t[I++]],"-",A[t[I++]],A[t[I++]],"-",A[t[I++]],A[t[I++]],"-",A[t[I++]],A[t[I++]],A[t[I++]],A[t[I++]],A[t[I++]],A[t[I++]]].join("")}},1814:t=>{var S="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof window.msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto);if(S){var C=new Uint8Array(16);t.exports=function(){return S(C),C}}else{var I=new Array(16);t.exports=function(){for(var t,S=0;S<16;S++)0==(3&S)&&(t=4294967296*Math.random()),I[S]=t>>>((3&S)<<3)&255;return I}}},8633:(t,S,C)=>{var I,A,M=C(1814),D=C(26),k=0,z=0;t.exports=function(t,S,C){var W=S&&C||0,V=S||[],$=(t=t||{}).node||I,Y=void 0!==t.clockseq?t.clockseq:A;if(null==$||null==Y){var G=M();null==$&&($=I=[1|G[0],G[1],G[2],G[3],G[4],G[5]]),null==Y&&(Y=A=16383&(G[6]<<8|G[7]))}var X=void 0!==t.msecs?t.msecs:(new Date).getTime(),Z=void 0!==t.nsecs?t.nsecs:z+1,K=X-k+(Z-z)/1e4;if(K<0&&void 0===t.clockseq&&(Y=Y+1&16383),(K<0||X>k)&&void 0===t.nsecs&&(Z=0),Z>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");k=X,z=Z,A=Y;var J=(1e4*(268435455&(X+=122192928e5))+Z)%4294967296;V[W++]=J>>>24&255,V[W++]=J>>>16&255,V[W++]=J>>>8&255,V[W++]=255&J;var Q=X/4294967296*1e4&268435455;V[W++]=Q>>>8&255,V[W++]=255&Q,V[W++]=Q>>>24&15|16,V[W++]=Q>>>16&255,V[W++]=Y>>>8|128,V[W++]=255&Y;for(var ee=0;ee<6;++ee)V[W+ee]=$[ee];return S||D(V)}}},S={};function r(C){var I=S[C];if(void 0!==I)return I.exports;var A=S[C]={id:C,loaded:!1,exports:{}};return t[C](A,A.exports,r),A.loaded=!0,A.exports}r.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}(),r.nmd=t=>(t.paths=[],t.children||(t.children=[]),t);var C={};(()=>{var t=C;Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"portlet",{enumerable:!0,get:function(){return Y.default}});var S=_e(r(8686)),I=_e(r(1593)),A=_e(r(8652)),M=_e(r(1093)),D=_e(r(1991)),k=_e(r(3337)),z=r(2801),W=r(34),V=r(9356),$=r(1425),Y=function(t){if(t&&t.__esModule)return t;if(null===t||"object"!=typeof t&&"function"!=typeof t)return{default:t};var S=ge();if(S&&S.has(t))return S.get(t);var C={},I=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var A in t)if(Object.prototype.hasOwnProperty.call(t,A)){var M=I?Object.getOwnPropertyDescriptor(t,A):null;M&&(M.get||M.set)?Object.defineProperty(C,A,M):C[A]=t[A]}return C.default=t,S&&S.set(t,C),C}(r(5659)),G=_e(r(7370)),X=_e(r(2534)),Z=_e(r(9296)),K=_e(r(3873)),J=_e(r(9094)),Q=_e(r(7322)),ee=_e(r(6549)),te=_e(r(85)),re=_e(r(8002)),ne=_e(r(7494)),oe=_e(r(7535)),ie=_e(r(5273)),ae=_e(r(8206)),se=_e(r(7019)),ce=r(1511),le=_e(r(7068)),ue=_e(r(4968)),de=_e(r(8999)),fe=_e(r(775)),pe=_e(r(455)),he=_e(r(7320)),ye=_e(r(4397)),Ve=_e(r(1166)),$e=_e(r(6797)),Ke=_e(r(6506)),nt=_e(r(260)),at=_e(r(4612)),st=_e(r(9105)),ct=r(7387),lt=_e(r(6515)),ut=_e(r(5506)),dt=_e(r(7442)),ft=_e(r(4161)),pt=_e(r(386)),ht=_e(r(1625)),yt=_e(r(4294)),_t=_e(r(1357)),gt=_e(r(742)),vt=r(4874),mt=_e(r(1146)),bt=_e(r(4821)),wt=_e(r(6535)),Ot=_e(r(576)),St=_e(r(2468)),jt=_e(r(4361)),Pt=r(3833),Et=_e(r(8021)),Lt=_e(r(2452)),Tt=_e(r(8956)),Ct=_e(r(7639)),It=_e(r(4601)),At=_e(r(9174)),Mt=_e(r(1521)),Ut=_e(r(6544)),Rt=_e(r(3111)),xt=_e(r(9027));function ge(){if("function"!=typeof WeakMap)return null;var t=new WeakMap;return ge=function(){return t},t}function _e(t){return t&&t.__esModule?t:{default:t}}Liferay=window.Liferay||{},Liferay.BREAKPOINTS=k.default,Liferay.STATUS_CODE=X.default,Liferay.zIndex=xt.default,Liferay.component=z.component,Liferay.componentReady=z.componentReady,Liferay.destroyComponent=z.destroyComponent,Liferay.destroyComponents=z.destroyComponents,Liferay.destroyUnfulfilledPromises=z.destroyUnfulfilledPromises,Liferay.getComponentCache=z.getComponentCache,Liferay.initComponentCache=z.initComponentCache,Liferay.Address={getCountries:K.default,getRegions:J.default},Liferay.DynamicSelect=D.default,Liferay.LayoutExporter={all:W.hideLayoutPane,details:W.toggleLayoutDetails,icons:(0,W.getLayoutIcons)(),proposeLayout:W.proposeLayout,publishToLive:W.publishToLive,selected:W.showLayoutPane},Liferay.Portal={Tabs:{show:V.showTab},ToolTip:{show:$.showTooltip}},Liferay.Portlet=Liferay.Portlet||{},Liferay.Portlet.minimize=Y.minimizePortlet,Liferay.Portlet.openModal=(...t)=>{Liferay.Loader.require("frontend-js-web/index",(({openPortletModal:S})=>{S(...t)}))},Liferay.Portlet.openWindow=(...t)=>{Liferay.Loader.require("frontend-js-web/index",(({openPortletWindow:S})=>{S(...t)}))},Liferay.SideNavigation=G.default,Liferay.Util=Liferay.Util||{},Liferay.Util.MAP_HTML_CHARS_ESCAPED=ct.MAP_HTML_CHARS_ESCAPED,Liferay.Util.addParams=Z.default,Liferay.Util.openAlertModal=(...t)=>{Liferay.Loader.require("frontend-js-web/index",(({openAlertModal:S})=>{S(...t)}))},Liferay.Util.disableEsc=()=>{document.all&&27===window.event.keyCode&&(window.event.returnValue=!1)},Liferay.Util.escape=S.default,Liferay.Util.escapeHTML=ct.escapeHTML,Liferay.Util.fetch=ee.default,Liferay.Util.focusFormField=te.default,Liferay.Util.formatStorage=ae.default,Liferay.Util.formatXML=se.default,Liferay.Util.getCheckedCheckboxes=ce.getCheckedCheckboxes,Liferay.Util.getUncheckedCheckboxes=ce.getUncheckedCheckboxes,Liferay.Util.getCropRegion=le.default,Liferay.Util.getDOM=ue.default,Liferay.Util.getElement=de.default,Liferay.Util.getGeolocation=fe.default,Liferay.Util.getFormElement=re.default,Liferay.Util.getLexiconIcon=pe.default,Liferay.Util.getLexiconIconTpl=he.default,Liferay.Util.getOpener=ye.default,Liferay.Util.getPortletConfigurationIconAction=vt.getPortletConfigurationIconAction,Liferay.Util.getPortletId=Ve.default,Liferay.Util.getPortletNamespace=$e.default,Liferay.Util.getTop=nt.default,Liferay.Util.getURLWithSessionId=at.default,Liferay.Util.getWindow=st.default,Liferay.Util.groupBy=I.default,Liferay.Util.inBrowserView=lt.default,Liferay.Util.isEqual=A.default,Liferay.Util.isPhone=ut.default,Liferay.Util.isTablet=dt.default,Liferay.Util.getSelectedOptionValues=Ke.default,Liferay.Util.navigate=pt.default,Liferay.Util.ns=yt.default,Liferay.Util.objectToFormData=ne.default,Liferay.Util.objectToURLSearchParams=_t.default,Liferay.Util.normalizeFriendlyURL=ht.default,Liferay.Util.PortletURL={createActionURL:mt.default,createPortletURL:bt.default,createRenderURL:wt.default,createResourceURL:Ot.default},Liferay.Util.postForm=oe.default,Liferay.Util.setFormValues=ie.default,Liferay.Util.toCharCode=Ct.default,Liferay.Util.toggleDisabled=Mt.default,Liferay.Util.openConfirmModal=(...t)=>{Liferay.Loader.require("frontend-js-web/index",(({openConfirmModal:S})=>{S(...t)}))},Liferay.Util.openModal=(...t)=>{Liferay.Loader.require("frontend-js-web/index",(({openModal:S})=>{S(...t)}))},Liferay.Util.openSelectionModal=(...t)=>{Liferay.Loader.require("frontend-js-web/index",(({openSelectionModal:S})=>{S(...t)}))},Liferay.Util.openToast=(...t)=>{Liferay.Loader.require("frontend-js-web/index",(({openToast:S})=>{S(...t)}))},Liferay.Util.openWindow=gt.default,Liferay.Util.removeEntitySelection=St.default,Liferay.Util.selectFolder=jt.default,Liferay.Util.setPortletConfigurationIconAction=vt.setPortletConfigurationIconAction,Liferay.Util.showCapsLock=Lt.default,Liferay.Util.sub=Tt.default,Liferay.Util.Session={get:Pt.getSessionValue,set:Pt.setSessionValue},Liferay.Util.toggleBoxes=It.default,Liferay.Util.toggleControls=At.default,Liferay.Util.toggleRadio=Ut.default,Liferay.Util.toggleSelectBox=Rt.default,Liferay.Util.unescape=M.default,Liferay.Util.unescapeHTML=ct.unescapeHTML,Liferay.Util.Cookie=Q.default,Liferay.Util.LocalStorage=ft.default,Liferay.Util.SessionStorage=Et.default})();var I=window;for(var A in C)I[A]=C[A];C.__esModule&&Object.defineProperty(I,"__esModule",{value:!0})})();


!function(e){const t=e.Lang,o=Liferay.Util,r="head",a={...Liferay.Portlet,_defCloseFn(e){if(e.portlet.remove(!0),!e.nestedPortlet){const 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){const o=t.markupHeadElements;if(o&&o.length){e.one(r).append(o);const t=e.Node.create("<div />");t.plug(e.Plugin.ParseContent),t.setContent(o)}},_loadModules(e){return Promise.all(e.map((e=>new Promise((t=>{const o=document.createElement("script");o.src=e,o.type="module",o.onload=o.onreadystatechange=()=>{this.readyState&&"complete"!==this.readyState&&"load"!==this.readyState||(o.onload=o.onreadystatechange=null,o.onerror=null,t())},o.onerror=()=>{o.onload=o.onreadystatechange=null,o.onerror=null,console.error("Unable to load",e),t()},document.head.appendChild(o)})))))},_loadPortletFiles(t,o){const l=t.footerCssPaths||[],i=t.headerCssPaths||[],s=e.one(r);i.length&&e.Get.css(i,{insertBefore:s.get("firstChild").getDOM()});const n=document.body.lastChild;l.length&&e.Get.css(l,{insertBefore:n});const d=t.portletHTML;let p=t.headerJavaScriptPaths||[];if(p=p.concat(t.footerJavaScriptPaths||[]),p.length){const t=p.filter((e=>e.startsWith("module:"))).map((e=>e.substring(7)));p=p.filter((e=>!e.startsWith("module:"))),a._loadModules(t).then((()=>{e.Get.script(p,{onEnd(){o(d)}})}))}else o(d)},_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,o)=>e===o.portletId))},isStatic(e){return o.getPortletId(e.id||e)in this._staticPortlets},list:[],readyCounter:0,refreshLayout(e){},register(e){const t=this;t.list.indexOf(e)<0&&t.list.push(e)}};Liferay.provide(a,"add",(function(t){const r=this;Liferay.fire("initLayout");const a=t.doAsUserId||themeDisplay.getDoAsUserIdEncoded(),l=t.plid||themeDisplay.getPlid(),i=t.portletData,s=t.portletId,n=t.portletItemId;let d=t.placeHolder;d=d?e.one(d):e.Node.create('<div class="loading-animation" />');const p=t.beforePortletLoaded,c=t.onComplete;let f=null;if(Liferay.Layout&&Liferay.Layout.INITIALIZED&&(f=Liferay.Layout.getActiveDropContainer()),!f)return;let u=f.attr("id").replace(/layout-column_/,""),y=0;if(t.placeHolder){const e=d.get("parentNode");if(!e)return;d.addClass("portlet-boundary");const t=e.all(".portlet-boundary"),r=e.all(".portlet-nested-portlets");y=t.indexOf(d);let a=0;r.some((e=>{const o=t.indexOf(e);if(-1!==o&&o<y)a+=e.all(".portlet-boundary").size();else if(o>=y)return!0})),y-=a,u=o.getColumnId(e.attr("id"))}const h=themeDisplay.getPathMain()+"/portal/update_layout",L={cmd:"add",dataType:"JSON",doAsUserId:a,p_auth:Liferay.authToken,p_l_id:l,p_p_col_id:u,p_p_col_pos:y,p_p_i_id:n,p_p_id:s,p_p_isolated:!0,p_v_l_s_g_id:themeDisplay.getSiteGroupId(),portletData:i},g=f.one(".portlet-boundary"),m=g&&g.isStatic;t.placeHolder||t.plid||(m?g.placeAfter(d):f.prepend(d)),L.currentURL=Liferay.currentURL,r.addHTML({beforePortletLoaded:p,data:L,onComplete:function(e,t){c&&c(e,t),r.list.push(e.portletId),e&&e.attr("data-qa-id","app-loaded"),Liferay.fire("addPortlet",{portlet:e})},placeHolder:d,url:h})}),["aui-base"]),Liferay.provide(a,"addHTML",(function(r){const l=this;let i=null;const s=r.beforePortletLoaded,n=r.data;let d="HTML";const p=r.onComplete,c=r.placeHolder,f=r.url;n&&t.isString(n.dataType)&&(d=n.dataType),d=d.toUpperCase();const addPortletReturn=function(t){const r=c.get("parentNode");let a,s=e.Node.create("<div></div>");if(s.plug(e.Plugin.ParseContent),s.setContent(t),s=s.one("> *"),s){const e=s.attr("id");a=o.getPortletId(e),s.portletId=a,c.hide(),c.placeAfter(s),c.remove(),l.refreshLayout(s),window.location.hash&&(window.location.href=encodeURI(window.location.hash)),i=s;const t=Liferay.Layout;t&&t.INITIALIZED&&(t.updateCurrentPortletInfo(i),r&&t.syncEmptyColumnClassUI(r),t.syncDraggableClassUI(),t.updatePortletDropZones(i)),p&&p(i,a)}else c.remove();return a};s&&s(c),Liferay.Util.fetch(f,{body:Liferay.Util.objectToURLSearchParams(n),method:"POST"}).then((e=>"JSON"===d?e.json():e.text())).then((e=>{"HTML"===d?addPortletReturn(e):e.refresh?addPortletReturn(e.portletHTML):(a._loadMarkupHeadElements(e),a._loadPortletFiles(e,addPortletReturn)),n&&n.preventNotification||Liferay.fire("updatedLayout")})).catch((e=>{const t="string"==typeof e?e:'There\x20was\x20an\x20unexpected\x20error\x2e\x20Please\x20refresh\x20the\x20current\x20page\x2e';Liferay.Util.openToast({message:t,type:"danger"})}))}),["aui-parse-content"]),Liferay.provide(a,"close",(function(t,o,r){const l=this,_removeComponent=()=>{const e=t.portletId,o=l.list.indexOf(e);o>=0&&l.list.splice(o,1),r=a._mergeOptions(t,r),a.destroyComponents(e),Liferay.fire("destroyPortlet",r),Liferay.fire("closePortlet",r)};(t=e.one(t))?o?_removeComponent():Liferay.Util.openConfirmModal({message:'Are\x20you\x20sure\x20you\x20want\x20to\x20remove\x20this\x20component\x3f',onConfirm:e=>{e&&_removeComponent()}}):e.config.win.focus()}),[]),Liferay.provide(a,"destroy",((t,r)=>{if(t=e.one(t)){const e=t.portletId||o.getPortletId(t.attr("id"));a.destroyComponents(e),Liferay.fire("destroyPortlet",a._mergeOptions(t,r))}}),["aui-node-base"]),Liferay.provide(a,"onLoad",(function(t){const r=this,a=t.canEditTitle,l=t.columnPos,i="no"===t.isStatic?null:t.isStatic,s=t.namespacedId,n=t.portletId,d=t.refreshURL,p=t.refreshURLData;i&&r.registerStatic(n);const c=e.one("#"+s);if(c&&!c.portletProcessed&&(c.portletProcessed=!0,c.portletId=n,c.columnPos=l,c.isStatic=i,c.refreshURL=d,c.refreshURLData=p,a)){let t="focus";e.UA.touchEnabled||(t=["focus","mousemove"]);const r=c.on(t,(()=>{o.portletTitleEdit({doAsUserId:themeDisplay.getDoAsUserIdEncoded(),obj:c,plid:themeDisplay.getPlid(),portletId:n}),r.detach()}))}Liferay.fire("portletReady",{portlet:c,portletId:n}),r.readyCounter++,r.readyCounter===r.list.length&&Liferay.fire("allPortletsReady",{portletId:n})}),["aui-base","aui-timer","event-move"]),Liferay.provide(a,"refresh",(function(o,r,l){const i=this;if(o=e.one(o)){r=l?{...o.refreshURLData||{},...r||{}}:r||o.refreshURLData||{},Object.prototype.hasOwnProperty.call(r,"portletAjaxable")||(r.portletAjaxable=!0);const s=o.attr("portlet");let n=o.refreshURL;const d=e.Node.create('<div class="loading-animation" id="p_p_id'+s+'" />');if(r.portletAjaxable&&n){o.placeBefore(d),o.remove(!0),a.destroyComponents(o.portletId);let t={};const l=n.split("?");l.length>1&&(t=e.QueryString.parse(l[1]),delete t.dataType,n=l[0]),i.addHTML({data:e.mix(t,r,!0),onComplete(e,t){e.refreshURL=n,e&&e.attr("data-qa-id","app-refreshed"),Liferay.fire(e.portletId+":portletRefreshed",{portlet:e,portletId:t})},placeHolder:d,url:n})}else if(!o.getData("pendingRefresh")){o.setData("pendingRefresh",!0);const e=t.sub('<div class="alert alert-info">{0}</div>',['This\x20change\x20will\x20only\x20be\x20shown\x20after\x20you\x20refresh\x20the\x20current\x20page\x2e']),r=o.one(".portlet-body");r.placeBefore(e),r.hide()}}}),["aui-base","querystring-parse"]),Liferay.provide(a,"registerStatic",(function(t){const r=e.Node;r&&t instanceof r?t=t.attr("id"):t.id&&(t=t.id);const a=o.getPortletId(t);this._staticPortlets[a]=!0}),["aui-base"]),Liferay.publish("closePortlet",{defaultFn:a._defCloseFn}),Liferay.publish("allPortletsReady",{fireOnce:!0}),a.ready=function(e){Liferay.on("portletReady",(t=>{e(t.portletId,t.portlet)}))},Liferay.Portlet=a}(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};







