YUI.add("widget-position-align",function(o,t){var s=o.Lang,i="align",e="visible",a="offsetWidth",g="offsetHeight";function l(t){}l.ATTRS={align:{value:null},centered:{setter:"_setAlignCenter",lazyAdd:!1,value:!1},alignOn:{value:[],validator:o.Lang.isArray}},l.TL="tl",l.TR="tr",l.BL="bl",l.BR="br",l.TC="tc",l.RC="rc",l.BC="bc",l.LC="lc",l.CC="cc",l.prototype={initializer:function(){this._posNode||o.error("WidgetPosition needs to be added to the Widget, before WidgetPositionAlign is added"),o.after(this._bindUIPosAlign,this,"bindUI"),o.after(this._syncUIPosAlign,this,"syncUI")},_posAlignUIHandles:null,destructor:function(){this._detachPosAlignUIHandles()},_bindUIPosAlign:function(){this.after("alignChange",this._afterAlignChange),this.after("alignOnChange",this._afterAlignOnChange),this.after("visibleChange",this._syncUIPosAlign)},_syncUIPosAlign:function(){var t=this.get(i);this._uiSetVisiblePosAlign(this.get(e)),t&&this._uiSetAlign(t.node,t.points)},align:function(t,e){return arguments.length?this.set(i,{node:t,points:e}):this._syncUIPosAlign(),this},centered:function(t){return this.align(t,[l.CC,l.CC])},_getAlignToXY:function(t,e,i,n){var s;switch(e){case l.TL:s=[i,n];break;case l.TR:s=[i-t.get(a),n];break;case l.BL:s=[i,n-t.get(g)];break;case l.BR:s=[i-t.get(a),n-t.get(g)];break;case l.TC:s=[i-t.get(a)/2,n];break;case l.BC:s=[i-t.get(a)/2,n-t.get(g)];break;case l.LC:s=[i,n-t.get(g)/2];break;case l.RC:s=[i-t.get(a),n-t.get(g)/2];break;case l.CC:s=[i-t.get(a)/2,n-t.get(g)/2]}return s},_getAlignedXY:function(t,e){if(s.isArray(e)&&2===e.length){var i,n=this._getRegion(t);if(n){switch(e[1]){case l.TL:i=[n.left,n.top];break;case l.TR:i=[n.right,n.top];break;case l.BL:i=[n.left,n.bottom];break;case l.BR:i=[n.right,n.bottom];break;case l.TC:i=[n.left+Math.floor(n.width/2),n.top];break;case l.BC:i=[n.left+Math.floor(n.width/2),n.bottom];break;case l.LC:i=[n.left,n.top+Math.floor(n.height/2)];break;case l.RC:i=[n.right,n.top+Math.floor(n.height/2)];break;case l.CC:i=[n.left+Math.floor(n.width/2),n.top+Math.floor(n.height/2)]}return this._getAlignToXY(this._posNode,e[0],i[0],i[1])}}else o.error("align: Invalid Points Arguments")},_setAlignCenter:function(t){return t&&this.set(i,{node:!0===t?null:t,points:[l.CC,l.CC]}),t},_uiSetAlign:function(t,e){t=this._getAlignedXY(t,e);t&&this._doAlign(t)},_uiSetVisiblePosAlign:function(t){t?this._attachPosAlignUIHandles():this._detachPosAlignUIHandles()},_attachPosAlignUIHandles:function(){var i,n,s;this._posAlignUIHandles||(i=this.get("boundingBox"),n=o.bind(this._syncUIPosAlign,this),s=[],o.Array.each(this.get("alignOn"),function(t){var e=t.eventName,t=o.one(t.node)||i;e&&s.push(t.on(e,n))}),this._posAlignUIHandles=s)},_detachPosAlignUIHandles:function(){var t=this._posAlignUIHandles;t&&(new o.EventHandle(t).detach(),this._posAlignUIHandles=null)},_doAlign:function(t){t&&this.move(t)},_getRegion:function(t){var e;return t?(t=o.Node.one(t))&&(e=t.get("region")):e=this._posNode.get("viewportRegion"),e},_afterAlignChange:function(t){t=t.newVal;t&&this._uiSetAlign(t.node,t.points)},_afterAlignOnChange:function(t){this._detachPosAlignUIHandles(),this.get(e)&&this._attachPosAlignUIHandles()}},o.WidgetPositionAlign=l},"patched-v3.18.6",{requires:["widget-position"]}); YUI.add("widget-position-constrain",function(t,n){var l,e="constrain",i=t.Node,o="region";function s(t){}s.ATTRS={constrain:{value:null,setter:"_setConstrain"},preventOverlap:{value:!1}},l=s._PREVENT_OVERLAP={x:{tltr:1,blbr:1,brbl:1,trtl:1},y:{trbr:1,tlbl:1,bltl:1,brtr:1}},s.prototype={initializer:function(){this._posNode||t.error("WidgetPosition needs to be added to the Widget, before WidgetPositionConstrain is added"),t.after(this._bindUIPosConstrained,this,"bindUI")},getConstrainedXY:function(t,n){n=n||this.get(e);var n=this._getRegion(!0===n?null:n),i=this._posNode.get(o);return[this._constrain(t[0],"x",i,n),this._constrain(t[1],"y",i,n)]},constrain:function(t,n){var n=n||this.get(e);n&&(t=t||this.get("xy"),(n=this.getConstrainedXY(t,n))[0]===t[0]&&n[1]===t[1]||this.set("xy",n,{constrained:!0}))},_setConstrain:function(t){return!0===t?t:i.one(t)},_constrain:function(t,n,i,e){var o,s;return e&&(this.get("preventOverlap")&&(t=this._preventOverlap(t,n,i,e)),o=(n="x"==n)?e.width:e.height,i=n?i.width:i.height,s=n?e.left:e.top,n=n?e.right-i:e.bottom-i,(t',S.prototype={initializer:function(){this._stackNode=this.get("boundingBox"),this._stackHandles={},e.after(this._renderUIStack,this,"renderUI"),e.after(this._syncUIStack,this,"syncUI"),e.after(this._bindUIStack,this,"bindUI")},_syncUIStack:function(){this._uiSetShim(this.get(d)),this._uiSetZIndex(this.get(a))},_bindUIStack:function(){this.after("shimChange",this._afterShimChange),this.after("zIndexChange",this._afterZIndexChange)},_renderUIStack:function(){this._stackNode.addClass(S.STACKED_CLASS_NAME)},_parseZIndex:function(e){e=e.inDoc()&&"static"!==e.getStyle("position")?e.getComputedStyle("zIndex"):"auto";return"auto"===e?null:e},_setZIndex:function(e){return i.isString(e)&&(e=parseInt(e,10)),e=i.isNumber(e)?e:0},_afterShimChange:function(e){this._uiSetShim(e.newVal)},_afterZIndexChange:function(e){this._uiSetZIndex(e.newVal)},_uiSetZIndex:function(e){this._stackNode.setStyle(a,e)},_uiSetShim:function(e){e?(this.get(r)?this._renderShim():this._renderShimDeferred(),6==s.ie&&this._addShimResizeHandlers()):this._destroyShim()},_renderShimDeferred:function(){this._stackHandles[_]=this._stackHandles[_]||[];this._stackHandles[_].push(this.on(o,function(e){e.newVal&&this._renderShim()}))},_addShimResizeHandlers:function(){this._stackHandles[c]=this._stackHandles[c]||[];var e=this.sizeShim,t=this._stackHandles[c];t.push(this.after(o,e)),t.push(this.after("widthChange",e)),t.push(this.after("heightChange",e)),t.push(this.after("contentUpdate",e))},_detachStackHandles:function(e){var t,i=this._stackHandles[e];if(i&&0',body:'
',footer:'
'},p.prototype={initializer:function(){this._stdModNode=this.get(S),i.before(this._renderUIStdMod,this,"renderUI"),i.before(this._bindUIStdMod,this,"bindUI"),i.before(this._syncUIStdMod,this,"syncUI")},_syncUIStdMod:function(){var t=this._stdModParsed;t&&t[c]||this._uiSetStdMod(u,this.get(c)),t&&t[E]||this._uiSetStdMod(_,this.get(E)),t&&t[C]||this._uiSetStdMod(M,this.get(C)),this._uiSetFillHeight(this.get(o))},_renderUIStdMod:function(){this._stdModNode.addClass(d.getClassName("stdmod")),this._renderStdModSections(),this.after("headerContentChange",this._afterHeaderChange),this.after("bodyContentChange",this._afterBodyChange),this.after("footerContentChange",this._afterFooterChange)},_renderStdModSections:function(){h.isValue(this.get(c))&&this._renderStdMod(u),h.isValue(this.get(E))&&this._renderStdMod(_),h.isValue(this.get(C))&&this._renderStdMod(M)},_bindUIStdMod:function(){this.after("fillHeightChange",this._afterFillHeightChange),this.after("heightChange",this._fillHeight),this.after(g,this._fillHeight)},_afterHeaderChange:function(t){t.src!==f&&this._uiSetStdMod(u,t.newVal,t.stdModPosition)},_afterBodyChange:function(t){t.src!==f&&this._uiSetStdMod(_,t.newVal,t.stdModPosition)},_afterFooterChange:function(t){t.src!==f&&this._uiSetStdMod(M,t.newVal,t.stdModPosition)},_afterFillHeightChange:function(t){this._uiSetFillHeight(t.newVal)},_validateFillHeight:function(t){return!t||t==p.BODY||t==p.HEADER||t==p.FOOTER},_uiSetFillHeight:function(t){var t=this.getStdModNode(t),e=this._currFillNode;e&&t!==e&&e.setStyle(r,""),t&&(this._currFillNode=t),this._fillHeight()},_fillHeight:function(){var t;this.get(o)&&""!=(t=this.get(r))&&"auto"!=t&&this.fillHeight(this.getStdModNode(this.get(o)))},_uiSetStdMod:function(t,e,i){var d;h.isValue(e)?(d=this.getStdModNode(t,!0),this._addStdModContent(d,e,i),this.set(t+s,this._getStdModContent(t),{src:f})):this._eraseStdMod(t),this.fire(g)},_renderStdMod:function(t){var e=this.get(S),i=(i=this._findStdModSection(t))||this._getStdModTemplate(t);return this._insertStdModSection(e,t,i),this[t+n]=i,this[t+n]},_eraseStdMod:function(t){var e=this.getStdModNode(t);e&&(e.remove(!0),delete this[t+n])},_insertStdModSection:function(t,e,i){var d=t.get("firstChild");e!==M&&d?e===u?t.insertBefore(i,d):(e=this[M+n])?t.insertBefore(i,e):t.appendChild(i):t.appendChild(i)},_getStdModTemplate:function(t){return e.create(p.TEMPLATES[t],this._stdModNode.get("ownerDocument"))},_addStdModContent:function(t,e,i){switch(i){case p.BEFORE:i=0;break;case p.AFTER:i=undefined;break;default:i=p.REPLACE}t.insert(e,i)},_getPreciseHeight:function(t){var e=t?t.get(l):0,i="getBoundingClientRect";return e=t&&t.hasMethod(i)&&(i=t.invoke(i))?i.bottom-i.top:e},_findStdModSection:function(t){return this.get(S).one("> ."+p.SECTION_CLASS_NAMES[t])},_parseStdModHTML:function(t){var e=this._findStdModSection(t);return e?(this._stdModParsed||(this._stdModParsed={},i.before(this._applyStdModParsedConfig,this,"_applyParsedConfig")),this._stdModParsed[t+s]=1,e.get("innerHTML")):null},_applyStdModParsedConfig:function(t,e,i){var d=this._stdModParsed;d&&(d[c]=!(c in e)&&c in d,d[E]=!(E in e)&&E in d,d[C]=!(C in e)&&C in d)},_getStdModContent:function(t){return this[t+n]?this[t+n].get("childNodes"):null},setStdModContent:function(t,e,i){this.set(t+s,e,{stdModPosition:i})},getStdModNode:function(t,e){var i=this[t+n]||null;return i=!i&&e?this._renderStdMod(t):i},fillHeight:function(t){var e,i,d,o,n,s,r;if(t){for(o=this.get(S),n=!(e=[this.headerNode,this.bodyNode,this.footerNode]),s=d=0,r=e.length;s0&&(u=t.slice(o,t.length),t=t.slice(0,o)),n.isFunction(r)&&(i=r,r=null),r=r||{},i&&(r.after=r.after||{},r.after.success=i);var a=r.where;return r.uri=t,r.where=a,u&&(r.selector=u,r.where=a||"replace"),s.plug(e.Plugin.IO,r),s},e.namespace("Plugin").IO=O},"3.1.0-deprecated.106",{requires:["aui-overlay-base-deprecated","aui-parse-content","aui-io-request","aui-loading-mask-deprecated"]}); YUI.add("aui-io-request",function(e,t){var n=e.Lang,r=n.isBoolean,i=n.isFunction,s=n.isString,o=e.namespace("config.io"),u=function(e){return function(){return o[e]}},a={all:"*/*",html:"text/html",json:"application/json, text/javascript",text:"text/plain",xml:"application/xml, text/xml"},f=e.Component.create({NAME:"IORequest",ATTRS:{autoLoad:{value:!0,validator:r},cache:{value:!0,validator:r},dataType:{setter:function(e){return(e||"").toLowerCase()},value:null,validator:s},responseData:{setter:function(e){return this._setResponseData(e)},value:null},uri:{setter:function(e){return this._parseURL(e)},value:null,validator:s},active:{value:!1,validator:r},cfg:{getter:function(){var t=this;return{arguments:t.get("arguments"),context:t.get("context"),data:t.getFormattedData(),form:t.get("form"),headers:t.get("headers"),method:t.get("method"),on:{complete:e.bind(t.fire,t,"complete"),end:e.bind(t._end,t),failure:e.bind(t.fire,t,"failure"),start:e.bind(t.fire,t,"start"),success:e.bind(t._success,t)},sync:t.get("sync"),timeout:t.get("timeout"),xdr:t.get("xdr")}},readOnly:!0},transaction:{value:null},arguments:{valueFn:u("arguments")},context:{valueFn:u("context")},data:{valueFn:u("data")},form:{valueFn:u("form")},headers:{getter:function(t){var n=[],r=this,i=r.get("dataType");return i&&n.push(a[i]),n.push(a.all),e.merge(t,{Accept:n.join(", ")})},valueFn:u("headers")},method:{setter:function(e){return e.toLowerCase()},valueFn:u("method")},selector:{value:null},sync:{valueFn:u("sync")},timeout:{valueFn:u("timeout")},xdr:{valueFn:u("xdr")}},EXTENDS:e.Plugin.Base,prototype:{init:function(){var e=this;f.superclass.init.apply(this,arguments),e._autoStart()},destructor:function(){var e=this;e.stop(),e.set("transaction",null)},getFormattedData:function(){var e=this,t=e.get("data"),n=o.dataFormatter;return i(n)&&(t=n.call(e,t)),t},start:function(){var t=this;t.destructor(),t.set("active",!0);var n=t._yuiIOObj;n||(n=new e.IO,t._yuiIOObj=n);var r=n.send(t.get("uri"),t.get("cfg"));t.set("transaction",r)},stop:function(){var e=this,t=e.get("transaction");t&&t.abort()},_autoStart:function(){var e=this;e.get("autoLoad")&&e.start()},_parseURL:function(e){var t=this,n=t.get("cache"),r=t.get("method");if(n===!1&&r==="get"){var s=+(new Date),u=e.replace(/(\?|&)_=.*?(&|$)/,"$1_="+s+"$2");e=u+(u===e?(e.match(/\?/)?"&":"?")+"_="+s:"")}var a=o.uriFormatter;return i(a)&&(e=a.apply(t,[e])),e},_end:function(e,t){var n=this;n.set("active",!1),n.set("transaction",null),n.fire("end",e,t)},_success:function(e,t,n){var r=this;r.set("responseData",t),r.fire("success",e,t,n)},_setResponseData:function(t){var n=null,r=this;if(t){var i=r.get("dataType"),s=t.getResponseHeader("content-type")||"";if(i==="xml"||!i&&s.indexOf("xml")>=0){n=t.responseXML;if(n.documentElement.tagName==="parsererror")throw"Parser error: IO dataType is not correctly parsing"}else n=t.responseText;n===""&&(n=null);if(i==="json")try{n=e.JSON.parse(n)}catch(o){}else{var u=r.get("selector");if(n&&u){var a;n.documentElement?a=e.one(n):a=e.Node.create(n),n=a.all(u)}}}return n}}});e.IORequest=f,e.io.request=function(t,n){return new e.IORequest(e.merge(n,{uri:t}))}},"3.1.0-deprecated.106",{requires:["io-base","json","plugin","querystring-stringify","aui-component"]}); YUI.add("aui-loading-mask-deprecated",function(e,t){var n=e.Lang,r="boundingBox",i="contentBox",s="hide",o="host",u="messageEl",t="loadingmask",a="position",f="show",l="static",c="strings",h="target",p="toggle",d=e.getClassName,v=d(t),m=d(t,"masked"),g=d(t,"masked","relative"),y=d(t,"message"),b=d(t,"message","content"),w='
{0}
',E=e.Component.create({NAME:t,NS:t,ATTRS:{messageEl:{valueFn:function(t){var r=this,i=r.get(c);return e.Node.create(n.sub(w,[i.loading]))}},strings:{value:{loading:"Loading…"}},target:{setter:function(){var t=this,n=t.get(o);return n instanceof e.Widget&&(n=n.get(i)),n},value:null}},EXTENDS:e.Plugin.Base,prototype:{initializer:function(t){var n=this;n.IGNORED_ATTRS=e.merge({host:!0},E.ATTRS),n.renderUI(),n.bindUI(),n._createDynamicAttrs(t)},renderUI:function(){var e=this,t=e.get(c);e._renderOverlayMask(),e.overlayMask.get(r).append(e.get(u))},bindUI:function(){var e=this;e._bindOverlayMaskUI()},destructor:function(){var e=this;e.overlayMask.destroy(),e._visibleChangeHandle.detach()},_bindOverlayMaskUI:function(){var e=this;e._visibleChangeHandle=e.overlayMask.after("visibleChange",e._afterVisibleChange,e)},centerMessage:function(){var e=this;e.get(u).center(e.overlayMask.get(r))},refreshMask:function(){var e=this;e.overlayMask.refreshMask(),e.centerMessage()},_afterVisibleChange:function(e){var t=this,n=t.get(h),r=n.getStyle(a)==l;n.toggleClass(m,e.newVal),n.toggleClass(g,e.newVal&&r),e.newVal&&t.refreshMask()},_renderOverlayMask:function(){var t=this,n=t.get(h);t.overlayMask=(new e.OverlayMask({target:n,cssClass:v})).render(n)},_createDynamicAttrs:function(t){var n=this;e.each(t,function(e,t){var r=n.IGNORED_ATTRS[t];r||n.addAttr(t,{setter:function(e){return this.overlayMask.set(t,e),e},value:e})})}}});e.each([s,f,p],function(e){E.prototype[e]=function(){this.overlayMask[e]()}}),e.LoadingMask=E},"3.1.0-deprecated.106",{requires:["plugin","aui-overlay-mask-deprecated"],skinnable:!0}); YUI.add("aui-overlay-base-deprecated",function(e,t){e.OverlayBase=e.Component.create({NAME:"overlay",ATTRS:{hideClass:{value:!1}},AUGMENTS:[e.WidgetPosition,e.WidgetStack,e.WidgetPositionAlign,e.WidgetPositionConstrain,e.WidgetStdMod]})},"3.1.0-deprecated.106",{requires:["widget-position","widget-stack","widget-position-align","widget-position-constrain","widget-stdmod","aui-component"]}); YUI.add("aui-overlay-context-deprecated",function(e,t){var n=e.Lang,r=n.isString,i=n.isNumber,s=n.isObject,o=n.isBoolean,u=function(t){return t instanceof e.NodeList},a="align",f="bl",l="boundingBox",c="cancellableHide",h="overlaycontext",p="currentNode",d="focused",v="hide",m="hideDelay",g="hideOn",y="hideOnDocumentClick",b="mousedown",w="show",E="showDelay",S="showOn",x="tl",T="trigger",N="useARIA",C="visible",k=e.Component.create({NAME:h,ATTRS:{align:{value:{node:null,points:[x,f]}},cancellableHide:{value:!0,validator:o},currentNode:{valueFn:function(){return this.get(T).item(0)}},delay:{value:null,validator:s},hideOn:{lazyAdd:!1,value:"mouseout",setter:function(e){return this._setHideOn(e)}},hideOnDocumentClick:{lazyAdd:!1,setter:function(e){return this._setHideOnDocumentClick(e)},value:!0,validator:o},hideDelay:{lazyAdd:!1,setter:"_setHideDelay",value:0,validator:i},showOn:{lazyAdd:!1,value:"mouseover",setter:function(e){return this._setShowOn(e)}},showDelay:{lazyAdd:!1,setter:"_setShowDelay",value:0,validator:i},trigger:{lazyAdd:!1,setter:function(t){return u(t)?t:r(t)?e.all(t):new e.NodeList([t])}},useARIA:{value:!0},visible:{value:!1}},EXTENDS:e.OverlayBase,constructor:function(e){var t=this;t._showCallback=null,t._hideCallback=null,k.superclass.constructor.apply(this,arguments)},prototype:{initializer:function(){var e=this,t=e.get(T);t&&t.size()&&e.set("align.node",t.item(0))},bindUI:function(){var t=this,n=t.get(l);n.on(b,t._stopTriggerEventPropagation),t.before("triggerChange",t._beforeTriggerChange),t.before("showOnChange",t._beforeShowOnChange),t.before("hideOnChange",t._beforeHideOnChange),t.after("triggerChange",t._afterTriggerChange),t.after("showOnChange",t._afterShowOnChange),t.after("hideOnChange",t._afterHideOnChange),n.on("click",e.bind(t._cancelAutoHide,t)),n.on("mouseenter",e.bind(t._cancelAutoHide,t)),n.on("mouseleave",e.bind(t._invokeHideTaskOnInteraction,t)),t.after("focusedChange",e.bind(t._invokeHideTaskOnInteraction,t)),t.on("visibleChange",t._onVisibleChangeOverlayContext)},hide:function(){var e=this;e.clearIntervals(),e.fire("hide"),k.superclass.hide.apply(e,arguments)},show:function(e){var t=this;t.clearIntervals(),t.updateCurrentNode(e),t.fire("show"),k.superclass.show.apply(t,arguments),t.refreshAlign()},syncUI:function(){var t=this;t.get(N)&&t.plug(e.Plugin.Aria,{attributes:{trigger:{ariaName:"controls",format:function(e){var n=t.get(l).generateID();return n},node:function(){return t.get(T)}},visible:{ariaName:"hidden",format:function(e){return!e}}},roleName:"dialog"})},toggle:function(e){var t=this;t.get(C)?t._hideTask(e):t._showTask(e)},clearIntervals:function(){this._hideTask.cancel(),this._showTask.cancel()},refreshAlign:function(){var e=this,t=e.get(a),n=e.get(p);n&&e._uiSetAlign(n,t.points)},updateCurrentNode:function(e){var t=this,n=t.get(a),r=t.get(T),i=null;e&&(i=e.currentTarget);var s=i||r.item(0)||n.node;s&&t.set(p,s)},_toggle:function(e){var t=this;if(t.get("disabled"))return;var n=e.currentTarget;t._lastTarget!=n&&t.hide(),t.toggle(e),e.stopPropagation(),t._lastTarget=n},_afterShowOnChange:function(e){var t=this,n=e.prevVal==t.get(g);if(n){var r=t.get(T);r.detach(e.prevVal,t._hideCallback),t._setHideOn(t.get(g))}},_afterHideOnChange:function(e){var t=this,n=e.prevVal==t.get(S);if(n){var r=t.get(T);r.detach(e.prevVal,t._showCallback),t._setShowOn(t.get(S))}},_afterTriggerChange:function(e){var t=this;t._setShowOn(t.get(S)),t._setHideOn(t.get(g))},_beforeShowOnChange:function(e){var t=this,n=t.get(T);n.detach(e.prevVal,t._showCallback)},_beforeHideOnChange:function(e){var t=this,n=t.get(T);n.detach(e.prevVal,t._hideCallback)},_beforeTriggerChange:function(e){var t=this,n=t.get(T),r=t.get(S),i=t.get(g);n.detach(r,t._showCallback),n.detach(i,t._hideCallback),n.detach(b,t._stopTriggerEventPropagation)},_cancelAutoHide:function(e){var t=this;t.get(c)&&t.clearIntervals(),e.stopPropagation()},_invokeHideTaskOnInteraction:function(e){var t=this,n=t.get(c),r=t.get(d);!r&&!n&&t._hideTask()},_onVisibleChangeOverlayContext:function(e){var t=this;e.newVal&&t.get("disabled")&&e.preventDefault()},_stopTriggerEventPropagation:function(e){e.stopPropagation()},_setHideDelay:function(t){var n=this;return n._hideTask=e.debounce(n.hide,t,n),t},_setHideOn:function(t){var n=this,r=n.get(T),i=t==n.get(S);if(i)n._hideCallback=e.bind(n._toggle,n),r.detach(t,n._showCallback);else{var s=n.get(m);n._hideCallback=function(e){n._hideTask(e),e.stopPropagation()}}return r.on(t,n._hideCallback),t},_setHideOnDocumentClick:function(t){var n=this;return t?e.OverlayContextManager.register(n):e.OverlayContextManager.remove(n),t},_setShowDelay:function(t){var n=this;return n._showTask=e.debounce(n.show,t,n),t},_setShowOn:function(t){var n=this,r=n.get(T),i=t==n.get(g);if(i)n._showCallback=e.bind(n._toggle,n),r.detach(t,n._hideCallback);else{var s=n.get(E);n._showCallback=function(e){n._showTask(e),e.stopPropagation()}}return t!=b?r.on(b,n._stopTriggerEventPropagation):r.detach(b,n._stopTriggerEventPropagation),r.on(t,n._showCallback),t}}});e.OverlayContext=k,e.OverlayContextManager=new e.OverlayManager({}),e.on(b,function(){e.OverlayContextManager.hideAll()},e.getDoc())},"3.1.0-deprecated.106",{requires:["aui-overlay-manager-deprecated","aui-delayed-task-deprecated","aui-aria"]}); YUI.add("aui-overlay-manager-deprecated",function(e,t){var n=e.Lang,r=n.isArray,i=n.isBoolean,s=n.isNumber,o=n.isString,u="boundingBox",a="default",f="host",l="OverlayManager",c="group",h="zIndex",p="zIndexBase",d=e.Component.create({NAME:l.toLowerCase(),ATTRS:{zIndexBase:{value:1e3,validator:s,setter:n.toInt}},EXTENDS:e.Base,prototype:{initializer:function(){var e=this;e._overlays=[]},bringToTop:function(e){var t=this,n=t._overlays.sort(t.sortByZIndexDesc),r=n[0];if(r!==e){var i=e.get(h),s=r.get(h);e.set(h,s+1),e.set("focused",!0)}},destructor:function(){var e=this;e._overlays=[]},register:function(t){var n=this,i=n._overlays;if(r(t))e.Array.each(t,function(e){n.register(e)});else{var s=n.get(p),o=n._registered(t);if(!o&&t&&(t instanceof e.Overlay||e.Component&&t instanceof e.Component)){var a=t.get(u);i.push(t);var f=t.get(h)||0,l=i.length+f+s;t.set(h,l),t.on("focusedChange",n._onFocusedChange,n),a.on("mousedown",n._onMouseDown,n)}}return i},remove:function(t){var n=this,r=n._overlays;return r.length?e.Array.removeItem(r,t):null},each:function(t){var n=this,r=n._overlays;e.Array.each(r,t)},showAll:function(){this.each(function(e){e.show()})},hideAll:function(){this.each(function(e){e.hide()})},sortByZIndexDesc:function(t,n){if(!t||!n||!t.hasImpl(e.WidgetStack)||!n.hasImpl(e.WidgetStack))return 0;var r=t.get(h),i=n.get(h);return r>i?-1:r_",o={"":1,module:1,"module-shim":1,"text/javascript":1,"text/parsed":1},u=e.Component.create({NAME:"ParseContent",NS:"ParseContent",ATTRS:{queue:{value:null},preserveScriptNodes:{validator:n.isBoolean,value:!1}},EXTENDS:e.Plugin.Base,prototype:{initializer:function(){var t=this;u.superclass.initializer.apply(this,arguments),t.set("queue",new e.AsyncQueue),t._bindAOP()},globalEval:function(t){typeof t=="string"&&(t={text:t,type:"text/javascript"});var r=e.getDoc(),s=r.one("head")||r.get("documentElement"),o=i.createElement("script");o.type=t.type,t.text&&(o.text=n.trim(t.text)),s.appendChild(o).remove()},parseContent:function(e){var t=this,n=t._extractScripts(e);return t._dispatch(n),n},_bindAOP:function(){var t=this,n=function(n){var r=Array.prototype.slice.call(arguments),i=t.parseContent(n);return r.splice(0,1,i.fragment),new e.Do.AlterArgs(null,r)};this.doBefore("insert",n),this.doBefore("replaceChild",n);var r=function(n){var r=t.parseContent(n);return new e.Do.AlterArgs(null,[r.fragment])};this.doBefore("replace",r),this.doBefore("setContent",r)},_extractScripts:function(t){var n=this,i=e.Node.create("
"),u={},a=n.get("preserveScriptNodes");return r(t)?(t=s+t,e.DOM.addHTML(i,t,"append")):(i.append(s),i.append(t)),u.js=i.all("script").filter(function(e){var t=o[e.getAttribute("type").toLowerCase()];return a&&e.setAttribute("type","text/parsed"),t}),a||u.js.each(function(e){e.remove()}),i.get("firstChild").remove(),u.fragment=i.get("childNodes").toFrag(),u},_dispatch:function(t){var n=this,r=n.get("queue");t.js.each(function(t){var i=t.get("src");if(i)r.add({autoContinue:!1,fn:function(){e.Get.script(i,{onEnd:function(e){e.purge(),r.run()}})},timeout:0});else{var s=t._node;r.add({args:{type:s.type,text:s.text||s.textContent||s.innerHTML||""},context:n,fn:n.globalEval,timeout:0})}}),r.run()}}});e.namespace("Plugin").ParseContent=u},"3.1.0-deprecated.106",{requires:["async-queue","plugin","io-base","aui-component","aui-node-base"]}); function ownKeys(e,t){var i=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),i.push.apply(i,n)}return i}function _objectSpread(e){for(var t=1;t{const t=e.Lang,i=[],n=e.config,s=n.doc,r={active:"activated"},a={},o={src:a},g="sessionToast",l=themeDisplay.getPathMain()+"/portal/",c=e.Component.create({ATTRS:{autoExtend:{value:!1},redirectOnExpire:{value:!0},redirectUrl:{value:""},sessionLength:{getter:"_getLengthInMillis",value:0},sessionState:{value:"active"},sessionTimeoutOffset:{getter:"_getLengthInMillis",value:0},timestamp:{getter:"_getTimestamp",setter:"_setTimestamp",value:0},warningLength:{getter:"_getLengthInMillis",setter:"_setWarningLength",value:0},warningTime:{getter:"_getWarningTime",value:0}},EXTENDS:e.Base,NAME:"liferaysession",prototype:{_afterSessionStateChange(e){const t=e.details,i=e.newVal;let n=null;"src"in e&&t.length&&(n=t[0]),this.fire(r[i]||i,n)},_defActivatedFn(e){const t=this;t.set("timestamp"),e.src===a&&Liferay.Util.fetch(l+"extend_session").then((e=>{500===e.status&&t.expire()}))},_defExpiredFn(t){const i=this;e.clearInterval(i._intervalId),t.src===a&&i._expireSession()},_expireSession(){const t=this;Liferay.Util.fetch(l+"expire_session").then((i=>{i.ok?(Liferay.fire("sessionExpired"),t.get("redirectOnExpire")&&(location.href=t.get("redirectUrl"))):e.setTimeout((()=>{t._expireSession()}),1e3)}))},_getLengthInMillis:e=>1e3*e,_getTimestamp(){return Liferay.Util.Cookie.get(this._cookieKey,Liferay.Util.Cookie.TYPES.NECESSARY)||this._initTimestamp},_getWarningTime(){return this.get("sessionLength")-this.get("warningLength")},_initEvents(){const i=this;i.publish("activated",{defaultFn:e.bind("_defActivatedFn",i)}),i.publish("expired",{defaultFn:e.bind("_defExpiredFn",i)}),i.publish("warned"),i._eventHandlers=[i.on("sessionStateChange",i._onSessionStateChange),i.after("sessionStateChange",i._afterSessionStateChange),e.on("io:complete",((e,n,s)=>{(!s||s&&s.sessionExtend||!t.isBoolean(s.sessionExtend))&&i.resetInterval()})),Liferay.once("screenLoad",(()=>{i.destroy()}))]},_onSessionStateChange(e){const t=this,i=e.newVal,n=e.prevVal;"expired"===n&&n!==i?e.preventDefault():"active"===n&&n===i&&t._afterSessionStateChange(e)},_setTimestamp(e){const t=this;e=String(e||Date.now()),t._initTimestamp=e,navigator.cookieEnabled&&Liferay.Util.Cookie.set(t._cookieKey,e,Liferay.Util.Cookie.TYPES.NECESSARY,t._cookieOptions)},_setWarningLength(e){return Math.min(this.get("sessionLength"),e)},_startTimer(){const t=this,i=t.get("sessionLength"),n=t.get("sessionTimeoutOffset"),s=t.get("warningTime");t._intervalId=e.setInterval((()=>{const e=t.get("sessionState"),r=t.get("timestamp");t._initTimestamp!==r&&(t.set("timestamp",r),"active"!==e&&t.set("sessionState","active",o));const a=1e3*Math.floor((Date.now()-r)/1e3),g=t.get("autoExtend"),l=a>=i,c=a>=i-n,d=a>=s;l&&"expired"!==e?t.expire():g&&c?t.extend():!g&&d&&"warned"!==e&&t.warn();const p=t._registered;for(const e in p)p[e](a,d,l)}),1e3)},_stopTimer(){e.clearInterval(this._intervalId)},destructor(){new e.EventHandle(this._eventHandlers).detach(),this._stopTimer()},expire(){this.set("sessionState","expired",o)},extend(){this.set("sessionState","active",o)},initializer(){const t=this;t._cookieKey="LFR_SESSION_STATE_"+themeDisplay.getRealUserId(),t._cookieOptions={path:"/",secure:e.UA.secure},t._registered={},t.set("timestamp"),t._initEvents(),t._startTimer(),Liferay.fire("sessionInitialized",{session:t})},registerInterval(i){let n;const s=this._registered;return t.isFunction(i)&&(n=e.stamp(i),s[n]=i),n},resetInterval(){this._stopTimer(),this._startTimer()},unregisterInterval(e){const t=this._registered;return Object.prototype.hasOwnProperty.call(t,e)&&delete t[e],e},warn(){this.set("sessionState","warned",o)}}});c.SRC=a;const d=e.Component.create({ATTRS:{openToast:{validator:t.isFunction},pageTitle:{value:s.title}},EXTENDS:e.Plugin.Base,NAME:"liferaysessiondisplay",NS:"display",prototype:{_afterDefActivatedFn(){this._uiSetActivated()},_afterDefExpiredFn(){const e=this;e._host.unregisterInterval(e._intervalId),e._uiSetExpired()},_beforeHostWarned(){const e=this,i=e._host,n=i.get("sessionLength"),s=i.get("timestamp"),r=i.get("warningLength");let a=n;t.toInt(s)&&(a=1e3*Math.floor((Date.now()-s)/1e3));let o=n-a;o>r&&(o=r),e._getBanner();const l=document.querySelector("#".concat(g," .countdown-timer"));e._uiSetRemainingTime(o,l),e._intervalId=i.registerInterval(((t,i,s)=>{i?s||e._uiSetRemainingTime(n-t,l):e._uiSetActivated()}))},_destroyBanner(){const e=document.getElementById(g),t=null==e?void 0:e.parentElement;Liferay.destroyComponent(g),t&&t.remove(),this._banner=!1},_formatNumber:e=>t.String.padNumber(Math.floor(e),2),_formatTime(e){const n=this;return e=Number(e),t.isNumber(e)&&e>0?(e/=1e3,i[0]=n._formatNumber(e/3600),e%=3600,i[1]=n._formatNumber(e/60),e%=60,i[2]=n._formatNumber(e),e=i.join(":")):e=0,e},_getBanner(){const e=this;let t=e._banner;if(!t){const i=e.get("openToast"),n={onClick({event:t}){t.target.classList.contains("alert-link")&&e._host.extend()},renderData:{componentId:g},toastProps:{autoClose:!1,id:g,role:"alert"}};i(_objectSpread({message:e._warningText,type:"warning"},n));t=_objectSpread({open(t){e._destroyBanner(),i(_objectSpread(_objectSpread({},t),n))}},Liferay.component(g)),e._banner=t}return t},_onHostSessionStateChange(e){const t=this;"warned"===e.newVal&&t._beforeHostWarned(e)},_uiSetActivated(){const e=this;s.title=e.reset("pageTitle").get("pageTitle"),e._host.unregisterInterval(e._intervalId),e._banner&&e._destroyBanner()},_uiSetExpired(){const e=this;e._getBanner().open({message:e._expiredText,title:'Danger',type:"danger"}),s.title=e.get("pageTitle")},_uiSetRemainingTime(e,i){const n=this;if(e=n._formatTime(e),!n._alertClosed){const t=i.closest('div[role="alert"]');t&&(t.removeAttribute("role"),n._alert=t),i.innerHTML=e}s.title=t.sub('La\x20session\x20expire\x20dans\x20\x7b0\x7d\x2e',[e])+" | "+n.get("pageTitle")},destructor(){const e=this;e._banner&&e._destroyBanner()},initializer(){const e=this,i=e.get("host");Liferay.Util.getTop()===n.win?(e._host=i,e._toggleText={hide:'Cacher',show:'Afficher'},e._expiredText='Votre\x20session\x20a\x20expiré\x20pour\x20cause\x20d\x27inactivité\x2e\x20Veuillez\x20enregistrer\x20toute\x20donnée\x20que\x20vous\x20pourriez\x20avoir\x20saisie\x20avant\x20d\x27actualiser\x20la\x20page\x2e',e._warningText='Votre\x20session\x20expirera\x20dans\x20\x7b0\x7d\x20pour\x20cause\x20d\x27inactivité\x2e\x20Pour\x20ajouter\x20\x7b1\x7d\x20minute\x28s\x29\x20à\x20la\x20durée\x20de\x20votre\x20session\x2c\x20veuillez\x20appuyer\x20sur\x20le\x20bouton\x20\x3cem\x3eÉtendre\x3c\x2fem\x3e\x2e\x20\x7b2\x7d',e._warningText=t.sub(e._warningText,['{0}',i.get("sessionLength")/6e4,''+'Etendre'+""]),i.on("sessionStateChange",e._onHostSessionStateChange,e),e.afterHostMethod("_defActivatedFn",e._afterDefActivatedFn),e.afterHostMethod("_defExpiredFn",e._afterDefExpiredFn)):i.unplug(e)}}});Liferay.SessionBase=c,Liferay.SessionDisplay=d}),"",{requires:["aui-base","aui-component","aui-timer","cookie","plugin"]}); (function(A){const Util=Liferay.Util,Lang=A.Lang,htmlEscapedValues=[],htmlUnescapedValues=[],MAP_HTML_CHARS_ESCAPED={'"':""","&":"&","'":"'","/":"/","<":"<",">":">","`":"`"},MAP_HTML_CHARS_UNESCAPED={};A.Object.each(MAP_HTML_CHARS_ESCAPED,((e,t)=>{MAP_HTML_CHARS_UNESCAPED[e]=t,htmlEscapedValues.push(e),htmlUnescapedValues.push(t)}));const REGEX_DASH=/-([a-z])/gi,STR_RIGHT_SQUARE_BRACKET="]";Util.actsAsAspect=function(object){object.yield=null,object.rv={},object.before=function(method,f){const original=eval("this."+method);this[method]=function(){return f.apply(this,arguments),original.apply(this,arguments)}},object.after=function(method,f){const original=eval("this."+method);this[method]=function(){return this.rv[method]=original.apply(this,arguments),f.apply(this,arguments)}},object.around=function(method,f){const original=eval("this."+method);this[method]=function(){return this.yield=original,f.apply(this,arguments)}}},Util.addInputFocus=function(){A.use("aui-base",(e=>{const t=function handleFocus(e){const t=e.target;let n=t.get("tagName");n&&(n=n.toLowerCase());const a=t.get("type");if("input"===n&&/text|password/.test(a)||"textarea"===n){let n="addClass";/blur|focusout/.test(e.type)&&(n="removeClass"),t[n]("focus")}};e.on("focus",t,document),e.on("blur",t,document)})),Util.addInputFocus=function(){}},Util.addInputType=function(e){return Util.addInputType=Lang.emptyFn,Util.addInputType(e)},Util.camelize=function(e,t){let n=REGEX_DASH;return t&&(n=new RegExp(t+"([a-z])","gi")),e=e.replace(n,((e,t)=>t.toUpperCase()))},Util.clamp=function(e,t,n){return Math.min(Math.max(e,t),n)},Util.isEditorPresent=function(e){return Liferay.EDITORS&&Liferay.EDITORS[e]},Util.randomMinMax=function(e,t){return Math.round(Math.random()*(t-e))+e},Util.selectAndCopy=function(e){if(e.focus(),e.select(),document.all){e.createTextRange().execCommand("copy")}},Util.setBox=function(e,t){for(let t=e.length-1;t>-1;t--)e.options[t]=null;for(let n=0;n{t.focus(),t.setSelectionRange(e,e)}),0)}else document.selection.createRange().text="\t";return t.scrollTop=n,!1}},Util.uncamelize=function(e,t){return t=t||" ",e=(e=e.replace(/([a-zA-Z][a-zA-Z])([A-Z])([a-z])/g,"$1"+t+"$2$3")).replace(/([a-z])([A-Z])/g,"$1"+t+"$2")},Liferay.provide(Util,"check",((e,t,n)=>{const a=A.one(e[t]);a&&a.attr("checked",n)}),["aui-base"]),Liferay.provide(Util,"disableSelectBoxes",((e,t,n)=>{const a=A.one("#"+n),i=A.one("#"+e);if(a&&i){const e=Lang.isFunction(t),n=function disabled(){const n=a.val();let o=t===n;e&&(o=t(n,t)),i.attr("disabled",!o)};n(),a.on("change",n)}}),["aui-base"]),Liferay.provide(Util,"disableTextareaTabs",(e=>{(e=A.one(e))&&"enabled"!==e.attr("textareatabs")&&(e.attr("textareatabs","disabled"),e.detach("keydown",Util.textareaTabs))}),["aui-base"]),Liferay.provide(Util,"enableTextareaTabs",(e=>{(e=A.one(e))&&"enabled"!==e.attr("textareatabs")&&(e.attr("textareatabs","disabled"),e.on("keydown",Util.textareaTabs))}),["aui-base"]),Liferay.provide(Util,"removeItem",((e,t)=>{const n=(e=A.one(e)).get("selectedIndex");t?e.all("option[value="+t+STR_RIGHT_SQUARE_BRACKET).item(n).remove(!0):e.all("option").item(n).remove(!0)}),["aui-base"]),Liferay.provide(Util,"resizeTextarea",((e,t)=>{let n=A.one("#"+e);if(n||(n=A.one("textarea[name="+e+STR_RIGHT_SQUARE_BRACKET)),n){const a=A.getBody();let i;const o=function resize(o){const s=a.get("winHeight");if(t)try{"iframe"!==n.get("nodeName").toLowerCase()&&(n=window[e])}catch(e){}if(!i){const e=a.one(".button-holder"),t=a.one(".lfr-template-editor");if(e&&t){const n=t.getXY();i=e.outerHeight(!0)+n[1]+25}else i=170}n=A.one(n);const l={width:"98%"};o&&(l.height=s-i),!t||n&&A.DOM.inDoc(n)?n&&n.setStyles(l):A.on("available",(()=>{n=A.one(window[e]),n&&n.setStyles(l)}),"#"+e+"_cp")};o();const s=Liferay.Util.getWindow();if(s){const e=s.iframe.after("resizeiframe:heightChange",o);A.getWin().on("unload",e.detach,e)}}}),["aui-base"]),Liferay.provide(Util,"setSelectedValue",((e,t)=>{const n=A.one(e).one("option[value="+t+STR_RIGHT_SQUARE_BRACKET);n&&n.attr("selected",!0)}),["aui-base"]),Liferay.provide(Util,"switchEditor",(e=>{const t=e.uri,n=Liferay.Util.getWindowName(),a=Liferay.Util.getWindow(n);a&&a.iframe.set("uri",t)}),["aui-io"])})(AUI()); /*! For license information please see liferay.js.LICENSE.txt */ (()=>{var i={59:(i,B,k)=>{Object.defineProperty(B,"__esModule",{value:!0}),B.FromParameters=function(i){return new c({authorizeURL:i.authorizeURL||Liferay.OAuth2.getAuthorizeURL(),clientId:i.clientId,encodedRedirectURL:encodeURIComponent(i.redirectURIs&&i.redirectURIs[0]||Liferay.OAuth2.getBuiltInRedirectURL()),homePageURL:i.homePageURL,redirectURIs:i.redirectURIs||[Liferay.OAuth2.getBuiltInRedirectURL()],tokenURL:i.tokenURL||Liferay.OAuth2.getTokenURL()})},B.FromUserAgentApplication=function(i){const B=Liferay.OAuth2.getUserAgentApplication(i);if(!B)throw new Error("No Application User Agent profile found for ".concat(i));return new c({authorizeURL:Liferay.OAuth2.getAuthorizeURL(),clientId:B.clientId,encodedRedirectURL:encodeURIComponent(B.redirectURIs[0]),homePageURL:B.homePageURL,redirectURIs:B.redirectURIs,tokenURL:Liferay.OAuth2.getTokenURL()})};var m,S=(m=k(123))&&m.__esModule?m:{default:m};function o(i,B){var k=Object.keys(i);if(Object.getOwnPropertySymbols){var m=Object.getOwnPropertySymbols(i);B&&(m=m.filter((function(B){return Object.getOwnPropertyDescriptor(i,B).enumerable}))),k.push.apply(k,m)}return k}function s(i){for(var B=1;B{if(i.ok){const B=i.headers.get("content-type");return B&&-1!==B.indexOf("application/json")?i.json():Promise.resolve(i)}return Promise.reject(i)}))}_createIframe(i,B){const k=this,m=document.createElement("iframe");return m.src="".concat(k.authorizeURL,"?client_id=").concat(k.clientId,"&code_challenge=").concat(i.code_challenge,"&code_challenge_method=S256&redirect_uri=").concat(k.encodedRedirectURL,"&response_type=code&prompt=none"),m.style.display="none",document.body.appendChild(m),new Promise(((S,x)=>{m.contentWindow&&m.contentWindow.addEventListener("message",(b=>{try{if(b.data.error)return void x(b.data.error);if(null===b.data.code)return void x();const A=k._requestToken(i.code_verifier,b.data.code);S(A),A.then((i=>Liferay.Util.SessionStorage.setItem(B,JSON.stringify(i),Liferay.Util.SessionStorage.TYPES.NECESSARY)))}finally{var R;null===(R=m.parentElement)||void 0===R||R.removeChild(m)}}))}))}async _fetch(i,B={}){const k=this;let m=i instanceof Request?i.url:i.toString();if(m.includes("//")&&!m.startsWith(k.homePageURL))throw new Error("This client only supports calls to ".concat(k.homePageURL));m.startsWith(k.homePageURL)||(m.startsWith("/")&&(m=m.substring(1)),m="".concat(k.homePageURL,"/").concat(m));const S=await k._getOrRequestToken();return i=i instanceof Request?s(s({},i),{},{url:m}):m,await fetch(i,s({headers:{Authorization:"Bearer ".concat(S.access_token)}},B))}_getOrRequestToken(){const i=this,B="".concat(i.clientId,"-").concat(Liferay.authToken,"-token");return new Promise((k=>{const m=Liferay.Util.SessionStorage.getItem(B,Liferay.Util.SessionStorage.TYPES.NECESSARY);k(null==m?i._requestTokenSilently(B):JSON.parse(m))}))}_requestTokenSilently(i){const B=(0,S.default)(128);return this._createIframe(B,i)}async _requestToken(i,B){const k=this,m=await fetch(k.tokenURL,{body:new URLSearchParams({client_id:k.clientId,code:B,code_verifier:i,grant_type:"authorization_code",redirect_uri:k.redirectURIs[0]}),cache:"no-cache",headers:{"Content-Type":"application/x-www-form-urlencoded"},method:"POST",mode:"cors"});return m.ok?m.json():await Promise.reject(m)}}},274:function(i,B,k){var m;i.exports=(m=k(724),k(676),k(650),k(504),k(255),function(){var i=m,B=i.lib.BlockCipher,k=i.algo,S=[],x=[],b=[],R=[],A=[],z=[],H=[],C=[],U=[],P=[];!function(){for(var i=[],B=0;B<256;B++)i[B]=B<128?B<<1:B<<1^283;var k=0,m=0;for(B=0;B<256;B++){var L=m^m<<1^m<<2^m<<3^m<<4;L=L>>>8^255&L^99,S[k]=L,x[L]=k;var E=i[k],O=i[E],D=i[O],M=257*i[L]^16843008*L;b[k]=M<<24|M>>>8,R[k]=M<<16|M>>>16,A[k]=M<<8|M>>>24,z[k]=M,M=16843009*D^65537*O^257*E^16843008*k,H[L]=M<<24|M>>>8,C[L]=M<<16|M>>>16,U[L]=M<<8|M>>>24,P[L]=M,k?(k=E^i[i[i[D^E]]],m^=i[i[m]]):k=m=1}}();var L=[0,1,2,4,8,16,32,64,128,27,54],E=k.AES=B.extend({_doReset:function(){if(!this._nRounds||this._keyPriorReset!==this._key){for(var i=this._keyPriorReset=this._key,B=i.words,k=i.sigBytes/4,m=4*((this._nRounds=k+6)+1),x=this._keySchedule=[],b=0;b6&&b%k==4&&(z=S[z>>>24]<<24|S[z>>>16&255]<<16|S[z>>>8&255]<<8|S[255&z]):(z=S[(z=z<<8|z>>>24)>>>24]<<24|S[z>>>16&255]<<16|S[z>>>8&255]<<8|S[255&z],z^=L[b/k|0]<<24),x[b]=x[b-k]^z);for(var R=this._invKeySchedule=[],A=0;A>>24]]^C[S[z>>>16&255]]^U[S[z>>>8&255]]^P[S[255&z]]}}},encryptBlock:function(i,B){this._doCryptBlock(i,B,this._keySchedule,b,R,A,z,S)},decryptBlock:function(i,B){var k=i[B+1];i[B+1]=i[B+3],i[B+3]=k,this._doCryptBlock(i,B,this._invKeySchedule,H,C,U,P,x),k=i[B+1],i[B+1]=i[B+3],i[B+3]=k},_doCryptBlock:function(i,B,k,m,S,x,b,R){for(var A=this._nRounds,z=i[B]^k[0],H=i[B+1]^k[1],C=i[B+2]^k[2],U=i[B+3]^k[3],P=4,L=1;L>>24]^S[H>>>16&255]^x[C>>>8&255]^b[255&U]^k[P++],O=m[H>>>24]^S[C>>>16&255]^x[U>>>8&255]^b[255&z]^k[P++],D=m[C>>>24]^S[U>>>16&255]^x[z>>>8&255]^b[255&H]^k[P++],M=m[U>>>24]^S[z>>>16&255]^x[H>>>8&255]^b[255&C]^k[P++];z=E,H=O,C=D,U=M}E=(R[z>>>24]<<24|R[H>>>16&255]<<16|R[C>>>8&255]<<8|R[255&U])^k[P++],O=(R[H>>>24]<<24|R[C>>>16&255]<<16|R[U>>>8&255]<<8|R[255&z])^k[P++],D=(R[C>>>24]<<24|R[U>>>16&255]<<16|R[z>>>8&255]<<8|R[255&H])^k[P++],M=(R[U>>>24]<<24|R[z>>>16&255]<<16|R[H>>>8&255]<<8|R[255&C])^k[P++],i[B]=E,i[B+1]=O,i[B+2]=D,i[B+3]=M},keySize:8});i.AES=B._createHelper(E)}(),m.AES)},255:function(i,B,k){var m,S,x,b,R,A,z,H,C,U,P,L,E,O,D,M,I,F,j;i.exports=(m=k(724),k(504),void(m.lib.Cipher||(S=m,x=S.lib,b=x.Base,R=x.WordArray,A=x.BufferedBlockAlgorithm,z=S.enc,z.Utf8,H=z.Base64,C=S.algo.EvpKDF,U=x.Cipher=A.extend({cfg:b.extend(),createEncryptor:function(i,B){return this.create(this._ENC_XFORM_MODE,i,B)},createDecryptor:function(i,B){return this.create(this._DEC_XFORM_MODE,i,B)},init:function(i,B,k){this.cfg=this.cfg.extend(k),this._xformMode=i,this._key=B,this.reset()},reset:function(){A.reset.call(this),this._doReset()},process:function(i){return this._append(i),this._process()},finalize:function(i){return i&&this._append(i),this._doFinalize()},keySize:4,ivSize:4,_ENC_XFORM_MODE:1,_DEC_XFORM_MODE:2,_createHelper:function(){function e(i){return"string"==typeof i?j:I}return function(i){return{encrypt:function(B,k,m){return e(k).encrypt(i,B,k,m)},decrypt:function(B,k,m){return e(k).decrypt(i,B,k,m)}}}}()}),x.StreamCipher=U.extend({_doFinalize:function(){return this._process(!0)},blockSize:1}),P=S.mode={},L=x.BlockCipherMode=b.extend({createEncryptor:function(i,B){return this.Encryptor.create(i,B)},createDecryptor:function(i,B){return this.Decryptor.create(i,B)},init:function(i,B){this._cipher=i,this._iv=B}}),E=P.CBC=function(){var i=L.extend();function t(i,B,k){var m,S=this._iv;S?(m=S,this._iv=void 0):m=this._prevBlock;for(var x=0;x>>2];i.sigBytes-=B}},x.BlockCipher=U.extend({cfg:U.cfg.extend({mode:E,padding:O}),reset:function(){var i;U.reset.call(this);var B=this.cfg,k=B.iv,m=B.mode;this._xformMode==this._ENC_XFORM_MODE?i=m.createEncryptor:(i=m.createDecryptor,this._minBufferSize=1),this._mode&&this._mode.__creator==i?this._mode.init(this,k&&k.words):(this._mode=i.call(m,this,k&&k.words),this._mode.__creator=i)},_doProcessBlock:function(i,B){this._mode.processBlock(i,B)},_doFinalize:function(){var i,B=this.cfg.padding;return this._xformMode==this._ENC_XFORM_MODE?(B.pad(this._data,this.blockSize),i=this._process(!0)):(i=this._process(!0),B.unpad(i)),i},blockSize:4}),D=x.CipherParams=b.extend({init:function(i){this.mixIn(i)},toString:function(i){return(i||this.formatter).stringify(this)}}),M=(S.format={}).OpenSSL={stringify:function(i){var B=i.ciphertext,k=i.salt;return(k?R.create([1398893684,1701076831]).concat(k).concat(B):B).toString(H)},parse:function(i){var B,k=H.parse(i),m=k.words;return 1398893684==m[0]&&1701076831==m[1]&&(B=R.create(m.slice(2,4)),m.splice(0,4),k.sigBytes-=16),D.create({ciphertext:k,salt:B})}},I=x.SerializableCipher=b.extend({cfg:b.extend({format:M}),encrypt:function(i,B,k,m){m=this.cfg.extend(m);var S=i.createEncryptor(k,m),x=S.finalize(B),b=S.cfg;return D.create({ciphertext:x,key:k,iv:b.iv,algorithm:i,mode:b.mode,padding:b.padding,blockSize:i.blockSize,formatter:m.format})},decrypt:function(i,B,k,m){return m=this.cfg.extend(m),B=this._parse(B,m.format),i.createDecryptor(k,m).finalize(B.ciphertext)},_parse:function(i,B){return"string"==typeof i?B.parse(i,this):i}}),F=(S.kdf={}).OpenSSL={execute:function(i,B,k,m){m||(m=R.random(8));var S=C.create({keySize:B+k}).compute(i,m),x=R.create(S.words.slice(B),4*k);return S.sigBytes=4*B,D.create({key:S,iv:x,salt:m})}},j=x.PasswordBasedCipher=I.extend({cfg:I.cfg.extend({kdf:F}),encrypt:function(i,B,k,m){var S=(m=this.cfg.extend(m)).kdf.execute(k,i.keySize,i.ivSize);m.iv=S.iv;var x=I.encrypt.call(this,i,B,S.key,m);return x.mixIn(S),x},decrypt:function(i,B,k,m){m=this.cfg.extend(m),B=this._parse(B,m.format);var S=m.kdf.execute(k,i.keySize,i.ivSize,B.salt);return m.iv=S.iv,I.decrypt.call(this,i,B,S.key,m)}}))))},724:function(i,B,k){var m;i.exports=m=m||function(i,B){var m;if("undefined"!=typeof window&&window.crypto&&(m=window.crypto),"undefined"!=typeof self&&self.crypto&&(m=self.crypto),"undefined"!=typeof globalThis&&globalThis.crypto&&(m=globalThis.crypto),!m&&"undefined"!=typeof window&&window.msCrypto&&(m=window.msCrypto),!m&&void 0!==k.g&&k.g.crypto&&(m=k.g.crypto),!m)try{m=k(56)}catch(i){}var n=function(){if(m){if("function"==typeof m.getRandomValues)try{return m.getRandomValues(new Uint32Array(1))[0]}catch(i){}if("function"==typeof m.randomBytes)try{return m.randomBytes(4).readInt32LE()}catch(i){}}throw new Error("Native crypto module could not be used to get secure random number.")},S=Object.create||function(){function e(){}return function(i){var B;return e.prototype=i,B=new e,e.prototype=null,B}}(),x={},b=x.lib={},R=b.Base={extend:function(i){var B=S(this);return i&&B.mixIn(i),B.hasOwnProperty("init")&&this.init!==B.init||(B.init=function(){B.$super.init.apply(this,arguments)}),B.init.prototype=B,B.$super=this,B},create:function(){var i=this.extend();return i.init.apply(i,arguments),i},init:function(){},mixIn:function(i){for(var B in i)i.hasOwnProperty(B)&&(this[B]=i[B]);i.hasOwnProperty("toString")&&(this.toString=i.toString)},clone:function(){return this.init.prototype.extend(this)}},A=b.WordArray=R.extend({init:function(i,B){i=this.words=i||[],this.sigBytes=null!=B?B:4*i.length},toString:function(i){return(i||H).stringify(this)},concat:function(i){var B=this.words,k=i.words,m=this.sigBytes,S=i.sigBytes;if(this.clamp(),m%4)for(var x=0;x>>2]>>>24-x%4*8&255;B[m+x>>>2]|=b<<24-(m+x)%4*8}else for(var R=0;R>>2]=k[R>>>2];return this.sigBytes+=S,this},clamp:function(){var B=this.words,k=this.sigBytes;B[k>>>2]&=4294967295<<32-k%4*8,B.length=i.ceil(k/4)},clone:function(){var i=R.clone.call(this);return i.words=this.words.slice(0),i},random:function(i){for(var B=[],k=0;k>>2]>>>24-S%4*8&255;m.push((x>>>4).toString(16)),m.push((15&x).toString(16))}return m.join("")},parse:function(i){for(var B=i.length,k=[],m=0;m>>3]|=parseInt(i.substr(m,2),16)<<24-m%8*4;return new A.init(k,B/2)}},C=z.Latin1={stringify:function(i){for(var B=i.words,k=i.sigBytes,m=[],S=0;S>>2]>>>24-S%4*8&255;m.push(String.fromCharCode(x))}return m.join("")},parse:function(i){for(var B=i.length,k=[],m=0;m>>2]|=(255&i.charCodeAt(m))<<24-m%4*8;return new A.init(k,B)}},U=z.Utf8={stringify:function(i){try{return decodeURIComponent(escape(C.stringify(i)))}catch(i){throw new Error("Malformed UTF-8 data")}},parse:function(i){return C.parse(unescape(encodeURIComponent(i)))}},P=b.BufferedBlockAlgorithm=R.extend({reset:function(){this._data=new A.init,this._nDataBytes=0},_append:function(i){"string"==typeof i&&(i=U.parse(i)),this._data.concat(i),this._nDataBytes+=i.sigBytes},_process:function(B){var k,m=this._data,S=m.words,x=m.sigBytes,b=this.blockSize,R=x/(4*b),z=(R=B?i.ceil(R):i.max((0|R)-this._minBufferSize,0))*b,H=i.min(4*z,x);if(z){for(var C=0;C>>2]>>>24-x%4*8&255)<<16|(B[x+1>>>2]>>>24-(x+1)%4*8&255)<<8|B[x+2>>>2]>>>24-(x+2)%4*8&255,R=0;R<4&&x+.75*R>>6*(3-R)&63));var A=m.charAt(64);if(A)for(;S.length%4;)S.push(A);return S.join("")},parse:function(i){var B=i.length,k=this._map,m=this._reverseMap;if(!m){m=this._reverseMap=[];for(var S=0;S>>6-b%4*2;m[S>>>2]|=R<<24-S%4*8,S++}return x.create(m,S)}(i,B,m)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="},m.enc.Base64)},875:function(i,B,k){var m,S,x;i.exports=(m=k(724),x=(S=m).lib.WordArray,S.enc.Base64url={stringify:function(i,B=!0){var k=i.words,m=i.sigBytes,S=B?this._safe_map:this._map;i.clamp();for(var x=[],b=0;b>>2]>>>24-b%4*8&255)<<16|(k[b+1>>>2]>>>24-(b+1)%4*8&255)<<8|k[b+2>>>2]>>>24-(b+2)%4*8&255,A=0;A<4&&b+.75*A>>6*(3-A)&63));var z=S.charAt(64);if(z)for(;x.length%4;)x.push(z);return x.join("")},parse:function(i,B=!0){var k=i.length,m=B?this._safe_map:this._map,S=this._reverseMap;if(!S){S=this._reverseMap=[];for(var b=0;b>>6-b%4*2;m[S>>>2]|=R<<24-S%4*8,S++}return x.create(m,S)}(i,k,S)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",_safe_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_"},m.enc.Base64url)},491:function(i,B,k){var m;i.exports=(m=k(724),function(){var i=m,B=i.lib.WordArray,k=i.enc;function n(i){return i<<8&4278255360|i>>>8&16711935}k.Utf16=k.Utf16BE={stringify:function(i){for(var B=i.words,k=i.sigBytes,m=[],S=0;S>>2]>>>16-S%4*8&65535;m.push(String.fromCharCode(x))}return m.join("")},parse:function(i){for(var k=i.length,m=[],S=0;S>>1]|=i.charCodeAt(S)<<16-S%2*16;return B.create(m,2*k)}},k.Utf16LE={stringify:function(i){for(var B=i.words,k=i.sigBytes,m=[],S=0;S>>2]>>>16-S%4*8&65535);m.push(String.fromCharCode(x))}return m.join("")},parse:function(i){for(var k=i.length,m=[],S=0;S>>1]|=n(i.charCodeAt(S)<<16-S%2*16);return B.create(m,2*k)}}}(),m.enc.Utf16)},504:function(i,B,k){var m,S,x,b,R,A,z,H;i.exports=(H=k(724),k(821),k(106),x=(S=(m=H).lib).Base,b=S.WordArray,A=(R=m.algo).MD5,z=R.EvpKDF=x.extend({cfg:x.extend({keySize:4,hasher:A,iterations:1}),init:function(i){this.cfg=this.cfg.extend(i)},compute:function(i,B){for(var k,m=this.cfg,S=m.hasher.create(),x=b.create(),R=x.words,A=m.keySize,z=m.iterations;R.lengthm&&(B=i.finalize(B)),B.clamp();for(var S=this._oKey=B.clone(),b=this._iKey=B.clone(),R=S.words,A=b.words,z=0;z>>2]|=i[S]<<24-S%4*8;B.call(this,m,k)}else B.apply(this,arguments)}).prototype=i}}(),m.lib.WordArray)},650:function(i,B,k){var m;i.exports=(m=k(724),function(i){var B=m,k=B.lib,S=k.WordArray,x=k.Hasher,b=B.algo,R=[];!function(){for(var B=0;B<64;B++)R[B]=4294967296*i.abs(i.sin(B+1))|0}();var A=b.MD5=x.extend({_doReset:function(){this._hash=new S.init([1732584193,4023233417,2562383102,271733878])},_doProcessBlock:function(i,B){for(var k=0;k<16;k++){var m=B+k,S=i[m];i[m]=16711935&(S<<8|S>>>24)|4278255360&(S<<24|S>>>8)}var x=this._hash.words,b=i[B+0],A=i[B+1],z=i[B+2],H=i[B+3],C=i[B+4],U=i[B+5],P=i[B+6],L=i[B+7],E=i[B+8],O=i[B+9],D=i[B+10],M=i[B+11],I=i[B+12],F=i[B+13],j=i[B+14],W=i[B+15],T=x[0],K=x[1],X=x[2],N=x[3];T=h(T,K,X,N,b,7,R[0]),N=h(N,T,K,X,A,12,R[1]),X=h(X,N,T,K,z,17,R[2]),K=h(K,X,N,T,H,22,R[3]),T=h(T,K,X,N,C,7,R[4]),N=h(N,T,K,X,U,12,R[5]),X=h(X,N,T,K,P,17,R[6]),K=h(K,X,N,T,L,22,R[7]),T=h(T,K,X,N,E,7,R[8]),N=h(N,T,K,X,O,12,R[9]),X=h(X,N,T,K,D,17,R[10]),K=h(K,X,N,T,M,22,R[11]),T=h(T,K,X,N,I,7,R[12]),N=h(N,T,K,X,F,12,R[13]),X=h(X,N,T,K,j,17,R[14]),T=l(T,K=h(K,X,N,T,W,22,R[15]),X,N,A,5,R[16]),N=l(N,T,K,X,P,9,R[17]),X=l(X,N,T,K,M,14,R[18]),K=l(K,X,N,T,b,20,R[19]),T=l(T,K,X,N,U,5,R[20]),N=l(N,T,K,X,D,9,R[21]),X=l(X,N,T,K,W,14,R[22]),K=l(K,X,N,T,C,20,R[23]),T=l(T,K,X,N,O,5,R[24]),N=l(N,T,K,X,j,9,R[25]),X=l(X,N,T,K,H,14,R[26]),K=l(K,X,N,T,E,20,R[27]),T=l(T,K,X,N,F,5,R[28]),N=l(N,T,K,X,z,9,R[29]),X=l(X,N,T,K,L,14,R[30]),T=f(T,K=l(K,X,N,T,I,20,R[31]),X,N,U,4,R[32]),N=f(N,T,K,X,E,11,R[33]),X=f(X,N,T,K,M,16,R[34]),K=f(K,X,N,T,j,23,R[35]),T=f(T,K,X,N,A,4,R[36]),N=f(N,T,K,X,C,11,R[37]),X=f(X,N,T,K,L,16,R[38]),K=f(K,X,N,T,D,23,R[39]),T=f(T,K,X,N,F,4,R[40]),N=f(N,T,K,X,b,11,R[41]),X=f(X,N,T,K,H,16,R[42]),K=f(K,X,N,T,P,23,R[43]),T=f(T,K,X,N,O,4,R[44]),N=f(N,T,K,X,I,11,R[45]),X=f(X,N,T,K,W,16,R[46]),T=u(T,K=f(K,X,N,T,z,23,R[47]),X,N,b,6,R[48]),N=u(N,T,K,X,L,10,R[49]),X=u(X,N,T,K,j,15,R[50]),K=u(K,X,N,T,U,21,R[51]),T=u(T,K,X,N,I,6,R[52]),N=u(N,T,K,X,H,10,R[53]),X=u(X,N,T,K,D,15,R[54]),K=u(K,X,N,T,A,21,R[55]),T=u(T,K,X,N,E,6,R[56]),N=u(N,T,K,X,W,10,R[57]),X=u(X,N,T,K,P,15,R[58]),K=u(K,X,N,T,F,21,R[59]),T=u(T,K,X,N,C,6,R[60]),N=u(N,T,K,X,M,10,R[61]),X=u(X,N,T,K,z,15,R[62]),K=u(K,X,N,T,O,21,R[63]),x[0]=x[0]+T|0,x[1]=x[1]+K|0,x[2]=x[2]+X|0,x[3]=x[3]+N|0},_doFinalize:function(){var B=this._data,k=B.words,m=8*this._nDataBytes,S=8*B.sigBytes;k[S>>>5]|=128<<24-S%32;var x=i.floor(m/4294967296),b=m;k[15+(S+64>>>9<<4)]=16711935&(x<<8|x>>>24)|4278255360&(x<<24|x>>>8),k[14+(S+64>>>9<<4)]=16711935&(b<<8|b>>>24)|4278255360&(b<<24|b>>>8),B.sigBytes=4*(k.length+1),this._process();for(var R=this._hash,A=R.words,z=0;z<4;z++){var H=A[z];A[z]=16711935&(H<<8|H>>>24)|4278255360&(H<<24|H>>>8)}return R},clone:function(){var i=x.clone.call(this);return i._hash=this._hash.clone(),i}});function h(i,B,k,m,S,x,b){var R=i+(B&k|~B&m)+S+b;return(R<>>32-x)+B}function l(i,B,k,m,S,x,b){var R=i+(B&m|k&~m)+S+b;return(R<>>32-x)+B}function f(i,B,k,m,S,x,b){var R=i+(B^k^m)+S+b;return(R<>>32-x)+B}function u(i,B,k,m,S,x,b){var R=i+(k^(B|~m))+S+b;return(R<>>32-x)+B}B.MD5=x._createHelper(A),B.HmacMD5=x._createHmacHelper(A)}(Math),m.MD5)},187:function(i,B,k){var m;i.exports=(m=k(724),k(255),m.mode.CFB=function(){var i=m.lib.BlockCipherMode.extend();function t(i,B,k,m){var S,x=this._iv;x?(S=x.slice(0),this._iv=void 0):S=this._prevBlock,m.encryptBlock(S,0);for(var b=0;b>24&255)){var B=i>>16&255,k=i>>8&255,m=255&i;255===B?(B=0,255===k?(k=0,255===m?m=0:++m):++k):++B,i=0,i+=B<<16,i+=k<<8,i+=m}else i+=1<<24;return i}var B=i.Encryptor=i.extend({processBlock:function(i,B){var k=this._cipher,m=k.blockSize,S=this._iv,x=this._counter;S&&(x=this._counter=S.slice(0),this._iv=void 0),function(i){0===(i[0]=t(i[0]))&&(i[1]=t(i[1]))}(x);var b=x.slice(0);k.encryptBlock(b,0);for(var R=0;R>>2]|=S<<24-x%4*8,i.sigBytes+=S},unpad:function(i){var B=255&i.words[i.sigBytes-1>>>2];i.sigBytes-=B}},m.pad.Ansix923)},859:function(i,B,k){var m;i.exports=(m=k(724),k(255),m.pad.Iso10126={pad:function(i,B){var k=4*B,S=k-i.sigBytes%k;i.concat(m.lib.WordArray.random(S-1)).concat(m.lib.WordArray.create([S<<24],1))},unpad:function(i){var B=255&i.words[i.sigBytes-1>>>2];i.sigBytes-=B}},m.pad.Iso10126)},680:function(i,B,k){var m;i.exports=(m=k(724),k(255),m.pad.Iso97971={pad:function(i,B){i.concat(m.lib.WordArray.create([2147483648],1)),m.pad.ZeroPadding.pad(i,B)},unpad:function(i){m.pad.ZeroPadding.unpad(i),i.sigBytes--}},m.pad.Iso97971)},863:function(i,B,k){var m;i.exports=(m=k(724),k(255),m.pad.NoPadding={pad:function(){},unpad:function(){}},m.pad.NoPadding)},62:function(i,B,k){var m;i.exports=(m=k(724),k(255),m.pad.ZeroPadding={pad:function(i,B){var k=4*B;i.clamp(),i.sigBytes+=k-(i.sigBytes%k||k)},unpad:function(i){var B=i.words,k=i.sigBytes-1;for(k=i.sigBytes-1;k>=0;k--)if(B[k>>>2]>>>24-k%4*8&255){i.sigBytes=k+1;break}}},m.pad.ZeroPadding)},264:function(i,B,k){var m,S,x,b,R,A,z,H,C;i.exports=(C=k(724),k(821),k(106),x=(S=(m=C).lib).Base,b=S.WordArray,A=(R=m.algo).SHA1,z=R.HMAC,H=R.PBKDF2=x.extend({cfg:x.extend({keySize:4,hasher:A,iterations:1}),init:function(i){this.cfg=this.cfg.extend(i)},compute:function(i,B){for(var k=this.cfg,m=z.create(k.hasher,i),S=b.create(),x=b.create([1]),R=S.words,A=x.words,H=k.keySize,C=k.iterations;R.length>>16,i[1],i[0]<<16|i[3]>>>16,i[2],i[1]<<16|i[0]>>>16,i[3],i[2]<<16|i[1]>>>16],m=this._C=[i[2]<<16|i[2]>>>16,4294901760&i[0]|65535&i[1],i[3]<<16|i[3]>>>16,4294901760&i[1]|65535&i[2],i[0]<<16|i[0]>>>16,4294901760&i[2]|65535&i[3],i[1]<<16|i[1]>>>16,4294901760&i[3]|65535&i[0]];this._b=0;for(var S=0;S<4;S++)c.call(this);for(S=0;S<8;S++)m[S]^=k[S+4&7];if(B){var x=B.words,b=x[0],R=x[1],A=16711935&(b<<8|b>>>24)|4278255360&(b<<24|b>>>8),z=16711935&(R<<8|R>>>24)|4278255360&(R<<24|R>>>8),H=A>>>16|4294901760&z,C=z<<16|65535&A;for(m[0]^=A,m[1]^=H,m[2]^=z,m[3]^=C,m[4]^=A,m[5]^=H,m[6]^=z,m[7]^=C,S=0;S<4;S++)c.call(this)}},_doProcessBlock:function(i,B){var k=this._X;c.call(this),S[0]=k[0]^k[5]>>>16^k[3]<<16,S[1]=k[2]^k[7]>>>16^k[5]<<16,S[2]=k[4]^k[1]>>>16^k[7]<<16,S[3]=k[6]^k[3]>>>16^k[1]<<16;for(var m=0;m<4;m++)S[m]=16711935&(S[m]<<8|S[m]>>>24)|4278255360&(S[m]<<24|S[m]>>>8),i[B+m]^=S[m]},blockSize:4,ivSize:2});function c(){for(var i=this._X,B=this._C,k=0;k<8;k++)x[k]=B[k];for(B[0]=B[0]+1295307597+this._b|0,B[1]=B[1]+3545052371+(B[0]>>>0>>0?1:0)|0,B[2]=B[2]+886263092+(B[1]>>>0>>0?1:0)|0,B[3]=B[3]+1295307597+(B[2]>>>0>>0?1:0)|0,B[4]=B[4]+3545052371+(B[3]>>>0>>0?1:0)|0,B[5]=B[5]+886263092+(B[4]>>>0>>0?1:0)|0,B[6]=B[6]+1295307597+(B[5]>>>0>>0?1:0)|0,B[7]=B[7]+3545052371+(B[6]>>>0>>0?1:0)|0,this._b=B[7]>>>0>>0?1:0,k=0;k<8;k++){var m=i[k]+B[k],S=65535&m,R=m>>>16,A=((S*S>>>17)+S*R>>>15)+R*R,z=((4294901760&m)*m|0)+((65535&m)*m|0);b[k]=A^z}i[0]=b[0]+(b[7]<<16|b[7]>>>16)+(b[6]<<16|b[6]>>>16)|0,i[1]=b[1]+(b[0]<<8|b[0]>>>24)+b[7]|0,i[2]=b[2]+(b[1]<<16|b[1]>>>16)+(b[0]<<16|b[0]>>>16)|0,i[3]=b[3]+(b[2]<<8|b[2]>>>24)+b[1]|0,i[4]=b[4]+(b[3]<<16|b[3]>>>16)+(b[2]<<16|b[2]>>>16)|0,i[5]=b[5]+(b[4]<<8|b[4]>>>24)+b[3]|0,i[6]=b[6]+(b[5]<<16|b[5]>>>16)+(b[4]<<16|b[4]>>>16)|0,i[7]=b[7]+(b[6]<<8|b[6]>>>24)+b[5]|0}i.RabbitLegacy=B._createHelper(R)}(),m.RabbitLegacy)},597:function(i,B,k){var m;i.exports=(m=k(724),k(676),k(650),k(504),k(255),function(){var i=m,B=i.lib.StreamCipher,k=i.algo,S=[],x=[],b=[],R=k.Rabbit=B.extend({_doReset:function(){for(var i=this._key.words,B=this.cfg.iv,k=0;k<4;k++)i[k]=16711935&(i[k]<<8|i[k]>>>24)|4278255360&(i[k]<<24|i[k]>>>8);var m=this._X=[i[0],i[3]<<16|i[2]>>>16,i[1],i[0]<<16|i[3]>>>16,i[2],i[1]<<16|i[0]>>>16,i[3],i[2]<<16|i[1]>>>16],S=this._C=[i[2]<<16|i[2]>>>16,4294901760&i[0]|65535&i[1],i[3]<<16|i[3]>>>16,4294901760&i[1]|65535&i[2],i[0]<<16|i[0]>>>16,4294901760&i[2]|65535&i[3],i[1]<<16|i[1]>>>16,4294901760&i[3]|65535&i[0]];for(this._b=0,k=0;k<4;k++)c.call(this);for(k=0;k<8;k++)S[k]^=m[k+4&7];if(B){var x=B.words,b=x[0],R=x[1],A=16711935&(b<<8|b>>>24)|4278255360&(b<<24|b>>>8),z=16711935&(R<<8|R>>>24)|4278255360&(R<<24|R>>>8),H=A>>>16|4294901760&z,C=z<<16|65535&A;for(S[0]^=A,S[1]^=H,S[2]^=z,S[3]^=C,S[4]^=A,S[5]^=H,S[6]^=z,S[7]^=C,k=0;k<4;k++)c.call(this)}},_doProcessBlock:function(i,B){var k=this._X;c.call(this),S[0]=k[0]^k[5]>>>16^k[3]<<16,S[1]=k[2]^k[7]>>>16^k[5]<<16,S[2]=k[4]^k[1]>>>16^k[7]<<16,S[3]=k[6]^k[3]>>>16^k[1]<<16;for(var m=0;m<4;m++)S[m]=16711935&(S[m]<<8|S[m]>>>24)|4278255360&(S[m]<<24|S[m]>>>8),i[B+m]^=S[m]},blockSize:4,ivSize:2});function c(){for(var i=this._X,B=this._C,k=0;k<8;k++)x[k]=B[k];for(B[0]=B[0]+1295307597+this._b|0,B[1]=B[1]+3545052371+(B[0]>>>0>>0?1:0)|0,B[2]=B[2]+886263092+(B[1]>>>0>>0?1:0)|0,B[3]=B[3]+1295307597+(B[2]>>>0>>0?1:0)|0,B[4]=B[4]+3545052371+(B[3]>>>0>>0?1:0)|0,B[5]=B[5]+886263092+(B[4]>>>0>>0?1:0)|0,B[6]=B[6]+1295307597+(B[5]>>>0>>0?1:0)|0,B[7]=B[7]+3545052371+(B[6]>>>0>>0?1:0)|0,this._b=B[7]>>>0>>0?1:0,k=0;k<8;k++){var m=i[k]+B[k],S=65535&m,R=m>>>16,A=((S*S>>>17)+S*R>>>15)+R*R,z=((4294901760&m)*m|0)+((65535&m)*m|0);b[k]=A^z}i[0]=b[0]+(b[7]<<16|b[7]>>>16)+(b[6]<<16|b[6]>>>16)|0,i[1]=b[1]+(b[0]<<8|b[0]>>>24)+b[7]|0,i[2]=b[2]+(b[1]<<16|b[1]>>>16)+(b[0]<<16|b[0]>>>16)|0,i[3]=b[3]+(b[2]<<8|b[2]>>>24)+b[1]|0,i[4]=b[4]+(b[3]<<16|b[3]>>>16)+(b[2]<<16|b[2]>>>16)|0,i[5]=b[5]+(b[4]<<8|b[4]>>>24)+b[3]|0,i[6]=b[6]+(b[5]<<16|b[5]>>>16)+(b[4]<<16|b[4]>>>16)|0,i[7]=b[7]+(b[6]<<8|b[6]>>>24)+b[5]|0}i.Rabbit=B._createHelper(R)}(),m.Rabbit)},133:function(i,B,k){var m;i.exports=(m=k(724),k(676),k(650),k(504),k(255),function(){var i=m,B=i.lib.StreamCipher,k=i.algo,S=k.RC4=B.extend({_doReset:function(){for(var i=this._key,B=i.words,k=i.sigBytes,m=this._S=[],S=0;S<256;S++)m[S]=S;S=0;for(var x=0;S<256;S++){var b=S%k,R=B[b>>>2]>>>24-b%4*8&255;x=(x+m[S]+R)%256;var A=m[S];m[S]=m[x],m[x]=A}this._i=this._j=0},_doProcessBlock:function(i,B){i[B]^=o.call(this)},keySize:8,ivSize:0});function o(){for(var i=this._S,B=this._i,k=this._j,m=0,S=0;S<4;S++){k=(k+i[B=(B+1)%256])%256;var x=i[B];i[B]=i[k],i[k]=x,m|=i[(i[B]+i[k])%256]<<24-8*S}return this._i=B,this._j=k,m}i.RC4=B._createHelper(S);var x=k.RC4Drop=S.extend({cfg:S.cfg.extend({drop:192}),_doReset:function(){S._doReset.call(this);for(var i=this.cfg.drop;i>0;i--)o.call(this)}});i.RC4Drop=B._createHelper(x)}(),m.RC4)},592:function(i,B,k){var m;i.exports=(m=k(724),function(i){var B=m,k=B.lib,S=k.WordArray,x=k.Hasher,b=B.algo,R=S.create([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13]),A=S.create([5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11]),z=S.create([11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6]),H=S.create([8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11]),C=S.create([0,1518500249,1859775393,2400959708,2840853838]),U=S.create([1352829926,1548603684,1836072691,2053994217,0]),P=b.RIPEMD160=x.extend({_doReset:function(){this._hash=S.create([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(i,B){for(var k=0;k<16;k++){var m=B+k,S=i[m];i[m]=16711935&(S<<8|S>>>24)|4278255360&(S<<24|S>>>8)}var x,b,P,L,E,O,D,M,I,F,j,W=this._hash.words,T=C.words,K=U.words,X=R.words,N=A.words,q=z.words,Y=H.words;for(O=x=W[0],D=b=W[1],M=P=W[2],I=L=W[3],F=E=W[4],k=0;k<80;k+=1)j=x+i[B+X[k]]|0,j+=k<16?p(b,P,L)+T[0]:k<32?v(b,P,L)+T[1]:k<48?_(b,P,L)+T[2]:k<64?y(b,P,L)+T[3]:g(b,P,L)+T[4],j=(j=w(j|=0,q[k]))+E|0,x=E,E=L,L=w(P,10),P=b,b=j,j=O+i[B+N[k]]|0,j+=k<16?g(D,M,I)+K[0]:k<32?y(D,M,I)+K[1]:k<48?_(D,M,I)+K[2]:k<64?v(D,M,I)+K[3]:p(D,M,I)+K[4],j=(j=w(j|=0,Y[k]))+F|0,O=F,F=I,I=w(M,10),M=D,D=j;j=W[1]+P+I|0,W[1]=W[2]+L+F|0,W[2]=W[3]+E+O|0,W[3]=W[4]+x+D|0,W[4]=W[0]+b+M|0,W[0]=j},_doFinalize:function(){var i=this._data,B=i.words,k=8*this._nDataBytes,m=8*i.sigBytes;B[m>>>5]|=128<<24-m%32,B[14+(m+64>>>9<<4)]=16711935&(k<<8|k>>>24)|4278255360&(k<<24|k>>>8),i.sigBytes=4*(B.length+1),this._process();for(var S=this._hash,x=S.words,b=0;b<5;b++){var R=x[b];x[b]=16711935&(R<<8|R>>>24)|4278255360&(R<<24|R>>>8)}return S},clone:function(){var i=x.clone.call(this);return i._hash=this._hash.clone(),i}});function p(i,B,k){return i^B^k}function v(i,B,k){return i&B|~i&k}function _(i,B,k){return(i|~B)^k}function y(i,B,k){return i&k|B&~k}function g(i,B,k){return i^(B|~k)}function w(i,B){return i<>>32-B}B.RIPEMD160=x._createHelper(P),B.HmacRIPEMD160=x._createHmacHelper(P)}(Math),m.RIPEMD160)},821:function(i,B,k){var m,S,x,b,R,A,z,H;i.exports=(S=(m=H=k(724)).lib,x=S.WordArray,b=S.Hasher,R=m.algo,A=[],z=R.SHA1=b.extend({_doReset:function(){this._hash=new x.init([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(i,B){for(var k=this._hash.words,m=k[0],S=k[1],x=k[2],b=k[3],R=k[4],z=0;z<80;z++){if(z<16)A[z]=0|i[B+z];else{var H=A[z-3]^A[z-8]^A[z-14]^A[z-16];A[z]=H<<1|H>>>31}var C=(m<<5|m>>>27)+R+A[z];C+=z<20?1518500249+(S&x|~S&b):z<40?1859775393+(S^x^b):z<60?(S&x|S&b|x&b)-1894007588:(S^x^b)-899497514,R=b,b=x,x=S<<30|S>>>2,S=m,m=C}k[0]=k[0]+m|0,k[1]=k[1]+S|0,k[2]=k[2]+x|0,k[3]=k[3]+b|0,k[4]=k[4]+R|0},_doFinalize:function(){var i=this._data,B=i.words,k=8*this._nDataBytes,m=8*i.sigBytes;return B[m>>>5]|=128<<24-m%32,B[14+(m+64>>>9<<4)]=Math.floor(k/4294967296),B[15+(m+64>>>9<<4)]=k,i.sigBytes=4*B.length,this._process(),this._hash},clone:function(){var i=b.clone.call(this);return i._hash=this._hash.clone(),i}}),m.SHA1=b._createHelper(z),m.HmacSHA1=b._createHmacHelper(z),H.SHA1)},247:function(i,B,k){var m,S,x,b,R,A;i.exports=(A=k(724),k(287),S=(m=A).lib.WordArray,x=m.algo,b=x.SHA256,R=x.SHA224=b.extend({_doReset:function(){this._hash=new S.init([3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428])},_doFinalize:function(){var i=b._doFinalize.call(this);return i.sigBytes-=4,i}}),m.SHA224=b._createHelper(R),m.HmacSHA224=b._createHmacHelper(R),A.SHA224)},287:function(i,B,k){var m;i.exports=(m=k(724),function(i){var B=m,k=B.lib,S=k.WordArray,x=k.Hasher,b=B.algo,R=[],A=[];!function(){function t(B){for(var k=i.sqrt(B),m=2;m<=k;m++)if(!(B%m))return!1;return!0}function r(i){return 4294967296*(i-(0|i))|0}for(var B=2,k=0;k<64;)t(B)&&(k<8&&(R[k]=r(i.pow(B,.5))),A[k]=r(i.pow(B,1/3)),k++),B++}();var z=[],H=b.SHA256=x.extend({_doReset:function(){this._hash=new S.init(R.slice(0))},_doProcessBlock:function(i,B){for(var k=this._hash.words,m=k[0],S=k[1],x=k[2],b=k[3],R=k[4],H=k[5],C=k[6],U=k[7],P=0;P<64;P++){if(P<16)z[P]=0|i[B+P];else{var L=z[P-15],E=(L<<25|L>>>7)^(L<<14|L>>>18)^L>>>3,O=z[P-2],D=(O<<15|O>>>17)^(O<<13|O>>>19)^O>>>10;z[P]=E+z[P-7]+D+z[P-16]}var M=m&S^m&x^S&x,I=(m<<30|m>>>2)^(m<<19|m>>>13)^(m<<10|m>>>22),F=U+((R<<26|R>>>6)^(R<<21|R>>>11)^(R<<7|R>>>25))+(R&H^~R&C)+A[P]+z[P];U=C,C=H,H=R,R=b+F|0,b=x,x=S,S=m,m=F+(I+M)|0}k[0]=k[0]+m|0,k[1]=k[1]+S|0,k[2]=k[2]+x|0,k[3]=k[3]+b|0,k[4]=k[4]+R|0,k[5]=k[5]+H|0,k[6]=k[6]+C|0,k[7]=k[7]+U|0},_doFinalize:function(){var B=this._data,k=B.words,m=8*this._nDataBytes,S=8*B.sigBytes;return k[S>>>5]|=128<<24-S%32,k[14+(S+64>>>9<<4)]=i.floor(m/4294967296),k[15+(S+64>>>9<<4)]=m,B.sigBytes=4*k.length,this._process(),this._hash},clone:function(){var i=x.clone.call(this);return i._hash=this._hash.clone(),i}});B.SHA256=x._createHelper(H),B.HmacSHA256=x._createHmacHelper(H)}(Math),m.SHA256)},251:function(i,B,k){var m;i.exports=(m=k(724),k(403),function(i){var B=m,k=B.lib,S=k.WordArray,x=k.Hasher,b=B.x64.Word,R=B.algo,A=[],z=[],H=[];!function(){for(var i=1,B=0,k=0;k<24;k++){A[i+5*B]=(k+1)*(k+2)/2%64;var m=(2*i+3*B)%5;i=B%5,B=m}for(i=0;i<5;i++)for(B=0;B<5;B++)z[i+5*B]=B+(2*i+3*B)%5*5;for(var S=1,x=0;x<24;x++){for(var R=0,C=0,U=0;U<7;U++){if(1&S){var P=(1<>>24)|4278255360&(x<<24|x>>>8),b=16711935&(b<<8|b>>>24)|4278255360&(b<<24|b>>>8),(Y=k[S]).high^=b,Y.low^=x}for(var R=0;R<24;R++){for(var U=0;U<5;U++){for(var P=0,L=0,E=0;E<5;E++)P^=(Y=k[U+5*E]).high,L^=Y.low;var O=C[U];O.high=P,O.low=L}for(U=0;U<5;U++){var D=C[(U+4)%5],M=C[(U+1)%5],I=M.high,F=M.low;for(P=D.high^(I<<1|F>>>31),L=D.low^(F<<1|I>>>31),E=0;E<5;E++)(Y=k[U+5*E]).high^=P,Y.low^=L}for(var j=1;j<25;j++){var W=(Y=k[j]).high,T=Y.low,K=A[j];K<32?(P=W<>>32-K,L=T<>>32-K):(P=T<>>64-K,L=W<>>64-K);var X=C[z[j]];X.high=P,X.low=L}var N=C[0],q=k[0];for(N.high=q.high,N.low=q.low,U=0;U<5;U++)for(E=0;E<5;E++){var Y=k[j=U+5*E],Z=C[j],V=C[(U+1)%5+5*E],G=C[(U+2)%5+5*E];Y.high=Z.high^~V.high&G.high,Y.low=Z.low^~V.low&G.low}Y=k[0];var J=H[R];Y.high^=J.high,Y.low^=J.low}},_doFinalize:function(){var B=this._data,k=B.words,m=(this._nDataBytes,8*B.sigBytes),x=32*this.blockSize;k[m>>>5]|=1<<24-m%32,k[(i.ceil((m+1)/x)*x>>>5)-1]|=128,B.sigBytes=4*k.length,this._process();for(var b=this._state,R=this.cfg.outputLength/8,A=R/8,z=[],H=0;H>>24)|4278255360&(U<<24|U>>>8),P=16711935&(P<<8|P>>>24)|4278255360&(P<<24|P>>>8),z.push(P),z.push(U)}return new S.init(z,R)},clone:function(){for(var i=x.clone.call(this),B=i._state=this._state.slice(0),k=0;k<25;k++)B[k]=B[k].clone();return i}});B.SHA3=x._createHelper(U),B.HmacSHA3=x._createHmacHelper(U)}(Math),m.SHA3)},796:function(i,B,k){var m,S,x,b,R,A,z,H;i.exports=(H=k(724),k(403),k(272),S=(m=H).x64,x=S.Word,b=S.WordArray,R=m.algo,A=R.SHA512,z=R.SHA384=A.extend({_doReset:function(){this._hash=new b.init([new x.init(3418070365,3238371032),new x.init(1654270250,914150663),new x.init(2438529370,812702999),new x.init(355462360,4144912697),new x.init(1731405415,4290775857),new x.init(2394180231,1750603025),new x.init(3675008525,1694076839),new x.init(1203062813,3204075428)])},_doFinalize:function(){var i=A._doFinalize.call(this);return i.sigBytes-=16,i}}),m.SHA384=A._createHelper(z),m.HmacSHA384=A._createHmacHelper(z),H.SHA384)},272:function(i,B,k){var m;i.exports=(m=k(724),k(403),function(){var i=m,B=i.lib.Hasher,k=i.x64,S=k.Word,x=k.WordArray,b=i.algo;function a(){return S.create.apply(S,arguments)}var R=[a(1116352408,3609767458),a(1899447441,602891725),a(3049323471,3964484399),a(3921009573,2173295548),a(961987163,4081628472),a(1508970993,3053834265),a(2453635748,2937671579),a(2870763221,3664609560),a(3624381080,2734883394),a(310598401,1164996542),a(607225278,1323610764),a(1426881987,3590304994),a(1925078388,4068182383),a(2162078206,991336113),a(2614888103,633803317),a(3248222580,3479774868),a(3835390401,2666613458),a(4022224774,944711139),a(264347078,2341262773),a(604807628,2007800933),a(770255983,1495990901),a(1249150122,1856431235),a(1555081692,3175218132),a(1996064986,2198950837),a(2554220882,3999719339),a(2821834349,766784016),a(2952996808,2566594879),a(3210313671,3203337956),a(3336571891,1034457026),a(3584528711,2466948901),a(113926993,3758326383),a(338241895,168717936),a(666307205,1188179964),a(773529912,1546045734),a(1294757372,1522805485),a(1396182291,2643833823),a(1695183700,2343527390),a(1986661051,1014477480),a(2177026350,1206759142),a(2456956037,344077627),a(2730485921,1290863460),a(2820302411,3158454273),a(3259730800,3505952657),a(3345764771,106217008),a(3516065817,3606008344),a(3600352804,1432725776),a(4094571909,1467031594),a(275423344,851169720),a(430227734,3100823752),a(506948616,1363258195),a(659060556,3750685593),a(883997877,3785050280),a(958139571,3318307427),a(1322822218,3812723403),a(1537002063,2003034995),a(1747873779,3602036899),a(1955562222,1575990012),a(2024104815,1125592928),a(2227730452,2716904306),a(2361852424,442776044),a(2428436474,593698344),a(2756734187,3733110249),a(3204031479,2999351573),a(3329325298,3815920427),a(3391569614,3928383900),a(3515267271,566280711),a(3940187606,3454069534),a(4118630271,4000239992),a(116418474,1914138554),a(174292421,2731055270),a(289380356,3203993006),a(460393269,320620315),a(685471733,587496836),a(852142971,1086792851),a(1017036298,365543100),a(1126000580,2618297676),a(1288033470,3409855158),a(1501505948,4234509866),a(1607167915,987167468),a(1816402316,1246189591)],A=[];!function(){for(var i=0;i<80;i++)A[i]=a()}();var z=b.SHA512=B.extend({_doReset:function(){this._hash=new x.init([new S.init(1779033703,4089235720),new S.init(3144134277,2227873595),new S.init(1013904242,4271175723),new S.init(2773480762,1595750129),new S.init(1359893119,2917565137),new S.init(2600822924,725511199),new S.init(528734635,4215389547),new S.init(1541459225,327033209)])},_doProcessBlock:function(i,B){for(var k=this._hash.words,m=k[0],S=k[1],x=k[2],b=k[3],z=k[4],H=k[5],C=k[6],U=k[7],P=m.high,L=m.low,E=S.high,O=S.low,D=x.high,M=x.low,I=b.high,F=b.low,j=z.high,W=z.low,T=H.high,K=H.low,X=C.high,N=C.low,q=U.high,Y=U.low,Z=P,V=L,G=E,J=O,Q=D,$=M,ee=I,te=F,re=j,ie=W,ne=T,oe=K,ae=X,se=N,ce=q,he=Y,le=0;le<80;le++){var fe,ue,de=A[le];if(le<16)ue=de.high=0|i[B+2*le],fe=de.low=0|i[B+2*le+1];else{var pe=A[le-15],ve=pe.high,_e=pe.low,ye=(ve>>>1|_e<<31)^(ve>>>8|_e<<24)^ve>>>7,ge=(_e>>>1|ve<<31)^(_e>>>8|ve<<24)^(_e>>>7|ve<<25),we=A[le-2],Be=we.high,ke=we.low,me=(Be>>>19|ke<<13)^(Be<<3|ke>>>29)^Be>>>6,Se=(ke>>>19|Be<<13)^(ke<<3|Be>>>29)^(ke>>>6|Be<<26),xe=A[le-7],be=xe.high,Re=xe.low,Ae=A[le-16],ze=Ae.high,He=Ae.low;ue=(ue=(ue=ye+be+((fe=ge+Re)>>>0>>0?1:0))+me+((fe+=Se)>>>0>>0?1:0))+ze+((fe+=He)>>>0>>0?1:0),de.high=ue,de.low=fe}var Ce,Ue=re&ne^~re&ae,Pe=ie&oe^~ie&se,Le=Z&G^Z&Q^G&Q,Ee=V&J^V&$^J&$,Oe=(Z>>>28|V<<4)^(Z<<30|V>>>2)^(Z<<25|V>>>7),De=(V>>>28|Z<<4)^(V<<30|Z>>>2)^(V<<25|Z>>>7),Me=(re>>>14|ie<<18)^(re>>>18|ie<<14)^(re<<23|ie>>>9),Ie=(ie>>>14|re<<18)^(ie>>>18|re<<14)^(ie<<23|re>>>9),Fe=R[le],je=Fe.high,We=Fe.low,Te=ce+Me+((Ce=he+Ie)>>>0>>0?1:0),Ke=De+Ee;ce=ae,he=se,ae=ne,se=oe,ne=re,oe=ie,re=ee+(Te=(Te=(Te=Te+Ue+((Ce+=Pe)>>>0>>0?1:0))+je+((Ce+=We)>>>0>>0?1:0))+ue+((Ce+=fe)>>>0>>0?1:0))+((ie=te+Ce|0)>>>0>>0?1:0)|0,ee=Q,te=$,Q=G,$=J,G=Z,J=V,Z=Te+(Oe+Le+(Ke>>>0>>0?1:0))+((V=Ce+Ke|0)>>>0>>0?1:0)|0}L=m.low=L+V,m.high=P+Z+(L>>>0>>0?1:0),O=S.low=O+J,S.high=E+G+(O>>>0>>0?1:0),M=x.low=M+$,x.high=D+Q+(M>>>0<$>>>0?1:0),F=b.low=F+te,b.high=I+ee+(F>>>0>>0?1:0),W=z.low=W+ie,z.high=j+re+(W>>>0>>0?1:0),K=H.low=K+oe,H.high=T+ne+(K>>>0>>0?1:0),N=C.low=N+se,C.high=X+ae+(N>>>0>>0?1:0),Y=U.low=Y+he,U.high=q+ce+(Y>>>0>>0?1:0)},_doFinalize:function(){var i=this._data,B=i.words,k=8*this._nDataBytes,m=8*i.sigBytes;return B[m>>>5]|=128<<24-m%32,B[30+(m+128>>>10<<5)]=Math.floor(k/4294967296),B[31+(m+128>>>10<<5)]=k,i.sigBytes=4*B.length,this._process(),this._hash.toX32()},clone:function(){var i=B.clone.call(this);return i._hash=this._hash.clone(),i},blockSize:32});i.SHA512=B._createHelper(z),i.HmacSHA512=B._createHmacHelper(z)}(),m.SHA512)},258:function(i,B,k){var m;i.exports=(m=k(724),k(676),k(650),k(504),k(255),function(){var i=m,B=i.lib,k=B.WordArray,S=B.BlockCipher,x=i.algo,b=[57,49,41,33,25,17,9,1,58,50,42,34,26,18,10,2,59,51,43,35,27,19,11,3,60,52,44,36,63,55,47,39,31,23,15,7,62,54,46,38,30,22,14,6,61,53,45,37,29,21,13,5,28,20,12,4],R=[14,17,11,24,1,5,3,28,15,6,21,10,23,19,12,4,26,8,16,7,27,20,13,2,41,52,31,37,47,55,30,40,51,45,33,48,44,49,39,56,34,53,46,42,50,36,29,32],A=[1,2,4,6,8,10,12,14,15,17,19,21,23,25,27,28],z=[{0:8421888,268435456:32768,536870912:8421378,805306368:2,1073741824:512,1342177280:8421890,1610612736:8389122,1879048192:8388608,2147483648:514,2415919104:8389120,2684354560:33280,2952790016:8421376,3221225472:32770,3489660928:8388610,3758096384:0,4026531840:33282,134217728:0,402653184:8421890,671088640:33282,939524096:32768,1207959552:8421888,1476395008:512,1744830464:8421378,2013265920:2,2281701376:8389120,2550136832:33280,2818572288:8421376,3087007744:8389122,3355443200:8388610,3623878656:32770,3892314112:514,4160749568:8388608,1:32768,268435457:2,536870913:8421888,805306369:8388608,1073741825:8421378,1342177281:33280,1610612737:512,1879048193:8389122,2147483649:8421890,2415919105:8421376,2684354561:8388610,2952790017:33282,3221225473:514,3489660929:8389120,3758096385:32770,4026531841:0,134217729:8421890,402653185:8421376,671088641:8388608,939524097:512,1207959553:32768,1476395009:8388610,1744830465:2,2013265921:33282,2281701377:32770,2550136833:8389122,2818572289:514,3087007745:8421888,3355443201:8389120,3623878657:0,3892314113:33280,4160749569:8421378},{0:1074282512,16777216:16384,33554432:524288,50331648:1074266128,67108864:1073741840,83886080:1074282496,100663296:1073758208,117440512:16,134217728:540672,150994944:1073758224,167772160:1073741824,184549376:540688,201326592:524304,218103808:0,234881024:16400,251658240:1074266112,8388608:1073758208,25165824:540688,41943040:16,58720256:1073758224,75497472:1074282512,92274688:1073741824,109051904:524288,125829120:1074266128,142606336:524304,159383552:0,176160768:16384,192937984:1074266112,209715200:1073741840,226492416:540672,243269632:1074282496,260046848:16400,268435456:0,285212672:1074266128,301989888:1073758224,318767104:1074282496,335544320:1074266112,352321536:16,369098752:540688,385875968:16384,402653184:16400,419430400:524288,436207616:524304,452984832:1073741840,469762048:540672,486539264:1073758208,503316480:1073741824,520093696:1074282512,276824064:540688,293601280:524288,310378496:1074266112,327155712:16384,343932928:1073758208,360710144:1074282512,377487360:16,394264576:1073741824,411041792:1074282496,427819008:1073741840,444596224:1073758224,461373440:524304,478150656:0,494927872:16400,511705088:1074266128,528482304:540672},{0:260,1048576:0,2097152:67109120,3145728:65796,4194304:65540,5242880:67108868,6291456:67174660,7340032:67174400,8388608:67108864,9437184:67174656,10485760:65792,11534336:67174404,12582912:67109124,13631488:65536,14680064:4,15728640:256,524288:67174656,1572864:67174404,2621440:0,3670016:67109120,4718592:67108868,5767168:65536,6815744:65540,7864320:260,8912896:4,9961472:256,11010048:67174400,12058624:65796,13107200:65792,14155776:67109124,15204352:67174660,16252928:67108864,16777216:67174656,17825792:65540,18874368:65536,19922944:67109120,20971520:256,22020096:67174660,23068672:67108868,24117248:0,25165824:67109124,26214400:67108864,27262976:4,28311552:65792,29360128:67174400,30408704:260,31457280:65796,32505856:67174404,17301504:67108864,18350080:260,19398656:67174656,20447232:0,21495808:65540,22544384:67109120,23592960:256,24641536:67174404,25690112:65536,26738688:67174660,27787264:65796,28835840:67108868,29884416:67109124,30932992:67174400,31981568:4,33030144:65792},{0:2151682048,65536:2147487808,131072:4198464,196608:2151677952,262144:0,327680:4198400,393216:2147483712,458752:4194368,524288:2147483648,589824:4194304,655360:64,720896:2147487744,786432:2151678016,851968:4160,917504:4096,983040:2151682112,32768:2147487808,98304:64,163840:2151678016,229376:2147487744,294912:4198400,360448:2151682112,425984:0,491520:2151677952,557056:4096,622592:2151682048,688128:4194304,753664:4160,819200:2147483648,884736:4194368,950272:4198464,1015808:2147483712,1048576:4194368,1114112:4198400,1179648:2147483712,1245184:0,1310720:4160,1376256:2151678016,1441792:2151682048,1507328:2147487808,1572864:2151682112,1638400:2147483648,1703936:2151677952,1769472:4198464,1835008:2147487744,1900544:4194304,1966080:64,2031616:4096,1081344:2151677952,1146880:2151682112,1212416:0,1277952:4198400,1343488:4194368,1409024:2147483648,1474560:2147487808,1540096:64,1605632:2147483712,1671168:4096,1736704:2147487744,1802240:2151678016,1867776:4160,1933312:2151682048,1998848:4194304,2064384:4198464},{0:128,4096:17039360,8192:262144,12288:536870912,16384:537133184,20480:16777344,24576:553648256,28672:262272,32768:16777216,36864:537133056,40960:536871040,45056:553910400,49152:553910272,53248:0,57344:17039488,61440:553648128,2048:17039488,6144:553648256,10240:128,14336:17039360,18432:262144,22528:537133184,26624:553910272,30720:536870912,34816:537133056,38912:0,43008:553910400,47104:16777344,51200:536871040,55296:553648128,59392:16777216,63488:262272,65536:262144,69632:128,73728:536870912,77824:553648256,81920:16777344,86016:553910272,90112:537133184,94208:16777216,98304:553910400,102400:553648128,106496:17039360,110592:537133056,114688:262272,118784:536871040,122880:0,126976:17039488,67584:553648256,71680:16777216,75776:17039360,79872:537133184,83968:536870912,88064:17039488,92160:128,96256:553910272,100352:262272,104448:553910400,108544:0,112640:553648128,116736:16777344,120832:262144,124928:537133056,129024:536871040},{0:268435464,256:8192,512:270532608,768:270540808,1024:268443648,1280:2097152,1536:2097160,1792:268435456,2048:0,2304:268443656,2560:2105344,2816:8,3072:270532616,3328:2105352,3584:8200,3840:270540800,128:270532608,384:270540808,640:8,896:2097152,1152:2105352,1408:268435464,1664:268443648,1920:8200,2176:2097160,2432:8192,2688:268443656,2944:270532616,3200:0,3456:270540800,3712:2105344,3968:268435456,4096:268443648,4352:270532616,4608:270540808,4864:8200,5120:2097152,5376:268435456,5632:268435464,5888:2105344,6144:2105352,6400:0,6656:8,6912:270532608,7168:8192,7424:268443656,7680:270540800,7936:2097160,4224:8,4480:2105344,4736:2097152,4992:268435464,5248:268443648,5504:8200,5760:270540808,6016:270532608,6272:270540800,6528:270532616,6784:8192,7040:2105352,7296:2097160,7552:0,7808:268435456,8064:268443656},{0:1048576,16:33555457,32:1024,48:1049601,64:34604033,80:0,96:1,112:34603009,128:33555456,144:1048577,160:33554433,176:34604032,192:34603008,208:1025,224:1049600,240:33554432,8:34603009,24:0,40:33555457,56:34604032,72:1048576,88:33554433,104:33554432,120:1025,136:1049601,152:33555456,168:34603008,184:1048577,200:1024,216:34604033,232:1,248:1049600,256:33554432,272:1048576,288:33555457,304:34603009,320:1048577,336:33555456,352:34604032,368:1049601,384:1025,400:34604033,416:1049600,432:1,448:0,464:34603008,480:33554433,496:1024,264:1049600,280:33555457,296:34603009,312:1,328:33554432,344:1048576,360:1025,376:34604032,392:33554433,408:34603008,424:0,440:34604033,456:1049601,472:1024,488:33555456,504:1048577},{0:134219808,1:131072,2:134217728,3:32,4:131104,5:134350880,6:134350848,7:2048,8:134348800,9:134219776,10:133120,11:134348832,12:2080,13:0,14:134217760,15:133152,2147483648:2048,2147483649:134350880,2147483650:134219808,2147483651:134217728,2147483652:134348800,2147483653:133120,2147483654:133152,2147483655:32,2147483656:134217760,2147483657:2080,2147483658:131104,2147483659:134350848,2147483660:0,2147483661:134348832,2147483662:134219776,2147483663:131072,16:133152,17:134350848,18:32,19:2048,20:134219776,21:134217760,22:134348832,23:131072,24:0,25:131104,26:134348800,27:134219808,28:134350880,29:133120,30:2080,31:134217728,2147483664:131072,2147483665:2048,2147483666:134348832,2147483667:133152,2147483668:32,2147483669:134348800,2147483670:134217728,2147483671:134219808,2147483672:134350880,2147483673:134217760,2147483674:134219776,2147483675:0,2147483676:133120,2147483677:2080,2147483678:131104,2147483679:134350848}],H=[4160749569,528482304,33030144,2064384,129024,8064,504,2147483679],C=x.DES=S.extend({_doReset:function(){for(var i=this._key.words,B=[],k=0;k<56;k++){var m=b[k]-1;B[k]=i[m>>>5]>>>31-m%32&1}for(var S=this._subKeys=[],x=0;x<16;x++){var z=S[x]=[],H=A[x];for(k=0;k<24;k++)z[k/6|0]|=B[(R[k]-1+H)%28]<<31-k%6,z[4+(k/6|0)]|=B[28+(R[k+24]-1+H)%28]<<31-k%6;for(z[0]=z[0]<<1|z[0]>>>31,k=1;k<7;k++)z[k]=z[k]>>>4*(k-1)+3;z[7]=z[7]<<5|z[7]>>>27}var C=this._invSubKeys=[];for(k=0;k<16;k++)C[k]=S[15-k]},encryptBlock:function(i,B){this._doCryptBlock(i,B,this._subKeys)},decryptBlock:function(i,B){this._doCryptBlock(i,B,this._invSubKeys)},_doCryptBlock:function(i,B,k){this._lBlock=i[B],this._rBlock=i[B+1],u.call(this,4,252645135),u.call(this,16,65535),d.call(this,2,858993459),d.call(this,8,16711935),u.call(this,1,1431655765);for(var m=0;m<16;m++){for(var S=k[m],x=this._lBlock,b=this._rBlock,R=0,A=0;A<8;A++)R|=z[A][((b^S[A])&H[A])>>>0];this._lBlock=b,this._rBlock=x^R}var C=this._lBlock;this._lBlock=this._rBlock,this._rBlock=C,u.call(this,1,1431655765),d.call(this,8,16711935),d.call(this,2,858993459),u.call(this,16,65535),u.call(this,4,252645135),i[B]=this._lBlock,i[B+1]=this._rBlock},keySize:2,ivSize:2,blockSize:2});function u(i,B){var k=(this._lBlock>>>i^this._rBlock)&B;this._rBlock^=k,this._lBlock^=k<>>i^this._lBlock)&B;this._lBlock^=k,this._rBlock^=k<192.");var B=i.slice(0,2),m=i.length<4?i.slice(0,2):i.slice(2,4),S=i.length<6?i.slice(0,2):i.slice(4,6);this._des1=C.createEncryptor(k.create(B)),this._des2=C.createEncryptor(k.create(m)),this._des3=C.createEncryptor(k.create(S))},encryptBlock:function(i,B){this._des1.encryptBlock(i,B),this._des2.decryptBlock(i,B),this._des3.encryptBlock(i,B)},decryptBlock:function(i,B){this._des3.decryptBlock(i,B),this._des2.encryptBlock(i,B),this._des1.decryptBlock(i,B)},keySize:6,ivSize:2,blockSize:2});i.TripleDES=S._createHelper(U)}(),m.TripleDES)},403:function(i,B,k){var m,S,x,b,R,A;i.exports=(x=(S=m=k(724)).lib,b=x.Base,R=x.WordArray,(A=S.x64={}).Word=b.extend({init:function(i,B){this.high=i,this.low=B}}),A.WordArray=b.extend({init:function(i,B){i=this.words=i||[],this.sigBytes=null!=B?B:8*i.length},toX32:function(){for(var i=this.words,B=i.length,k=[],m=0;m{"use strict";k.r(B),k.d(B,{default:()=>s,generateChallenge:()=>o,verifyChallenge:()=>a});var m=k(130);function o(i){return(0,m.SHA256)(i).toString(m.enc.Base64url)}function s(i){if(i||(i=43),i<43||i>128)throw`Expected a length between 43 and 128. Received ${i}.`;const B=function n(i){return function(i){const B="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789-._~";let k="";const S=function(i){const B=m.lib.WordArray.random(i),k=[];return B.words.forEach((i=>{const B=function(i){const B=new ArrayBuffer(4);return new DataView(B).setUint32(0,i,!1),B}(i),m=new Uint8Array(B);for(let i=0;i<4;i++)k.push(m[i])})),k}(i);for(let m=0;m{}},B={};function r(k){var m=B[k];if(void 0!==m)return m.exports;var S=B[k]={exports:{}};return i[k].call(S.exports,S,S.exports,r),S.exports}r.n=i=>{var B=i&&i.__esModule?()=>i.default:()=>i;return r.d(B,{a:B}),B},r.d=(i,B)=>{for(var k in B)r.o(B,k)&&!r.o(i,k)&&Object.defineProperty(i,k,{enumerable:!0,get:B[k]})},r.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(i){if("object"==typeof window)return window}}(),r.o=(i,B)=>Object.prototype.hasOwnProperty.call(i,B),r.r=i=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(i,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(i,"__esModule",{value:!0})};var k,m={};k=r(59),window.Liferay=window.Liferay||{},window.Liferay.OAuth2Client={FromParameters:k.FromParameters,FromUserAgentApplication:k.FromUserAgentApplication};var S=window;for(var x in m)S[x]=m[x];m.__esModule&&Object.defineProperty(S,"__esModule",{value:!0})})(); !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.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(''),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;lPromise.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:'
'}}(); (()=>{var t={8686:(t,S,C)=>{var A,M=/[&<>"'`]/g,I=RegExp(M.source),R="object"==typeof C.g&&C.g&&C.g.Object===Object&&C.g,D="object"==typeof self&&self&&self.Object===Object&&self,z=R||D||Function("return this")(),W=(A={"&":"&","<":"<",">":">",'"':""","'":"'","`":"`"},function(t){return null==A?void 0:A[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))&&I.test(t)?t.replace(M,W):t}},1991:(t,S,C)=>{Object.defineProperty(S,"__esModule",{value:!0}),S.default=void 0;var A,M=C(7387),I=(A=C(1521))&&A.__esModule?A:{default:A};function a(t,S){let C=t.indexOf('">');const A=t.substring(C);C=S.indexOf('">');const M=S.substring(C);return AM?1:0}function s(t,S,C){const A=t[S],R=document.getElementById(A.select);if(!R)return;const D=function(t){return!!Array.isArray(t)||!(!t||"object"!=typeof t||"number"!=typeof t.length||t.tagName||t.scrollTo||t.document)}(W=A.selectVal)?Array.from(W):[W],z=[];var W;for(!1!==A.selectNullable&&z.push(''),C.forEach((t=>{const S=(0,M.escapeHTML)(t[A.selectId]),C=(0,M.escapeHTML)(t[A.selectDesc]);let I="";D.indexOf(S)>-1&&(I='selected="selected"'),z.push(""))})),A.selectSort&&z.sort(a);R.lastChild;)R.removeChild(R.lastChild);R.innerHTML=z.join(""),A.selectDisableOnEmpty&&(0,I.default)(R,!C.length)}S.default=class{constructor(t){!function(t){t.forEach(((S,C)=>{const A=S.select,M=document.getElementById(A),I=S.selectData;if(M){let S;M.setAttribute("data-componentType","dynamic_select"),C>0&&(S=t[C-1].selectVal),I((S=>{s(t,C,S)}),S),M.getAttribute("name")||M.setAttribute("name",A),M.addEventListener("change",(()=>{!function(t,S){if(S+1{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 A={};const M={};let I={};const R={},D=["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 A=t.data;Object.keys(A).forEach((t=>{const S=C.querySelector("#".concat(t));S&&(S.innerHTML=A[t].html)}))},f=function(t){const S=new URL(window.location.href),A=new URL(t.path,window.location.href);if(D.every((t=>A.searchParams.get(t)===S.searchParams.get(t)))){let t=Object.keys(M);t=t.filter((t=>{const I=M[t];if(!I)return!1;const R=C[t],D=z.every((t=>{let C=!1;if(R){const M="_".concat(R.portletId,"_").concat(t);C=A.searchParams.get(M)===S.searchParams.get(M)}return C}));return"function"==typeof I.isCacheable&&I.isCacheable(A)&&D&&R&&R.cacheState&&I.element&&I.getState})),I=t.reduce(((t,S)=>{const A=M[S],I=C[S],R=A.getState(),D=I.cacheState.reduce(((t,S)=>(t[S]=R[S],t)),{});return t[S]={html:A.element.innerHTML,state:D},t}),[]),Liferay.DOMTaskRunner.addTask({action:d,condition:t=>t.owner===W}),Liferay.DOMTaskRunner.addTaskState({data:I,owner:W})}else I={}},p=function(t,S,I){let D;if(1===arguments.length){let S=M[t];S&&"function"==typeof S&&(R[t]=S,S=S(),M[t]=S),D=S}else if(M[t]&&null!==S&&(delete C[t],delete A[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.')),D=M[t]=S,null===S)delete C[t],delete A[t];else{C[t]=I,Liferay.fire(t+":registered");const M=A[t];M?M.resolve(S):A[t]=u(S)}return D};S.component=p,S.componentReady=function e(){let t,S;if(1===arguments.length)t=arguments[0];else{t=[];for(let S=0;Se(t))));else{let C=A[t];C||(A[t]=C=u()),S=C.promise}return S};const h=function(t){const S=M[t];if(S){const I=S.destroy||S.dispose;I&&I.call(S),delete C[t],delete A[t],delete R[t],delete M[t]}};S.destroyComponent=h,S.destroyComponents=function(t){let S=Object.keys(M);t&&(S=S.filter((S=>t(M[S],C[S]||{})))),S.forEach(h)},S.destroyUnfulfilledPromises=function(){A={}},S.getComponentCache=function(t){const S=I[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 A=i(C(5894)),M=i(C(2045));function i(t){return t&&t.__esModule?t:{default:t}}const I=[0];class s extends A.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 A=this._toEventsArray(t);for(let t=0;tt.fn?t.fn:t))}many(t,S,C){const A=this._toEventsArray(t);for(let t=0;t{Object.defineProperty(S,"__esModule",{value:!0}),S.default=void 0;var A,M=(A=C(5894))&&A.__esModule?A:{default:A};class i extends M.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 I=i;S.default=I},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 A='
';if(C.length){A+='

'+'Critique'+'

'}else A+='Aucun\x20critique\x20n\x27a\x20été\x20trouvé\x2e'+"
"+'Veuillez\x20contacter\x20l\x27administrateur\x20pour\x20affecter\x20des\x20critiques\x2e'+"

";A+="
",(0,M.default)({dialog:{destroyOnHide:!0},title:A})},S.publishToLive=function(t){t=t||{},(0,M.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 A,M=(A=C(742))&&A.__esModule?A:{default:A}},9356:(t,S,C)=>{Object.defineProperty(S,"__esModule",{value:!0}),S.showTab=function(t,S,C,A){const R=t+(0,M.default)(C),D=document.getElementById(R+"TabsId"),z=document.getElementById(R+"TabsSection");if(D&&z){const M={id:C,names:S,namespace:t,selectedTab:D,selectedTabSection:z};A&&"function"==typeof A&&A.call(this,t,S,C,M);try{Liferay.on(I,a),Liferay.fire(I,M)}finally{Liferay.detach(I,a)}}},S.applyTabSelectionDOMChanges=a;var A,M=(A=C(7639))&&A.__esModule?A:{default:A};const I="showTab";function a({id:t,names:S,namespace:C,selectedTab:A,selectedTabSection:I}){const R=A.querySelector("a");if(A&&R){const t=A.parentElement.querySelector(".active");t&&t.classList.remove("active"),R.classList.add("active")}I&&I.classList.remove("hide");const D=document.getElementById(C+"dropdownTitle");let z;D&&R&&(D.innerHTML=R.textContent),S.splice(S.indexOf(t),1);for(let t=0;t{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 A=l(C(8633)),M=l(C(6549)),I=l(C(889)),R=l(C(1842)),D=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 A=Object.getOwnPropertySymbols(t);S&&(A=A.filter((function(S){return Object.getOwnPropertyDescriptor(t,S).enumerable}))),C.push.apply(C,A)}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{(0,z.getUrl)(G,"ACTION",this._portletId,t).then((t=>{const I=(0,z.generateActionUrl)(this._portletId,t,S);(0,M.default)(I.url,I).then((t=>t.text())).then((t=>{const S=this._updatePageStateFromString(t,this._portletId);C(S)})).catch((t=>{A(t)}))}))}))}_hasListener(t){return Object.keys($).map((t=>$[t].id)).includes(t)}_reportError(t,S){Object.keys($).map((C=>{const A=$[C];return A.id===t&&"portlet.onError"===A.type&&setTimeout((()=>{A.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 A=S[t],M=G.prpMap[t];Object.keys(M).forEach((t=>{if(t!==this._portletId){const S=M[t].split("|"),I=S[0],R=S[1];void 0===A?delete G.portlets[I].state.parameters[R]:G.portlets[I].state.parameters[R]=[...A],C.push(I)}}))}));const A=this._portletId;return G.portlets[A].state=t,C.push(A),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),A=[];let M=!1;return Object.entries(C).forEach((([t,S])=>{G.portlets[t]=S,A.push(t),M=!0})),M&&S&&this._updateHistory(),A}_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,A])=>{"portlet.onStateChange"===A.type&&(A.id!==t||S.includes(C)||Y.push(A))})),Y.length&&setTimeout((()=>{for(V=!0;Y.length;){const t=Y.shift(),S=t.handler,C=t.id;if(!G.portlets[C])continue;const A=G.portlets[C].renderData,M=new R.default(G.portlets[C].state);A&&A.content?S("portlet.onStateChange",M,A):S("portlet.onStateChange",M)}V=!1}))}action(...t){let S=null,C=0,A=null;return t.forEach((t=>{if(t instanceof HTMLFormElement){if(null!==A)throw new TypeError("Too many [object HTMLFormElement] arguments: ".concat(t,", ").concat(A));A=t}else if((0,I.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++})),A&&(0,z.validateForm)(A),this._setupAction(S,A).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 M=(0,A.default)(),I={handle:M,handler:S,id:C,type:t};return $[M]=I,"portlet.onStateChange"===t&&this._updateStateForPortlet(this._portletId),M}createResourceUrl(t,S,C){if(arguments.length>3)throw new TypeError("Too many arguments. 3 arguments are allowed.");if(t){if(!(0,I.default)(t))throw new TypeError("Invalid argument type. Resource parameters must be a parameters object.");(0,z.validateParameters)(t)}let A=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));A=S}if(A||(A="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,A,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,A)=>{const M=$[A];return t.match(M.type)&&(M.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 R.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,I.default)($[t])&&$[t].id===this._portletId){delete $[t];const C=Y.length;for(let S=0;S1)throw new TypeError("Too many arguments. 1 arguments are allowed");if(void 0!==t){if(!(0,I.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 A={setPageState(t){S._setPageState(S._portletId,t)},url:""};return(0,z.getUrl)(G,"PARTIAL_ACTION",this._portletId,C).then((t=>(A.url=t,A)))}}S.PortletInit=_;var X=_;S.default=X},1842:(t,S,C)=>{Object.defineProperty(S,"__esModule",{value:!0}),S.default=S.RenderState=void 0;var A=i(C(889)),M=i(C(7737));function i(t){return t&&t.__esModule?t:{default:t}}class a{constructor(t){(0,A.default)(t)?this.from(t):(this.parameters={},this.portletMode=M.default.VIEW,this.windowState=M.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!==M.default.EDIT&&t!==M.default.HELP&&t!==M.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!==M.default.MAXIMIZED&&t!==M.default.MINIMIZED&&t!==M.default.NORMAL||(this.windowState=t)}}S.RenderState=a;var I=a;S.default=I},5659:(t,S,C)=>{Object.defineProperty(S,"__esModule",{value:!0}),S.minimizePortlet=function(t,S,C){C=function(t){for(var S=1;S{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,A.default)((0,R.default)(themeDisplay.getPathMain()+"/portal/render_portlet",t)).then((t=>t.text())).then((t=>{const S=document.createRange();S.selectNode(D),D.innerHTML="";const C=S.createContextualFragment(t);D.appendChild(C)})).catch((t=>{}))}})).catch((t=>{}))}}},S.default=void 0;var A=s(C(6549)),M=s(C(7494)),I=s(C(1166)),R=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 A=Object.getOwnPropertySymbols(t);S&&(A=A.filter((function(S){return Object.getOwnPropertyDescriptor(t,S).enumerable}))),C.push.apply(C,A)}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 D={register:s(C(8203)).default};S.default=D},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 A=C;S.default=A},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_",A="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 A=t.length-1;A>=0;A--)t[A]!==S[A]&&(C=!1);return C};S.decodeUpdateString=function(t,S){const C=t&&t.portlets?t.portlets:{};try{const A=JSON.parse(S);A.portlets&&Object.keys(C).forEach((S=>{const M=A.portlets[S].state,I=C[S].state;if(!M||!I)throw new Error("Invalid update string.\nold state=".concat(I,"\nnew state=").concat(M));(function(t,S,C){let A=!1;if(t&&t.portlets&&t.portlets[C]){const M=t.portlets[C].state;if(!S.portletMode||!S.windowState||!S.parameters)throw new Error("Error decoding state: ".concat(S));S.porletMode!==M.portletMode||S.windowState!==M.windowState?A=!0:(Object.keys(S.parameters).forEach((t=>{const C=S.parameters[t],I=M.parameters[t];o(C,I)||(A=!0)})),Object.keys(M.parameters).forEach((t=>{S.parameters[t]||(A=!0)})))}return A})(t,M,S)&&(C[S]=A.portlets[S])}))}catch(t){}return C};const i=function(t,S){const C=[];for(let A=0;A{if(S.checked){const A=S.value,M=encodeURIComponent(t+I)+"="+encodeURIComponent(A);C.push(M)}}));else if("CHECKBOX"!==D&&"RADIO"!==D||M.checked){const S=encodeURIComponent(t+I)+"="+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 A={credentials:"same-origin",method:"POST",url:S};if(C)if("multipart/form-data"===C.enctype){const t=new FormData(C);A.body=t}else{const M=i(t,C);"GET"===(C.method?C.method.toUpperCase():"GET")?(S.indexOf("?")>=0?S+="&".concat(M):S+="?".concat(M),A.url=S):(A.body=M,A.headers={"Content-Type":"application/x-www-form-urlencoded"})}return A};const s=function(t,S,M,I,R){let D="";if(t.portlets&&t.portlets[S]){const z=t.portlets[S];if(z&&z.state&&z.state.parameters){const t=z.state.parameters[M];void 0!==t&&(D+=a(I===C?R:I===A?S+A+M:S+M,t))}}return D},c=function(t,S){let C="";if(t.portlets){const A=t.portlets[S];if(A.state){const t=A.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 A={};if(t&&t.portlets){const M=t.portlets[S];if(M&&M.pubParms){const I=M.pubParms;Object.keys(I).forEach((M=>{if(!function(t,S,C,A){let M=!1;if(t&&t.portlets){const I=t.portlets[S];if(C.parameters[A]&&I.state.parameters[A]){const t=C.parameters[A],S=I.state.parameters[A];M=o(t,S)}}return M}(t,S,C,M)){const t=I[M];A[t]=C.parameters[M]}}))}}return A},S.getUrl=function(t,S,M,I,R,D){let z="cacheLevelPage",W="",V="";if(t&&t.portlets){"RENDER"===S&&void 0===M&&(M=null);const I=t.portlets[M];if(I&&("RESOURCE"===S?(V=decodeURIComponent(I.encodedResourceURL),R&&(z=R),V+="&p_p_cacheability="+encodeURIComponent(z),D&&(V+="&p_p_resource_id="+encodeURIComponent(D))):"RENDER"===S&&null!==M?V=decodeURIComponent(I.encodedRenderURL):"RENDER"===S?V=decodeURIComponent(t.encodedCurrentURL):"ACTION"===S?(V=decodeURIComponent(I.encodedActionURL),V+="&p_p_hub="+encodeURIComponent("0")):"PARTIAL_ACTION"===S&&(V=decodeURIComponent(I.encodedActionURL),V+="&p_p_hub="+encodeURIComponent("1")),"RESOURCE"!==S||"cacheLevelFull"!==z)){if(M&&(V+=c(t,M)),M&&(W="",I.state&&I.state.parameters)){const S=I.state.parameters;Object.keys(S).forEach((S=>{(function(t,S,C){let A=!1;if(t&&t.portlets){const M=t.portlets[S];M&&M.pubParms&&(A=Object.keys(M.pubParms).includes(C))}return A})(t,M,S)||(W+=s(t,M,S,A))})),V+=W}if(t.prpMap){W="";const S={};Object.keys(t.prpMap).forEach((A=>{Object.keys(t.prpMap[A]).forEach((M=>{const I=t.prpMap[A][M].split("|");Object.hasOwnProperty.call(S,A)||(S[A]=s(t,I[0],I[1],C,A),W+=S[A])}))})),V+=W}}}return I&&(W="",Object.keys(I).forEach((t=>{W+=a(M+t,I[t])})),V+=W),Promise.resolve(V)},S.validateArguments=function(t=[],S=0,C=1,A=[]){if(t.lengthC)throw new TypeError("Too many arguments provided: ".concat([].join.call(t,", ")));if(Array.isArray(A)){let S=Math.min(t.length,A.length)-1;for(;S>=0;S--){if(typeof t[S]!==A[S])throw new TypeError("Parameter ".concat(S," is of type ").concat(typeof t[S]," rather than the expected type ").concat(A[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{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 A=t.windowState;if("string"!=typeof A)throw new TypeError("Invalid parameters. windowState is ".concat(typeof A));{const t=S.allowedWS;if(!t.includes(A.toLowerCase()))throw new TypeError("Invalid windowState=".concat(A," is not in ").concat(t))}}},8203:(t,S,C)=>{Object.defineProperty(S,"__esModule",{value:!0}),S.default=S.register=void 0;var A,M=(A=C(7212))&&A.__esModule?A:{default:A},I=C(6134);const a=function(t){(0,I.validateArguments)(arguments,1,1,["string"]);const S=C.g.portlet.data.pageRenderState;return new Promise(((C,A)=>{(0,I.validatePortletId)(S,t)?C(new M.default(t)):A(new Error("Invalid portlet ID"))}))};S.register=a;var R=a;S.default=R},7370:(t,S,C)=>{Object.defineProperty(S,"__esModule",{value:!0}),S.default=void 0;var A=a(C(6454)),M=a(C(36)),I=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 A=Object.getOwnPropertySymbols(t);S&&(A=A.filter((function(S){return Object.getOwnPropertyDescriptor(t,S).enumerable}))),C.push.apply(C,A)}return C}function c(t){for(var S=1;S',navigation:".sidenav-menu-slider",position:"left",type:"relative",typeMobile:"relative",url:null,width:"225px"},D=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),D.get(t)}const z=[/^aria-/,/^data-/,/^type$/];function y(t,S,C=null){const A=new CustomEvent(S,{detail:C});t.dispatchEvent(A)}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 j(t,S,C){if(t){W[S]||(W[S]={},document.addEventListener(S,(t=>function(t,S){Object.keys(W[t]).forEach((C=>{let A=!1,M=S.target;for(;M&&(A=M.matches&&M.matches(C),!A);)M=M.parentNode;A&&W[t][C].emit("click",S)}))}(S,t))));const M=W[S],I="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);M[I]||(M[I]=new A.default);const R=M[I].on(S,(t=>{t.defaultPrevented||C(t)}));return{dispose(){R.dispose()}}}return null}function P(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)},_getSidenavWidth(){const t=this.options.widthOriginal;let S=t;const C=window.innerWidth;return C=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,A=t.querySelector(".sidebar-body");if(!C._fetchPromise&&A){for(;A.firstChild;)A.removeChild(A.firstChild);const t=document.createElement("div");g(t,"sidenav-loading"),t.innerHTML=C.options.loadingIndicatorTPL,A.appendChild(t),C._fetchPromise=(0,I.default)(S),C._fetchPromise.then((t=>{if(!t.ok)throw new Error("Failed to fetch ".concat(S));return t.text()})).then((S=>{const M=document.createRange();M.selectNode(A);const I=M.createContextualFragment(S);A.removeChild(t),A.appendChild(I),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 A=document.body.scrollWidth-C.getBoundingClientRect().right,M=t.gutter+t.width;const I=getComputedStyle(C).maxWidth||getComputedStyle(C).width;/px$/.test(I)&&(A=(document.body.scrollWidth-P(I))/2,A>t.width?M="":A>0&&A{"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=A=>{if("relative"===this._getType()&&m(S,"open")&&C.closest(".page-maximized")){const M=document.querySelector(A.detail.options.container+" .sidenav-menu");if(!M)return;const I=M.getBoundingClientRect().width,R=document.body.scrollWidth-C.getBoundingClientRect().right-I/2,D=R>0?t.width+t.gutter-R:t.width+t.gutter;g(S,"sidenav-transition"),b(C,{"padding-right":w(D)})}},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 A=this._isDesktop();this._handleOnScreenChange||(this._handleOnScreenChange=()=>{const t=this._getType();"relative"===t&&m(S,"open")&&(this.setHeight(),this.setWidth()),this._isDesktop()!==A&&("relative"!==t?(g(S,"sidenav-fixed"),C.style.paddingRight="",C.style.minHeight=""):_(S,"sidenav-fixed"),A=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 A=C.querySelector(".sidenav-menu"),M=m(S,"closed"),I=this._isSidenavRight(),R=this._getSidenavWidth();M?(b(A,{width:w(R)}),I&&b(A,{[t.rtl?"left":"right"]:w(R)})):(this.showSidenav(),this.setHeight())},_renderUI(){const t=this.options,S=document.querySelector(t.container);if(!S)return;const C=this.toggler,A=this._getType();if(this.useDataAttribute||(V||(V=(0,M.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"!==A&&g(S,"sidenav-fixed"),this._renderNav()),C.parentElement&&t.skipLinkLabel&&(null==S?void 0:S.id)){this.skipLink=document.createElement("a"),this.skipLink.className="d-none mx-2 px-2 py-1",this.skipLink.href="#".concat(S.id),this.skipLink.textContent=t.skipLinkLabel;const{nextElementSibling:A,parentElement:M}=C;A?M.insertBefore(this.skipLink,A):M.appendChild(this.skipLink)}this._updateSkipLink(),b(S,{display:""})},_subscribeClickSidenavClose(){const t=this,S=t.options.container;if(!t._sidenavCloseSubscription){const C="".concat(S," .sidenav-close");t._sidenavCloseSubscription=j(C,"click",(function(S){S.preventDefault(),t.toggle()}))}},_subscribeClickTrigger(){const t=this;if(!t._togglerSubscription){const S=t.toggler;t._togglerSubscription=j(S,"click",(function(S){t.toggle(),S.preventDefault()}))}},_subscribeSidenavTransitionEnd(t,S){setTimeout((()=>{_(t,"sidenav-transition"),S()}),E.TRANSITION_DURATION)},_updateSkipLink(){const t=document.querySelector(this.options.container);t&&this.skipLink&&(m(t,"closed")?(this.skipLink.classList.add("d-none"),this.skipLink.classList.remove("sr-only","sr-only-focusable")):(this.skipLink.classList.add("sr-only","sr-only-focusable"),this.skipLink.classList.remove("d-none")))},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),D.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),this.skipLink&&(this.skipLink.parentElement.removeChild(this.skipLink),this.skipLink=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),A=S.querySelector(t.navigation),M=A.querySelector(".sidenav-menu"),I=this._isSidenavRight();let R=t.rtl?"right":"left";I&&(R=t.rtl?"left":"right"),b(C,{["padding-"+R]:"",[R]:""}),b(A,{width:""}),I&&b(M,{[R]:w(this._getSidenavWidth())})}},hideSimpleSidenav(){const t=this,S=t.options;if(!t._isSimpleSidenavClosed()){const C=document.querySelector(S.container),A=document.querySelector(S.content);if(!C||!A)return;const M=S.closedClass,I=S.openClass,R=t.toggler,D=R.dataset.target||R.getAttribute("href");t._emit("closedStart.lexicon.sidenav"),y(document,"closedStart.lexicon.sidenav",t),t._subscribeSidenavTransitionEnd(A,(()=>{_(C,"sidenav-transition"),_(R,"sidenav-transition"),t._emit("closed.lexicon.sidenav"),y(document,"closed.lexicon.sidenav",t)})),m(A,I)&&v(A,{[M]:!0,[I]:!1,"sidenav-transition":!0}),g(C,"sidenav-transition"),g(R,"sidenav-transition"),v(C,{[M]:!0,[I]:!1});const z=document.querySelectorAll('[data-target="'.concat(D,'"], [href="').concat(D,'"]'));Array.from(z).forEach((t=>{v(t,{active:!1,[I]:!1}),v(t,{active:!1,[I]:!1})})),t._updateSkipLink()}},init(t,S){const C="liferay-sidenav"===t.dataset.toggle;(S=c(c({},R),S)).breakpoint=P(S.breakpoint),S.container=S.container||t.dataset.target||t.getAttribute("href"),S.gutter=P(S.gutter),S.rtl="rtl"===document.dir,S.width=P(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.skipLinkLabel=t.dataset.skipLinkLabel,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 A.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),A=S.querySelector(t.navigation),M=S.querySelector(".sidenav-menu"),I=C.closest(".page-maximized")?window.innerHeight-M.getBoundingClientRect().top:C.getBoundingClientRect().height,R=A.getBoundingClientRect().height,D=w(Math.max(I,R));b(C,{"min-height":D}),b(A,{height:"100%","min-height":D}),b(M,{height:"100%","min-height":D})}},setWidth(){const t=this.options,S=document.querySelector(t.container),C=S.querySelector(t.content),A=S.querySelector(t.navigation);if(!S||!C||!A)return;const M=A.querySelector(".sidenav-menu"),I=this._isSidenavRight(),R=this._getSidenavWidth(),D=R+t.gutter,z=t.url;z&&this._loadUrl(M,z),b(A,{width:w(R)}),b(M,{width:w(R)});let W=t.rtl?"right":"left";I&&(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 M=m(S,"open")?O(A)-t.gutter:O(A)-D;const R=O(C),z=P(getComputedStyle(C).width);let W="";t.rtl&&I||!t.rtl&&"left"===t.position?(M=O(A)+D,M>R&&(W=M-R)):(t.rtl&&"left"===t.position||!t.rtl&&I)&&M=D&&(W=D)),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 A=C.querySelector(".sidenav-menu"),M=t.url;M&&this._loadUrl(A,M),this.setWidth()},showSimpleSidenav(){const t=this,S=t.options;if(t._isSimpleSidenavClosed()){const C=document.querySelector(S.container),A=document.querySelector(S.content);if(!C||!A)return;const M=S.closedClass,I=S.openClass,R=t.toggler,D=R.dataset.url;D&&t._loadUrl(C,D),t._emit("openStart.lexicon.sidenav"),y(document,"openStart.lexicon.sidenav",t),t._subscribeSidenavTransitionEnd(A,(()=>{_(C,"sidenav-transition"),_(R,"sidenav-transition"),t._emit("open.lexicon.sidenav"),y(document,"open.lexicon.sidenav",t)})),v(A,{[M]:!1,[I]:!0,"sidenav-transition":!0}),v(C,{[M]:!1,[I]:!0,"sidenav-transition":!0}),v(R,{active:!0,[I]:!0,"sidenav-transition":!0})}},toggle(){this.useDataAttribute?this.toggleSimpleSidenav():this.toggleNavigation()},toggleNavigation(t){const S=this,C=S.options,A=S._getType(),M=document.querySelector(C.container),I=M.querySelector(".sidenav-menu");if(!M||!I)return;const R=S.toggler,D=C.width,z="boolean"==typeof t?t:m(M,"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(M,(()=>{const t=M.querySelector(".sidenav-menu");m(M,"closed")?(S.clearHeight(),v(R,{open:!1,"sidenav-transition":!1}),S._emit("closed.lexicon.sidenav"),y(document,"closed.lexicon.sidenav",S)):(v(R,{open:!0,"sidenav-transition":!1}),S._emit("open.lexicon.sidenav"),y(document,"open.lexicon.sidenav",S)),S._isDesktop()||t.focus()})),z){"relative"===A&&S.setHeight(),b(I,{width:w(D)});const t=C.rtl?"left":"right";W&&b(I,{[t]:""})}g(M,"sidenav-transition"),g(R,"sidenav-transition"),z?S.showSidenav():S.hideSidenav(),v(M,{closed:!z,open:z}),v(R,{active:z,open:z}),this._updateSkipLink()},toggleSimpleSidenav(){this._isSimpleSidenavClosed()?this.showSimpleSidenav():this.hideSimpleSidenav(),this._updateSkipLink()},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=D.get(t);return C||(C=new E(t,S),D.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,A=null;return function(...M){const I=this,R=Date.now(),s=()=>{A=setTimeout((()=>{A=null}),S),C=R,t.apply(I,M)};if(null===A)s();else{const t=Math.max(C+S-R,0);clearTimeout(A),A=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===M.NECESSARY||"false"!==(0,A.getCookie)(t,M.NECESSARY)},S.CONSENT_TYPES=void 0;var A=C(7322);const M={FUNCTIONAL:"CONSENT_TYPE_FUNCTIONAL",NECESSARY:"CONSENT_TYPE_NECESSARY",PERFORMANCE:"CONSENT_TYPE_PERFORMANCE",PERSONALIZATION:"CONSENT_TYPE_PERSONALIZATION"};S.CONSENT_TYPES=M},7322:(t,S,C)=>{Object.defineProperty(S,"__esModule",{value:!0}),S.getCookie=i,S.removeCookie=a,S.setCookie=s,S.default=void 0;var A=C(7267);const o=(t,S,C={})=>{let A="".concat(t,"=").concat(S);C.path||(A+="; path=/"),C.expires||"max-age"in C||(A+="; max-age=".concat(31536e3));for(const[t,S]of Object.entries(C))"secure"===t&&(A+=S?"; secure":""),A+="; ".concat(t,"=").concat(S);return A};function i(t,S){var C;if((0,A.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,M){return!!(0,A.checkConsent)(C)&&(document.cookie=o(t,S,M),!0)}var M={TYPES:A.CONSENT_TYPES,get:i,remove:a,set:s};S.default=M},6549:(t,S)=>{function n(t,S){var C=Object.keys(t);if(Object.getOwnPropertySymbols){var A=Object.getOwnPropertySymbols(t);S&&(A=A.filter((function(S){return Object.getOwnPropertyDescriptor(t,S).enumerable}))),C.push.apply(C,A)}return C}function r(t){for(var S=1;S{M.set(S,t)})),fetch(t,r(r(r({},I),S),{},{headers:M}))}},85:(t,S,C)=>{Object.defineProperty(S,"__esModule",{value:!0}),S.default=function(t){if(t=(0,A.default)(t),(0,M.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,A=t.closest("form");if(!A||C)t.focus();else if(A){const S=A.dataset.fmNamespace+"formReady",n=C=>{A.getAttribute("name")===C.formName&&(t.focus(),Liferay.detach(S,n))};Liferay.on(S,n)}}};var A=i(C(8999)),M=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 A=t.dataset.fmNamespace||"";C=t.elements[A+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,A])=>{const I=C?"".concat(C,"[").concat(t,"]"):t;Array.isArray(A)?A.forEach((t=>{e({[I]:t},S)})):!(0,M.default)(A)||A instanceof File?S.append(I,A):e(A,S,I)})),S};var A,M=(A=C(889))&&A.__esModule?A:{default:A}},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,A.default)(S)){const{data:C,url:I}=S;if(!(0,A.default)(C))return;(0,M.default)(t,C),void 0===I?submitForm(t):"string"==typeof I&&submitForm(t,I)}else submitForm(t)};var A=i(C(889)),M=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,A.default)(S)&&Object.entries(S).forEach((([S,C])=>{const A=(0,M.default)(t,S);A&&(A.value=C)}))};var A=i(C(889)),M=i(C(8002));function i(t){return t&&t.__esModule?t:{default:t}}},8206:(t,S)=>{function n(t,S){var C=Object.keys(t);if(Object.getOwnPropertySymbols){var A=Object.getOwnPropertySymbols(t);S&&(A=A.filter((function(S){return Object.getOwnPropertyDescriptor(t,S).enumerable}))),C.push.apply(C,A)}return C}function r(t){for(var S=1;S=I&&(V=z,t/=I,W=1),t>=I&&(V=R,t/=I,W=1);let $=t.toFixed(W);return"."!==M&&($=$.replace(/\./,M)),$+(A?" ":"")+V};const C={addSpaceBeforeSuffix:!1,decimalSeparator:".",denominator:1024,suffixGB:"GB",suffixKB:"KB",suffixMB:"MB"}},7019:(t,S)=>{function n(t,S){var C=Object.keys(t);if(Object.getOwnPropertySymbols){var A=Object.getOwnPropertySymbols(t);S&&(A=A.filter((function(S){return Object.getOwnPropertyDescriptor(t,S).enumerable}))),C.push.apply(C,A)}return C}function r(t){for(var S=1;S(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+=L(ce,ne,re)+t:M.test(t)?(le+=L(ce,ne,re)+t,ie++,ae=!0,(A.test(t)||R.test(t))&&(ie--,ae=0!==ie)):A.test(t)?(le+=t,ie--,ae=0!==ie):D.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:L(ce,ne,re)+t:G.test(t)?le+=ae?t:L(--ce,ne,re)+t:Z.test(t)?le+=ae?t:L(ce,ne,re)+t:(I.test(t),le+=L(ce,ne,re)+t):le+=ae?t:L(ce++,ne,re)+t,new RegExp("^"+ne).test(le)&&(le=le.slice(ne.length))})),le};const C=//g,A=/-->|\]>/,M=//,K=/>\s+",ee=new RegExp(Q,"g"),te={newLine:"\r\n",tagIndent:"\t"};function L(t,S,C){return S+new Array(t+1).join(C)}},1511:(t,S)=>{function n(t,S,C,A){t="string"==typeof t?document.querySelector(t):t._node||t;let M="input[type=checkbox]";C&&(M+="[name=".concat(C,"]"));const I=Array.from(t.querySelectorAll(M));return I.length?I.reduce(((t,C)=>{const{checked:M,disabled:I,name:R,value:D}=C;return D&&R!==S&&M===A&&!I&&t.push(D),t}),[]).join():""}Object.defineProperty(S,"__esModule",{value:!0}),S.getCheckedCheckboxes=function(t,S,C){return n(t,S,C,!0)},S.getUncheckedCheckboxes=function(t,S,C){return n(t,S,C,!1)}},7068:(t,S,C)=>{Object.defineProperty(S,"__esModule",{value:!0}),S.default=function(t,S){if(!(0,M.default)(t)||(0,M.default)(t)&&"IMG"!==t.tagName)throw new TypeError("Parameter imagePreview must be an image");if(!(0,M.default)(S))throw new TypeError("Parameter region must be an object");const C=t.naturalWidth/t.offsetWidth,A=t.naturalHeight/t.offsetHeight;return{height:S.height?S.height*A: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*A,0):0}};var A,M=(A=C(889))&&A.__esModule?A:{default:A}},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,M.default)(t);return"string"==typeof S?document.querySelector(S):S.jquery?S[0]:S};var A,M=(A=C(4968))&&A.__esModule?A:{default:A}},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'\n\t\t\t\t\n\t\t\t')}(t,S),A=document.createElement("div");return A.innerHTML=C,A.firstChild}},7320:(t,S)=>{Object.defineProperty(S,"__esModule",{value:!0}),S.default=function(t,S=""){return'"}},4397:(t,S,C)=>{Object.defineProperty(S,"__esModule",{value:!0}),S.default=function(){let t=I;if(!t){const S=(0,M.default)().Liferay.Util,C=window.name,A=S.Window.getById(C);A&&(t=A._opener,I=t)}return t||window.opener||window.parent};var A,M=(A=C(260))&&A.__esModule?A:{default:A};let I},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,A=window.parent;for(;A!==window;){try{if(void 0===A.location.href)break;S=A.themeDisplay}catch(t){break}if(!S||"simulationDeviceIframe"===window.name)break;if(!S.isStatePopUp()||A===A.parent){t=A;break}A=A.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,M.default)().Liferay.Util.Window.getById(t)};var A,M=(A=C(260))&&A.__esModule?A:{default:A}},7387:(t,S)=>{Object.defineProperty(S,"__esModule",{value:!0}),S.escapeHTML=function(t){return t.replace(I,(t=>C[t]))},S.unescapeHTML=function(t){return t.replace(R,(t=>(new DOMParser).parseFromString(t,"text/html").documentElement.textContent))},S.MAP_HTML_CHARS_ESCAPED=void 0;const C={'"':""","&":"&","'":"'","/":"/","<":"<",">":">","`":"`"};S.MAP_HTML_CHARS_ESCAPED=C;const A={};Object.entries(C).forEach((([t,S])=>{A[S]=t}));const M=Object.keys(C),I=new RegExp("[".concat(M.join(""),"]"),"g"),R=/&([^\s;]+);/g},6515:(t,S,C)=>{Object.defineProperty(S,"__esModule",{value:!0}),S.default=function e(t,S,C){let A=!1;if(t=(0,M.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,M.default)(S);const I={};if(I.left=S.scrollX,I.right=I.left+S.innerWidth,I.top=S.scrollY,I.bottom=I.top+S.innerHeight,A=C.bottom<=I.bottom&&C.left>=I.left&&C.right<=I.right&&C.top>=I.top,A){const M=S.frameElement;if(M){let R=M.getBoundingClientRect();R={left:R.left+window.scrollX,top:R.top+window.scrollY};const D=R.left-I.left;C.left+=D,C.right+=D;const z=R.top-I.top;C.top+=z,C.bottom+=z,A=e(t,S.parent,C)}}}return A};var A,M=(A=C(8999))&&A.__esModule?A:{default:A}},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{Object.defineProperty(S,"__esModule",{value:!0}),S.default=function(){return window.innerWidth{var A;Object.defineProperty(S,"__esModule",{value:!0}),S.default=void 0;var M=new(((A=C(3765))&&A.__esModule?A:{default:A}).default)(localStorage);S.default=M},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,n=(...C)=>{let A;if(C.find((t=>"object"==typeof t))){const t=C.filter((t=>"object"==typeof t));A=t.map((t=>JSON.stringify(t))),C.length>1&&t.length"object"!=typeof t&&A.push(t))),A=A.join(",")}else A=C.length>1?C.join(","):C[0];if(S.has(A))return S.get(A);{const M=t.apply(null,C);return S.set(A,M),M}};return n.getCache=()=>S,n}},386:(t,S)=>{Object.defineProperty(S,"__esModule",{value:!0}),S.default=function(t,S){var C,A,M;let I=t;"URL"===(null==t||null===(C=t.constructor)||void 0===C?void 0:C.name)&&(I=String(t)),(null===(A=Liferay.SPA)||void 0===A||null===(M=A.app)||void 0===M?void 0:M.canNavigate(I))?(Liferay.SPA.app.navigate(I),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}(I)&&(window.location.href=I)}},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 A;Object.defineProperty(S,"__esModule",{value:!0}),S.default=function(t,S){let C;return"object"!=typeof S?C=M(t,S):(C={},Object.keys(S).forEach((A=>{const I=A;A=M(t,A),C[A]=S[I]}))),C};const M=(0,((A=C(6353))&&A.__esModule?A:{default:A}).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,M.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 A=0;A{Object.defineProperty(S,"__esModule",{value:!0}),S.default=function(t,S){const C=(0,M.default)();t.openingWindow=window,C.Liferay.Util._openWindowProvider(t,S)};var A,M=(A=C(260))&&A.__esModule?A:{default:A}},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,M.default)(t,a(a({},S),{},{p_p_lifecycle:"1"}))};var A,M=(A=C(4821))&&A.__esModule?A:{default:A};function i(t,S){var C=Object.keys(t);if(Object.getOwnPropertySymbols){var A=Object.getOwnPropertySymbols(t);S&&(A=A.filter((function(S){return Object.getOwnPropertyDescriptor(t,S).enumerable}))),C.push.apply(C,A)}return C}function a(t){for(var S=1;S{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 A;0===t.indexOf(Liferay.ThemeDisplay.getPortalURL())||(A=t,I.test(A))||(t=0!==t.indexOf("/")?"".concat(Liferay.ThemeDisplay.getPortalURL(),"/").concat(t):Liferay.ThemeDisplay.getPortalURL()+t);const R=new URL(t),D=new URLSearchParams(R.search),z=S.p_p_id||D.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,M.default)(z)),Object.keys(S).forEach((t=>{let A;A=C.has(t)?t:"".concat(W).concat(t),D.set(A,S[t])})),R.search=D.toString(),R};var A,M=(A=C(6797))&&A.__esModule?A:{default:A};const I=/^[a-z][a-z0-9+.-]*:/i},6535:(t,S,C)=>{Object.defineProperty(S,"__esModule",{value:!0}),S.default=function(t,S={}){return(0,M.default)(t,a(a({},S),{},{p_p_lifecycle:"0"}))};var A,M=(A=C(4821))&&A.__esModule?A:{default:A};function i(t,S){var C=Object.keys(t);if(Object.getOwnPropertySymbols){var A=Object.getOwnPropertySymbols(t);S&&(A=A.filter((function(S){return Object.getOwnPropertyDescriptor(t,S).enumerable}))),C.push.apply(C,A)}return C}function a(t){for(var S=1;S{Object.defineProperty(S,"__esModule",{value:!0}),S.default=function(t,S={}){return(0,M.default)(t,a(a({},S),{},{p_p_lifecycle:"2"}))};var A,M=(A=C(4821))&&A.__esModule?A:{default:A};function i(t,S){var C=Object.keys(t);if(Object.getOwnPropertySymbols){var A=Object.getOwnPropertySymbols(t);S&&(A=A.filter((function(S){return Object.getOwnPropertyDescriptor(t,S).enumerable}))),C.push.apply(C,A)}return C}function a(t){for(var S=1;S{Object.defineProperty(S,"__esModule",{value:!0}),S.default=function(t,S,C,A){const I=document.getElementById("".concat(A).concat(t));I&&(I.value=0);const R=document.getElementById("".concat(A).concat(S));R&&(R.value=""),(0,M.default)(C,!0),Liferay.fire("entitySelectionRemoved")};var A,M=(A=C(1521))&&A.__esModule?A:{default:A}},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 A=document.getElementById("".concat(S).concat(t.nameString));A&&(A.value=Liferay.Util.unescape(t.nameValue));const I=document.getElementById("".concat(S,"removeFolderButton"));I&&(0,M.default)(I,!1)};var A,M=(A=C(1521))&&A.__esModule?A:{default:A}},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,M.default)(s(),{body:C,method:"POST"}).then((t=>t.text())).then((t=>{if(t.startsWith(I)){const S=t.substring(I.length);t=JSON.parse(S)}return t}))},S.setSessionValue=function(t,S,C={}){const A=a("set");return S&&"object"==typeof S&&(S=I+JSON.stringify(S)),A.append(t,S),C.useHttpSession&&A.append("useHttpSession",!0),(0,M.default)(s(),{body:A,method:"POST"})};var A,M=(A=C(6549))&&A.__esModule?A:{default:A};const I="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 A;Object.defineProperty(S,"__esModule",{value:!0}),S.default=void 0;var M=new(((A=C(3765))&&A.__esModule?A:{default:A}).default)(sessionStorage);S.default=M},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 A=C(7267);S.default=class{constructor(t){var S,C,M;S=this,C="TYPES",M=A.CONSENT_TYPES,C in S?Object.defineProperty(S,C,{value:M,enumerable:!0,configurable:!0,writable:!0}):S[C]=M,this.storage=t}clear(){return this.storage.clear()}getItem(t,S){return(0,A.checkConsent)(S)?this.storage.getItem(t):null}key(t,S){return(0,A.checkConsent)(S)?this.storage.key(t):null}removeItem(t){return this.storage.removeItem(t)}setItem(t,S,C){return!!(0,A.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 A;Object.defineProperty(S,"__esModule",{value:!0}),S.default=void 0;var M=(0,((A=C(6353))&&A.__esModule?A:{default:A}).default)((t=>t.split("").map((t=>t.charCodeAt())).join("")));S.default=M},4601:(t,S)=>{Object.defineProperty(S,"__esModule",{value:!0}),S.default=function(t,S,C,A){const M=document.getElementById(t),I=document.getElementById(S);if(M&&I){let t=M.checked;C&&(t=!t),t?I.classList.remove("hide"):I.classList.add("hide"),M.addEventListener("click",(()=>{I.classList.toggle("hide"),A&&I.querySelectorAll("input[type=checkbox]").forEach((t=>{t.checked=M.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 A="visible"===Liferay._editControlsState,D=R[A],z=C.querySelector(".lexicon-icon");z&&(D.icon=z),S.classList.add(D.cssClass),Liferay.fire("toggleControls",{enabled:A}),C.addEventListener("click",(()=>{A=!A;const t=D;D=R[A],S.classList.toggle(t.cssClass),S.classList.toggle(D.cssClass);const C=D.iconCssClass,W=D.state,V=(0,M.default)(C);D.icon=V,z.replaceWith(V),z=V,Liferay._editControlsState=W,(0,I.setSessionValue)("com.liferay.frontend.js.web_toggleControls",W),Liferay.fire("toggleControls",{enabled:A,src:"ui"})}))};var A,M=(A=C(455))&&A.__esModule?A:{default:A},I=C(3833);const R={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 A=document.getElementById(t);if(A){let t;S&&(Array.isArray(S)&&(S=S.join(",#")),t=document.querySelectorAll("#".concat(S)),t.forEach((t=>{A.checked?t.classList.remove("hide"):t.classList.add("hide")}))),A.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 A=document.getElementById(t),M=document.getElementById(C);if(!A||!M)return;const I="function"==typeof S;n(A,M,I,S),A.addEventListener("change",(()=>n(A,M,I,S)))};const n=(t,S,C,A)=>{const M=t.value,I=C?A(M,A):A===M;S.classList.toggle("hide",!I)}},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 A="__lodash_hash_undefined__",M=9007199254740991,I="[object Arguments]",R="[object Array]",D="[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]",ne="[object DataView]",re=/\.|\[(?:[^[\]]*|(["'])(?:(?!\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[I]=ue[R]=ue[te]=ue[D]=ue[ne]=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,A){for(var M=-1,I=t?t.length:0;++M-1},we.prototype.set=function(t,S){var C=this.__data__,A=je(C,t);return A<0?C.push([t,S]):C[A][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 xe(this,t).delete(t)},Oe.prototype.get=function(t){return xe(this,t).get(t)},Oe.prototype.has=function(t){return xe(this,t).has(t)},Oe.prototype.set=function(t,S){return xe(this,t).set(t,S),this},Se.prototype.add=Se.prototype.push=function(t){return this.__data__.set(t,A),this},Se.prototype.has=function(t){return this.__data__.has(t)},Le.prototype.clear=function(){this.__data__=new we},Le.prototype.delete=function(t){return this.__data__.delete(t)},Le.prototype.get=function(t){return this.__data__.get(t)},Le.prototype.has=function(t){return this.__data__.has(t)},Le.prototype.set=function(t,S){var C=this.__data__;if(C instanceof we){var A=C.__data__;if(!St||A.length<199)return A.push([t,S]),this;C=this.__data__=new Oe(A)}return C.set(t,S),this};var Rt,Dt=(Rt=function(t,S){return t&&Ce(t,S,ot)},function(t,S){if(null==t)return t;if(!Ze(t))return Rt(t,S);for(var C=t.length,A=-1,M=Object(t);++AD))return!1;var W=I.get(t);if(W&&I.get(S))return W==S;var V=-1,$=!0,Y=1&M?new Se:void 0;for(I.set(t,S),I.set(S,t);++V-1&&t%1==0&&t-1&&t%1==0&&t<=M}function et(t){var S=typeof t;return!!t&&("object"==S||"function"==S)}function tt(t){return!!t&&"object"==typeof t}function nt(t){return"symbol"==typeof t||tt(t)&&yt.call(t)==Q}var zt=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,A=Array(t);++C{t=C.nmd(t);var A="__lodash_hash_undefined__",M=9007199254740991,I="[object Arguments]",R="[object Array]",D="[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]",ne=/^\[object .+?Constructor\]$/,re=/^(?: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[I]=oe[R]=oe[ee]=oe[D]=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,A=null==t?0:t.length;++CD))return!1;var W=I.get(t);if(W&&I.get(S))return W==S;var V=-1,$=!0,Y=2&C?new me:void 0;for(I.set(t,S),I.set(S,t);++V-1},_e.prototype.set=function(t,S){var C=this.__data__,A=we(C,t);return A<0?(++this.size,C.push([t,S])):C[A][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),A=C.size;return C.set(t,S),this.size+=C.size==A?0:1,this},me.prototype.add=me.prototype.push=function(t){return this.__data__.set(t,A),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 A=C.__data__;if(!Ot||A.length<199)return A.push([t,S]),this.size=++C.size,this;C=this.__data__=new ve(A)}return C.set(t,S),this.size=C.size,this};var kt=vt?function(t){return null==t?[]:(t=Object(t),function(S,C){for(var A=-1,M=null==S?0:S.length,I=0,R=[];++A-1&&t%1==0&&t-1&&t%1==0&&t<=M}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)&&!De(S)?function(t,S){var C=Dt(t),A=!C&&Rt(t),M=!C&&!A&&Nt(t),I=!C&&!A&&!M&&qt(t),R=C||A||M||I,D=R?function(t,S){for(var C=-1,A=Array(t);++C{var A,M=/&(?:amp|lt|gt|quot|#39|#96);/g,I=RegExp(M.source),R="object"==typeof C.g&&C.g&&C.g.Object===Object&&C.g,D="object"==typeof self&&self&&self.Object===Object&&self,z=R||D||Function("return this")(),W=(A={"&":"&","<":"<",">":">",""":'"',"'":"'","`":"`"},function(t){return null==A?void 0:A[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))&&I.test(t)?t.replace(M,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 A=C||0,M=S;return[M[t[A++]],M[t[A++]],M[t[A++]],M[t[A++]],"-",M[t[A++]],M[t[A++]],"-",M[t[A++]],M[t[A++]],"-",M[t[A++]],M[t[A++]],"-",M[t[A++]],M[t[A++]],M[t[A++]],M[t[A++]],M[t[A++]],M[t[A++]]].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 A=new Array(16);t.exports=function(){for(var t,S=0;S<16;S++)0==(3&S)&&(t=4294967296*Math.random()),A[S]=t>>>((3&S)<<3)&255;return A}}},8633:(t,S,C)=>{var A,M,I=C(1814),R=C(26),D=0,z=0;t.exports=function(t,S,C){var W=S&&C||0,V=S||[],$=(t=t||{}).node||A,Y=void 0!==t.clockseq?t.clockseq:M;if(null==$||null==Y){var G=I();null==$&&($=A=[1|G[0],G[1],G[2],G[3],G[4],G[5]]),null==Y&&(Y=M=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-D+(Z-z)/1e4;if(K<0&&void 0===t.clockseq&&(Y=Y+1&16383),(K<0||X>D)&&void 0===t.nsecs&&(Z=0),Z>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");D=X,z=Z,M=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||R(V)}}},S={};function n(C){var A=S[C];if(void 0!==A)return A.exports;var M=S[C]={id:C,loaded:!1,exports:{}};return t[C](M,M.exports,n),M.loaded=!0,M.exports}n.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}(),n.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(n(8686)),A=_e(n(1593)),M=_e(n(8652)),I=_e(n(1093)),R=_e(n(1991)),D=_e(n(3337)),z=n(2801),W=n(34),V=n(9356),$=n(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={},A=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var M in t)if(Object.prototype.hasOwnProperty.call(t,M)){var I=A?Object.getOwnPropertyDescriptor(t,M):null;I&&(I.get||I.set)?Object.defineProperty(C,M,I):C[M]=t[M]}return C.default=t,S&&S.set(t,C),C}(n(5659)),G=_e(n(7370)),X=_e(n(2534)),Z=_e(n(9296)),K=_e(n(3873)),J=_e(n(9094)),Q=_e(n(7322)),ee=_e(n(6549)),te=_e(n(85)),ne=_e(n(8002)),re=_e(n(7494)),oe=_e(n(7535)),ie=_e(n(5273)),ae=_e(n(8206)),se=_e(n(7019)),ce=n(1511),le=_e(n(7068)),ue=_e(n(4968)),de=_e(n(8999)),fe=_e(n(775)),pe=_e(n(455)),he=_e(n(7320)),ye=_e(n(4397)),Ve=_e(n(1166)),$e=_e(n(6797)),Ke=_e(n(6506)),rt=_e(n(260)),at=_e(n(4612)),st=_e(n(9105)),ct=n(7387),lt=_e(n(6515)),ut=_e(n(5506)),dt=_e(n(7442)),ft=_e(n(4161)),pt=_e(n(386)),ht=_e(n(1625)),yt=_e(n(4294)),_t=_e(n(1357)),gt=_e(n(742)),vt=n(4874),mt=_e(n(1146)),bt=_e(n(4821)),wt=_e(n(6535)),Ot=_e(n(576)),St=_e(n(2468)),Lt=_e(n(4361)),jt=n(3833),Pt=_e(n(8021)),Et=_e(n(2452)),Tt=_e(n(8956)),Ct=_e(n(7639)),At=_e(n(4601)),Mt=_e(n(9174)),It=_e(n(1521)),Ut=_e(n(6544)),kt=_e(n(3111)),xt=_e(n(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=D.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=R.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=ne.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=rt.default,Liferay.Util.getURLWithSessionId=at.default,Liferay.Util.getWindow=st.default,Liferay.Util.groupBy=A.default,Liferay.Util.inBrowserView=lt.default,Liferay.Util.isEqual=M.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=re.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=It.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=Lt.default,Liferay.Util.setPortletConfigurationIconAction=vt.setPortletConfigurationIconAction,Liferay.Util.showCapsLock=Et.default,Liferay.Util.sub=Tt.default,Liferay.Util.Session={get:jt.getSessionValue,set:jt.setSessionValue},Liferay.Util.toggleBoxes=At.default,Liferay.Util.toggleControls=Mt.default,Liferay.Util.toggleRadio=Ut.default,Liferay.Util.toggleSelectBox=kt.default,Liferay.Util.unescape=I.default,Liferay.Util.unescapeHTML=ct.unescapeHTML,Liferay.Util.Cookie=Q.default,Liferay.Util.LocalStorage=ft.default,Liferay.Util.SessionStorage=Pt.default})();var A=window;for(var M in C)A[M]=C[M];C.__esModule&&Object.defineProperty(A,"__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("
");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('
');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)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("
");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:'Il\x20y\x20a\x20eu\x20une\x20erreur\x20inattendue\x2e\x20Veuillez\x20rafraîchir\x20la\x20page\x20actuelle\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:'Êtes-vous\x20sûr\x20de\x20vouloir\x20supprimer\x20ce\x20composant\x20\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('
');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('
{0}
',['Ce\x20changement\x20sera\x20affiché\x20uniquement\x20après\x20que\x20vous\x20régénériez\x20la\x20page\x20courante\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}; !function(){const e=Symbol.for("__LIFERAY_WEBPACK_CONTAINER_REQUESTS__"),n=Symbol.for("__LIFERAY_WEBPACK_CONTAINERS__"),o=Symbol.for("__LIFERAY_WEBPACK_GET_MODULE__"),r=Symbol.for("__LIFERAY_WEBPACK_SHARED_SCOPE__"),t=Symbol.for("__LIFERAY_WEBPACK_HELPERS__");window[e]=window[e]||{},window[n]=window[n]||{},window[r]=window[r]||{};const i=window[e],c=window[r];let s=1;function a(...e){Liferay.EXPLAIN_RESOLUTIONS&&console.log(...e)}function u(e,o,r,t){if(i[o])throw new Error("A request is already registered for container ".concat(o));const s=function(e){if("@"===e[0]){const n=e.indexOf("/");e=e.substr(n+1)}return"/o/"+e+"/__generated__/container.js?languageId="+Liferay.ThemeDisplay.getLanguageId()}(o);a(e,"Fetching container from URL",s),i[o]=function(e,n){const o=document.createElement("script"),r={container:void 0,error:void 0,fetched:!1,modules:void 0,script:o,subscribers:[]};return o.src=e,o.onload=()=>n(r),document.head.appendChild(o),r}(s,(r=>{a(e,"Fetched container",o);const i=function(e){"@"===e[0]&&(e=e.substr(1).replace("/","!"));return window[n][e]}(o);if(i)a(e,"Initializing container with scope:\n"," ",Object.entries(c).map((([e,n])=>"".concat(e,": ")+Object.entries(n).map((([e,n])=>"(".concat(e,": ").concat(n.from,")"))))).join("\n ")),Promise.resolve(i.init(c)).then((()=>d(e,r,i))).catch(t);else{const n="Container ".concat(o," was fetched but its script ")+"failed to register with Liferay";console.warn(n),d(e,r,new Error(n))}})),a(e,"Subscribing to container request"),f(i[o],r,t)}function d(e,n,o){const{script:r,subscribers:t}=n;n.fetched=!0,n.script=void 0,n.subscribers=void 0,o instanceof Error?(a(e,"Rejecting container",r.src,"for",t.length,"subscribers"),n.error=o,t.forEach((({reject:e})=>e(o)))):(a(e,"Resolving container",r.src,"for",t.length,"subscribers"),n.container=o,n.modules={},t.forEach((({resolve:e})=>e(o))))}function f(e,n,o){e.subscribers.push({reject:o,resolve:n})}window[o]=function(e,n){const o="[".concat(s++,"]");return n=n||"[".concat((new Error).stack.split("\n")[1],"]"),a(o,"Getting module",e,"for",n),new Promise(((n,r)=>{const{containerId:t,path:c}=function(e){let n,o,r=e.indexOf("/");"@"===e[0]&&(r=e.indexOf("/",r+1));-1===r?(n=e,o="."):(n=e.substring(0,r),o=e.substring(r+1));return{containerId:n,path:o}}(e),s=()=>{const e=i[t],{modules:s}=e,u=s[c];if(u)a(o,"Resolving cached module"),n(u);else{const{container:t}=e;a(o,"Getting module from container"),Promise.resolve(t.get(c)).then((e=>{const n=e();return s[c]=n,n})).then((e=>{a(o,"Resolving module"),n(e)})).catch((e=>{a(o,"Rejecting module",e),r(e)}))}},d=i[t];if(d){const{fetched:e}=d;if(!e)return a(o,"Subscribing to container request"),void f(d,s,r);const{error:n}=d;if(n)return a(o,"Rejecting with error",n),void r(n);s()}else u(o,t,s,r)}))},window[t]={transformChunkScriptFilename:function(e){return e+"?languageId="+Liferay.ThemeDisplay.getLanguageId()}}}();