(()=>{"use strict";var e={29172:(e,o,n)=>{n.r(o)}},o={};function n(t){var i=o[t];if(void 0!==i)return i.exports;var s=o[t]={exports:{}};return e[t](s,s.exports,n),s.exports}n.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},(()=>{function e(e){const o=window.location.href;e=e.replace(/[\[\]]/g,"\\$&");const n=new RegExp("[?&]"+e+"(=([^&#]*)|&|#|$)").exec(o);return n?n[2]?decodeURIComponent(n[2].replace(/\+/g," ")):"":null}function o(e,o,n){window.postMessage({command:"authResult",code:e,state:o,lastpass:n},"*");const t=("; "+document.cookie).split("; ssoHandOffMessage=").pop().split(";").shift();document.cookie="ssoHandOffMessage=;SameSite=strict;max-age=0";const i=document.getElementById("content");i.innerHTML="";const s=document.createElement("p");s.innerText=t,i.appendChild(s)}n(29172),window.addEventListener("load",(()=>{const n=e("code"),t=e("state");if("1"===e("lp"))o(n,t,!0);else if(null!=t&&t.includes(":clientId=browser"))o(n,t,!1);else{window.location.href=window.location.origin+"/#/sso?code="+n+"&state="+t;const e=function(e,o){const n=new RegExp(o).exec(e);if(!n)return null;return n[0]}(t,"(?<=_returnUri=')(.*)(?=')");window.location.href=e?window.location.origin+`/#${e}`:window.location.origin+"/#/sso?code="+n+"&state="+t}}))})()})();
//# sourceMappingURL=sso.f6cab8bce1360ddf8623.js.map