");!a&&t&&(a=t.message||t.statusText||"Unknown Error"),o(a,n,"error")}},clearMessage:n,oauthProvidersTextCopy:{google:"Sign in with Google"}}}(),ne=function(e,t,o,n,a){var i=document.getElementById("BFS"),r={brandContainer:document.getElementById("brand-container"),loading:document.getElementById("curtain-spinner"),loginContainer:document.getElementById("login-container"),emailInput:document.querySelector("#basic-login-form input"),codeInput:document.getElementsByName("code")[0],emailInputForgotPassword:document.querySelector("#forgot-password input"),emailInputForgotSubdomain:document.querySelector("#forgot-subdomain input"),footer:document.getElementsByClassName("footer")[0],app:document.getElementById("bento"),fedWarning:document.getElementById("fed-warning-placeholder"),loginFormContainer:document.getElementById("login-form-container")},s={loginForm:document.getElementById("basic-login-form"),mfaForm:document.getElementById("mfa-verification"),forgotPasswordForm:document.getElementById("forgot-password"),forgotSubdomainForm:document.getElementById("forgot-subdomain"),transferSubdomainForm:document.getElementById("transfer-subdomain")},d=function(e,t){var o={shouldShowCode2:!1,isUsingBackupCode:!1,rememberToggleValue:!1,canRememberMfa:!1,sessionId:""},n={form:document.getElementById("mfa-verification"),mfaMessages:document.getElementById("mfa-messages"),description:document.getElementById("mfa-description"),code:document.getElementById("verification-code"),code2:document.getElementById("verification-code2"),remember:document.getElementById("verification-remember"),submit:document.getElementById("mfa-submit"),desc1:document.getElementById("mfa-description-1"),desc2:document.getElementById("mfa-description-2"),desc3:document.getElementById("mfa-description-3")},a={"mfa-description-1":function(){o.isUsingBackupCode=!0},"mfa-description-2":function(){o.isUsingBackupCode=!1}},i=void 0,r=void 0;function s(){var e;r&&(e=r,localStorage.removeItem(e))}function d(e){var t=n.form[e]||{};return"checkbox"===t.type?t.checked:t.value}function c(e){for(let t of e.getElementsByTagName("a"))t.dataset.hasBeenInitialized||(t.addEventListener("click",l),t.dataset.hasBeenInitialized="1")}function l(e){var o;try{o=e.target.parentNode.id}catch(e){}if(o){var i=a[o];"function"==typeof i&&(i(),t.clearMessage(n.mfaMessages),u(),p())}P("clicked",o)}function u(){P("updating",o);var e,t=o.shouldShowCode2?n.code2:n.remember;(o.shouldShowCode2?n.remember:n.code2).remove(),n.form.insertBefore(t,n.submit),o.canRememberMfa||n.remember.remove(),n.desc1.remove(),n.desc2.remove(),n.desc3.remove(),e=o.shouldShowCode2?n.desc3:o.isUsingBackupCode?n.desc2:n.desc1,n.description.appendChild(e)}function m(){var e=d("code"),t=d("code2"),n=!(!e||!/^\d{6}$/.test(e)),a=!(!t||!/^\d{6}$/.test(t));return o.isUsingBackupCode?!(!e||!/^\d{8}$/.test(e)):n&&(!o.shouldShowCode2||a)}function g(a){var r=a.keyedErrors;if(r&&!r.length)e.cancelProgress(),localStorage.setItem("ui.justLoggedIn","true"),s(),window.removeEventListener("beforeunload",s),i();else{for(let e of r){"auth1:mfa_attempts_exceeded"===e.key&&(o.shouldShowCode2=!0,u());break}e.cancelProgress(),t.handleErrors(a,n.mfaMessages)}}function h(o){e.cancelProgress(),t.handleErrors(o,n.mfaMessages)}function p(){m()?n.submit.disabled=!1:n.submit.disabled=!0}function f(){o.rememberToggleValue="on"===n.remember.value}return p(),c(n.desc1),c(n.desc2),c(n.desc3),n.remember.addEventListener("change",f),n.code.addEventListener("input",p),n.code2.addEventListener("input",p),window.doMfa=function(t){t.preventDefault(),t.stopPropagation();var n="/json/v1/authentication/"+(o.shouldShowCode2?"resyncMfaClocks":"validateMfaCode"),a=d("code"),i=o.shouldShowCode2?{code1:a,code2:d("code2")}:{code:a,remember:d("remember")};m()&&(e.startProgress(),x(n,{method:"POST",body:JSON.stringify(i)}).then(g).catch(h))},{handleMfa:function(e,t,n){var a;(r=function(){let e=function(){for(let e=0;e<3;e++){let e=Math.floor(Math.random()*Date.now()),t=`${z}.${e}`;if(!localStorage.getItem(t))return t}return null}();return e?(localStorage.setItem(e,"true"),e):null}())&&window.addEventListener("beforeunload",s),i=n,o.sessionId=(e||{}).apiSessionId||"",o.canRememberMfa=null!=(a=(e||{}).canRememberMfa)&&a,u(),t()},removeListeners:function(){n.remember.removeEventListener("change",f),n.code.removeEventListener("input",p),n.code2.removeEventListener("input",p)}}}(e,t);function c(){r.loginContainer.classList.add("show-login"),i.style.display="block"}function l(){var e=r.emailInputForgotPassword;e&&(e.value=r.emailInput.value||U("forgotPassword")),c(),h(),g(s.forgotPasswordForm),r.emailInputForgotPassword.focus()}function u(){var e=r.emailInputForgotSubdomain;e&&(e.value=r.emailInput.value||U("forgotSubdomain")),c(),h(),g(s.forgotSubdomainForm),r.emailInputForgotSubdomain.focus()}function m(){c(),h(),g(s.transferSubdomainForm)}function g(e){r.loginFormContainer.appendChild(e)}function h(){Object.keys(s).forEach((e=>{s[e].remove()}))}return{showLoading:function(){P("showLoading"),e.startProgress(),r.loginContainer.classList.remove("show-login"),i.style.display="block"},showLoginForm:function({showSamlLogin:e=!0}={}){var o;performance.mark("LOGIN_VIEW_SHOWN_MARK"),c(),h(),o=!!/[?&]fed=/.test(document.location.href),(document.location.hostname.endsWith(".fed.sumologic.com")||o)&&(r.fedWarning.innerHTML='
Use of this System is for Authorized purposes only
- You are accessing a U.S. Government Information System.
- System usage may be monitored, recorded, and subject to audit.
- Unauthorized use of the information system is prohibited and subject to criminal and civil penalties.
- Use of the System indicates consent to monitoring and recording.
Information on or transmitted by this system may contain controlled unclassified information (CUI) and, as such should be considered and treated as non-public information.
'),s.loginForm.setAttribute("autocomplete","off"),g(s.loginForm),r.emailInput.focus(),e&&n(t),a()},showForgotPassword:l,showForgotSubdomain:u,showTransferSubdomain:m,showMfaForm:function(e,t){P("response",arguments),c(),h(),d.handleMfa(e,(function(){g(s.mfaForm),r.codeInput.focus()}),t)},swapToApp:function(){d.removeListeners(),o.removeListeners(),window.removeEventListener("hashchange",V),r.loginContainer.classList.remove("show-login"),i.remove(),r.loading.remove()},swapToForms:function(){U("forgotPassword")?l():U("forgotSubdomain")?u():U("transfer-subdomain")?m():V()},removeAllForms:h,setLoginCurtain:function(e){r.loginContainer.classList[e?"add":"remove"]("show-login-curtain")},isLoginFormVisible:function(){return"block"===window.getComputedStyle(i).display&&r.loginContainer.classList.contains("show-login")}}}(X,oe,Z,ee.initiateSamlConfig,te.initializeOAuthLoginButtons),ae=function(e,n){var a=document.getElementById("prefetch-container"),i=document.head,r=document.createElement("div"),s={img:{},script:{async:!1,type:"text/javascript",defer:!0},link:{rel:"stylesheet",type:"text/css",charset:"utf-8"}};function d(e,t,o){e.forEach((e=>{var n=document.createElement(t);n["link"===t?"href":"src"]=e;var a=Object.assign(s[t],o||{});Object.keys(a).forEach((e=>{n[e]=a[e]})),(n&&n.type&&"text/css"===n.type.toLowerCase()?i:r).appendChild(n)}))}return{schedulePrefetching:function(){("hidden"===document.visibilityState?setTimeout:requestAnimationFrame)((()=>{d(t,"script",{onload:function(){e.increaseLoadCounter("script"),e.hasFinishLoading()&&(window.bfsScriptsLoaded=!0,window.shouldDelayLoad?P("finished loading...bootstrapping delayed because shouldDelayLoad is true"):(P("finished loading...bootstrapping bento"),setTimeout(n.swapToApp,L)))},onerror:function(){for(let e of(n.swapToForms(),oe.handleReason("pageLoadError",document.getElementById("login-messages")),document.querySelectorAll('button[type="submit"]')))e.disabled=!0}}),d(o,"link",{onload:function(){e.increaseLoadCounter("style"),e.hasFinishLoading()&&!window.shouldDelayLoad&&(P("finished loading...bootstrapping bento"),setTimeout(n.swapToApp,L))}}),a.appendChild(r)}))}}}(X,ne),ie=function(e){let t=document.getElementById("login-messages");function o(){var e=decodeURIComponent(U("next"));if(!e)return null;let t=new URL(e,location.origin);return t.origin!==location.origin?null:(t.pathname.startsWith("/log-search")&&"true"===t.searchParams.get("run")&&t.searchParams.delete("run"),t.href)}function n(o=""){e.setLoginCurtain(!1),e.showLoginForm(),oe.handleReason(o,t)}function a(e){if(e.error)n("sessionGenericError");else{let e=o();e&&(window.location.href=e)}}function i(e){D&&"string"==typeof e&&"unauthorized"===e.toLowerCase()?(n("sessionInvalidError"),G("ASID","",-1)):n("sessionNetworkError")}return{getSanitizedRedirectURL:o,verifyAsidAndRedirect:function(){D||(D=Y()),D?(window.shouldDelayLoad=!0,e.setLoginCurtain(!0),x("/json/v1/authentication/user",{method:"GET"}).then(a).catch(i)):oe.handleReason("noAsid",t)}}}(ne),re=function(e,t,o,n,a){var i=document.querySelector(".signin-button"),r=document.getElementById("login-messages"),s=!1,d=void 0,c=n.getSamlState;function l(){s=!1,e.enableButton(i,"Sign in")}function u(){window.shouldDelayLoad=!1,e.hasFinishLoading()?(window.loadApp&&window.loadApp(),t.swapToApp()):e.startProgress()}function m(){clearTimeout(d),D&&G("ASID",D,3e5),localStorage.setItem("ui.justLoggedIn","true"),me&&me.checkExternalLogin()?me.loadExternalService():a&&a.getSanitizedRedirectURL()?a.verifyAsidAndRedirect():(!k||F||j||localStorage.getItem("ui.2fa.setup")||function(){D||(D=Y()),window.sumoEarlyApiCalls={auth:Q(),userSettings:x("/json/v1/userSettings/get",{method:"POST",body:JSON.stringify({userSettingsList:[]})}),accountStatus:x("/api/v1/account/status",{method:"GET"}).then((e=>E(this,[e],(function*({applicationUse:e,canUpdatePlan:t,planExpirationDays:o,planType:n,pricingModel:a,totalCredits:i,logModel:r}){let s,d;if("credits"===a)s=t&&("Trial"===n||"Free"===n),d=t?"SelfService":"RequestUpgrade";else{let{upgradeButton:e,upgradePage:t}=yield K();s=e,d=t}return{accountStatusInfo:{applicationUse:e,canUpdatePlan:t,planExpirationDays:o,planType:n,pricingModel:a,totalCredits:i=void 0!==i?i:-1,logModel:r},upgradeButton:s,upgradePage:d}})))),upgradePageKnob:K(),passwordPolicy:x("/api/v1/passwordPolicy",{method:"GET"}).then((e=>(e=>{let t={mustContainSpecialChars:"mustContainSpecial",maxPasswordAgeInDays:"passwordExpiresAfterNDays",minUniquePasswords:"cannotReuseNOldPasswords",accountLockoutThreshold:"numberFailedLoginsAllowed",failedLoginResetDurationInMins:"failedLoginTimeWindowMinutes",accountLockoutDurationInMins:"accountLockoutMinutes"},o=e=>t[e]||e,n={};for(let t in e)n[o(t)]=e[t];return n})(e)))}}(),u())}function g(n){if(D=n.apiSessionId||"")if(localStorage.removeItem("ui.2fa.setup"),n.mfaStatus)if("REQUIRES_VALIDATION"===n.mfaStatus)e.cancelProgress(),t.showMfaForm(n,m);else{localStorage.setItem("ui.2fa.setup","true");try{var a=JSON.stringify({asid:n.apiSessionId,canRememberMfa:n.canRememberMfa,mfa_status:n.mfaStatus,qrUrl:n.qrUrl});localStorage.setItem("ui.2fa.params",a)}catch(e){}m()}else m();else!function(e){var t=!1;if("auth1:redirect_to_other_deployment"===e.errorKey){var o=(e.keyedErrors||[])[0]||{},n=o.values&&o.values.tryAt||"",a=(document.querySelector("input[name=email]").value||"").trim(),i=(document.querySelector("input[name=password]").value||"").trim();if(n){P("Redirecting to ["+n+"] with "+a);var r,s,d=O("form",{action:n+"/json/v1/authentication/redirectedloginwithcredentials",method:"POST",target:"_top",style:"display: none;",autocomplete:"off"});d.appendChild(O("input",{name:"email",value:a,type:"hidden"})),d.appendChild(O("input",{name:"password",value:i,type:"hidden"}));var c=U("return_to"),l=(r=U("provider"),s=c.includes("sumologic")||c.includes("zendesk"),{aha:"aha",salesforce:"salesforce",mindtouch:"mindtouch",talentlms:"talentlms",skilljar:"skilljar",kryterion:"kryterion"}[r]||(s?"zendesk":"")),u=U("SAMLRequest"),m=U("RelayState");l?(d.appendChild(O("input",{name:"provider",value:l,type:"hidden"})),u&&(d.appendChild(O("input",{name:"SAMLRequest",value:u,type:"hidden"})),d.appendChild(O("input",{name:"RelayState",value:m,type:"hidden"}))),c&&d.appendChild(O("input",{name:"return_to",value:c,type:"hidden"}))):(d.appendChild(O("input",{name:"provider",value:"redirected_login",type:"hidden"})),d.appendChild(O("input",{name:"return_to",value:encodeURIComponent(n+location.href.substring(location.origin.length)),type:"hidden"}))),document.body.appendChild(d),d.submit(),t=!0}}return t}(n)&&(l(),n.keyedErrors=n.keyedErrors.map((e=>{var t=e.key;"auth1:login_failed"===t&&("LOCKDOWN"===c()?t="auth1:login_failed_with_saml_lockdown":"ENABLED"===c()&&(t="auth1:login_failed_with_saml"));var o=Object.assign({},e);return o.key=t,o})),o.handleErrors(n,r))}function h(e){l(),o.handleErrors(e,r)}return function e(){let t=!(!_||Object.keys(localStorage).filter((e=>e.startsWith(z))).some((e=>"true"===localStorage.getItem(e))))||"visible"===document.visibilityState;!D&&W()&&t?m():(localStorage.removeItem("ui.copilot.conversations"),clearTimeout(d),d=setTimeout(e,500))}(),{doLogin:function(t){performance.mark("app_login_manual_attempt"),t.preventDefault(),t.stopPropagation(),o.clearMessage(r);var n=(document.querySelector("input[name=email]").value||"").trim(),a=(document.querySelector("input[name=password]").value||"").trim();n&&a&&!s&&(s=!0,e.disableButton(i),x("/json/v1/authentication/loginwithcredentials",{method:"POST",body:JSON.stringify({email:n,password:a,customerId:(location.href.match(/[?&]customerId=([^]*)/i)||[])[1]})}).then(g).catch(h))},doFastMfa:function(){var e;try{var o=JSON.parse(localStorage.getItem("mfa.redirected.params"));if(o.canRememberMfa="true"===(null==(e=o.canRememberMfa)?void 0:e.toLowerCase()),localStorage.removeItem("mfa.redirected.params"),D=o.asid,"REQUIRES_SETUP"===o.mfa_status){var n=JSON.stringify(o);localStorage.setItem("ui.2fa.setup","true"),localStorage.setItem("ui.2fa.params",n),m()}else t.showMfaForm({apiSessionId:D,canRememberMfa:o.canRememberMfa},m)}catch(e){localStorage.removeItem("mfa.redirected.params"),t.swapToForms()}},submitRoute:function(e){document.location.hash="/"+e},handleUrlReasons:function(){var e=U("reason");o.handleReason(e,r,!1)},startProgressOrLoad:u}}(X,ne,oe,ee,ie),se=function(e,t,o){var n=document.querySelector("#forgot-password-form"),a=document.querySelector("#forgot-password-success"),i=document.getElementById("forgot-password-messages"),r=document.getElementById("forgot-password-submit"),s=document.querySelector("#forgot-password input[name=email]");function d(){e.enableButton(r,"Send Link")}function c(e){d();var t=e&&e.errors&&e.errors[0]||e.keyedErrors[0]||{};o.handleErrors(t,i)}function l(t){o.handleErrors("",i);var l=(s&&s.value||t||"").trim();l&&M(l)?(e.disableButton(r),x(`../json/v1/authentication/requestpasswordreset?email=${encodeURIComponent(l)}`,{method:"GET"}).then((e=>{e.error?c(e):function(e){if(d(),e.success)n.setAttribute("style","display: none;"),a.setAttribute("style","display: block;");else{var t=e.redirectedUrl||"";if(""!==t.trim()){var o=(s&&s.value||"").trim();P("ForgotPassword redirecting to "+t),document.location.assign(t+"/ui/?forgotPassword="+encodeURIComponent(o))}}}(e)})).catch(c)):o.handleErrors({message:"Please enter a valid email."},i,!0)}return{sendForgotPasswordLink:l,checkInitialTasks:function(){var e=U("forgotPassword").trim();e&&l(e)}}}(X,0,oe),de=function(e,t,o){var n=document.querySelector("#forgot-subdomain-form"),a=document.querySelector("#forgot-subdomain-success"),i=document.getElementById("forgot-subdomain-messages"),r=document.getElementById("forgot-subdomain-submit"),s=document.querySelector("#forgot-subdomain input[name=email]");function d(){e.enableButton(r,"Send Me My Subdomain")}function c(){d(),n.setAttribute("style","display: none;"),a.setAttribute("style","display: block;")}function l(e){d();var t=e&&e.errors&&e.errors[0]||{};o.handleErrors(t,i)}function u(t){o.handleErrors("",i);var n=(s&&s.value||t||"").trim();n&&M(n)?(e.disableButton(r),x(`../api/v1/account/subdomain/recover?email=${encodeURIComponent(n)}`,{method:"POST"}).then(c).catch(l)):o.handleErrors({message:"Please enter a valid email."},i,!0)}return{sendForgotSubdomainLink:u,checkInitialTasks:function(){var e=U("forgotSubdomain").trim();e&&u(e)}}}(X,0,oe),ce=(s=document.getElementById("transfer-subdomain-messages"),d=document.getElementById("transfer-subdomain-submit"),c=document.querySelector("input[name=organization]"),l=document.location,u=document.location.hash.startsWith("#/transfer-subdomain")||U("transfer-subdomain")?"":l.href.substring(l.origin.length),{verifySubdomainRedirect:function(e){oe.handleErrors("",s);var t=(c&&c.value||e||"").trim().toLowerCase();t&&(X.disableButton(d),x(`../api/v1/account/subdomain/${t}/url`,{method:"GET"}).then((e=>{window.location=`${e.url}${u}`})).catch((()=>{oe.handleErrors({message:"Please enter a valid organization name"},s),X.enableButton(d,"Continue")})))}}),le=function(){var e={default:{start:168266514e4,title:"Check out our recent updates to get more value out of Sumo Logic",buttonText:"What's new",buttonLink:"https://www.sumologic.com/whats-new/",supportTextRight:"",className:"default"}},t=Object.keys(e).map((t=>e[t])).filter((e=>e)),o=function(){var o,n=e[(document.location.href.match(/[?&]b=([^&]*)/)||[])[1]];if(!n){var a=t.filter(l),i=Math.random()*a.reduce(u,0);o=a.reduce(m,{banner:void 0,remainingWeight:i}).banner||e.default}return n||o}(),n=document.getElementById("footer-animation-container"),a=document.getElementById("footer-title"),i=document.getElementById("footer-description"),r=document.getElementById("footer-cta"),s=document.getElementById("footer-support-element__right"),d=document.getElementById("footer-support-text__right"),c=document.getElementById("copyright-text");function l(e){var t=Date.now();return!(e.start>=t||e.end<=t)}function u(e,t){return e+(t.weight||.5)}function m(e,t){return e.remainingWeight>0&&(e.remainingWeight-=t.weight||.5,e.banner=t),e}return a.innerHTML=o.title||"",i.innerHTML=o.description||"",r.innerHTML=o.buttonText||"",r.setAttribute("href",o.buttonLink||"#"),d.innerHTML=o.supportTextRight||"",s.innerHTML=o.supportElementRight||"",n.classList.add(o.className||""),{updateCurrentYear:function(){c.innerHTML="Copyright 2010 - "+(new Date).getFullYear()+" Sumo Logic Inc."}}}(),ue=(m={footer:document.getElementById("footer"),brandContainer:document.getElementById("brand-container"),improvedLogin:document.getElementById("BFS"),oneTimePasswordNotification:document.getElementById("one-time-password-notification")},g={hds:{name:"Hitachi Data Systems Corporation",logo:"images/app/partners/Hitachi_Logo.png"},esentire:{name:"eSentire Inc."},ackcent:{name:"Ackcent Cybersecurity"},expel:{name:"Expel"},gmsectec:{name:"GM Security Technologies"},securitycentric:{name:"Security Centric"},infosec:{name:"Infosec"},m87:{name:"M87"},criticalstart:{name:"Critical Start"}},{handlePartners:function(){var e,t,o,n,a,i,r=U("logo"),s=g[r];s&&(e=s,m.footer.setAttribute("info",e.name+" is a reseller of Sumo Logic SaaS solution."),t=s,o=r,(n=document.createElement("img")).className="logo partner-logo",a=t,i=o,n.src=a.logo||(document.location.host.startsWith("localhost")?"https://sumologic-test-app-library.s3-us-west-1.amazonaws.com/msp-assets+/logos/":"https://sumologic-production-apps-library.s3-us-west-1.amazonaws.com/msp-assets/msp-logos/")+i+"/logo.png",n.alt=t.name,m.brandContainer.appendChild(n),m.improvedLogin.classList.add("partner")),"aws"===U("integration")&&m.oneTimePasswordNotification.classList.remove("hidden")}}),me=function(e,t){let o="cse",n="cloudSoar";var a=U("tenantName"),i=U("redirectUrl"),r=document.getElementById("login-messages"),s=U("integrationName")||function(e){let t={".portal.jask.ai":o,".incman.sumologic.com":n};for(let o in t)if(e.indexOf(o)>-1)return t[o];return""}(i);function d(o="",n=3e3){for(let n of(e.setLoginCurtain(!1),e.showLoginForm({showSamlLogin:!1}),oe.handleReason(o,r),document.querySelectorAll('button[type="submit"]')))t.disableButton(n);setTimeout((()=>{re.startProgressOrLoad()}),n)}function c(e){e.error?d("redirectGenericError"):window.location.assign(e.returnURL)}function l(e){D&&"401"===e.status?d("redirectAuthenticationError",3500):d("redirectNetworkError")}return{checkExternalLogin:function(){return a&&i},loadExternalService:function(){if(D||(D=Y()),D){window.shouldDelayLoad=!0,e.setLoginCurtain(!0),x(`/json/v1/authentication/${s===o?`generateCseJwt?tenantName=${a}&redirectUrl=${i}`:`generateJwt?integrationName=${s}&tenantName=${a}&redirectUrl=${i}`}`,{method:"GET"}).then(c).catch(l)}else oe.handleReason("noAsid",r)}}}(ne,X);X.shouldShowAnimation||document.getElementById("BFS").classList.add("no-animation");var ge=[ae.schedulePrefetching,le.updateCurrentYear],he={asid:U("asid"),mfa_status:U("mfa_status")||U("mfaStatus"),canRememberMfa:U("canRememberMfa")};if(H()){he.mfa_status?localStorage.setItem("mfa.redirected.params",JSON.stringify(he)):G("ASID",he.asid,3e5);let e=U("return_to");(function(e){try{let{protocol:t,origin:o}=new URL(e);return"https:"===t&&(o.endsWith(".sumologic.net")||o.endsWith(".sumologic.com")||o.endsWith(".prada-epd.nl")||o.endsWith(".ephemeral.in"))}catch(e){return!1}})(e)&&document.location.assign(e)}else q?(ge.unshift(ne.removeAllForms),C.has("asid")&&!W()?G("ASID",U("asid"),3e5):_&&W()&&!F&&!j&&!localStorage.getItem("ui.2fa.setup")&&0==[...C.keys()].length&&Q().then((e=>{e.requiresNewPassword&&window.location.assign("/change-password")})).catch((e=>{"string"==typeof e&&"Rejected request with MFA_STATUS=REQUIRES_VALIDATION"===e&&window.location.assign("/verification")})),_&&C.has("asid")&&("REQUIRES_VALIDATION"===C.get("mfa_status")?window.location.assign("/verification"):C.has("mfa_status")?(localStorage.setItem("ui.2fa.setup","true"),window.location.assign("/mfa-setup")):C.has("requireNewPassword")&&window.location.assign("/change-password")),me.checkExternalLogin()?me.loadExternalService():ne.showLoading()):/\/dashboard.html/.test(window.location.href)||/\/dashboards.html/.test(window.location.href)?(window.shouldDelayLoad=!0,x(`/json/v2/content/item/public/${U("k")}?contentType=dashboard`,{method:"GET"}).then((e=>{e.error?J():(ne.removeAllForms(),ne.showLoading(),window.shouldDelayLoad=!1,window.loadApp&&window.loadApp(),window.bfsScriptsLoaded&&ne.swapToApp())})).catch((()=>{J()}))):(N&&localStorage.setItem("mfa.redirected.params",JSON.stringify(he)),J());if(window.onload=()=>{ge.forEach((e=>{"function"==typeof e&&e()}))},window.addEventListener("hashchange",V),window.doLogin=re.doLogin,window.submitRoute=re.submitRoute,window.sendForgotPasswordLink=se.sendForgotPasswordLink,window.sendForgotSubdomainLink=de.sendForgotSubdomainLink,window.verifySubdomainRedirect=ce.verifySubdomainRedirect,/localhost|nite/.test(location.host)){let e=function(t){window.$?$.logWarn(t):setTimeout((function(){e(t)}),1e3)};var pe=RegExp("cosmeticsrc.com|tribedone.org|js-cache");new PerformanceObserver((t=>{t.getEntries().forEach((t=>{pe.test(t.name)&&e(JSON.stringify({resource:t.name,jira:"SEC-1118852"}))}))})).observe({entryTypes:["resource"]})}window.addEventListener("visibilitychange",(()=>{!_||"visible"!==document.visibilityState||W()||ne.isLoginFormVisible()||document.location.reload()}))}()}()