var LumisPortal=new LumisPortal;function LumisPortal(){var arrHtmlProcessorCallbacks=[];if(this.HtmlProcessor={register:function(e){arrHtmlProcessorCallbacks.push(e)},process:function(e){void 0===e&&(e=document.documentElement);for(var t=0;tonSubmitFormInternal(t,n,o,i,l,r)).catch(e=>{e?"string"==typeof e||e instanceof String?alert(e):(alert("An error has occurred during form submit."),console.error(e)):alert("An error has occurred during form submit.")}):onSubmitFormInternal(t,n,o,i,l,r)}}function onSubmitFormInternal(e,t,n,o,i,l){if(!this.isSubmitting){var r=document.forms[e],s=document.forms.LumisPortalForm;if(r.action.match(/[&?]doui_editingVersion=1(&|$)/)&&createInputHidden(s,"doui_editingVersion","1"),!formHasFileInputs(r)&&!isFormWSRPAction(r)||null!=l){var a='',e=(a+=getFormParameters(e),s.elements.lumNewParams.value=a+="",s.action);if(null!=t&&null!=(a=s.elements[n])&&(a.value=t),null!=i&&(s.action+="#"+i),o)s.elements.lumA.value="1";else if(r&&r.action){r.action;if(null!=l){n=document.getElementById(l);if(n)return renderInterfaceInstance(n,t,!0),s.elements.lumNewParams.value="",void(s.action=e)}else{a=r.elements.lumClientRendered;if(null!=a&&1==a.value){i=getInterfaceInstanceDiv(t);if(i)return renderInterfaceInstance(i,t),s.elements.lumNewParams.value="",void(s.action=e)}}}this.isSubmitting=!0,s.submit()}else try{copyFormElements(s,r),o&&null!=r.elements.lumA&&(r.elements.lumA.value="1"),this.isSubmitting=!0,r.submit()}catch(e){lumis_doui_control_fileupload_FileUploadControl_msgFileNotFound?alert(lumis_doui_control_fileupload_FileUploadControl_msgFileNotFound):alert(e.message),this.isSubmitting=!1}}}function getInterfaceInstanceDiv(e){for(var t=document.getElementsByTagName("*"),n=0;n'+htmlEncode(e)+"

",n.action);e&&e.length&&(t+='

'+htmlEncode(e)+"

");for(var o=0;o'+htmlEncode(l)+"

");else if("select-multiple"==i.type)for(var l="",r=0;r'+htmlEncode(l)+"

")}else("checkbox"!=i.type&&"radio"!=i.type||i.checked)&&(l=i.value)&&l.length&&(t+='

'+htmlEncode(l)+"

")}return t}function xmlDecode(e){return e=(e=(e=(e=(e=e.replace(/\</g,"<")).replace(/\>/g,">")).replace(/\'/g,"'")).replace(/\"/g,'"')).replace(/\&/g,"&")}function xmlEncode(e){return e=(e=(e=(e=(e=e.replace(/\&/g,"&")).replace(//g,">")).replace(/\'/g,"'")).replace(/\"/g,""")}function getCookie(e){for(var t=document.cookie.split("; "),n=0;n/g,">")).replace(/'/g,"'")}var htmlSer=(()=>{var e=document.createElement("div");return e.style.display="none",e.innerHTML=" ",!!e.getElementsByTagName("link").length})();function renderInterfaceInstance(e,t,n){renderInterfaceInstance_internal(e,t,n)}function addLoadingOverlay(e={}){var{targetElement:e,loadingHtml:t}={targetElement:document.body,loadingHtml:g_LumisLoadingHtmlMessage,...e},n=document.createElement("div"),o=(e===document.body?(n.style.position="fixed",n.style.width="100vw",n.style.height="100vh",n.style.left=0,n.style.top=0):(n.style.position="absolute",n.style.width=e.offsetWidth+"px",n.style.height=e.offsetHeight+"px"),n.style.overflow="hidden",n.style.zIndex="1001",document.createElement("div")),i=(o.style.position="absolute",o.style.left=o.style.right=o.style.top=o.style.bottom=0,o.style.overflow="hidden",o.style.zIndex="1001",o.className="cLumClientRenderWaitBox",document.createElement("div"));return i.style.position="absolute",i.style.left=i.style.right=i.style.top=i.style.bottom=0,i.style.overflow="hidden",i.style.zIndex="1002",e===document.body?(i.style.display="flex",i.style.justifyContent="center",i.style.alignItems="center"):(i.style.textAlign="center",i.style.paddingTop="5px"),i.innerHTML=t,n.appendChild(o),n.appendChild(i),0"+t+"",o=o.lastChild),(t=o.childNodes).nodeType?m.push(t):m=c(m,t));for(var u,d=0;m[d];d++)!a||"script"!==(m[d].tagName||"").toLowerCase()||m[d].type&&"text/javascript"!==m[d].type.toLowerCase()?(1===m[d].nodeType&&(u=c([],m[d].getElementsByTagName("script")),m.splice.apply(m,[d+1,0].concat(u))),s.appendChild(m[d])):a.push(m[d].parentNode?m[d].parentNode.removeChild(m[d]):m[d]);function c(e,t){for(var n=e.length,o=0;o{var t;return e.src?((t=getXmlHttpObject()).open("GET",e.src,!1),t.send(),t.responseText):e.text||e.textContent||e.innerHTML})(r[g]);f&&(p+=f+";")}(o=p)&&(window.execScript||function(e){window.eval.call(window,e)})(o)}}LumisPortal.tempRenderHtml=function(e,t){o(n,e,t)},o(n,e),LumisPortal.tempRenderHtml=void 0,LumisPortal.HtmlProcessor.process(n),s=null}},s.setRequestHeader("Content-Type","application/x-www-form-urlencoded"),s.send(a)}function getXmlHttpObject(){return window.ActiveXObject?new ActiveXObject("Microsoft.XMLHTTP"):new XMLHttpRequest}function lumisEncodeURIComponent(e){return(encodeURIComponent||escape)(e)}function closeInterfaceInstance(e,t){if(e){null==t&&(t="Form_"+e);var n=document.getElementsByName("lumReplIntfState")[0].value;if(null!=n&&-1!=n.indexOf(e))return void onSubmitForm(t,e,null,!(document.forms[t].elements.lumReplIntfCommands.value="r"))}window.self!=window.top&&(window.parent.LumisLightBoxAdmin||window.parent.LumisLightBox)?!window.parent.LumisLightBoxAdmin||window.parent.LumisLightBoxAdmin.isOpen&&!window.parent.LumisLightBoxAdmin.isOpen()?!window.parent.LumisLightBox||window.parent.LumisLightBox.isOpen&&!window.parent.LumisLightBox.isOpen()||window.parent.LumisLightBox.close():window.parent.LumisLightBoxAdmin.close():window.close()}function getOpenerWindow(){return"undefined"!=typeof $_lumDoNotCalculateWindowOpener?null:window.opener||(window.self!=window.top&&window.parent?window.parent:null)}this.removeReplaces=function(e){for(var t=document.getElementsByName("lumReplIntfState")[0].value,n="",o=e.join(","),i=t.split(";"),l=0;l{var e,o=[],i={waitingResponse:!1,running:!1,process:function(){var e;0==o.length?i.stop():i.waitingResponse?i.schedule(50):(e=o[0],i.makeRequest(e),0{for(var e=[],t=1;t'+LumisPortal.xmlEncode(t(s[1]))+"

")}0!==l.length&&-1!==(n=e.lastIndexOf(""))&&(e=(e=e.substring(0,n))+""+l+"")}document.forms.LumisPortalForm.elements.lumPrevParams.value=encodeURIComponent(e)}}document.onkeydown=LumisPortal.onKeyDown;